In JRuby 220.127.116.11, it doesn't coerce the argument passed in.
$ jruby test_time.rb
NoMethodError: undefined method `gsub!' for #<Foo:0x305fd85d> _parse at /home/hone/.rvm/rubies/jruby-18.104.22.168/lib/ruby/stdlib/date/format.rb:841 parse at /home/hone/.rvm/rubies/jruby-22.214.171.124/lib/ruby/stdlib/time.rb:361 <top> at test_time.rb:9
Time.parsein MRI, it coerces the object into a
String. For instance, in the syslog-parser code, it passes an object that can be coerced into a string and expects it to work.
Here's a simple repro case:
126.96.36.199, it doesn't coerce the argument passed in.
The text was updated successfully, but these errors were encountered: