[jira] Created: (DIGESTER-140) Change the getClass().getClassLoader() to Thread.currentThread().getContextClassLoader()

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

[jira] Created: (DIGESTER-140) Change the getClass().getClassLoader() to Thread.currentThread().getContextClassLoader()

JIRA jira@apache.org
Change the getClass().getClassLoader() to Thread.currentThread().getContextClassLoader()
----------------------------------------------------------------------------------------

                 Key: DIGESTER-140
                 URL: https://issues.apache.org/jira/browse/DIGESTER-140
             Project: Commons Digester
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: Apache Tomcat 5.5.9 ,
            Reporter: ashwin kumar


When i use Digester from Java Agent Few pieces of code which uses

getClass().getClassLoader() returns me null.  As Digester is loaded by system classlaoder it happens so

Fix :  using following code   "Thread.currentThread().getContextClassLoader()" shal fix that


Locations to Fix :

ClassName :org.apache.commons.digester.SetNextRule
Method : end()
Line Number: 204


ClassName :org.apache.commons.digester.xmlrules.FromXmlRuleSet
Method : addRuleInstances()
Line Number: 164







--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.