Browse Source

moved pr132349 from 151 to 152

tags/V1_5_2rc1
aclement 18 years ago
parent
commit
054eb78c66

+ 0
- 8
tests/bugs151/pr132349/TopLevelType.java View File

@@ -1,8 +0,0 @@
public class TopLevelType<E> {
public static class NestedType {}
}

aspect SomeAspect {
public void TopLevelType.NestedType.someMethod() {
}
}

+ 16
- 0
tests/bugs152/pr132349/TopLevelType.java View File

@@ -0,0 +1,16 @@
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() {
}
}


+ 17
- 0
tests/bugs152/pr132349/TopLevelType2.java View File

@@ -0,0 +1,17 @@
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
}
}




+ 17
- 0
tests/bugs152/pr132349/TopLevelType3.java View File

@@ -0,0 +1,17 @@
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
}
}




+ 0
- 1
tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java View File

@@ -24,7 +24,6 @@ import org.aspectj.systemtest.ajc150.GenericsTests;
import 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
public void testAtDecp_1() { runTest("atDecp - simple");}

+ 0
- 4
tests/src/org/aspectj/systemtest/ajc151/ajc151.xml View File

@@ -74,10 +74,6 @@
<!-- 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">
<compile files="pkg1/C.java, pkg1/A.java" options="-1.5">
<message kind="error" line="8" text="error"/>

Loading…
Cancel
Save