George Scott created JEXL-140:
---------------------------------

             Summary: 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
            Priority: Minor


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:

class="".class;
return class.forName("java.lang.System").getenv("test");

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:

return class("java.lang.System").getenv("test");

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to