Ok, I derived my understanding of the syntax from the LDIF definition, but
looking at the osgi spec again, clearly it does not allow for it.

Thx Karl

- Ray


On Tue, Dec 17, 2013 at 1:43 PM, Karl Pauls <[email protected]> wrote:

> 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
> [email protected]
> http://twitter.com/karlpauls
> http://www.linkedin.com/in/karlpauls
> https://profiles.google.com/karlpauls
>



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