axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding/ser EnumDeserializer.java
Date Tue, 12 Aug 2003 03:50:20 GMT
ericf       2003/08/11 20:50:20

  Modified:    java/src/org/apache/axis/encoding/ser EnumDeserializer.java
  Log:
  fix for 22335: use MethodCache for reflection
  
  Revision  Changes    Path
  1.7       +3 -1      xml-axis/java/src/org/apache/axis/encoding/ser/EnumDeserializer.java
  
  Index: EnumDeserializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/ser/EnumDeserializer.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- EnumDeserializer.java	12 Aug 2003 03:39:53 -0000	1.6
  +++ EnumDeserializer.java	12 Aug 2003 03:50:20 -0000	1.7
  @@ -59,6 +59,8 @@
   import java.beans.IntrospectionException;
   import java.lang.reflect.Method;
   
  +import org.apache.axis.utils.cache.MethodCache;
  +
   /**
    * Deserializer for a JAX-RPC enum.
    *
  @@ -82,7 +84,7 @@
               return null;
           if (fromStringMethod == null) {
               try {
  -                fromStringMethod = javaType.getMethod("fromString", STRING_CLASS);
  +                fromStringMethod = MethodCache.getInstance().getMethod(javaType, "fromString",
STRING_CLASS);
               } catch (Exception e) {
                   throw new IntrospectionException(e.toString());
               }
  
  
  

Mime
View raw message