non-reifiable type check: testdata for IDEA-139091

This commit is contained in:
Anna Kozlova
2015-04-27 09:32:26 +02:00
parent 435c501181
commit ad26842083
2 changed files with 10 additions and 0 deletions
@@ -0,0 +1,9 @@
import java.util.Map;
class Test {
void baz(){
bar(<error descr="Generic array creation">new Map<?, Integer>[3]</error>);
}
void bar(Map<?, Integer> ... x){ }
}
@@ -73,6 +73,7 @@ public class LightAdvHighlightingJdk6Test extends LightDaemonAnalyzerTestCase {
public void testIDEA79251() { doTest(false, false); }
public void testIDEA65473() { doTest(false, false); }
public void testIDEA61415() { doTest(false, false); }
public void testGenericArrayCreationWithGenericTypeWithOneUnboundedWildcardOneNormalParams() { doTest(false, false); }
public void testAgentPremain() {
doTest(false, false);
}