Random class not recognized --------------------------- Key: JRUBY-5938 URL: https://jira.codehaus.org/browse/JRUBY-5938 Project: JRuby Issue Type: Bug Components: Interpreter Affects Versions: JRuby 1.6.2 Environment: Windows XP, jruby 1.6.2 Reporter: Keith Wilke Fix For: JRuby 1.6.2 Attachments: rxy.rb, test.rb
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" -- This message is automatically generated by JIRA. 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