tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r649638 - /tomcat/trunk/java/org/apache/el/lang/ELSupport.java
Date Fri, 18 Apr 2008 18:10:14 GMT
Author: markt
Date: Fri Apr 18 11:10:06 2008
New Revision: 649638

URL: http://svn.apache.org/viewvc?rev=649638&view=rev
Log:
Fix bug 43656. coerceToType() modified some values. Patch provided by Nils Eckert.

Modified:
    tomcat/trunk/java/org/apache/el/lang/ELSupport.java

Modified: tomcat/trunk/java/org/apache/el/lang/ELSupport.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/lang/ELSupport.java?rev=649638&r1=649637&r2=649638&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/lang/ELSupport.java (original)
+++ tomcat/trunk/java/org/apache/el/lang/ELSupport.java Fri Apr 18 11:10:06 2008
@@ -334,7 +334,8 @@
 
     public final static Object coerceToType(final Object obj, final Class type)
             throws IllegalArgumentException {
-        if (type == null || Object.class.equals(type)) {
+        if (type == null || Object.class.equals(type) ||
+                type.equals(obj.getClass())) {
             return obj;
         }
         if (String.class.equals(type)) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message