summaryrefslogtreecommitdiffstats
path: root/ajde
diff options
context:
space:
mode:
authormkersten <mkersten>2005-01-27 17:21:17 +0000
committermkersten <mkersten>2005-01-27 17:21:17 +0000
commit5765d534a5437b624646ff20ca487346fa76a267 (patch)
treeb545e2e776441cf22f3cd06dfd164565ff700e60 /ajde
parent50bab658e3a610e89cd29d0e7312e3719a02e30c (diff)
downloadaspectj-5765d534a5437b624646ff20ca487346fa76a267.tar.gz
aspectj-5765d534a5437b624646ff20ca487346fa76a267.zip
Tests and fix for: Bug 83565
BCException "bad type name" thrown when compiling
Diffstat (limited to 'ajde')
-rw-r--r--ajde/testdata/bug-83565/Bug.java23
-rw-r--r--ajde/testdata/bug-83565/build.lst3
-rw-r--r--ajde/testsrc/org/aspectj/ajde/AjdeTests.java1
-rw-r--r--ajde/testsrc/org/aspectj/ajde/GenericsTest.java25
4 files changed, 52 insertions, 0 deletions
diff --git a/ajde/testdata/bug-83565/Bug.java b/ajde/testdata/bug-83565/Bug.java
new file mode 100644
index 000000000..44506e013
--- /dev/null
+++ b/ajde/testdata/bug-83565/Bug.java
@@ -0,0 +1,23 @@
+
+package mj.compiler.ast;
+
+import java.util.Vector;
+
+class Sequence<T extends AST> extends AST {
+
+ private Vector<T> elements = new Vector<T>();
+
+ public Sequence(T element) {
+// super(element);
+ elements.add(element);
+ }
+
+ public int length() { return elements.size(); }
+ public T elementAt(int i) { return elements.elementAt(i); }
+}
+
+class AST<T> {
+ public AST() { }
+
+ public AST(T element) { }
+} \ No newline at end of file
diff --git a/ajde/testdata/bug-83565/build.lst b/ajde/testdata/bug-83565/build.lst
new file mode 100644
index 000000000..95c39c932
--- /dev/null
+++ b/ajde/testdata/bug-83565/build.lst
@@ -0,0 +1,3 @@
+-1.5
+Bug.java
+
diff --git a/ajde/testsrc/org/aspectj/ajde/AjdeTests.java b/ajde/testsrc/org/aspectj/ajde/AjdeTests.java
index c0c0b5857..d57c179fa 100644
--- a/ajde/testsrc/org/aspectj/ajde/AjdeTests.java
+++ b/ajde/testsrc/org/aspectj/ajde/AjdeTests.java
@@ -40,6 +40,7 @@ public class AjdeTests extends TestCase {
suite.addTestSuite(BuildCancellingTest.class);
suite.addTestSuite(JarManifestTest.class);
suite.addTestSuite(ExtensionTests.class);
+ suite.addTestSuite(GenericsTest.class);
//$JUnit-END$
return suite;
diff --git a/ajde/testsrc/org/aspectj/ajde/GenericsTest.java b/ajde/testsrc/org/aspectj/ajde/GenericsTest.java
new file mode 100644
index 000000000..d3a962d5b
--- /dev/null
+++ b/ajde/testsrc/org/aspectj/ajde/GenericsTest.java
@@ -0,0 +1,25 @@
+/*
+ * Created on Jan 27, 2005
+ */
+package org.aspectj.ajde;
+
+import org.aspectj.asm.AsmManager;
+
+/**
+ * @author Mik Kersten
+ */
+public class GenericsTest extends AjdeTestCase {
+
+ private AsmManager manager = null;
+ private static final String CONFIG_FILE_PATH = "../bug-83565/build.lst";
+
+ public void testBuild() {
+// assertTrue("build success", doSynchronousBuild(CONFIG_FILE_PATH));
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp("examples");
+ manager = AsmManager.getDefault();
+ }
+
+}