diff options
Diffstat (limited to 'tests')
-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 |