Community
Participate
Working Groups
Version: 3.1.0 Build id: I20051025-0800 Having Non externalized strings set to warning and having the code: public void foo() { String s1= null; //$NON-NLS-1$ String s2= ""; } Then no warning is shown for s2. Also having: public class E1 { private String s1= null; //$NON-NLS-1$ public void foo() { String s2= ""; } } No warning is shown for s2. It seams as if the compiler thinks that the non nls tag for s1 belongs to s2.
Fixed and released in HEAD. Regression tests added in org.eclipse.jdt.core.tests.compiler.regression.ExternalizeStringLiteralsTest.test015/016.
Verified for 3.2 M3 using build I20051031-0010