Bug 112973 - NLS tags like //$NON-NLS-?$ don't have the right range
Summary: NLS tags like //$NON-NLS-?$ don't have the right range
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-18 13:49 EDT by Olivier Thomann CLA
Modified: 2005-10-31 06:09 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2005-10-18 13:49:08 EDT
Using latests, when the detection of useless nls tag is on, the range for this
nls tag is completely boggus.
This has a bad side-effect on the tool that removes them.
Comment 1 Olivier Thomann CLA 2005-10-18 13:50:42 EDT
The problem occurs only when the index of the nls tag is not an integer.
Fixed and released in HEAD.
Regression test added in
org.eclipse.jdt.core.tests.compiler.regression.ExternalizeStringLiteralsTest.test014
Note this tag is considered as unused.
Comment 2 Frederic Fusier CLA 2005-10-31 06:09:22 EST
Verified for 3.2 M3 using build I20051031-0010