From: aclement Date: Thu, 9 Jun 2005 13:59:15 +0000 (+0000) Subject: Tests for pr99089 - commented out in Ajc150Tests.java X-Git-Tag: PRE_ANDY~183 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=81c78513ef92422e97e06002545c3e0ad6a9027c;p=aspectj.git Tests for pr99089 - commented out in Ajc150Tests.java --- diff --git a/tests/bugs150/pr99089/DataClass.java b/tests/bugs150/pr99089/DataClass.java new file mode 100644 index 000000000..cbfb7905d --- /dev/null +++ b/tests/bugs150/pr99089/DataClass.java @@ -0,0 +1,6 @@ +import java.util.Vector; + +public class DataClass { + private Vector v = new Vector(); + private Vector getV() { return v; } +} diff --git a/tests/bugs150/pr99089/TracingAspect.java b/tests/bugs150/pr99089/TracingAspect.java new file mode 100644 index 000000000..ba3ef7ef6 --- /dev/null +++ b/tests/bugs150/pr99089/TracingAspect.java @@ -0,0 +1,7 @@ +import java.util.Vector; + +privileged aspect TracingAspect { + before(DataClass dc): execution(* DataClass.doit()) && this(dc) { + Vector myV = dc.getV(); + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index 5e27fc0a3..95ff941cc 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -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) { diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 1412d4dfc..eab14b2b3 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -112,6 +112,10 @@ + + + + @@ -1006,8 +1010,8 @@ - +