-
Bug
-
Resolution: Fixed
-
P2
-
8
This may be a duplicate (or have the same cause and resolution as) RT-29602 "JavaScriptBridge unit test fails to compile with JDK 8-b84", but I am not sure.
This is based on a question filed on StackOverflow:
http://stackoverflow.com/questions/13953920/not-able-to-resolve-jsobject-in-a-java-applet-project
Yesterday a user reported:
I've been building with Java 8 early builds, and at least since build 72 I also get a compilation failure for applets using this method (com.netscape.JSObject.getWindow).
The reason for this is that jfxrt.lib also has a class named JSObject. This JSObject does not have getWindow function defined while plugin.jar one has. If you change the dependency order of JAR and make java to resolve JSObject to plugin.jar then java is able to call getWindow function.
Following are the links to the javadocs of both the classes.Note that jfxrt one doesn't have getWindow defined.
http://docs.oracle.com/javafx/2/api/netscape/javascript/JSObject.html
http://www.oracle.com/webfolder/technetwork/java/plugin2/liveconnect/jsobject-javadoc/netscape/javascript/JSObject.html
This is based on a question filed on StackOverflow:
http://stackoverflow.com/questions/13953920/not-able-to-resolve-jsobject-in-a-java-applet-project
Yesterday a user reported:
I've been building with Java 8 early builds, and at least since build 72 I also get a compilation failure for applets using this method (com.netscape.JSObject.getWindow).
The reason for this is that jfxrt.lib also has a class named JSObject. This JSObject does not have getWindow function defined while plugin.jar one has. If you change the dependency order of JAR and make java to resolve JSObject to plugin.jar then java is able to call getWindow function.
Following are the links to the javadocs of both the classes.Note that jfxrt one doesn't have getWindow defined.
http://docs.oracle.com/javafx/2/api/netscape/javascript/JSObject.html
http://www.oracle.com/webfolder/technetwork/java/plugin2/liveconnect/jsobject-javadoc/netscape/javascript/JSObject.html
- duplicates
-
JDK-8095584 Netscape plugin.jar conflicts with jfxrt.jar
- Closed
-
JDK-8094349 JSObject.getWindow(java.applet.Applet) symbol not found
- Closed
- relates to
-
JDK-8090376 New method JSObject.getWindow(Object) to allow interaction of legacy Applets within JavaFX WebView
- Closed