From: aclement Date: Wed, 29 Oct 2008 00:36:36 +0000 (+0000) Subject: 250091: test and fix X-Git-Tag: V1_6_3rc1~128 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=85347bfd6fb121e086d3e0659cae668b5f3eaf51;p=aspectj.git 250091: test and fix --- diff --git a/tests/bugs163/pr250091/Demo.java b/tests/bugs163/pr250091/Demo.java new file mode 100644 index 000000000..0e3f191b0 --- /dev/null +++ b/tests/bugs163/pr250091/Demo.java @@ -0,0 +1,26 @@ +import org.aspectj.lang.reflect.MethodSignature; + +class A { } + +class Base { + public A foo() { return null; } +} + +public aspect Demo { + public A Base.bar() { return null; } + public Base Base.baz() { return null; } + + before(): execution(* Base.*(..)) { + Class cs = ((MethodSignature)thisJoinPointStaticPart.getSignature()).getReturnType(); + System.out.format("%s (%b)%n", + cs, + ClassNotFoundException.class == cs); + } + + public static void main(String[] arg) { + new Base().foo(); + new Base().bar(); + new Base().baz(); + } +} + diff --git a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java index 9fab888d1..b707e26b7 100644 --- a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java @@ -18,6 +18,14 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testItdCCE_pr250091() { + runTest("itd cce"); + } + + // class A from java.net.URLClassLoader@1e4853f extends class java.lang.Object (false) + // class java.lang.ClassNotFoundException from null extends class java.lang.Exception (true) + // class Base from java.net.URLClassLoader@1e4853f extends class java.lang.Object (false) + public void testBreakingRecovery_pr226163() { runTest("breaking recovery"); } diff --git a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml index 519cf9fdd..6b712f489 100644 --- a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml +++ b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml @@ -2,6 +2,17 @@ + + + + + + + + + + +