mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-03 05:54:57 +02:00
20 lines
332 B
Plaintext
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 {
|
|
}
|
|
|
|
}
|