summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2008-12-18 17:56:43 +0000
committeraclement <aclement>2008-12-18 17:56:43 +0000
commite62cc6cf8dd6b455afd8bd0792de2199addb63b8 (patch)
treefac255f338bacd09f54c14c7d7d0bf74f8fd7f2e /tests
parentb9630d7479b2102734df9eeb06d303e099645274 (diff)
downloadaspectj-e62cc6cf8dd6b455afd8bd0792de2199addb63b8.tar.gz
aspectj-e62cc6cf8dd6b455afd8bd0792de2199addb63b8.zip
259279: test and fix: bridge pipeline
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs163/pr259279/Aspect.java1
-rw-r--r--tests/bugs163/pr259279/GenericService.java4
-rw-r--r--tests/bugs163/pr259279/GenericServiceImpl.java5
-rw-r--r--tests/bugs163/pr259279/Main.java6
-rw-r--r--tests/bugs163/pr259279/SomeInterface.java2
-rw-r--r--tests/bugs163/pr259279/SomeServiceImpl.java6
-rw-r--r--tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java8
-rw-r--r--tests/src/org/aspectj/systemtest/ajc163/ajc163.xml11
8 files changed, 43 insertions, 0 deletions
diff --git a/tests/bugs163/pr259279/Aspect.java b/tests/bugs163/pr259279/Aspect.java
new file mode 100644
index 000000000..9c6d898b5
--- /dev/null
+++ b/tests/bugs163/pr259279/Aspect.java
@@ -0,0 +1 @@
+public aspect Aspect pertypewithin(*){}
diff --git a/tests/bugs163/pr259279/GenericService.java b/tests/bugs163/pr259279/GenericService.java
new file mode 100644
index 000000000..6fdd7a4fd
--- /dev/null
+++ b/tests/bugs163/pr259279/GenericService.java
@@ -0,0 +1,4 @@
+public interface GenericService<T extends SomeInterface> {
+ public void doStuff(T t);
+}
+
diff --git a/tests/bugs163/pr259279/GenericServiceImpl.java b/tests/bugs163/pr259279/GenericServiceImpl.java
new file mode 100644
index 000000000..3b38bb4d3
--- /dev/null
+++ b/tests/bugs163/pr259279/GenericServiceImpl.java
@@ -0,0 +1,5 @@
+public class GenericServiceImpl<T extends SomeInterface> implements
+GenericService<T> {
+ public void doStuff(T t) {}
+}
+
diff --git a/tests/bugs163/pr259279/Main.java b/tests/bugs163/pr259279/Main.java
new file mode 100644
index 000000000..bcda99e82
--- /dev/null
+++ b/tests/bugs163/pr259279/Main.java
@@ -0,0 +1,6 @@
+public class Main {
+ public static void main(String[] args) {
+ new SomeServiceImpl();
+ }
+}
+
diff --git a/tests/bugs163/pr259279/SomeInterface.java b/tests/bugs163/pr259279/SomeInterface.java
new file mode 100644
index 000000000..b1039b8d2
--- /dev/null
+++ b/tests/bugs163/pr259279/SomeInterface.java
@@ -0,0 +1,2 @@
+public interface SomeInterface {}
+
diff --git a/tests/bugs163/pr259279/SomeServiceImpl.java b/tests/bugs163/pr259279/SomeServiceImpl.java
new file mode 100644
index 000000000..96ac4e4d0
--- /dev/null
+++ b/tests/bugs163/pr259279/SomeServiceImpl.java
@@ -0,0 +1,6 @@
+public class SomeServiceImpl extends GenericServiceImpl<SomeInterface> {
+ @Override
+ public void doStuff(SomeInterface someInterface) {
+ }
+}
+
diff --git a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
index a6c3900f4..e45c448ee 100644
--- a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
@@ -31,6 +31,14 @@ public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// runTest("itd anonymous inner class in wrong package");
// }
+ public void testOrderingRepetitive_pr259279() {
+ runTest("ordering repetitive method");
+ }
+
+ public void testOrderingRepetitive_pr259279_2() {
+ runTest("ordering repetitive method - 2");
+ }
+
public void testExtendingASI_pr252722() {
runTest("extending AbstractSecurityInterceptor");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml
index cf8c9cf61..211b8b22e 100644
--- a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml
+++ b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml
@@ -2,6 +2,17 @@
<suite>
+
+ <ajc-test dir="bugs163/pr259279" title="ordering repetitive method">
+ <compile files="SomeServiceImpl.java SomeInterface.java Main.java GenericService.java GenericServiceImpl.java Aspect.java" options="-1.5"/>
+ <run class="Main"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs163/pr259279" title="ordering repetitive method - 2">
+ <compile files="GenericServiceImpl.java SomeServiceImpl.java SomeInterface.java Main.java GenericService.java Aspect.java" options="-1.5"/>
+ <run class="Main"/>
+ </ajc-test>
+
<ajc-test dir="bugs163/pr258653" title="getNode">
<compile files="staticinit.java" options="-1.5 -emacssym"/>
</ajc-test>