Name: mc57594 Date: 02/28/97
// Simply run "javac bug.java" on Windows NT with JDK1.1 --
import java.util.*;
import java.lang.*;
public class bug // Javac 1.0.2 does not show this bug.
{
final char aChar='a';
Vector v = new Vector();
public bug(char x) {
/*--- if the body is commented out, javac 1.1 compiles.*/
switch (x) {
case aChar: v.addElement("a");
}
/* ---*/
}
public void ok(char x) {
switch (x) {
case aChar: v.addElement("a");
}
}
} // end of class bug.
company - SQRiBE Technologies , email - ###@###.###
======================================================================
- duplicates
-
JDK-4062064 javac: sun.tools.java.CompilerError: addReference <whatever> this
-
- Closed
-