| Summary: | rname string{@Property} is not treated as annotation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Zhi Zhu <zhuzhi> | ||||
| Component: | EDT | Assignee: | Paul Harmon <pharmon> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | wxwu | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
I looked into this to make sure it wasnt an AST problem. I think I found why this is failing (I assume that annotation search is failing to find the reference to Property when it doesnt have curly braces after it). Attached is a patch for SourceElementParser and MatchVisitor, that seem to fix the problem. Could someone in IDE please review the changes and release them if they look reasonable? Created attachment 206551 [details]
Patch for annotation indexing/search
Paul, it solved the problem, I have checked in the code, thanks Verify and close it |
As for field annotation, whether the following format are identical: rname string{@Property}; rname string{@Property{}}; From SourceElementParser.handlePropertyBlock, it seems they are different, it treats the second case add valid annotation, but not for first case.