Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: JRuby 1.6.2
-
Fix Version/s: JRuby 1.6.2
-
Component/s: Interpreter
-
Labels:None
-
Environment:Windows XP, jruby 1.6.2
-
Number of attachments :
Description
in a class, in the init def, the following line reports an error.
@random_num_obj = Random.new()
C:\Work\source\ruby>jruby test.rb
NameError: uninitialized constant Random_xy_coords::Random
const_missing at org/jruby/RubyModule.java:2569
initialize at c:/work/source/ruby/rxy.rb:23
(root) at test.rb:4
This code works under ruby.
It seems like jruby doesn't recognize the core object type "Random"
Does the issue persist when you run the script in the 1.9 mode?
MRI doesn't have Random class in 1.8.