You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2011/09/23 19:37:45 UTC
svn commit: r1174905 -
/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java
Author: lu4242
Date: Fri Sep 23 17:37:45 2011
New Revision: 1174905
URL: http://svn.apache.org/viewvc?rev=1174905&view=rev
Log:
MYFACES-3323 UIInput._createFieldDebugInfo should check for Object[] before call Arrays.deepToString(...)
Modified:
myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java
Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java?rev=1174905&r1=1174904&r2=1174905&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIInput.java Fri Sep 23 17:37:45 2011
@@ -1117,11 +1117,11 @@ public class UIInput extends UIOutput im
}
// convert Array values into a more readable format
- if (oldValue != null && oldValue.getClass().isArray())
+ if (oldValue != null && oldValue.getClass().isArray() && Object[].class.isAssignableFrom(oldValue.getClass()))
{
oldValue = Arrays.deepToString((Object[]) oldValue);
}
- if (newValue != null && newValue.getClass().isArray())
+ if (newValue != null && newValue.getClass().isArray() && Object[].class.isAssignableFrom(newValue.getClass()))
{
newValue = Arrays.deepToString((Object[]) newValue);
}