Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/RubyThread.java
Original file line number Diff line number Diff line change
@@ -1115,13 +1115,13 @@ public synchronized IRubyObject inspect() {
// FIXME: There's some code duplication here with RubyObject#inspect
RubyString result = getRuntime().newString("#<");

result.cat(getMetaClass().getRealClass().rubyName());
result.cat(getMetaClass().getRealClass().toRubyString(getRuntime().getCurrentContext()));
result.cat(':');
result.catString(identityString());
String name = threadImpl.getRubyName(); // thread.name
if (notEmpty(name)) {
result.cat('@');
result.catString(name);
result.cat(':');
}
if (notEmpty(file) && line >= 0) {
result.cat('@');

0 comments on commit 5148f79

Please sign in to comment.