]> source.dussan.org Git - aspectj.git/commitdiff
354683
authoraclement <aclement>
Wed, 17 Aug 2011 15:37:34 +0000 (15:37 +0000)
committeraclement <aclement>
Wed, 17 Aug 2011 15:37:34 +0000 (15:37 +0000)
tests/bugs1612/pr354683/main/AbstractBaseClass.java [new file with mode: 0644]
tests/bugs1612/pr354683/main/DerivedClass.java [new file with mode: 0644]
tests/bugs1612/pr354683/main/Whatever.java [new file with mode: 0644]
tests/bugs1612/pr354683/util/CommonData.java [new file with mode: 0644]
tests/bugs1612/pr354683/util/CommonDataImpl.java [new file with mode: 0644]
tests/bugs1612/pr354683/util/CommonDataImplementation.aj [new file with mode: 0644]
tests/bugs1612/pr354683/util/DerivedCommonDataInterface.java [new file with mode: 0644]
tests/bugs1612/pr354683/util/DerivedCommonDataInterfaceImpl.java [new file with mode: 0644]
tests/bugs1612/pr354683/util/DerivedCommonDataInterfaceImplementation.aj [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc1612/ajc1612.xml

diff --git a/tests/bugs1612/pr354683/main/AbstractBaseClass.java b/tests/bugs1612/pr354683/main/AbstractBaseClass.java
new file mode 100644 (file)
index 0000000..d885d5f
--- /dev/null
@@ -0,0 +1,12 @@
+package main;
+
+import util.DerivedCommonDataInterfaceImpl;
+
+
+/**
+* NOTE: for iajc failure to occur this class has to be 
+* 1st - parametrized
+* 2nd - abstract
+* whether or not its subclasses specifie the type parameter does not matter
+*/
+public abstract class AbstractBaseClass <T extends Whatever> implements DerivedCommonDataInterfaceImpl {}
diff --git a/tests/bugs1612/pr354683/main/DerivedClass.java b/tests/bugs1612/pr354683/main/DerivedClass.java
new file mode 100644 (file)
index 0000000..e8e8919
--- /dev/null
@@ -0,0 +1,3 @@
+package main;
+
+public class DerivedClass extends AbstractBaseClass {}
diff --git a/tests/bugs1612/pr354683/main/Whatever.java b/tests/bugs1612/pr354683/main/Whatever.java
new file mode 100644 (file)
index 0000000..0dc3271
--- /dev/null
@@ -0,0 +1,5 @@
+package main;
+
+public class Whatever {
+
+}
diff --git a/tests/bugs1612/pr354683/util/CommonData.java b/tests/bugs1612/pr354683/util/CommonData.java
new file mode 100644 (file)
index 0000000..8e13cb1
--- /dev/null
@@ -0,0 +1,5 @@
+package util;
+
+public interface CommonData {
+    void getData();
+}
diff --git a/tests/bugs1612/pr354683/util/CommonDataImpl.java b/tests/bugs1612/pr354683/util/CommonDataImpl.java
new file mode 100644 (file)
index 0000000..edabda4
--- /dev/null
@@ -0,0 +1,6 @@
+package util;
+
+
+public interface CommonDataImpl extends CommonData {
+
+}
diff --git a/tests/bugs1612/pr354683/util/CommonDataImplementation.aj b/tests/bugs1612/pr354683/util/CommonDataImplementation.aj
new file mode 100644 (file)
index 0000000..9b482cb
--- /dev/null
@@ -0,0 +1,6 @@
+package util;
+
+public aspect CommonDataImplementation {
+        public void CommonDataImpl.getData() { 
+        }
+}
diff --git a/tests/bugs1612/pr354683/util/DerivedCommonDataInterface.java b/tests/bugs1612/pr354683/util/DerivedCommonDataInterface.java
new file mode 100644 (file)
index 0000000..3b516ef
--- /dev/null
@@ -0,0 +1,6 @@
+package util;
+
+
+public interface DerivedCommonDataInterface extends CommonData {
+    void getDerivedData();
+}
diff --git a/tests/bugs1612/pr354683/util/DerivedCommonDataInterfaceImpl.java b/tests/bugs1612/pr354683/util/DerivedCommonDataInterfaceImpl.java
new file mode 100644 (file)
index 0000000..bcccd47
--- /dev/null
@@ -0,0 +1,4 @@
+package util;
+
+
+public interface DerivedCommonDataInterfaceImpl extends DerivedCommonDataInterface, CommonDataImpl {}
diff --git a/tests/bugs1612/pr354683/util/DerivedCommonDataInterfaceImplementation.aj b/tests/bugs1612/pr354683/util/DerivedCommonDataInterfaceImplementation.aj
new file mode 100644 (file)
index 0000000..6cbe393
--- /dev/null
@@ -0,0 +1,5 @@
+package util;
+
+public aspect DerivedCommonDataInterfaceImplementation {
+    public void DerivedCommonDataInterfaceImpl.getDerivedData() {}
+}
index 898eb8a25ebdc106c340adbfc413e9f952fc8153..f8e2b0f4a068c3e822d8d2f003edcfdea48889b3 100644 (file)
@@ -2,6 +2,11 @@
 
 <suite>
 
+<ajc-test dir="bugs1612/pr354683" title="itd split compilation">
+<compile files="util/CommonData.java util/CommonDataImpl.java util/CommonDataImplementation.aj util/DerivedCommonDataInterface.java util/DerivedCommonDataInterfaceImpl.java util/DerivedCommonDataInterfaceImplementation.aj" options="-1.5" outjar="code.jar"/>
+<compile files="main/AbstractBaseClass.java main/DerivedClass.java main/Whatever.java " options="-1.5 -showWeaveInfo" aspectpath="code.jar"/>
+</ajc-test>
+
 <ajc-test dir="bugs1612/pr239649" title="thisAspectInstance - 1">
 <compile files="One.java" options="-1.5"/>
 <run class="One">