This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/19070] internal compiler error: in generate_bytecode_conditional, at java/jcf-write.c:1271
- From: "dan at bolser dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 18 Dec 2004 19:07:11 -0000
- Subject: [Bug java/19070] internal compiler error: in generate_bytecode_conditional, at java/jcf-write.c:1271
- References: <20041218185620.19070.dan@bolser.co.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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