Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369314 - [nls tooling] Externalize String removes octal escaped content.
Summary: [nls tooling] Externalize String removes octal escaped content.
Status: CLOSED DUPLICATE of bug 89075
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6.2   Edit
Hardware: All Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-21 09:18 EST by Randall Becker CLA
Modified: 2012-01-21 10:25 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***