I found this code in the class AnnotationBinder at line 1110

code:
else if ( returnedClass instanceof Serializable ) {

this check always returns true because a Class object is always
serializable. I change this way:

Code:
else if ( Serializable.class.isAssignableFrom(returnedClass) ) {


-- 
Pablo Nussembaum
Refert


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to