castor
  1. castor
  2. CASTOR-379

FieldMolder should give InvocationTargetException to DataObjectAccessException constructor

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.4
    • Fix Version/s: 1.0 M2
    • Component/s: JDO
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • Bugzilla Id:
      1237
    • Number of attachments :
      1

      Description

      In the castor-0.9.4.3-src.tgz, in
      src/main/org/exolab/castor/persist/FieldMolder.java at line 261, a
      DataObjectAccessException is constructed, but the "except" object is not given
      to the constructor. The consequence is that a getException() on it returns null
      instead of the InvocationTargetException.

      This looks like a simple mistake comming from the fact that the exception is
      given to the Messages.format() call, near the closing parentesis of the
      constructor. The "except" object should in fact appear twice on that line.

      I tried to submit a patch, but anonymous CVS access was down. This is a very
      simple fix.

        Activity

        Hide
        Werner Guttmann added a comment -

        Final patch.

        Show
        Werner Guttmann added a comment - Final patch.

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Nicolas Marchildon
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: