You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/03/22 15:51:27 UTC

[jira] Resolved: (FELIX-2221) DataModelHelper.filter() throws wrong Exception

     [ https://issues.apache.org/jira/browse/FELIX-2221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved FELIX-2221.
--------------------------------------

    Resolution: Fixed

Fixed in Rev. 926109 and deployed SNAPSHOT 1.5.0-20100322.145057-8

> DataModelHelper.filter() throws wrong Exception
> -----------------------------------------------
>
>                 Key: FELIX-2221
>                 URL: https://issues.apache.org/jira/browse/FELIX-2221
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: bundlerepository-1.6.0
>
>
> The DataModelHelper.filter method is documented to throw InvalidSyntaxException if the filter syntax is incorrect, yet the signature does not contain this checked exception. Also the DataModelHelperImpl.filter method actually wraps the InvalidSyntaxException inside an IllegalArgumentException.
> I think, we should implement DataModelHelper as intended by adding the InvalidSyntaxException to the signature and forwarding the exception unmodified from the filter() method implementation

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.