summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2006-01-10 09:44:47 +0000
committeraclement <aclement>2006-01-10 09:44:47 +0000
commit53284da53f628e7c5071b87888f0624aa7528697 (patch)
tree0a261719d4b6abfa93a02c15a83c2fcdcc6ba074 /tests
parentd69ce9aebb3ed4410f07e9992105748b69a0ff5e (diff)
downloadaspectj-53284da53f628e7c5071b87888f0624aa7528697.tar.gz
aspectj-53284da53f628e7c5071b87888f0624aa7528697.zip
test and fix for pr112458 - also created the 151 test areas and driving junit infrastructure.
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs151/pr112458.aj6
-rw-r--r--tests/bugs151/pr112458_2.aj15
-rw-r--r--tests/src/org/aspectj/systemtest/AllTests15.java2
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/AllTestsAspectJ150.java2
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java34
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/AllTestsAspectJ151.java25
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/ajc151.xml15
7 files changed, 98 insertions, 1 deletions
diff --git a/tests/bugs151/pr112458.aj b/tests/bugs151/pr112458.aj
new file mode 100644
index 000000000..d99f09c36
--- /dev/null
+++ b/tests/bugs151/pr112458.aj
@@ -0,0 +1,6 @@
+public class pr112458<V>
+{
+ public void setInnerClasses(InnerClass[] classes){};
+
+ public static class InnerClass {}
+}
diff --git a/tests/bugs151/pr112458_2.aj b/tests/bugs151/pr112458_2.aj
new file mode 100644
index 000000000..f17abfead
--- /dev/null
+++ b/tests/bugs151/pr112458_2.aj
@@ -0,0 +1,15 @@
+public class pr112458_2<V>
+{
+ public void setInnerClasses(InnerClass[] classes){};
+
+ public static class InnerClass {}
+
+ public static void main(String []argv) {
+ new pr112458_2();
+ }
+}
+
+aspect X {
+ before(pr112458_2.InnerClass[] ics): execution(void setInnerClasses(..)) && args(ics) {
+ }
+}
diff --git a/tests/src/org/aspectj/systemtest/AllTests15.java b/tests/src/org/aspectj/systemtest/AllTests15.java
index 6390e42a9..fec875785 100644
--- a/tests/src/org/aspectj/systemtest/AllTests15.java
+++ b/tests/src/org/aspectj/systemtest/AllTests15.java
@@ -8,6 +8,7 @@ import junit.framework.TestSuite;
import org.aspectj.systemtest.ajc150.AllTestsAspectJ150;
import org.aspectj.systemtest.ajc150.ataspectj.AtAjAnnotationGenTests;
+import org.aspectj.systemtest.ajc151.AllTestsAspectJ151;
public class AllTests15 {
@@ -16,6 +17,7 @@ public class AllTests15 {
//$JUnit-BEGIN$
suite.addTest(AllTests14.suite());
suite.addTest(AllTestsAspectJ150.suite());
+ suite.addTest(AllTestsAspectJ151.suite());
suite.addTest(AtAjAnnotationGenTests.suite());
//$JUnit-END$
return suite;
diff --git a/tests/src/org/aspectj/systemtest/ajc150/AllTestsAspectJ150.java b/tests/src/org/aspectj/systemtest/ajc150/AllTestsAspectJ150.java
index 32748c455..11bfca888 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/AllTestsAspectJ150.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/AllTestsAspectJ150.java
@@ -24,7 +24,7 @@ import junit.framework.TestSuite;
public class AllTestsAspectJ150 {
public static Test suite() {
- TestSuite suite = new TestSuite("Java5/AspectJ5 tests");
+ TestSuite suite = new TestSuite("AspectJ1.5.0 tests");
//$JUnit-BEGIN$
suite.addTestSuite(MigrationTests.class);
suite.addTest(Ajc150Tests.suite());
diff --git a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java
new file mode 100644
index 000000000..fb6dfeaeb
--- /dev/null
+++ b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2006 IBM
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * Andy Clement - initial API and implementation
+ *******************************************************************************/
+package org.aspectj.systemtest.ajc151;
+
+import java.io.File;
+
+import junit.framework.Test;
+
+import org.aspectj.testing.XMLBasedAjcTestCase;
+
+public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+
+ public void testMemberTypesInGenericTypes_pr112458() { runTest("member types in generic types");}
+ public void testMemberTypesInGenericTypes_pr112458_2() { runTest("member types in generic types - 2");}
+
+
+ /////////////////////////////////////////
+ public static Test suite() {
+ return XMLBasedAjcTestCase.loadSuite(Ajc151Tests.class);
+ }
+
+ protected File getSpecFile() {
+ return new File("../tests/src/org/aspectj/systemtest/ajc151/ajc151.xml");
+ }
+
+} \ No newline at end of file
diff --git a/tests/src/org/aspectj/systemtest/ajc151/AllTestsAspectJ151.java b/tests/src/org/aspectj/systemtest/ajc151/AllTestsAspectJ151.java
new file mode 100644
index 000000000..31d37c5d5
--- /dev/null
+++ b/tests/src/org/aspectj/systemtest/ajc151/AllTestsAspectJ151.java
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * Copyright (c) 2006 IBM
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * Andy Clement - initial API and implementation
+ *******************************************************************************/
+package org.aspectj.systemtest.ajc151;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTestsAspectJ151 {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("AspectJ 1.5.1 tests");
+ //$JUnit-BEGIN$
+ suite.addTest(Ajc151Tests.suite());
+ //$JUnit-END$
+ return suite;
+ }
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml
new file mode 100644
index 000000000..ac841e12e
--- /dev/null
+++ b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml
@@ -0,0 +1,15 @@
+<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
+
+<!-- AspectJ v1.5.1 Tests -->
+<suite>
+
+ <ajc-test dir="bugs151" title="member types in generic types">
+ <compile files="pr112458.aj" options="-1.5 -emacssym"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs151" title="member types in generic types - 2">
+ <compile files="pr112458_2.aj" options="-1.5 -emacssym"/>
+ <run class="pr112458_2"/>
+ </ajc-test>
+
+</suite> \ No newline at end of file