Browse Source

Tests for 87282, 88606

tags/PRE_ANDY
aclement 19 years ago
parent
commit
51c018d9bb

+ 15
- 0
tests/java5/generics/bugs/PR87282.aj View File

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

+ 11
- 0
tests/java5/generics/bugs/PR88606.aj View File

@@ -0,0 +1,11 @@

public class PR88606 {}

aspect Foo {

private java.util.List<Foo> PR88606.list;
private void bar() {
java.util.List<Foo> li = new PR88606().list;
}
}

+ 9
- 0
tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java View File

@@ -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");
}
}

+ 8
- 0
tests/src/org/aspectj/systemtest/ajc150/ajc150.xml View File

@@ -2169,5 +2169,13 @@
<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>

Loading…
Cancel
Save