jakartaee / expression-language

Jakarta Expression Language
https://eclipse.org/ee4j/el
Other
68 stars 49 forks source link

ValueExpression.getValueReference() sematics/bug #17

Closed glassfishrobot closed 4 years ago

glassfishrobot commented 14 years ago

The class AstValue defines a method getValuereference(). The lower 'r' seems to be a typo and this method should probably be renamed to getValueReference() to override SimpleNode.getValueReference(). As a consequence, ValueExpression.getValueReference() currently returns null for expressions like #

{foo}

.

Furthermore, semantics of ValueExpression.getValueReference() are not entirely clear. Consider expression #

{foo.bar}

. What is the expected result of ValueExpression.getValueReference() if foo evaluates to base null? Currently a PropertyNotFoundException is thrown in this case, whereas getValue() would return null. Please clarify.

Thanks, Christoph

Environment

Operating System: All Platform: All

Affected Versions

[current]

glassfishrobot commented 6 years ago
glassfishrobot commented 14 years ago

@glassfishrobot Commented Reported by beckchr

glassfishrobot commented 14 years ago

@glassfishrobot Commented beckchr said: Oops, the method is in AstIdentifier, not in AstValue...

glassfishrobot commented 14 years ago

@glassfishrobot Commented Was assigned to uel-issues

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA UEL-17

markt-asf commented 4 years ago

This was fixed at some point prior to the move to Eclipse (and we don;t have the history to figure out when).