JDK 8 code review request for 6226715: (ann) java.lang.annotation.AnnotationTypeMismatchException could not be serialized (original) (raw)

Joe Darcy joe.darcy at oracle.com
Thu Jun 16 00:35:38 UTC 2011


Hello.

Please review my JDK 8 fix for

6226715: (ann) java.lang.annotation.AnnotationTypeMismatchException 

could not be serialized http://cr.openjdk.java.net/~darcy/6226715.0/

This fix includes the unusual step of marking a non-transient field transient in a serialiable class, but the class can't meaningfully be serialized today anyway so this change should have no adverse effect in practice.

For good code hygiene, the new readObject method explicitly sets the now transient field in question.

Thanks,

-Joe



More information about the core-libs-dev mailing list