Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 Final, 1.3
    • Fix Version/s: 1.4
    • Labels:
      None
    • Environment:

      Many

      Description

      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

      1. patch.diff
        30 kB
        Gabriel Buades Rubio
      2. patch.test.diff
        1 kB
        Gabriel Buades Rubio

        Activity

        Hide
        Gabriel Buades Rubio added a comment -

        Patch to be applied at source tree

        Show
        Gabriel Buades Rubio added a comment - Patch to be applied at source tree
        Hide
        Gabriel Buades Rubio added a comment -

        Patch to be applied to junit tests.

        Show
        Gabriel Buades Rubio added a comment - Patch to be applied to junit tests.
        Hide
        Matt Benson added a comment -

        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.

        Show
        Matt Benson added a comment - 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.

          People

          • Assignee:
            Unassigned
            Reporter:
            Gabriel Buades Rubio
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development