From 3358b8fc435899d470590992e07bf92edc6c593f Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 23 Oct 2012 20:15:34 +0200 Subject: [PATCH] testdata for IDEA-57348 --- .../advHighlighting7/GenericsArrayCreation.java | 8 ++++++++ .../codeInsight/daemon/LightAdvHighlightingJdk7Test.java | 1 + 2 files changed, 9 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/GenericsArrayCreation.java diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/GenericsArrayCreation.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/GenericsArrayCreation.java new file mode 100644 index 000000000000..eae80e075501 --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/GenericsArrayCreation.java @@ -0,0 +1,8 @@ +class A { + class B{} +} +class C extends A { + { + B[] o = {}; + } +} \ No newline at end of file diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/LightAdvHighlightingJdk7Test.java b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/LightAdvHighlightingJdk7Test.java index d06651a0ab87..bc9297736922 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/LightAdvHighlightingJdk7Test.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/LightAdvHighlightingJdk7Test.java @@ -149,6 +149,7 @@ public class LightAdvHighlightingJdk7Test extends LightDaemonAnalyzerTestCase { public void testTryWithResourcesWarn() throws Exception { doTest(true, false, new DefUseInspection()); } public void testSafeVarargsApplicability() throws Exception { doTest(true, false); } public void testUncheckedGenericsArrayCreation() throws Exception { doTest(true, false); } + public void testGenericsArrayCreation() throws Exception { doTest(false, false); } public void testPreciseRethrow() throws Exception { doTest(false, false); } public void testImprovedCatchAnalysis() throws Exception { doTest(true, false); } public void testPolymorphicTypeCast() throws Exception { doTest(true, false); }