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

in BeanUtilsBean.setProperty method, a call to PropertyDescriptor.getReadMethod should call getWriteMethod. code writing mistakes which would issue in incorrect and unexpected result.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.8.3
    • 2.0.0
    • Bean / Property Utils
    • Windows 7 64bit.

    Description

      in edition 1.8.3 of the BeanUtilsBean's setProperty method, line 962, when judging if the bean has no writing method, it will return and don't process the setting method, what the codes have been written were:
      } else if (key != null) {
      if (descriptor.getReadMethod() == null) {
      if (log.isDebugEnabled())

      { log.debug("Skipping read-only property"); }

      return; // Read-only, skip this property setter
      }
      type = (value == null) ? Object.class : value.getClass();
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            anchoret Yi, Han
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: