Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6075

[eut][classlib][luni] - URI returned by URI.relativize(URI) should set SchemeSpecificPart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0M8
    • 5.0M9
    • Classlib
    • None

    Description

      the error of eut test testPathVariableLocation in org.eclipse.core.tests.resources is caused by this bug. Other errors in this test suite seems also caused bye this bug.

      following simple test show this problem:

      public void test_relativize3() throws Exception

      { URI uri = new URI("file", null, "/test/location", null); URI base = new URI("file", null, "/test", null); URI relative = base.relativize(uri); assertEquals("location", relative.getSchemeSpecificPart()); assertNull(relative.getScheme()); }

      I'll attach patch to fix this soon.

      Attachments

        1. HARMONY-6075.diff
          2 kB
          Regis Xu

        Activity

          People

            tellison Tim Ellison
            regis_xu Regis Xu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: