> I am trying to compile the attached program in javac. I've tested it
> under Sun's JDK 1.1.5 on Solaris, Symantec's Visual Cafe (forgot which
> version, but it's based on JDK 1.1.3) on Windows NT, and Blackdown's JDK
> 1.1.6v5 on Linux. All of them give the exact same result:
>
> java.lang.NullPointerException:
> at java.util.Hashtable.get(Hashtable.java)
> at sun.tools.asm.ConstantPool.put(ConstantPool.java)
> at sun.tools.asm.Instruction.collect(Instruction.java)
> at sun.tools.asm.Assembler.collect(Assembler.java)
> at sun.tools.javac.SourceClass.compileClass(SourceClass.java)
> at sun.tools.javac.SourceClass.compile(SourceClass.java)
> at sun.tools.javac.Main.compile(Main.java)
> at sun.tools.javac.Main.main(Main.java)
> binary += pixels[y *
>FONT_HEIGHT + x] == 0 ? System.out.print("1") : System.out.print("0");
Well, this line is just plain wrong. You cannot ? between two void
functions.
Shouldn't crash the compiler, of course.
M.