axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding TypeMappingRegistry.java
Date Wed, 12 Dec 2001 19:33:55 GMT
gdaniels    01/12/12 11:33:55

  Modified:    java/src/org/apache/axis/encoding TypeMappingRegistry.java
  Log:
  Check all implemented interfaces directly before walking up the parent list.
  
  Revision  Changes    Path
  1.42      +10 -1     xml-axis/java/src/org/apache/axis/encoding/TypeMappingRegistry.java
  
  Index: TypeMappingRegistry.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/TypeMappingRegistry.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- TypeMappingRegistry.java	2001/12/12 19:14:47	1.41
  +++ TypeMappingRegistry.java	2001/12/12 19:33:54	1.42
  @@ -254,11 +254,20 @@
           // Search implemented interfaces
           if (!cls.isInterface()) {
               Class [] interfaces = cls.getInterfaces();
  +            // Walk the interface list WITHOUT checking parents
               for (int i = 0 ; i < interfaces.length ; i++ ) { 
  -                ser = findSerializer(interfaces[i]);
  +                ser = getSerializer(interfaces[i]);
                   if (ser != null)
                       return ser;
               }
  +            
  +            // and if that didn't work, check all the parents (and their
  +            // parents...)
  +            for (int i = 0 ; i < interfaces.length ; i++ ) { 
  +                ser = findSerializer(interfaces[i].getSuperclass());
  +                if (ser != null)
  +                    return ser;
  +            }            
           }
           
           // Search up the inheritance tree from here
  
  
  

Mime
View raw message