persistence@glassfish.java.net

Code review for Issue 1673, 2674 fails to deserialize from byte array when run underJava 6

From: Wonseok Kim <guruwons_at_gmail.com>
Date: Fri, 23 Mar 2007 00:18:52 +0900

Hi Tom,

Please review the fix. I also added a test.
https://glassfish.dev.java.net/issues/show_bug.cgi?id=1673
https://glassfish.dev.java.net/issues/show_bug.cgi?id=2674

I found that there are other places using ClassLoader.loadClass() instead of
Class.forName(classname, initialize, classloader), but those won't try to
load array class - most of those is to load entity class. Thus I didn't
modify those codes. Should we replace all ClassLoader.loadClass() with
Class.forName(classname, initialize, classloader)?

I ran tests in JDK 6, there was no problem.

Thanks,
-Wonseok