Revision: 1335
          http://stripes.svn.sourceforge.net/stripes/?rev=1335&view=rev
Author:   bengunter
Date:     2010-11-12 15:50:31 +0000 (Fri, 12 Nov 2010)

Log Message:
-----------
STS-776, STS-773 and STS-775: Use ReflectUtil.findClass() instead of using the 
context classloader directly.

Modified Paths:
--------------
    branches/1.5.x/stripes/src/net/sourceforge/stripes/vfs/VFS.java

Modified: branches/1.5.x/stripes/src/net/sourceforge/stripes/vfs/VFS.java
===================================================================
--- branches/1.5.x/stripes/src/net/sourceforge/stripes/vfs/VFS.java     
2010-11-12 15:34:46 UTC (rev 1334)
+++ branches/1.5.x/stripes/src/net/sourceforge/stripes/vfs/VFS.java     
2010-11-12 15:50:31 UTC (rev 1335)
@@ -25,6 +25,7 @@
 
 import net.sourceforge.stripes.exception.StripesRuntimeException;
 import net.sourceforge.stripes.util.Log;
+import net.sourceforge.stripes.util.ReflectUtil;
 
 /**
  * Provides a very simple API for accessing resources within an application 
server.
@@ -98,7 +99,7 @@
     /** Get a class by name. If the class is not found then return null. */
     protected static Class<?> getClass(String className) {
         try {
-            return 
Thread.currentThread().getContextClassLoader().loadClass(className);
+            return ReflectUtil.findClass(className);
         }
         catch (ClassNotFoundException e) {
             log.debug("Class not found: ", className);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Stripes-development mailing list
Stripes-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to