Author: remm
Date: Thu Apr 20 05:46:25 2006
New Revision: 395575

URL: http://svn.apache.org/viewcvs?rev=395575&view=rev
Log:
- Fix improper caching by checking the class definition.

Modified:
    tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java

Modified: tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java
URL: 
http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java?rev=395575&r1=395574&r2=395575&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java (original)
+++ tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java Thu Apr 20 05:46:25 
2006
@@ -194,6 +194,10 @@
                        }
                        return property;
                }
+        
+        public Class<?> getType() {
+            return type;
+        }
        }
 
        private final static class BeanProperty {
@@ -253,7 +257,7 @@
                String prop = property.toString();
 
                BeanProperties props = this.cache.get(type.getName());
-               if (props == null) {
+               if (props == null || type != props.getType()) {
                        props = new BeanProperties(type);
                        this.cache.put(type.getName(), props);
                }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to