JRuby

date class broken in 1.9 compatibility mode

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.2
  • Fix Version/s: JRuby 1.3.1, JRuby 1.4, JRuby 1.5
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Environment:
    Windows Vista 64 and Ubuntu 8.4
    Sun JDK 1.6.0_12
  • Testcase included:
    yes
  • Number of attachments :
    0

Description

jruby --1.9 bug.rb -e 'require "date"'

/opt/jruby-1.2.0/lib/ruby/1.8/rational.rb:93: undefined method 'new' for class '#<Class:01x18e18a3>' (NameError)
from /opt/jruby-1.2.0/lib/ruby/1.8/rational.rb:196:in `require'
from /opt/jruby-1.2.0/lib/ruby/1.8/date.rb:196
from /opt/jruby-1.2.0/lib/ruby/1.8/date.rb:1:in `require'
from -e:1

Does not occur if --1.9 flag is removed.

Activity

Hide
Adam Zell added a comment -

Typo in the above test case:
jruby --1.9 -e 'require "date"'

Show
Adam Zell added a comment - Typo in the above test case: jruby --1.9 -e 'require "date"'
Hide
Hiro Asari added a comment -

This has been fixed since 1.3.1 (maybe 1.3.0 as well).

Show
Hiro Asari added a comment - This has been fixed since 1.3.1 (maybe 1.3.0 as well).

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: