You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Pavel Stetsuk (JIRA)" <my...@incubator.apache.org> on 2005/10/11 11:49:05 UTC
[jira] Created: (MYFACES-689) PropertyResolverImpl.getType(Object base, int index) return null if base instanceof Object[]
PropertyResolverImpl.getType(Object base, int index) return null if base instanceof Object[]
--------------------------------------------------------------------------------------------
Key: MYFACES-689
URL: http://issues.apache.org/jira/browse/MYFACES-689
Project: MyFaces
Type: Bug
Components: Implementation
Versions: Nightly
Environment: jdk 1.5, jboss4.0.2
Reporter: Pavel Stetsuk
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
[jira] Updated: (MYFACES-689) PropertyResolverImpl.getType(Object
base, int index) return null if base instanceof Object[]
Posted by "Pavel Stetsuk (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-689?page=all ]
Pavel Stetsuk updated MYFACES-689:
----------------------------------
Attachment: myfaces-689.zip
this example generate error
> PropertyResolverImpl.getType(Object base, int index) return null if base instanceof Object[]
> --------------------------------------------------------------------------------------------
>
> Key: MYFACES-689
> URL: http://issues.apache.org/jira/browse/MYFACES-689
> Project: MyFaces
> Type: Bug
> Components: Implementation
> Versions: 1.1.2
> Environment: jdk 1.5, jboss4.0.2
> Reporter: Pavel Stetsuk
> Fix For: Nightly
> Attachments: myfaces-689.zip
>
> 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
[jira] Updated: (MYFACES-689) PropertyResolverImpl.getType(Object base, int index) return null if base instanceof Object[]
Posted by "Howard Abrams (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-689?page=all ]
Howard Abrams updated MYFACES-689:
----------------------------------
Fix Version: 1.1.3
> PropertyResolverImpl.getType(Object base, int index) return null if base instanceof Object[]
> --------------------------------------------------------------------------------------------
>
> Key: MYFACES-689
> URL: http://issues.apache.org/jira/browse/MYFACES-689
> Project: MyFaces
> Type: Bug
> Components: Implementation
> Versions: Nightly
> Environment: jdk 1.5, jboss4.0.2
> Reporter: Pavel Stetsuk
> Fix For: 1.1.3
>
> 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
[jira] Updated: (MYFACES-689) PropertyResolverImpl.getType(Object
base, int index) return null if base instanceof Object[]
Posted by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-689?page=all ]
Martin Marinschek updated MYFACES-689:
--------------------------------------
Status: Resolved (was: Patch Available)
Fix Version/s: 1.1.5-SNAPSHOT
Resolution: Fixed
Assignee: Martin Marinschek (was: Manfred Geiler)
Thanks to Pavel Stetsuk.
> PropertyResolverImpl.getType(Object base, int index) return null if base instanceof Object[]
> --------------------------------------------------------------------------------------------
>
> Key: MYFACES-689
> URL: http://issues.apache.org/jira/browse/MYFACES-689
> Project: MyFaces Core
> Issue Type: Bug
> Components: General
> Affects Versions: 1.1.2-SNAPSHOT
> Environment: jdk 1.5, jboss4.0.2
> Reporter: Pavel Stetsuk
> Assigned To: Martin Marinschek
> Fix For: 1.1.5-SNAPSHOT
>
> Attachments: myfaces-689.zip, myfaces-689.zip, patch-689
>
>
> 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
[jira] Updated: (MYFACES-689) PropertyResolverImpl.getType(Object
base, int index) return null if base instanceof Object[]
Posted by "Pavel Stetsuk (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-689?page=all ]
Pavel Stetsuk updated MYFACES-689:
----------------------------------
> PropertyResolverImpl.getType(Object base, int index) return null if base instanceof Object[]
> --------------------------------------------------------------------------------------------
>
> Key: MYFACES-689
> URL: http://issues.apache.org/jira/browse/MYFACES-689
> Project: MyFaces Core
> Type: Bug
> Components: General
> Versions: 1.1.2
> Environment: jdk 1.5, jboss4.0.2
> Reporter: Pavel Stetsuk
> Assignee: Manfred Geiler
> Fix For: 1.1.2-SNAPSHOT
> Attachments: myfaces-689.zip, myfaces-689.zip
>
> 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