Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6RC1
-
Fix Version/s: JRuby 1.6RC2
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
Using rspec v1.3.0, my specs work fine in 1.8 mode, but multiple failures occur when the --1.9 flag is set
rannoch:DataSetEngine adrian$ jruby -S spec spec
............................................................................................................................................................................................................................................................................................
Finished in 1.928 seconds
284 examples, 0 failures
rannoch:DataSetEngine adrian$
rannoch:DataSetEngine adrian$ jruby --1.9 -S spec spec
/Users/adrian/lib/gems/gems/dbi-0.4.5/lib/dbi/handles.rb:12 warning: optional boolean argument is obsoleted
...................................................................................................................................................................................................F.....FFFFFFF...................F....................................F................F..
In all cases, the error is org.jruby.RubyBasicObject cannot be cast to org.jruby.RubyObject. The stack trace is very long so I have included it in a file attached to this report.
I have also attached a spec and source code that produces one of these errors.
Issue Links
- duplicates
-
JRUBY-4871
[1.9] Attempt to invoke any method on Delegator leads to ClassCastException
-
There I explain the cause