Review request : JDK-6933879: URISyntaxException when non-alphanumeric characters are present in scope_id
chris.hegarty at oracle.com
Fri Jan 16 10:49:59 UTC 2015
On 15/12/14 12:01, Alan Bateman wrote:
> On 15/12/2014 11:25, Chris Hegarty wrote:
>> I did reply to this RFR , with a question, that is still unanswered.
> I can think of configurations where the scenario could arise. It make me
> wonder if this will require a spec clarification as scope_id is defined
> in Inet6Address to allow any String and so raises the question as to the
> characters permitted in the host component.
I think that we can add '_' and '.' . ':' I am less sure about.
I don't see any reason to update the spec here, given that the set of
allowable character is not clearly defined in the relevant RFC's.
The change, as proposed in the webrev, is reasonable ( with ':' removed
), but you should also include an update to
jdk/test/java/net/URI/Test.java, to cover this.
More information about the core-libs-dev