mxn21 / openjdk-osx-build

Automatically exported from code.google.com/p/openjdk-osx-build
0 stars 0 forks source link

JDK 8 lambda support? #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Now that Oracle has Lambda builds for the other platforms, can we add that to 
this JDK 8 build?

Original issue reported on code.google.com by spull...@gmail.com on 20 Dec 2011 at 6:18

GoogleCodeExporter commented 8 years ago
As soon as Oracle will back port osx support in main branch, I'll build OpenJDK 
8 for OSX which will bring users latest JDK8 goodies like Lambda

Original comment by henri.gomez on 29 Dec 2011 at 7:56

GoogleCodeExporter commented 8 years ago
Based on my reading of their JDK 8 + Lambda page, they are building based on 
OpenJDK7 -- maybe we can just use the Lambda diffs against that.

http://jdk8.java.net/lambda/

"The Lambda project has used source files that are not yet available in JDK8; 
therefore, these preview builds are created using the latest OpenJDK 7 source 
repository. This project will merge into OpenJDK 8 when the source files are 
available."

Original comment by spull...@gmail.com on 11 Mar 2012 at 9:22

GoogleCodeExporter commented 8 years ago
So close I can feel it!

[spullara@tw-172-16-160-195 ~]$ javac -target 8 -source 8 /tmp/test.java
/tmp/test.java:2: error: lambda expressions are not supported in -source 1.8
    Runnable run = () -> System.out.println("test");
                      ^
  (use -source 8 or higher to enable lambda expressions)
1 error

Original comment by spull...@gmail.com on 22 Mar 2012 at 6:55

GoogleCodeExporter commented 8 years ago
I was able to build lambda successfully on the Mac using the normal way to 
build JDK7 on the Mac.

Original comment by spull...@gmail.com on 26 Mar 2012 at 2:55

GoogleCodeExporter commented 8 years ago
Could you detail lambda build process so I could study it ?
Thanks

Original comment by henri.gomez on 26 Mar 2012 at 6:56

GoogleCodeExporter commented 8 years ago
Looks like you got a build going. You can close this. Thanks for all your hard 
work!

Original comment by spull...@gmail.com on 26 Mar 2012 at 5:10

GoogleCodeExporter commented 8 years ago
The change for this is done now.

Original comment by henri.gomez on 19 Apr 2012 at 12:11