Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.5, JRuby 1.5.1
-
Fix Version/s: None
-
Component/s: Java Integration
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
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.
Simplified the test and uploaded it as a gist: http://gist.github.com/430092