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

Print this page
rev 303 : 6593082: MirroredTypeException constructor does not throw NPE when type is null
Reviewed-by: jjg

@@ -52,11 +52,11 @@
      * 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);
+        super("Attempt to access Class object for TypeMirror " + type.toString());
         this.type = type;
     }
 
     /**
      * Returns the type mirror corresponding to the type being accessed.