MyFaces Core
  1. MyFaces Core
  2. MYFACES-1410

CLONE -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: None
    • 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. diff_core
        0.7 kB
        Pavel Stetsuk

        Issue Links

          Activity

          Manfred Geiler made changes -
          Fix Version/s 1.1.5-SNAPSHOT [ 12311960 ]
          Fix Version/s 1.1.5 [ 12312310 ]
          Martin Marinschek made changes -
          Assignee Manfred Geiler [ manolito ] Martin Marinschek [ mmarinschek ]
          Fix Version/s 1.1.5-SNAPSHOT [ 12311960 ]
          Resolution Fixed [ 1 ]
          Status Patch Available [ 10002 ] Closed [ 6 ]
          Pavel Stetsuk made changes -
          Attachment diff_core [ 12341186 ]
          Pavel Stetsuk made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Pavel Stetsuk made changes -
          Field Original Value New Value
          Link This issue is a clone of MYFACES-689 [ MYFACES-689 ]
          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