You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gabriel Buades Rubio (JIRA)" <ji...@apache.org> on 2009/04/03 12:10:12 UTC

[jira] Created: (JXPATH-131) Bean exception handling

Bean exception handling
-----------------------

                 Key: JXPATH-131
                 URL: https://issues.apache.org/jira/browse/JXPATH-131
             Project: Commons JXPath
          Issue Type: Improvement
    Affects Versions: 1.2 Final, 1.3
         Environment: Many
            Reporter: Gabriel Buades Rubio
             Fix For: 1.3


When an exception is thrown from a bean getter method, or a Collection size() method, this exception is simply ignored.

I've improved this behavior, by allowing a new setIgnoreExceptions(boolean ignoreExceptions)  method on JXPathContext.

When you set ignoreExceptions to false, any exception thrown will be reported to the client application.
When you do not set ignoreExceptions, any exception will be ignored as usual

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


[jira] Updated: (JXPATH-131) Bean exception handling

Posted by "Gabriel Buades Rubio (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JXPATH-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gabriel Buades Rubio updated JXPATH-131:
----------------------------------------

    Attachment: patch.diff

Patch to be applied at source tree

> Bean exception handling
> -----------------------
>
>                 Key: JXPATH-131
>                 URL: https://issues.apache.org/jira/browse/JXPATH-131
>             Project: Commons JXPath
>          Issue Type: Improvement
>    Affects Versions: 1.2 Final, 1.3
>         Environment: Many
>            Reporter: Gabriel Buades Rubio
>             Fix For: 1.3
>
>         Attachments: patch.diff, patch.test.diff
>
>
> When an exception is thrown from a bean getter method, or a Collection size() method, this exception is simply ignored.
> I've improved this behavior, by allowing a new setIgnoreExceptions(boolean ignoreExceptions)  method on JXPathContext.
> When you set ignoreExceptions to false, any exception thrown will be reported to the client application.
> When you do not set ignoreExceptions, any exception will be ignored as usual

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


[jira] Resolved: (JXPATH-131) Bean exception handling

Posted by "Matt Benson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JXPATH-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Benson resolved JXPATH-131.
--------------------------------

    Resolution: Fixed

While the work you put into your patches is most appreciated, I have opted to address the problem in a different way that requires a lot less API refactoring.  svn revision 917247 contains a new ExceptionHandler class which you can plug into your JXPathContext as needed.  Thanks for your interest.

> Bean exception handling
> -----------------------
>
>                 Key: JXPATH-131
>                 URL: https://issues.apache.org/jira/browse/JXPATH-131
>             Project: Commons JXPath
>          Issue Type: Improvement
>    Affects Versions: 1.2 Final, 1.3
>         Environment: Many
>            Reporter: Gabriel Buades Rubio
>             Fix For: 1.4
>
>         Attachments: patch.diff, patch.test.diff
>
>
> When an exception is thrown from a bean getter method, or a Collection size() method, this exception is simply ignored.
> I've improved this behavior, by allowing a new setIgnoreExceptions(boolean ignoreExceptions)  method on JXPathContext.
> When you set ignoreExceptions to false, any exception thrown will be reported to the client application.
> When you do not set ignoreExceptions, any exception will be ignored as usual

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


[jira] Updated: (JXPATH-131) Bean exception handling

Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JXPATH-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated JXPATH-131:
----------------------------------

    Fix Version/s:     (was: 1.3)
                   post-1.3

> Bean exception handling
> -----------------------
>
>                 Key: JXPATH-131
>                 URL: https://issues.apache.org/jira/browse/JXPATH-131
>             Project: Commons JXPath
>          Issue Type: Improvement
>    Affects Versions: 1.2 Final, 1.3
>         Environment: Many
>            Reporter: Gabriel Buades Rubio
>             Fix For: post-1.3
>
>         Attachments: patch.diff, patch.test.diff
>
>
> When an exception is thrown from a bean getter method, or a Collection size() method, this exception is simply ignored.
> I've improved this behavior, by allowing a new setIgnoreExceptions(boolean ignoreExceptions)  method on JXPathContext.
> When you set ignoreExceptions to false, any exception thrown will be reported to the client application.
> When you do not set ignoreExceptions, any exception will be ignored as usual

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


[jira] Updated: (JXPATH-131) Bean exception handling

Posted by "Gabriel Buades Rubio (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JXPATH-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gabriel Buades Rubio updated JXPATH-131:
----------------------------------------

    Attachment: patch.test.diff

Patch to be applied to junit tests.

> Bean exception handling
> -----------------------
>
>                 Key: JXPATH-131
>                 URL: https://issues.apache.org/jira/browse/JXPATH-131
>             Project: Commons JXPath
>          Issue Type: Improvement
>    Affects Versions: 1.2 Final, 1.3
>         Environment: Many
>            Reporter: Gabriel Buades Rubio
>             Fix For: 1.3
>
>         Attachments: patch.diff, patch.test.diff
>
>
> When an exception is thrown from a bean getter method, or a Collection size() method, this exception is simply ignored.
> I've improved this behavior, by allowing a new setIgnoreExceptions(boolean ignoreExceptions)  method on JXPathContext.
> When you set ignoreExceptions to false, any exception thrown will be reported to the client application.
> When you do not set ignoreExceptions, any exception will be ignored as usual

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