# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /Users/yoko/NetBeansProjects/jruby/src/org/jruby/javasupport # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: JavaEmbedUtils.java --- JavaEmbedUtils.java Base (BASE) +++ JavaEmbedUtils.java Locally Modified (Based On LOCAL) @@ -43,6 +43,7 @@ import org.jruby.javasupport.util.RuntimeHelpers; import org.jruby.runtime.Block; import org.jruby.runtime.builtin.IRubyObject; +import org.jruby.runtime.scope.ManyVarsDynamicScope; import org.jruby.util.ClassCache; /** @@ -182,8 +183,8 @@ * @param lineNumber the linenumber to display for parse errors and backtraces * @return an object which can be run */ - public EvalUnit parse(Ruby runtime, String script, String filename, int lineNumber) { - return new InterpretedEvalUnit(runtime, runtime.parseEval(script, filename, null, lineNumber)); + public EvalUnit parse(Ruby runtime, String script, String filename, ManyVarsDynamicScope scope, int lineNumber) { + return new InterpretedEvalUnit(runtime, runtime.parseEval(script, filename, scope, lineNumber)); } /** @@ -195,8 +196,8 @@ * @param lineNumber the linenumber to display for parse errors and backtraces * @return an object which can be run */ - public EvalUnit parse(Ruby runtime, InputStream in, String filename, int lineNumber) { - return new InterpretedEvalUnit(runtime, runtime.parseFile(in, filename, null, lineNumber)); + public EvalUnit parse(Ruby runtime, InputStream in, String filename, ManyVarsDynamicScope scope, int lineNumber) { + return new InterpretedEvalUnit(runtime, runtime.parseFile(in, filename, scope, lineNumber)); } }; }