--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java Sat Sep 18 09:54:51 2010 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java Sat Sep 18 09:56:23 2010 -0700
@@ -1422,7 +1422,8 @@
// Compute the result type.
Type restype = mtype.getReturnType();
- assert restype.tag != WILDCARD : mtype;
+ if (restype.tag == WILDCARD)
+ throw new AssertionError(mtype);
// as a special case, array.clone() has a result that is
// the same as static type of the array being cloned