Bug 357012

Summary: unable to specify class annotation value constraint
Product: [Tools] AspectJ Reporter: Andrew Clement <aclement>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: DEVELOPMENT   
Target Milestone: 1.6.12   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andrew Clement CLA 2011-09-07 17:26:58 EDT
Attempting a match like this:

get(@Anno(foo=String.class) * *)

doesn't work due to 'class' tripping up the parser.  The JDT patched java.g needs to recognize class as a PseudoToken so that it will pass it through for pointcut parsing.
Comment 1 Andrew Clement CLA 2011-09-08 11:46:49 EDT
Fixed.  'class' now gets through.  There is a possibility that it slightly damages parser recovery though (having 'class' as a pseudotoken seems to lead to some extra errors when a program is already broken).   Have to keep an eye on that.