Bug 93392 - [1.5][search] Reference to implicit annotation element "value" has wrong offset
Summary: [1.5][search] Reference to implicit annotation element "value" has wrong offset
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-02 06:17 EDT by Markus Keller CLA
Modified: 2005-05-12 12:38 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 Markus Keller CLA 2005-05-02 06:17:08 EDT
v_553a

A reference to the implicit annotation element "value" has the wrong offset:

@I(12)
@interface I {
    int value();
}

The implicit reference to "value" has offset <here>@I(12).
Expected: @I(<here>12).

See also bug 83230.
Comment 1 Frederic Fusier CLA 2005-05-08 16:19:01 EDT
I set offset to 0 for implicit call but stupidly forgot to set appropriate offset.

See also bug 94062 as length=0 does not seem to make all users happy...
Comment 2 Frederic Fusier CLA 2005-05-09 09:27:49 EDT
Fixed and released in HEAD.

Now offset is well positionned at member value start: @I(<|>12).
Note that this fixed is coupled with bug 94062 fix.

[jdt-core-internal]
Changes done in MatchLocator.reportReference(ASTNode,...).

Test case added in JavaSearchBugsTests
Comment 3 Maxime Daniel CLA 2005-05-12 11:20:12 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.