myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Stetsuk (JIRA)" <...@myfaces.apache.org>
Subject [jira] Updated: (MYFACES-1410) CLONE -PropertyResolverImpl.getType(Object base, int index) return null if base instanceof Object[]
Date Wed, 20 Sep 2006 08:03:24 GMT
     [ http://issues.apache.org/jira/browse/MYFACES-1410?page=all ]

Pavel Stetsuk updated MYFACES-1410:
-----------------------------------

    Status: Patch Available  (was: Open)

> CLONE -PropertyResolverImpl.getType(Object base, int index) return null if base instanceof
Object[]
> ---------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-1410
>                 URL: http://issues.apache.org/jira/browse/MYFACES-1410
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>         Environment: jdk 1.5, jboss4.0.2
>            Reporter: Pavel Stetsuk
>         Assigned To: Manfred Geiler
>
> 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();
>                  }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message