camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r594858 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java
Date Wed, 14 Nov 2007 12:52:52 GMT
Author: jstrachan
Date: Wed Nov 14 04:52:47 2007
New Revision: 594858

URL: http://svn.apache.org/viewvc?rev=594858&view=rev
Log:
applied patch from Roman with thanks for http://issues.apache.org/activemq/browse/CAMEL-194

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java?rev=594858&r1=594857&r2=594858&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/DefaultTypeConverter.java
Wed Nov 14 04:52:47 2007
@@ -195,7 +195,7 @@
                 TypeMapping key = entry.getKey();
                 Class aToType = key.getToType();
                 if (toType.isAssignableFrom(aToType)) {
-                    if (fromType.isAssignableFrom(key.getFromType())) {
+                    if (key.getFromType().isAssignableFrom(fromType)) {
                         return entry.getValue();
                     }
                 }



Mime
View raw message