Summary: | AspectJ Internal Compiler Error-BCException for generic type array in pointcut | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | John White <jswhite> |
Component: | Compiler | Assignee: | Tools PMC Bugzilla inbox <tools.pmc-inbox> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | aclement, aspectj-inbox |
Version: | unspecified | ||
Target Milestone: | 1.6.5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
John White
2009-04-14 21:08:33 EDT
i'll grab that bug BCException is now fixed. Additionally: @Pointcut("execution(!void *(..))") works for me. @Pointcut("execution(!void[] *(..))") also works for me. --- import java.util.*; import org.aspectj.lang.annotation.*; @Aspect class Iffy2 { @Before("execution(!void[] *(..))") public void advice1() {} @Before("execution(!void[] *(..))") public void advice2() {} public Collection<?>[] getCollectionArray() { return null; } } --- ajc -1.5 -showWeaveInfo Iffy2.java Join point 'method-execution(java.util.Collection[] Iffy2.getCollectionArray())' in Type 'Iffy2' (Iffy2.java:13) advised by before advice from 'Iffy2' (Iffy2.java:11) Join point 'method-execution(java.util.Collection[] Iffy2.getCollectionArray())' in Type 'Iffy2' (Iffy2.java:13) advised by before advice from 'Iffy2' (Iffy2.java:8) What is different in your scenario from what I show above? fixed the exception - please reopen if you still have trouble writing the pointcut. |