HEADS UP: Switched to 1.8 source/target in build (in graphics repository).

Tom Schindl tom.schindl at bestsolution.at
Wed May 15 00:00:50 PDT 2013


Hi,

For those of you using Eclipse I have some good news.

I've managed to make a custom eclipse build running on our CI instance. 
So I'm able to publish Eclipse SDK (=Platform+JDT+PDE) holding the 
BETA_JAVA8 enhancements.

Please note that we are building all and everything directly from the 
master/development branches but because all those projects (beside the 
bleeding edge JDT-Core stuff) are currently in RC mode already I don't 
expect big failures.

If you encounter a JDT-Core bug please don't immediately file a bug 
report but take a look if this area is already marked as finished by 
looking at http://wiki.eclipse.org/JDT_Core/Java8.

Still I guess the JDT-Team is interested in feedback on the stuff. Don't 
expect too much when it comes to code completetion, ... but at least 
this now allows you to compile against JDK8 with Java8 constructs like 
defender methods and lambdas.

You can download the builds I'm producing from time to time from 
http://downloads.efxclipse.org/eclipse-java8/ where the JDT-Core stuff 
is coming from 
https://github.com/tomsontom/eclipse.jdt.core/tree/BETA_JAVA8_CHERRY 
which 99% equal to BETA_JAVA8 but holds (one) cherry pick(s) from master.

If want to run do a custom build I've also published the shell script to 
use http://downloads.efxclipse.org/eclipse-java8/build.sh

Tom

On 13.05.13 18:38, steve.x.northover at oracle.com wrote:
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=380190
>
> You will need to apply the compiler patch.
>
> Steve
>
> On 13/05/2013 11:33 AM, Tom Schindl wrote:
>> Perfect - I'll try to add an jdt-beta-updatesite to efxclipse.org so
>> that people can get this stuff installed easily.
>>
>> Tom
>>
>> On 13.05.13 17:29, steve.x.northover at oracle.com wrote:
>>> Hey Tom!
>>>
>>> I can verify that bytecodes for defenders and lambdas are being
>>> generated.  The following runs and gives the expected results:
>>>
>>> package junk;
>>>
>>> interface Fred {
>>>      public void fred();
>>>      public default int mary() {
>>>          return 12;
>>>      };
>>> }
>>>
>>> public class Junk {
>>>      interface IntegerMath {
>>>          int operation(int a, int b);
>>>      }
>>>
>>>      public int operateBinary(int a, int b, IntegerMath op) {
>>>          return op.operation(a, b);
>>>      }
>>>
>>>      public static void junk() {
>>>          System.out.println("JUNK");
>>>      }
>>>
>>>      public static void main(String... args) {
>>>          Junk myApp = new Junk();
>>>          IntegerMath addition = (a, b) -> {
>>>              junk();
>>>              System.out.println("Addition called");
>>>              return a + b;
>>>          };
>>>          IntegerMath subtraction = (a, b) -> a - b;
>>>          System.out.println("40 + 2 = " +
>>>              myApp.operateBinary(40, 2, addition));
>>>          System.out.println("20 - 10 = " +
>>>              myApp.operateBinary(20, 10, subtraction));
>>>
>>>          Fred f = new Fred () {
>>>              public void fred() {}
>>>          };
>>>          int x = f.mary();
>>>          System.out.println(x);
>>>
>>>          //new Junk2();
>>>      }
>>> }
>>>
>>> Steve
>>>
>>> On 13/05/2013 11:17 AM, Tom Schindl wrote:
>>>> Hi Steve,
>>>>
>>>> [...]
>>>>> In the case of Eclipse, I have built the JDK8 Beta JDT plugins and am
>>>>> self hosting with them.  I am in the process of evaluating whether
>>>>> they
>>>>> will be sufficient.  It is also possible to run Eclipse using the
>>>>> patch
>>>>> and put both JDK7 and JDK8 on the build path (JDK7 first). This will
>>>>> allow you to see JDK7 classes first to avoid changes to the base
>>>>> libraries.  At runtime, you should run against JDK8. Neither of these
>>>>> solutions is great so we will have to wait and see.
>>>>>
>>>>
>>>> Ok - keep me updated on this. IIRC the lambda stuff currently does NOT
>>>> produce any bytecode (last time i checked it simply wrote null intead
>>>> of the invoke dynamic).
>>>>
>>>> If this has changed in the meantime this is good news. So report back
>>>> your findings I could make a JDT_Beta download available from
>>>> efxclipse.org.
>>>>
>>>>
>>>> It might make sense to host them in an extra branch instead of a JIRA,
>>>> not? I think we should setup a bitbucket repo where we attach this
>>>> (and patches who will follow) keep stuff compiling on JDK7 (see
>>>> current RoboVM-Thread which does NOT support invoke dynamic).
>>>>
>>>> Danno could we do it in your repo?
>>>>
>>>> Tom
>>>
>>
>



More information about the openjfx-dev mailing list