jruby 1.6.4 File::Stat#dev_major and friends dont' work on AIX.
---------------------------------------------------------------

                 Key: JRUBY-6065
                 URL: https://jira.codehaus.org/browse/JRUBY-6065
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.4
         Environment: AIX 5.3, Power6 (64-bit)

java version "1.6.0"
Java(TM) SE Runtime Environment (build pap6460sr9fp2-20110627_03(SR9 FP2))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 
jvmap6460sr9-20110624_85526 (JIT enabled, AOT enabled)
J9VM - 20110624_085526
JIT  - r9_20101028_17488ifx17
GC   - 20101027_AA)
JCL  - 20110530_01

            Reporter: Jordan Sissel
            Assignee: Thomas E Enebo


Sample code run on AIX:

{noformat}
% java -cp logstash-1.1.0beta2-monolithic.jar org.jruby.Main -de 'p 
File.stat("/")'
Exception `LoadError' at 
file:/esbdata1/heracles/logstash/logstash-1.1.0beta2-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/Win32API.rb:2
 - Win32API only supported on win32
#<File::Stat dev=0x, ino=0, mode=040444, nlink=, uid=-1, gid=, rdev=0x, 
size=4096, blksize=4096, blocks=, atime=2011-09-12 16:18:27 +0300, 
mtime=2011-09-12 16:18:27 +0300, ctime=2011-09-12 16:18:27 +0300>
{noformat}

Note above that most of the File::Stat members are pretty empty (uid -1, 
dev=0x, ino=0, etc)

{noformat}
% java -cp logstash-1.1.0beta2-monolithic.jar org.jruby.Main -de 'p 
File.stat("/").dev_major'
Exception `LoadError' at 
file:/esbdata1/heracles/logstash/logstash-1.1.0beta2-monolithic.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/Win32API.rb:2
 - Win32API only supported on win32
NotImplementedError: stat.st_dev unsupported or native support failed to load
  dev_major at org/jruby/RubyFileStat.java:388 (root) at -e:1
{noformat}

Note above an NotImplementedError thrown when accessing 'dev_major'

For full disclosure, the 'logstash' jar above is a jar that includes jruby 
1.6.4 complete.jar embedded custom-compiled to default 1.9.2 mode - I do not 
believe this is the problem.

--
This message is automatically generated by JIRA.
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