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

        Werner Guttmann made changes -
        Field Original Value New Value
        Assignee Werner Guttmann [ wguttmn ]
        Werner Guttmann made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.3.3 [ 17217 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: