Skip to content

Move module-info.java to multi-release jar Java 9+ directory #172

Closed

Description

@cpovirk

Now that we have a multi-release jar, we could do this.

I think I heard this pattern suggested somewhere, but I'd want to confirm. But it's the end of the day, so I'm filing this issue and walking away.

(Note to self: If we do this, then I can simplify our internal Java 8 setup to ignore only java9 instead of both java9 and module-info.)

Activity

  1. cpovirk commented on Feb 10, 2021

    @cpovirk
    CollaboratorAuthor

    A couple suggestions of this pattern:

  2. cpovirk commented on Mar 8, 2021

    @cpovirk
    CollaboratorAuthor

    It's possible that this would eliminate the need for modularity.mixedJavaRelease...

    modularity.mixedJavaRelease 8

    ...which nearly got me into trouble in 8135398, as noted in the description of 6fae6f0.

  3. added this to the 1.0 milestone on Sep 14, 2021
  4. kevinb9n commented on Jan 27, 2022

    @kevinb9n
    Collaborator

    Is this an issue purely of internal organization or does it affect the product?

  5. cpovirk commented on Jan 28, 2022

    @cpovirk
    CollaboratorAuthor

    I don't know a ton about this, but my impression is that it could affect the product -- but I'm fuzzy on the details, and we could do it in a patch release anytime.

    One thing I've heard in the past is that some build tools blindly scan jars for .class files, and some such tools used to get confused by module-info.class, if only because it's necessarily built with -source 9 or higher. Putting module-info.class under META-INF (as this feature request proposes) typically keeps those tools from discovering it.

    That said, I would hope that module-info-ignorant tools would be rare nowadays.

    That said, I don't know if there are other reasons to move the module-info.class.

    I'm highly comfortable calling this post-1.0.

  6. added
    dev
    on Nov 30, 2022
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

    dev

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions