This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 7764

Summary: Internal compiler throws NPE *sometimes*
Product: java Reporter: Svata Dedic <sdedic>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: major CC: mfukala
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Svata Dedic 2000-09-27 10:41:24 UTC
Reported on behalf of Marek.Fukala@netbeans.com:

During execution of Marek's automated compiler test, the Internal compiler
sometimes throws NullPointerException and fails to compile a source.

The stacktrace is:
java.lang.NullPointerException
        at org.netbeans.lib.javac.v8.comp.Enter._case(Enter.java:495)
        at org.netbeans.lib.javac.v8.tree.Tree$ClassDef.visit(Tree.java:389)
        at org.netbeans.lib.javac.v8.comp.Enter.classEnter(Enter.java:451)
        at org.netbeans.lib.javac.v8.comp.Enter.classEnter(Enter.java:465)
        at org.netbeans.lib.javac.v8.comp.Enter._case(Enter.java:479)
        at org.netbeans.lib.javac.v8.tree.Tree$TopLevel.visit(Tree.java:326)
        at org.netbeans.lib.javac.v8.comp.Enter.classEnter(Enter.java:451)
        at org.netbeans.lib.javac.v8.comp.Enter.classEnter(Enter.java:465)
        at org.netbeans.lib.javac.v8.comp.Enter.main(Enter.java:635)
        at org.netbeans.modules.java.gj.V8Engine.compile(V8Engine.java:351)
        at
org.netbeans.modules.java.gj.JavaCompilerGroup.start(JavaCompilerGroup.java:111)
        at
org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread$GroupCompiler.run(CompilationEngineImpl.java:255)
Comment 1 Svata Dedic 2000-09-27 10:51:59 UTC
There was a race condition during initialization of the Internal Compiler and
the parser engine.
Comment 2 Quality Engineering 2003-07-01 13:20:32 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.