hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hivemind-...@jakarta.apache.org
Subject [Jakarta HiveMind Wiki] Updated: ExtendingSmartTranslator
Date Fri, 16 Jul 2004 12:11:37 GMT
   Date: 2004-07-16T05:11:37
   Editor: KurtHoehn <khoehn@etechstudios.com>
   Wiki: Jakarta HiveMind Wiki
   Page: ExtendingSmartTranslator
   URL: http://wiki.apache.org/jakarta-hivemind/ExtendingSmartTranslator

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -17,13 +17,11 @@
   {
     try
     {
-      Thread thread = Thread.currentThread();
-      ClassLoader loader = thread.getContextClassLoader();
-      setValue( loader.loadClass(text) );
+      setValue( Class.forName(text, true, ClassLoader.getSystemClassLoader()) );
     }
     catch( ClassNotFoundException cnfe )
     {
-      throw new java.lang.IllegalArgumentException();
+      throw new java.lang.IllegalArgumentException(cnfe.getMessage());
     }
   }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message