Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6.7, JRuby 1.7.0.pre1
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: Core Classes/Modules
    • Labels:
      None
    • Environment:
      OS X Lion
      Apple Java
    • Number of attachments :
      2

      Description

      These tests fail. Current dir is being inserted.

          def test_expand_path_with_jar_file_prefix
            jruby_specific_test
            assert_equal "jar:file:/foo.jar!/bar", File.expand_path("jar:file:/foo.jar!/bar")
            assert_equal "jar:file:/foo.jar!/bar", File.expand_path("jar:file:/foo.jar!/baz/../bar")
            assert_equal "jar:file:/foo.jar!/bar/baz", File.expand_path("baz", "jar:file:/foo.jar!/bar")
            assert_equal "jar:file:/foo.jar!/bar", File.expand_path("jar:file:/foo.jar!/bar", "jar:file:/baz.jar!/quux")
            assert_equal "file:/foo.jar!/bar", File.expand_path("file:/foo.jar!/bar", "jar:file:/baz.jar!/quux")
          end
      

        Activity

        Hide
        Uwe Kubosch added a comment -

        Added patch with test and fix. All tests are green after patch.

        Please review and commit if reasonable.

        Show
        Uwe Kubosch added a comment - Added patch with test and fix. All tests are green after patch. Please review and commit if reasonable.
        Hide
        Uwe Kubosch added a comment -
        Show
        Uwe Kubosch added a comment - This issue blocks https://github.com/ruboto/ruboto/issues/154
        Hide
        Uwe Kubosch added a comment -

        Added new patch that may be more readable.

        Show
        Uwe Kubosch added a comment - Added new patch that may be more readable.
        Hide
        Uwe Kubosch added a comment -

        Committed as re18e288

        Show
        Uwe Kubosch added a comment - Committed as re18e288

          People

          • Assignee:
            Unassigned
            Reporter:
            Uwe Kubosch
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: