diff options
| author | ssankaran | 2014-01-14 05:09:31 +0000 |
|---|---|---|
| committer | ssankaran | 2014-01-14 05:09:31 +0000 |
| commit | a17a9082800c426c4984b5ef76877aab1c8e09e6 (patch) | |
| tree | 93908d4f7c77f7c19cda36ecb7a4934bbc075e9d | |
| parent | f39f5ec882dc43ec2cc9b847a4ac8fd1d905874c (diff) | |
| download | eclipse.jdt.core-a17a9082800c426c4984b5ef76877aab1c8e09e6.tar.gz eclipse.jdt.core-a17a9082800c426c4984b5ef76877aab1c8e09e6.tar.xz eclipse.jdt.core-a17a9082800c426c4984b5ef76877aab1c8e09e6.zip | |
[1.8] Test (disabled) for Bug 425599 - [1.8][compiler] ISE when trying
to compile qualified and annotated class instance creation (
| -rw-r--r-- | org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TypeAnnotationTest.java | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TypeAnnotationTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TypeAnnotationTest.java index 2c8a8ad4c4..f3717951c3 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TypeAnnotationTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TypeAnnotationTest.java @@ -6336,6 +6336,33 @@ public class TypeAnnotationTest extends AbstractRegressionTest { }, "OK", customOptions); - } + } + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=425599, [1.8][compiler] ISE when trying to compile qualified and annotated class instance creation + public void _test425599() { + + Map customOptions = getCompilerOptions(); + customOptions.put(CompilerOptions.OPTION_Store_Annotations, CompilerOptions.ENABLED); + runConformTest( + new String[] { + "X.java", + "import java.lang.annotation.ElementType;\n" + + "import java.lang.annotation.Target;\n" + + "public class X {\n" + + " Object ax = new @A Outer().new Middle<String>();\n" + + " public static void main(String args[]) {\n" + + " System.out.println(\"OK\");\n" + + " }\n" + + "}\n" + + "@Target(ElementType.TYPE_USE) @interface A {}\n" + + "class Outer {\n" + + " class Middle<E> {\n" + + " class Inner<I> {}\n" + + " @A Middle<Object>.@A Inner<Character> ax = new pack.@A Outer().new @A Middle<@A Object>().new @A Inner<@A Character>(null);\n" + + " }\n" + + "}\n" + }, + "OK", + customOptions); + } } |
