diff options
author | Tom Tromey <tromey@redhat.com> | 2002-06-13 18:16:26 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-06-13 18:16:26 +0000 |
commit | 93f7aeea7ac79573748c5f2632059aa6b50d74e2 (patch) | |
tree | fbd871ac981d77c90c17e4051a89bbbdb5953005 /libjava/java/lang/Void.java | |
parent | a8fa30f301536452a5840e8f605ff7a568174881 (diff) | |
download | gcc-93f7aeea7ac79573748c5f2632059aa6b50d74e2.zip gcc-93f7aeea7ac79573748c5f2632059aa6b50d74e2.tar.gz gcc-93f7aeea7ac79573748c5f2632059aa6b50d74e2.tar.bz2 |
natString.cc (init): Handle case where DONT_COPY is true and OFFSET!=0.
* java/lang/natString.cc (init): Handle case where DONT_COPY is
true and OFFSET!=0.
* java/lang/String.java (String(char[],int,int,boolean): New
constructor.
* java/lang/Long.java: Imported new version from Classpath.
* java/lang/Number.java: Likewise.
* java/lang/Integer.java: Likewise.
* java/lang/Long.java: Likewise.
* java/lang/Float.java: Likewise.
* java/lang/Boolean.java: Likewise.
* java/lang/Double.java: Likewise.
* java/lang/Void.java: Likewise.
From-SVN: r54595
Diffstat (limited to 'libjava/java/lang/Void.java')
-rw-r--r-- | libjava/java/lang/Void.java | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/libjava/java/lang/Void.java b/libjava/java/lang/Void.java index 2ac72f2..b2d64dd 100644 --- a/libjava/java/lang/Void.java +++ b/libjava/java/lang/Void.java @@ -1,5 +1,5 @@ -/* java.lang.Void - Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. +/* Void.class - defines void.class + Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -7,7 +7,7 @@ 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 @@ -38,30 +38,29 @@ exception statement from your version. */ package java.lang; -/* Written using "Java Class Libraries", 2nd edition, plus online - * API docs for JDK 1.2 beta from http://www.javasoft.com. - * Status: Complete. - */ - /** - * Void is a placeholder class so that the variable Void.TYPE can be - * supported for reflection return types. + * Void is a placeholder class so that the variable <code>Void.TYPE</code> + * (also available as <code>void.class</code>) can be supported for + * reflection return types. + * + * <p>This class could be Serializable, but that is up to Sun. * * @author Paul Fisher * @author John Keiser - * @author Per Bothner <bothner@cygnus.com> - * @since JDK1.1 + * @author Eric Blake <ebb9@email.byu.edu> + * @since 1.1 + * @status updated to 1.4 */ public final class Void { /** - * The return type <code>void</code> is represented by this + * The return type <code>void</code> is represented by this * <code>Class</code> object. */ public static final Class TYPE = VMClassLoader.getPrimitiveClass('V'); /** - * Don't allow Void objects to be made. + * Void is non-instantiable. */ private Void() { } } |