Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357013

Summary: it would be nice to express != constraints in annotation value matching
Product: [Tools] AspectJ Reporter: Andrew Clement <aclement>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: DEVELOPMENT   
Target Milestone: 1.6.12   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andrew Clement CLA 2011-09-07 17:28:29 EDT
This would be nice:

get(@Anno(value!=5) * *)

which would match gets of fields i and k here:

@Anno(value=4)
int i

@Anno(value=5)
int j

@Anno(value=6)
int k
Comment 1 Andrew Clement CLA 2011-09-08 11:48:11 EDT
implemented.  In order to not create problems with changing the serialized form, the internal structures suffix the key name with a '!' when a != check is being made.