Wrong exception handler called?
Gregory R. Warnes
warnes@biostat.washington.edu
Sat May 20 12:30:00 GMT 2000
On 2000年5月19日, 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
More information about the Java
mailing list