This is the mail archive of the java-discuss@sources.redhat.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: New C++ ABI: patches.


>>>>> "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

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