You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (Jira)" <ji...@apache.org> on 2021/06/07 13:15:06 UTC

[jira] [Closed] (JEXL-232) Use Class types as functors to create object instances

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

Henri Biestro closed JEXL-232.
------------------------------

> 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
>            Assignee: Henri Biestro
>            Priority: Minor
>             Fix For: 3.2
>
>
> 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
(v8.3.4#803005)