ObjectStreamClass serialization patch

Mark Wielaard mark@klomp.org
Fri Jan 17 17:12:00 GMT 2003


Hi,

The following fixes the Mauve serialization regressions. We used to call
Class.getDeclaredMethod("<clinit>") to see if an class had a class
initializer. But getDeclaredMethod was recently (correctly) fixed to
throw a NoSuchMethod error on "<init>" and "<clinit>" arguments. So now
we need a little bit of CNI support.

2003-01-17  Mark Wielaard  <mark@klomp.org>

        * Makefile.am (core_java_source_files): Add VMObjectStreamClass.java.
        (nat_source_files): Add natVMObjectStreamClass.cc.
        * Makefile.in: Regenerated.
        * gcj/javaprims.h (namespace java): Regenerated.
        * java/io/ObjectStreamClass.java (getClassUID): Call
        VMObjectStreamClass.hasClassInitializer().
        (hasClassInitializer): Removed.
        * java/io/VMObjectStreamClass.java: New class.
        * java/io/natVMObjectStreamClass.cc: New file.
        * java/lang/Class.h: Make java::io::VMObjectStreamClass friend class.

OK to commit?
I am running checks on the branch now.
OK to commit to the 3.3 branch if those succeed?

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjectStreamClass.patch
Type: text/x-patch
Size: 6258 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030117/b9cb9c7a/attachment.bin>


More information about the Java-patches mailing list