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

    • Bug
    • Resolution: Fixed
    • P4
    • 17
    • 15
    • core-libs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: