Summary: | [compiler] Reference to constructor includes space after closing parenthesis | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | major | ||||||
Priority: | P3 | CC: | Olivier_Thomann, vulcannis | ||||
Version: | 3.1 | ||||||
Target Milestone: | 3.1 M4 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Bug Depends on: | |||||||
Bug Blocks: | 74035 | ||||||
Attachments: |
|
Description
Markus Keller
2004-11-01 11:43:28 EST
This is not a search bug while reporting the match. Match length comes from the compiler ASTNode AllocationExpression which matches the pattern. Created attachment 16094 [details]
This patch to fixes the problem...
Just store rParenPos instead of scanner.currentPosition-1 while consuming
ClassBodyopt...
*** Bug 79239 has been marked as a duplicate of this bug. *** Fixed. Now AllocationExpression rightly lengthes to its own closing parenthesis. [jdt-core-internal] Test cases added JavaSearchTest#testConstructorReferenceBug77388() Olivier, may you verify that this fix is OK please, thx? Verified. Verified in 200412140800 |