Skip to content

New JPMS enabled releases double the size of jar file #7743

Closed

Description

@norrisjeremy

Guava Version

33.4.5-jre

Description

The size of the new JPMS enabled releases double the size of the jar file.
This appears to be due to the fact that every class is duplicated in the multi-release directory META-INF/versions/9, instead of just putting module-info.class in the multi-release directory META-INF/versions/9.

Example

$ du -hs guava-33.4.0-jre.jar
2.9M	guava-33.4.0-jre.jar

$ du -hs guava-33.4.5-jre.jar
5.9M	guava-33.4.5-jre.jar

Expected Behavior

JPMS enabled releases should only grow barely in size, due to the addition of a single new module-info.class.

Actual Behavior

JPMS enabled releases double the size of the jar file.

Packages

No response

Platforms

No response

Checklist

  • I agree to follow the code of conduct.

  • I can reproduce the bug with the latest version of Guava available.

Activity

  1. norrisjeremy commented on Mar 25, 2025

    @norrisjeremy
    Author

    Appears this is a known issue that will be remedied in 33.4.6.

  2. cpovirk commented on Mar 25, 2025

    @cpovirk
    Member

    Thanks, a new issue would have been a better way for me to handle this report.

    [edit: Here was the earlier discussion.]

  3. norrisjeremy commented on Mar 25, 2025

    @norrisjeremy
    Author

    Yes apologies, I searched the issues (both open & closed) and didn't see it reported, so I opened this, not thinking to check the release notes.

  4. added this to the 33.4.6 milestone on Mar 25, 2025
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=defectBug, not working as expected

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址