Skip to content

Commit

Permalink
[java] Correct capture construction for find_method call. And with th…
Browse files Browse the repository at this point in the history
…is...hello world works on the JVM. \o/ mberends++
  • Loading branch information
jnthn committed Jan 16, 2011
1 parent ef7ab8c commit c8ae83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/runtime/Rakudo/Metamodel/SharedTable.java
Expand Up @@ -54,7 +54,7 @@ public RakudoObject FindMethod(ThreadContext tc, RakudoObject obj, String name,
tc, HOW, "find_method", Hints.NO_HINT);

// Call it.
RakudoObject capt = CaptureHelper.FormWith(new RakudoObject[] { HOW, Ops.box_str(tc, name, tc.DefaultStrBoxType) });
RakudoObject capt = CaptureHelper.FormWith(new RakudoObject[] { HOW, obj, Ops.box_str(tc, name, tc.DefaultStrBoxType) });
return meth.getSTable().Invoke.Invoke(tc, meth, capt);
}
}
Expand Down

0 comments on commit c8ae83c

Please sign in to comment.