aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/interfaceDefinition
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-01-14 11:12:27 +0000
committeracolyer <acolyer>2004-01-14 11:12:27 +0000
commit5c4db9cb620918dcf064ddbfc50f54130d3b2cab (patch)
treeaac96c5782acfad95f20ccb6f50e930c083a96a0 /tests/bugs/interfaceDefinition
parentb8d42c06d69f44e8c87a9b7d3ea290de0d18ed37 (diff)
downloadaspectj-5c4db9cb620918dcf064ddbfc50f54130d3b2cab.tar.gz
aspectj-5c4db9cb620918dcf064ddbfc50f54130d3b2cab.zip
Fix for Bugzilla Bug 49784
declaring interface methods should work as it does in interface and Bugzilla Bug 45676 AspectJ enhanced code can not be used with plain old java anymo and Bugzilla Bug 43972 Static crosscutting makes interfaces unusable for javac
Diffstat (limited to 'tests/bugs/interfaceDefinition')
-rw-r--r--tests/bugs/interfaceDefinition/Main1.java8
-rw-r--r--tests/bugs/interfaceDefinition/pack/DefineInterface.java1
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/bugs/interfaceDefinition/Main1.java b/tests/bugs/interfaceDefinition/Main1.java
new file mode 100644
index 000000000..b942dc7df
--- /dev/null
+++ b/tests/bugs/interfaceDefinition/Main1.java
@@ -0,0 +1,8 @@
+
+/** @testcase PR#43972 Use class implementing interface via aspect */
+public class Main1 {
+ public static void main(String[] args) {
+ pack.MyInterface i = new pack.InterfaceDefinition.C();
+ i.m();
+ }
+}
diff --git a/tests/bugs/interfaceDefinition/pack/DefineInterface.java b/tests/bugs/interfaceDefinition/pack/DefineInterface.java
index 0e3df5dc8..2fab84f74 100644
--- a/tests/bugs/interfaceDefinition/pack/DefineInterface.java
+++ b/tests/bugs/interfaceDefinition/pack/DefineInterface.java
@@ -7,7 +7,6 @@ public aspect DefineInterface {
declare parents: InterfaceDefinition.C implements MyInterface;
static {
Tester.expectEvent("m()");
- Tester.expectEvent("p()");
}
public void MyInterface.m() {
Tester.event("m()");