This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: SIGFPE -> ArithmeticException ?
- To: green@cygnus.com
- Subject: Re: SIGFPE -> ArithmeticException ?
- From: Andrew Haley <aph@pasanda.cygnus.co.uk>
- Date: 1 Jul 1999 15:06:37 -0000
- CC: bryce@albatross.co.nz, java-discuss@sourceware.cygnus.com
> 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.