Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.6.8
-
Component/s: None
-
Labels:None
-
Environment:jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (Java HotSpot(TM) 64-Bit Server VM 1.7.0_02) [Windows 7-amd64-java]
jruby 1.6.7 (ruby-1.8.7-p357) (snip)
-
Number of attachments :
Description
Hi.
I encountered the following problem when use gem 'Launchy' version 2.0.5 on JRuby 1.6.7 (1.9 mode).
----------
launchy http://www.jruby.org/
Failure in opening http://www.jruby.org/ with options {}: can't convert Launchy::Detect::HostOs into String
----------
I investigate the cause of this problem, as a result, guessed that the problem is a bug of JRuby 1.9 mode.
I have attached script for reproduce this problem.
when this script run on jruby 1.9 mode, script was failed.
Script result of JRuby 1.9 mode
https://gist.github.com/1908767
but, when run on JRuby 1.8 and C Ruby 1.9.2, script was finished successfully.
Script result of JRuby 1.8 mode
https://gist.github.com/1908775
Script result of C Ruby 1.9.2
https://gist.github.com/1908781
Thanks.
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Thomas E Enebo [ enebo ] | Charles Oliver Nutter [ headius ] |
| Fix Version/s | JRuby 1.6.8 [ 18345 ] | |
| Resolution | Fixed [ 1 ] |
Thank you for the report. I have checked JRuby master, and it does not exhibit the problem. I confirmed your result on JRuby 1.6.7.
Very, very strange.
system ~/projects/jruby $ rvm jruby-1.6.7 do ruby --1.9 -e "[:foo, :bar].join(', ')" system ~/projects/jruby $ rvm jruby-1.6.7 do ruby --1.9 -e "def x(*args); args.join(', '); end; x(:foo, :bar)" system ~/projects/jruby $ rvm jruby-1.6.7 do ruby --1.9 -e "def x(y, *args); args.join(', '); end; x('blah', :foo, :bar)" TypeError: can't convert Symbol into String join at org/jruby/RubyArray.java:1871 x at -e:1 (root) at -e:1