axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas Bitting <Douglas.Bitt...@agile.com>
Subject PATCH: JavaProvider.java
Date Tue, 20 Aug 2002 04:33:01 GMT
Here is a patch to JavaProvider.java that correctly queries the MessageContext for it's class
loader.  There was already a comment about pulling the
class loader from the MessageContext, but there was no code in place.  This patch corrects
that.

---- snip here ----
Index: src/org/apache/axis/providers/java/JavaProvider.java
===================================================================
RCS file: /home/cvspublic/xml-axis/java/src/org/apache/axis/providers/java/JavaProvider.java,v
retrieving revision 1.72
diff -r1.72 JavaProvider.java
458,459c458,465
<         // otherwise get the current threads classloader
<         cl = Thread.currentThread().getContextClassLoader();
---
>         // otherwise get the current thread's classloader
>         if (null != msgContext) {
>            cl = msgContext.getClassLoader();
>         }
>         
>         if (null == cl) {
>             cl = Thread.currentThread().getContextClassLoader();
>         }
---- snip here ----

Cheers,
--Doug

Doug Bitting
Agile Software
1 Almaden Blvd
San Jose, CA  95113
(408) 999-7120



Mime
View raw message