Logger doesn't work in 1.9 mode
-------------------------------

                 Key: JRUBY-4873
                 URL: http://jira.codehaus.org/browse/JRUBY-4873
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules, Ruby 1.9
    Affects Versions: JRuby 1.5.1, JRuby 1.4
         Environment: Mac OS X 10.6, JRuby 1.4 installed via ports collection 
and JRuby 1.5.1 installed via RVM

jruby 1.4.0 (ruby 1.9.2dev trunk 24787) (2010-06-14 6586) (Java HotSpot(TM) 
64-Bit Server VM 1.6.0_20) [x86_64-java]
jruby 1.5.1 (ruby 1.9.2dev trunk 24787) (2010-06-06 f3a3480) (Java HotSpot(TM) 
64-Bit Server VM 1.6.0_20) [x86_64-java]

            Reporter: Thomas Rasch


# cat test.rb
require 'logger'
logger = Logger.new('testfile', 'daily')

# jruby test.rb
# jruby --1.9 test.rb
/opt/local/share/java/jruby/lib/ruby/1.9/logger.rb:535:in `initialize': can't 
convert Fixnum into String (TypeError)
        from /opt/local/share/java/jruby/lib/ruby/1.9/logger.rb:535:in `open'
        from /opt/local/share/java/jruby/lib/ruby/1.9/logger.rb:535:in 
`open_logfile'
        from /opt/local/share/java/jruby/lib/ruby/1.9/logger.rb:504:in 
`initialize'
        from /opt/local/share/java/jruby/lib/ruby/1.9/logger.rb:280:in `new'
        from /opt/local/share/java/jruby/lib/ruby/1.9/logger.rb:280:in 
`initialize'
        from test.rb:3:in `new'
        from test.rb:3

This happens for JRuby 1.4 and 1.5 in 1.9 compatibility mode.


-- 
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


Reply via email to