Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2012-12-29 00:06:53 +0000
committerStephan Herrmann2012-12-29 13:51:17 +0000
commitf7413877c2f7b5f99b967776c612c9550597df4f (patch)
treefce59e500379b48affac999fa431619a277e5229
parentca867f292206008dbadbfb3b97ee5a6b1bd96b9b (diff)
downloadorg.eclipse.objectteams-f7413877c2f7b5f99b967776c612c9550597df4f.tar.gz
org.eclipse.objectteams-f7413877c2f7b5f99b967776c612c9550597df4f.tar.xz
org.eclipse.objectteams-f7413877c2f7b5f99b967776c612c9550597df4f.zip
New regression test: externalized role in base-side of declared lifting
(no failure observed).
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/liftlower/DeclaredLifting.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/liftlower/DeclaredLifting.java b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/liftlower/DeclaredLifting.java
index 37ca0ecc3..0dbb0dd20 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/liftlower/DeclaredLifting.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/liftlower/DeclaredLifting.java
@@ -1274,4 +1274,35 @@ public class DeclaredLifting extends AbstractOTJLDTest {
},
"OK0");
}
+
+ public void test6113_declaredLiftingOfExternalizedRole1() {
+ runConformTest(new String[] {
+ "Team6113dloer1_2.java",
+ "public team class Team6113dloer1_2 {\n" +
+ "final static Team6113dloer1_1 other = new Team6113dloer1_1();\n" +
+ " protected class R playedBy R<@other> {\n" +
+ " void test() -> void test();\n" +
+ " }\n" +
+ " void test(R<@other> as R r) {\n" +
+ " r.test();\n" +
+ " }\n" +
+ " public static void main(String[] args) {\n" +
+ " other.val = \"OK\";\n" +
+ " new Team6113dloer1_2().test(other.getR());\n" +
+ " }\n" +
+ "}\n",
+ "Team6113dloer1_1.java",
+ "public team class Team6113dloer1_1 {\n" +
+ "public String val;\n" +
+ "public class R {\n" +
+ " public void test() {\n" +
+ " System.out.print(val);\n" +
+ " }\n" +
+ "}\n" +
+ "public R getR() { return new R(); }\n" +
+ "}\n"
+ },
+ "OK");
+ }
+
}

Back to the top