Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2290

nb-javac 1.71 fails to parse JavaFX Sources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 11.0, 11.1, 11.2
    • None
    • java - Compiler
    • None
    • OpenJDK 13 on Ubuntu 16.04.6 LTS

    Description

      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:

      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) 
      

      immediately followed by:

      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)
      

      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.

      Attachments

        1. netbeans-exceptions.txt
          11 kB
          John Neffenger
        2. messages.txt
          18 kB
          John Neffenger
        3. nbjavac-active-errors.txt
          13 kB
          John Neffenger
        4. nbjavac-deactivated-errors.txt
          11 kB
          John Neffenger
        5. AssertionError1.txt
          5 kB
          John Neffenger
        6. AssertionError3.txt
          5 kB
          John Neffenger

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jgneff John Neffenger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: