diff options
| author | Jayaprakash Arthanareeswaran | 2014-03-26 12:38:29 +0000 |
|---|---|---|
| committer | Jayaprakash Arthanareeswaran | 2014-03-26 12:38:29 +0000 |
| commit | 0df9f1687f9162f2dcdfeec3aed4b01b8d385a19 (patch) | |
| tree | 30fe39974620a825ec16669c445c39e92d47e0a7 | |
| parent | f2f5ea4cf2079be3f19e2ca176bf9d102db15969 (diff) | |
| download | eclipse.jdt.core-0df9f1687f9162f2dcdfeec3aed4b01b8d385a19.tar.gz eclipse.jdt.core-0df9f1687f9162f2dcdfeec3aed4b01b8d385a19.tar.xz eclipse.jdt.core-0df9f1687f9162f2dcdfeec3aed4b01b8d385a19.zip | |
Fix for Bug 430867 - Test Case reports different set of errors for JRE
1.7 and JRE 1.8
| -rw-r--r-- | org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java index 6653e25c6f..06bebff401 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2013 IBM Corporation and others. + * Copyright (c) 2000, 2014 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -3381,6 +3381,20 @@ public void test429110() { return; this.runNegativeTest( new String[] { + "java/lang/annotation/ElementType.java", + "package java.lang.annotation;\n" + + "public enum ElementType {\n" + + " TYPE,\n" + + " FIELD,\n" + + " METHOD,\n" + + " PARAMETER,\n" + + " CONSTRUCTOR,\n" + + " LOCAL_VARIABLE,\n" + + " ANNOTATION_TYPE,\n" + + " PACKAGE,\n" + + " TYPE_PARAMETER,\n" + + " TYPE_USE\n" + + "}\n", "X.java", "import java.lang.annotation.ElementType;\n" + "import java.lang.annotation.Target;\n" + |
