Bug 975234 - Classloader getResource() method is unable reference directories
Summary: Classloader getResource() method is unable reference directories
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Class Loading
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER3
: EAP 6.1.1
Assignee: David M. Lloyd
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 975143
TreeView+ depends on / blocked
 
Reported: 2013-06-17 20:56 UTC by Brad Maxwell
Modified: 2013-09-16 20:27 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-09-16 20:27:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker MODULES-167 0 Major Resolved Allow getResource() methods to reference directories 2017-03-30 04:06:58 UTC

Description Brad Maxwell 2013-06-17 20:56:51 UTC
getResource on a directory returns null when the resource is in a module in the modules directory:

Thread.currentThread().getContextClassLoader().getResource('directory')

It is fixed by:
Allow getResource() methods to reference directories 
https://issues.jboss.org/browse/MODULES-167

Comment 2 Rostislav Svoboda 2013-06-18 14:22:26 UTC
1.2.1.Final and 1.2.2.Final contain bugfixes, granting ack

https://issues.jboss.org/browse/MODULES/fixforversion/12321521
https://issues.jboss.org/browse/MODULES/fixforversion/12321863

Comment 3 Paul Gier 2013-08-27 15:53:36 UTC
JBoss Modules 1.2.2.Final was included in eap 6.1.1 ER3

Comment 4 Ondrej Chaloupka 2013-08-29 13:18:54 UTC
Verified on EAP 6.1.1.ER7


Note You need to log in before you can comment on or make changes to this bug.