In explanation an example is provided:
"For example, "/a/c".relativize("a/b") is "../b" because "/a/c/../b" is "/a/b""
But it's incorrect because an IllegalArgumentException will be thrown according to:
"A relative path cannot be constructed if only one of the paths have a root component."
I suppose it should be "/a/c".relativize("/a/b") instead of "/a/c".relativize("a/b")
About Question enthuware.ocpjp.v7.2.1599 :
Moderators: Site Manager, fjwalraven
-
- Posts: 1
- Joined: Tue Mar 26, 2013 9:23 am
- Contact:
-
- Site Admin
- Posts: 10102
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1599 :
You are right. The path in the example is not correct. This has now been fixed.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 4 guests