jsr341-experts@el-spec.java.net

[jsr341-experts] ELParseContext and ELEvaluationContext

From: Kin-man Chung <kinman.chung_at_oracle.com>
Date: Wed, 27 Jul 2011 16:50:26 -0700

It was suggested before (by Chrisph Beck, I think) that ELContext be
splitted into two contexts, one for EL parsing and the other for
evaluation. The argument for this was in EL parsing, only the
FunctionMapper and VariableMapper in the ELContext is used, and in EL
evaluation, they are not used, and it would be less confusing if
ELParseContext is used in createValueExpression and
createMethodExpression, and ELEvaluationContext be used in
ValueEpxression.getValue() etc. I thought it was a good idea, and
actually included them in the proposal for JSR341.

However, as I look into putting them in codes, I've found that it is
difficult to add these two EL contexts and still be backward
compatible. We'll need to deprecate most of the API and add new ones
using these two. Moreover, with the new API for the stand alone EL, the
user are not dealing directly with ELContext, so it is less important to
have a different context for parsing and evaluation.

Therefore, if there are no objections, I'll not include them in the JSR.

Kin-man