You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2004/12/14 22:27:28 UTC
cvs commit: ws-axis/java/src/org/apache/axis/utils/cache MethodCache.java
dims 2004/12/14 13:27:28
Modified: java/src/org/apache/axis/utils/cache MethodCache.java
Log:
Fix for AXIS-1722 - MethodCache does not consider the classloader in the cache key
from Eric Norman (enorman@webmethods.com)
JIRA URL: http://nagoya.apache.org/jira/browse/AXIS-1722
Revision Changes Path
1.8 +2 -2 ws-axis/java/src/org/apache/axis/utils/cache/MethodCache.java
Index: MethodCache.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/utils/cache/MethodCache.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- MethodCache.java 15 Nov 2004 07:13:11 -0000 1.7
+++ MethodCache.java 14 Dec 2004 21:27:28 -0000 1.8
@@ -158,7 +158,7 @@
// Check the cache first.
MethodKey key = new MethodKey(methodName, parameterTypes);
- methods = (Map) cache.get(className);
+ methods = (Map) cache.get(clazz);
if (methods != null) {
Object o = methods.get(key);
if (o != null) { // cache hit
@@ -193,7 +193,7 @@
// first time we've seen this class: set up its method cache
if (methods == null) {
methods = new HashMap();
- cache.put(className, methods);
+ cache.put(clazz, methods);
}
// when no method is found, cache the NULL_OBJECT