Bug 567628 - Injection engine should not drill down to Object.class
Summary: Injection engine should not drill down to Object.class
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.17   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-06 06:20 EDT by Wim Jongman CLA
Modified: 2020-10-06 06:20 EDT (History)
0 users

See Also:


Attachments

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