felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Pauls <karlpa...@gmail.com>
Subject Re: getServiceReferences + empty filter
Date Tue, 17 Dec 2013 18:43:30 GMT
what makes you think that this is "technically" a valid filter string?

regards,

Karl

On Tuesday, December 17, 2013, Raymond Auge wrote:

> 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)
>


-- 
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message