Skip to content

Commit 5148f79

Browse files
committedMar 6, 2018
Bleh. I did not port that from String to RubyString very well. Fix some silly
mistakes.
1 parent b2f7fbf commit 5148f79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1115,13 +1115,13 @@ public synchronized IRubyObject inspect() {
11151115
// FIXME: There's some code duplication here with RubyObject#inspect
11161116
RubyString result = getRuntime().newString("#<");
11171117

1118-
result.cat(getMetaClass().getRealClass().rubyName());
1118+
result.cat(getMetaClass().getRealClass().toRubyString(getRuntime().getCurrentContext()));
1119+
result.cat(':');
11191120
result.catString(identityString());
11201121
String name = threadImpl.getRubyName(); // thread.name
11211122
if (notEmpty(name)) {
11221123
result.cat('@');
11231124
result.catString(name);
1124-
result.cat(':');
11251125
}
11261126
if (notEmpty(file) && line >= 0) {
11271127
result.cat('@');

0 commit comments

Comments
 (0)
Please sign in to comment.