File.stat.mode appears to be incorrect on OS X with 32-bit OpenJDK builds
-------------------------------------------------------------------------

                 Key: JRUBY-4248
                 URL: http://jira.codehaus.org/browse/JRUBY-4248
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.4
            Reporter: Charles Oliver Nutter
             Fix For: JRuby 1.5


Here's the session...pretty self-explanatory. 1.6.0 and 1.5.0 JDKs are the ones 
that ship with OS X.

{noformat}
~/projects/jruby ➔ pickjdk 6
New JDK: openjdk6-b16-24_apr_2009-r1

~/projects/jruby ➔ pickjdk 4
New JDK: 1.6.0

~/projects/jruby ➔ jruby -e "p File.stat('/Users/headius').mode.to_s 8"
"40755"

~/projects/jruby ➔ pickjdk 6
New JDK: openjdk6-b16-24_apr_2009-r1

~/projects/jruby ➔ jruby -e "p File.stat('/Users/headius').mode.to_s 8"
"40666"

~/projects/jruby ➔ pickjdk 7
New JDK: openjdk7-bsd-port

~/projects/jruby ➔ jruby -e "p File.stat('/Users/headius').mode.to_s 8"
"40666"

~/projects/jruby ➔ pickjdk 3
New JDK: 1.5.0

~/projects/jruby ➔ jruby -e "p File.stat('/Users/headius').mode.to_s 8"
"40755"

~/projects/jruby ➔ ruby -e "p File.stat('/Users/headius').mode.to_s 8"
-e:1: warning: parenthesize argument(s) for future version
"40755"
{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


Reply via email to