castor
  1. castor
  2. CASTOR-3201

Trying to pass an extra attribute to MapItem leads to a null value in an unrelated class when that value is an attribute with a location specified

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.3.3rc1
    • Component/s: Core
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      We have existing XML files, e.g. for configuration, that use a Map for holding parameters. Besides name and value there is also a "mandatory" field which is not mapped or used.
      The existence of this field mysteriously leads to a null value elsewhere. This only happens if that value comes from an attribute with the "location" attribute in it's mapping.
      Version 1.2 did not have this error. I have attached a small test project to demonstrate this strange behavior.

        Activity

        Hide
        Werner Guttmann added a comment -

        I'll commit a patch in a few minutes, and I'd appreciate any (extensive) testing on your side.

        Show
        Werner Guttmann added a comment - I'll commit a patch in a few minutes, and I'd appreciate any (extensive) testing on your side.
        Hide
        Hein Stolle added a comment -

        Our unit tests now run fine with your patch.

        Show
        Hein Stolle added a comment - Our unit tests now run fine with your patch.

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Hein Stolle
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: