-
Bug
-
Resolution: Fixed
-
P2
-
5.0
FULL PRODUCT VERSION :
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux peach.cslab 2.6.3-14mdk #1 Fri Aug 13 11:14:25 EDT 2004 i686 unknown unknown GNU/Linux
A DESCRIPTION OF THE PROBLEM :
Compiler crashes with
An exception has occurred in the compiler (1.5.0_02). 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.
java.lang.AssertionError
at com.sun.tools.javac.comp.Lower.access(Lower.java:958)
at com.sun.tools.javac.comp.Lower.access(Lower.java:1051)
at com.sun.tools.javac.comp.Lower.makeOwnerThis(Lower.java:1382)
at com.sun.tools.javac.comp.Lower.accessBase(Lower.java:877)
at com.sun.tools.javac.comp.Lower.access(Lower.java:1037)
at com.sun.tools.javac.comp.Lower.visitIdent(Lower.java:2762)
at com.sun.tools.javac.tree.Tree$Ident.accept(Tree.java:1009)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitApply(Lower.java:2487)
at com.sun.tools.javac.tree.Tree$Apply.accept(Tree.java:819)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.tree.TreeTranslator.visitExec(TreeTranslator.java:227)
at com.sun.tools.javac.tree.Tree$Exec.accept(Tree.java:734)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:54)
at com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:145)
at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:2944)
at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:540)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.tree.TreeTranslator.visitMethodDef(TreeTranslator.java:129)
at com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2281)
at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2200)
at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:482)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2003)
at com.sun.tools.javac.tree.Tree$ClassDef.accept(Tree.java:438)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitNewClass(Lower.java:2340)
at com.sun.tools.javac.tree.Tree$NewClass.accept(Tree.java:845)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1907)
at com.sun.tools.javac.comp.Lower.boxArgs(Lower.java:2530)
at com.sun.tools.javac.comp.Lower.visitApply(Lower.java:2433)
at com.sun.tools.javac.tree.Tree$Apply.accept(Tree.java:819)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.tree.TreeTranslator.visitExec(TreeTranslator.java:227)
at com.sun.tools.javac.tree.Tree$Exec.accept(Tree.java:734)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2244)
at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2200)
at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:482)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2003)
at com.sun.tools.javac.tree.Tree$ClassDef.accept(Tree.java:438)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2003)
at com.sun.tools.javac.tree.Tree$ClassDef.accept(Tree.java:438)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1915)
at com.sun.tools.javac.comp.Lower.translateTopLevelClass(Lower.java:3081)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:496)
at com.sun.tools.javac.main.Main.compile(Main.java:592)
at com.sun.tools.javac.main.Main.compile(Main.java:544)
at com.sun.tools.javac.Main.compile(Main.java:67)
at com.sun.tools.javac.Main.main(Main.java:52)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Try compiling this program:
----------------------------------------
// Bug.java
// produces: An exception has occurred in the compiler (1.5.0_02)
// ...
// java.lang.AssertionError
// at com.sun.tools.javac.comp.Lower.access(Lower.java:958)
// at com.sun.tools.javac.comp.Lower.access(Lower.java:1051)
// at com.sun.tools.javac.comp.Lower.makeOwnerThis(Lower.java:1382)
// at com.sun.tools.javac.comp.Lower.accessBase(Lower.java:877)
// at com.sun.tools.javac.comp.Lower.access(Lower.java:1037)
// at com.sun.tools.javac.comp.Lower.visitIdent(Lower.java:2762)
// ...
//
class Bug {
static class T { }
static class E {
private Runnable what;
E(Runnable what) {
this.what = what;
}
}
class R extends E {
R(final T t) {
super(new Runnable() {
public void run() {
s(t);
}
});
}
}
void s(T t) { }
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The compiler should not crash.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
// Bug.java
// produces: An exception has occurred in the compiler (1.5.0_02)
// ...
// java.lang.AssertionError
// at com.sun.tools.javac.comp.Lower.access(Lower.java:958)
// at com.sun.tools.javac.comp.Lower.access(Lower.java:1051)
// at com.sun.tools.javac.comp.Lower.makeOwnerThis(Lower.java:1382)
// at com.sun.tools.javac.comp.Lower.accessBase(Lower.java:877)
// at com.sun.tools.javac.comp.Lower.access(Lower.java:1037)
// at com.sun.tools.javac.comp.Lower.visitIdent(Lower.java:2762)
// ...
//
class Bug {
static class T { }
static class E {
private Runnable what;
E(Runnable what) {
this.what = what;
}
}
class R extends E {
R(final T t) {
super(new Runnable() {
public void run() {
s(t);
}
});
}
}
void s(T t) { }
}
---------- END SOURCE ----------
###@###.### 2005-05-06 21:12:54 GMT
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux peach.cslab 2.6.3-14mdk #1 Fri Aug 13 11:14:25 EDT 2004 i686 unknown unknown GNU/Linux
A DESCRIPTION OF THE PROBLEM :
Compiler crashes with
An exception has occurred in the compiler (1.5.0_02). 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.
java.lang.AssertionError
at com.sun.tools.javac.comp.Lower.access(Lower.java:958)
at com.sun.tools.javac.comp.Lower.access(Lower.java:1051)
at com.sun.tools.javac.comp.Lower.makeOwnerThis(Lower.java:1382)
at com.sun.tools.javac.comp.Lower.accessBase(Lower.java:877)
at com.sun.tools.javac.comp.Lower.access(Lower.java:1037)
at com.sun.tools.javac.comp.Lower.visitIdent(Lower.java:2762)
at com.sun.tools.javac.tree.Tree$Ident.accept(Tree.java:1009)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitApply(Lower.java:2487)
at com.sun.tools.javac.tree.Tree$Apply.accept(Tree.java:819)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.tree.TreeTranslator.visitExec(TreeTranslator.java:227)
at com.sun.tools.javac.tree.Tree$Exec.accept(Tree.java:734)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:54)
at com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:145)
at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:2944)
at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:540)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.tree.TreeTranslator.visitMethodDef(TreeTranslator.java:129)
at com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2281)
at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2200)
at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:482)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2003)
at com.sun.tools.javac.tree.Tree$ClassDef.accept(Tree.java:438)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitNewClass(Lower.java:2340)
at com.sun.tools.javac.tree.Tree$NewClass.accept(Tree.java:845)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1907)
at com.sun.tools.javac.comp.Lower.boxArgs(Lower.java:2530)
at com.sun.tools.javac.comp.Lower.visitApply(Lower.java:2433)
at com.sun.tools.javac.tree.Tree$Apply.accept(Tree.java:819)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.tree.TreeTranslator.visitExec(TreeTranslator.java:227)
at com.sun.tools.javac.tree.Tree$Exec.accept(Tree.java:734)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2244)
at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2200)
at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:482)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2003)
at com.sun.tools.javac.tree.Tree$ClassDef.accept(Tree.java:438)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:2003)
at com.sun.tools.javac.tree.Tree$ClassDef.accept(Tree.java:438)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1895)
at com.sun.tools.javac.comp.Lower.translate(Lower.java:1915)
at com.sun.tools.javac.comp.Lower.translateTopLevelClass(Lower.java:3081)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:496)
at com.sun.tools.javac.main.Main.compile(Main.java:592)
at com.sun.tools.javac.main.Main.compile(Main.java:544)
at com.sun.tools.javac.Main.compile(Main.java:67)
at com.sun.tools.javac.Main.main(Main.java:52)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Try compiling this program:
----------------------------------------
// Bug.java
// produces: An exception has occurred in the compiler (1.5.0_02)
// ...
// java.lang.AssertionError
// at com.sun.tools.javac.comp.Lower.access(Lower.java:958)
// at com.sun.tools.javac.comp.Lower.access(Lower.java:1051)
// at com.sun.tools.javac.comp.Lower.makeOwnerThis(Lower.java:1382)
// at com.sun.tools.javac.comp.Lower.accessBase(Lower.java:877)
// at com.sun.tools.javac.comp.Lower.access(Lower.java:1037)
// at com.sun.tools.javac.comp.Lower.visitIdent(Lower.java:2762)
// ...
//
class Bug {
static class T { }
static class E {
private Runnable what;
E(Runnable what) {
this.what = what;
}
}
class R extends E {
R(final T t) {
super(new Runnable() {
public void run() {
s(t);
}
});
}
}
void s(T t) { }
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The compiler should not crash.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
// Bug.java
// produces: An exception has occurred in the compiler (1.5.0_02)
// ...
// java.lang.AssertionError
// at com.sun.tools.javac.comp.Lower.access(Lower.java:958)
// at com.sun.tools.javac.comp.Lower.access(Lower.java:1051)
// at com.sun.tools.javac.comp.Lower.makeOwnerThis(Lower.java:1382)
// at com.sun.tools.javac.comp.Lower.accessBase(Lower.java:877)
// at com.sun.tools.javac.comp.Lower.access(Lower.java:1037)
// at com.sun.tools.javac.comp.Lower.visitIdent(Lower.java:2762)
// ...
//
class Bug {
static class T { }
static class E {
private Runnable what;
E(Runnable what) {
this.what = what;
}
}
class R extends E {
R(final T t) {
super(new Runnable() {
public void run() {
s(t);
}
});
}
}
void s(T t) { }
}
---------- END SOURCE ----------
###@###.### 2005-05-06 21:12:54 GMT