org.aspectj/tests/bugs152/pr129282/ConstructorExecution.aj
2006-05-31 10:09:27 +00:00

20 lines
332 B
Plaintext

import java.io.FileNotFoundException;
public aspect ConstructorExecution {
pointcut p1() : execution(public C1.new());
before() throws FileNotFoundException : p1() {
throw new FileNotFoundException();
}
}
class C1 {
// shouldn't get the warning on this constructor
public C1() throws FileNotFoundException {
}
}