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 - Internal compiler throws NPE *sometimes*
Summary: Internal compiler throws NPE *sometimes*
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 major (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-27 10:41 UTC by Svata Dedic
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.