]> source.dussan.org Git - aspectj.git/commitdiff
Fix 433744: default methods and itds
authorAndy Clement <aclement@gopivotal.com>
Wed, 30 Apr 2014 22:17:14 +0000 (15:17 -0700)
committerAndy Clement <aclement@gopivotal.com>
Wed, 30 Apr 2014 22:17:14 +0000 (15:17 -0700)
org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip
org.eclipse.jdt.core/jdtcore-for-aspectj.jar
tests/bugs181/433744/AnIterator.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/AllTests18.java
tests/src/org/aspectj/systemtest/ajc181/Ajc181Tests.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc181/AllTestsAspectJ181.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc181/ajc181.xml [new file with mode: 0644]

index c834a0d0e62ca167eaf1420907338c2e0dafaf44..f8c8266497dba358ebfe2c36b689324e18b5a76d 100644 (file)
Binary files a/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip and b/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip differ
index 0cb7ece85ab3bf93769eb3177353257187c197e5..afddbe647be2324415da52ce48c059fbcb4424bf 100644 (file)
Binary files a/org.eclipse.jdt.core/jdtcore-for-aspectj.jar and b/org.eclipse.jdt.core/jdtcore-for-aspectj.jar differ
diff --git a/tests/bugs181/433744/AnIterator.java b/tests/bugs181/433744/AnIterator.java
new file mode 100644 (file)
index 0000000..8dcf484
--- /dev/null
@@ -0,0 +1,18 @@
+import java.util.Iterator;
+
+public class AnIterator implements Iterator<Object> {
+    @Override
+    public boolean hasNext() {
+        return false;
+    }
+
+    @Override
+    public Object next() {
+        throw new IllegalStateException();
+    }
+
+    @Override
+    public void remove() {
+        throw new UnsupportedOperationException();
+    }
+}
index 95b438048a6baa0c32824a8c161929bc055a5d49..ac1d9d6b5f59a1293efb92407c4367689dbbed32 100644 (file)
@@ -14,12 +14,14 @@ import junit.framework.Test;
 import junit.framework.TestSuite;
 
 import org.aspectj.systemtest.ajc180.AllTestsAspectJ180;
+import org.aspectj.systemtest.ajc181.AllTestsAspectJ181;
 
 public class AllTests18 {
 
        public static Test suite() {
                TestSuite suite = new TestSuite("AspectJ System Test Suite - 1.8");
-               // $JUnit-BEGIN$
+               // $JUnit-BEGIN$ 
+               suite.addTest(AllTestsAspectJ181.suite()); 
                suite.addTest(AllTestsAspectJ180.suite()); 
                suite.addTest(AllTests17.suite());
                suite.addTest(AllTests16.suite());
diff --git a/tests/src/org/aspectj/systemtest/ajc181/Ajc181Tests.java b/tests/src/org/aspectj/systemtest/ajc181/Ajc181Tests.java
new file mode 100644 (file)
index 0000000..c4737e9
--- /dev/null
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Contributors
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *    Andy Clement - initial API and implementation
+ *******************************************************************************/
+package org.aspectj.systemtest.ajc181;
+
+import java.io.File;
+
+import junit.framework.Test;
+
+import org.aspectj.testing.XMLBasedAjcTestCase;
+
+/**
+ * @author Andy Clement
+ */
+public class Ajc181Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+
+       public void testDefaultMethods_433744() {
+               runTest("default methods");
+       }
+       
+       // ---
+
+       public static Test suite() {
+               return XMLBasedAjcTestCase.loadSuite(Ajc181Tests.class);
+       }
+
+       @Override
+       protected File getSpecFile() {
+               return new File("../tests/src/org/aspectj/systemtest/ajc181/ajc181.xml");
+       }
+
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc181/AllTestsAspectJ181.java b/tests/src/org/aspectj/systemtest/ajc181/AllTestsAspectJ181.java
new file mode 100644 (file)
index 0000000..f06fccc
--- /dev/null
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Contributors
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *    Andy Clement - initial API and implementation
+ *******************************************************************************/
+package org.aspectj.systemtest.ajc181;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTestsAspectJ181 {
+
+       public static Test suite() {
+               TestSuite suite = new TestSuite("AspectJ 1.8.1 tests");
+               // $JUnit-BEGIN$
+               suite.addTest(Ajc181Tests.suite());
+               // $JUnit-END$
+               return suite;
+       }
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc181/ajc181.xml b/tests/src/org/aspectj/systemtest/ajc181/ajc181.xml
new file mode 100644 (file)
index 0000000..6764609
--- /dev/null
@@ -0,0 +1,9 @@
+<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
+
+<suite>
+
+       <ajc-test dir="bugs181/433744" title="default methods">
+               <compile options="-1.8" files="AnIterator.java"/>
+       </ajc-test>
+
+</suite>