summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-31 13:48:16 +0000
committeracolyer <acolyer>2005-08-31 13:48:16 +0000
commitb953c0347a539890d9e1f87feabc78a3d687c50f (patch)
tree6e0f85d05777630a255f4586034253f3d6e7fc50 /tests
parent766509d831e8a8b6f0032bf7e726aa3e6fd4c745 (diff)
downloadaspectj-b953c0347a539890d9e1f87feabc78a3d687c50f.tar.gz
aspectj-b953c0347a539890d9e1f87feabc78a3d687c50f.zip
test for pr95992
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs150/pr95992.aj14
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml6
3 files changed, 23 insertions, 1 deletions
diff --git a/tests/bugs150/pr95992.aj b/tests/bugs150/pr95992.aj
new file mode 100644
index 000000000..fb60cdb9e
--- /dev/null
+++ b/tests/bugs150/pr95992.aj
@@ -0,0 +1,14 @@
+interface Base<T> {
+ static interface Inner {
+ }
+}
+class Test<T extends Test.InnerTest> implements Base<T> {
+ static class InnerTest implements Inner {
+ }
+}
+
+aspect ForceWeaverToUnpackAllTypes {
+
+ before() : staticinitialization(*) && !within(ForceWeaverToUnpackAllTypes) {}
+
+} \ No newline at end of file
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index 94823ac7b..5aa1df6cf 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -318,6 +318,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("switch on enum inside ITD method");
}
+ public void testInnerTypeOfGeneric() {
+ runTest("inner type of generic interface reference from parameterized type");
+ }
+
// helper methods.....
public SyntheticRepository createRepos(File cpentry) {
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index 2519f7933..ccd93100f 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -377,7 +377,11 @@
</stdout>
</run>
</ajc-test>
-
+
+ <ajc-test dir="bugs150" pr="95992" title="inner type of generic interface reference from parameterized type">
+ <compile files="pr95992.aj" options="-1.5"/>
+ </ajc-test>
+
<!-- ============================================================================ -->
<!-- ============================================================================ -->