From 06fcde11836aee1f5eff1f41a4a77f5f32e9482b Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Fri, 29 Jan 2016 06:49:05 -0600 Subject: [PATCH] Remove unconditional warning here. I believe this was left in from dev time when we were still sorting out how to treate evals with blocks. The common case that produces the warning is from #3541, when a Symbol#to_proc is used for an instance_exec or instance_eval. These are valid uses of the proc and work correctly (using the receiver as the "self" for the proc's symbol dispatch). Because all the remaining block bodies that would trigger this warning are Java-based blocks without any concept of frame/scope binding, and since they still honor the incoming self, I'm going to just remove the warning. Fixes #3541. --- core/src/main/java/org/jruby/runtime/BlockBody.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/main/java/org/jruby/runtime/BlockBody.java b/core/src/main/java/org/jruby/runtime/BlockBody.java index 400c7d08195..91b7d41ce22 100644 --- a/core/src/main/java/org/jruby/runtime/BlockBody.java +++ b/core/src/main/java/org/jruby/runtime/BlockBody.java @@ -58,7 +58,6 @@ public Signature getSignature() { } public void setEvalType(EvalType evalType) { - System.err.println("setEvalType unimplemented in " + this.getClass().getName()); } public boolean canCallDirect() {