Uploaded image for project: 'Commons Sandbox'
  1. Commons Sandbox
  2. SANDBOX-397

[BeanUtils2] Replace NullPointerExceptions been thrown in DefaultBeanAccessor with NoSuchMethodEceptions

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • None
    • BeanUtils2
    • None

    Description

      At the moment, methods in DefaultBeanAccessor throw a NullPointerException, if no PropertyDescriptor for a given property name can be retrieved. As discussed on the ML (see http://markmail.org/thread/zlehclmybp5xgn5n) this behavior should be changed to throwing NoSuchMethodException.

      Attachments

        1. SANDBOX-397.txt
          12 kB
          Benedikt Ritter
        2. SANDBOX-397_SRP.txt
          16 kB
          Benedikt Ritter
        3. SANDBOX-397_SRPv2.txt
          17 kB
          Benedikt Ritter

        Issue Links

          Activity

            People

              simone.tripodi Simone Tripodi
              britter Benedikt Ritter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: