Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Re-add a 'special' cast
  • Loading branch information
enebo committed Jan 21, 2015
1 parent 0a27740 commit cbd3d7b
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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;
Expand Down Expand Up @@ -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.