[jira] [Updated] (NETBEANS-3300) nb-javac 2.0 fails to parse JavaFX Sources
[ https://issues.apache.org/jira/browse/NETBEANS-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Neffenger updated NETBEANS-3300: - Description: In the description below, I'm using the JavaFX sample project for NetBeans defined in the [Non-Modular Ant|https://github.com/openjfx/samples/tree/master/IDE/NetBeans/Non-Modular/Java] directory of the [openjfx/samples|https://github.com/openjfx/samples] repository. Expand the Javadoc and Sources archives of the JavaFX Linux SDK as explained in the section _JavaFX SDK_ of the [parent issue|https://issues.apache.org/jira/browse/NETBEANS-3296#javafxsdk], and set up the project Compile Classpath as described in the section _Add to JAR files_. After those changes, the project Libraries should look like the following screenshot, with badges for the Javadoc and Sources on each icon of the Classpath list. !compile-classpath.png! Remove any directories for the Javadoc and Sources in the _JAVAFX13_ Global Library, and restart NetBeans. Also make sure the _nb-javac_ plug-in is installed. Open the file _Main.java_ and select the {{show()}} method. The Javadoc Window shows the method description, and the two right-most toolbar buttons are enabled to show the documentation in an external Web browser and to open the source in the editor. !javadoc-show.png! Navigate to the source by holding down the _Ctrl_ key while clicking the {{show()}} method. The file _Stage.java_ is opened in a new editor window, and the cursor is placed on the first line of the {{show()}} method. A red balloon with the number "1" appears in the notification area. !notification.png! Clicking the red balloon opens the Notification Window to show an Unexpected Exception. !unexpected-exception.png! Clicking the link in the notification shows the following seven exceptions: h2. {anchor:javalangassertionerror}java.lang.AssertionError {code} java.lang.AssertionError at com.sun.tools.javac.util.Assert.error(Assert.java:155) at com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62) at com.sun.tools.javac.comp.Modules.setCompilationUnitModules(Modules.java:559) at com.sun.tools.javac.comp.Modules.enter(Modules.java:287) at com.sun.tools.javac.comp.Modules.enter(Modules.java:268) at com.sun.tools.javac.comp.Modules.initModules(Modules.java:259) at com.sun.tools.javac.main.JavaCompiler.initModules(JavaCompiler.java:1126) at com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:393) at org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader.loadTreeFor(TreeLoader.java:164) at com.sun.tools.javac.model.JavacElements.getTreeAndTopLevel(JavacElements.java:816) at com.sun.tools.javac.model.JavacElements.getTreeAndTopLevel(JavacElements.java:842) at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:418) at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:408) at org.netbeans.lib.nbjavac.services.NBJavacTrees.getPath(NBJavacTrees.java:83) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.resolveElementValue(ArithmeticUtilities.java:442) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.resolve(ArithmeticUtilities.java:490) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitMemberSelect(ArithmeticUtilities.java:390) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitMemberSelect(ArithmeticUtilities.java:197) at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2231) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:241) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitBinary(ArithmeticUtilities.java:527) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitBinary(ArithmeticUtilities.java:197) at com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:2112) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:241) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:197) at com.sun.source.util.TreeScanner.visitParenthesized(TreeScanner.java:598) at com.sun.tools.javac.tree.JCTree$JCParens.accept(JCTree.java:1968) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:234) at org.netbeans.modules.java.hints.ArithmeticUtilities.compute(ArithmeticUtilities.java:178) at org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.visitConditional(InfiniteRecursion.java:463) at org.netbeans.modules.java.hints.b
[jira] [Updated] (NETBEANS-3300) nb-javac 2.0 fails to parse JavaFX Sources
[ https://issues.apache.org/jira/browse/NETBEANS-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Neffenger updated NETBEANS-3300: - Description: In the description below, I'm using the JavaFX sample project for NetBeans defined in the [Non-Modular Ant|https://github.com/openjfx/samples/tree/master/IDE/NetBeans/Non-Modular/Java] directory of the [openjfx/samples|https://github.com/openjfx/samples] repository. Expand the Javadoc and Sources archives of the JavaFX Linux SDK as explained in the section _JavaFX SDK_ of the [parent issue|https://issues.apache.org/jira/browse/NETBEANS-3296#javafxsdk], and set up the project Compile Classpath as described in the section _Add to JAR files_. After those changes, the project Libraries should look like the following screenshot, with badges for the Javadoc and Sources on each icon of the Classpath list. !compile-classpath.png! Remove any directories for the Javadoc and Sources in the _JAVAFX13_ Global Library, and restart NetBeans. Also make sure the _nb-javac_ plug-in is installed. Open the file _Main.java_ and select the {{show()}} method. The Javadoc Window shows the method description, and the two right-most toolbar buttons are enabled to show the documentation in an external Web browser and to open the source in the editor. !javadoc-show.png! Navigate to the source by holding down the _Ctrl_ key while clicking the {{show()}} method. The file _Stage.java_ is opened in a new editor window, and the cursor is placed on the first line of the {{show()}} method. A red balloon with the number -1- appears in the notification area. !notification.png! Clicking the red balloon opens the Notification Window to show an Unexpected Exception. !unexpected-exception.png! Clicking the link in the notification shows the following seven exceptions: h2. {anchor:javalangassertionerror}java.lang.AssertionError {code} java.lang.AssertionError at com.sun.tools.javac.util.Assert.error(Assert.java:155) at com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62) at com.sun.tools.javac.comp.Modules.setCompilationUnitModules(Modules.java:559) at com.sun.tools.javac.comp.Modules.enter(Modules.java:287) at com.sun.tools.javac.comp.Modules.enter(Modules.java:268) at com.sun.tools.javac.comp.Modules.initModules(Modules.java:259) at com.sun.tools.javac.main.JavaCompiler.initModules(JavaCompiler.java:1126) at com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:393) at org.netbeans.modules.java.source.nbjavac.parsing.TreeLoader.loadTreeFor(TreeLoader.java:164) at com.sun.tools.javac.model.JavacElements.getTreeAndTopLevel(JavacElements.java:816) at com.sun.tools.javac.model.JavacElements.getTreeAndTopLevel(JavacElements.java:842) at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:418) at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:408) at org.netbeans.lib.nbjavac.services.NBJavacTrees.getPath(NBJavacTrees.java:83) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.resolveElementValue(ArithmeticUtilities.java:442) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.resolve(ArithmeticUtilities.java:490) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitMemberSelect(ArithmeticUtilities.java:390) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitMemberSelect(ArithmeticUtilities.java:197) at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2231) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:241) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitBinary(ArithmeticUtilities.java:527) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.visitBinary(ArithmeticUtilities.java:197) at com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:2112) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:241) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:197) at com.sun.source.util.TreeScanner.visitParenthesized(TreeScanner.java:598) at com.sun.tools.javac.tree.JCTree$JCParens.accept(JCTree.java:1968) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56) at org.netbeans.modules.java.hints.ArithmeticUtilities$VisitorImpl.scan(ArithmeticUtilities.java:234) at org.netbeans.modules.java.hints.ArithmeticUtilities.compute(ArithmeticUtilities.java:178) at org.netbeans.modules.java.hints.bugs.InfiniteRecursion$RecursionVisitor.visitConditional(InfiniteRecursion.java:463) at org.netbeans.modules.java.hints.b
[jira] [Updated] (NETBEANS-3300) nb-javac 2.0 fails to parse JavaFX Sources
[ https://issues.apache.org/jira/browse/NETBEANS-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Neffenger updated NETBEANS-3300: - Attachment: ide-log.txt > nb-javac 2.0 fails to parse JavaFX Sources > -- > > Key: NETBEANS-3300 > URL: https://issues.apache.org/jira/browse/NETBEANS-3300 > Project: NetBeans > Issue Type: Sub-task >Affects Versions: 11.2 > Environment: OpenJDK 13.0.1 on Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: compile-classpath.png, ide-log.txt, javadoc-show.png, > notification.png, ui-log.txt, unexpected-exception.png > > > More details to follow. Until then, please see the description in the parent > issue. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-3300) nb-javac 2.0 fails to parse JavaFX Sources
[ https://issues.apache.org/jira/browse/NETBEANS-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Neffenger updated NETBEANS-3300: - Attachment: unexpected-exception.png notification.png javadoc-show.png compile-classpath.png > nb-javac 2.0 fails to parse JavaFX Sources > -- > > Key: NETBEANS-3300 > URL: https://issues.apache.org/jira/browse/NETBEANS-3300 > Project: NetBeans > Issue Type: Sub-task >Affects Versions: 11.2 > Environment: OpenJDK 13.0.1 on Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: compile-classpath.png, ide-log.txt, javadoc-show.png, > notification.png, ui-log.txt, unexpected-exception.png > > > More details to follow. Until then, please see the description in the parent > issue. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-3300) nb-javac 2.0 fails to parse JavaFX Sources
[ https://issues.apache.org/jira/browse/NETBEANS-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Neffenger updated NETBEANS-3300: - Attachment: ui-log.txt > nb-javac 2.0 fails to parse JavaFX Sources > -- > > Key: NETBEANS-3300 > URL: https://issues.apache.org/jira/browse/NETBEANS-3300 > Project: NetBeans > Issue Type: Sub-task >Affects Versions: 11.2 > Environment: OpenJDK 13.0.1 on Ubuntu 16.04.6 LTS >Reporter: John Neffenger >Priority: Major > Attachments: compile-classpath.png, ide-log.txt, javadoc-show.png, > notification.png, ui-log.txt, unexpected-exception.png > > > More details to follow. Until then, please see the description in the parent > issue. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists