[kaffe] CVS kaffe (dalibor): Resynced libraries/javalib/gnu/java/lang/reflect/TypeSignature.java with GNU Cla

Kaffe CVS cvs-commits at kaffe.org
Wed Dec 3 12:00:03 PST 2003


PatchSet 4181 
Date: 2003/12/03 19:57:13
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Resynced libraries/javalib/gnu/java/lang/reflect/TypeSignature.java with GNU Classpath

Members: 
	ChangeLog:1.1772->1.1773 
	libraries/javalib/gnu/java/lang/reflect/TypeSignature.java:1.2->1.3 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1772 kaffe/ChangeLog:1.1773
--- kaffe/ChangeLog:1.1772	Wed Dec  3 15:15:26 2003
+++ kaffe/ChangeLog	Wed Dec  3 19:57:13 2003
@@ -1,5 +1,16 @@
 2003-12-03  Dalibor Topic <robilad at kaffe.org>
 
+	* libraries/javalib/gnu/java/lang/reflect/TypeSignature.java:
+	Resynced with GNU Classpath.
+
+	2003-12-02  Guilhem Lavaux <guilhem at kaffe.org>, Helmer Kraemer <hkraemer at freenet.de>
+
+        * gnu/java/lang/reflect/TypeSignature.java
+        (getClassForEncoding): Splitted the method so we can specify an
+        explicit boot loader.
+
+2003-12-03  Dalibor Topic <robilad at kaffe.org>
+
 	* THRIDPARTY: Added information about Jessie.
 
 2003-12-03  Dalibor Topic <robilad at kaffe.org>
Index: kaffe/libraries/javalib/gnu/java/lang/reflect/TypeSignature.java
diff -u kaffe/libraries/javalib/gnu/java/lang/reflect/TypeSignature.java:1.2 kaffe/libraries/javalib/gnu/java/lang/reflect/TypeSignature.java:1.3
--- kaffe/libraries/javalib/gnu/java/lang/reflect/TypeSignature.java:1.2	Fri Aug 22 13:24:42 2003
+++ kaffe/libraries/javalib/gnu/java/lang/reflect/TypeSignature.java	Wed Dec  3 19:57:15 2003
@@ -139,7 +139,10 @@
    * accepts both object and descriptor formats, but must know which style
    * of string is being passed in (usually, descriptor should be true). In
    * descriptor format, "I" is treated as int.class, in object format, it
-   * is treated as a class named I in the unnamed package.
+   * is treated as a class named I in the unnamed package. This method is
+   * strictly equivalent to {@link #getClassForEncoding(java.lang.String, boolean, java.lang.ClassLoader)}
+   * with a class loader equal to <code>null</code>. In that case, it
+   * uses the default class loader on the calling stack.
    *
    * @param type_code the class name to decode
    * @param descriptor if the string is in descriptor format
@@ -153,7 +156,24 @@
     return getClassForEncoding(type_code, descriptor, null);
   }
 
-  public static Class getClassForEncoding(String type_code, boolean descriptor, ClassLoader loader)
+  /**
+   * This function is the inverse of <code>getEncodingOfClass</code>. This
+   * accepts both object and descriptor formats, but must know which style
+   * of string is being passed in (usually, descriptor should be true). In
+   * descriptor format, "I" is treated as int.class, in object format, it
+   * is treated as a class named I in the unnamed package.
+   *
+   * @param type_code The class name to decode.
+   * @param descriptor If the string is in descriptor format.
+   * @param loader The class loader when resolving generic object name. If
+   * <code>loader</code> is null then it uses the default class loader on the
+   * calling stack.
+   * @return the corresponding Class object.
+   * @throws ClassNotFoundException if the class cannot be located.
+   * @see #getEncodingOfClass(Class, boolean)
+   * @see #getClassForEncoding(String, boolean)
+   */
+   public static Class getClassForEncoding(String type_code, boolean descriptor, ClassLoader loader)
     throws ClassNotFoundException
   {
     if (descriptor)




More information about the kaffe mailing list