Author: markt
Date: Thu Apr  9 12:54:09 2009
New Revision: 763630

URL: http://svn.apache.org/viewvc?rev=763630&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=46961
Avoid tripping over http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149

Modified:
    tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java

Modified: tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java?rev=763630&r1=763629&r2=763630&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java 
(original)
+++ tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java Thu Apr 
 9 12:54:09 2009
@@ -1335,7 +1335,8 @@
             if (loader == null)
                 loader = system;
             try {
-                clazz = loader.loadClass(name);
+
+                clazz = Class.forName(name, false, loader);
                 if (clazz != null) {
                     if (log.isDebugEnabled())
                         log.debug("  Loading class from parent");
@@ -1372,7 +1373,7 @@
             if (loader == null)
                 loader = system;
             try {
-                clazz = loader.loadClass(name);
+                clazz = Class.forName(name, false, loader);
                 if (clazz != null) {
                     if (log.isDebugEnabled())
                         log.debug("  Loading class from parent");



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to