mirror da
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 05:57:44 +02:00
16 righe
281 B
Java
16 righe
281 B
Java
|
|
// pr 48522
|
|
|
|
public class SofteningTooMuch {
|
|
public static void main(String args[]) {
|
|
throw new Exception("should be a compiler error here");
|
|
}
|
|
}
|
|
|
|
class FooException extends Exception {}
|
|
|
|
aspect ExcPolicy {
|
|
declare soft: FooException: execution(* SofteningTooMuch.*(..));
|
|
}
|
|
|