cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject COCOON-1978
Date Wed, 03 Oct 2007 09:32:27 GMT
https://issues.apache.org/jira/browse/COCOON-1978


this pure JEXL code:

// mistaken variable name
String jexlExp = "fuu";

org.apache.commons.jexl.Expression expression = 
ExpressionFactory.createExpression(jexlExp);

// Create a context and add data
JexlContext jc = JexlHelper.createContext();
jc.getVars().put("foo", new Foo() );

// Now evaluate the expression, getting the result
Object o = expression.evaluate(jc);

System.out.println( o );


actually produces "null" when no foo variable is found in context 
instead of throwing. JEXL javadoc does not show any direct method to 
change this behaviour. Is there anything we can do?

-- 
Leszek Gawron                         http://www.mobilebox.pl/krs.html
CTO at MobileBox Ltd.


Mime
View raw message