Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369314

Summary: [nls tooling] Externalize String removes octal escaped content.
Product: [Eclipse Project] JDT Reporter: Randall Becker <rsbecker>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: deepakazad
Version: 3.6.2   
Target Milestone: ---   
Hardware: All   
OS: Windows 7   
Whiteboard:

Description Randall Becker CLA 2012-01-21 09:18:48 EST
Build Identifier: M20110210-1200

If a class contains a String with an octal value, using Externalize String removes /modifies the String contents if you ignore the literal.

This has caused source code content loss following NLS processing. Bug 89075 has been open on this since 2005 without action on ECLIPSE 3.1

Reproducible: Always

Steps to Reproduce:
1. Create a new java class, Test, as follows:
package pkg;

public class Test {
	String foo = "\0";
}

2. Use the Externalize String function and Ignore the string. The string displayed in the table in the action dialog will be empty.

3. Accept the modifications.

The resulting class will always, and incorrectly be:

package pkg;

public class Test {
	String foo = ""; //$NON-NLS-1$
}
Comment 1 Deepak Azad CLA 2012-01-21 10:24:43 EST

*** This bug has been marked as a duplicate of bug 89075 ***