New C++ ABI: patches.

Tom Tromey tromey@redhat.com
Sun Jan 7 15:03:00 GMT 2001


>>>>> "Alex" == Alexandre Petit-Bianco <apbianco@cygnus.com> writes:

Alex> This modification (I think) brings at least one regression, this
Alex> doesn't work anymore:

Alex>   class dotclass {
Alex>     static void foo (Object x) { System.out.println (x.toString()); }
Alex>     public static void main (String[] arg) { foo(int.class); }
Alex>   }

Alex> Can a runtime hacker look into this, as I'll be back online
Alex> Monday evening.


I haven't tried your patch yet.  As a guess though I'd say that the
bug is that you didn't update NUM_OBJECT_METHODS in include/jvm.h.
Also you might need to update the get_finalizer() methods (there are
two) in that same file.  (It is possible you won't have to if you
added the dummy methods to Object and not _JvObjectPrefix.)  Yes, this
stuff is super ugly.

Tom


More information about the Java mailing list