Browse Source

tests for pr102933, array clone in -1.4, -1.5 vs -1.3

tags/preDefaultReweavable
acolyer 18 years ago
parent
commit
fb428d0e5a

+ 14
- 0
tests/bugs150/pr102933.aj View File

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

+ 4
- 0
tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java View File

@@ -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) {

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

@@ -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>
<!-- ============================================================================ -->
<!-- ============================================================================ -->

Loading…
Cancel
Save