Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4778

Property binding does not work correctly for attribute lName with setter setLName()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.3.31
    • Fix Version/s: 2.3.28
    • Component/s: Core
    • Labels:
      None
    • Environment:

      did NOT appear in struts2.3.15.3, and now appears in struts2.3.32

      Description

      Property binding does not work correctly for attribute lName with setter setLName()
      (camel case problem in ONGL???? couldn't check this out in detail due to lack of time...)
      workaround: lName renamed to lastName and setLName() renamed to setLastName()

      Method setLastName() is recognized correctly (name of method keyed inside methodsByPropertyName of OnglRuntime.get(Class clazz, String propertyName)
      for key "lastName" is "setLastName" as expected), whereas setLName() is not (name of method keyed inside methodsByPropertyName for key "lName" is "get")

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mcmanus3x Markus Bohr
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: