About Question enthuware.ocpjp.v7.2.1599 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
bondyk
Posts: 1
Joined: Tue Mar 26, 2013 9:23 am
Contact:

About Question enthuware.ocpjp.v7.2.1599 :

Post by bondyk »

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")

admin
Site Admin
Posts: 10102
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1599 :

Post by admin »

You are right. The path in the example is not correct. This has now been fixed.

thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests