You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2006/07/28 17:10:58 UTC

svn commit: r426553 - /webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/SerializerRegistry.java

Author: danj
Date: Fri Jul 28 08:10:58 2006
New Revision: 426553

URL: http://svn.apache.org/viewvc?rev=426553&view=rev
Log:
Fix: searchClassHierarchy() was not returning the search result if a parent class was found 
to meet the type requirement of a serializer. The method was finding the result, but never 
checking to see if it was not null and returning it!

Modified:
    webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/SerializerRegistry.java

Modified: webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/SerializerRegistry.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/SerializerRegistry.java?rev=426553&r1=426552&r2=426553&view=diff
==============================================================================
--- webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/SerializerRegistry.java (original)
+++ webservices/muse/trunk/modules/muse-core/src/org/apache/muse/core/serializer/SerializerRegistry.java Fri Jul 28 08:10:58 2006
@@ -154,7 +154,12 @@
         Class parent = type.getSuperclass();
         
         if (parent != null && parent != Object.class)
+        {
             ser = searchClassHierarchy(parent);
+            
+            if (ser != null)
+                return ser;
+        }
         
         Class[] interfaces = type.getInterfaces();
         



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org