Trimming MVEL scripts before compiling them.
This bypasses an issue with MVEL error handling why can go into an infinite loop in some edge cases. More info here: http://jira.codehaus.org/browse/MVEL-292 Closes #3168
This commit is contained in:
parent
fccbe9c185
commit
02c6222320
|
@ -82,7 +82,7 @@ public class MvelScriptEngineService extends AbstractComponent implements Script
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object compile(String script) {
|
public Object compile(String script) {
|
||||||
return MVEL.compileExpression(script, new ParserContext(parserConfiguration));
|
return MVEL.compileExpression(script.trim(), new ParserContext(parserConfiguration));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue