castor
  1. castor
  2. CASTOR-534

XML Mapping fails when multiple getters/setters exist for the same field

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9.5
    • Fix Version/s: None
    • Component/s: XML
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • Bugzilla Id:
      1395
    • Number of attachments :
      0

      Description

      For example, if I have setField(short s) and setField(String str) with the
      second setter converting a string into a short, the mapping fails with an
      exception (not verbatim, but from memory):

      Exception mapping type java.lang.Short to type java.lang.Short

      Do you know of a way to coerce Castor into handling this situation (other than
      changing the setter/getter names not to be the identical)?

        Activity

        Hide
        Keith Visco added a comment -

        I'll take a look into it and see if I can clear up the issue. Thanks.

        Show
        Keith Visco added a comment - I'll take a look into it and see if I can clear up the issue. Thanks.

          People

          • Assignee:
            Unassigned
            Reporter:
            ygulko
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: