Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338675

Summary: [quick assist] 'Put expression in parentheses' is offered unnecessarily
Product: [Eclipse Project] JDT Reporter: Deepak Azad <deepakazad>
Component: UIAssignee: Deepak Azad <deepakazad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: markus.kell.r
Version: 3.7   
Target Milestone: 3.7 M7   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
fix+tests none

Description Deepak Azad CLA 2011-03-02 09:36:05 EST
--------------------------------------------------
public static void main(String[] args) {
	int[] a = new int[10];
	for (int i = 0; i < 10; i++) {
		a[i] = i;
	}
}
--------------------------------------------------

- Select "i" or "i <" in the for loop condition
- Ctrl+1
=> 'Put '<' expression in parentheses' quick assist is offered, this is incorrect as the quick assist does not work on the selection.
Comment 1 Deepak Azad CLA 2011-04-11 04:25:12 EDT
Created attachment 192917 [details]
fix+tests
Comment 2 Deepak Azad CLA 2011-04-11 04:25:24 EDT
Fixed in HEAD.