Technically (2), but I think rather any user would be pleased by (2), so I'd
vote for a note in the API docs that (1) is expected, by an implementation
is free to deliver (2) instead.
-----Original Message-----
From: Sergey Beryozkin [mailto:sberyozkin_at_talend.com]
Sent: Donnerstag, 12. September 2013 12:56
To: jsr339-experts_at_jax-rs-spec.java.net
Subject: [jsr339-experts] UriBuilder and duplicate "/"
Hi
What the correct output from
UriBuilder.fromUri("
http://host/path1/").path("/path2")
is it
(1)
http://host/path1/path2
or
(2)
http://host/path1//path2
Apache CXF will produce (1), I'm seeing (2) expected by one of the TCK
tests.
Thanks, Sergey