commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hen...@apache.org
Subject svn commit: r1165654 - /commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/internal/introspection/IntrospectorBase.java
Date Tue, 06 Sep 2011 13:02:31 GMT
Author: henrib
Date: Tue Sep  6 13:02:31 2011
New Revision: 1165654

URL: http://svn.apache.org/viewvc?rev=1165654&view=rev
Log:
Fixed issue where class loader change was not properly cleaning the constructor map

Modified:
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/internal/introspection/IntrospectorBase.java

Modified: commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/internal/introspection/IntrospectorBase.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/internal/introspection/IntrospectorBase.java?rev=1165654&r1=1165653&r2=1165654&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/internal/introspection/IntrospectorBase.java
(original)
+++ commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/internal/introspection/IntrospectorBase.java
Tue Sep  6 13:02:31 2011
@@ -180,7 +180,7 @@ public class IntrospectorBase {
                 Iterator<Map.Entry<MethodKey, Constructor<?>>> entries
= constructorsMap.entrySet().iterator();
                 while(entries.hasNext()) {
                     Map.Entry<MethodKey, Constructor<?>> entry = entries.next();
-                    Class<?> clazz = entry.getValue().getClass();
+                    Class<?> clazz = entry.getValue().getDeclaringClass();
                     if (isLoadedBy(previous, clazz)) {
                         entries.remove();
                         // the method name is the name of the class



Mime
View raw message