Bug 93451

Summary: pertypewithin causes a NPE during compilation
Product: [Tools] AspectJ Reporter: Oliver <boehm>
Component: CompilerAssignee: Adrian Colyer <adrian.colyer>
Status: REOPENED --- QA Contact:
Severity: normal    
Priority: P5    
Version: 1.5.0M2   
Target Milestone: 1.5.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Oliver CLA 2005-05-02 16:20:06 EDT
I just try the pertypewithin to instantiate an aspect per class. This works:

public aspect TestAspekt<T> pertypewithin(verwaltung.test.*) {
    ...
    after() : execution(* *.*()) {
        log.debug(thisJoinPoint);
    }
}

But when I try to use the generic <T> inside the after advice as described in
the AspectJ developer's notebook it does not work.

public aspect TestAspekt<T> pertypewithin(verwaltung.test.*) {
    ...
    after(T t) : execution(* *.*()) && this(t) {
    ...
}

Each time I try to save this I get an alert box with "NullPointerException
thrown: null" (also repeated as reason).
Comment 1 Andrew Clement CLA 2005-05-03 05:38:09 EDT
Basic generics will be working in M3, we'll have a look at this (parameterized
aspects with PTW) for 1.5.0 final.
Comment 2 Adrian Colyer CLA 2005-08-25 05:36:25 EDT
We've decided to remove this feature from the language for the 1.5.0 timeframe
(a concrete generic pertypewithin aspect). Generic abstract aspects *will* be
supported in M4.
Comment 3 Eclipse Webmaster CLA 2009-08-30 02:49:28 EDT
LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated.