kopia lustrzana
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-07-25 22:34:45 +02:00
![jhugunin](/assets/img/avatar_default.png)
Bugzilla Bug 42740 declare error fails on pointcuts composed from multiple classes Bugzilla Bug 42746 within() pcd is confused for certain declare softs and probably: Bugzilla Bug 42739 Compiler crash in ajc head (post 1.1.1 rc1)
21 wiersze
601 B
Java
21 wiersze
601 B
Java
public class SampleExceptionHandling1 {
|
|
public void mumble() throws java.io.IOException { } // CE expected
|
|
}
|
|
|
|
|
|
/** @author Ron Bodkin */
|
|
aspect Library {
|
|
public pointcut executionsThrowingChecked() :
|
|
execution(* *(..) throws (Exception+ && !RuntimeException));
|
|
}
|
|
|
|
/** @author Ron Bodkin */
|
|
aspect SampleExceptionHandling {
|
|
public pointcut scope() : within(SampleExceptionHandling1);
|
|
|
|
public pointcut executionsThrowingChecked() :
|
|
Library.executionsThrowingChecked() && scope();
|
|
|
|
declare error : executionsThrowingChecked():
|
|
"no checked exceptions";
|
|
} |