public class TopLevelType<E> { | |||||
public static class NestedType {} | |||||
} | |||||
aspect SomeAspect { | |||||
public void TopLevelType.NestedType.someMethod() { | |||||
} | |||||
} |
public class TopLevelType<E> { | |||||
public static class NestedType {} | |||||
public static void main(String[] args) { | |||||
TopLevelType tlt = new TopLevelType(); | |||||
NestedType nt = new NestedType(); | |||||
nt.someMethod(); | |||||
} | |||||
} | |||||
aspect SomeAspect { | |||||
public void TopLevelType.NestedType.someMethod() { | |||||
} | |||||
} | |||||
public class TopLevelType2<E> { | |||||
public static class NestedType {} | |||||
public static void main(String[] args) { | |||||
TopLevelType2 tlt = new TopLevelType2(); | |||||
NestedType nt = new NestedType(); | |||||
nt.someMethod(); | |||||
} | |||||
} | |||||
aspect SomeAspect { | |||||
public void TopLevelType2<String>.NestedType.someMethod() { // error - can't do that | |||||
} | |||||
} | |||||
public class TopLevelType3<E> { | |||||
public static class NestedType<T> {} | |||||
public static void main(String[] args) { | |||||
TopLevelType3 tlt = new TopLevelType3(); | |||||
NestedType nt = new NestedType(); | |||||
nt.someMethod(); | |||||
} | |||||
} | |||||
aspect SomeAspect { | |||||
public void TopLevelType3.NestedType<String>.someMethod() { // error - can't do that | |||||
} | |||||
} | |||||
import org.aspectj.testing.XMLBasedAjcTestCase; | import org.aspectj.testing.XMLBasedAjcTestCase; | ||||
public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase { | public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase { | ||||
// public void testItdOnInnerTypeOfGenericType_pr132349() { runTest("ITD on inner type of generic type");} | |||||
// Some @DeclareParents testing | // Some @DeclareParents testing | ||||
public void testAtDecp_1() { runTest("atDecp - simple");} | public void testAtDecp_1() { runTest("atDecp - simple");} |
<!-- atDecp end --> | <!-- atDecp end --> | ||||
<ajc-test dir="bugs151/pr132349" title="ITD on inner type of generic type"> | |||||
<compile files="TopLevelType.java" options="-1.5"/> | |||||
</ajc-test> | |||||
<ajc-test dir="bugs151/pr126560" title="@AJ deow doesn't throw an invalidAbsoluteTypeName when specify type in the same package"> | <ajc-test dir="bugs151/pr126560" title="@AJ deow doesn't throw an invalidAbsoluteTypeName when specify type in the same package"> | ||||
<compile files="pkg1/C.java, pkg1/A.java" options="-1.5"> | <compile files="pkg1/C.java, pkg1/A.java" options="-1.5"> | ||||
<message kind="error" line="8" text="error"/> | <message kind="error" line="8" text="error"/> |