ClassCastException when using include of java interface on ruby class that that inherits from Hash --------------------------------------------------------------------------------------------------
Key: JRUBY-4854 URL: http://jira.codehaus.org/browse/JRUBY-4854 Project: JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.5.1, JRuby 1.5 Reporter: Brian Olsen Attachments: JRuby-ClassCast-Test.tar.gz When you include a java interface on a class that inherits from Hash you get a ClassCastException: "cannot be cast to org.jruby.RubyHash" when creating a new instance. The problem only occurs when the class inherits from a class that itself inherits from Hash like OrderedHash in ActiveSupport. If you inherit directly from Hash there is no problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.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