![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.3 |
Assignee:
|
Thomas E Enebo
|
Attachments:
|
TestFileForDir.rb, test.rb |
Created:
|
12/Mar/13 4:33 AM
|
Description:
|
The attached test program runs without problems on MRI Ruby 1.9.3 but results in an exception on JRuby when calling File.new for an existing directory:
jerry@nostromo:~/temp/jruby$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]
jerry@nostromo:~/temp/jruby$ ruby test.rb
File #<File:0x0000000091b928> created for name /home/jerry/temp/jruby/test.rb
Dir #<Dir:0x0000000091b838> created for name /home/jerry
File #<File:0x0000000091b720> created for name /home/jerry
jerry@nostromo:~/temp/jruby$ rvm use jruby
Using /home/jerry/.rvm/gems/jruby-1.7.3
jerry@nostromo:~/temp/jruby$ ruby -v
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_17-b02 [linux-amd64]
jerry@nostromo:~/temp/jruby$ ruby test.rb
File #<File:0x7aec4446> created for name /home/jerry/temp/jruby/test.rb
Dir #<Dir:0x2bcd4673> created for name /home/jerry
Errno::ENOENT: No such file or directory - /home/jerry
initialize at org/jruby/RubyFile.java:333
new at org/jruby/RubyIO.java:879
(root) at test.rb:13
The attached test case tries to create a File for the root directory ('/') - it should work on any unixoid system.
|
Environment:
|
Ubuntu 12.10 with Orcle JDK build 1.7.0_17-b02 running RVM-installed JRuby
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
Gerald Preissler
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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