Bug 239605 - [formatter] Incorrect formatting of comments with a comment that cannot be split
Summary: [formatter] Incorrect formatting of comments with a comment that cannot be split
Status: VERIFIED DUPLICATE of bug 238090
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 3.4.1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-04 08:38 EDT by AJ Brindley CLA
Modified: 2008-09-15 11:39 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AJ Brindley CLA 2008-07-04 08:38:19 EDT
Build ID: I20080617-2000

Steps To Reproduce:
1. Ensure the "Maximum line width for comments" is 80.
2. Enter the following comment into a java document:

/**
 * @see com.abcdefg.abc.ab.abcdefgh.ab.abcede.ABCDefghiJklmnOPQrstuvw#abcdefGhijklMnopqRS(com.abcdefgh.abc.abcde.ab.ab.abcdef.abcdefgh.ab.ABCDefghijkLM,
 *      com.abcdefg.abc.ab.abcdefgh.abcdefghijklmno.ABCdefghiJklmnOpqrstuVwxyzabc.ABcdefgHijkl)
 */

3. Format the document.
4. You should see the following:
/**
 * @see com.abcdefg.abc.ab.abcdefgh.ab.abcede.ABCDefghiJklmnOPQrstuvw#abcdefGhijklMnopqRS(com.abcdefgh.abc.abcde.ab.ab.abcdef.abcdefgh.ab.ABCDefghijkLM,
 *
 *
 *
 *
 *      com.abcdefg.abc.ab.abcdefgh.abcdefghijklmno.ABCdefghiJklmnOpqrstuVwxyzabc.ABcdefgHijkl)
 */

I'm expecting that if the formatter can't split the line, it should leave it as is and I should see the comments as formatted in step 2.

More information:
I've tried a number of different settings in the Java formatter and I am unable to "fix" the problem.
Comment 1 AJ Brindley CLA 2008-07-04 08:44:03 EDT
This is a new issue in 3.4 and was correctly formatted in Eclipse 3.3.x
Comment 2 Frederic Fusier CLA 2008-08-20 12:04:12 EDT

*** This bug has been marked as a duplicate of bug 238090 ***
Comment 3 Olivier Thomann CLA 2008-08-28 12:39:32 EDT
Verified for 3.4.1 using M20080827-2000
Comment 4 David Audel CLA 2008-09-15 11:39:36 EDT
Verified for 3.5M2 using I20080914-2000