Skip to content

Commit

Permalink
Merge branch 'jruby-9.1'
Browse files Browse the repository at this point in the history
headius committed Mar 15, 2018

Verified

This commit was signed with the committer’s verified signature.
headius Charles Oliver Nutter
2 parents d347a5a + 2a1313c commit 81c1bd3
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/AbstractRubyMethod.java
Original file line number Diff line number Diff line change
@@ -105,7 +105,7 @@ public String getMethodName() {

@JRubyMethod(name = "owner")
public IRubyObject owner(ThreadContext context) {
return method.getDefinedClass();
return method.getRealMethod().getDefinedClass();
}

@JRubyMethod(name = "source_location")
2 changes: 2 additions & 0 deletions core/src/main/java/org/jruby/RubyIO.java
Original file line number Diff line number Diff line change
@@ -2054,6 +2054,8 @@ protected IRubyObject rbIoClose(ThreadContext context) {

fptr.finalizeFlush(context, false);

fptr.finalizeFlush(context, false);

// interrupt waiting threads
fptr.interruptBlockingThreads(context);
try {

0 comments on commit 81c1bd3

Please sign in to comment.