Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-912

Using latest 1.7 JDK to build there is an error related to JSObject.getWindow

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4, 2.1
    • Fix Version/s: 2.0.4, 2.1
    • Component/s: wtk
    • Labels:
    • Environment:
      JDK 1.7.0_25, Windows 7

      Description

      A recent update to the JDK (at least since 1.7.0_11) has broken the build with the following error:
      [javac] /home/hudson/jenkins-slave/workspace/Pivot-maintenance on Java 7/pivot_maintenance/wtk/src/org/apache/pivot/wtk/BrowserApplicationContext.java:404: error: cannot find symbol
      [javac] JSObject window = JSObject.getWindow(applicationHostApplet);
      [javac] ^
      [javac] symbol: method getWindow(HostApplet)
      [javac] location: class JSObject
      From a posting here: http://stackoverflow.com/questions/13308495/why-is-getwindow-not-able-to-be-resolved
      it appears that duplicate (but not the same) definitions of the JSobject class are causing problems.
      We set our classpath to all the *.jar files in the jre/lib directory. So, removing the "jfxrt.jar" (which we don't need) eliminates the duplicate and we get the correct class in "plugin.jar".

        Attachments

          Activity

            People

            • Assignee:
              rwhitcomb Roger Lee Whitcomb
              Reporter:
              rwhitcomb Roger Lee Whitcomb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: