diff -r 559c9a37d9f6 -r 852d8bb356bc src/share/classes/javax/lang/model/type/MirroredTypeException.java --- a/src/share/classes/javax/lang/model/type/MirroredTypeException.java Thu Jun 03 17:14:20 2010 -0700 +++ b/src/share/classes/javax/lang/model/type/MirroredTypeException.java Thu Jun 03 19:56:12 2010 -0700 @@ -42,7 +42,7 @@ * @see Element#getAnnotation(Class) * @since 1.6 */ -public class MirroredTypeException extends RuntimeException { +public class MirroredTypeException extends MirroredTypesException { private static final long serialVersionUID = 269; @@ -54,7 +54,7 @@ * @param type the type being accessed */ public MirroredTypeException(TypeMirror type) { - super("Attempt to access Class object for TypeMirror " + type.toString()); + super("Attempt to access Class object for TypeMirror " + type.toString(), type); this.type = type; } @@ -76,5 +76,6 @@ throws IOException, ClassNotFoundException { s.defaultReadObject(); type = null; + types = null; } }