This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]