Will Shackleford created NETBEANS-5131:
------------------------------------------

             Summary: Parser highlights "errors" in code that compiles : 
com.sun.tools.javac.util.FatalError: Fatal Error: Unable to find package 
java.lang in classpath or bootclasspath 
                 Key: NETBEANS-5131
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5131
             Project: NetBeans
          Issue Type: Bug
    Affects Versions: 12.2
         Environment: Linux Mint 20, JDK 1.8.0_272
            Reporter: Will Shackleford
         Attachments: messages.log


Numerous "errors" are highlighted in the editor for code that compiles fine as 
if packages and
classes that the parser should  find it does not. 

the log contains this:


An error occurred during parsing of 
'/home/shackle/NetBeansProjects/crcl/tools/java/crcl4java/crcl4java-ui/src/test/java/crcl/ui/CmdLineClientIT.java'.
 Please report a bug against java/source and attach dump file 
'/home/shackle/.netbeans/12.2/var/log/CmdLineClientIT.dump'.
Caused: com.sun.tools.javac.util.FatalError: Fatal Error: Unable to find 
package java.lang in classpath or bootclasspath
        at 
jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.resolveImports(TypeEnter.java:354)
        at 
jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.runPhase(TypeEnter.java:321)
        at 
jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.doCompleteEnvs(TypeEnter.java:282)
        at 
jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:251)
        at 
jdk.compiler/com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:198)
        at 
jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:642)
        at 
jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1326)
        at jdk.compiler/com.sun.tools.javac.comp.Enter.complete(Enter.java:583)
        at jdk.compiler/com.sun.tools.javac.comp.Enter.main(Enter.java:560)
        at 
jdk.compiler/com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1066)
        at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:336)
        at 
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:273)
        at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:715)
        at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:524)
        at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:144)
        at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
        at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)
        at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
        at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to