[
https://issues.jboss.org/browse/SHRINKWRAP-253?page=com.atlassian.jira.pl...
]
Prabin Paudel commented on SHRINKWRAP-253:
------------------------------------------
I guess we don't have to go that far. If a class loader is null, it is a bootstrap
class loader. That means we can just pick the system class loader for delegation:
if(classLoader == null) {
classLoader = ClassLoader.getSystemClassLoader();
}
It should fix the problem.
ClassAsset / ClassLoaderAsset should not use TCCL
-------------------------------------------------
Key: SHRINKWRAP-253
URL:
https://issues.jboss.org/browse/SHRINKWRAP-253
Project: ShrinkWrap
Issue Type: Bug
Reporter: Aslak Knutsen
ClassAsset.openStream should not fall back to using TCCL if class.getClassLoader is null.
That means it's a System resource and static ClassLoader.getResourceAsStream should be
used instead.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira