Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6275

ServiceLoaderFactory can't find implementations via ClassRealm

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.x / Backlog
    • Component/s: Class Loading
    • Labels:

      Description

      Spotted this issue via MANTRUN-200. The reason is that in the DefaultClassRealmManager a new realm is created where the parent classLoader is null. This implies that the bootstrap classloader is used as parent.
      With Java8 nashorn has become an extension and is not part of the bootstrap classloader anymore.
      It is kind of strange that we want the bootstrap classloader here, it makes more sense if the system classloader is used (but with Java 7 and older versions of Java this was not an issue, both worked fine).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stephenc Stephen Connolly
                Reporter:
                rfscholte Robert Scholte
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated: