Hi, On Fri, 2005-07-22 at 08:28 +0200, Jeroen Frijters wrote: > > The question is whether or not we are throwing the right exception at > > the right place. I haven't looked closely at the code yet > > > > Can someone come up with a nice (or probably contrived) testcase for > > this? > > See attached. Sun throws a NoClassDefFoundError on serialization and the > expected exception (i.e. either the Error or > ExceptionInInitializerError) on deserialization. Both exceptions are > throws from ObjectStreamClass.getSerialVersionUID().
Thanks. I turned this into some mauve tests. See gnu/testlet/java/io/Serializable/BreakMe. It seems we already have the correct behavior since all these tests PASS. Or I implemented the tests wrong of course. Please check. Cheers, Mark
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Classpath mailing list Classpath@gnu.org http://lists.gnu.org/mailman/listinfo/classpath