You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2006/09/25 23:33:35 UTC

svn commit: r449820 - /tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java

Author: remm
Date: Mon Sep 25 14:33:34 2006
New Revision: 449820

URL: http://svn.apache.org/viewvc?view=rev&rev=449820
Log:
- Fix isReadOnly method.
- Submitted by Stan Silvert.

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/viewvc/tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java?view=diff&rev=449820&r1=449819&r2=449820
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java (original)
+++ tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java Mon Sep 25 14:33:34 2006
@@ -223,8 +223,8 @@
 		}
 
 		public boolean isReadOnly() {
-			return this.write != null
-					|| null == getMethod(type, descriptor.getWriteMethod());
+		    return this.write == null
+		        && (null == (this.write = getMethod(this.owner, descriptor.getWriteMethod())));
 		}
 
 		public Method write(ELContext ctx) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org