Segfault on calling methods on null:

Godmar Back gback at cs.utah.edu
Wed Mar 24 07:51:44 PST 1999


 What platform?
It works for me on Linux/jit:

gback at peerless [473](~/kaffe/test/fail) > kaffe NullTest
java.lang.NullPointerException
        at NullTest.main(NullTest.java:3)

Also, could you setenv KAFFE_DEBUG gdb, run it, and mail me a
backtrace?

	- Godmar

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