You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Vanneste, Karl" <KV...@Collegeboard.org> on 2011/02/17 22:12:17 UTC

[jexl]

Hello,
We are replacing JEL with JEXL in an upcoming release.  JEL was a similar Java Expression Language tool.  We are replacing it with JEXL because we experienced memory leaks in JEL, and it looks like JEL is no longer being supported.

Is JEXL still being supported?

Have you seen equivalent memory leaks?

What is the JEXL user base like?

When I start up my app, I want to parse my set of expressions to see if they will work properly.  There were several notes about the "parser" class - that maybe we should not use it.  I would like to use it like this - is this ok?

        Parser parser = new Parser(new StringReader(";"));
        try {
            parser.parse(new StringReader(expression), null);
        }
        catch (ParseException e) {
            LogWriter.logMessageToFile("compileJelRule: ParseException emerged from Jexl compiled code\nSee " + e.getMessage());
            buildParserErrorMessage(baseRule, expression,  e.getMessage());
            result = Boolean.FALSE;
        }


Thank you,

Karl Van Neste

Software Team Lead
The College Board
11955 Democracy Drive, 14-1058
Reston, VA  20190-5662

571-485-3433 (Office)
571-643-6922 (Cell)
kvanneste@collegeboard.org

Connect to college success
Inspiring Minds


Re: [jexl]

Posted by henrib <he...@apache.org>.
Hello Karl,

Yes, JEXL (version 2 at least) is still being supported; I'm planning a
release 2.0.2 soon.
I dont know - could not figure out - which projects actually do use JEXL 2.0
(if any).
I do know that it is in use in a couple of deployed professional software.
There aren't any known leaks (none that I'm aware of); caches are
soft-refed, can be explicitly purged and even the class loader used for
dynamic creation can be re-assigned.

About parsing at startup, the JEXL engine instantiates expressions (see
http://commons.apache.org/jexl/apidocs/org/apache/commons/jexl2/package-summary.html#package_description
); you can very easily create/parse all your expressions before usage as you
describe.

Regards,
Henrib
-- 
View this message in context: http://apache-commons.680414.n4.nabble.com/jexl-tp3312960p3313227.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org