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 2016/03/22 18:04:25 UTC
[jira] [Updated] (JEXL-140) Improvements for invoking static
methods
[ https://issues.apache.org/jira/browse/JEXL-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Biestro updated JEXL-140:
-------------------------------
Fix Version/s: (was: 3.0.1)
3.1
> Improvements for invoking static methods
> ----------------------------------------
>
> Key: JEXL-140
> URL: https://issues.apache.org/jira/browse/JEXL-140
> Project: Commons JEXL
> Issue Type: Improvement
> Reporter: George Scott
> Assignee: Henri Biestro
> Priority: Minor
> Fix For: 3.1
>
>
> Two related suggestions:
> 1. The documentation does not really describe how to call a static method from a JEXL script. I believe that it is done this way:
> {noformat}
> class="".class;
> return class.forName("java.lang.System").getenv("test");
> {noformat}
> 2. Implementing a class() function that parallels the existing new() function would make calling static methods easier, helping to clean up scripts. The above example would become:
> {noformat}
> return class("java.lang.System").getenv("test");
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)