diff --git a/tests/bugs165/pr272233/Iffy2.java b/tests/bugs165/pr272233/Iffy2.java index 99dd10935f..2245f7d8da 100644 --- a/tests/bugs165/pr272233/Iffy2.java +++ b/tests/bugs165/pr272233/Iffy2.java @@ -19,6 +19,31 @@ public void advice4() {} @Before("execution(java.util.Collection[] *(..))") public void advice5() {} + /** + * TODO: This pointcut is not parsed correctly. Obviously, the combination of + * '*' and '<?>' leads to an AJ core dump with this error message: + *

+ * + * org.aspectj.weaver.BCException: malformed org.aspectj.weaver.PointcutDeclaration attribute (length:219) + * org.aspectj.weaver.BCException: Bad type signature * + * at org.aspectj.weaver.AjAttribute.read(AjAttribute.java:137) + * at org.aspectj.weaver.bcel.Utility.readAjAttributes(Utility.java:102) + * at org.aspectj.weaver.bcel.BcelMethod.unpackAjAttributes(BcelMethod.java:197) + * at org.aspectj.weaver.bcel.BcelMethod.<init>(BcelMethod.java:91) + * at org.aspectj.weaver.bcel.BcelObjectType.getDeclaredMethods(BcelObjectType.java:290) + * at org.aspectj.weaver.ReferenceType.getDeclaredMethods(ReferenceType.java:870) + * at org.aspectj.weaver.ResolvedType.getDeclaredAdvice(ResolvedType.java:1028) + * at org.aspectj.weaver.ResolvedType.getDeclaredShadowMungers(ResolvedType.java:1068) + * at org.aspectj.weaver.ResolvedType.collectShadowMungers(ResolvedType.java:868) + * at org.aspectj.weaver.ResolvedType.collectCrosscuttingMembers(ResolvedType.java:794) + * at org.aspectj.weaver.CrosscuttingMembersSet.addOrReplaceAspect(CrosscuttingMembersSet.java:112) + * at org.aspectj.weaver.CrosscuttingMembersSet.addOrReplaceAspect(CrosscuttingMembersSet.java:67) + * at org.aspectj.weaver.bcel.BcelWeaver.prepareForWeave(BcelWeaver.java:512) + * + */ + //@Before("execution(*..Collection[] *(..))") + public void advice6() {} + public Collection[] getCollectionArray() { return null; } diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc165/ajc165.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc165/ajc165.xml index e1258bdfb6..7d879705fa 100644 --- a/tests/src/test/resources/org/aspectj/systemtest/ajc165/ajc165.xml +++ b/tests/src/test/resources/org/aspectj/systemtest/ajc165/ajc165.xml @@ -83,6 +83,8 @@ + +