From: aclement Date: Thu, 1 Nov 2007 13:25:16 +0000 (+0000) Subject: 186673: test and fix. Don't rely on suffix for identifying jars and zips X-Git-Tag: V1_5_4rc1~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=47dc21610bdce04e050e70a86f2b1f6e5077b705;p=aspectj.git 186673: test and fix. Don't rely on suffix for identifying jars and zips --- diff --git a/tests/bugs154/pr186673/A.java b/tests/bugs154/pr186673/A.java new file mode 100644 index 000000000..c064fb795 --- /dev/null +++ b/tests/bugs154/pr186673/A.java @@ -0,0 +1,19 @@ +import org.aspectj.lang.annotation.*; +import org.aspectj.lang.*; + +@interface I {} + +@I +public class A { + public void m() {} +} + +@Aspect +class X { + @Around("execution(* (@I *).*(..))") + public Object foo(ProceedingJoinPoint pjp) { +return null; + } +} + + diff --git a/tests/bugs154/pr186673/Apple.java b/tests/bugs154/pr186673/Apple.java new file mode 100644 index 000000000..c08a4f301 --- /dev/null +++ b/tests/bugs154/pr186673/Apple.java @@ -0,0 +1,3 @@ +public class Apple { + public void m() {} +} diff --git a/tests/bugs154/pr186673/Main.java b/tests/bugs154/pr186673/Main.java new file mode 100644 index 000000000..379057148 --- /dev/null +++ b/tests/bugs154/pr186673/Main.java @@ -0,0 +1,6 @@ +public class Main { + public static void main(String []argv) { + new Apple().m(); + new Orange().m(); + } +} diff --git a/tests/bugs154/pr186673/Orange.java b/tests/bugs154/pr186673/Orange.java new file mode 100644 index 000000000..9aed34dd2 --- /dev/null +++ b/tests/bugs154/pr186673/Orange.java @@ -0,0 +1,3 @@ +public class Orange { + public void m() {} +} diff --git a/tests/bugs154/pr186673/ant.xml b/tests/bugs154/pr186673/ant.xml new file mode 100644 index 000000000..8cfc30728 --- /dev/null +++ b/tests/bugs154/pr186673/ant.xml @@ -0,0 +1,18 @@ + + + This script builds the AspectJ examples. + + + + + + + + + + + + diff --git a/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java b/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java index eb77bd949..5c87ea69f 100644 --- a/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java @@ -45,6 +45,7 @@ public class Ajc154Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // runTest("new pointcut designators in a reference pointcut"); // } + public void testJarsZipsNonStandardSuffix_pr186673() { runTest("jars and zips with non-standard suffix");} //public void testGenericTypeParameterizedWithArrayType_pr167197() { runTest("generic type parameterized with array type");} diff --git a/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml b/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml index ca7c65407..861e68b78 100644 --- a/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml +++ b/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml @@ -11,6 +11,17 @@ + + + + + + +