diff options
| author | Markus Keller | 2013-10-23 17:41:59 +0000 |
|---|---|---|
| committer | Markus Keller | 2013-10-23 17:41:59 +0000 |
| commit | 85e8ac1cb08d7a07857723eab3efc805d5dbc4ea (patch) | |
| tree | 86937064fd48e62408b94ef7882cc8105b002c6f | |
| parent | 66b64feede726295fd7895916d71772cc3c15672 (diff) | |
| download | eclipse.jdt.core-85e8ac1cb08d7a07857723eab3efc805d5dbc4ea.tar.gz eclipse.jdt.core-85e8ac1cb08d7a07857723eab3efc805d5dbc4ea.tar.xz eclipse.jdt.core-85e8ac1cb08d7a07857723eab3efc805d5dbc4ea.zip | |
Bug 419748: [1.8][dom ast] MethodDeclaration's receiverType cannot be AnnotatableType
improved test case for bug 419974
| -rw-r--r-- | org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter18Test.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter18Test.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter18Test.java index 5d45f927e7..0ddfc9f916 100644 --- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter18Test.java +++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter18Test.java @@ -2069,11 +2069,11 @@ public class ASTConverter18Test extends ConverterTestSetup { "public class X<T extends Exception> {\n" + " class Y<K, V> {\n" + " class Z {\n" + -//TODO: bad AST node structure: -// " public Z(@A X<T>.@B Y<K, V> Y.this){\n}" + -// " public void foo(@B Y<K, V>.@C Z this){\n}\n" + - " public Z(X<T>.@B Y<K, V> Y.this){\n}" + - " public void foo(Y<K, V>.@C Z this){\n}\n" + +//TODO: bad AST node structure, see https://bugs.eclipse.org/419974#c2 : +// " public Z(@A X<T>.@B Y<K, V> Y.this){ }\n" + +// " public void foo(@B Y<K, V>.@C Z this){ }\n" + + " public Z(X<T>.@B Y<K, V> Y.this){ }\n" + + " public void foo(Y<K, V>.@C Z this){ }\n" + " }\n" + " }\n" + "}\n" + @@ -2095,7 +2095,7 @@ public class ASTConverter18Test extends ConverterTestSetup { assertEquals("Not a method Declaration", ASTNode.METHOD_DECLARATION, node.getNodeType()); MethodDeclaration method = (MethodDeclaration) node; Type receiver = method.getReceiverType(); -//TODO: bad AST node structure: +//TODO: bad AST node structure, see https://bugs.eclipse.org/419974#c2 : // assertEquals("Incorrect receiver", "@A X<T>.@B Y<K,V>", ((QualifiedType) receiver).toString()); // assertEquals("Incorrect method signature", "public Z(@A X<T>.@B Y<K,V> Y.this){\n}\n", method.toString()); assertEquals("Incorrect receiver", "X<T>.@B Y<K,V>", ((ParameterizedType) receiver).toString()); @@ -2103,7 +2103,7 @@ public class ASTConverter18Test extends ConverterTestSetup { method = (MethodDeclaration) type.bodyDeclarations().get(1); receiver = method.getReceiverType(); -//TODO: bad AST node structure: +//TODO: bad AST node structure, see https://bugs.eclipse.org/419974#c2 : // assertEquals("Incorrect receiver", "@B Y<K,V>.@C Z", ((QualifiedType) receiver).toString()); // assertEquals("Incorrect method signature", "public void foo(@B Y<K,V>.@C Z this){\n}\n", method.toString()); assertEquals("Incorrect receiver", "Y<K,V>.@C Z", ((QualifiedType) receiver).toString()); |
