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(); | |||||
} | |||||
} |
*/ | */ | ||||
public class Ajc183Tests extends org.aspectj.testing.XMLBasedAjcTestCase { | public class Ajc183Tests extends org.aspectj.testing.XMLBasedAjcTestCase { | ||||
public void testSuperCalls_443355() { | |||||
runTest("super calls"); | |||||
} | |||||
public void testSuppressTypeNotFound_436653() { | public void testSuppressTypeNotFound_436653() { | ||||
runTest("suppress type not found"); | runTest("suppress type not found"); | ||||
} | } |
<suite> | <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"> | <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 -Xlint:ignore" files="X.java" outjar="aspects.jar"/> | ||||
<compile options="-1.8" files="Runner.java"/> | <compile options="-1.8" files="Runner.java"/> |