(EvaluationContext ctx, Object value)
| 170 | } |
| 171 | |
| 172 | @Override |
| 173 | public void setValue(EvaluationContext ctx, Object value) throws ELException { |
| 174 | Target t = getTarget(ctx); |
| 175 | ctx.setPropertyResolved(false); |
| 176 | ELResolver resolver = ctx.getELResolver(); |
| 177 | |
| 178 | // coerce to the expected type |
| 179 | Class<?> targetClass = resolver.getType(ctx, t.base, t.property); |
| 180 | resolver.setValue(ctx, t.base, t.property, ELSupport.coerceToType(ctx, value, targetClass)); |
| 181 | if (!ctx.isPropertyResolved()) { |
| 182 | throw new PropertyNotFoundException(MessageFactory.get("error.resolver.unhandled", t.base, t.property)); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | @Override |
| 187 | // Interface el.parser.Node uses raw types (and is auto-generated) |
nothing calls this directly
no test coverage detected