1
0
espelhamento de https://github.com/eclipse-aspectj/aspectj.git sincronizado 2024-08-26 17:58:43 +02:00
org.aspectj/tests/bugs/PR72157.java
acolyer eca1429e79 fix for Bugzilla Bug 72157
declare soft can cause programs with invalid exception behaviour to be generated
2004-09-08 12:04:49 +00:00

35 linhas
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);
}