commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Schoen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JEXL-99) Documentation of Thread Safety / Invalid code examples on homepage
Date Wed, 24 Mar 2010 14:48:27 GMT

    [ https://issues.apache.org/jira/browse/JEXL-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849209#action_12849209
] 

Marcel Schoen commented on JEXL-99:
-----------------------------------

Thanks for the quick answer. That already makes the important things clear for me. One more
question though about the "JexlEngine.setCache()" method: What exactly is that size? Number
of scripts? Kilobytes?

> Documentation of Thread Safety / Invalid code examples on homepage
> ------------------------------------------------------------------
>
>                 Key: JEXL-99
>                 URL: https://issues.apache.org/jira/browse/JEXL-99
>             Project: Commons JEXL
>          Issue Type: Task
>    Affects Versions: 2.0
>            Reporter: Marcel Schoen
>            Assignee: Henri Biestro
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> I had trouble with a custom method invoked in a JEXL script. This method throws a RuntimeException,
which got swallowed with JEXL 2. Using the debugger, I found the "strict" flag of the Interpreter
to be false, even though I had invoked "JexlEngine.setLenient(false)" in my initialization
code.
> Now I suspect my initialization logic to be faulty, but while I looked into this, I realized
that the javadoc of JexlEngine doesn't really tell me if I can use it as a singleton or not
(or if I should, for that matter). If so, are its various methods thread-safe or not? It only
says so for a few methods like "setDebug()".
> In addition, some code examples on the homepage are heavily outdated. For example, the
first code fragment on this page
> http://commons.apache.org/jexl/reference/examples.html
> shows the usage of a class "ExpressionFactory" which doesn't even exist in the JEXL 2
source tree. Of course it would be nice if these examples would show how to correctly use
"JexlEngine", for instance.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message