aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2008-10-14 22:54:01 +0000
committeraclement <aclement>2008-10-14 22:54:01 +0000
commit8b80dc4a8508c81a061de6eb63f143cfb3b64e61 (patch)
treee34386bf20f6f762489d2509c5c643d98fa6cdbc
parentdac17a6da63eb05904137c84c18d79670f4eb6df (diff)
downloadaspectj-8b80dc4a8508c81a061de6eb63f143cfb3b64e61.tar.gz
aspectj-8b80dc4a8508c81a061de6eb63f143cfb3b64e61.zip
250632: testcase
-rw-r--r--tests/bugs163/pr250632/MyAspect.java18
-rw-r--r--tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc163/ajc163.xml5
3 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs163/pr250632/MyAspect.java b/tests/bugs163/pr250632/MyAspect.java
new file mode 100644
index 000000000..a1ddb4f75
--- /dev/null
+++ b/tests/bugs163/pr250632/MyAspect.java
@@ -0,0 +1,18 @@
+interface IMarker<CLOCK,STATE> { }
+
+public aspect MyAspect
+{
+
+ public void IMarker<CLOCK,STATE>.map()
+ {
+ CLOCK[] var = find();
+ };
+
+
+
+ public CLOCK[] IMarker<CLOCK,STATE>.find()
+ {
+ return null;
+ }
+
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
index 6ab60a65e..2a3679330 100644
--- a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java
@@ -18,6 +18,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testGenericMethodConversions_pr250632() {
+ runTest("type conversion in generic itd");
+ }
+
public void testGenericMethodBridging_pr250493() {
runTest("bridge methods for generic itds");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml
index 7967ac163..c44f85a6f 100644
--- a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml
+++ b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml
@@ -2,6 +2,11 @@
<suite>
+
+ <ajc-test dir="bugs163/pr250632" title="type conversion in generic itd">
+ <compile files="MyAspect.java" options="-1.5"/>
+ </ajc-test>
+
<ajc-test dir="bugs163/pr250493" title="bridge methods for generic itds">
<compile files="Bridged.java" options="-1.5"/>
<run class="Bridged">