commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitri Blinov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JEXL-232) Use Class types as functors to create object instances
Date Thu, 29 Jun 2017 04:20:00 GMT
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)

Mime
View raw message