Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jruby.runtime.callsite;

import org.jruby.RubyBasicObject;
import org.jruby.RubyClass;
import org.jruby.RubyFixnum;
import org.jruby.RubyFloat;
@@ -415,6 +416,6 @@ protected IRubyObject callMethodMissing(ThreadContext context, IRubyObject self,

private static RubyClass getClass(IRubyObject self) {
// the cast in the following line is necessary due to lacking optimizations in Hotspot
return self.getMetaClass();
return ((RubyBasicObject) self).getMetaClass();
}
}

0 comments on commit cbd3d7b

Please sign in to comment.