src/share/classes/javax/lang/model/type/MirroredTypeException.java

Print this page

        

*** 40,50 **** * @author Peter von der Ahé * @see MirroredTypesException * @see Element#getAnnotation(Class) * @since 1.6 */ ! public class MirroredTypeException extends RuntimeException { private static final long serialVersionUID = 269; private transient TypeMirror type; // cannot be serialized --- 40,50 ---- * @author Peter von der Ahé * @see MirroredTypesException * @see Element#getAnnotation(Class) * @since 1.6 */ ! public class MirroredTypeException extends MirroredTypesException { private static final long serialVersionUID = 269; private transient TypeMirror type; // cannot be serialized
*** 52,62 **** * Constructs a new MirroredTypeException for the specified type. * * @param type the type being accessed */ public MirroredTypeException(TypeMirror type) { ! super("Attempt to access Class object for TypeMirror " + type.toString()); this.type = type; } /** * Returns the type mirror corresponding to the type being accessed. --- 52,62 ---- * Constructs a new MirroredTypeException for the specified type. * * @param type the type being accessed */ public MirroredTypeException(TypeMirror type) { ! super("Attempt to access Class object for TypeMirror " + type.toString(), type); this.type = type; } /** * Returns the type mirror corresponding to the type being accessed.
*** 74,80 **** --- 74,81 ---- */ private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { s.defaultReadObject(); type = null; + types = null; } }