diff -r bf020de5a6db -r 831467c4c6a7 src/share/classes/com/sun/tools/javac/model/JavacTypes.java --- a/src/share/classes/com/sun/tools/javac/model/JavacTypes.java Mon Jun 24 22:03:57 2013 -0400 +++ b/src/share/classes/com/sun/tools/javac/model/JavacTypes.java Tue Jun 25 16:12:53 2013 +0100 @@ -139,7 +139,7 @@ Type unboxed = types.unboxedType((Type) t); if (! unboxed.isPrimitive()) // only true primitives, not void throw new IllegalArgumentException(t.toString()); - return unboxed; + return (PrimitiveType)unboxed; } public TypeMirror capture(TypeMirror t) {