[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: small generics merge

Kaffe CVS cvs-commits at kaffe.org
Tue Feb 22 03:06:48 PST 2005


PatchSet 5589 
Date: 2005/02/22 11:01:30
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: small generics merge

Members: 
	ChangeLog:1.3633->1.3634 
	libraries/javalib/Makefile.am:1.312->1.313 
	libraries/javalib/Makefile.in:1.398->1.399 
	libraries/javalib/all.files:1.92->1.93 
	libraries/javalib/java/io/Closeable.java:INITIAL->1.1 
	libraries/javalib/java/io/Flushable.java:INITIAL->1.1 
	libraries/javalib/java/lang/Appendable.java:1.1->1.2 
	libraries/javalib/java/lang/Readable.java:INITIAL->1.1 
	libraries/javalib/java/lang/StringBuilder.java:1.2->1.3 
	libraries/javalib/java/lang/TypeNotPresentException.java:INITIAL->1.1 
	libraries/javalib/java/lang/annotation/AnnotationFormatError.java:INITIAL->1.1 
	libraries/javalib/java/lang/annotation/AnnotationTypeMismatchException.java:INITIAL->1.1 
	libraries/javalib/java/lang/reflect/GenericArrayType.java:INITIAL->1.1 
	libraries/javalib/java/lang/reflect/GenericSignatureFormatError.java:INITIAL->1.1 
	libraries/javalib/java/lang/reflect/ParameterizedType.java:INITIAL->1.1 
	libraries/javalib/java/lang/reflect/Type.java:INITIAL->1.1 
	libraries/javalib/java/lang/reflect/WildcardType.java:INITIAL->1.1 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3633 kaffe/ChangeLog:1.3634
--- kaffe/ChangeLog:1.3633	Mon Feb 21 23:20:53 2005
+++ kaffe/ChangeLog	Tue Feb 22 11:01:30 2005
@@ -1,3 +1,57 @@
+2005-02-22  Dalibor Topic  <robilad at kaffe.org>
+
+	Resynced with GNU Classpath.
+
+	2005-02-20  Andrew John Hughes  <gnu_andrew at member.fsf.org>
+
+        Merge of interfaces and exceptions to HEAD from
+        the generics branch.
+
+        * java/lang/StringBuilder.java: Serial version updated.
+        * java/lang/annotation/AnnotationTypeMismatchException.java: Likewise.
+
+        Changes from generics branch:
+
+        2005-02-20  Andrew John Hughes  <gnu_andrew at member.fsf.org>
+
+        * java/io/Closeable.java: Documented.
+        * java/io/Flushable.java: Documented.
+        * java/lang/Appendable.java: Corrected line overrun.
+        * java/lang/Readable.java: Corrected indentation.
+        * java/lang/TypeNotPresentException.java: Documented.
+        * java/lang/annotation/AnnotationFormatError.java: Likewise.
+        * java/lang/annotation/AnnotationTypeMismatchException.java: Likewise.
+        * java/lang/reflect/GenericArrayType.java: Likewise.
+        * java/lang/reflect/GenericSignatureFormatError.java: Likewise.
+        * java/lang/reflect/ParameterizedType.java: Likewise.
+        * java/lang/reflect/Type.java: Likewise.
+        * java/lang/reflect/WildcardType.java: Likewise.
+
+        2005-01-07  Andrew John Hughes  <gnu_andrew at member.fsf.org>
+
+        * java/lang/annotation/AnnotationTypeMismatchException.java:
+        Added import of java.lang.reflect.Method
+
+        2004-08-26  Tom Tromey  <tromey at redhat.com>
+
+        * java/lang/reflect/GenericSignatureFormatError.java: New file.
+        * java/lang/reflect/WildcardType.java: New file.
+        * java/lang/reflect/ParameterizedType.java: New file.
+        * java/lang/reflect/GenericArrayType.java: New file.
+        * java/lang/reflect/Type.java: New file.
+        * java/io/Flushable.java: New file.
+        * java/io/Closeable.java: New file.
+
+        2004-08-07  Tom Tromey  <tromey at redhat.com>
+
+        * java/lang/annotation/AnnotationFormatError.java: New file.
+        * java/lang/annotation/AnnotationTypeMismatchException.java: New
+        file.
+
+        2004-08-06  Tom Tromey  <tromey at redhat.com>
+
+        * java/lang/Readable.java: New file.
+
 2005-02-20  Dalibor Topic  <robilad at kaffe.org>
 
 	Resynced with GNU Classpath.
Index: kaffe/libraries/javalib/Makefile.am
diff -u kaffe/libraries/javalib/Makefile.am:1.312 kaffe/libraries/javalib/Makefile.am:1.313
--- kaffe/libraries/javalib/Makefile.am:1.312	Sun Feb 20 01:18:10 2005
+++ kaffe/libraries/javalib/Makefile.am	Tue Feb 22 11:01:33 2005
@@ -181,6 +181,7 @@
 	$(java_beans_beancontext_SRCS) \
 	$(java_io_SRCS) \
 	$(java_lang_SRCS) \
+	$(java_lang_annotation_SRCS) \
 	$(java_lang_ref_SRCS) \
 	$(java_lang_reflect_SRCS) \
 	$(java_math_SRCS) \
@@ -2268,6 +2269,7 @@
 	java/io/CharArrayReader.java \
 	java/io/CharArrayWriter.java \
 	java/io/CharConversionException.java \
+	java/io/Closeable.java \
 	java/io/DataInput.java \
 	java/io/DataInputStream.java \
 	java/io/DataOutput.java \
@@ -2289,6 +2291,7 @@
 	java/io/FilterOutputStream.java \
 	java/io/FilterReader.java \
 	java/io/FilterWriter.java \
+	java/io/Flushable.java \
 	java/io/IOException.java \
 	java/io/InputStream.java \
 	java/io/InputStreamReader.java \
@@ -2393,6 +2396,7 @@
 	java/lang/Package.java \
 	java/lang/Process.java \
 	java/lang/ProcessInputStream.java \
+	java/lang/Readable.java \
 	java/lang/Runnable.java \
 	java/lang/Runtime.java \
 	java/lang/RuntimeException.java \
@@ -2413,6 +2417,7 @@
 	java/lang/ThreadGroup.java \
 	java/lang/ThreadLocal.java \
 	java/lang/Throwable.java \
+	java/lang/TypeNotPresentException.java \
 	java/lang/UnknownError.java \
 	java/lang/UnsatisfiedLinkError.java \
 	java/lang/UnsupportedClassVersionError.java \
@@ -2426,6 +2431,9 @@
 	java/lang/VerifyError.java \
 	java/lang/VirtualMachineError.java \
 	java/lang/Void.java
+java_lang_annotation_SRCS = \
+	java/lang/annotation/AnnotationFormatError.java \
+	java/lang/annotation/AnnotationTypeMismatchException.java
 java_lang_ref_SRCS = \
 	java/lang/ref/PhantomReference.java \
 	java/lang/ref/Reference.java \
@@ -2437,14 +2445,19 @@
 	java/lang/reflect/Array.java \
 	java/lang/reflect/Constructor.java \
 	java/lang/reflect/Field.java \
+	java/lang/reflect/GenericArrayType.java \
+	java/lang/reflect/GenericSignatureFormatError.java \
 	java/lang/reflect/InvocationHandler.java \
 	java/lang/reflect/InvocationTargetException.java \
 	java/lang/reflect/Member.java \
 	java/lang/reflect/Method.java \
 	java/lang/reflect/Modifier.java \
+	java/lang/reflect/ParameterizedType.java \
 	java/lang/reflect/Proxy.java \
 	java/lang/reflect/ReflectPermission.java \
-	java/lang/reflect/UndeclaredThrowableException.java
+	java/lang/reflect/Type.java \
+	java/lang/reflect/UndeclaredThrowableException.java \
+	java/lang/reflect/WildcardType.java
 java_math_SRCS = \
 	java/math/BigDecimal.java \
 	java/math/BigInteger.java
Index: kaffe/libraries/javalib/Makefile.in
diff -u kaffe/libraries/javalib/Makefile.in:1.398 kaffe/libraries/javalib/Makefile.in:1.399
--- kaffe/libraries/javalib/Makefile.in:1.398	Sun Feb 20 01:18:11 2005
+++ kaffe/libraries/javalib/Makefile.in	Tue Feb 22 11:01:34 2005
@@ -534,6 +534,7 @@
 	$(java_beans_beancontext_SRCS) \
 	$(java_io_SRCS) \
 	$(java_lang_SRCS) \
+	$(java_lang_annotation_SRCS) \
 	$(java_lang_ref_SRCS) \
 	$(java_lang_reflect_SRCS) \
 	$(java_math_SRCS) \
@@ -2751,6 +2752,7 @@
 	java/io/CharArrayReader.java \
 	java/io/CharArrayWriter.java \
 	java/io/CharConversionException.java \
+	java/io/Closeable.java \
 	java/io/DataInput.java \
 	java/io/DataInputStream.java \
 	java/io/DataOutput.java \
@@ -2772,6 +2774,7 @@
 	java/io/FilterOutputStream.java \
 	java/io/FilterReader.java \
 	java/io/FilterWriter.java \
+	java/io/Flushable.java \
 	java/io/IOException.java \
 	java/io/InputStream.java \
 	java/io/InputStreamReader.java \
@@ -2877,6 +2880,7 @@
 	java/lang/Package.java \
 	java/lang/Process.java \
 	java/lang/ProcessInputStream.java \
+	java/lang/Readable.java \
 	java/lang/Runnable.java \
 	java/lang/Runtime.java \
 	java/lang/RuntimeException.java \
@@ -2897,6 +2901,7 @@
 	java/lang/ThreadGroup.java \
 	java/lang/ThreadLocal.java \
 	java/lang/Throwable.java \
+	java/lang/TypeNotPresentException.java \
 	java/lang/UnknownError.java \
 	java/lang/UnsatisfiedLinkError.java \
 	java/lang/UnsupportedClassVersionError.java \
@@ -2911,6 +2916,10 @@
 	java/lang/VirtualMachineError.java \
 	java/lang/Void.java
 
+java_lang_annotation_SRCS = \
+	java/lang/annotation/AnnotationFormatError.java \
+	java/lang/annotation/AnnotationTypeMismatchException.java
+
 java_lang_ref_SRCS = \
 	java/lang/ref/PhantomReference.java \
 	java/lang/ref/Reference.java \
@@ -2923,14 +2932,19 @@
 	java/lang/reflect/Array.java \
 	java/lang/reflect/Constructor.java \
 	java/lang/reflect/Field.java \
+	java/lang/reflect/GenericArrayType.java \
+	java/lang/reflect/GenericSignatureFormatError.java \
 	java/lang/reflect/InvocationHandler.java \
 	java/lang/reflect/InvocationTargetException.java \
 	java/lang/reflect/Member.java \
 	java/lang/reflect/Method.java \
 	java/lang/reflect/Modifier.java \
+	java/lang/reflect/ParameterizedType.java \
 	java/lang/reflect/Proxy.java \
 	java/lang/reflect/ReflectPermission.java \
-	java/lang/reflect/UndeclaredThrowableException.java
+	java/lang/reflect/Type.java \
+	java/lang/reflect/UndeclaredThrowableException.java \
+	java/lang/reflect/WildcardType.java
 
 java_math_SRCS = \
 	java/math/BigDecimal.java \
Index: kaffe/libraries/javalib/all.files
diff -u kaffe/libraries/javalib/all.files:1.92 kaffe/libraries/javalib/all.files:1.93
--- kaffe/libraries/javalib/all.files:1.92	Sun Feb 20 01:18:11 2005
+++ kaffe/libraries/javalib/all.files	Tue Feb 22 11:01:37 2005
@@ -1812,6 +1812,7 @@
 java/io/CharArrayReader.java
 java/io/CharArrayWriter.java
 java/io/CharConversionException.java
+java/io/Closeable.java
 java/io/DataInput.java
 java/io/DataInputStream.java
 java/io/DataOutput.java
@@ -1833,6 +1834,7 @@
 java/io/FilterOutputStream.java
 java/io/FilterReader.java
 java/io/FilterWriter.java
+java/io/Flushable.java
 java/io/IOException.java
 java/io/InputStream.java
 java/io/InputStreamReader.java
@@ -1936,6 +1938,7 @@
 java/lang/Package.java
 java/lang/Process.java
 java/lang/ProcessInputStream.java
+java/lang/Readable.java
 java/lang/Runnable.java
 java/lang/Runtime.java
 java/lang/RuntimeException.java
@@ -1956,6 +1959,7 @@
 java/lang/ThreadGroup.java
 java/lang/ThreadLocal.java
 java/lang/Throwable.java
+java/lang/TypeNotPresentException.java
 java/lang/UnknownError.java
 java/lang/UnsatisfiedLinkError.java
 java/lang/UnsupportedClassVersionError.java
@@ -1969,6 +1973,8 @@
 java/lang/VerifyError.java
 java/lang/VirtualMachineError.java
 java/lang/Void.java
+java/lang/annotation/AnnotationFormatError.java
+java/lang/annotation/AnnotationTypeMismatchException.java
 java/lang/ref/PhantomReference.java
 java/lang/ref/Reference.java
 java/lang/ref/ReferenceQueue.java
@@ -1978,14 +1984,19 @@
 java/lang/reflect/Array.java
 java/lang/reflect/Constructor.java
 java/lang/reflect/Field.java
+java/lang/reflect/GenericArrayType.java
+java/lang/reflect/GenericSignatureFormatError.java
 java/lang/reflect/InvocationHandler.java
 java/lang/reflect/InvocationTargetException.java
 java/lang/reflect/Member.java
 java/lang/reflect/Method.java
 java/lang/reflect/Modifier.java
+java/lang/reflect/ParameterizedType.java
 java/lang/reflect/Proxy.java
 java/lang/reflect/ReflectPermission.java
+java/lang/reflect/Type.java
 java/lang/reflect/UndeclaredThrowableException.java
+java/lang/reflect/WildcardType.java
 java/math/BigDecimal.java
 java/math/BigInteger.java
 java/net/Authenticator.java
===================================================================
Checking out kaffe/libraries/javalib/java/io/Closeable.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/java/io/Closeable.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/java/io/Closeable.java	Tue Feb 22 11:06:46 2005
@@ -0,0 +1,63 @@
+/* Closeable.java -- Closeable object
+   Copyright (C) 2004, 2005 Free Software Foundation
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package java.io;
+
+/**
+ * A <code>Closeable</code> class represents a stream of
+ * data, which can be closed when it is no longer needed.
+ * Closing a stream allows the resources it uses to be
+ * freed for an alternate use.
+ *
+ * @author Tom Tromey (tromey at redhat.com)
+ * @author Andrew John Hughes (gnu_andrew at member.fsf.org)
+ * @since 1.5
+ */
+public interface Closeable
+{
+
+  /**
+   * Closes the stream represented by this class, thus freeing
+   * system resources. In that case that the stream is already
+   * in the closed state, this method has no effect.
+   *
+   * @throws IOException if an I/O error occurs in closing.
+   */
+  void close()
+    throws IOException;
+
+}
===================================================================
Checking out kaffe/libraries/javalib/java/io/Flushable.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/java/io/Flushable.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/java/io/Flushable.java	Tue Feb 22 11:06:47 2005
@@ -0,0 +1,62 @@
+/* Flushable.java -- Flushable object
+   Copyright (C) 2004, 2005 Free Software Foundation
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package java.io;
+
+/**
+ * A <code>Flushable</code> class represents a stream of
+ * data, for which internally buffered data can be `flushed'.
+ * Flushing such a stream causes the buffered data to be
+ * written to the stream.
+ *
+ * @author Tom Tromey (tromey at redhat.com)
+ * @author Andrew John Hughes (gnu_andrew at member.fsf.org)
+ * @since 1.5
+ */
+public interface Flushable
+{
+
+  /**
+   * Flushes the stream represented by this class,
+   * so that any buffered data is written to the stream.
+   *
+   * @throws IOException if an I/O error occurs in flushing.
+   */
+  void flush()
+    throws IOException;
+
+}
Index: kaffe/libraries/javalib/java/lang/Appendable.java
diff -u kaffe/libraries/javalib/java/lang/Appendable.java:1.1 kaffe/libraries/javalib/java/lang/Appendable.java:1.2
--- kaffe/libraries/javalib/java/lang/Appendable.java:1.1	Sat Jan 22 18:05:01 2005
+++ kaffe/libraries/javalib/java/lang/Appendable.java	Tue Feb 22 11:01:38 2005
@@ -55,7 +55,8 @@
  * </p>
  * <p>
  * <strong>Note</strong>: implementation of this interface is required for
- * any class that wishes to receive data from a <code>Formatter</code> instance.
+ * any class that wishes to receive data from a <code>Formatter</code>
+ * instance.
  * </p>
  *
  * @author Tom Tromey (tromey at redhat.com)
===================================================================
Checking out kaffe/libraries/javalib/java/lang/Readable.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/java/lang/Readable.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/java/lang/Readable.java	Tue Feb 22 11:06:47 2005
@@ -0,0 +1,71 @@
+/* Readable.java -- A character source
+   Copyright (C) 2004, 2005 Free Software Foundation
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package java.lang;
+
+import java.io.IOException;
+import java.nio.CharBuffer;
+
+/**
+ * A <code>Readable</code> object is simply a source for Unicode character
+ * data.  On request, a <code>Readable</code> will provide its data in
+ * a supplied <code>CharBuffer</code>.
+ *
+ * @author Tom Tromey <tromey at redhat.com>
+ * @author Andrew John Hughes <gnu_andrew at member.fsf.org>
+ * @since 1.5
+ */
+public interface Readable
+{
+
+  /**
+   * Adds the character data supplied by this <code>Readable</code>
+   * to the specified character buffer.  This method simply places
+   * each character into the buffer as supplied, using <code>put()</code>,
+   * without flipping or rewinding.
+   *
+   * @param buf the buffer to place the character data in.
+   * @return the number of <code>char</code> values placed in the buffer,
+   *         or -1 if no more characters are available.
+   * @throws IOException if an I/O error occurs.
+   * @throws NullPointerException if buf is null.
+   * @throws ReadOnlyBufferException if buf is read only.
+   */
+  int read(CharBuffer buf)
+    throws IOException;
+
+}
Index: kaffe/libraries/javalib/java/lang/StringBuilder.java
diff -u kaffe/libraries/javalib/java/lang/StringBuilder.java:1.2 kaffe/libraries/javalib/java/lang/StringBuilder.java:1.3
--- kaffe/libraries/javalib/java/lang/StringBuilder.java:1.2	Fri Feb 18 11:26:33 2005
+++ kaffe/libraries/javalib/java/lang/StringBuilder.java	Tue Feb 22 11:01:38 2005
@@ -82,9 +82,9 @@
   // want to change StringBuffer as well.
 
   /**
-   * Compatible with JDK 1.0+.
+   * For compatability with Sun's JDK
    */
-  private static final long serialVersionUID = 3388685877147921107L;
+  private static final long serialVersionUID = 4383685877147921099L;
 
   /**
    * Index of next available character (and thus the size of the current
===================================================================
Checking out kaffe/libraries/javalib/java/lang/TypeNotPresentException.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/java/lang/TypeNotPresentException.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/java/lang/TypeNotPresentException.java	Tue Feb 22 11:06:47 2005
@@ -0,0 +1,97 @@
+/* TypeNotPresentException.java -- Thrown when a string-based type is missing
+   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.lang;
+
+/**
+ * <p>
+ * Thrown when a type is accessed using a <code>String</code>-based
+ * representation, but no definition of the supplied type is found.
+ * This is effectively an unchecked equivalent of the existing
+ * <code>ClassNotFound</code> exception.  
+ * </p>
+ * <p>
+ * It may occur due to an attempt to load a missing class, interface or
+ * annotation, or when an undefined type variable is accessed.
+ * </p>
+ *
+ * @author Tom Tromey (tromey at redhat.com)
+ * @author Andrew John Hughes (gnu_andrew at member.fsf.org)
+ * @see ClassNotFoundException
+ * @since 1.5
+ */
+public class TypeNotPresentException
+  extends RuntimeException
+{
+  
+  /**
+   * Constructs a <code>TypeNotPresentException</code> for
+   * the supplied type.  The specified cause <code>Throwable</code>
+   * may be used to provide additional history, with regards to the
+   * root of the problem.  It is perfectly valid for this to be null,
+   * if the cause of the problem is unknown.
+   * 
+   * @param typeName the name of the missing type.
+   * @param cause the cause of this exception, or null if the cause
+   *              is unknown.
+   */
+  public TypeNotPresentException(String typeName, Throwable cause)
+  {
+    super("type \"" + typeName + "\" not found", cause);
+    this.typeName = typeName;
+  }
+
+  /**
+   * Returns the name of the missing type.
+   *
+   * @return the missing type's name.
+   */
+  public String typeName()
+  {
+    return typeName;
+  }
+
+  /**
+   * The name of the missing type.
+   *
+   * @serial the missing type's name.
+   */
+  // Name fixed by serialization.
+  private String typeName;
+
+}
===================================================================
Checking out kaffe/libraries/javalib/java/lang/annotation/AnnotationFormatError.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/java/lang/annotation/AnnotationFormatError.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/java/lang/annotation/AnnotationFormatError.java	Tue Feb 22 11:06:47 2005
@@ -0,0 +1,104 @@
+/* AnnotationFormatError.java - Thrown when an binary annotation is malformed
+   Copyright (C) 2004, 2005 Free Software Foundation
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package java.lang.annotation;
+
+/**
+ * Thrown when an annotation found in a class file is
+ * malformed.  When the virtual machine finds a class file
+ * containing annotations, it attempts to parse them.
+ * This error is thrown if this operation fails.
+ *
+ * @author Tom Tromey (tromey at redhat.com)
+ * @author Andrew John Hughes (gnu_andrew at member.fsf.org)
+ * @since 1.5
+ */
+public class AnnotationFormatError extends Error
+{
+
+  /**
+   * Constructs a new <code>AnnotationFormatError</code>
+   * using the specified message to give details of the error.
+   *
+   * @param message the message to use in the error output.
+   */
+  public AnnotationFormatError(String message)
+  {
+    super(message);
+  }
+
+  /**
+   * <p>
+   * Constructs a new <code>AnnotationFormatError</code>
+   * using the specified message to give details of the error.
+   * The supplied cause <code>Throwable</code> is used to
+   * provide additional history, with regards to the root
+   * of the problem.  It is perfectly valid for this to be null, if
+   * the cause is unknown.
+   * </p>
+   * <p>
+   * <strong>Note</strong>: if a cause is supplied, the error
+   * message from this cause is not automatically included in the
+   * error message given by this error.
+   * </p>
+   *
+   * @param message the message to use in the error output
+   * @param cause the cause of this error, or null if the cause
+   *              is unknown.
+   */
+  public AnnotationFormatError(String message, Throwable cause)
+  {
+    super(message, cause);
+  }
+
+  /**
+   * Constructs a new <code>AnnotationFormatError</code> using
+   * the supplied cause <code>Throwable</code> to
+   * provide additional history, with regards to the root
+   * of the problem.  It is perfectly valid for this to be null, if
+   * the cause is unknown.  If the cause is not null, the error
+   * message from this cause will also be used as the message
+   * for this error.
+   *
+   * @param cause the cause of the error.
+   */
+  public AnnotationFormatError(Throwable cause)
+  {
+    super(cause);
+  }
+
+}
===================================================================
Checking out kaffe/libraries/javalib/java/lang/annotation/AnnotationTypeMismatchException.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/java/lang/annotation/AnnotationTypeMismatchException.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/java/lang/annotation/AnnotationTypeMismatchException.java	Tue Feb 22 11:06:47 2005
@@ -0,0 +1,116 @@
+/* AnnotationTypeMismatchException.java - Thrown when annotation has changed
+   Copyright (C) 2004, 2005 Free Software Foundation
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+package java.lang.annotation;
+
+import java.lang.reflect.Method;
+
+/**
+ * Thrown when accessing an element within an annotation for
+ * which the type has changed, since compilation or serialization
+ * took place.  The mismatch between the compiled or serialized
+ * type and the current type causes this exception to be thrown.
+ * 
+ * @author Tom Tromey (tromey at redhat.com)
+ * @author Andrew John Hughes (gnu_andrew at member.fsf.org)
+ * @since 1.5
+ */
+public class AnnotationTypeMismatchException extends RuntimeException
+{
+
+  /**
+   * For compatability with Sun's JDK
+   */
+  private static final long serialVersionUID = 8125925355765570191L;
+
+  /**
+   * Constructs an <code>AnnotationTypeMismatchException</code>
+   * which is due to a mismatched type in the annotation
+   * element, <code>m</code>. The erroneous type used for the
+   * data in <code>m</code> is represented by the string,
+   * <code>type</code>.  This string is of an undefined format,
+   * and may contain the value as well as the type.
+   *
+   * @param m the element from the annotation.
+   * @param type the name of the erroneous type found in <code>m</code>.
+   */
+  public AnnotationTypeMismatchException(Method m, String type)
+  {
+    this.element = m;
+    this.foundType = type;
+  }
+
+  /**
+   * Returns the element from the annotation, for which a
+   * mismatch occurred.
+   *
+   * @return the element with the mismatched type.
+   */
+  public Method element()
+  {
+    return element;
+  }
+
+  /**
+   * Returns the erroneous type used by the element,
+   * represented as a <code>String</code>.  The format
+   * of this <code>String</code> is not explicitly specified,
+   * and may contain the value as well as the type.
+   *
+   * @return the type found in the element.
+   */
+  public String foundType()
+  {
+    return foundType;
+  }
+
+  // Names are chosen from serialization spec.
+  /**
+   * The element from the annotation.
+   *
+   * @serial the element with the mismatched type.
+   */
+  private Method element;
+
+  /**
+   * The erroneous type used by the element.
+   *
+   * @serial the type found in the element.
+   */
+  private String foundType;
+
+}
===================================================================
Checking out kaffe/libraries/javalib/java/lang/reflect/GenericArrayType.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/java/lang/reflect/GenericArrayType.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/java/lang/reflect/GenericArrayType.java	Tue Feb 22 11:06:47 2005
@@ -0,0 +1,61 @@
+/* GenericArrayType.java - Represent an array type with a generic component
+   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package java.lang.reflect;
+
+/**
+ * Represents the type of an array's components, which may be
+ * either a parameterized type or a type variable.
+ *
+ * @author Tom Tromey (tromey at redhat.com)
+ * @author Andrew John Hughes (gnu_andrew at member.fsf.org)
+ * @since 1.5
+ */
+public interface GenericArrayType 
+  extends Type
+{
+
+  /**
+   * Returns the <code>Type</code> of the components within the array.
+   *
+   * @return a <code>Type</code> instance representing the type of
+   *         the array's components.
+   */
+  Type getGenericComponentType();
+
+}
===================================================================
Checking out kaffe/libraries/javalib/java/lang/reflect/GenericSignatureFormatError.java
RCS:  /home/cvs/kaffe/kaffe/libraries/javalib/java/lang/reflect/GenericSignatureFormatError.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/libraries/javalib/java/lang/reflect/GenericSignatureFormatError.java	Tue Feb 22 11:06:47 2005
@@ -0,0 +1,62 @@
+/* GenericSignatureFormatError.java - Thrown when a signature is malformed.
+   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an

*** Patch too long, truncated ***




More information about the kaffe mailing list