Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333221

Summary: [typing] Join Comments in Java
Product: [Eclipse Project] JDT Reporter: Andres Gomez Casanova <angoca>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: deepakazad
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Andres Gomez Casanova CLA 2010-12-26 14:21:40 EST
Build Identifier: 

When I use the 'Join Line' option (Ctrl + Alt + j) the single-line comments in Java should be joint by deleting the slashes of the second line.
I mean, if you have:

// First Line
// Second Line

and you call the 'join line' option, Eclipse should delete the slashes of the second line.

// First Line Second Line

Currently, the result of this operation is this

// First Line // Second Line

This is useful when re-factoring, and when the comments are changed after a formatting. I know that Eclipse cannot know when to join two single-line comments, but the 'join lines' option should provide this functionality.

Reproducible: Always
Comment 1 Deepak Azad CLA 2010-12-27 14:18:07 EST

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