Bug 208544

Summary: improve content assist after ! (x instanceof T)
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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. ***