Skip to content

Commit

Permalink
[MODULES-339] Do not export JAXP resources
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlloyd committed Mar 20, 2018
1 parent ce0e6d7 commit 9722e64
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/main/java/org/jboss/modules/ModuleClassLoader.java
Expand Up @@ -364,7 +364,7 @@ public Class<?> loadClassLocal(final String className, final boolean resolve) th
}

/**
* Load a local resource from a specific root from this module class loader.
* Load a local exported resource from a specific root from this module class loader.
*
* @param root the root name
* @param name the resource name
Expand All @@ -384,12 +384,11 @@ Resource loadResourceLocal(final String root, final String name) {
}
}
}
// no loaders for this path if it's not in the JAXP map
return jaxpImplResources.get(name);
return null;
}

/**
* Load a local resource from this class loader.
* Load a local exported resource from this class loader.
*
* @param name the resource name
* @return the list of resources
Expand All @@ -409,10 +408,6 @@ public List<Resource> loadResourceLocal(final String name) {
}
}
}
final URLConnectionResource resource = jaxpImplResources.get(name);
if (resource != null) {
list.add(resource);
}
return list.isEmpty() ? Collections.emptyList() : list;
}

Expand Down

0 comments on commit 9722e64

Please sign in to comment.