[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKWRAP-253) ClassAsset / ClassLoaderAsset should not use TCCL

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Tue Mar 15 06:03:46 EDT 2011


    [ https://issues.jboss.org/browse/SHRINKWRAP-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587978#comment-12587978 ] 

Andrew Rubinger commented on SHRINKWRAP-253:
--------------------------------------------

In the Sun JDK, a null ClassLoader may infer a system/boot/appCL resource.  The real behaviour is not specified by the Class API:

http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html#getClassLoader()



> 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