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

PropertyUtils.getPropertyType fails for DynaBeans contained within a normal bean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.0-BETA
    • 1.8.0
    • Bean / Property Utils
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: