fix casting to primitives according to the spec (IDEA-131107; IDEA-148880)

This commit is contained in:
Anna Kozlova
2015-12-10 17:01:55 +01:00
parent 3f72d428a8
commit 81a6cceb35
5 changed files with 63 additions and 3 deletions
@@ -546,7 +546,11 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testIDEA130243() throws Exception {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}
public void testCastingToPrimitive() throws Exception {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}
public void testProvablyDistinctForWildcardsWithArrayBounds() throws Exception {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}
@@ -942,4 +942,8 @@ public class GenericsHighlighting8Test extends LightDaemonAnalyzerTestCase {
public void testIDEA139096() throws Exception {
doTest();
}
public void testCastingCapturedWildcardToPrimitive() throws Exception {
doTest();
}
}