This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SIGFPE -> ArithmeticException ?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]