Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8094588

jfxrt.jar has a duplicate JSObject class without getWindow(Applet)

    XMLWordPrintable

    Details

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kcr Kevin Rushforth
              Reporter:
              josmithjfx John Smith (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: