aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/interSpecials/p1/C.java4
-rw-r--r--tests/bugs/interSpecials/p2/A1.java15
-rw-r--r--tests/bugs/interSpecials/p2/A2.java14
3 files changed, 33 insertions, 0 deletions
diff --git a/tests/bugs/interSpecials/p1/C.java b/tests/bugs/interSpecials/p1/C.java
new file mode 100644
index 000000000..472afd808
--- /dev/null
+++ b/tests/bugs/interSpecials/p1/C.java
@@ -0,0 +1,4 @@
+package p1;
+
+public class C {
+} \ No newline at end of file
diff --git a/tests/bugs/interSpecials/p2/A1.java b/tests/bugs/interSpecials/p2/A1.java
new file mode 100644
index 000000000..4a84e592d
--- /dev/null
+++ b/tests/bugs/interSpecials/p2/A1.java
@@ -0,0 +1,15 @@
+package p2;
+
+import p1.C;
+
+public class A1 {
+ public static void main(String[] args) {
+ new C().foo();
+ }
+}
+
+aspect InterClass {
+ void C.foo() {
+ System.out.println("class: " + C.class);
+ }
+} \ No newline at end of file
diff --git a/tests/bugs/interSpecials/p2/A2.java b/tests/bugs/interSpecials/p2/A2.java
new file mode 100644
index 000000000..a29f3d5b9
--- /dev/null
+++ b/tests/bugs/interSpecials/p2/A2.java
@@ -0,0 +1,14 @@
+package p2;
+
+import p1.C;
+public class A2 {
+ public static void main(String[] args) {
+ new C().foo();
+ }
+}
+
+aspect InterClass {
+ void C.foo() {
+ assert(C.class != null);
+ }
+}