Community
Participate
Working Groups
Compiling this code, report a non-nls string on the second one instead of the first one. public class A { String s = " public int foo() { \n" + //$NON-NLS-1 " return 2; \n";//$NON-NLS-1$ } Note the missing '$' at the end of the first NLS tag.
The bug is due to an ArrayIndexOutOfBoundsException caused by a -1 for the position of the ending tag.
Fixed and released in 2.1 stream. Regression test (NegativeTest.test291) added.
Changed milestone.
Verified.