kopie van
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 17:58:43 +02:00
35 regels
533 B
Java
35 regels
533 B
Java
public class PR72157 {
|
|
public PR72157() throws Exception {
|
|
throw new Exception();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
new SCE2();
|
|
}
|
|
}
|
|
|
|
class SCE2 extends PR72157 {
|
|
public SCE2() {
|
|
super(); // CE L13?
|
|
}
|
|
|
|
}
|
|
|
|
class Foo {
|
|
|
|
public Foo() throws Exception {
|
|
throw new Exception();
|
|
}
|
|
|
|
}
|
|
|
|
class Goo {
|
|
public Goo() {
|
|
new Foo();
|
|
}
|
|
}
|
|
|
|
aspect SCEAspect {
|
|
declare soft: Exception: within(SCE2);
|
|
declare soft: Exception: within(Goo);
|
|
} |