-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b78
-
x86
-
windows_2000
-
Verified
When trying to compile the following file with cldc.jar (j2me classes) as bootclasspath an exception is thrown.
public class CompilerBug {
private final String[] stringArray = {"s", "t", "r"};
public void foo() {
String str = "S = " + stringArray[0];
}
}
> javac -source 1.5 -bootclasspath cldcapi10.jar CompilerBug.java
CompilerBug.java:4: cannot access java.lang.StringBuilder
file java\lang\StringBuilder.class not found
String str = "S = " + stringArray[0];
^
CompilerBug.java:3: Internal error: stack sim error on
public void foo() {
String str = "S = " + stringArray[0];
}
public void foo() {
^
An exception has occurred in the compiler (1.5.0-beta2). Please file a bug at the Java Developer Connection (http://java
.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following di
agnostic in your report. Thank you.
java.lang.AssertionError
at com.sun.tools.javac.jvm.Gen.genMethod(Gen.java:911)
at com.sun.tools.javac.jvm.Gen.visitMethodDef(Gen.java:844)
at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:482)
at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:651)
at com.sun.tools.javac.jvm.Gen.genClass(Gen.java:2176)
at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:325)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:465)
at com.sun.tools.javac.main.Main.compile(Main.java:586)
at com.sun.tools.javac.main.Main.compile(Main.java:538)
at com.sun.tools.javac.Main.compile(Main.java:44)
at com.sun.tools.javac.Main.main(Main.java:35)
> java -version
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b44)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b44, mixed mode, sharing)
###@###.### 2004-03-31
public class CompilerBug {
private final String[] stringArray = {"s", "t", "r"};
public void foo() {
String str = "S = " + stringArray[0];
}
}
> javac -source 1.5 -bootclasspath cldcapi10.jar CompilerBug.java
CompilerBug.java:4: cannot access java.lang.StringBuilder
file java\lang\StringBuilder.class not found
String str = "S = " + stringArray[0];
^
CompilerBug.java:3: Internal error: stack sim error on
public void foo() {
String str = "S = " + stringArray[0];
}
public void foo() {
^
An exception has occurred in the compiler (1.5.0-beta2). Please file a bug at the Java Developer Connection (http://java
.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following di
agnostic in your report. Thank you.
java.lang.AssertionError
at com.sun.tools.javac.jvm.Gen.genMethod(Gen.java:911)
at com.sun.tools.javac.jvm.Gen.visitMethodDef(Gen.java:844)
at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:482)
at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:651)
at com.sun.tools.javac.jvm.Gen.genClass(Gen.java:2176)
at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:325)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:465)
at com.sun.tools.javac.main.Main.compile(Main.java:586)
at com.sun.tools.javac.main.Main.compile(Main.java:538)
at com.sun.tools.javac.Main.compile(Main.java:44)
at com.sun.tools.javac.Main.main(Main.java:35)
> java -version
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b44)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b44, mixed mode, sharing)
###@###.### 2004-03-31