commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r179179 - /jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/ClassUtilsTest.java
Date Tue, 31 May 2005 02:18:29 GMT
Author: ggregory
Date: Mon May 30 19:18:27 2005
New Revision: 179179

URL: http://svn.apache.org/viewcvs?rev=179179&view=rev
Log:
Javadoc method ClassUtilsTest#newSystemClassLoader() while looking for Sun Java 1.3.1 build
issues on Windows XP. See http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=111738085310708&w=2
modified   ClassUtilsTest.java

Modified:
    jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/ClassUtilsTest.java

Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/ClassUtilsTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/ClassUtilsTest.java?rev=179179&r1=179178&r2=179179&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/ClassUtilsTest.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/ClassUtilsTest.java
Mon May 30 19:18:27 2005
@@ -17,6 +17,7 @@
 
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Modifier;
+import java.net.URL;
 import java.net.URLClassLoader;
 import java.util.ArrayList;
 import java.util.List;
@@ -389,12 +390,20 @@
         assertNotSame("unmodified", noPrimitives, ClassUtils.primitivesToWrappers(noPrimitives));
     }
 
-    public static ClassLoader newSystemClassLoader() throws  SecurityException, IllegalArgumentException
{
+    /**
+     * Creates a new instance of URLClassLoader with the system class loader's URLs and a
<code>null</code> parent
+     * class loader.
+     * 
+     * @see ClassLoader#getSystemClassLoader()
+     * @see URLClassLoader#newInstance(URL[], ClassLoader)
+     * @return the resulting class loader
+     */
+    public static ClassLoader newSystemClassLoader() throws SecurityException, IllegalArgumentException
{
         ClassLoader scl = ClassLoader.getSystemClassLoader();
         if (!(scl instanceof URLClassLoader)) {
             fail("Need a better test set up.");
         }
-        URLClassLoader urlScl = (URLClassLoader)scl;
+        URLClassLoader urlScl = (URLClassLoader) scl;
         return URLClassLoader.newInstance(urlScl.getURLs(), null);
     }
 



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


Mime
View raw message