View | Details | Raw Unified | Return to bug 43285
Collapse All | Expand All

(-)tomcat/tc6.0.x/trunk/java/org/apache/el/parser/AstValue.java (-1 / +6 lines)
Lines 26-31 Link Here
26
import javax.el.MethodInfo;
26
import javax.el.MethodInfo;
27
import javax.el.PropertyNotFoundException;
27
import javax.el.PropertyNotFoundException;
28
28
29
import org.apache.el.lang.ELSupport;
29
import org.apache.el.lang.EvaluationContext;
30
import org.apache.el.lang.EvaluationContext;
30
import org.apache.el.util.MessageFactory;
31
import org.apache.el.util.MessageFactory;
31
import org.apache.el.util.ReflectionUtil;
32
import org.apache.el.util.ReflectionUtil;
Lines 127-133 Link Here
127
            throws ELException {
128
            throws ELException {
128
        Target t = getTarget(ctx);
129
        Target t = getTarget(ctx);
129
        ctx.setPropertyResolved(false);
130
        ctx.setPropertyResolved(false);
130
        ctx.getELResolver().setValue(ctx, t.base, t.property, value);
131
        ELResolver resolver = ctx.getELResolver();
132
        resolver.setValue(ctx, t.base, t.property, 
133
        		// coerce to the expected type
134
        		ELSupport.coerceToType(value, 
135
        				resolver.getType(ctx, t.base, t.property)));
131
    }
136
    }
132
137
133
    public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes)
138
    public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes)

Return to bug 43285