Bug 238547

Summary: [formatter] Javadoc formatter replaces &#XXX; in <pre> with interpreted characters
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: amj87.iitr, Olivier_Thomann
Version: 3.4   
Target Milestone: 3.5.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2008-06-26 06:12:23 EDT
I20080624-0800, already in 3.3.2

The Javadoc formatter replaces &#XXX; in <pre> with interpreted characters. I would expect that the formatter only touches whitespace.

Formatting this:
/**
 * &#x01;&#x20;&#x21;&#x40;&#x41;&#233;
 * <pre>&#x01;&#x20;&#x21;&#x40;&#x41;&#233;</pre>
 */
public class TestClass {}


Results in:
/**
 * &#x01;&#x20;&#x21;&#x40;&#x41;&#233;
 * 
 * <pre>
 *  !@AĆ©
 * </pre>
 */
public class TestClass {
}
Comment 1 Frederic Fusier CLA 2008-06-26 06:37:56 EDT
Reproduced in 3.3.2 as well => not a regression introduced by the new comment formatter...
Comment 2 Markus Keller CLA 2009-06-08 08:20:13 EDT

*** This bug has been marked as a duplicate of bug 196308 ***
Comment 3 Ayushman Jain CLA 2009-08-04 04:25:21 EDT
Verified for 3.6M1 using build I20090802-2000
Comment 4 Kent Johnson CLA 2009-08-27 12:07:12 EDT
Verified for 3.5.1 using build M20090826-1100