[9] Review request : JDK-6933879: URISyntaxException when non-alphanumeric characters are present in scope_id
Chris Hegarty
chris.hegarty at oracle.com
Thu Dec 11 15:29:40 UTC 2014
On 11 Dec 2014, at 11:09, Konstantin Shefov <konstantin.shefov at oracle.com> wrote:
> CC'ed core-libs-dev at openjdk.java.net
>
> On 10.12.2014 18:21, Konstantin Shefov wrote:
>> Hello,
>>
>> Please, review the bug fix: https://bugs.openjdk.java.net/browse/JDK-6933879
>> Webrev: http://cr.openjdk.java.net/~kshefov/6933879/webrev.00
>>
>> It is suggested to add some more symbols allowed for scope id in IPv6 URI, namely "_", "." and ":", because these symbols may be included in network interface names. Now only alphanumeric characters are allowed to be in a scope id.
From Inet6Address, "Textual representation of IPv6 scoped addresses” [1] :
“…
As a string. This must be the exact string that is returned by
NetworkInterface.getName() for the particular interface in
question. When an Inet6Address is created in this way, the
numeric scope-id is determined at the time the object is
created by querying the relevant NetworkInterface."
Have you seen NetworkInterface.getName() return names with ‘_’, ’.’, or ‘:’ ,or is this theoretical ?
-Chris.
[1] http://docs.oracle.com/javase/8/docs/api/java/net/Inet6Address.html#scoped
>> Thanks
>> -Konstantin
>
More information about the core-libs-dev
mailing list