Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2012-08-25 19:41:08 +0000
committerStephan Herrmann2012-08-25 19:57:56 +0000
commit43574f1fc7591c15e8cf23b6296e4a8c86b9455d (patch)
tree77877ab3b49791b760758b827742ec240630eb41 /testplugins
parent7a2451786b146c9a1039d0f9bab4542d0e3aa1bd (diff)
downloadorg.eclipse.objectteams-43574f1fc7591c15e8cf23b6296e4a8c86b9455d.tar.gz
org.eclipse.objectteams-43574f1fc7591c15e8cf23b6296e4a8c86b9455d.tar.xz
org.eclipse.objectteams-43574f1fc7591c15e8cf23b6296e4a8c86b9455d.zip
Bug 387996 - "no method found" warning due to field named like package
Fixed wrongly interpreting test.T.R
Diffstat (limited to 'testplugins')
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/callinbinding/CallinMethodBinding.java24
1 files changed, 23 insertions, 1 deletions
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/callinbinding/CallinMethodBinding.java b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/callinbinding/CallinMethodBinding.java
index 51560d242..2c95abbef 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/callinbinding/CallinMethodBinding.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/callinbinding/CallinMethodBinding.java
@@ -34,7 +34,7 @@ public class CallinMethodBinding extends AbstractOTJLDTest {
// Static initializer to specify tests subset using TESTS_* static variables
// All specified tests which does not belong to the class are skipped...
static {
-// TESTS_NAMES = new String[] { "test726_callinWithHiddenLiftingProblem4"};
+// TESTS_NAMES = new String[] { "testBug387996a" };
// TESTS_NUMBERS = new int[] { 1459 };
// TESTS_RANGE = new int[] { 1097, -1 };
}
@@ -8122,4 +8122,26 @@ public class CallinMethodBinding extends AbstractOTJLDTest {
options,
null/*requester*/);
}
+
+ // Bug 387996 - "no method found" warning due to field named like package
+ // secondary issue: we saw "T1 cannot be resolved or is not a field" flagged against the role methodspec
+ public void testBug387996a() {
+ runConformTest(
+ new String[] {
+ "test/T1.java",
+ "package test;\n" +
+ "public team class T1 {\n" +
+ " private Object test; // = name of package\n" +
+ " protected class R playedBy B base when (true) {\n" +
+ " void bar() {}\n" +
+ " bar <- after foo; // <- warning!\n" +
+ " }\n" +
+ "}",
+ "test/B.java",
+ "package test;\n" +
+ "public class B { \n" +
+ " public void foo() {};\n" +
+ "}"
+ });
+ }
}

Back to the top