From f4c8433cb046e343b8491d04f0a10bd150924507 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Thu, 18 Feb 2016 12:08:06 -0800 Subject: Fix 433351: Declare parents fails on interfaces on the inpath depending on directory structure --- tests/bugs189/433351/ClassProj1.java | 8 ++++++++ tests/bugs189/433351/ClassProj2.java | 9 +++++++++ tests/bugs189/433351/Extender.aj | 10 ++++++++++ tests/bugs189/433351/Extender2.aj | 10 ++++++++++ tests/bugs189/433351/Extender3.aj | 10 ++++++++++ tests/bugs189/433351/InterfaceProj1.java | 7 +++++++ tests/bugs189/433351/InterfaceProj2.java | 7 +++++++ 7 files changed, 61 insertions(+) create mode 100644 tests/bugs189/433351/ClassProj1.java create mode 100644 tests/bugs189/433351/ClassProj2.java create mode 100644 tests/bugs189/433351/Extender.aj create mode 100644 tests/bugs189/433351/Extender2.aj create mode 100644 tests/bugs189/433351/Extender3.aj create mode 100644 tests/bugs189/433351/InterfaceProj1.java create mode 100644 tests/bugs189/433351/InterfaceProj2.java (limited to 'tests/bugs189') 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 implements InterfaceProj1 { + + 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 implements InterfaceProj2 { + + 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 { + + 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 { + + public abstract int bMethod(); + +} \ No newline at end of file -- cgit v1.2.3