Bug 357012 - unable to specify class annotation value constraint
Summary: unable to specify class annotation value constraint
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 1.6.12   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 17:26 EDT by Andrew Clement CLA
Modified: 2011-09-08 11:46 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.