diff options
author | acolyer <acolyer> | 2005-09-27 15:10:58 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-09-27 15:10:58 +0000 |
commit | fb428d0e5ad8adabc14049f8a170b30d57044588 (patch) | |
tree | 5b74c48d456ef546126d2f9247a158773e3a8e95 /tests | |
parent | 21804a0c3d3a26b124eca65799b5f6462f6c1d02 (diff) | |
download | aspectj-fb428d0e5ad8adabc14049f8a170b30d57044588.tar.gz aspectj-fb428d0e5ad8adabc14049f8a170b30d57044588.zip |
tests for pr102933, array clone in -1.4, -1.5 vs -1.3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs150/pr102933.aj | 14 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 12 |
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/bugs150/pr102933.aj b/tests/bugs150/pr102933.aj new file mode 100644 index 000000000..42969ca75 --- /dev/null +++ b/tests/bugs150/pr102933.aj @@ -0,0 +1,14 @@ +package com.test; + +public class pr102933 { + + public void test() { + pr102933[] array = new pr102933[0]; + pr102933[] arrayClone = (pr102933[])array.clone(); + } +} + +aspect MyAspect { + declare warning: call(* *(..)) : + "a call within pr102933"; +}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index 15516c6fc..af953f953 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -462,6 +462,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("default impl of Runnable"); } + public void testArrayCloneCallJoinPoints() { + runTest("array clone call join points in 1.4 vs 1.3"); + } + // 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 eb518ceba..38f74bea4 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -626,6 +626,18 @@ </compile> </ajc-test> + <ajc-test dir="bugs150" title="array clone call join points in 1.4 vs 1.3"> + <compile files="pr102933.aj" options="-1.3"> + <message kind="warning" line="7" text="a call within pr102933"/> + </compile> + <compile files="pr102933.aj" options="-1.4"> + <message kind="warning" line="7" text="a call within pr102933"/> + </compile> + <compile files="pr102933.aj" options="-1.5"> + <message kind="warning" line="7" text="a call within pr102933"/> + </compile> + </ajc-test> + <!-- ============================================================================ --> <!-- ============================================================================ --> |