diff options
author | acolyer <acolyer> | 2005-08-31 13:48:16 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-31 13:48:16 +0000 |
commit | b953c0347a539890d9e1f87feabc78a3d687c50f (patch) | |
tree | 6e0f85d05777630a255f4586034253f3d6e7fc50 /tests | |
parent | 766509d831e8a8b6f0032bf7e726aa3e6fd4c745 (diff) | |
download | aspectj-b953c0347a539890d9e1f87feabc78a3d687c50f.tar.gz aspectj-b953c0347a539890d9e1f87feabc78a3d687c50f.zip |
test for pr95992
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs150/pr95992.aj | 14 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 6 |
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> + <!-- ============================================================================ --> <!-- ============================================================================ --> |