Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix compile error. I must not have done a clean build.

  • Loading branch information...
commit 71fa23bcb7aa57fec32dd03f2b4fa4fcd06884d0 1 parent 4a5e311
@headius headius authored Prathamesh Sonpatki committed
View
5 src/org/jruby/ir/instructions/defined/GetDefinedConstantOrMethodInstr.java
@@ -4,6 +4,7 @@
*/
package org.jruby.ir.instructions.defined;
+import org.jruby.RubyString;
import org.jruby.ir.IRVisitor;
import org.jruby.ir.Operation;
import org.jruby.ir.instructions.Instr;
@@ -38,9 +39,9 @@ public Instr cloneForInlining(InlinerInfo inlinerInfo) {
public Object interpret(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp, Block block) {
IRubyObject value = (IRubyObject) getObject().retrieve(context, self, currDynScope, temp);
String name = getName().string;
- ByteList definedType = RuntimeHelpers.getDefinedConstantOrBoundMethod(value, name);
+ RubyString definedType = RuntimeHelpers.getDefinedConstantOrBoundMethod(value, name);
- return definedType == null ? context.nil : new StringLiteral(definedType).retrieve(context, self, currDynScope, temp);
+ return definedType == null ? context.nil : new StringLiteral(definedType.getByteList()).retrieve(context, self, currDynScope, temp);
}
@Override
Please sign in to comment.
Something went wrong with that request. Please try again.