| Summary: | [Quick assist] Remove surrounding for statement removes comments | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Johannes Rieken <johannes_rieken> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
Looks like an ASTRewrite problem. 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. |
steps: 1 - take the following code public class Brause { void m() { // int i = 123 * 321; // this is a comment, not code for(;;) { ; } } } 2 - select line of for-loop, quick assist (CTRL+1), and select 'Remove surrounding for...' 3 - you'll end up with an empty method - even the comment is getting removed Note: I could see this behaviour only with comments, not with code.