Bug 29691 - Static inner aspects cannot reference user defined pointcuts
Summary: Static inner aspects cannot reference user defined pointcuts
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Jim Hugunin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-17 03:36 EST by Nicholas Lesiecki CLA
Modified: 2003-01-21 13:33 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 Nicholas Lesiecki CLA 2003-01-17 03:36:44 EST
Compiling:

package cantfind;
public class SomeObject {

    public static void main(String[] args) {
    }
    
    public static aspect Referencer{
        pointcut mainCall() : call(void main(..));
        pointcut myMainCall() : mainCall(); 
    }   
}

with:

C:\aopbook_tech\aop7>ajc -Xlint -sourceroots cantfind

yields:

can't find referenced pointcut

1 error

Commenting out the myMainCall() declaration fixes the error.
Comment 1 Jim Hugunin CLA 2003-01-21 13:33:30 EST
fixed in cvs, test case in bugs/PcdLookup.java