require 'Complex' fails when running in Ruby 1.9 mode
-----------------------------------------------------

                 Key: JRUBY-3811
                 URL: http://jira.codehaus.org/browse/JRUBY-3811
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9
    Affects Versions: JRuby 1.3.1
         Environment: JRuby 1.3.1, OS X 10.5.7, Java 1.5.0_19
            Reporter: Adam Murray
            Assignee: Thomas E Enebo
            Priority: Minor


I get an error when running `require 'Complex'` with JRuby 1.3.1 running in 1.9 
mode. It works fine with MRI Ruby 1.8 and 1.9.

$ ruby -e "require 'Complex'"
(no errors)

$ ruby19 -e "require 'Complex'"
(no errors)

$ jruby -e "require 'Complex'"
(no errors)

$ jruby --1.9 -e "require 'Complex'"
        /Users/adam/bin/jruby/lib/ruby/1.9/cmath.rb:221: undefined method 
'log2' for module 'CMath' (NameError)
        from /Users/adam/bin/jruby/lib/ruby/1.9/cmath.rb:1:in `require'
        from /Users/adam/bin/jruby/lib/ruby/1.9/Complex.rb:1
        from /Users/adam/bin/jruby/lib/ruby/1.9/Complex.rb:1:in `require'
        from -e:1

Since Complex is now a built-in class for 1.9, it's not necessary to require 
it, but it should not fail with this kind of error.

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