JRubyFileStat gives an NPE for the root directory
-------------------------------------------------
Key: JRUBY-1759
URL: http://jira.codehaus.org/browse/JRUBY-1759
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1b2
Reporter: Nick Sieger
Assignee: Nick Sieger
Fix For: JRuby 1.1b2
As evidenced by this:
{noformat}
$ jrubytr -J-Djruby.native.enabled=false -S irb
irb(main):001:0> File.directory?("/")
Exception in thread "main" java.lang.NullPointerException
at
org.jruby.ext.posix.JavaFileStat.calculateSymlink(JavaFileStat.java:60)
at org.jruby.ext.posix.JavaFileStat.calculateMode(JavaFileStat.java:50)
at org.jruby.ext.posix.JavaFileStat.setup(JavaFileStat.java:26)
at org.jruby.ext.posix.JavaLibC.stat(JavaLibC.java:181)
at org.jruby.ext.posix.BasePOSIX.stat(BasePOSIX.java:81)
at org.jruby.RubyFileTest.directory_p(RubyFileTest.java:69)
at org.jruby.RubyFileTestInvoker$directory_p_method_1_0.call(Unknown
Source)
{noformat}
--
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