commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JXPATH-131) Bean exception handling
Date Sun, 28 Feb 2010 18:50:06 GMT

     [ 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.


Mime
View raw message