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

ServiceLoader$LazyClassPathLookupIterator scans boot and platform modules for services

    XMLWordPrintable

Details

    • b148
    • 9
    • b159
    • Not verified

    Backports

      Description

        Since jdk-9+148 then resources in modules aren't fully encapsulated and so java.util.ServiceLoader has to scan modules for resources, which is largely non-sensical since any service found there would be part of a named module and ignored (such services should have already been found - quicker - by ServiceLoader$ModuleServicesLookupIterator)

        After discussing with Alan, it appears we can safely shortcut in certain cases.

        Attachments

          Issue Links

            Activity

              People

                redestad Claes Redestad
                redestad Claes Redestad
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: