Browse Source

itd inners - fixed: needed a reference or wouldn't create the attribute.

tags/V1_6_11M1
aclement 13 years ago
parent
commit
12eed0f91f

+ 11
- 0
tests/features169/itdInnerTypes/separate2/Basic.java View File

@@ -0,0 +1,11 @@
public class Basic {
public static void main(String []argv) {
// new _();
System.out.println("done");
}
}

aspect XX {
public static class Basic._ {
}
}

+ 6
- 0
tests/features169/itdInnerTypes/separate2/Basic2.java View File

@@ -0,0 +1,6 @@
public class Basic2 {
public static void main(String []argv) {
new Basic._();
System.out.println("done");
}
}

+ 8
- 0
tests/src/org/aspectj/systemtest/ajc169/IntertypeTests.java View File

@@ -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");
}

+ 10
- 0
tests/src/org/aspectj/systemtest/ajc169/intertype.xml View File

@@ -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">

Loading…
Cancel
Save