This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Wrong exception handler called?
- To: Fred Gray <fegray at uiuc dot edu>
- Subject: Re: Wrong exception handler called?
- From: "Gregory R. Warnes" <warnes at biostat dot washington dot edu>
- Date: Sat, 20 May 2000 19:28:25 +0000 (GMT)
- cc: java-discuss at sourceware dot cygnus dot com
On Fri, 19 May 2000, Fred Gray wrote:
[...]
FG>> In the process, I stumbled across what seems to be a serious
FG>> bug in libgcj's exception handling. Under some
FG>> circumstances, when a single try block has multiple catch
FG>> blocks associated with it, the wrong catch block is invoked.
[...]
FG>>
FG>> Interestingly enough, compiling directly from java source to native code
FG>> causes the problem to disappear. Also, if the main() method from Testcase1 is
FG>> merged into Testcase2, the problem goes away. Consequently, this smells much
FG>> more like a compiler problem than like a runtime problem.
Using the GCC 2.95.2 with Bryce's patches I've experienced method calls
being resolved to the wrong method. (Completely wrong method, IE wrong
NAME, wrong number and type of parameters, wrong return value!) This too
seemed to come and go as I rearranged the source or compiled from class
files instead of java.
I'm downloading the current CVS tree now to see if this problem goes away.
-Greg