[
https://issues.apache.org/jira/browse/JEXL-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Tom updated JEXL-208:
-------------------------
Description:
Noticed on https://commons.apache.org/proper/commons-jexl/reference/syntax.html
that there are two operands that are defined then in the examples reversed.
Starts With=^
The syntactically ... "abcdef" ^= "abc" returns true. Note that through
duck-typing, user classes exposing a public 'startsWith' method will allow
their instances to behave has left-hand-size operands of this operator.
AND
Not Starts With!^
This is the negation of the 'starts with' operator. a ^! "abc" is ...
was:
Noticed on https://commons.apache.org/proper/commons-jexl/reference/syntax.html
that there are two operands that are defined then in the examples reversed.
Starts With=^
The syntactically ... "abcdef" ^= "abc" returns true. Note that through
duck-typing, user classes exposing a public 'startsWith' method will allow
their instances to behave has left-hand-size operands of this operator.
AND
Not Starts With!^
This is the negation of the 'starts with' operator. a ^! "abc" is equivalent to
!(a ^= "abc")
> Documentation typos/inconsistencies
> -----------------------------------
>
> Key: JEXL-208
> URL: https://issues.apache.org/jira/browse/JEXL-208
> Project: Commons JEXL
> Issue Type: Bug
> Environment: (Chrome MacOSX)
> Reporter: Joe Tom
> Priority: Trivial
>
> Noticed on
> https://commons.apache.org/proper/commons-jexl/reference/syntax.html that
> there are two operands that are defined then in the examples reversed.
> Starts With=^
> The syntactically ... "abcdef" ^= "abc" returns true. Note that through
> duck-typing, user classes exposing a public 'startsWith' method will allow
> their instances to behave has left-hand-size operands of this operator.
> AND
> Not Starts With!^
> This is the negation of the 'starts with' operator. a ^! "abc" is ...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)