Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.7.0.pre1
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: Core Classes/Modules
    • Labels:
      None
    • Environment:
      OS X Lion
      jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-04-21 694c0b9) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_31) [darwin-x86_64-java]
    • Number of attachments :
      1

      Description

      The following test added to test/test_file.rb fails:

        def test_file_exists_uri_prefixes
          assert(!FileTest.exists?("file:test/dir with spaces/test_jar.jar!/abc/foo.rb"))
          assert(!FileTest.exists?("jar:file:test/dir with spaces/test_jar.jar!/abc/foo.rb"))
        end
      

      Other tests work on files in jars.

        Activity

        Hide
        Uwe Kubosch added a comment - - edited

        Terribly sorry: I missed the '!', and the class used should be File, not FileTest. Without the '!' and using File instead of FileTest, the second assert fails, and it should succeed.

        Show
        Uwe Kubosch added a comment - - edited Terribly sorry: I missed the '!', and the class used should be File, not FileTest. Without the '!' and using File instead of FileTest, the second assert fails, and it should succeed.
        Hide
        Uwe Kubosch added a comment -

        Added patch with test and fix.

        Please review.

        Show
        Uwe Kubosch added a comment - Added patch with test and fix. Please review.
        Hide
        Hiro Asari added a comment -

        Merged and pushed to master c5976ec.

        Thanks, Uwe!

        Show
        Hiro Asari added a comment - Merged and pushed to master c5976ec. Thanks, Uwe!

          People

          • Assignee:
            Hiro Asari
            Reporter:
            Uwe Kubosch
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: