@@ -0,0 +1,6 @@ | |||
import java.util.Vector; | |||
public class DataClass { | |||
private Vector<Object> v = new Vector<Object>(); | |||
private Vector<Object> getV() { return v; } | |||
} |
@@ -0,0 +1,7 @@ | |||
import java.util.Vector; | |||
privileged aspect TracingAspect { | |||
before(DataClass dc): execution(* DataClass.doit()) && this(dc) { | |||
Vector<Object> myV = dc.getV(); | |||
} | |||
} |
@@ -182,6 +182,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { | |||
runTest("static import failures"); | |||
} | |||
// public void testGenerics_pr99089() { | |||
// runTest("ArrayIndexOutOfBoundsException - Generics in privileged aspects"); | |||
// } | |||
// helper methods..... | |||
public SyntheticRepository createRepos(File cpentry) { |
@@ -112,6 +112,10 @@ | |||
<run class="PR78021"/> | |||
</ajc-test> | |||
<ajc-test dir="bugs150/pr99089" vm="1.5" pr="99089" title="ArrayIndexOutOfBoundsException - Generics in privileged aspects"> | |||
<compile files="DataClass.java,TracingAspect.java" options="-1.5"/> | |||
</ajc-test> | |||
<ajc-test dir="bugs150" pr="79554" title="Return in try-block disables catch-block if final-block is present"> | |||
<compile files="PR79554.java"/> | |||
<run class="PR79554"/> | |||
@@ -1006,8 +1010,8 @@ | |||
<compile files="P.java,Q.java,R.java"/> | |||
<run class="P"> | |||
<stderr> | |||
<line text="R reporting 3"/> | |||
<line text="Q reporting 2"/> | |||
<line text="R reporting 3"/> | |||
</stderr> | |||
</run> | |||
</ajc-test> |