MyFaces Core
  1. MyFaces Core
  2. MYFACES-689

PropertyResolverImpl.getType(Object base, int index) return null if base instanceof Object[]

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.2-SNAPSHOT
    • Fix Version/s: 1.1.5
    • Component/s: General
    • Labels:
      None
    • Environment:
      jdk 1.5, jboss4.0.2

      Description

      this code return null
      if (base instanceof Object[] && ((Object[])base)[index] != null)

      { Object[] array = (Object[]) base; return array[index].getClass().getComponentType(); }

      else {
      .....

      this change fix this error

      Index: /current/impl/src/java/org/apache/myfaces/el/PropertyResolverImpl.java
      ===================================================================
      — /current/impl/src/java/org/apache/myfaces/el/PropertyResolverImpl.java (revision 312842)
      +++ /current/impl/src/java/org/apache/myfaces/el/PropertyResolverImpl.java (working copy)
      @@ -308,7 +308,7 @@
      {
      if (base instanceof Object[] && ((Object[])base)[index] != null)

      { Object[] array = (Object[]) base; - return array[index].getClass().getComponentType(); + return array[index].getClass(); }

      else

      { return base.getClass().getComponentType(); }
      1. patch-689
        0.7 kB
        Pavel Stetsuk
      2. myfaces-689.zip
        1.86 MB
        Pavel Stetsuk
      3. myfaces-689.zip
        1.86 MB
        Pavel Stetsuk

        Issue Links

          Activity

          Manfred Geiler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Manfred Geiler made changes -
          Fix Version/s 1.1.5-SNAPSHOT [ 12311960 ]
          Fix Version/s 1.1.5 [ 12312310 ]
          Martin Marinschek made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 1.1.5-SNAPSHOT [ 12311960 ]
          Assignee Manfred Geiler [ manolito ] Martin Marinschek [ mmarinschek ]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hide
          Martin Marinschek added a comment -

          Thanks to Pavel Stetsuk.

          Show
          Martin Marinschek added a comment - Thanks to Pavel Stetsuk.
          Pavel Stetsuk made changes -
          Link This issue is cloned as MYFACES-1410 [ MYFACES-1410 ]
          sean schofield made changes -
          Workflow  MyFaces Workflow [ 12356872 ] MyFaces Workflow2 [ 12360501 ]
          sean schofield made changes -
          Workflow MyFaces Workflow2 [ 12355343 ]  MyFaces Workflow [ 12356872 ]
          sean schofield made changes -
          Workflow MyFaces Workflow [ 12353774 ] MyFaces Workflow2 [ 12355343 ]
          sean schofield made changes -
          Fix Version/s 1.1.2-SNAPSHOT [ 12310660 ]
          sean schofield made changes -
          Workflow MyFaces Workflow2 [ 12349090 ] MyFaces Workflow [ 12353774 ]
          Pavel Stetsuk made changes -
          Attachment patch-689 [ 12324798 ]
          Pavel Stetsuk made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Pavel Stetsuk made changes -
          Attachment myfaces-689.zip [ 12324797 ]
          Hide
          Pavel Stetsuk added a comment -

          this example generate error

          Show
          Pavel Stetsuk added a comment - this example generate error
          sean schofield made changes -
          Workflow MyFaces Workflow [ 12347644 ] MyFaces Workflow2 [ 12349090 ]
          sean schofield made changes -
          Workflow MyFaces Workflow [ 12347644 ] MyFaces Workflow2 [ 12349008 ]
          sean schofield made changes -
          Workflow MyFaces Workflow [ 12347644 ] MyFaces Workflow2 [ 12348958 ]
          sean schofield made changes -
          Workflow jira [ 12330997 ] MyFaces Workflow [ 12347644 ]
          Martin Marinschek made changes -
          Assignee Manfred Geiler [ manolito ]
          Pavel Stetsuk made changes -
          Attachment myfaces-689.zip [ 12322373 ]
          Hide
          Pavel Stetsuk added a comment -

          this example generate error

          Show
          Pavel Stetsuk added a comment - this example generate error
          Howard Abrams made changes -
          Field Original Value New Value
          Fix Version/s 1.1.3 [ 12310660 ]
          Pavel Stetsuk created issue -

            People

            • Assignee:
              Martin Marinschek
              Reporter:
              Pavel Stetsuk
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development