Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
None
-
None
Description
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");