org.aspectj/tests/bugs/throwsSignature/ExceptionBugTest.java
jhugunin 8660cc12bf test and fix for Bugzilla Bug 42539
throw derivative pointcuts not advised
2003-09-04 15:49:08 +00:00

8 lines
231 B
Java

public class ExceptionBugTest {
int x;
class MyException extends Exception {}
public void method1() throws Exception { x = 1; } // warning here
public void method2() throws MyException { x = 2; } // warning here
}