Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8259395

Patching automatic module with additional packages re-creates module without "requires java.base"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:
      None

      Description

      This issue was discussed on the mailing list here:
      https://mail.openjdk.java.net/pipermail/jigsaw-dev/2021-January/014632.html

      The summary is that using --patch-module to patch an automatic module will re-create its ModuleDescriptor without "requires mandated java.base" when the patching adds packages to the module. The bug arises because the new ModuleDescriptor is created in non-strict mode, a mode that doesn't add the "requires" at build time.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alanb Alan Bateman
              Reporter:
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: