gcj bug: case constants
Jeff Sturm
jsturm@sigma6.com
Tue Jun 22 07:48:00 GMT 1999
gcj throws an error compiling switch statements with "static final"
elements as constants:
ObjectInputStream.java: In class `java.io.ObjectInputStream':
ObjectInputStream.java: In method `readObject()':
ObjectInputStream.java:27: Constant expression required.
case TC_NULL:
^
TC_NULL is declared as "public static final int". Other constant values
work fine, but it seems there is no way to use symbolic names in a
switch...case.
--
Jeff Sturm
jsturm@sigma6.com
More information about the Java
mailing list