aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153/pr151772/Softener.aj
blob: 4e021e17096b70494870549b313da1e9d8446b00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.sql.SQLException;

public aspect Softener {

	// expect this to soften the exception thrown
	declare soft: Throwable : execution(* *.run());
}

class SoftenInner {
    public static void main(String args[]) {
        new SoftenInner().foo();
    }

    public void foo()  {
        new Runnable() {
            public void run() {
					throw new SQLException("test");
            }
        }.run();
    }

}