]> source.dussan.org Git - aspectj.git/commitdiff
test for 120826
authoraclement <aclement>
Wed, 14 Dec 2005 11:06:03 +0000 (11:06 +0000)
committeraclement <aclement>
Wed, 14 Dec 2005 11:06:03 +0000 (11:06 +0000)
tests/bugs150/pr120826/TestVarargs.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
tests/src/org/aspectj/systemtest/ajc150/ajc150.xml

diff --git a/tests/bugs150/pr120826/TestVarargs.java b/tests/bugs150/pr120826/TestVarargs.java
new file mode 100644 (file)
index 0000000..70718db
--- /dev/null
@@ -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
index bc7d7e683eade5d433ac6a51a20aedc8dfb0d87d..36a34f5a7833d51473c9d15266ff70516f30ced0 100644 (file)
@@ -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");}
index 13bd9e4964371b1066a5142f57facb149013dcc8..7f8b628410173e0c419bf5356690310942d6bb65 100644 (file)
         </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"/>