MyFaces Core
  1. MyFaces Core
  2. MYFACES-1576

PropertyResolver.getType() should check arguments

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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 PropertyResolver.getType(Object, int) should throw PropertyNotFoundException when the int is out of bounds or Object is null.

      Also PropertyResolver.getType(Object, Object) should throw PropertyNotFoundException when either argument is null.

        Activity

        Paul McMahan created issue -
        Hide
        Paul McMahan added a comment -

        patch checks the args for null and checks for out of bounds when the base object is an instanceof List or Object[]

        Show
        Paul McMahan added a comment - patch checks the args for null and checks for out of bounds when the base object is an instanceof List or Object[]
        Paul McMahan made changes -
        Field Original Value New Value
        Attachment MYFACES-1576.patch [ 12353995 ]
        Paul McMahan made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Paul McMahan made changes -
        Description According to the spec PropertyResolver.getType(Object, int) should throw PropertyNotFoundException when the int is out of bounds or Object is null.

        Also PropertyResolver.getType(Object, property) should throw PropertyNotFoundException when property is null.
        According to the spec PropertyResolver.getType(Object, int) should throw PropertyNotFoundException when the int is out of bounds or Object is null.

        Also PropertyResolver.getType(Object, Object) should throw PropertyNotFoundException when either argument is null.
        Matthias Weßendorf made changes -
        Assignee Matthias Weßendorf [ matzew ]
        Hide
        Matthias Weßendorf added a comment -

        thx Paul!

        Show
        Matthias Weßendorf added a comment - thx Paul!
        Matthias Weßendorf made changes -
        Fix Version/s 1.2.0-SNAPSHOT [ 12311938 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Matthias Weßendorf made changes -
        Fix Version/s  1.2.0 [ 12312576 ]
        Affects Version/s 1.2.0-SNAPSHOT [ 12311938 ]
        Affects Version/s  1.2.0 [ 12312576 ]
        Fix Version/s 1.2.0-SNAPSHOT [ 12311938 ]
        Matthias Weßendorf made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Matthias Weßendorf
            Reporter:
            Paul McMahan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development