Bug 567628

Summary: Injection engine should not drill down to Object.class
Product: [Eclipse Project] Platform Reporter: Wim Jongman <wim.jongman>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.17   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Wim Jongman CLA 2020-10-06 06:20:48 EDT
While tracing an issue, I noticed that the injection engine drills down to the Object.class to find methods with the wanted annotation. In this case specifically @CanExecute. 

Obviously it will not find that annotation in Object.class.

Assuming that...

* This also happens for other annotations (@Focus, etc..)
* The annotation is optional (e.g. it is likely that it is not used)
* The annotation is queried a lot (e.g. @CanExecute)

...we could shave some milliseconds during rendering if we block the inspector to not look beyond a certain superclass.