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

ModuleLayer.defineModules should defend against functions that don't provide a consistent mapping of name to class loader

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9, 13
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None

      Description

      The function specified to ModuleLayer.defineModules to map module names to class loaders should return the same class loader for a module name each time is it called. This should be specified a bit more clearly. The implementation should defend against mapping functions that don't provide a consistent mapping. This issue was brought up here:

      https://mail.openjdk.java.net/pipermail/jigsaw-dev/2019-February/014182.html

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: