diff --git a/Orchard/src/orc/orchard/AbstractCompilerService.java b/Orchard/src/orc/orchard/AbstractCompilerService.java index 83a806e7d..e966e9578 100644 --- a/Orchard/src/orc/orchard/AbstractCompilerService.java +++ b/Orchard/src/orc/orchard/AbstractCompilerService.java @@ -35,7 +35,8 @@ public Oil compile(String devKey, String program) throws InvalidProgramException config.setIncludePath(""); // Include sites specifically for orchard services config.addInclude("orchard.inc"); - orc.ast.oil.expression.Expression ex1 = Orc.compile(new StringReader(program), config); + config.inputFromString(program); + orc.ast.oil.expression.Expression ex1 = Orc.compile(config); if (ex1 == null) { // FIXME: obviously need more detail here throw new InvalidProgramException("Syntax error in: " + program);