More evidence that javac is one of the dumbest compilers ever:
public class Foo extends java.lang.Object{ public Foo(); Code: 0: aload_0 1: invokespecial #1; //Method java/lang/Object."":()V 4: return public static void main(java.lang.String[]); Code: 0: aconst_null 1: instanceof #2; //class Foo 4: ifeq 15 7: getstatic #3; //Field java/lang/System.out:Ljava/io/PrintStream; 10: ldc #4; //String never! 12: invokevirtual #5; //Method java/io/PrintStream.println:(Ljava/lang/String;)V 15: return }
Ok, I’ll give them a break — this probably never comes up in a real application.
Comments are closed.