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
This commit is contained in:
+13
-14
@@ -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() { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user