Bug 32428 - can't use pointcuts defined in inner aspects
Summary: can't use pointcuts defined in inner aspects
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P2 critical (vote)
Target Milestone: ---   Edit
Assignee: Jim Hugunin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-20 18:20 EST by Ron Bodkin CLA
Modified: 2003-03-06 14:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Bodkin CLA 2003-02-20 18:20:52 EST
Test code:

public class PCSUsageEventGeneratorTest {   
    static aspect TrackTestCase {
        pointcut testcut() : execution(public void test*(..));
        before() : testcut() {
        }        
    }
}

Sample compilation with AspectJ 1.1 beta 4:
C:\devel>ajc PCSUsageEventGeneratorTest.java
can't find referenced pointcut

1 error

As noted in the previous bug, this is also a hard error to track down, due to 
the ambiguous compiler error.
Comment 1 Jim Hugunin CLA 2003-03-06 14:16:34 EST
fixed in current tree, test in bugs/InnerPointcut.java