changeset 3088:7e1e8c568a26

Improve an error message.
author wmdietl
date Wed, 04 Dec 2013 18:40:14 -0500
parents bbf852ffad28
children 113d21b7ced6
files src/share/classes/com/sun/tools/javac/model/JavacTypes.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/model/JavacTypes.java	Wed Dec 04 18:38:14 2013 -0500
+++ b/src/share/classes/com/sun/tools/javac/model/JavacTypes.java	Wed Dec 04 18:40:14 2013 -0500
@@ -134,8 +134,8 @@
             throw new IllegalArgumentException(t.toString());
         Type unboxed = types.unboxedType((Type) t);
         if (! unboxed.isPrimitive())    // only true primitives, not void
-            throw new IllegalArgumentException(t.toString());
-        return (PrimitiveType)unboxed;
+            throw new IllegalArgumentException(String.format("unboxed (%s) is not primitive:  t=%s, this=%s, this.types=%s", unboxed, t, this, this.types));
+        return (PrimitiveType) unboxed;
     }
 
     public TypeMirror capture(TypeMirror t) {