[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKWRAP-253) ClassAsset / ClassLoaderAsset should not use TCCL
Prabin Paudel (JIRA)
jira-events at lists.jboss.org
Mon Mar 21 13:26:47 EDT 2011
[ https://issues.jboss.org/browse/SHRINKWRAP-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589410#comment-12589410 ]
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
More information about the shrinkwrap-issues
mailing list