From 2b7b3d9fecae0a9360b6a2c14991d3d2db6a6997 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 2 May 2011 19:37:31 +0000 Subject: [PATCH] 327867 --- tests/bugs1612/pr327867/Foo.java | 18 ++++++++++++++++++ .../systemtest/ajc1612/Ajc1612Tests.java | 4 ++++ .../org/aspectj/systemtest/ajc1612/ajc1612.xml | 9 +++++++++ 3 files changed, 31 insertions(+) create mode 100644 tests/bugs1612/pr327867/Foo.java 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 @@ + + + + + + + + + -- 2.39.5