Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331116 - [quick assist] Join declaration quick fix removes comments between declaration and assignment
Summary: [quick assist] Join declaration quick fix removes comments between declaratio...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 331138
Blocks:
  Show dependency tree
 
Reported: 2010-11-25 07:19 EST by Robert Munteanu CLA
Modified: 2011-02-14 09:44 EST (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 Robert Munteanu CLA 2010-11-25 07:19:58 EST
See the below example for the shortest way to reproduce when joining a declaration.

pre.. 
String message;

// this comment gets removed

message = "";
Comment 1 Markus Keller CLA 2010-11-25 11:32:41 EST
Partially fixed in QuickAssistProcessor. Works on the variable declaration now. See bug 331138 for the remaining problem.

Keeping this bug open for 3.7. If bug 331138 is not fixed by then, we can release the workaround mentioned there.
Comment 2 Ayushman Jain CLA 2011-02-14 08:23:30 EST
This can be closed now, since bug 331138 is fixed.
Comment 3 Markus Keller CLA 2011-02-14 09:44:35 EST
Added regression tests to AssistQuickFixTest.