[ https://issues.apache.org/jira/browse/JEXL-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Biestro resolved JEXL-421. -------------------------------- Resolution: Fixed Commit [b10477e|https://github.com/apache/commons-jexl/commit/b10477ec25c7b7ed52e58aca30e8ab3c940eeaa9] > ArrayBuilder: array type should reflect common class of its entries > ------------------------------------------------------------------- > > Key: JEXL-421 > URL: https://issues.apache.org/jira/browse/JEXL-421 > Project: Commons JEXL > Issue Type: Improvement > Affects Versions: 3.3 > Reporter: Henri Biestro > Assignee: Henri Biestro > Priority: Minor > Fix For: 3.3.1 > > > WHAT: > The ArrayBuilder (used on syntax like [1,3,5]) tries hard to unbox if > possible (Integer to int) or keep Number as common class but falls short of > strong typing for other classes. > It would be convenient to type arrays using the strongest (in sense of > abstraction) common class from the entries. > HOW: > When detecting entry class mismatch (and not a unboxing or Number), find > better common class; Object class should only be last resort. -- This message was sent by Atlassian Jira (v8.20.10#820010)