Dmitri Blinov created JEXL-232:
----------------------------------
Summary: Use Class types as functors to create object instances
Key: JEXL-232
URL: https://issues.apache.org/jira/browse/JEXL-232
Project: Commons JEXL
Issue Type: Wish
Affects Versions: 3.1
Reporter: Dmitri Blinov
Priority: Minor
It would allow to write more compact and java-like scripts if it would be
possible to use the Class types as functors to call appropriate constructor to
create object instances, e.g.
{code}
x = HashMap(10, 0.75);
{code}
where {{HashMap}} is the variable of the {{java.lang.Class}} type.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)