Skip to content

Commit 81c1bd3

Browse files
committedMar 15, 2018
Merge branch 'jruby-9.1'
2 parents d347a5a + 2a1313c commit 81c1bd3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

Diff for: ‎core/src/main/java/org/jruby/AbstractRubyMethod.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public String getMethodName() {
105105

106106
@JRubyMethod(name = "owner")
107107
public IRubyObject owner(ThreadContext context) {
108-
return method.getDefinedClass();
108+
return method.getRealMethod().getDefinedClass();
109109
}
110110

111111
@JRubyMethod(name = "source_location")

Diff for: ‎core/src/main/java/org/jruby/RubyIO.java

+2
Original file line numberDiff line numberDiff line change
@@ -2054,6 +2054,8 @@ protected IRubyObject rbIoClose(ThreadContext context) {
20542054

20552055
fptr.finalizeFlush(context, false);
20562056

2057+
fptr.finalizeFlush(context, false);
2058+
20572059
// interrupt waiting threads
20582060
fptr.interruptBlockingThreads(context);
20592061
try {

0 commit comments

Comments
 (0)
Please sign in to comment.