summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc169/IntertypeTests.java8
-rw-r--r--tests/src/org/aspectj/systemtest/ajc169/intertype.xml10
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc169/IntertypeTests.java b/tests/src/org/aspectj/systemtest/ajc169/IntertypeTests.java
index 6719b16ba..d18fe1320 100644
--- a/tests/src/org/aspectj/systemtest/ajc169/IntertypeTests.java
+++ b/tests/src/org/aspectj/systemtest/ajc169/IntertypeTests.java
@@ -60,6 +60,14 @@ public class IntertypeTests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("separate compilation");
}
+ /**
+ * Interestingly this test makes no reference in the type Basic to the new ITD'd inner type, this causes the Basic type to be
+ * missing the innertype attribute!
+ */
+ public void testSeparateCompilation2() throws Exception {
+ runTest("separate compilation - 2");
+ }
+
public void testErrorTargettingTypeThatAlreadyHasIt() {
runTest("already has it");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc169/intertype.xml b/tests/src/org/aspectj/systemtest/ajc169/intertype.xml
index de6854faf..063bee514 100644
--- a/tests/src/org/aspectj/systemtest/ajc169/intertype.xml
+++ b/tests/src/org/aspectj/systemtest/ajc169/intertype.xml
@@ -11,6 +11,16 @@
</stdout>
</run>
</ajc-test>
+
+ <ajc-test dir="features169/itdInnerTypes/separate2" title="separate compilation - 2">
+ <compile files="Basic.java" options="-1.5"/>
+ <compile files="Basic2.java"/>
+ <run class="Basic2">
+ <stdout>
+ <line text="done"/>
+ </stdout>
+ </run>
+ </ajc-test>
<ajc-test dir="features169/itdInnerTypes/eleven" title="already has it">
<compile files="Target.java Aspect1.java" options="-1.5">