--- /dev/null
+public class Basic {
+ public static void main(String []argv) {
+ // new _();
+ System.out.println("done");
+ }
+}
+
+aspect XX {
+ public static class Basic._ {
+ }
+}
--- /dev/null
+public class Basic2 {
+ public static void main(String []argv) {
+ new Basic._();
+ System.out.println("done");
+ }
+}
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");
}
</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">