Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
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.
Typo in the above test case:
jruby --1.9 -e 'require "date"'