maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylwester Lachiewicz (JIRA)" <>
Subject [jira] [Commented] (MNG-6275) ServiceLoaderFactory can't find implementations via ClassRealm
Date Sat, 29 Dec 2018 22:08:00 GMT


Sylwester Lachiewicz commented on MNG-6275:

I think we fixed this problem with 3.5.2 - I can see both commits in master.

> ServiceLoaderFactory can't find implementations via ClassRealm
> --------------------------------------------------------------
>                 Key: MNG-6275
>                 URL:
>             Project: Maven
>          Issue Type: Bug
>          Components: Class Loading
>            Reporter: Robert Scholte
>            Assignee: Stephen Connolly
>            Priority: Critical
>             Fix For: 3.5.2
> 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
> 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).

This message was sent by Atlassian JIRA

View raw message