From: aclement Date: Fri, 6 May 2005 15:42:28 +0000 (+0000) Subject: Tests for 87282, 88606 X-Git-Tag: PRE_ANDY~366 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=51c018d9bbf0ecfb312cb2b56112c71cfc516c53;p=aspectj.git Tests for 87282, 88606 --- diff --git a/tests/java5/generics/bugs/PR87282.aj b/tests/java5/generics/bugs/PR87282.aj new file mode 100644 index 000000000..ff5e746a9 --- /dev/null +++ b/tests/java5/generics/bugs/PR87282.aj @@ -0,0 +1,15 @@ +import java.util.*; + +aspect introductionToA { + + private ArrayList PR87282.m_Array = new ArrayList(); + + public void PR87282.addB(B tmp){ + m_Array.add(tmp); + } + +} + +public class PR87282 {} + +class B {} diff --git a/tests/java5/generics/bugs/PR88606.aj b/tests/java5/generics/bugs/PR88606.aj new file mode 100644 index 000000000..d72418da5 --- /dev/null +++ b/tests/java5/generics/bugs/PR88606.aj @@ -0,0 +1,11 @@ + +public class PR88606 {} + +aspect Foo { + + private java.util.List PR88606.list; + + private void bar() { + java.util.List li = new PR88606().list; + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java b/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java index fe265050a..25efa7cbf 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java @@ -31,4 +31,13 @@ public class GenericsTests extends XMLBasedAjcTestCase { public void testPR91053() { runTest("Generics problem with Set"); } + + public void testPR87282() { + runTest("Compilation error on generic member introduction"); + } + + public void testPR88606() { + runTest("Parameterized types on introduced fields not correctly recognized"); + } + } diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index e9ef342c3..15afabbfe 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -2169,5 +2169,13 @@ + + + + + + + + \ No newline at end of file