Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-319

PropertyUtils.getPropertyType fails for DynaBeans contained within a normal bean

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: