commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JEXL-162) empty() function throws an exception : unsupported type
Date Sat, 11 Jul 2015 20:53:04 GMT

     [ https://issues.apache.org/jira/browse/JEXL-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Biestro resolved JEXL-162.
--------------------------------
       Resolution: Fixed
         Assignee: Henri Biestro
    Fix Version/s: 3.0

Point taken; the empty/size operators are back to being lenient.
Overloads may throw exceptions that will be handled specifically. 

Added specific exception/method for operator error handling, updated behavior to be as lenient
as 2.x, added test, clarified doc and updated changes.

src/main/java/org/apache/commons/jexl3/JexlException.java
src/main/java/org/apache/commons/jexl3/internal/Interpreter.java
src/main/java/org/apache/commons/jexl3/parser/Parser.jjt
src/site/xdoc/changes.xml
src/site/xdoc/reference/syntax.xml
src/test/java/org/apache/commons/jexl3/ArithmeticTest.java

Committed revision 1690404.

> empty() function throws an exception : unsupported type
> -------------------------------------------------------
>
>                 Key: JEXL-162
>                 URL: https://issues.apache.org/jira/browse/JEXL-162
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Dmitri Blinov
>            Assignee: Henri Biestro
>             Fix For: 3.0
>
>
> empty() : unsupported type : class com.sun.org.apache.xerces.internal.dom.ElementImpl.
> Exepected behaviour - just return false if neither:
>     Object is null
>     Object is an empty string
>     Object is an array of length zero
>     Object is a collection of size zero
>     Object is an empty map
> .....



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message