Community
Participate
Working Groups
org.eclipse.ui.tests.menus.ObjectContributionTest.testAdaptables() shows the test objects are not being adapted to ICommon interface and so the ObjectContribution is not being honoured. PW
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 ***