IDEA cannot compile source code with JDK 6 beta 2 build 78

When I try to compile my source code, I got this error:

Information:An exception has occurred in the compiler (1.6.0-beta2). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
Information:java.lang.NullPointerException
Information: at com.sun.tools.javac.util.DefaultFileManager.listAll(DefaultFileManager.java:293)
Information: at com.sun.tools.javac.util.DefaultFileManager.list(DefaultFileManager.java:700)
Information: at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1954)
Information: at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1703)
Information: at com.sun.tools.javac.code.Symbol.complete(Symbol.java:380)
Information: at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:259)
Information: at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:445)
Information: at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:223)
Information: at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:237)
Information: at com.sun.tools.javac.comp.Enter.complete(Enter.java:431)
Information: at com.sun.tools.javac.comp.Enter.main(Enter.java:416)
Information: at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:727)
Information: at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:634)
Information: at com.sun.tools.javac.main.Main.compile(Main.java:333)
Information: at com.sun.tools.javac.main.Main.compile(Main.java:255)
Information: at com.sun.tools.javac.main.Main.compile(Main.java:246)
Information: at com.sun.tools.javac.Main.compile(Main.java:70)
Information: at com.sun.tools.javac.Main.main(Main.java:55)
Information: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Information: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Information: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Information: at java.lang.reflect.Method.invoke(Method.java:589)
Information: at com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:56)
Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
Error:Compiler internal error. Process terminated with exit code 4

3 comments

Hello t800t8,

looks like you've found a bug in Mustang latest javac. AFAIK they've changed
lots of code in b78, so it is likely to cause exceptions.
I'd rather file that one to them.

Eugene.

When I try to compile my source code, I got this error:

Information:An exception has occurred in the compiler (1.6.0-beta2).
Please file a bug at the Java Developer Connection
(http://java.sun.com/webapps/bugreport) after checking the Bug Parade
for duplicates. Include your program and the following diagnostic in
your report. Thank you.
Information:java.lang.NullPointerException
Information: at
com.sun.tools.javac.util.DefaultFileManager.listAll(DefaultFileManager
.java:293)
Information: at
com.sun.tools.javac.util.DefaultFileManager.list(DefaultFileManager.ja
va:700)
Information: at
com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1954)
Information: at
com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1703)
Information: at
com.sun.tools.javac.code.Symbol.complete(Symbol.java:380)
Information: at
com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:259)
Information: at
com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:4
45)
Information: at
com.sun.tools.javac.comp.Enter.classEnter(Enter.java:223)
Information: at
com.sun.tools.javac.comp.Enter.classEnter(Enter.java:237)
Information: at
com.sun.tools.javac.comp.Enter.complete(Enter.java:431)
Information: at com.sun.tools.javac.comp.Enter.main(Enter.java:416)
Information: at
com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:727
)
Information: at
com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:634)
Information: at com.sun.tools.javac.main.Main.compile(Main.java:333)
Information: at com.sun.tools.javac.main.Main.compile(Main.java:255)
Information: at com.sun.tools.javac.main.Main.compile(Main.java:246)
Information: at com.sun.tools.javac.Main.compile(Main.java:70)
Information: at com.sun.tools.javac.Main.main(Main.java:55)
Information: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
Information: at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
ava:39)
Information: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:25)
Information: at java.lang.reflect.Method.invoke(Method.java:589)
Information: at
com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:56)
Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
Error:Compiler internal error. Process terminated with exit code 4



0

Please sign in to leave a comment.