diff options
-rw-r--r-- | tests/ajcTests.xml | 5 | ||||
-rw-r--r-- | tests/bugs/TestSoftening.java | 20 |
2 files changed, 25 insertions, 0 deletions
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 @@ <message kind="warning" line="4" text="no match for this type name: SampleClass"/> </compile> </ajc-test> + + <ajc-test dir="bugs" pr="46750" title="inner aspect containing declare soft"> + <compile files="TestSoftening.java"> + </compile> + </ajc-test> </suite> 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 |