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

BeanUtilsBean: Set a mapped/indexed property, for example "property(time)[0]"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • 1.8.0
    • Expression Syntax
    • None
    • Operating System: other
      Platform: Other

    • 38722

    Description

      From line 1014 ff there is the following piece of code:

      try {
      if (index >= 0)

      { getPropertyUtils().setIndexedProperty(target, propName, index, newValue); }

      else if (key != null)

      { getPropertyUtils().setMappedProperty(target, propName, key, newValue); }

      else

      { getPropertyUtils().setProperty(target, propName, newValue); }

      ...

      That's good for mapped OR indexed properties, but unfortunatly i have both at
      the same time. So index is >= 0 and key is also != null.

      My property-name looks like this one here:
      property(time)[0]

      Attachments

        1. BEANUTILS-215.patch
          2 kB
          Henri Yandell

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lwensauer@atoss-csd.de Ludwig Wensauer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: