[Bug java/19070] internal compiler error: in generate_bytecode_conditional, at java/jcf-write.c:1271

dan at bolser dot co dot uk gcc-bugzilla@gcc.gnu.org
Sat Dec 18 19:07:00 GMT 2004


------- Additional Comments From dan at bolser dot co dot uk  2004-12-18 19:07 -------
The following code...

public class testish {
    public static void main (String args[]){
	Number pang = null;
	double pong = pang.doubleValue();
	if (pong != 0){
	    System.out.println("well...");
	}
    }
}

Causes a runtime null pointer exception... 

Exception in thread "main" java.lang.NullPointerException
   at testish.main(java.lang.String[]) (Unknown Source)

I guess it should be a compile time error, although I don't know.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19070



More information about the Gcc-bugs mailing list