File.stat and friends broken in 64 bit JVMs
-------------------------------------------
Key: JRUBY-3966
URL: http://jira.codehaus.org/browse/JRUBY-3966
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.3.1
Environment: Solaris S10 U6
Reporter: Ben Summers
Assignee: Thomas E Enebo
With this script:
File.open("pants", "w");
File.chmod(0640, "pants");
p File.stat("pants").mode.to_s(8)
$ /opt/jruby/bin/jruby -J-d64 x.rb
"100666"
(and the file has -rw-------)
$ /opt/jruby/bin/jruby x.rb
"100640"
(and the file has -rw-r-----)
$ java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)
$ /opt/jruby/bin/jruby -v
jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot(TM) Client VM
1.6.0_16) [x86-java]
--
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