summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2005-12-14 11:06:03 +0000
committeraclement <aclement>2005-12-14 11:06:03 +0000
commitbb8a6c47fa01cd869076c39d6f52ffde83f7c3a0 (patch)
treee5d10f83375e209ec16912b8ad6432cb6b9e543c /tests
parent39b577866fda7b892a0d192282fcd6a12ef7d070 (diff)
downloadaspectj-bb8a6c47fa01cd869076c39d6f52ffde83f7c3a0.tar.gz
aspectj-bb8a6c47fa01cd869076c39d6f52ffde83f7c3a0.zip
test for 120826
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs150/pr120826/TestVarargs.java12
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java1
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml4
3 files changed, 17 insertions, 0 deletions
diff --git a/tests/bugs150/pr120826/TestVarargs.java b/tests/bugs150/pr120826/TestVarargs.java
new file mode 100644
index 000000000..70718dbcd
--- /dev/null
+++ b/tests/bugs150/pr120826/TestVarargs.java
@@ -0,0 +1,12 @@
+import java.util.Arrays;
+
+//import junit.framework.TestCase;
+
+/**
+ * @author Pekka Enberg
+ */
+public class TestVarargs /*extends TestCase */{
+ public void testVarargs() throws Exception {
+ Arrays.asList(String.class, Long.class, Integer.class);
+ }
+} \ No newline at end of file
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index bc7d7e683..36a34f5a7 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -41,6 +41,7 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
protected File getSpecFile() {
return new File("../tests/src/org/aspectj/systemtest/ajc150/ajc150.xml");
}
+ // public void testVarargsNPE_pr120826() { runTest("varargs NPE");}
public void testNamedPointcutPertarget_pr120521() { runTest("named pointcut not resolved in pertarget pointcut");}
public void testDollarClasses_pr120474() { runTest("Dollar classes");}
public void testGenericPTW_pr119539_1() { runTest("generic pertypewithin aspect - 1");}
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index 13bd9e496..7f8b62841 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -25,6 +25,10 @@
</run>
</ajc-test>
+ <ajc-test dir="bugs150/pr120826" pr="120826" title="varargs NPE">
+ <compile files="TestVarargs.java" options="-1.5"/>
+ </ajc-test>
+
<ajc-test dir="bugs150/pr112476/case1" title="binary weaving decp broken">
<compile files="lib/A.java,lib/B.java,lib/C.java" outjar="library.jar" options="-1.5"/>