]> source.dussan.org Git - aspectj.git/commitdiff
@testcase PR#40814 compile error expected for pointcuts in interfaces
authorwisberg <wisberg>
Sat, 26 Jul 2003 21:38:10 +0000 (21:38 +0000)
committerwisberg <wisberg>
Sat, 26 Jul 2003 21:38:10 +0000 (21:38 +0000)
tests/ajcTestsFailing.xml
tests/bugs/InterfacePointcutCE.java [new file with mode: 0644]

index 35a87fefd7f73843f021272132ffe75e582deabf..455eff98915c6f32f3049e7ab2d411af36da9422 100644 (file)
@@ -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 (file)
index 0000000..49bcd33
--- /dev/null
@@ -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