Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] OSGi 4.3 contract breach?

Hi,

I think many use this pattern:

Properties properties = new Properties();
context.registerService(
IGravityEventHandler.class.getName(),
new LoggingGravityEventHandler(), properties);

However, since my upgrade to 3.7 I get an error. Apparently the interface to the registerservice method has been changed:

from

registerService(java.lang.String clazz, java.lang.Object service, java.util.Dictionary properties) 

to

registerService(java.lang.Class<S> clazz, S service, java.util.Dictionary<java.lang.String,?> properties) 

Quite annoying right?

Regards,

Wim

Back to the top