Friday, March 31, 2006

A bug in JDK 6 beta 2 build 78?

Quote from my report to Sun:

dateCreated: Fri Mar 31 01:01:58 MST 2006
type: bug
cust_name: t800t8
cust_email: t800t8@yahoo.com
jdcid: t800t8@yahoo.com
status: Waiting
category: java
subcategory: classes_lang
company: t800t8
release: mustang
hardware: x86
OSversion: win_xp
priority: 4
synopsis: Error:Compiler internal error. Process terminated with
exit code 4
description: FULL PRODUCT VERSION :
java version "1.6.0-beta2"
Java(TM) SE Runtime Environment (build 1.6.0-beta2-b78)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b78, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [version 5.1.2600] with SP2

A DESCRIPTION OF THE PROBLEM :
When I use JetBrains' IntelliJ IDEA Demetra build 5201 to compile my
source code

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
+ Create a single module project in IntelliJ IDEA Demetra build 5201
+ Create a simple class, it just prints "Hello World" to the console
+ Press Ctrl + F9 to compile project


ERROR MESSAGES/STACK TRACES THAT OCCUR :
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

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
public class Test {

public static void main(String[] args) {
System.out.println("Hello World");
}

}
---------- END SOURCE ----------
workaround:
comments: (company - t800t8 , email - t800t8@yahoo.com)

Update: Sun confirmed me that it is a bug. See it here and vote it: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6407011

Update: This bug is fixed in build 79

No comments: