]> source.dussan.org Git - aspectj.git/commitdiff
Fix for Bugzilla Bug 46750
authorjhugunin <jhugunin>
Mon, 12 Jan 2004 10:18:18 +0000 (10:18 +0000)
committerjhugunin <jhugunin>
Mon, 12 Jan 2004 10:18:18 +0000 (10:18 +0000)
   "declare soft" inside nested aspect does not work

tests/ajcTests.xml
tests/bugs/TestSoftening.java [new file with mode: 0644]

index a3553d1fe3108cf7b2b14aac34a432bd2460ec00..4df86dcecc478d35ecd8a656c08e6f31d288043e 100644 (file)
                  <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 (file)
index 0000000..70d9fd3
--- /dev/null
@@ -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