Bug 238547 - [formatter] Javadoc formatter replaces &#XXX; in <pre> with interpreted characters
Summary: [formatter] Javadoc formatter replaces &#XXX; in <pre> with interpreted chara...
Status: VERIFIED DUPLICATE of bug 196308
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.5.1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-26 06:12 EDT by Markus Keller CLA
Modified: 2009-08-27 12:07 EDT (History)
2 users (show)

See Also:


Attachments

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