[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] I think MetaTypeProviderTracker is broken

I figured out the problem, and it's not as I described below.  It turns out that if you have static metatype data in an OSGI-INF/metatype folder, then your MetaTypeProvider services are ignored.  Removing the OSGI-INF/metatype folder and switching all metatype data to use MetaTypeProvider services fixed the problem.


On Jul 26, 2013, at 09:01 PM, Bryan Hunt <bhunt@xxxxxxx> wrote:

I'm debugging MetaTypeProviderTracker and I see on line 105

if (serviceReference.getBundle() == _bundle)

This if statement is always false because _bundle is org.eclipse.osgi_3.9.0.v20130529-1710 which means that only MetaTypeProvider services registered by the OSGi bundle will be added.  I think the == should be !=.  Am I missing something?

equinox-dev mailing list