Bug 137873 - Add braces cleanup causes compilation errors
Summary: Add braces cleanup causes compilation errors
Status: RESOLVED DUPLICATE of bug 95839
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-20 23:45 EDT by Brock Janiczak CLA
Modified: 2006-04-23 15:55 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brock Janiczak CLA 2006-04-20 23:45:26 EDT
Version: 3.2.0
Build id: I20060413-1718

Run the add braces cleanup on the following piece of code.  The else statement is moved up into the line comment causing a compilation error

public class Test {

	public static void main(String[] args) {
		int i = 0;
		if (true){
			
		}
		// line comment
		else
			i = i;        
		
	}
}
Comment 1 Martin Aeschlimann CLA 2006-04-23 15:55:33 EDT

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