FYI:
This bug will lead to failures of the following tests on machines with
hostname starting from digits.
- test/jdk/sun/tools/jstatd/TestJstatdExternalRegistry.java
- test/jdk/sun/tools/jstatd/TestJstatdPort.java
- test/jdk/sun/tools/jstatd/TestJstatdPortAndServer.java
- test/jdk/sun/tools/jstatd/TestJstatdRmiPort.java
So it's worth fixing it.
Testing:
- tier1-3 on Linux/x64
Thanks.
Best regards,
Jie
From: "jiefu(傅杰)" <[email protected]>
Date: Wednesday, August 5, 2020 at 3:19 PM
To: "[email protected]" <[email protected]>
Subject: RFR: 8251155: HostIdentifier fails to canonicalize hostnames starting
with digits
Hi all,
JBS: https://bugs.openjdk.java.net/browse/JDK-8251155
Webrev: http://cr.openjdk.java.net/~jiefu/8251155/webrev.00/
HostIdentifier fails to canonicalize hostname:port if the hostname starts with
digits.
The current implementation will get "scheme = hostname".
But the scheme should not be started with digits, which leads to this bug.
Thanks a lot.
Best regards,
Jie