comments on exception/lookup

Date view Thread view Subject view Author view

From: Godmar Back (gback@marker.cs.utah.edu)
Date: Wed Dec 16 1998 - 02:06:00 EST


 A few comments about these fixes:

+ I moved two functions from lookup.c to exception.c. This made them
  static. I hope nobody objects to that.

+ It is not at all clear what to do when we can't resolve a class
  that's used in a exception clause. However, the way it was before
  was wrong as it would lead to infinite recursion.

  What I do now is to record with a magic constant when I could not
  resolve a catch type, and then don't try again.

  Note that cases where catch types cannot be resolved are rare; for the
  limited test cases, this prevents Kaffe from blowing up now and shows
  the same external behavior as JDK1.1

By no means do I guarantee that it's "correct".

        - Godmar

----- Forwarded message from Godmar Back -----


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:19 EDT