Bug 303957 - [formatting] Formatter deletes the first character in a javadoc comment
Summary: [formatting] Formatter deletes the first character in a javadoc comment
Status: VERIFIED DUPLICATE of bug 287833
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows Vista
: P3 minor (vote)
Target Milestone: 3.5.2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-25 14:08 EST by Oliver Wong CLA
Modified: 2010-03-08 05:24 EST (History)
4 users (show)

See Also:


Attachments
Formatter settings (26.56 KB, application/xml)
2010-02-25 14:10 EST, Oliver Wong CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Wong CLA 2010-02-25 14:08:00 EST
Build Identifier: M20090917-0800

 

Reproducible: Always

Steps to Reproduce:
1. Create a file "Test.java" with the following contents:

/**
 * <pre>
 *    A
 *   / \
 *  B   C
 * / \ / \
 *D  E F  G
 * </pre>
 */

2. Press CTRL-F to cause the code to get formatted.
3. Observe that the "D" gets deleted, resulting in:

/**
 * <pre>
 *    A
 *   / \
 *  B   C
 * / \ / \
 *   E F  G
 * </pre>
 */
Comment 1 Oliver Wong CLA 2010-02-25 14:10:17 EST
Created attachment 160221 [details]
Formatter settings

Here's the formatter I used to replicate the bug; not sure if the bug exists with other formatters.
Comment 2 Dani Megert CLA 2010-02-26 03:14:44 EST
In your formatter settings you must disable to format code inside <pre> tags.
Comment 3 Markus Keller CLA 2010-02-26 06:53:16 EST
This was indeed broken up to and including 3.5.1, but has been fixed for 3.5.2.

*** This bug has been marked as a duplicate of bug 287833 ***
Comment 4 Satyam Kandula CLA 2010-03-08 05:15:40 EST
Verified for 3.6M6 using build I20100305-101
Comment 5 Jay Arthanareeswaran CLA 2010-03-08 05:24:49 EST
Verified.