This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
gnu.gcj.runtime.StackTrace.findCallerClass() (was Re: Patch: Remove exception catching from normal path in Arrays.equals.)
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: tromey at redhat dot com, java-patches at gcc dot gnu dot org
- Date: Tue, 09 Sep 2003 14:46:05 -0500
- Subject: gnu.gcj.runtime.StackTrace.findCallerClass() (was Re: Patch: Remove exception catching from normal path in Arrays.equals.)
- Reply-to: gnustuff at thisiscool dot com
Hi Andrew,
> > I'll submit a patch for this. I thought about the conditional HAVE_BACKTRACE
> > too. The crux of the question is: on failure, should the helper method do
> > some sort of exception throwing or return a null value? You said previously
> > that you didn't like the null checking....
>
>If HAVE_BACKTRACE is not set, do not scan the stack but return null.
>
>If HAVE_BACKTRACE is set, we believe that backtrace() works. So,
>throw an exception if we don't find a caller.
>
>I await the firestorm...
Um, I thought about this too but, you know the obviously glaring question
so can you pre-emptively answer it?
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/