If there is a file named date.rb in the same dir that contains a file that
requires 'yaml' an exception is thrown when you run the file requiring 'yaml'
--------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JRUBY-1050
URL: http://jira.codehaus.org/browse/JRUBY-1050
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.0.0RC2
Environment: Suse 9, Java(TM) 2 Runtime Environment, Standard Edition
(build 1.5.0_06-b05)
Reporter: Bob Gaddy
Attachments: bug.tar
1) Create a directory test
2) Create the empty file date.rb in dir test
3) Create a file foo.rb in dir test that contains the following single line:
require 'yaml'
4) run jruby foo.rb from dir test
You will see the following exception:
$ jruby foo.rb
/jruby/src/builtin/yaml.rb:3:in `require': IO error -- yaml_internal (LoadError)
from /jruby/src/builtin/yaml.rb:3
from :-1:in `require'
from :-1
I thought it had something to do with date.rb being a file in the core api but
I tried it with
require 'test/unit'
And it worked fine, so not sure what's going on here.
--
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