On Wed, 8 Apr 2026 13:37:33 GMT, Artur Barashev <[email protected]> wrote:

> RFC 952 specifies that an LDH (Letter-Digit-Hyphen) label may only end with a 
> letter or digit. We should remove hyphens from the set of permissible 
> terminal characters in a label.
> 
> Also see:
> https://www.icann.org/en/announcements/details/comment-concerning-trailing-hyphen-domain-names-7-1-2000-en
> 
> Also adding size checks while we touch this file.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 135451ee
Author:    Artur Barashev <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/135451eed03f1cb568f64f3335a8854c35950f40
Stats:     191 lines in 2 files changed: 58 ins; 52 del; 81 mod

8381771: Add a check for DNS label not to end with a hyphen

Reviewed-by: weijun, myankelevich

-------------

PR: https://git.openjdk.org/jdk/pull/30628

Reply via email to