maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Connolly (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-6275) ServiceLoaderFactory can't find implementations via ClassRealm
Date Wed, 30 Aug 2017 09:28:00 GMT

    [ https://issues.apache.org/jira/browse/MNG-6275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16146953#comment-16146953
] 

Stephen Connolly commented on MNG-6275:
---------------------------------------

https://builds.apache.org/view/M-R/view/Maven/job/maven-3.x-jenkinsfile/job/mng-6275/ will
have the test status but a local run of the integration tests reveals this change at least
gets past testBootstrap, so likely is good

> ServiceLoaderFactory can't find implementations via ClassRealm
> --------------------------------------------------------------
>
>                 Key: MNG-6275
>                 URL: https://issues.apache.org/jira/browse/MNG-6275
>             Project: Maven
>          Issue Type: Bug
>          Components: Class Loading
>            Reporter: Robert Scholte
>            Assignee: Robert Scholte
>            Priority: Critical
>             Fix For: 3.6.x-candidate
>
>
> 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).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message