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