mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testdata for IDEA-89801
This commit is contained in:
+7
@@ -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>;
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems/>
|
||||
+9
@@ -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();}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user