diff options
author | aclement <aclement> | 2004-05-12 13:03:09 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-05-12 13:03:09 +0000 |
commit | 15c8bf939467b06856b52624dea3dea3a23b3b1b (patch) | |
tree | 9fe26d86f323bf1d0f944982f607b4acbf278fd0 /tests | |
parent | cc05140b03b27a5265e68573f926453ddb9075ea (diff) | |
download | aspectj-15c8bf939467b06856b52624dea3dea3a23b3b1b.tar.gz aspectj-15c8bf939467b06856b52624dea3dea3a23b3b1b.zip |
Test for Bug 60936
error message for constructor-execution pcd
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs/InterfaceConstructor.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs/InterfaceConstructor.java b/tests/bugs/InterfaceConstructor.java new file mode 100644 index 000000000..9d10b2a6d --- /dev/null +++ b/tests/bugs/InterfaceConstructor.java @@ -0,0 +1,18 @@ +interface I { } + +public class InterfaceConstructor implements I { + public static void main(String[] args) { + new InterfaceConstructor(); + } +} + +aspect NoSuchJP { + before(): execution(I.new(..)) { // error expected + // No constructor-execution on interface type + } + + before(): execution(I+.new(..)) { // no error + // This is OK, as there is a + + } + +}
\ No newline at end of file |