summaryrefslogtreecommitdiffstats
path: root/libjava/java/io/File.java
Commit message (Collapse)AuthorAgeFilesLines
* 2006-07-18 Gary Benson <gbenson@redhat.com>gary2006-07-181-1/+1
| | | | | | | | * java/io/File.java (deleteOnExit): Fix security check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115551 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-07-14 Gary Benson <gbenson@redhat.com>gary2006-07-141-4/+22
| | | | | | | | | | | | * java/io/File.java (internalExists): New method. (exists): Use internalExists. (internalIsDirectory): New method. (isDirectory): Use internalIsDirectory. (createTempFile): Use internalExists and internalIsDirectory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115441 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-07-12 Gary Benson <gbenson@redhat.com>gary2006-07-121-4/+2
| | | | | | | | * java/io/File.java (renameTo): Fix security checks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115373 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/natFilePosix.cc (getCanonicalPath): Rewritten.gary2006-06-061-3/+3
| | | | | | | | | | | | * configure.ac: Remove realpath check and add checks for lstat and readlink. * configure: Rebuilt. * include/config.h.in: Likewise. * java/io/File.java: Javadoc fix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114434 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natThread.cc (finish_): Don't clear 'group'.tromey2006-01-061-3/+2
| | | | | | | | | | | | | * sources.am, Makefile.in: Rebuilt. * java/lang/Runtime.java (exit): Merged with Classpath. (runShutdownHooks): New method from Classpath. * java/io/File.java (deleteOnExit): Use DeleteFileHelper, not FileDeleter. * gnu/gcj/runtime/FileDeleter.java: Removed. * java/lang/natRuntime.cc (runFinalizationForExit): New method. (exitInternal): Don't run finalizers or delete files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109400 138bc75d-0d04-0410-961f-82ee72b054a4
* PR classpath/25389:tromey2005-12-141-1/+5
| | | | | | | * java/io/File.java (File): Throw IllegalArgumentException if URI is non-hierarchical. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108528 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF addresskcook2005-06-301-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101453 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-01-14 Robin Green <greenrd@greenrd.org>tromey2005-01-141-2/+2
| | | | | | | * java/io/File.java (toURI): Generate a URI which we understand. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93664 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-09-09 Jeroen Frijters <jeroen@frijters.net>mkoch2004-09-091-14/+42
| | | | | | | | | | | | | | | | | (normalizePath): Added special case for windows systems. 2004-09-09 Michael Koch <konqueror@gmx.de> * java/io/File.java (dupSeparator): Made private. (File(URI)): New constructor. (getParentFile): Fixed javadoc. (createTempFile): Reformated. (setReadOnly): Added comment. (deleteOnExit): Merged javadoc with classpath version. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87225 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-08-30 Jeroen Frijters <jeroen@frijters.net>andreast2004-08-301-6/+29
| | | | | | | | * java/io/File.java File(String,String): Fixed handling of empty path. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86774 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-27 Bryce McKinlay <mckinlay@redhat.com>bryce2004-07-271-2/+1
| | | | | | | | | | * java/io/File.java (toURI): Throw RuntimeException, not InternalError. * java/lang/Runtime.java (exit): Qualify static sleep() call with class name, not instance. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85227 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-07-05 Anthony Green <green@redhat.com>green2004-07-061-0/+24
| | | | | | | * java/io/File.java (toURI): Merge from Classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84145 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-04-20 Michael Koch <konqueror@gmx.de>mkoch2004-04-201-32/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java, java/io/CharArrayWriter.java, java/io/DataInput.java, java/io/DataInputStream.java, java/io/File.java, java/io/FilterInputStream.java, java/io/InputStream.java, java/io/InputStreamReader.java, java/io/ObjectInputStream.java, java/io/ObjectStreamClass.java, java/io/PipedInputStream.java, java/io/PipedReader.java, java/io/PushbackInputStream.java, java/io/PushbackReader.java, java/io/RandomAccessFile.java, java/io/SerializablePermission.java, java/io/StreamTokenizer.java, java/io/StringWriter.java, java/io/WriteAbortedException.java, java/io/Writer.java: Fixed javadocs all over, rename arguments to match javadocs, fixed coding style. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80897 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-22 Michael Koch <konqueror@gmx.de>mkoch2003-10-221-5/+3
| | | | | | | | | * java/io/File.java (equals): Removed redundant obj == null check. (createTempFile): Merged comments from classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72790 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-13 Michael Koch <konqueror@gmx.de>mkoch2003-10-131-93/+98
| | | | | | | | * java/io/File.java: Reformated. (equals): Check for obj == null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72421 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-21 Michael Koch <konqueror@gmx.de>mkoch2003-06-211-20/+28
| | | | | | | | | | | | | * java/io/File.java (static): Load javaio lib if existing (only in classpath). (File): Revised documentation to show the correct argument name. (createTempFile): Partly merged with classpath. (compareTo): Simplified. (lastModified): Throw exception if time < 0. (deleteOnExit): Revised documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68310 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-20 Michael Koch <konqueror@gmx.de>mkoch2003-05-201-34/+35
| | | | | | | | | | | | * java/io/DataInputStream.java: Reformatted, Replaced < and & with html entitites in documentation. * java/io/File.java: Reformatted. * java/io/PrintWriter.java: Moved class documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66992 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-05-06 Michael Koch <konqueror@gmx.de>mkoch2003-05-061-21/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/io/DataOutputStream.java (write): Renamed argument to "value", merged documentation from classpath. (writeBoolean): Likewise. (writeByte): Likewise. (writeShort): Likewise. (writeChar): Likewise. (writeInt): Likewise. (writeLong): Likewise. (writeFloat): Likewise. (writeDouble): Likewise. (writeBytes): Likewise. (writeChars): Likewise. (writeUTF): Likewise. * java/io/File.java (performDelete): Added documentation. (performList): Likewise. (performMkdir): Likewise. (performSetReadOnly): Likewise. (performRenameTo): Likewise. (performSetLastModified): Likewise. (delete): Made it sychronized. (renameTo): Made it sychronized. (equals): Reformatted. (isHidden): Likewise. (listFiles): Likewise. (setReadOnly): Likewise. (listRoots): Likewise. (setLastModified): Likewise. (checkRead): Likewise. (checkWrite): Likewise. * java/io/FileInputStream.java (skip): Made it sychronized, merged from classpath. * java/io/FileOutputStream.java (write): Merged from classpath. * java/io/InputStreamReader.java: (InputStreamReader): Merged documentation from classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66520 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-19 Ranjit Mathew <rmathew@hotmail.com>tromey2003-04-191-8/+100
| | | | | | | | | | | | | | * java/io/File.java (getAbsolutePath): On Windows, take care of paths like "C:", "G:foo\bar", etc. (getName): Make it work correctly on Windows. (getParent): Make it work correctly on Windows. For UNIX, fix bug that causes "/" to be returned as the parent of "/", instead of null as returned by Sun's JRE. * java/io/natFileWin32.cc: Change copyright owner to FSF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65823 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-31 Michael Koch <konqueror@gmx.de>mkoch2003-03-311-47/+595
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/io/File.java (separator): Merged documentation from classpath. (separatorChar): Merged documentation from classpath. (pathSeparator): Merged documentation from classpath. (pathSeparatorChar): Merged documentation from classpath. (path): Merged documentation from classpath. (canRead): Merged documentation from classpath. (canWrite): Merged documentation from classpath. (createNewFile): Merged documentation from classpath. (delete): Merged documentation from classpath. (equals): Merged documentation from classpath. (exists): Merged documentation from classpath. (File): Renamed p to name to match classpath, merged documentation from classpath. (getAbsolutePath): Merged documentation from classpath. (getCanonicalPath): Merged documentation from classpath. (getCanonicalFile): Merged documentation from classpath. (getName): Merged documentation from classpath. (getParent): Merged documentation from classpath. (getParentFile): Merged documentation from classpath. (getPath): Merged documentation from classpath. (hashCode): Merged documentation from classpath. (isAbsolute): Merged documentation from classpath. (isDirectory): Merged documentation from classpath. (isFile): Merged documentation from classpath. (isHidden): Merged documentation from classpath. (lastModified): Merged documentation from classpath. (length): Merged documentation from classpath. (list): Merged documentation from classpath. (listFiles): Merged documentation from classpath. (toString): Merged documentation from classpath. (toURL): Merged documentation from classpath. (mkdir): Merged documentation from classpath. (mkdirs): Merged documentation from classpath. (createTempFile): Merged documentation from classpath. (setReadOnly): Merged documentation from classpath. (listRoots): Merged documentation from classpath. (compareTo): Merged documentation from classpath. (renameTo): Merged documentation from classpath. (setLastModified): Merged documentation from classpath. * java/io/PrintStream.java (auto_flush): Merged documentation from classpath. (PrintStream): Merged documentation from classpath. (checkError): Merged documentation from classpath. (setError): Merged documentation from classpath. (close): Merged documentation from classpath. (flush): Merged documentation from classpath. (print): Merged documentation from classpath. (println): Merged documentation from classpath. (write): Renamed count to len to match classpath, merged documentation from classpath. * java/io/RandomAccessFile.java (readShort): Merged documentation from classpath. (readUnsignedByte): Merged documentation from classpath. (readUnsignedShort): Merged documentation from classpath. (readUTF): Merged documentation from classpath. (seek): Reformatted, merged documentation from classpath. (skipBytes): Renamed some variables to match classpath, reformatted, merged documentation from classpath. (write): Merged documentation from classpath. (writeBoolean): Merged documentation from classpath. (writeByte): Merged documentation from classpath. (writeShort): Merged documentation from classpath. (writeChar): Merged documentation from classpath. (writeInt): Merged documentation from classpath. (writeLong): Merged documentation from classpath. (writeFloat): Merged documentation from classpath. (writeDouble): Merged documentation from classpath. (writeBytes): Merged documentation from classpath. (writeChars): Merged documentation from classpath. (writeUTF): Reformatted. (getChannel): Reformatted. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65081 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-28 Michael Koch <konqueror@gmx.de>mkoch2003-03-281-29/+34
| | | | | | | | | | | | | | | | | * java/io/File.java: Import needed classes instead of whole packages, merged class documentation with classpath, moved constants and variables to top of class. * java/io/PrintStream.java: Merged class documentation with classpath, moved constants and variables to top of class. * java/io/RandomAccessFile.java (RandomAccessFile): Merged with classpath. (read): Merged with classpath). (read*): Reformatted. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64974 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-24 Michael Koch <konqueror@gmx.de>mkoch2003-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/io/DataOutputStream.java (write): Merged from classpath. * java/io/File.java: Merged copyrigth with classpath. * java/io/FileInputStream.java (getChannel): Made it synchronized instead of using a synchronized block. * java/io/FileOutputStream.java: Reformatted. * java/io/InputStreamReader.java (InputStreamReader): Renamed enc to encoding_name. (close): Merged documentation from classpath. (getEncoding): Merged documentation from classpath. (ready): Merged documentation from classpath. (read): Merged documentation from classpath. * java/io/LineNumberReader.java (lineNumber): Made it private. (LineNumberReader): Use Constant instead of a direct value. * java/io/OutputStreamWriter.java (OutputStreamWriter): Renamed enc to encoding_scheme, merged documentation from classpath. (close): Merged documentation from classpath. (flush): Merged documentation from classpath. (write): Merged documentation from classpath. * java/io/PrintStream.java: Reformatted. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64806 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-24 Michael Koch <konqueror@gmx.de>mkoch2003-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * java/io/DataInputStream.java (): Wrapped documentation line. (): Fixed @return tag. * java/io/DataOutputStream.java (written): Moved to top of class. (all methods): Merged documentation from classpath. * java/io/File.java: Merged copyright year with classpath. * java/io/FileInputStream.java (all methods): Merged documentation from classpath. * java/io/LineNumberReader.java (getLineNumber): Fixed @return tag. * java/io/ObjectInputStream.java. Reformatted. * java/io/ObjectOutputStream.java: Reformatted, fixed some @see tags. * java/io/OutputStreamWriter.java: Deleted empty line. * java/io/Writer.java: Reformatted. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64780 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-20 Michael Koch <konqueror@gmx.de>mkoch2003-03-201-8/+36
| | | | | | | | | | | | | | | | * java/io/DataOutputStream.java, java/io/File.java, java/io/FileInputStream.java, java/io/FileOutputStream.java, java/io/InputStreamReader.java, java/io/LineNumberReader.java, java/io/OutputStreamWriter.java, java/io/PrintStream.java, java/io/RandomAccessFile.java: Merged copyright statements with classpath for easier merging. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64608 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-01 Ranjit Mathew <rmathew@hotmail.com>tromey2003-03-021-6/+16
| | | | | | | | | | | | | | | | | | | * java/io/File.java (normalizePath): Remove trailing separator on Windows only if path is not of the form "x:\". * java/io/natFileWin32.cc (WIN32_EPOCH_MILLIS): New constant. (java::io::File::attr): Change formatting a bit and use WIN32_EPOCH_MILLIS instead of magic numbers. (java::io::File::isAbsolute): Path must have at least 3 characters for a UNC network path. (java::io::File::init_native): Define. (java::io::File::performCreate): Likewise. (java::io::File::performSetReadOnly): Likewise. (java::io::File::performSetLastModified): Likewise. (java::io::File::performListRoots): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63646 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-03-01 Ranjit Mathew <rmathew@hotmail.com>tromey2003-03-011-5/+19
| | | | | | | | | | | | | | | | | | | * java/io/File (getAbsolutePath): Prefix drive specifier on Windows for paths starting with a '\'. (toURL): Make URL more consistent with what Sun's JDK returns. * java/io/natFileWin32.cc (java::io::File::isAbsolute): Return true only if the path is a UNC network path or it starts with a drive specifier. * java/net/URLStreamHandler.java (parseURL): Correct minor typo. Be prepared to handle either '/' or '\\' in the file path for Windows if using the "file" protocol. Canonicalise the file path if using a relative path in the given context and the "file" protocol. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63635 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/File.java (normalizePath): Add Win32 support for autobryce2002-04-171-0/+5
| | | | | | | conversion of a '/' path separator to Win32's '\' separator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52447 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/4481:tromey2001-10-081-2/+5
| | | | | | | | * java/io/File.java (getParent): Handle case where path is "/". (normalizePath): Use correct string for UNC leader. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46093 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/File.java (normalizePath): Use equals() not '==' for stringbryce2001-09-131-1/+1
| | | | | | | comparison. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45583 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/File.java (toURL): Use getAbsolutePath and `file://'.tromey2001-09-121-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45556 138bc75d-0d04-0410-961f-82ee72b054a4
* Re-merge with Classpath:tromey2001-08-311-1/+1
| | | | | | | | | | | | * java/util/Comparator (equals): Added. * java/io/PipedWriter.java (write): Changed argument to `int'. * java/io/FileDescriptor.java (FileDescriptor()): New constructor. * java/io/File.java (getAbsoluteFile): Doesn't throw IOException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45337 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/natFileWin32.cc (_access): Renamed.tromey2001-07-181-8/+11
| | | | | | | | | | | (_stat): Likewise. * java/io/natFile.cc (_access): Renamed. (_stat): Likewise. * java/io/File.java (access, stat): Add leading `_' to name. Updated all callers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44124 138bc75d-0d04-0410-961f-82ee72b054a4
* libffi:bryce2001-04-121-7/+54
| | | | | | | | | | | | | | | | | | * Makefile.am: Make a libtool convenience library. * Makefile.in: Rebuilt. libjava: * java/io/File.java (normalizePath): New private method. (File (String)): Use normalizePath(). (File (String, String)): Likewise. * Makefile.am (libffi_files): Removed. (libgcj.la): Link libffi as a convenience library instead of refering to its object files directly. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41298 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natSystem.cc (init_properties): Revert yesterday's changesbryce2001-04-021-15/+8
| | | | | | | | | | | to "file.separator", "path.separator", and "java.io.tmpdir" property initialization. * java/io/File.java: Likewise. * java/io/natFile.cc (init_native): Likewise. * java/io/natFileWin32.cc (init_native): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40994 138bc75d-0d04-0410-961f-82ee72b054a4
* 1.3-Compliant Implementation of java.io.File.bryce2001-04-011-120/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/lang/natSystem.cc (init_properties): Get "file.separator", "path.separator", and "java.io.tmpdir" from the File class, instead of setting them explicitly. * java/io/File.java: Do not canonicalize paths for security manager checks. Call init_native() from static initializer. Do not pass path argument to native methods. New native method declarations. Some security manager checks moved to checkWrite(). (equals): Check file system case sensitivity and act appropriatly. (hashCode): Likewise. (isHidden): New method implemented. (performList): Changed prototype. Now takes a class argument specifying the class of the returned array: Strings or File objects. Also added FileFilter argument. (listFiles): New variants with "File" return type implemented. (createTempFile): Use createNewFile(). Use maxPathLen. (setReadOnly): New method implemented. (listRoots): Likewise. (compareTo): Likewise. (setLastModified): Likewise. (checkWrite): New method. (setPath): Removed. * java/io/natFile.cc: Various functions no longer take canonical path argument. (stat): Handle ISHIDDEN query. (isAbsolute): Remove WIN32 cruft. (performList): New arguments. Handle returning either File[] or String[] arrays. Check with FileFilter or FilenameFilter arguments as appropriate. Use an ArrayList, not a Vector, for the temporary list. (performSetReadOnly): New method implemented. (performListRoots): Likewise. (performSetLastModified): Likewise. (performCreate): Likewise. (init_native): New initialization function. * java/io/natFileWin32.cc: Various functions no longer take canonical path argument. (stat): Add FIXME about ISHIDDEN query. (performList): New arguments. Handle returning either File[] or String[] arrays. Check with FileFilter or FilenameFilter arguments as appropriate. Use an ArrayList, not a Vector, for the temporary list. (performSetReadOnly): New. Stubbed. (performListRoots): Likewise. (performSetLastModified): Likewise. (performCreate): Likewise. (init_native) New initialization function. * configure.in: Check for utime() and chmod(). * configure: Rebuilt. * include/config.h.in: Rebuilt. Resolves PR libgcj/1759. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40985 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-02-091-0/+16
| | | | | | | | | | | | * java/io/File.java (java.net): Imported. (getAbsoluteFile): Added. (getCanonicalPath): Likewise. (toURL): Likewise. (http://gcc.gnu.org/ml/java-patches/2001-q1/msg00208.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39562 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.warrenl2000-09-081-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/beans/PropertyVetoException.java (serialVersionUID): Added. * java/io/File.java (writeObject): Added. (readObject): Added. (serialVersionUID): Added. * java/io/ObjectOutputStream.java (writeObject): Initialized fieldsAlreadyWritten before recursion rather than after. * java/io/ObjectStreamClass.java (serialVersionUID): Added. * java/io/OptionalDataException.java (serialVersionUID): Added. (OptionalDataException): Made package private. * java/io/SyncFailedException.java (SyncFailedException): Removed default constructor to match spec. * java/lang/Boolean.java (serialVersionUID): Added. * java/lang/Byte.java (serialVersionUID): Added. * java/lang/Character.java (serialVersionUID): Added. * java/lang/Double.java (serialVersionUID): Added. * java/lang/Float.java (serialVersionUID): Added. * java/lang/Integer.java (serialVersionUID): Added. * java/lang/Long.java (serialVersionUID): Added. * java/lang/Number.java (serialVersionUID): Added. * java/lang/Short.java (serialVersionUID): Added. * java/lang/String.java (serialVersionUID): Added. * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor to match spec. * java/lang/reflect/InvocationTargetException.java (serialVersionUID): Added. * java/net/URL.java (handler): Made transient. (hashCode): Added field for serialization, per spec. and use cached value if available. (serialVersionUID): Added. (URL): Initialize hashCode. (set): Adjust hashCode. (readObject): New Method to initialize the protocol handler when deserializing. (writeObject): New method. * java/text/BreakIterator.java: Removed 'implements Serializable'. * java/text/Collator.java: Removed 'implements Serializable'. * java/util/GregorianCalendar.java (serialVersionUID): Added. * java/util/Properties.java (serialVersionUID): Added. * java/util/Random.java (serialVersionUID): Added. (seed): Made private. (nextNextGaussian): Made private. (haveNextNextGaussian): Made private. * java/util/Stack.java (serialVersionUID): Added. * java/util/TimeZone.java (serialVersionUID): Added. * java/util/Vector.java (serialVersionUID): Added. Serialization mods. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36272 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR java.io/203:green2000-09-041-14/+41
| | | | | | | | | | * java/io/File.java (createTempFile): Obey directory argument. Use java.io.tmpdir if needed. Don't leave FileDescripators open. * java/lang/natSystem.cc (init_properties): Use TMPDIR environment variable to set java.io.tmpdir on non-WIN32 systems. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36143 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/File.java (deleteOnExit): New method.green2000-09-041-1/+15
| | | | | | | | | | | * gnu/gcj/runtime/FileDeleter.java: New class. * java/lang/natRuntime.cc (exit): Call FileDeleter.deleteOnExitNow() * Makefile.am: Add FileDeleter.java. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36141 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/File.java (getParentFile): New method, from Classpathtromey2000-07-201-0/+6
| | | | | | | via Oskar Liljeblad. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35149 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-06-27 Andrew Haley <aph@cygnus.com>aph2000-06-281-1/+3
| | | | | | | | | | * java/io/File.java (createTempFile): Close the FileDescriptor used to create a temp file. Fixes some of PR 203. * java/io/natFileDescriptorPosix.cc (open): Call garbage collection if we run out of file handles. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34755 138bc75d-0d04-0410-961f-82ee72b054a4
* * All files: Updated copyright information.tromey2000-03-071-1/+1
| | | | | | | | | * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32387 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-02-271-1/+1
| | | | | | | | * java/io/File.java (File(String, String)): For dirPath, treat an empty String the same as `null'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32217 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/File.java (createTempFile): Use low bits from counter,tromey2000-02-121-1/+2
| | | | | | | not high bits. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31946 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/File.java (nextValue): Now synchronized.tromey2000-02-111-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31925 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.tromey2000-02-111-1/+68
| | | | | | | | | | | | * java/io/FileDescriptor.java (EXCL): New static field. * java/io/File.java (tmpdir): New static field. (createTempFile): New method. (nextValue): New method. * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir property. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31922 138bc75d-0d04-0410-961f-82ee72b054a4
* * All files: Updated copyright to reflect Cygnus purchase.tromey2000-01-191-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31504 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>bryce1999-07-261-3/+1
| | | | | | | | | | * java/lang/natString.cc (substring): optimize where substring is entire String. * java/io/File.java (getName): don't return separator with file name. * java/io/natFile.cc (attr): fix overflow. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28246 138bc75d-0d04-0410-961f-82ee72b054a4
* hbothner1999-05-121-4/+8
| | | | | | | * java/io/File.java (mkdirs): Handle a null parent directory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26903 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial revisiontromey1999-04-071-0/+288
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26263 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud