]> source.dussan.org Git - aspectj.git/commitdiff
Fix 443355: interface super references
authorAndy Clement <aclement@gopivotal.com>
Wed, 8 Oct 2014 20:23:50 +0000 (13:23 -0700)
committerAndy Clement <aclement@gopivotal.com>
Wed, 8 Oct 2014 20:23:50 +0000 (13:23 -0700)
org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip
org.eclipse.jdt.core/jdtcore-for-aspectj.jar
tests/bugs183/443355/Demo.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc183/Ajc183Tests.java
tests/src/org/aspectj/systemtest/ajc183/ajc183.xml

index 81ee56b7293ef3ead600dd9dfe9f8ef502797c45..af59760dc71932ee7729d8df3e22ceba14dd29b6 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 f6462cd47f0cb3a5c1e075ef93f51b79c0458dc0..02fe959b73dba07f0dd367ea5dafabd8af113fd0 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/bugs183/443355/Demo.java b/tests/bugs183/443355/Demo.java
new file mode 100644 (file)
index 0000000..2a6d9df
--- /dev/null
@@ -0,0 +1,24 @@
+interface Foo {
+       default void printMessage() {
+               System.out.println("GW");
+       }
+}
+
+interface Bar {
+       default void printMessage() {
+               System.out.println("HW");
+       }
+}
+
+class FooImpl implements Foo,Bar {
+       public void printMessage() {
+               Bar.super.printMessage();
+       }
+}
+
+
+public class Demo {
+       public static void main(String[] args) {
+          new FooImpl().printMessage();
+       }
+}
index 8f1a6ccaca1051d7f1eb3ab89bb1df7e4312954b..bb033b6dbbdb05bdf9971dac7dd21a57403b595c 100644 (file)
@@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
  */
 public class Ajc183Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
 
+       public void testSuperCalls_443355() {
+               runTest("super calls");
+       }
+
        public void testSuppressTypeNotFound_436653() {
                runTest("suppress type not found");
        }
index 163ce443e7c7369337deb2db50793442c5b75c14..c24987f6bbff491a983d7a923af289340aefc56b 100644 (file)
@@ -2,6 +2,15 @@
 
 <suite>
 
+       <ajc-test dir="bugs183/443355" title="super calls">
+               <compile options="-1.8" files="Demo.java"/>
+               <run class="Demo">
+               <stdout>
+               <line text="HW"/>
+               </stdout>
+           </run>
+    </ajc-test>
+    
        <ajc-test dir="bugs183/436653" title="suppress type not found 4">
                <compile options="-1.8 -Xlint:ignore" files="X.java" outjar="aspects.jar"/>
                <compile options="-1.8" files="Runner.java"/>