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

(-)org/apache/el/lang/ExpressionBuilder.java (-1 / +1 lines)
Lines 172-178 Link Here
172
						"error.fnMapper.method", funcNode.getOutputName()));
172
						"error.fnMapper.method", funcNode.getOutputName()));
173
			}
173
			}
174
			int pcnt = m.getParameterTypes().length;
174
			int pcnt = m.getParameterTypes().length;
175
			if (node.jjtGetNumChildren() != pcnt) {
175
			if (m.isVarArgs() ? pcnt - 1 > node.jjtGetNumChildren() : node.jjtGetNumChildren() != pcnt ) {
176
				throw new ELException(MessageFactory.get(
176
				throw new ELException(MessageFactory.get(
177
						"error.fnMapper.paramcount", funcNode.getOutputName(),
177
						"error.fnMapper.paramcount", funcNode.getOutputName(),
178
						"" + pcnt, "" + node.jjtGetNumChildren()));
178
						"" + pcnt, "" + node.jjtGetNumChildren()));

Return to bug 44294