commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Cleanup confusing system vs bootstrap classlaoder doc in Class.java


From: Mark Wielaard
Subject: FYI: Cleanup confusing system vs bootstrap classlaoder doc in Class.java
Date: Fri, 30 Apr 2004 18:11:23 +0200

Hi,

Just committed this small documentation clean up in Class.java:

2004-04-30  Mark Wielaard  <address@hidden>

        Reported by David Holmes
        * java/lang/Class.java: Clean up confusing stateements about system
        classloader versus bootstrap classloader.

Cheers,

Mark
Index: java/lang/Class.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Class.java,v
retrieving revision 1.19
diff -u -r1.19 Class.java
--- java/lang/Class.java        22 Apr 2004 16:18:36 -0000      1.19
+++ java/lang/Class.java        30 Apr 2004 16:08:50 -0000
@@ -62,9 +62,11 @@
  * objects with identical names and ClassLoaders. Primitive types, array
  * types, and void also have a Class object.
  *
- * <p>Arrays with identical type and number of dimensions share the same
- * class (and null "system" ClassLoader, incidentally).  The name of an
- * array class is <code>[&lt;signature format&gt;;</code> ... for example,
+ * <p>Arrays with identical type and number of dimensions share the same class.
+ * The array class ClassLoader is the same as the ClassLoader of the element
+ * type of the array (which can be null to indicate the bootstrap classloader).
+ * The name of an array class is <code>[&lt;signature format&gt;;</code>.
+ * <p> For example,
  * String[]'s class is <code>[Ljava.lang.String;</code>. boolean, byte,
  * short, char, int, long, float and double have the "type name" of
  * Z,B,S,C,I,J,F,D for the purposes of array classes.  If it's a
@@ -236,10 +238,11 @@
   }
   
   /**
-   * Get the ClassLoader that loaded this class.  If it was loaded by the
-   * system classloader, this method will return null. If there is a security
-   * manager, and the caller's class loader does not match the requested
-   * one, a security check of <code>RuntimePermission("getClassLoader")</code>
+   * Get the ClassLoader that loaded this class.  If the class was loaded
+   * by the bootstrap classloader, this method will return null.
+   * If there is a security manager, and the caller's class loader does not
+   * match the requested one, a security check of
+   * <code>RuntimePermission("getClassLoader")</code>
    * must first succeed. Primitive types and void return null.
    *
    * @return the ClassLoader that loaded this class

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]