Is this code suported by the language?
public class Main{
public enum Type1 {
INTEGER,
VOID
}
public enum Type2 {
INTEGER,
VOID
}
public static void main( String[] args){
System.out.println( (Type1.INTEGER == Type2.INTEGER)?"TRUE":"FALSE");
System.out.println("DONE");
}
}
or should it throw an exception, because of the comparison on diferent types
Original issue reported on code.google.com by ice.ta...@gmail.com on 3 Jul 2010 at 2:19
Original issue reported on code.google.com by
ice.ta...@gmail.com
on 3 Jul 2010 at 2:19