Roger Whitcomb created PIVOT-912: ------------------------------------ Summary: Using latest 1.7 JDK to build there is an error related to JSObject.getWindow Key: PIVOT-912 URL: https://issues.apache.org/jira/browse/PIVOT-912 Project: Pivot Issue Type: Bug Components: wtk Affects Versions: 2.0.4, 2.1 Environment: JDK 1.7.0_25, Windows 7 Reporter: Roger Whitcomb Assignee: Roger Whitcomb Priority: Minor Fix For: 2.0.4, 2.1
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". -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira