Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2012-11-14 22:33:11 +0000
committerStephan Herrmann2012-11-14 22:33:11 +0000
commit8151bedcfa5e56a28bcf36ec1f15603651f5bb16 (patch)
tree881cda17b046de9a01dfc9381a7d096aef69f958 /testplugins
parent03b7368f0fdfc0a3d76f2eab09bdaf89a65308d3 (diff)
downloadorg.eclipse.objectteams-8151bedcfa5e56a28bcf36ec1f15603651f5bb16.tar.gz
org.eclipse.objectteams-8151bedcfa5e56a28bcf36ec1f15603651f5bb16.tar.xz
org.eclipse.objectteams-8151bedcfa5e56a28bcf36ec1f15603651f5bb16.zip
Bug 394263 - Team with generic type parameter causes role inheritance
error
Diffstat (limited to 'testplugins')
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/other/Java5.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/other/Java5.java b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/other/Java5.java
index 05586c57b..45141bd2a 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/other/Java5.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/other/Java5.java
@@ -34,7 +34,7 @@ public class Java5 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[] { "testA112_genericTeam3"};
+// TESTS_NAMES = new String[] { "testA112_genericTeam4"};
// TESTS_NUMBERS = new int[] { 1459 };
// TESTS_RANGE = new int[] { 1097, -1 };
}
@@ -3122,6 +3122,19 @@ public class Java5 extends AbstractOTJLDTest {
"----------\n",
"OK");
}
+
+ // Bug 394263 - Team with generic type parameter causes role inheritance error
+ public void testA112_genericTeam4() {
+ runConformTest(
+ new String[] {
+ "MyTeam.java",
+ "public team class MyTeam<T> { \n" +
+ " protected class MyRole {} \n" +
+ " protected class MySubRole extends MyRole {}\n" +
+ "}"
+ }
+ );
+ }
// a static method in a role file suppresses an nls warning
// Bug 321352 - [compiler][reconciler] reporting of non-externalized string constants in role files
@@ -5195,4 +5208,6 @@ public class Java5 extends AbstractOTJLDTest {
"}\n"
});
}
+
+
}

Back to the top