Some jar files on maven central contain illegal Automatic-Module-Name entries in their manifests: https://github.com/sormuras/modules/tree/main/doc/suspicious
Jar validation could validate that the Automatic-Module-Name in a jar manifest is a legal name, according to the specification: https://docs.oracle.com/javase/specs/jls/se17/html/jls-7.html#jls-7.7
Jar validation could validate that the Automatic-Module-Name in a jar manifest is a legal name, according to the specification: https://docs.oracle.com/javase/specs/jls/se17/html/jls-7.html#jls-7.7