Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2012-08-11 23:37:48 +0000
committerStephan Herrmann2012-08-11 23:37:48 +0000
commit2837b5015021f103efba2f5e3016537c011c603a (patch)
tree986bc4de39333db9eb8f83175b7042e257332c5c /testplugins
parent90a780a994adb8706c5f9a3ba54367ff38e70f02 (diff)
downloadorg.eclipse.objectteams-2837b5015021f103efba2f5e3016537c011c603a.tar.gz
org.eclipse.objectteams-2837b5015021f103efba2f5e3016537c011c603a.tar.xz
org.eclipse.objectteams-2837b5015021f103efba2f5e3016537c011c603a.zip
Acknowledge more errors reported after commit
7c4fe0c44f3b74ca0bc91ef9f01f7d2cbf2e8aa8 on behalf of Bug 374840 - [assist] callout completion after parameter mapping garbles the code
Diffstat (limited to 'testplugins')
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/calloutbinding/CalloutParameterBinding_LiftingAndLowering.java60
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/syntax/Syntax.java52
2 files changed, 103 insertions, 9 deletions
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/calloutbinding/CalloutParameterBinding_LiftingAndLowering.java b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/calloutbinding/CalloutParameterBinding_LiftingAndLowering.java
index 316aab86e..cea102d98 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/calloutbinding/CalloutParameterBinding_LiftingAndLowering.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/calloutbinding/CalloutParameterBinding_LiftingAndLowering.java
@@ -343,10 +343,68 @@ public class CalloutParameterBinding_LiftingAndLowering extends AbstractOTJLDTes
" \n"
},
"----------\n" +
- "1. ERROR in Team321ciwmp6.java (at line 5)\n" +
+ "1. ERROR in Team321ciwmp6.java (at line 1)\n" +
+ " \n" +
+ "public team class Team321ciwmp6 {\n" +
+ " ^\n" +
+ "Syntax error on token \";\", ++ expected before this token\n" +
+ "----------\n" +
+ "2. ERROR in Team321ciwmp6.java (at line 5)\n" +
" int doSomethingOther(int r1) -> int doSomething(int b1) wrong\n" +
" ^^^^^\n" +
"Syntax error on token \"wrong\", delete this token\n" +
+ "----------\n" +
+ "3. ERROR in Team321ciwmp6.java (at line 9)\n" +
+ " };\n" +
+ " ^\n" +
+ "Syntax error, insert \"}\" to complete ClassBody\n" +
+ "----------\n" +
+ "4. ERROR in Team321ciwmp6.java (at line 9)\n" +
+ " };\n" +
+ " ^\n" +
+ "Syntax error, insert \"}\" to complete ClassBody\n" +
+ "----------\n" +
+ "5. ERROR in Team321ciwmp6.java (at line 11)\n" +
+ " int doCalloutGetSomeFieldDoubled() -> get int someField\n" +
+ " ^^^\n" +
+ "Syntax error on token \"int\", @ expected\n" +
+ "----------\n" +
+ "6. ERROR in Team321ciwmp6.java (at line 11)\n" +
+ " int doCalloutGetSomeFieldDoubled() -> get int someField\n" +
+ " with {\n" +
+ " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" +
+ "Syntax error on tokens, ClassHeader expected instead\n" +
+ "----------\n" +
+ "7. ERROR in Team321ciwmp6.java (at line 12)\n" +
+ " with {\n" +
+ " result <- 2 * base.someField\n" +
+ " ^\n" +
+ "Syntax error on token \";\", & expected before this token\n" +
+ "----------\n" +
+ "8. ERROR in Team321ciwmp6.java (at line 13)\n" +
+ " result <- 2 * base.someField\n" +
+ " ^^^^^^^^^^^^^\n" +
+ "Syntax error on tokens, delete these tokens\n" +
+ "----------\n" +
+ "9. ERROR in Team321ciwmp6.java (at line 13)\n" +
+ " result <- 2 * base.someField\n" +
+ " ^^^^^\n" +
+ "Syntax error on tokens, delete these tokens\n" +
+ "----------\n" +
+ "10. ERROR in Team321ciwmp6.java (at line 13)\n" +
+ " result <- 2 * base.someField\n" +
+ " ^\n" +
+ "Syntax error, insert \"enum Identifier\" to complete EnumHeaderName\n" +
+ "----------\n" +
+ "11. ERROR in Team321ciwmp6.java (at line 13)\n" +
+ " result <- 2 * base.someField\n" +
+ " ^\n" +
+ "Syntax error, insert \"EnumBody\" to complete ClassBodyDeclarations\n" +
+ "----------\n" +
+ "12. ERROR in Team321ciwmp6.java (at line 14)\n" +
+ " };\n" +
+ " ^\n" +
+ "Syntax error on token \"}\", { expected\n" +
"----------\n");
}
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/syntax/Syntax.java b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/syntax/Syntax.java
index 97a3fe7bc..6fa7f55ea 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/syntax/Syntax.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/syntax/Syntax.java
@@ -851,22 +851,37 @@ public class Syntax extends AbstractOTJLDTest {
" \n"
},
"----------\n" +
- "1. ERROR in Team881br2.java (at line 8)\n" +
+ "1. ERROR in Team881br2.java (at line 6)\n" +
+ " with { result <- result.intValue() };\n" +
+ " ^\n" +
+ "Syntax error on token \";\", & expected before this token\n" +
+ "----------\n" +
+ "2. ERROR in Team881br2.java (at line 6)\n" +
+ " with { result <- result.intValue() };\n" +
+ " ^\n" +
+ "Syntax error on token \".\", delete this token\n" +
+ "----------\n" +
+ "3. ERROR in Team881br2.java (at line 6)\n" +
+ " with { result <- result.intValue() };\n" +
+ " ^\n" +
+ "Syntax error on token \")\", { expected after this token\n" +
+ "----------\n" +
+ "4. ERROR in Team881br2.java (at line 8)\n" +
" abstract int wrong(noTypeGiven);\n" +
" ^^^^^^\n" +
"Abstract methods do not specify a body\n" +
"----------\n" +
- "2. ERROR in Team881br2.java (at line 8)\n" +
+ "5. ERROR in Team881br2.java (at line 8)\n" +
" abstract int wrong(noTypeGiven);\n" +
" ^^^^^^^^^^^\n" +
"Syntax error on token \"noTypeGiven\", VariableDeclaratorId expected after this token\n" +
"----------\n" +
- "3. ERROR in Team881br2.java (at line 9)\n" +
+ "6. ERROR in Team881br2.java (at line 9)\n" +
" }\n" +
" ^\n" +
"Syntax error on token \"}\", delete this token\n" +
"----------\n" +
- "4. ERROR in Team881br2.java (at line 10)\n" +
+ "7. ERROR in Team881br2.java (at line 10)\n" +
" } \n" +
" ^\n" +
"Syntax error, insert \"}\" to complete ClassBody\n" +
@@ -904,22 +919,43 @@ public class Syntax extends AbstractOTJLDTest {
" \n"
},
"----------\n" +
- "1. ERROR in Team881br3.java (at line 14)\n" +
+ "1. ERROR in Team881br3.java (at line 7)\n" +
+ " with { result <- result.intValue() };\n" +
+ " ^\n" +
+ "Syntax error on token \";\", & expected before this token\n" +
+ "----------\n" +
+ "2. ERROR in Team881br3.java (at line 7)\n" +
+ " with { result <- result.intValue() };\n" +
+ " ^\n" +
+ "Syntax error on token \".\", delete this token\n" +
+ "----------\n" +
+ "3. ERROR in Team881br3.java (at line 7)\n" +
+ " with { result <- result.intValue() };\n" +
+ " ^\n" +
+ "Syntax error on token \")\", { expected after this token\n" +
+ "----------\n" +
+ "4. ERROR in Team881br3.java (at line 11)\n" +
+ " result -> result\n" +
+ " }\n" +
+ " ^^^^^^^^^^^^^^^^^^^^^\n" +
+ "Syntax error on tokens, delete these tokens\n" +
+ "----------\n" +
+ "5. ERROR in Team881br3.java (at line 14)\n" +
" abstract int wrong(noTypeGiven);\n" +
" ^^^^^^\n" +
"Abstract methods do not specify a body\n" +
"----------\n" +
- "2. ERROR in Team881br3.java (at line 14)\n" +
+ "6. ERROR in Team881br3.java (at line 14)\n" +
" abstract int wrong(noTypeGiven);\n" +
" ^^^^^^^^^^^\n" +
"Syntax error on token \"noTypeGiven\", VariableDeclaratorId expected after this token\n" +
"----------\n" +
- "3. ERROR in Team881br3.java (at line 15)\n" +
+ "7. ERROR in Team881br3.java (at line 15)\n" +
" }\n" +
" ^\n" +
"Syntax error on token \"}\", delete this token\n" +
"----------\n" +
- "4. ERROR in Team881br3.java (at line 16)\n" +
+ "8. ERROR in Team881br3.java (at line 16)\n" +
" } \n" +
" ^\n" +
"Syntax error, insert \"}\" to complete ClassBody\n" +

Back to the top