Name: joT67522 Date: 10/30/97
class Bug {
public final int EQUAL = 0;
Object pan;
Bug (int type) {
switch (type) {
case EQUAL: {
Object ob = new Object();
pan = ob; // offending code
break;
}
}
}
}
javac Bug.java gives:
sun.tools.java.CompilerError: addReference Bug this
at sun.tools.java.ClassDefinition.addReference(ClassDefinition.java)
at sun.tools.java.ClassDefinition.getReference(ClassDefinition.java)
....etc....
(Review ID: 19497)
======================================================================
- duplicates
-
JDK-4062064 javac: sun.tools.java.CompilerError: addReference <whatever> this
-
- Closed
-