File.new of directroy give Permission denied
--------------------------------------------
Key: JRUBY-5644
URL: http://jira.codehaus.org/browse/JRUBY-5644
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6, JRuby 1.5.6, JRuby 1.4
Reporter: kristian meier
Assignee: Thomas E Enebo
MRI can create File objects of directories
{noformat}
$ ruby -e 'p File.new "."'
#<File:.>
{noformat}
JRuby can not
{noformat}
$ jruby -e 'p File.new "."'
Errno::EACCES: Permission denied - .
initialize at org/jruby/RubyFile.java:434
new at org/jruby/RubyIO.java:873
(root) at -e:1
{noformat}
similiar with 1.9
--
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