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

ModuleLayer.defineModulesWithXXX does not setup delegation when module reads automatic module

    XMLWordPrintable

Details

    Backports

      Description

        For module M1 and M2, mapped to class loaders L1 and L2: if M1 reads M2 then L1 needs to delegate to L2 to load classes in packages that M2 exports to M1. The class loader(s) created by ModuelLayer defineModulesWithXXX do not setup this delegation correctly for the case that M2 is an automatic module and L1 != L2.

        The issue was reported on the jigsaw-dev list here:
        http://mail.openjdk.java.net/pipermail/jigsaw-dev/2018-October/013971.html

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: