Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6.7
    • Fix Version/s: JRuby 1.7.0.pre2
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Number of attachments :
      0

      Description

      Assuming an otherwise empty current directory, I get these results:

      $ touch foo
      $ mkdir bar
      $ java -Djruby.compat.version=RUBY1_9 -jar ~/jruby-complete-1.6.7.jar -S irb
      irb(main):001:0> File.exists?('foo')
      => true
      irb(main):002:0> File.exists?('bar')
      => true
      irb(main):003:0> File.file?('foo')
      => true
      irb(main):004:0> File.file?('bar')
      => false
      irb(main):005:0> File.directory?('foo')
      => false
      irb(main):006:0> File.directory?('bar')
      => false
      

        Issue Links

          Activity

          Hide
          Hiro Asari added a comment -

          Does this fail also in the 1.8 mode? Does the result change if you pass -Djruby.native.enabled=false to java?

          Show
          Hiro Asari added a comment - Does this fail also in the 1.8 mode? Does the result change if you pass -Djruby.native.enabled=false to java ?
          Hiro Asari made changes -
          Field Original Value New Value
          Description Assuming an otherwise empty current directory, I get these results:

          $ touch foo
          $ mkdir bar
          $ java -Djruby.compat.version=RUBY1_9 -jar ~/jruby-complete-1.6.7.jar -S irb
          irb(main):001:0> File.exists?('foo')
          => true
          irb(main):002:0> File.exists?('bar')
          => true
          irb(main):003:0> File.file?('foo')
          => true
          irb(main):004:0> File.file?('bar')
          => false
          irb(main):005:0> File.directory?('foo')
          => false
          irb(main):006:0> File.directory?('bar')
          => false
          Assuming an otherwise empty current directory, I get these results:
          {noformat}
          $ touch foo
          $ mkdir bar
          $ java -Djruby.compat.version=RUBY1_9 -jar ~/jruby-complete-1.6.7.jar -S irb
          irb(main):001:0> File.exists?('foo')
          => true
          irb(main):002:0> File.exists?('bar')
          => true
          irb(main):003:0> File.file?('foo')
          => true
          irb(main):004:0> File.file?('bar')
          => false
          irb(main):005:0> File.directory?('foo')
          => false
          irb(main):006:0> File.directory?('bar')
          => false
          {noformat}
          Hide
          Thomas Dudziak added a comment -

          1.8 mode:

          java -jar ~/jruby-complete-1.6.7.jar -S irb
          irb(main):001:0> File.exists?('foo')
          => true
          irb(main):002:0> File.exists?('bar')
          => true
          irb(main):003:0> File.file?('foo')
          => true
          irb(main):004:0> File.file?('bar')
          => false
          irb(main):005:0> File.directory?('foo')
          => false
          irb(main):006:0> File.directory?('bar')
          => false
          

          1.8 mode with native disabled works on the other hand:

          java -Djruby.native.enabled=false -jar ~/jruby-complete-1.6.7.jar -S irb
          irb(main):001:0> File.exists?('foo')
          => true
          irb(main):002:0> File.exists?('bar')
          => true
          irb(main):003:0> File.file?('foo')
          => true
          irb(main):004:0> File.file?('bar')
          => false
          irb(main):005:0> File.directory?('foo')
          => false
          irb(main):006:0> File.directory?('bar')
          => true
          

          So does 1.9 mode with native disabled:

          java -Djruby.compat.version=RUBY1_9 -Djruby.native.enabled=false -jar ~/jruby-complete-1.6.7.jar -S irb
          irb(main):001:0> File.exists?('foo')
          => true
          irb(main):002:0> File.exists?('bar')
          => true
          irb(main):003:0> File.file?('foo')
          => true
          irb(main):004:0> File.file?('bar')
          => false
          irb(main):005:0> File.directory?('foo')
          => false
          irb(main):006:0> File.directory?('bar')
          => true
          
          Show
          Thomas Dudziak added a comment - 1.8 mode: java -jar ~/jruby-complete-1.6.7.jar -S irb irb(main):001:0> File.exists?('foo') => true irb(main):002:0> File.exists?('bar') => true irb(main):003:0> File.file?('foo') => true irb(main):004:0> File.file?('bar') => false irb(main):005:0> File.directory?('foo') => false irb(main):006:0> File.directory?('bar') => false 1.8 mode with native disabled works on the other hand: java -Djruby.native.enabled=false -jar ~/jruby-complete-1.6.7.jar -S irb irb(main):001:0> File.exists?('foo') => true irb(main):002:0> File.exists?('bar') => true irb(main):003:0> File.file?('foo') => true irb(main):004:0> File.file?('bar') => false irb(main):005:0> File.directory?('foo') => false irb(main):006:0> File.directory?('bar') => true So does 1.9 mode with native disabled: java -Djruby.compat.version=RUBY1_9 -Djruby.native.enabled=false -jar ~/jruby-complete-1.6.7.jar -S irb irb(main):001:0> File.exists?('foo') => true irb(main):002:0> File.exists?('bar') => true irb(main):003:0> File.file?('foo') => true irb(main):004:0> File.file?('bar') => false irb(main):005:0> File.directory?('foo') => false irb(main):006:0> File.directory?('bar') => true
          Hiro Asari made changes -
          Link This issue relates to JRUBY-6376 [ JRUBY-6376 ]
          Hide
          Charles Oliver Nutter added a comment -

          Likely fixed along with JRUBY-6376.

          Show
          Charles Oliver Nutter added a comment - Likely fixed along with JRUBY-6376 .
          Charles Oliver Nutter made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Thomas E Enebo [ enebo ] Charles Oliver Nutter [ headius ]
          Fix Version/s JRuby 1.7.0.pre2 [ 18527 ]
          Resolution Fixed [ 1 ]
          Chris Turner made changes -
          Link This issue relates to JRUBY-6882 [ JRUBY-6882 ]

            People

            • Assignee:
              Charles Oliver Nutter
              Reporter:
              Thomas Dudziak
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: