mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 02:10:40 +02:00
21 lines
363 B
Java
21 lines
363 B
Java
|
package test;
|
||
|
|
||
|
public aspect TestAspect {
|
||
|
Object around() : within(TestClass) {
|
||
|
return proceed();
|
||
|
}
|
||
|
|
||
|
after() : within(TestClass) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class TestClass {
|
||
|
public void test() {
|
||
|
try {
|
||
|
new String();
|
||
|
} catch (Exception ex) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|