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: Wrong exception handler called?


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


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