Bug 102827 - [typing] Correct Indentation trips over trinary operator
Summary: [typing] Correct Indentation trips over trinary operator
Status: RESOLVED DUPLICATE of bug 65463
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-06 07:04 EDT by Christof Marti CLA
Modified: 2006-05-22 15:30 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 Christof Marti CLA 2005-07-06 07:04:22 EDT
3.1

- select all in the CU below and invoke Correct Indentation:

class Foo {
	void bar() {
		Object foo= null;
		if (1 == 1)
			foo= foo != null ? foo.toString() : null;
		if (foo == null)
			foo= new Object();
	}
}

-> results in the following, where no change was expected:

class Foo {
	void bar() {
		Object foo= null;
		if (1 == 1)
			foo= foo != null ? foo.toString() : null;
			if (foo == null)
				foo= new Object();
	}
}
Comment 1 Dani Megert CLA 2006-05-22 15:30:03 EDT

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