Summary: | [1.5][search][annot] Search for annotations misses references in default and values constructs | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M7 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Markus Keller
2005-01-17 14:41:21 EST
Fixed and released in HEAD. All references are now found, even those in annotation member values. [jdt-core-internal] Changes done in: - SourceElementParser, MatchLocatorParser: remove override of consumeAnnotationAsModifier and replace it with consumeMarkerAnnotation, consumeNormalAnnotation. Also modify consumeSingleMemberAnnotation. - MatchLocator: modify reportMatching(Annotation[],...) to report reference inside member value - PatternLocator: add method matchNode(Annotation, MatchingNodeSet) - MethodLocator: + add method matchNode(Annotation, MatchingNodeSet) to add possible matches when annotation member value pairs match method pattern + modify resolveLevel(ASTNode) to resolve SingleMemberAnnotation using its unique member value pair binding - TypeReferenceLocator: + add method matchNode(Annotation, MatchingNodeSet) to add possible matches when annotation type match type reference pattern Test cases added in JavaSearchBugsTests Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD. |