Vert.x and Java 8

711 views
Skip to first unread message

Frank Reiter

unread,
Feb 28, 2014, 8:47:55 PM2/28/14
to ve...@googlegroups.com
With the release of java 8 just a few weeks away, I am wondering what the probably timetable is for java 8 support in vert.x.  Has there been any testing with the pre-release versions?

I'm looking forward to lambdas for callbacks!

Frank.

Jez P

unread,
Mar 1, 2014, 9:35:18 AM3/1/14
to ve...@googlegroups.com
As I understand it lambdas for handler callbacks might well work out of the box. What I'm not sure of is whether anyone has actually done much work with vert.x in Java 8 (ie whether any significant testing has been done). Have you tried it out?

Dean Pehrsson-Chapman

unread,
Mar 1, 2014, 4:42:14 PM3/1/14
to ve...@googlegroups.com
Tim created a nashorn mod using 8:

Frank Reiter

unread,
Mar 1, 2014, 4:49:59 PM3/1/14
to ve...@googlegroups.com

On Sat, Mar 1, 2014 at 6:35 AM, Jez P <mr.n...@gmail.com> wrote:
Have you tried it out?

I'm still coming up the learning curve and minimizing variables, so no. :)

Frank.

Tim Fox

unread,
Mar 3, 2014, 11:03:21 AM3/3/14
to ve...@googlegroups.com
Vert.x both builds and runs fine with Java8 - Lambas should "just work"
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Frank Reiter

unread,
Mar 4, 2014, 1:45:32 PM3/4/14
to ve...@googlegroups.com

On Mon, Mar 3, 2014 at 8:03 AM, Tim Fox <timv...@gmail.com> wrote:
Vert.x both builds and runs fine with Java8 - Lambas should "just work"

Best possible answer.   Thanks Tim. :)

Frank.

Daryl Teo

unread,
Mar 6, 2014, 11:08:23 PM3/6/14
to ve...@googlegroups.com
Just tested this on 1.8-b129 on OS X Mavericks. So far so good =)

Regards,
Daryl

Krzysztof Makowski

unread,
Mar 7, 2014, 3:49:50 AM3/7/14
to ve...@googlegroups.com
I have been using vert.x with JDK8 EA b123 for a few months on Ubuntu OS (PC) and Raspbery PI (Raspbian). No problems.

I cannot image now using vertx without lambda expressions :).

Norman Maurer

unread,
Mar 7, 2014, 3:58:21 AM3/7/14
to ve...@googlegroups.com
Cool... Thanks for letting us know :)


--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daryl Teo

unread,
Mar 7, 2014, 8:45:14 AM3/7/14
to ve...@googlegroups.com, norman...@googlemail.com
Lambda coercion breaks when using VoidHandler as it has 2 methods. Might need to turn that into a abstract class, or may it might work with a interface default method (but vertx will need to be compiled in 1.8 in that case).

Regards,
Daryl

Nick Scavelli

unread,
Mar 7, 2014, 9:21:40 AM3/7/14
to ve...@googlegroups.com, norman...@googlemail.com
Or just not use it :)

Daryl Teo

unread,
Mar 7, 2014, 4:59:13 PM3/7/14
to ve...@googlegroups.com, norman...@googlemail.com
Oh yeh that too.

Daryl
Reply all
Reply to author
Forward
0 new messages