Community
Participate
Working Groups
This is 3.7M4, a fresh Java project with simple Java class: public class CommentFormatting { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=332637 // Dead Code detection removing code that isn't dead public void test() { } } Now select the method test() including the preceding line comments and paste it immediately after the method. The result will be: public class CommentFormatting { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=332637 // Dead Code detection removing code that isn't dead public void test() { } //https://bugs.eclipse.org/bugs/show_bug.cgi?id=332637 //Dead Code detection removing code that isn't dead public void test() { } } The problem only occurs if the comment is pasted behind a method that is not indented.
*** Bug 335085 has been marked as a duplicate of this bug. ***
Still relevant in HEAD. In most of JDT/Core's test classes this means cut/copy and paste deletes a space which needs to be re-added manually or risk wasting cycles during code review.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
This happens. No big deal but causes a little hick-up in the editing flow.