From bba6c413e40539eca1b9c927e2212b8547a7c28f Mon Sep 17 00:00:00 2001 From: jhugunin Date: Mon, 12 Jan 2004 10:18:18 +0000 Subject: Fix for Bugzilla Bug 46750 "declare soft" inside nested aspect does not work --- tests/ajcTests.xml | 5 +++++ tests/bugs/TestSoftening.java | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 tests/bugs/TestSoftening.java diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index a3553d1fe..4df86dcec 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -6915,4 +6915,9 @@ + + + + + diff --git a/tests/bugs/TestSoftening.java b/tests/bugs/TestSoftening.java new file mode 100644 index 000000000..70d9fd357 --- /dev/null +++ b/tests/bugs/TestSoftening.java @@ -0,0 +1,20 @@ +//PR46750 +import java.rmi.RemoteException; + +public class TestSoftening { + + public static void main(String[] args) { + TestSoftening test = new TestSoftening(); + test.perform(); + } + + public void perform() throws RemoteException { + throw new RemoteException(); + } + + + static aspect SofteningTestAspect { + declare soft : RemoteException : call(void TestSoftening.perform()); + } + +} \ No newline at end of file -- cgit v1.2.3