testdata for IDEA-89801

This commit is contained in:
Anna Kozlova
2012-08-07 20:17:03 +04:00
parent 2d2a52650c
commit 5d76e83d34
5 changed files with 20 additions and 0 deletions
@@ -0,0 +1,7 @@
import java.util.*;
class Test {
{
Map<Number, String> map1 = null;
Map<Integer, String> map2 = <error descr="Inconvertible types; cannot cast 'java.util.Map<java.lang.Number,java.lang.String>' to 'java.util.Map<java.lang.Integer,java.lang.String>'">(Map<Integer, String>) map1</error>;
}
}
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems/>
@@ -0,0 +1,9 @@
import java.util.*;
import java.util.Map;
class Test {
{
Map<Number, String> map1 = null;
Map<Integer, String> map2 = (Map<Integer, String>) (Map<?, ?>) map1;
}
}
@@ -137,6 +137,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testIDEA57339() throws Exception {doTest(false);}
public void testIDEA57340() throws Exception {doTest(false);}
public void testIDEA89771() throws Exception {doTest(false);}
public void testIDEA89801() throws Exception {doTest(false);}
public void testInconvertibleTypes() throws Exception {doTest(false);}
public void testJavaUtilCollections_NoVerify() throws Exception {
@@ -37,6 +37,7 @@ public class RedundantCast15Test extends InspectionTestCase {
public void testEnumConstant() throws Exception { doTest(); }
public void testRawCast() throws Exception { doTest();}
public void testCastToUnboundWildcard() throws Exception { doTest();}
public void testRawCastsToAvoidIncompatibility() throws Exception { doTest();}