[jboss-jira] [JBoss JIRA] (WFCORE-4346) ChildFirstClassLoader and LegacyKernelServicesInitializer should allow exclusion of resources from the paren
Brian Stansberry (Jira)
issues at jboss.org
Wed Feb 20 22:49:00 EST 2019
Brian Stansberry created WFCORE-4346:
----------------------------------------
Summary: 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: Jeff Mesnil
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