Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 109581 - [formatter] Formatting of 4 slashes (////)
Summary: [formatter] Formatting of 4 slashes (////)
Status: RESOLVED DUPLICATE of bug 303519
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: 4.5 M6   Edit
Assignee: Mateusz Matela CLA
QA Contact:
URL:
Whiteboard: To be verified for 4.8 M2
Keywords:
: 109585 121808 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-15 05:42 EDT by jdall CLA
Modified: 2017-09-06 14:57 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 jdall CLA 2005-09-15 05:42:40 EDT
My java source contains some lines with

//// some comment ////

When formatting the code, those lines are changed to

// // some comment ////

I can't seem to locate the spot in the formatter preferences where I can 
change that behaviour. Please let me know how to.

Thanks,
Jacob Dall
Comment 1 jdall CLA 2005-09-15 06:06:32 EDT
*** Bug 109585 has been marked as a duplicate of this bug. ***
Comment 2 Olivier Thomann CLA 2005-09-16 12:16:53 EDT
The comment formatter always adds a space after the '//'. I think the comment
formatter should preserve the actual contents of the comment. If there is no
space after the '//', it should not add one. This could however be optional.
Comment 3 Olivier Thomann CLA 2005-12-22 11:37:54 EST
*** Bug 121808 has been marked as a duplicate of this bug. ***
Comment 4 Frederic Fusier CLA 2008-08-18 08:07:01 EDT
Ownership has changed for the formatter, but I surely will not have enough time to fix your bug during the 3.5 development process, hence set its priority to P5.
Please provide a patch if you definitely need the bug to be fixed in this version and I'll have a look at it...
TIA
Comment 5 jdall CLA 2008-08-18 08:35:09 EDT
I would very much like to help out, but I've never had a look at the eclipse source code, nor do I know in what section to look for this bug.

But if you or someone else could point me to where the comment formatting takes place, I believe the fix itself would be quite easy done, using the Olivier Thomann approach.
Comment 6 Mateusz Matela CLA 2017-09-06 14:57:10 EDT
This problem no longer occurs after the formatter redesign (or maybe earlier, but I'm too lazy to check).

*** This bug has been marked as a duplicate of bug 303519 ***