From: aclement Date: Mon, 2 May 2011 19:37:31 +0000 (+0000) Subject: 327867 X-Git-Tag: V1_6_12M1~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2b7b3d9fecae0a9360b6a2c14991d3d2db6a6997;p=aspectj.git 327867 --- diff --git a/tests/bugs1612/pr327867/Foo.java b/tests/bugs1612/pr327867/Foo.java new file mode 100644 index 000000000..1d2771b02 --- /dev/null +++ b/tests/bugs1612/pr327867/Foo.java @@ -0,0 +1,18 @@ +public class Foo { + + public static void main(String[]argv) { + new Foo().m(); + } + + public void m() { + int j = new Bar().i; + } + + private class Bar { + private int i; + } +} + +aspect X { + before(): execution( !synthetic * *(..)) {} +} diff --git a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java index 8ec90e651..3404939ac 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java @@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc1612Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testSyntheticMethods_327867() { + runTest("synthetic methods"); + } + // public void testSignedJarLtw_328099() { // runTest("signed jar ltw"); // } diff --git a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml index fe83acac7..45b8b9c51 100644 --- a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml +++ b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml @@ -2,6 +2,15 @@ + + + + + + + + +