From: aclement Date: Thu, 28 Apr 2011 18:06:21 +0000 (+0000) Subject: 315398: remove dirty hack from the olden days X-Git-Tag: V1_6_12M1~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=464d48469d8cf1255daae2eecb2f1b9d453d1616;p=aspectj.git 315398: remove dirty hack from the olden days --- 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 @@ + + + + + +