Skip to content

Automatic-Module-Name is an illegal module name #9

Closed

Description

@ChristophKaser

The Automatic-Module-Name org.simplejavamail.java-utils-mail-dkim from the Manifest.MF is not a valid Java module name. This causes this library to be unusable from within a java module, since this is treated as a syntax error:

module mymodule {
    requires org.simplejavamail.java-utils-mail-dkim;
}

There is already a PR to fix this: #5

Activity

  1. added this to the 3.3.0 milestone on Jul 4, 2026
  2. bbottema commented on Jul 4, 2026

    @bbottema
    Member

    Fixed for 3.3.0 in commit 8b94873.

    The manifest now uses Automatic-Module-Name: org.simplejavamail.utils.mail.dkim instead of the invalid hyphenated module name. Verified locally with:

    jar --describe-module --file target/utils-mail-dkim-3.2.2.jar

    That now derives org.simplejavamail.utils.mail.dkim@3.2.2 instead of failing on java-utils-mail-dkim. Thanks @haumacher for the original PR and report; this keeps the same fix intent with a package-shaped module name.

  3. added a commit that references this issue on Jul 4, 2026
    8b94873
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions