Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1577

PropertyResolver should throw PropertyNotFoundException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: JSR-252
    • Labels:
      None

      Description

      According to the spec several methods in PropertyResolver should throw PropertyNotFoundException in the following circumstances:

      getValue(Object base, int index)
      PropertyNotFoundException - if the index is out of bounds or if base is null

      setValue(Object base, int index, Object value)
      PropertyNotFoundException - if the index is out of bounds or if base is null

      setValue(Object base, Object property, Object value)
      PropertyNotFoundException - if the specified bean base object property does not exist or if base or property is null

      BTW, MYFACES-1576 already addressed these two cases:
      getType(Object base, int index)
      PropertyNotFoundException - if the index is out of bounds or if base is null
      getType(Object base, Object property)
      PropertyNotFoundException - if the specified bean base object property does not exist or if base or property is null

        Attachments

        1. MYFACES-1577-2.patch
          1.0 kB
          Paul McMahan
        2. MYFACES-1577.patch
          2 kB
          Paul McMahan

          Activity

            People

            • Assignee:
              pmcmahan Paul McMahan
              Reporter:
              pmcmahan Paul McMahan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: