Hey All,

Is it expected that passing a minimal filter string should fail when
fetching ServiceReferences?

For instance: "()" is technically a valid filter string.

But this fails:

_bundleContext.getServiceReferences(clazz, "()")

with

org.osgi.framework.InvalidSyntaxException: Missing closing parenthesis: ()
at org.apache.felix.framework.Felix.getServiceReferences(Felix.java:3453)
at
org.apache.felix.framework.Felix.getAllowedServiceReferences(Felix.java:3531)
at
org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:432)

I mean it's not a big deal, just unexpected.

-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect
*Liferay, Inc.* <http://www.liferay.com> (@Liferay)

Reply via email to