[jboss-jira] [JBoss JIRA] (WFCORE-4346) ChildFirstClassLoader and LegacyKernelServicesInitializer should allow exclusion of resources from the paren

Jeff Mesnil (Jira) issues at jboss.org
Tue Mar 12 06:11:03 EDT 2019


     [ https://issues.jboss.org/browse/WFCORE-4346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Mesnil reassigned WFCORE-4346:
-----------------------------------

    Fix Version/s: 9.0.0.Beta1
         Assignee: Brian Stansberry  (was: Jeff Mesnil)
       Resolution: Done


> ChildFirstClassLoader and LegacyKernelServicesInitializer should allow exclusion of resources from the paren
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-4346
>                 URL: https://issues.jboss.org/browse/WFCORE-4346
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Management, Test Suite
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>            Priority: Major
>             Fix For: 9.0.0.Beta1
>
>
> ChildFirstClassLoader and LegacyKernelServicesInitializer have hooks to allow tests to prevent classes from being loaded from the parent CL, but there's no way to prevent resources being loaded. In particular META-INF/services files, which bit us with https://github.com/wildfly/wildfly-core/pull/3685 as a META-INF/services file in the parent was being found when trying to load services for an interface in the child CL. The impls in the parent could not implement the child CL version of the interface. Excluding loading of the META-INF/services file in the paren solved the problem.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list