Bug 86057

Summary: expect error when overriding final pointcuts
Product: [Tools] AspectJ Reporter: Wes Isberg <wes>
Component: CompilerAssignee: Adrian Colyer <adrian.colyer>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.2.1 M1   
Target Milestone: 1.5.0 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Wes Isberg CLA 2005-02-21 17:25:49 EST
I get no compiler error when I "override"/redefine a final pointcut:

------------
public class Main {
    static void walk() {}
    static void run() {}
    public static void main(String[] args) {
        walk();
        run();
    }
}
abstract aspect AA {
    public final pointcut publicPointcut() : call(void walk());
    before() : publicPointcut() { System.out.print("here: " + thisJoinPoint); }
}
aspect AA1 extends AA {
    // expecting error here b/c pointcut is final
    public pointcut publicPointcut() : call(void run());
}
------------
When run, it picks out run() rather than walk().
Comment 1 Adrian Colyer CLA 2005-03-23 09:48:21 EST
we should tidy this up in aj5m3
Comment 2 Adrian Colyer CLA 2005-08-19 12:52:54 EDT
fixed in tree.