Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2013-04-24 22:17:48 +0000
committerJayaprakash Arthanareeswaran2013-05-16 10:59:08 +0000
commit40e5e462287b79ef847047a4bab6d5d9140df3cb (patch)
treede32ce8b3e3a242b6e56f5932116a88e1b1d2b43 /org.eclipse.jdt.core.tests.compiler
parentd82bc9dede0d0806039833ecdf21498718909ebc (diff)
downloadeclipse.jdt.core-40e5e462287b79ef847047a4bab6d5d9140df3cb.tar.gz
eclipse.jdt.core-40e5e462287b79ef847047a4bab6d5d9140df3cb.tar.xz
eclipse.jdt.core-40e5e462287b79ef847047a4bab6d5d9140df3cb.zip
Bug 406384 - Internal error with I20130413
Diffstat (limited to 'org.eclipse.jdt.core.tests.compiler')
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceTest.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceTest.java
index 21429c2991..c4f5b2e850 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceTest.java
@@ -33,6 +33,7 @@
* bug 402993 - [null] Follow up of bug 401088: Missing warning about redundant null check
* bug 403147 - [compiler][null] FUP of bug 400761: consolidate interaction between unboxing, NPE, and deferred checking
* bug 384380 - False positive on a « Potential null pointer access » after a continue
+ * bug 406384 - Internal error with I20130413
*******************************************************************************/
package org.eclipse.jdt.core.tests.compiler.regression;
@@ -1262,6 +1263,30 @@ public void test0037_autounboxing_5() {
"----------\n",
JavacTestOptions.Excuse.EclipseWarningConfiguredAsError);
}
+
+// Bug 406384 - Internal error with I20130413
+public void test0037_autounboxing_6() {
+ if (this.complianceLevel < ClassFileConstants.JDK1_5)
+ return;
+ runConformTest(
+ new String[] {
+ "X.java",
+ "import java.util.List;\n" +
+ "public class X {\n" +
+ " void test(List<String> l1, List<String> l2, int i, Object val) {\n" +
+ " for (String s1 : l1) {\n" +
+ " for (String s2 : l2) {\n" +
+ " switch (i) {\n" +
+ " case 1: \n" +
+ " boolean booleanValue = (Boolean)val;\n" +
+ " }\n" +
+ " }\n" +
+ " }\n" +
+ " }\n" +
+ "}\n"
+ });
+}
+
// null analysis -- autoboxing
public void test0040_autoboxing_compound_assignment() {
if (this.complianceLevel >= ClassFileConstants.JDK1_5) {

Back to the top