diff options
Diffstat (limited to 'tests/bugs152/pr129282/ConstructorCall.aj')
-rw-r--r-- | tests/bugs152/pr129282/ConstructorCall.aj | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/bugs152/pr129282/ConstructorCall.aj b/tests/bugs152/pr129282/ConstructorCall.aj new file mode 100644 index 000000000..6bae49966 --- /dev/null +++ b/tests/bugs152/pr129282/ConstructorCall.aj @@ -0,0 +1,23 @@ +import java.io.FileNotFoundException; + +public aspect ConstructorCall { + + pointcut p() : call(public C1.new()); + + before() throws FileNotFoundException : p() { + throw new FileNotFoundException(); + } + +} + +class C1 { + + // shouldn't get the warning against the constructor + public C1() throws FileNotFoundException { + } + + public void m1() throws FileNotFoundException { + new C1(); + } + +} |