Segfault on calling methods on null:
Jules Bean
jmlb2 at hermes.cam.ac.uk
Wed Mar 24 06:00:39 PST 1999
This should be a NullPointer exception, but it segfaults:
public class NullTest {
static void main(String[] args) {
((Object)(null)).toString();
}
}
Jules
/----------------+-------------------------------+---------------------\
| Jelibean aka | jules at jellybean.co.uk | 6 Evelyn Rd |
| Jules aka | jules at debian.org | Richmond, Surrey |
| Julian Bean | jmlb2 at hermes.cam.ac.uk | TW9 2TF *UK* |
+----------------+-------------------------------+---------------------+
| War doesn't demonstrate who's right... just who's left. |
| When privacy is outlawed... only the outlaws have privacy. |
\----------------------------------------------------------------------/
More information about the kaffe
mailing list