| Summary: | [Compatibility] ICommon is not being correctly adapted | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Paul Webster <pwebster> |
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, remy.suen, rolf.theunissen |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: | https://git.eclipse.org/r/#/c/138905/ | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 366520 | ||
|
Description
Paul Webster
One of our service plugins adds an adapter from Object to org.eclipse.e4.examples.services.snippets.adapter.ThingWithId
In 4.2 when we get into org.eclipse.ui.internal.ObjectContributorManager.getCommonClasses(List, List) and are at the "if (otherAdapters.isEmpty() && !adapters.isEmpty()) {...} else {...}" we take the *else*, and then we take the inner *else* and remove ICommon from *adapters*.
In 3.x we take the first if and do a "removeNonCommonAdapters(adapters, classesAndInterfaces);" which leaves the ICommon interface in the *adapters* list.
This problem has existed in the 3.x stream since at least 3.2
PW
Fixed in the context of Bug 485167. It is made sure that org.eclipse.e4.examples.* is no longer in the target platform when running the tests with the available launchers. *** This bug has been marked as a duplicate of bug 485167 *** |