Bug 261207 - [rewrite] »Remove unnecessary blocks« also removes comments
Summary: [rewrite] »Remove unnecessary blocks« also removes comments
Status: CLOSED DUPLICATE of bug 250142
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ayushman Jain CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-15 10:38 EST by Michael Piefel CLA
Modified: 2012-08-03 11:53 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 Michael Piefel CLA 2009-01-15 10:38:50 EST
Build ID: M20080911-1700

Steps To Reproduce:
Take the snippet:
	if (true) { // comment
	    return null;
	}

After the code clean-up, this will be:
	if (true)
	    return;

The comment disappeared. I cannot see any circumstances where this would be desired.

More information:
Comment 1 Dani Megert CLA 2009-01-15 12:05:58 EST
Looks like an ASTRewrite issue.
Comment 2 Markus Keller CLA 2012-08-03 11:53:05 EDT

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