diff options
author | wisberg <wisberg> | 2003-07-26 21:38:10 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-07-26 21:38:10 +0000 |
commit | d664b142eccf8edbedc0e454e838bae269ec1417 (patch) | |
tree | 272b1faac178d92e1bb6313aecb3bd26afb8af91 | |
parent | 56094d51e65add9b2524dbb440a223e6904ae993 (diff) | |
download | aspectj-d664b142eccf8edbedc0e454e838bae269ec1417.tar.gz aspectj-d664b142eccf8edbedc0e454e838bae269ec1417.zip |
@testcase PR#40814 compile error expected for pointcuts in interfaces
-rw-r--r-- | tests/ajcTestsFailing.xml | 15 | ||||
-rw-r--r-- | tests/bugs/InterfacePointcutCE.java | 7 |
2 files changed, 19 insertions, 3 deletions
diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml index 35a87fefd..455eff989 100644 --- a/tests/ajcTestsFailing.xml +++ b/tests/ajcTestsFailing.xml @@ -4,9 +4,18 @@ <!-- contains valid tests that the compiler has never passed --> <suite> - <ajc-test dir="bugs" - title="interface call signatures when declaring method in aspect" - pr="40805"> + <ajc-test dir="bugs" + pr="40814" + title="compile error expected for interface pointcuts"> + <compile files="InterfacePointcutCE.java"> + <message kind="error" line="5"/> + <message kind="error" line="6"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs" + pr="40805" + title="interface call signatures when declaring method in aspect"> <compile files="DeclareWarningAndInterfaceMethodCW.java"> <message kind="warning" line="27" text="call getSomething"/> <message kind="warning" line="27" text="call ICanGetSomething.getSomething"/> diff --git a/tests/bugs/InterfacePointcutCE.java b/tests/bugs/InterfacePointcutCE.java new file mode 100644 index 000000000..49bcd33de --- /dev/null +++ b/tests/bugs/InterfacePointcutCE.java @@ -0,0 +1,7 @@ + + +/** @testcase PR#40814 compile error expected for pointcuts in interfaces */ +interface I { + abstract pointcut pc(); // CE + pointcut publicCalls() : call(public * *(..)) || call(public new(..)); // CE +}
\ No newline at end of file |