Bug 106875 - [compiler] Unnecessary nls tags detection fails on duplicate tags
Summary: [compiler] Unnecessary nls tags detection fails on duplicate tags
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 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-12 12:46 EDT by Olivier Thomann CLA
Modified: 2005-09-20 14:04 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 Olivier Thomann CLA 2005-08-12 12:46:26 EDT
In the following code, no unnecessary tag is reported. The second nls tag is not
required.
public class X {
	public static void main(String[] args) {
		String s = ""; //$NON-NLS-1$//$NON-NLS-1$
    }
}
Comment 1 Olivier Thomann CLA 2005-08-12 14:27:46 EDT
Released and fixed in HEAD.
Regression tests added in
org.eclipse.jdt.core.tests.compiler.regression.ExternalizeStringLiteralsTest.test005/007.
Comment 2 Olivier Thomann CLA 2005-09-20 14:04:40 EDT
Verified using I20050920-0010 for 3.2M2