summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2011-04-28 18:06:21 +0000
committeraclement <aclement>2011-04-28 18:06:21 +0000
commit464d48469d8cf1255daae2eecb2f1b9d453d1616 (patch)
tree3e4018f3ee7801e97910d0e05e2be73e09a20ae8
parent5edfa227e93303c531a3224d58d02179fd4f7e7e (diff)
downloadaspectj-464d48469d8cf1255daae2eecb2f1b9d453d1616.tar.gz
aspectj-464d48469d8cf1255daae2eecb2f1b9d453d1616.zip
315398: remove dirty hack from the olden days
-rw-r--r--tests/bugs1612/pr315398/Code2.java19
-rw-r--r--tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml6
3 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs1612/pr315398/Code2.java b/tests/bugs1612/pr315398/Code2.java
new file mode 100644
index 000000000..d1893158f
--- /dev/null
+++ b/tests/bugs1612/pr315398/Code2.java
@@ -0,0 +1,19 @@
+public aspect Code2 {
+
+ static int[] a = new int[]{1,2,3};
+
+ static void f(){
+ new Test(a[0]++);
+}
+
+after() returning(Object obj) : call(Test.new(..)) {
+}
+
+ public static void main(String []argv) {
+ f();
+ }
+}
+
+class Test {
+ Test(int i) {}
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java
index 7cb96b01f..9b706a1a7 100644
--- a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java
@@ -25,6 +25,10 @@ public class Ajc1612Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("verifyerror");
}
+ public void testVerifyError_315398_2() {
+ runTest("verifyerror - 2");
+ }
+
public void testRawTypePointcut_327134() {
runTest("rawtype pointcut");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml
index 6113a9c8a..0609e0922 100644
--- a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml
+++ b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml
@@ -13,6 +13,12 @@
</stdout></run>
</ajc-test>
+<ajc-test dir="bugs1612/pr315398" title="verifyerror - 2">
+<compile files="Code2.java" options="-1.5">
+</compile>
+<run class="Code2"></run>
+</ajc-test>
+
<ajc-test dir="bugs1612/pr335810" title="rawtype warning">
<compile files="One.java" options="-1.5 -warn:+raw -warn:+warningToken">
</compile>