diff options
-rw-r--r-- | tests/bugs154/pr186673/A.java | 19 | ||||
-rw-r--r-- | tests/bugs154/pr186673/Apple.java | 3 | ||||
-rw-r--r-- | tests/bugs154/pr186673/Main.java | 6 | ||||
-rw-r--r-- | tests/bugs154/pr186673/Orange.java | 3 | ||||
-rw-r--r-- | tests/bugs154/pr186673/ant.xml | 18 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java | 1 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc154/ajc154.xml | 11 |
7 files changed, 61 insertions, 0 deletions
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 @@ +<project name="ltw with funny libraries" default="default" basedir=".">
+ <target name="default" >
+ <echo> This script builds the AspectJ examples. </echo>
+ <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
+ <classpath>
+ <pathelement path="${aj.root}/lib/aspectj/aspectjtools.jar"/>
+ </classpath>
+ </taskdef>
+ <iajc destdir="${classes.dir}" argfiles="${list}"
+ fork="true"
+ forkclasspath="${aspectjtools.jar}"
+ classpath="${aspectjrt.jar}"/>
+
+ <antcall target="Ajx-run" >
+ <param name="class" value="${class}"/>
+ </antcall>
+ </target>
+</project>
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 @@ <compile options="-1.5" files="AspectBreaker.java"/> </ajc-test> + <ajc-test dir="bugs154/pr186673" title="jars and zips with non-standard suffix"> + <compile options="-1.5" files="Apple.java" outjar="apple.jar.0"/> + <compile options="-1.5" files="Orange.java" outjar="orange.zipfoo"/> + <!-- check ant and a standard compile --> + <!--ant file="ant.xml" target="default" verbose="true"> + <stdout> + <line text="Blah"/> + </stdout> + </ant--> + <compile options="-1.5" files="Main.java" classpath="orange.zipfoo,apple.jar.0"/> + </ajc-test> <ajc-test dir="bugs154/pr203646" title="npe with itd on inner generic interface"> <compile options="-1.5" files="Bang.java"/> |