classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Patch: FYI: Bug 9596


From: Tom Tromey
Subject: [cp-patches] Patch: FYI: Bug 9596
Date: 16 Aug 2004 20:57:40 -0600

I'm checking this in.

This updates the javadoc for Class.getName() to reflect reality.

Tom

Index: ChangeLog
from  Tom Tromey  <address@hidden>
        Bug 9596.
        * java/lang/Class.java (getName): Fixed javadoc.

Index: java/lang/Class.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Class.java,v
retrieving revision 1.22
diff -u -r1.22 Class.java
--- java/lang/Class.java 27 Jul 2004 07:28:01 -0000 1.22
+++ java/lang/Class.java 17 Aug 2004 03:14:19 -0000
@@ -851,8 +851,16 @@
   
   /**
    * Get the name of this class, separated by dots for package separators.
-   * Primitive types and arrays are encoded as:
+   * If the class represents a primitive type, or void, then the
+   * name of the type as it appears in the Java programming language
+   * is returned.  For instance, <code>Byte.TYPE.getName()</code>
+   * returns "byte".
+   *
+   * Arrays are specially encoded as shown on this table.
    * <pre>
+   * array type          [<em>element type</em>
+   *                     (note that the element type is encoded per
+   *                      this table)
    * boolean             Z
    * byte                B
    * char                C
@@ -862,7 +870,6 @@
    * float               F
    * double              D
    * void                V
-   * array type          [<em>element type</em>
    * class or interface, alone: &lt;dotted name&gt;
    * class or interface, as element type: L&lt;dotted name&gt;;
    * </pre>




reply via email to

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