Issue Details (XML | Word | Printable)

Key: HARMONY-6075
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Tim Ellison
Reporter: Regis Xu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Harmony

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

Created: 21/Jan/09 06:47 AM   Updated: 09/Feb/09 07:05 AM
Return to search
Component/s: Classlib
Affects Version/s: 5.0M8
Fix Version/s: 5.0M9

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works HARMONY-6075.diff 2009-01-21 06:53 AM Regis Xu 2 kB

Resolution Date: 28/Jan/09 05:32 PM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Regis Xu added a comment - 21/Jan/09 06:53 AM
Would anyone want to try this?

Tim Ellison added a comment - 28/Jan/09 05:32 PM
Thanks Regis,

Patch applied to LUNI module at repo revision r738561.

Please check it was applied as you expected.

Regis Xu added a comment - 09/Feb/09 07:05 AM
Verified. Thanks Tim.