Bug 208544 - improve content assist after ! (x instanceof T)
Summary: improve content assist after ! (x instanceof T)
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 232930 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-02 07:19 EDT by Markus Keller CLA
Modified: 2008-08-21 10:01 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2007-11-02 07:19:22 EDT
I20071101-2000

1.) When the 'then' clause of an "if (! (x instanceof T))" statement always completes abruptly, then content assist on x could also include proposals from type T, e.g. here:

	boolean isNumber(Object o) {
		if (! (o instanceof Integer))
			return false;
		o. //content assist could include methods from Integer
	}

2.) In the 'else' clause of an "if (! (x instanceof T)) .. else .." expression, content assist on x could also include proposals from type T, e.g. here:

	boolean isNumber(Object o) {
		if (! (o instanceof Integer)) {
			System.err.println("NaN");
		} else {
			o. //content assist could include methods from Integer
		}
	}
Comment 1 Markus Keller CLA 2008-08-21 10:01:30 EDT
*** Bug 232930 has been marked as a duplicate of this bug. ***