[ 
https://issues.apache.org/jira/browse/NETBEANS-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16950382#comment-16950382
 ] 

John Neffenger edited comment on NETBEANS-2290 at 11/5/19 9:11 PM:
-------------------------------------------------------------------

I published the project which encounters this problem as the [JavaFX 
Graphics|https://github.com/jgneff/javafx-graphics] repository on GitHub. The 
project contains the JavaFX Graphics module as a NetBeans project using Apache 
Ant, OpenJDK 13.0.1, and the early-access JavaFX Linux SDK and documentation. 
See the README file for details.

I don't yet have a minimal working example, but at least this project is 
relatively easy to set up and always hits the problem. I tested it again last 
night on NetBeans 11.2-beta2. NetBeans opens the project without problems when 
_nb-javac_ is not installed. After installing _nb-javac_, the project opens 
with compilation errors and errors reported in the Notifications Center window.

Note that deactivating the _nb-javac_ plugin is not enough. You must uninstall 
it to prevent its use. Clear the NetBeans cache between tests if you don't see 
a change in behaviour, although that wasn't necessary in my tests.

The two different errors reported last night with _nb-javac_ were:
 * java.lang.AssertionError: Analyzer error when processing: static final 
Map<String, Integer> pseudoClassMap = new HashMap<String, Integer>(64)
 * java.lang.AssertionError: Analyzer error when processing: private final 
Map<PartitionKey, Partition> idMap = new HashMap<PartitionKey, Partition>()

The full stack reports for these errors are attached as the files 
[^AssertionError1.txt] and [^AssertionError3.txt].


was (Author: jgneff):
I published the project which encounters this problem as the [Monocle 
EPD|https://github.com/jgneff/monocle-epd] repository on GitHub. The project 
contains the JavaFX Graphics module as a NetBeans project using Apache Ant, 
OpenJDK 13, and the early-access JavaFX Linux SDK and documentation. See the 
README file for details.

I don't yet have a minimal working example, but at least this project is 
relatively easy to set up and always hits the problem. I tested it again last 
night on NetBeans 11.2-beta2. NetBeans opens the project without problems when 
_nb-javac_ is not installed. After installing _nb-javac_, the project opens 
with compilation errors and errors reported in the Notifications Center window.

Note that deactivating the _nb-javac_ plugin is not enough. You must uninstall 
it to prevent its use. Clear the NetBeans cache between tests if you don't see 
a change in behaviour, although that wasn't necessary in my tests.

The two different errors reported last night with _nb-javac_ were:
 * java.lang.AssertionError: Analyzer error when processing: static final 
Map<String, Integer> pseudoClassMap = new HashMap<String, Integer>(64)
 * java.lang.AssertionError: Analyzer error when processing: private final 
Map<PartitionKey, Partition> idMap = new HashMap<PartitionKey, Partition>()

The full stack reports for these errors are attached as the files 
[^AssertionError1.txt] and [^AssertionError3.txt].

> nb-javac 1.71 fails to parse JavaFX Sources
> -------------------------------------------
>
>                 Key: NETBEANS-2290
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2290
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Compiler
>    Affects Versions: 11.0, 11.1, 11.2
>         Environment: OpenJDK 13 on Ubuntu 16.04.6 LTS
>            Reporter: John Neffenger
>            Priority: Major
>         Attachments: AssertionError1.txt, AssertionError3.txt, messages.txt, 
> nbjavac-active-errors.txt, nbjavac-deactivated-errors.txt, 
> netbeans-exceptions.txt
>
>
> In NetBeans 9.0, 10.0, and 11.0, I get the following two errors every time I 
> open the NetBeans project containing the OpenJFX graphics module 
> (javafx.graphics) the first time after clearing the cache. If I click through 
> the classes that failed to compile when opening the project, I can eventually 
> get NetBean to compile all of them successfully.
> The errors are:
> {code:java}
> java.lang.AssertionError: Analyzer error when processing:
>     private LinkedList<RunLoopControl> activeRunLoops
>         = new LinkedList<RunLoopControl>()
>     at com.sun.tools.javac.util.Assert.error(Assert.java:162)
> [catch] at org.netbeans.modules.java.source.nbjavac.indexing.
>     OnePassCompileWorker.compile(OnePassCompileWorker.java:257) 
> {code}
> immediately followed by:
> {code:java}
> java.lang.NullPointerException at com.sun.tools.javac.comp.
>     Modules.setCompilationUnitModules(Modules.java:421)
> [catch] at org.netbeans.modules.java.source.nbjavac.indexing.
>     MultiPassCompileWorker.compile(MultiPassCompileWorker.java:204)
> {code}
> The full text of the error and exception are attached below as the file 
> _netbeans-exceptions.txt_.
> This might be the same problem reported for NetBeans 9.0 in [NETBEANS-1142: 
> Exception when scanning 
> projects|https://issues.apache.org/jira/browse/NETBEANS-1142].



--
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

Reply via email to