DO NOT REPLY [Bug 35147] - [digester] Class.getClassLoader() is not reliable

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

DO NOT REPLY [Bug 35147] - [digester] Class.getClassLoader() is not reliable

Bugzilla from bugzilla@apache.org
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG?
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35147>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND?
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35147





------- Additional Comments From [hidden email]  2005-06-01 16:51 -------
True, forName(String,false,classLoader) would be more accurate.  But why are you
loading classes if not to use them?  Many of the loadClass calls are followed
immediately by newInstance; I didn't trace the rest.  But I used forName(String)
everywhere without problem.

Resources aren't a problem though; every occurance in Digester of a getResource*
method is of the form class.getClassLoader().getResource().  They can all be
simplified to class.getResource().


--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]