Commons BeanUtils
  1. Commons BeanUtils
  2. BEANUTILS-106

Problem with BeanUtils.setProperty when the name of property of Bean have on second caracter a uppercase

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Won't Fix
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

      Description

      I have a bean with one property hEmail. I fact the Bean have these methods
      setHEmail(String hEmail) and getHEmail().

      There is a problem with these instruction :

      BeanUtils.setProperty(bean, "hEmail", new String("dupond"));
      or
      BeanUtils.copyProperty(bean, "hEmail", new String("dupond"));

      The property hEmail does not contain "dupond" after this instruction.

      If I check my property name with the command :

      String name = new
      PropertyUtilsBean().getPropertyDescriptors(mainBean)[0].getName();

      The result of name is HEmail (not hEmail)

      Info : if I change the property of bean hEmail by hemail there is also no problem.

      I fact I think there is a problem with the command
      PropertyUtilsBean().getPropertyDescriptors(mainBean), that don't return
      correctly the property of the bean when the name of property have on second
      character a uppercase.

      Version JVM : 1.4.2-b18 or 1.4.1_02-b06
      Version BeanUtils (Nightly Builds) v1.6.1 2003-10-01

      Best regards

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Dutrieux Olivier
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development