Wayne Meissner created JRUBY-6452: ------------------------------------- Summary: rb_class_of() calls static object method instead of static long method Key: JRUBY-6452 URL: https://jira.codehaus.org/browse/JRUBY-6452 Project: JRuby Issue Type: Bug Components: C Extensions Affects Versions: JRuby 1.6 Reporter: Wayne Meissner Assignee: Wayne Meissner Fix For: JRuby 1.7
rb_class_of() contains this line: {noformat} return (VALUE) env->CallStaticObjectMethod(JRuby_class, JRuby_getMetaClass, valueToObject(env, obj)); {noformat} You can't cast a java object directly to VALUE like that, and if you look at the helper method in JRuby.java, it in fact returns long (which can be cast to VALUE). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email