aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/abstractMethods
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/abstractMethods')
-rw-r--r--tests/bugs/abstractMethods/abstractClass/B.java7
-rw-r--r--tests/bugs/abstractMethods/abstractClass/C.java6
-rw-r--r--tests/bugs/abstractMethods/abstractClass/jars/AandB.jarbin0 -> 1527 bytes
-rw-r--r--tests/bugs/abstractMethods/interface/A.java5
-rw-r--r--tests/bugs/abstractMethods/interface/B.java1
-rw-r--r--tests/bugs/abstractMethods/interface/C.java5
-rw-r--r--tests/bugs/abstractMethods/interface/jars/AandB.jarbin0 -> 1476 bytes
-rw-r--r--tests/bugs/abstractMethods/singlesource/C.java14
-rw-r--r--tests/bugs/abstractMethods/singlesource/C1.java17
-rw-r--r--tests/bugs/abstractMethods/singlesource/C2.java16
10 files changed, 71 insertions, 0 deletions
diff --git a/tests/bugs/abstractMethods/abstractClass/B.java b/tests/bugs/abstractMethods/abstractClass/B.java
new file mode 100644
index 000000000..e63e581b7
--- /dev/null
+++ b/tests/bugs/abstractMethods/abstractClass/B.java
@@ -0,0 +1,7 @@
+abstract class B {}
+
+aspect A {
+ abstract void B.m();
+
+ public static void doit(B b) { b.m(); }
+} \ No newline at end of file
diff --git a/tests/bugs/abstractMethods/abstractClass/C.java b/tests/bugs/abstractMethods/abstractClass/C.java
new file mode 100644
index 000000000..04b499e96
--- /dev/null
+++ b/tests/bugs/abstractMethods/abstractClass/C.java
@@ -0,0 +1,6 @@
+public class C extends B {
+ public static void main(String[] args) {
+ A.doit(new C());
+ }
+}
+
diff --git a/tests/bugs/abstractMethods/abstractClass/jars/AandB.jar b/tests/bugs/abstractMethods/abstractClass/jars/AandB.jar
new file mode 100644
index 000000000..4ca677f97
--- /dev/null
+++ b/tests/bugs/abstractMethods/abstractClass/jars/AandB.jar
Binary files differ
diff --git a/tests/bugs/abstractMethods/interface/A.java b/tests/bugs/abstractMethods/interface/A.java
new file mode 100644
index 000000000..3eed777e4
--- /dev/null
+++ b/tests/bugs/abstractMethods/interface/A.java
@@ -0,0 +1,5 @@
+aspect A {
+ void B.m(){}
+
+ public static void doit(B b) { b.m(); }
+} \ No newline at end of file
diff --git a/tests/bugs/abstractMethods/interface/B.java b/tests/bugs/abstractMethods/interface/B.java
new file mode 100644
index 000000000..a09e44742
--- /dev/null
+++ b/tests/bugs/abstractMethods/interface/B.java
@@ -0,0 +1 @@
+interface B {} \ No newline at end of file
diff --git a/tests/bugs/abstractMethods/interface/C.java b/tests/bugs/abstractMethods/interface/C.java
new file mode 100644
index 000000000..99fc42f3d
--- /dev/null
+++ b/tests/bugs/abstractMethods/interface/C.java
@@ -0,0 +1,5 @@
+public class C implements B {
+ public static void main(String[] args) {
+ A.doit(new C());
+ }
+}
diff --git a/tests/bugs/abstractMethods/interface/jars/AandB.jar b/tests/bugs/abstractMethods/interface/jars/AandB.jar
new file mode 100644
index 000000000..9d71c0c87
--- /dev/null
+++ b/tests/bugs/abstractMethods/interface/jars/AandB.jar
Binary files differ
diff --git a/tests/bugs/abstractMethods/singlesource/C.java b/tests/bugs/abstractMethods/singlesource/C.java
new file mode 100644
index 000000000..ddbc91b46
--- /dev/null
+++ b/tests/bugs/abstractMethods/singlesource/C.java
@@ -0,0 +1,14 @@
+abstract class B {}
+
+aspect A {
+ abstract void B.m();
+
+ public static void doit(B b) { b.m(); }
+}
+
+public class C extends B {
+ public static void main(String[] args) {
+ A.doit(new C());
+ }
+}
+
diff --git a/tests/bugs/abstractMethods/singlesource/C1.java b/tests/bugs/abstractMethods/singlesource/C1.java
new file mode 100644
index 000000000..881d00015
--- /dev/null
+++ b/tests/bugs/abstractMethods/singlesource/C1.java
@@ -0,0 +1,17 @@
+abstract class B {}
+
+aspect A {
+ abstract void B.m();
+
+ public static void doit(B b) { b.m(); }
+}
+
+public class C1 extends B {
+ public static void main(String[] args) {
+ A.doit(new C1());
+ }
+}
+
+aspect A1 {
+ void C1.m() {}
+}
diff --git a/tests/bugs/abstractMethods/singlesource/C2.java b/tests/bugs/abstractMethods/singlesource/C2.java
new file mode 100644
index 000000000..545fc9daa
--- /dev/null
+++ b/tests/bugs/abstractMethods/singlesource/C2.java
@@ -0,0 +1,16 @@
+abstract class B {}
+
+aspect A {
+ public abstract void B.m();
+
+ public static void doit(B b) { b.m(); }
+}
+
+public class C2 extends B {
+ public static void main(String[] args) {
+ A.doit(new C2());
+ }
+
+ public void m() {}
+}
+