[ https://issues.apache.org/jira/browse/JEXL-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731474#action_12731474 ]
Henri Biestro edited comment on JEXL-58 at 7/15/09 9:04 AM: ------------------------------------------------------------ Implements the lenient/strict mode where null is considered an error in all arithmetic operators and when variables are not defined (fixes JEXL-10/JEXL-11). The "silent" mode means that no JexlException will be thrown but error cases are logged as warn. The setSilent/setLenient methods of a JexlEngine allow to tune it according to error control needs. When "silent" & "lenient" (not-strict), 0 & null should be indicators of "default" values so that even in an case of error, something meaningfull can still be inferred; may be convenient for configurations. When "silent" & "strict", one should probably consider using null as an error case - ie, every object manipulated by JEXL should be valued; the ternary operator, especially the '?:' form can be used to workaround exceptional cases. Use case could be configuration with no implicit values or defaults. When "not-silent" & "not-strict", the error control grain is roughly on par with JEXL 1.0 When "not-silent" & "strict', we obtain the finest error control grain; it is the closest to Java code - still augmented by "script" capabilities regarding automated conversions & type matching. Totally aside, this patch integrates the JEXL-40 fix "public abstract methods in non public concrete derived class" (recopied newer version of Velocity method from trunk). was (Author: henrib): Implements the lenient/strict mode where null is considered an error in all arithmetic operators and when variables are not defined (fixes JEXL-10/JEXL-11). Also integrates JEXL-40 fix. After the fact, it seems one should always use setSilent() & setLenient() in conjunction so I'm tempted to merge the 2 concepts in one. Opinions ? > UnifiedJEXL > ----------- > > Key: JEXL-58 > URL: https://issues.apache.org/jira/browse/JEXL-58 > Project: Commons JEXL > Issue Type: New Feature > Reporter: Henri Biestro > Assignee: Rahul Akolkar > Fix For: 2.0 > > Attachments: JEXL-58.patch, JEXL-58.patch, JEXL-58.patch, > JEXL-58.patch > > > An evaluator similar to the unified EL evaluator used in JSP/JSF based on > JEXL. > It is intended to be used in configuration modules, XML based frameworks or > JSP taglibs. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.