Resolvers.configure(Class,ClassLoader) ignores ClassLoader?
-----------------------------------------------------------
Key: SHRINKRES-183
URL:
https://issues.jboss.org/browse/SHRINKRES-183
Project: ShrinkWrap Resolvers
Issue Type: Bug
Components: api
Affects Versions: 2.1.0, 2.2.0-alpha-2, 2.1.1
Reporter: Thomas Maslen
Assignee: Karel Piwko
Fix For: 2.2.0-beta-1
[No, I wasn't trying to use this, I just noticed it while looking at the source. It
looks to me like a regression, but you gents would be better judges of that than I am]
The Resolvers.configure(Class,ClassLoader) method ignores its ClassLoader argument; the
only argument that it passes to ResolverSystemFactory.createFromUserView() is the Class.
Offhand it looks like a cut-and-paste from the method above?
If I'm reading Git right this was introduced in the fix for SHRINKRES-173 that went
into 2.1.0, and it's present in 2.1.0 and above, including the current master.
Happily, Resolvers.use(Class,ClassLoader) passes both arguments to ResolverSystemFactory
as expected.