Failure building openjfx 9-dev against jdk9 build fails

Kevin Rushforth kevin.rushforth at oracle.com
Fri Aug 28 21:00:34 UTC 2015


I just tried it -- it's a real failure, which is odd since I thought I 
had built with JDK 9 more recently than that. I will file a bug.

-- Kevin


Kevin Rushforth wrote:
> We still use JDK 8u40 as our boot JDK for building FX 9-dev, but it 
> should work against JDK 9-dev as well.
>
> Did you remember to remove jfxrt.jar from your JDK 9? The build.gradle 
> script doesn't know to look for it in $JDK_HOME/lib and warn you if 
> you forget -- it only looks in $JDK_HOME/jre/lib/ext which is where it 
> is in JDK 8.
>
> -- Kevin
>
>
> Sven Reimers wrote:
>> Hi,
>>
>> I get the following error trying to compile latest 9-dev from openjfx
>> against latest jdk9:
>>
>> :swing:compileJava
>> [ant:javac]
>> /Users/sven/oss/openjfx/9-dev/modules/swing/src/main/java/javafx/embed/swing/FXDnD.java:480: 
>>
>> error: cannot find symbol
>> [ant:javac]                     if (ctx != null) ctx.removeNotify();
>> [ant:javac]                                         ^
>> [ant:javac]   symbol:   method removeNotify()
>> [ant:javac]   location: variable ctx of type DropTargetContext
>> [ant:javac]
>> /Users/sven/oss/openjfx/9-dev/modules/swing/src/main/java/javafx/embed/swing/FXDnD.java:489: 
>>
>> error: cannot find symbol
>> [ant:javac]
>> ctx.addNotify(FXDropTargetContextPeer.this);
>> [ant:javac]                            ^
>> [ant:javac]   symbol:   method addNotify(FXDnD.FXDropTargetContextPeer)
>> [ant:javac]   location: variable ctx of type DropTargetContext
>> [ant:javac]
>> /Users/sven/oss/openjfx/9-dev/modules/swing/src/main/java/javafx/embed/swing/FXDnD.java:511: 
>>
>> error: cannot find symbol
>> [ant:javac]                     if (ctx != null) ctx.removeNotify();
>> [ant:javac]                                         ^
>> [ant:javac]   symbol:   method removeNotify()
>> [ant:javac]   location: variable ctx of type DropTargetContext
>> [ant:javac]
>> /Users/sven/oss/openjfx/9-dev/modules/swing/src/main/java/javafx/embed/swing/FXDnD.java:520: 
>>
>> error: cannot find symbol
>> [ant:javac]                     if (ctx != null) ctx.removeNotify();
>> [ant:javac]                                         ^
>> [ant:javac]   symbol:   method removeNotify()
>> [ant:javac]   location: variable ctx of type DropTargetContext
>> [ant:javac] Note: Some input files use or override a deprecated API.
>> [ant:javac] Note: Recompile with -Xlint:deprecation for details.
>> [ant:javac] Note:
>> /Users/sven/oss/openjfx/9-dev/modules/swing/src/main/java/javafx/embed/swing/FXDnD.java 
>>
>> uses unchecked or unsafe operations.
>> [ant:javac] Note: Recompile with -Xlint:unchecked for details.
>> [ant:javac] 4 errors
>>
>> Reason seems to be the change
>>
>> http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/e1888730a57e
>>
>> Could not find the issue in the JBS - maybe may jira fu was not good
>> enough...
>>
>> So should we build 9-dev against jdk8u-60?
>>
>> Seems I must have missed something
>>
>> -Sven
>>
>>   


More information about the openjfx-dev mailing list