Motivation
Artery's <getHostAddress> setting can resolve to an IPv6 literal. That result skipped the existing normalization for explicitly configured IPv6 addresses.
Modification
Apply the existing IPv6 bracket rule after resolving the hostname setting, for both canonical and explicit bind hostnames. Keep DNS names, IPv4 addresses and already bracketed literals unchanged. This revision leaves the production change as previously reviewed and adds coverage for a numeric IPv6 scope ID and an IPv6 literal returned by <getHostName>, without requiring a real network interface or reverse DNS.
Result
A resolved numeric IPv6 hostname can be used in an advertised Pekko address and parsed back. The docs now name both <getHostAddress> and <getHostName>. The settings tests pin both cases deterministically.
Risk
The change is limited to hostname normalization in Artery settings. No change to the transport lookup API or new requirements for address resolution.
Tests
The original IPv6 settings regression failed on the baseline with the same test seam and passed with the fix. With this revision, all 11 ArterySettingsSpec cases passed in native JDK 17 runs on both Scala 2.13.18 and 3.3.9. Scoped Scala formatting and header checks passed. Local Paradox stopped at Maven dependency access; hosted documentation CI is pending. Full build, MiMa and live TCP/Aeron IPv6 were not run locally.
Reference
Related Netty formatting precedent: netty/netty#14141