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

changeset 577
852d8bb356bc
parent 554
9d9f26857129
child 798
4868a36f6fd8
     1.1 --- a/src/share/classes/javax/lang/model/type/MirroredTypeException.java	Thu Jun 03 17:14:20 2010 -0700
     1.2 +++ b/src/share/classes/javax/lang/model/type/MirroredTypeException.java	Thu Jun 03 19:56:12 2010 -0700
     1.3 @@ -42,7 +42,7 @@
     1.4   * @see Element#getAnnotation(Class)
     1.5   * @since 1.6
     1.6   */
     1.7 -public class MirroredTypeException extends RuntimeException {
     1.8 +public class MirroredTypeException extends MirroredTypesException {
     1.9  
    1.10      private static final long serialVersionUID = 269;
    1.11  
    1.12 @@ -54,7 +54,7 @@
    1.13       * @param type  the type being accessed
    1.14       */
    1.15      public MirroredTypeException(TypeMirror type) {
    1.16 -        super("Attempt to access Class object for TypeMirror " + type.toString());
    1.17 +        super("Attempt to access Class object for TypeMirror " + type.toString(), type);
    1.18          this.type = type;
    1.19      }
    1.20  
    1.21 @@ -76,5 +76,6 @@
    1.22          throws IOException, ClassNotFoundException {
    1.23          s.defaultReadObject();
    1.24          type = null;
    1.25 +        types = null;
    1.26      }
    1.27  }

mercurial