String representation of arrays and symbols does not match ruby 1.9
-------------------------------------------------------------------
Key: JRUBY-3878
URL: http://jira.codehaus.org/browse/JRUBY-3878
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.3.1
Reporter: Gerald Boersma
Assignee: Thomas E Enebo
Priority: Minor
The string representation of an array and symbols for Ruby 1.9 is not the same
as JRuby's 1.9 compatibility mode. Note: Ruby 1.8.6 and JRuby do match.
gerald:~/tmp/jruby$ cat array_tos.rb
a = [:one, :two, :three]
puts "#{a}"
puts a
gerald:~/tmp/jruby$ ruby --version
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9.7.0]
gerald:~/tmp/jruby$ ruby array_tos.rb
[:one, :two, :three]
one
two
three
gerald:~/tmp/jruby$ jruby --1.9 array_tos.rb
onetwothree
one
two
three
gerald:~/tmp/jruby$
--
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