Skip to content

Commit

Permalink
bring back Arity compatibility - JavaInternalBlockBody(Ruby, Arity)
Browse files Browse the repository at this point in the history
... used by jruby-rack and helps to maintain 1.7 along side with 9K
  • Loading branch information
kares committed Jul 5, 2016
1 parent e9577a4 commit 6cbdc1b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -33,7 +33,12 @@ public JavaInternalBlockBody(Ruby runtime, ThreadContext originalContext, String
this.methodName = methodName;
this.dummyScope = runtime.getStaticScopeFactory().getDummyScope();
}


@Deprecated // needed by jruby-rack until it supports 1.7 along side with 9K
public JavaInternalBlockBody(Ruby runtime, Arity arity) {
this(runtime, null, null, Signature.from(arity));
}

// Make sure we are still on the same thread as originator if we care
private void threadCheck(ThreadContext yieldingContext) {
if (originalContext != null && yieldingContext != originalContext) {

0 comments on commit 6cbdc1b

Please sign in to comment.