From 8db64a9d53d8c051b3296b3ccb2c4715463cb4c0 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 26 Apr 2011 16:11:25 +0000 Subject: [PATCH] 343051 --- tests/bugs1612/pr343051/Azpect.java | 13 +++++++++++++ tests/bugs1612/pr343051/Code.java | 7 +++++++ tests/bugs1612/pr343051/Code2.java | 11 +++++++++++ .../aspectj/systemtest/ajc1612/Ajc1612Tests.java | 4 ++++ .../src/org/aspectj/systemtest/ajc1612/ajc1612.xml | 9 +++++++++ 5 files changed, 44 insertions(+) create mode 100644 tests/bugs1612/pr343051/Azpect.java create mode 100644 tests/bugs1612/pr343051/Code.java create mode 100644 tests/bugs1612/pr343051/Code2.java diff --git a/tests/bugs1612/pr343051/Azpect.java b/tests/bugs1612/pr343051/Azpect.java new file mode 100644 index 000000000..e02218657 --- /dev/null +++ b/tests/bugs1612/pr343051/Azpect.java @@ -0,0 +1,13 @@ +package q; +import p.*; + +privileged aspect X { + public void Code2.Inner.bar() { + Runnable r = new Runnable() { + public void run() { + System.out.println("abc"); + } + }; + r.run(); + } +} diff --git a/tests/bugs1612/pr343051/Code.java b/tests/bugs1612/pr343051/Code.java new file mode 100644 index 000000000..12f68dc54 --- /dev/null +++ b/tests/bugs1612/pr343051/Code.java @@ -0,0 +1,7 @@ +package p; + +public class Code { + public static void main(String []argv) { + new Code2().foo(); + } +} diff --git a/tests/bugs1612/pr343051/Code2.java b/tests/bugs1612/pr343051/Code2.java new file mode 100644 index 000000000..c04bacfee --- /dev/null +++ b/tests/bugs1612/pr343051/Code2.java @@ -0,0 +1,11 @@ +package p; + +public class Code2 { + + public void foo() { + new Inner().bar(); + } + + class Inner { + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java b/tests/src/org/aspectj/systemtest/ajc1612/Ajc1612Tests.java index 26140e933..b73590c22 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 testIllegalAccessError_343051() { + runTest("illegalaccesserror"); + } + public void testItitNpe_339974() { runTest("itit npe"); } diff --git a/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml b/tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml index 49b27f558..8d7e710f5 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