SIGFPE -> ArithmeticException ?

Andrew Haley aph@pasanda.cygnus.co.uk
Thu Jul 1 08:06:00 GMT 1999


> Date: Thu, 1 Jul 1999 08:02:19 -0700 (PDT)
> From: Anthony Green <green@cygnus.com>
> 
> Bryce wrote:
> > Now with that sorted out, can anyone tell me why the following one still
> > doesn't work? In this example, a SIGSEGV is never even generated:
> 
> My guess is that java.lang.String.toString() should test for null
> before simply returning `this'.

Of course, yes.  It's because java.lang.String is `final', so the
compiler passes `this' to String.toString() which just passes `this'
straight back.

Andrew.


More information about the Java mailing list