aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs189/433351
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2016-02-18 12:08:06 -0800
committerAndy Clement <aclement@pivotal.io>2016-02-18 12:08:06 -0800
commitf4c8433cb046e343b8491d04f0a10bd150924507 (patch)
treeaa31290831862215cea09543c92b6d2a9fc67ab7 /tests/bugs189/433351
parenta17b28a1a9a0756cfc2181bf2b095650e186425a (diff)
downloadaspectj-f4c8433cb046e343b8491d04f0a10bd150924507.tar.gz
aspectj-f4c8433cb046e343b8491d04f0a10bd150924507.zip
Fix 433351: Declare parents fails on interfaces on the inpath depending on directory structure
Diffstat (limited to 'tests/bugs189/433351')
-rw-r--r--tests/bugs189/433351/ClassProj1.java8
-rw-r--r--tests/bugs189/433351/ClassProj2.java9
-rw-r--r--tests/bugs189/433351/Extender.aj10
-rw-r--r--tests/bugs189/433351/Extender2.aj10
-rw-r--r--tests/bugs189/433351/Extender3.aj10
-rw-r--r--tests/bugs189/433351/InterfaceProj1.java7
-rw-r--r--tests/bugs189/433351/InterfaceProj2.java7
7 files changed, 61 insertions, 0 deletions
diff --git a/tests/bugs189/433351/ClassProj1.java b/tests/bugs189/433351/ClassProj1.java
new file mode 100644
index 000000000..ce06e88ab
--- /dev/null
+++ b/tests/bugs189/433351/ClassProj1.java
@@ -0,0 +1,8 @@
+package test;
+
+public abstract class ClassProj1<T> implements InterfaceProj1<String> {
+
+ public int aMethod() {
+ return 1;
+ }
+}
diff --git a/tests/bugs189/433351/ClassProj2.java b/tests/bugs189/433351/ClassProj2.java
new file mode 100644
index 000000000..2aca8b08e
--- /dev/null
+++ b/tests/bugs189/433351/ClassProj2.java
@@ -0,0 +1,9 @@
+package test.extender;
+
+public abstract class ClassProj2<T> implements InterfaceProj2<T> {
+
+ public int bMethod() {
+ return 2;
+ }
+
+}
diff --git a/tests/bugs189/433351/Extender.aj b/tests/bugs189/433351/Extender.aj
new file mode 100644
index 000000000..433275660
--- /dev/null
+++ b/tests/bugs189/433351/Extender.aj
@@ -0,0 +1,10 @@
+package test.extender;
+import test.*;
+
+public aspect Extender {
+
+ declare parents: InterfaceProj1 extends InterfaceProj2;
+
+// declare parents: test.ClassProj1 extends ClassProj2;
+
+}
diff --git a/tests/bugs189/433351/Extender2.aj b/tests/bugs189/433351/Extender2.aj
new file mode 100644
index 000000000..351c70eeb
--- /dev/null
+++ b/tests/bugs189/433351/Extender2.aj
@@ -0,0 +1,10 @@
+package test.extender;
+import test.*;
+
+public aspect Extender2 {
+
+ declare parents: InterfaceProj1 extends java.io.Serializable;
+
+// declare parents: test.ClassProj1 extends ClassProj2;
+
+}
diff --git a/tests/bugs189/433351/Extender3.aj b/tests/bugs189/433351/Extender3.aj
new file mode 100644
index 000000000..9fcda9e52
--- /dev/null
+++ b/tests/bugs189/433351/Extender3.aj
@@ -0,0 +1,10 @@
+package test.extender;
+import test.*;
+
+public aspect Extender3 {
+
+ declare parents: InterfaceProj1 extends InterfaceProj2;
+
+ declare parents: test.ClassProj1 extends ClassProj2;
+
+}
diff --git a/tests/bugs189/433351/InterfaceProj1.java b/tests/bugs189/433351/InterfaceProj1.java
new file mode 100644
index 000000000..7d90bef54
--- /dev/null
+++ b/tests/bugs189/433351/InterfaceProj1.java
@@ -0,0 +1,7 @@
+package test;
+
+public interface InterfaceProj1<T> {
+
+ public abstract int aMethod();
+
+}
diff --git a/tests/bugs189/433351/InterfaceProj2.java b/tests/bugs189/433351/InterfaceProj2.java
new file mode 100644
index 000000000..b6846f54c
--- /dev/null
+++ b/tests/bugs189/433351/InterfaceProj2.java
@@ -0,0 +1,7 @@
+package test.extender;
+
+public interface InterfaceProj2<T> {
+
+ public abstract int bMethod();
+
+} \ No newline at end of file