--- /dev/null
+import java.util.*;
+
+aspect introductionToA {
+
+ private ArrayList<B> PR87282.m_Array = new ArrayList<B>();
+
+ public void PR87282.addB(B tmp){
+ m_Array.add(tmp);
+ }
+
+}
+
+public class PR87282 {}
+
+class B {}
--- /dev/null
+
+public class PR88606 {}
+
+aspect Foo {
+
+ private java.util.List<Foo> PR88606.list;
+
+ private void bar() {
+ java.util.List<Foo> li = new PR88606().list;
+ }
+}
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");
+ }
+
}
<compile files="PR91053.aj" options="-1.5"/>
<run class="PR91053"/>
</ajc-test>
+
+ <ajc-test dir="java5/generics/bugs" title="Compilation error on generic member introduction" vm="1.5">
+ <compile files="PR87282.aj" options="-1.5"/>
+ </ajc-test>
+
+ <ajc-test dir="java5/generics/bugs" title="Parameterized types on introduced fields not correctly recognized" vm="1.5">
+ <compile files="PR88606.aj" options="-1.5"/>
+ </ajc-test>
</suite>
\ No newline at end of file