Bug 216178

Summary: Parameter annotation matching
Product: [Tools] AspectJ Reporter: Andrew Clement <aclement>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.6.0M1   
Target Milestone: 1.6.0 M2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Andrew Clement CLA 2008-01-22 14:30:56 EST
AspectJ does not currently support parameter or package annotations.  We should support parameter annotations.  kind of thing you want to do:

public void foo(@NotNull String p) {
}

before(NotNull p): execution(* *(..)) && @parameters(p) {
  Assert.notNull(p," Should not be null");
}
Comment 1 Andrew Clement CLA 2008-02-26 19:27:07 EST
Implemented !