langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 6710 b14e6fe7b290
parent 6594 d43f068fba19
child 6721 d92073844278
--- 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