Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338675 - [quick assist] 'Put expression in parentheses' is offered unnecessarily
Summary: [quick assist] 'Put expression in parentheses' is offered unnecessarily
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: 3.7 M7   Edit
Assignee: Deepak Azad CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-02 09:36 EST by Deepak Azad CLA
Modified: 2011-04-11 04:25 EDT (History)
1 user (show)

See Also:


Attachments
fix+tests (4.00 KB, patch)
2011-04-11 04:25 EDT, Deepak Azad CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.