summaryrefslogtreecommitdiff
path: root/libjava/java/io
Commit message (Collapse)AuthorAgeFilesLines
* BufferedWriter.java: Reordered variables to be at top of the class.Michael Koch2004-04-201-30/+30
| | | | | | | | | | 2004-04-20 Michael Koch <konqueror@gmx.de> * java/io/BufferedWriter.java: Reordered variables to be at top of the class. (localFlush): Removed redundant final keyword. From-SVN: r80916
* [multiple changes]Michael Koch2004-04-202-10/+22
| | | | | | | | | | | | | | | | 2004-04-20 Jeroen Frijters <jeroen@frijters.net> * java/io/FileDescriptor.java: (FileDescriptor) Added public constructor. (valid) Added null check. 2004-04-20 Guilhem Lavaux <guilhem@kaffe.org> Reported by Nektarios Papadopoulos <npapadop@inaccessnetworks.com> * java/io/FileOutputStream.java (FileOutputStream) Reorganized constructors. Constructors now check whether the given path is directory. From-SVN: r80901
* BufferedWriter.java, [...]: Fixed javadocs all over, rename arguments to ↵Michael Koch2004-04-2021-169/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | match javadocs, fixed coding style. 2004-04-20 Michael Koch <konqueror@gmx.de> * 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. From-SVN: r80897
* class.c (make_class_data): Add new field aux_info.Bryce McKinlay2004-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-19 Bryce McKinlay <mckinlay@redhat.com> * class.c (make_class_data): Add new field aux_info. * decl.c (java_init_decl_processing): Push type and decl for `aux_info'. 2004-04-19 Bryce McKinlay <mckinlay@redhat.com> * gcj/cni.h (JvAllocObject): Remove these obsolete, undocumented CNI calls. * include/java-interp.h (_Jv_InterpClass): No longer extends java.lang.Class. * java/lang/Class.h (Class): Add new field `aux_info'. * boehm.cc (_Jv_MarkObj): Update java.lang.Class marking. * defineclass.cc: Remove Class<->_Jv_InterpClass casts. Use Class->aux_info instead. * jni.cc (_Jv_JNI_AllocObject): Use _Jv_AllocObject. * resolve.cc: Remove Class<->_Jv_InterpClass casts. Use Class->aux_info instead. * java/io/natObjectInputStream.cc (allocateObject): Use _Jv_AllocObject. * java/lang/natClass.cc (newInstance): Likewise. * java/lang/natClassLoader.cc (_Jv_NewClass): Likewise. * java/lang/natObject.cc (clone): Likewise. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise. * java/lang/natVMClassLoader.cc (defineClass): Don't use JvAllocObject. Allocate klass->aux_info here for interpreted class. From-SVN: r80875
* BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc happy.Mark Wielaard2004-03-191-1/+1
| | | | | | | | | 2004-03-19 Mark Wielaard <mark@klomp.org> * java/io/BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc happy. From-SVN: r79704
* Reported by Stephen CrawleyMark Wielaard2004-03-191-2/+2
| | | | | | | | | | 2004-03-19 Mark Wielaard <mark@klomp.org> Reported by Stephen Crawley * java/io/FilePermission.java (implies): Use String.length() -1 to access last char of String. From-SVN: r79701
* BufferedInputStream.java (marktarget): New field for max mark limit.Guilhem Lavaux2004-03-111-5/+23
| | | | | | | | | | | | | | | 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org> * java/io/BufferedInputStream.java (marktarget): New field for max mark limit. (CHUNKSIZE): New constant for incremental mark buffer allocation. (mark): Use new fields. (read): Likewise. (read(byte[],int,int)): Likewise. (skip): Likewise. (refill): Likewise. From-SVN: r79326
* FileDescriptor.java: Implement on top of FileChannel.Per Bothner2004-02-297-1184/+106
| | | | | | | | | | | | | | | | | | | | * java/io/FileDescriptor.java: Implement on top of FileChannel. Remove native methods. * java/io/natFileDescriptorEcos.cc: Remove file. * java/io/natFileDescriptorPosix.cc: Remove file. * java/io/natFileDescriptorWin32.cc: Remove file. * java/io/FileInputStream.java (ch): Change type to FileChannelImpl. (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor. (<init>(FileChannelImpl)): New package-private constructor. (<init>(FileDescriptor)): Extract FileChannelImpl from arg. (available, close, read, skip): Implement using FileChannelImpl. (getFD): Allocate FileDescriptor if needed. (getChannel): Is now trivial. * java/io/FileOutputStream.java: Corresponding changes. * java/io/RandomAccessFile.java: Corresponding changes. From-SVN: r78661
* ObjectInputStream.java: Compile fix, damn I commited the wrong code.Michael Koch2004-02-281-0/+1
| | | | | | | | | 2004-02-28 Michael Koch <konqueror@gmx.de> * java/io/ObjectInputStream.java: Compile fix, damn I commited the wrong code. From-SVN: r78629
* 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2004-02-283-173/+304
| | | | | | | | | | | | | | | * java/io/ObjectInputStream.java (readClassDescriptor): Keep elements of the mapping non null. (checkTypeConsistency): New method. (readFields): Fixed main loop and base logic. Small reindentation. * java/io/ObjectStreamField.java (lookupField): New method to update the field reference. (checkFieldType): New method. * java/io/ObjectStreamClass.java (setClass, setFields): Call lookupField when building the field database. Check the real field type. From-SVN: r78627
* ObjectInputStream.java (readClassDescriptor): Avoid the overflow of ↵Ito Kazumitsu2004-02-151-2/+14
| | | | | | | | | | | fieldmapping. 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org> * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the overflow of fieldmapping. From-SVN: r77843
* 2004-02-06 Michael Koch <konqueror@gmx.de>Michael Koch2004-02-061-1/+5
| | | | | | | * java/io/ObjectInputStream.java (currentClassLoader): Reverted to old version of this method. From-SVN: r77397
* ObjectInputStream.java: Made all calls to dumpElement[ln] conditional on ↵Jeroen Frijters2004-02-063-595/+458
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dump flag. 2004-02-06 Jeroen Frijters <jeroen@frijters.net> * java/io/ObjectInputStream.java: Made all calls to dumpElement[ln] conditional on dump flag. (readObject): Changed to use cached info from ObjectStreamClass. (readClassDescriptor): Cache more information in ObjectStreamClass. (processResolution, readFields): Use cached info from ObjectStreamClass. (newObject): Throw exception instead of returning null for failure. (getField, getMethod, callReadMethod, setBooleanField, setByteField, setCharField, setDoubleField, setFloatField, setIntField, setLongField, setShortField, setObjectField, readObjectParams): Removed. (dumpElement, dumpElementln): Removed dump flag condition check. * java/io/ObjectStreamField.java (hasReadMethod): Removed. (setClass): Added call to cacheMethods() (findMethod): New method. (cacheMethods): New method. (ObjectStreamClass): Added call to cacheMethods(). (setFields): Cache fields. (getClassUID): Use AccessController.doPrivileged to invoke setAccessible. (readObjectMethod, readResolveMethod, realClassIsSerializable, realClassIsExternalizable, fieldMapping, firstNonSerializableParent): New fields. * java/io/ObjectStreamField.java (ObjectStreamField): New constructor. (ObjectStreamField): Removed FIXME workaround. (getTypeString, isPrimitive): Made safe for cases where type == null. (setBooleanField, setByteField, setCharField, setShortField, setIntField, setLongField, setFloatField, setDoubleField, setObjectField): New methods. From-SVN: r77395
* BufferedReader.java (sbuf): New field.Mohan Embar2004-01-302-25/+27
| | | | | | | | | | | | | | | | * java/io/BufferedReader.java (sbuf): New field. (readLine): Use String.valueOf instead of new String() as per Per Bothner's suggestion. Use instance sbuf field instead of a local StringBuffer instance. * java/io/InputStreamReader.java (read(char[],int,int)): Pass the caller's buffer to refill(). (read(void)): Pass our internal work buffer to refill if our input queue is empty. (refill): Changed return type to int. Use the specified buffer instead of our work buffer as per Bryce McKinlay's suggestion. Return the number of characters read or -1 for EOF. From-SVN: r76927
* 2004-01-23 Michael Koch <konqueror@gmx.de>Michael Koch2004-01-234-0/+91
| | | | | | | | | | | | | | | | | | | | | * java/io/FileDescriptor.java (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorEcos.cc (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorPosix.cc (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorWin32.cc (lock): New method. (tryLock): New method. (unlock): New method. From-SVN: r76421
* 2004-01-23 Michael Koch <konqueror@gmx.de>Michael Koch2004-01-231-28/+79
| | | | | | | | | | | | | | | | | | * java/io/FileDescriptor.java (sync): Moved around, added javadoc. (valid): Likewise. (open): Likewise. (write): Likewise. (close): Likewise. (setLength): Likewise. (seek): Likewise. (getLength): Likewise. (getFilePointer): Likewise. (read): Likewise. (available): Likewise. (finalize): Likewise. From-SVN: r76419
* 2004-01-23 Michael Koch <konqueror@gmx.de>Michael Koch2004-01-231-13/+44
| | | | | | | | | * java/io/FileDescriptor.java (in, out, err): Added javadoc. (static): Merged loading code. (fd, position): Moved around. From-SVN: r76411
* FileDescriptor.java: Merged copyright with classpath to start merging this ↵Michael Koch2004-01-231-20/+47
| | | | | | | | | | | class. 2004-01-23 Michael Koch <konqueror@gmx.de> * java/io/FileDescriptor.java: Merged copyright with classpath to start merging this class. From-SVN: r76408
* 2004-01-09 Michael Koch <konqueror@gmx.de>Michael Koch2004-01-091-2/+0
| | | | | | | | | | | | | | | | | | | | | | | * java/awt/geom/PathIterator.java (WIND_EVEN_ODD): Removed redundant modifiers. (WIND_NON_ZERO): Likewise. (SEG_MOVETO): Likewise. (SEG_LINETO): Likewise. (SEG_QUADTO): Likewise. (SEG_CUBICTO): Likewise. (SEG_CLOSE): Likewise. * java/awt/image/SinglePixelPackedSampleModel.java: Removed redundant semicolon. * java/io/ObjectInputStream.java (inputGetObjectStreamClasses): Removed unused variable "ret_val". * java/util/logging/Filter.java (isLoggable): Removed redundant modifier. * java/util/logging/LogManager.java: Removed redundant semicolon. * java/util/logging/XMLFormatter.java (format): Removed unused variable "key". From-SVN: r75570
* 2003-12-31 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2003-12-311-138/+238
| | | | | | | | | | | | | | | | | | | | | | | | * java/io/ObjectOutputStream.java (putFields): Reindented. Fixed behaviour: currentPutField should be null before calling this method. (writeFields): Likewise. (markFieldsWritten): Fixed the exception message. (callWriteMethod): Ensure currentPutField is null. (getBooleanField): Translate IllegalArgumentException into InvalidClassException. (getByteField): Likewise. (getCharField): Likewise. (getDoubleField): Likewise. (getFloatField): Likewise. (getIntField): Likewise. (getLongField): Likewise. (getShortField): Likewise. (getObjectField): Check the type code before returning the object. (getField): Translate NoSuchFieldException into InvalidClassException directly. From-SVN: r75265
* ObjectInputStream.java, [...]: Reformated, no functional code changes.Michael Koch2003-12-303-1126/+1144
| | | | | | | | | | | 2003-12-30 Michael Koch <konqueror@gmx.de> * java/io/ObjectInputStream.java, java/io/ObjectOutputStream.java, java/io/ObjectStreamClass.java: Reformated, no functional code changes. From-SVN: r75236
* 2003-12-30 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2003-12-301-56/+64
| | | | | | | | | | | | * java/io/LineNumberReader.java (countLines): Removed. (fill): New private method. (mark): Changed logic to use and matchedNewLine. (reset): Likewise. (read): Likewise. (skipRedundantLF): Likewise. From-SVN: r75232
* 2003-12-28 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2003-12-283-8/+29
| | | | | | | | | | | | | | | * java/io/LineNumberReader.java (mark): Improved error checking. (read): Likewise. (skip): Likewise. Skip is now really eating the specified number of characters. * java/io/CharArrayReader.java (read): It should throw IndexOutOfBoundsException and not ArrayIndexOutOfBoundsException (see mauve). * java/io/BufferedReader.java (readLine): Make readLine() really block until either EOF is reached or a true error happens. From-SVN: r75180
* BufferedReader.java (BufferedReader): Throw IllegalArgumentException when ↵Guilhem Lavaux2003-12-261-3/+16
| | | | | | | | | | | | | | | | | | | size <= 0. 2003-12-26 Guilhem Lavaux <guilhem@kaffe.org> Mark Wielaard <mark@klomp.org> * java/io/BufferedReader.java (BufferedReader): Throw IllegalArgumentException when size <= 0. (mark): Document and better exception message for negative readLimit IllegalArgumentException. (read(char[],int,int)): Throw IndexOutOfBoundsException if offset and count are not valid regarding buf. (skip): Throw IllegalArgumentException when count is negative. Co-Authored-By: Mark Wielaard <mark@klomp.org> From-SVN: r75041
* 2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2003-12-261-6/+9
| | | | | | | | * java/io/FileInputStream.java (FileInputStream(String)): Call FileInputStream(File). (FileInputStream(File)): Check whether the argument is a directory. From-SVN: r75039
* 2003-12-23 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2003-12-233-45/+344
| | | | | | | | | | | | | | | | | * java/io/ObjectInputStream.java (getField): Handle transient and non persistent fields. (readClassDescriptor): Better error handling, use the right class loader. (readFields): Fields marked as not present in the stream or not to be set are not read and set. * java/io/ObjectInputStream.java (readFields): Changed implementation of GetField. (readClassDescriptor): Documented. * java/io/ObjectOutputStream.java (writeClassDescriptor): Added condition when to write class super class information. From-SVN: r74985
* ObjectStreamField.java (isUnshared): Added documentation.Michael Koch2003-12-201-0/+6
| | | | | | | | 2003-12-20 Michael Koch <konqueror@gmx.de> * java/io/ObjectStreamField.java (isUnshared): Added documentation. From-SVN: r74894
* i2003-12-16 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2003-12-162-36/+187
| | | | | | | | | | | | | | | | * java/io/ObjectInputStream.java (lookupClass): New method. (currentLoader): New method. (inputGetObjectStreamClasses): New method. (assignNewHandle): Documented. (currentClassLoader): Documented. * java/io/ObjectStreamClass.java (setClass): Changed API. Better handling of the imported/exported fields. (getSerialPersistentFields): Make it throw previously caught exceptions so they can handled in setClass. From-SVN: r74693
* ObjectStreamField.java: A few methods were added in prevision of the ↵Guilhem Lavaux2003-12-161-6/+159
| | | | | | | | | | | | | | upcoming upgrade of the... 2003-12-16 Guilhem Lavaux <guilhem@kaffe.org> * java/io/ObjectStreamField.java: A few methods were added in prevision of the upcoming upgrade of the serialization code. This also adds some missing documentation. (ObjectStreamField): We should throw a NullPointerException when 'name' is null. From-SVN: r74690
* ObjectInputStream.java (setBooleanField): Throw an InvalidClassException if ↵Guilhem Lavaux2003-12-161-17/+152
| | | | | | | | | | | | | | | | | | | | the field hasn't the required type... 2003-12-16 Guilhem Lavaux <guilhem@kaffe.org> * java/io/ObjectInputStream.java (setBooleanField): Throw an InvalidClassException if the field hasn't the required type, documentation added. (setByteField) Likewise. (setCharField) Likewise. (setDoubleField) Likewise. (setFloatField) Likewise. (setIntField) Likewise. (setShortField) Likewise. (setLongField) Likewise. (setObjectField) Likewise. From-SVN: r74688
* re PR libgcj/13176 (Revert PrintStream changes)Michael Koch2003-12-081-53/+144
| | | | | | | | | | | | | | | | | | | | | | 2003-12-08 Michael Koch <konqueror@gmx.de> Fix for PR libgcj/13176. * java/io/PrintStream.java: Partly revert my previous patches to get (line_separator): New field. (converter): New field. (work): New field. (work_bytes): New field. (pw): Removed. (closed): Removed. (PrintStrean): Initialize converter and not pw. (checkError): Flush always, pw doesn't exist anymore. (close): Close underlying out stream. (print): New method. (writeChars): New method. (print): Use new internal print method. (println): Likewise. From-SVN: r74419
* FilePermission.java: Import used classes explicitely.Michael Koch2003-12-041-2/+1
| | | | | | | | | 2003-12-04 Michael Koch <konqueror@gmx.de> * java/io/FilePermission.java: Import used classes explicitely. From-SVN: r74293
* configure.in: Added new MinGW-specific configure flag --with-win32-nlsapi.Mohan Embar2003-12-022-36/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Added new MinGW-specific configure flag --with-win32-nlsapi. Added new AC_DEFINE MINGW_LIBGCJ_UNICODE. Add -lunicows to MinGW SYSTEMSPEC if --with-win32-nlsapi is set to unicows. * configure: Rebuilt. * include/config.h.in: Rebuilt. * win32.cc (_Jv_Win32NewString): Implemented. (nativeToUnicode): New helper function defined only for non-UNICODE builds. (unicodeToNative): Likewise. (_Jv_Win32TempString): Implemented. (lots): Refactored using tchar.h macros. (WSAEventWrapper): Use _Jv_Win32NewString. (_Jv_platform_initialize): Use GetModuleFileNameA instead of GetModuleFileName. (_Jv_platform_initProperties): Use _Jv_Win32NewString. Use temporary stack buffer instead of a heap buffer. * include/win32.h Added defines for UNICODE and _UNICODE if MINGW_LIBGCJ_UNICODE is defined; added tchar.h include. (_Jv_Win32TempString): Declared new helper class. (JV_TEMP_STRING_WIN32): New helper macro. (_Jv_Win32NewString): Declared new helper method. * java/io/natFileDescriptorWin32.cc (open): Use JV_TEMP_STRING_WIN32 instead of JV_TEMP_UTF_STRING. (write): Reformatted slightly. * java/io/natFileWin32.cc (lots): Use tchar.h macros; use JV_TEMP_STRING_WIN32 instead of JV_TEMP_UTF_STRING. (getCanonicalPath): Use _Jv_Win32NewString instead of JvNewStringUTF. (performList): Likewise. * java/lang/natWin32Process.cc (ChildProcessPipe): Use tchar.h macros. (startProcess): Use tchar.h macros, JV_TEMP_STRING_WIN32, and UNICODE environment flag for CreateProcess. * java/net/natNetworkInterfaceWin32.cc (winsock2GetRealNetworkInterfaces): Use tchar.h macros and _Jv_Win32NewString. From-SVN: r74201
* re PR libgcj/13062 (StreamTokenizer ignores commentChar)Tom Tromey2003-11-161-4/+18
| | | | | | | | | PR libgcj/13062: * java/io/StreamTokenizer.java (commentChar): Clear other attributes for character. (quoteChar): Likewise. From-SVN: r73653
* ByteArrayOutputStream.java (resize): Fix off-by-one error.Jeff Sturm2003-11-081-1/+1
| | | | | | | * java/io/ByteArrayOutputStream.java (resize): Fix off-by-one error. From-SVN: r73359
* win32.h (_Jv_platform_close_on_exec): Changed signature and declared extern.Mohan Embar2003-11-071-1/+7
| | | | | | | | | | | | | | | | | * include/win32.h (_Jv_platform_close_on_exec): Changed signature and declared extern. * win32.cc (_Jv_platform_close_on_exec): Implemented. * gnu/java/net/natPlainDatagramSocketImplWin32.cc (create): Use new signature of _Jv_platform_close_on_exec. * gnu/java/net/natPlainSocketImplWin32.cc (create): Eliminated a few typecasts Use new signature of _Jv_platform_close_on_exec. (accept): Eliminated a few typecasts Use new signature of _Jv_platform_close_on_exec. * java/io/natFileDescriptorWin32.cc (open): Use _Jv_platform_close_on_exec. From-SVN: r73325
* re PR libgcj/6652 (new java.io.File("").getCanonicalFile() throws exception)Mohan Embar2003-10-311-1/+6
| | | | | | | PR libgcj/6652: * java/io/natFileWin32.cc (getCanonicalPath): Treat "" like ".". From-SVN: r73115
* 2003-10-22 Michael Koch <konqueror@gmx.de>Michael Koch2003-10-221-5/+3
| | | | | | | | * java/io/File.java (equals): Removed redundant obj == null check. (createTempFile): Merged comments from classpath. From-SVN: r72790
* File.java: Reformated.Michael Koch2003-10-131-93/+98
| | | | | | | | | 2003-10-13 Michael Koch <konqueror@gmx.de> * java/io/File.java: Reformated. (equals): Check for obj == null. From-SVN: r72421
* Externalizable.java, [...]: Removed redundant modifiers.Michael Koch2003-10-119-68/+61
| | | | | | | | | | | | | | | | | 2003-10-11 Michael Koch <konqueror@gmx.de> * java/io/Externalizable.java, java/io/FileFilter.java, java/io/FilePermission.java, java/io/ObjectInput.java, java/io/ObjectInputValidation.java, java/io/ObjectOutput.java, java/io/ObjectStreamClass.java, java/io/ObjectStreamConstants.java, java/io/Serializable.java: Removed redundant modifiers. From-SVN: r72352
* [multiple changes]Michael Koch2003-09-261-138/+136
| | | | | | | | | | | | | | | 2003-09-26 Sascha Brawer <brawer@dandelis.ch> * java/awt/image/SinglePixelPackedSampleModel.java (createDataBuffer): Save space for some pixels at the buffer end. Added Javadoc. 2003-09-26 Tom Tromey <tromey@redhat.com> * java/io/ObjectOutputStream.java (writeFields): Fixed indentation. (putFields): Likewise. From-SVN: r71829
* ObjectOutputStream.java: Allow putFields be called more than once.Ingo Proetel2003-09-251-13/+19
| | | | | | | | | 2003-09-25 Ingo Proetel <proetel@aicas.com> * java/io/ObjectOutputStream.java: Allow putFields be called more than once. From-SVN: r71791
* Reported by Guilhem Lavaux and Julian DolbyMark Wielaard2003-09-181-1/+1
| | | | | | | | | | 2003-09-18 Mark Wielaard <mark@klomp.org> Reported by Guilhem Lavaux and Julian Dolby * java/io/ObjectStreamClass.java (getSerialPersistentFields): Get the field "serialPersistentFields", not "getSerialPersistentFields". From-SVN: r71515
* LineNumberReader (read): Don't reset pos & limit when markPos is 0.David P Grove2003-09-181-1/+1
| | | | | | | | | 2003-09-18 David P Grove <groved@us.ibm.com> * java/io/LineNumberReader (read): Don't reset pos & limit when markPos is 0. From-SVN: r71507
* URLStreamHandler.java (parseURL): If original file ends with "/", so must ↵Tom Tromey2003-09-121-2/+3
| | | | | | | | | | | canonical result. * java/net/URLStreamHandler.java (parseURL): If original file ends with "/", so must canonical result. * java/io/natFilePosix.cc (getCanonicalPath): Clean up snafus with nul-termination and finding previous "/". From-SVN: r71327
* natFilePosix.cc (getCanonicalPath): Handle case where file does not exist.Tom Tromey2003-09-111-1/+63
| | | | | | | * java/io/natFilePosix.cc (getCanonicalPath): Handle case where file does not exist. From-SVN: r71307
* win32.cc: fixed tab...Mohan Embar2003-08-292-143/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * win32.cc: fixed tab, indentation and whitespace inconsistencies removed jvm.h include added includes java/lang/UnsupportedOperationException.h, java/io/IOException.h, java/net/SocketException.h (WSAEventWrapper): class implementation (_Jv_WinStrError): implemented both overloads (_Jv_ThrowIOException): implemented both overloads (_Jv_ThrowSocketException): implemented both overloads (_Jv_select): implemented * include/win32.h: fixed tab, indentation and whitespace inconsistencies wrapped <windows.h> include with #define WIN32_LEAN_AND_MEAN added jvm.h include (WSAEventWrapper): added class declaration (_Jv_WinStrError): added both overload declarations (_Jv_ThrowIOException): added both overload declarations (_Jv_ThrowSocketException): added both overload declarations removed ENOTCONN, ECONNRESET and ENOPROTOOPT defines (_Jv_select): added declaration (_Jv_socket): removed (_Jv_connect): removed (_Jv_close): removed (_Jv_bind): removed (_Jv_accept): removed (_Jv_listen): removed (_Jv_write): removed (_Jv_read): removed * java/io/natFileDescriptorWin32.cc: fixed tab, indentation and whitespace inconsistencies replaced <windows.h> #include with <platform.h> removed jvm.h include (testCanUseGetHandleInfo): new function which tests whether Win32 GetHandleInformation() call can be used with console buffer handles (only supported on >=WinNT 5.0) (winerr): removed (superseded by _Jv_WinStrError in include/win32.h) (valid): rewrote implementation using GetHandleInformation() (sync): changed exception throwing to use error string and exception helper methods declared in include/win32.h (open): likewise (write): likewise (setLength): likewise (close): likewise (seek): likewise (getFilePointer): likewise (read): likewise * java/io/natFileWin32.cc: fixed tab, indentation and whitespace inconsistencies replaced <windows.h> #include with <platform.h> removed jvm.h include (_access): use JV_TEMP_UTF_STRING (_stat): likewise (performMkDir): use JV_TEMP_UTF_STRING (performRenameTo): likewise (performDelete): likewise (performCreate): likewise (performSetReadOnly): likewise (performSetLastModified): likewise * java/lang/natWin32Process.cc: fixed tab, indentation and whitespace inconsistencies replaced <windows.h> #include with <platform.h> removed includes gcj/cni.h, jvm.h (new_string): removed (startProcess): use JV_TEMP_UTF_STRING, changed exception throwing to use error string and exception helper methods declared in include/win32.h * java/net/natInetAddressWin32.cc: fixed tab, indentation and whitespace inconsistencies replaced <windows.h> #include with <platform.h> removed jvm.h include removed DISABLE_JAVA_NET conditional code removed POSIX conditional code not relevant to Win32 (aton): use JV_TEMP_UTF_STRING removed POSIX conditional code not relevant to Win32 (lookup): likewise (getLocalHostName): likewise * java/net/natNetworkInterfaceWin32.cc: fixed tab, indentation and whitespace inconsistencies removed unnecessary windows.h, winsock.h and gcj/cni.h includes removed DISABLE_JAVA_NET conditional code removed POSIX conditional code not relevant to Win32 (winsock2GetRealNetworkInterfaces): new function to compute network interfaces via Winsock2 API (determineGetRealNetworkInterfacesFN): new function for returning a function pointer to the function used to compute network interfaces. (getRealNetworkInterfaces): implemented * java/net/natPlainDatagramSocketImplWin32.cc: fixed tab, indentation and whitespace inconsistencies removed gcj/cni.h include removed DISABLE_JAVA_NET conditional code removed POSIX conditional code not relevant to Win32 changed net POSIXisms to Win32isms replaced _Jv socket-related calls with their real Win32 equivalents changed exception throwing to use error string and exception helper methods declared in include/win32.h (peekData): implemented timeout support (receive): likewise * java/net/natPlainSocketImplWin32.cc: fixed tab, indentation and whitespace inconsistencies removed gcj/cni.h and gcj/javaprims.h includes removed DISABLE_JAVA_NET conditional code removed POSIX conditional code not relevant to Win32 changed net POSIXisms to Win32isms replaced _Jv socket-related calls with their real Win32 equivalents changed exception throwing to use error string and exception helper methods declared in include/win32.h (throwConnectException): helper function for connect() (connect): implemented timeout support (accept): likewise (doRead): new helper function common to both read() method overloads, includes timeout support (read): implemented both overloads in terms of doRead() (available): implemented using ioctlsocket() From-SVN: r70904
* re PR libgcj/11575 ([win32] Problem with RandomAccessFile)Danny Smith2003-08-191-8/+13
| | | | | | | | | PR libgcj/11575 * java/io/natFileDescriptorWin32.cc (open): Set create flag to OPEN_AWAYS when READ & WRITE regardless of APPEND flag. Honor EXCL when openning with WRITE flag. From-SVN: r70565
* re PR libgcj/11778 (System.out PrintStream does too much buffering)Bryce McKinlay2003-08-101-17/+24
| | | | | | | | | | | * java/io/PrintStream.java (print): Always flush if auto_flush is set. Don't check for newline characters. (write (int)): Implement without using a temporary array. (write (byte[], int, int): Always flush if auto_flush is set. Don't check for newline characters. Fixes PR libgcj/11778. From-SVN: r70284
* [multiple changes]Andrew Haley2003-08-081-1/+1
| | | | | | | | | | | | | | | 2003-08-08 Andrew Haley <aph@redhat.com> * Makefile.am (AM_CXXFLAGS): Define BOOT_CLASS_PATH. * Makefile.in: Rebuild. * java/lang/natRuntime.cc (insertSystemProperties): Add "sun.boot.class.path". 2003-08-07 Andrew Haley <aph@redhat.com> * java/io/PrintStream.java: Don't crash on a null string. From-SVN: r70250