Commons BeanUtils
  1. Commons BeanUtils
  2. BEANUTILS-319

PropertyUtils.getPropertyType fails for DynaBeans contained within a normal bean

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0-BETA
    • Fix Version/s: 1.8.0
    • Component/s: Bean / Property Utils
    • Labels:
      None

      Description

      public class OuterBean {
      private DynaBean inner;

      public DynaBean getInner()

      { return inner; }

      public void setInner(DynaBean inner)

      { this.inner = inner; }

      }

      I am unable to get the type of any of the DynaBean properties as nested properties of the outer bean. I can get them using the DynaBean directly, eg:

      PropertyUtils.getPropertyType(outer.getInner(), "foo") <- returns correct type
      PropertyUtils.getPropertyType(outer, "inner.foo") <- returns null

      1. InnerDynaBeanTestCase.java
        2 kB
        Erik Erskine
      2. patch.txt
        5 kB
        Erik Erskine

        Activity

        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Niall Pemberton made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.8.0 [ 12311949 ]
        Assignee Niall Pemberton [ niallp ]
        Erik Erskine made changes -
        Attachment patch.txt [ 12385130 ]
        Erik Erskine made changes -
        Attachment InnerDynaBeanTestCase.java [ 12385106 ]
        Erik Erskine made changes -
        Attachment InnerDynaBeanTestCase.java [ 12385128 ]
        Erik Erskine made changes -
        Field Original Value New Value
        Attachment InnerDynaBeanTestCase.java [ 12385106 ]
        Erik Erskine created issue -

          People

          • Assignee:
            Niall Pemberton
            Reporter:
            Erik Erskine
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development