aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/io
AgeCommit message (Collapse)AuthorFilesLines
2004-04-20class.c (make_class_data): Add new field aux_info.Bryce McKinlay1-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
2004-03-19BufferedReader.java: Use &lt;=, not &lt;&eq; to make gjdoc happy.Mark Wielaard1-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
2004-03-19Reported by Stephen CrawleyMark Wielaard1-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
2004-03-11BufferedInputStream.java (marktarget): New field for max mark limit.Guilhem Lavaux1-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
2004-02-29FileDescriptor.java: Implement on top of FileChannel.Per Bothner7-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
2004-02-28ObjectInputStream.java: Compile fix, damn I commited the wrong code.Michael Koch1-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-282004-02-28 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux3-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
2004-02-15ObjectInputStream.java (readClassDescriptor): Avoid the overflow of ↵Ito Kazumitsu1-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-062004-02-06 Michael Koch <konqueror@gmx.de>Michael Koch1-1/+5
* java/io/ObjectInputStream.java (currentClassLoader): Reverted to old version of this method. From-SVN: r77397
2004-02-06ObjectInputStream.java: Made all calls to dumpElement[ln] conditional on ↵Jeroen Frijters3-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
2004-01-30BufferedReader.java (sbuf): New field.Mohan Embar2-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-232004-01-23 Michael Koch <konqueror@gmx.de>Michael Koch4-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-232004-01-23 Michael Koch <konqueror@gmx.de>Michael Koch1-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-232004-01-23 Michael Koch <konqueror@gmx.de>Michael Koch1-13/+44
* java/io/FileDescriptor.java (in, out, err): Added javadoc. (static): Merged loading code. (fd, position): Moved around. From-SVN: r76411
2004-01-23FileDescriptor.java: Merged copyright with classpath to start merging this ↵Michael Koch1-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-092004-01-09 Michael Koch <konqueror@gmx.de>Michael Koch1-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-312003-12-31 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux1-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
2003-12-30ObjectInputStream.java, [...]: Reformated, no functional code changes.Michael Koch3-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-302003-12-30 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux1-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-282003-12-28 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux3-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
2003-12-26BufferedReader.java (BufferedReader): Throw IllegalArgumentException when ↵Guilhem Lavaux1-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-262003-12-26 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux1-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-232003-12-23 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux3-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
2003-12-20ObjectStreamField.java (isUnshared): Added documentation.Michael Koch1-0/+6
2003-12-20 Michael Koch <konqueror@gmx.de> * java/io/ObjectStreamField.java (isUnshared): Added documentation. From-SVN: r74894
2003-12-16i2003-12-16 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2-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
2003-12-16ObjectStreamField.java: A few methods were added in prevision of the ↵Guilhem Lavaux1-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
2003-12-16ObjectInputStream.java (setBooleanField): Throw an InvalidClassException if ↵Guilhem Lavaux1-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
2003-12-08re PR libgcj/13176 (Revert PrintStream changes)Michael Koch1-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
2003-12-04FilePermission.java: Import used classes explicitely.Michael Koch1-2/+1
2003-12-04 Michael Koch <konqueror@gmx.de> * java/io/FilePermission.java: Import used classes explicitely. From-SVN: r74293
2003-12-02configure.in: Added new MinGW-specific configure flag --with-win32-nlsapi.Mohan Embar2-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
2003-11-16re PR libgcj/13062 (StreamTokenizer ignores commentChar)Tom Tromey1-4/+18
PR libgcj/13062: * java/io/StreamTokenizer.java (commentChar): Clear other attributes for character. (quoteChar): Likewise. From-SVN: r73653
2003-11-08ByteArrayOutputStream.java (resize): Fix off-by-one error.Jeff Sturm1-1/+1
* java/io/ByteArrayOutputStream.java (resize): Fix off-by-one error. From-SVN: r73359
2003-11-07win32.h (_Jv_platform_close_on_exec): Changed signature and declared extern.Mohan Embar1-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
2003-10-31re PR libgcj/6652 (new java.io.File("").getCanonicalFile() throws exception)Mohan Embar1-1/+6
PR libgcj/6652: * java/io/natFileWin32.cc (getCanonicalPath): Treat "" like ".". From-SVN: r73115
2003-10-222003-10-22 Michael Koch <konqueror@gmx.de>Michael Koch1-5/+3
* java/io/File.java (equals): Removed redundant obj == null check. (createTempFile): Merged comments from classpath. From-SVN: r72790
2003-10-13File.java: Reformated.Michael Koch1-93/+98
2003-10-13 Michael Koch <konqueror@gmx.de> * java/io/File.java: Reformated. (equals): Check for obj == null. From-SVN: r72421
2003-10-11Externalizable.java, [...]: Removed redundant modifiers.Michael Koch9-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
2003-09-26[multiple changes]Michael Koch1-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
2003-09-25ObjectOutputStream.java: Allow putFields be called more than once.Ingo Proetel1-13/+19
2003-09-25 Ingo Proetel <proetel@aicas.com> * java/io/ObjectOutputStream.java: Allow putFields be called more than once. From-SVN: r71791
2003-09-18Reported by Guilhem Lavaux and Julian DolbyMark Wielaard1-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
2003-09-18LineNumberReader (read): Don't reset pos & limit when markPos is 0.David P Grove1-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
2003-09-12URLStreamHandler.java (parseURL): If original file ends with "/", so must ↵Tom Tromey1-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
2003-09-11natFilePosix.cc (getCanonicalPath): Handle case where file does not exist.Tom Tromey1-1/+63
* java/io/natFilePosix.cc (getCanonicalPath): Handle case where file does not exist. From-SVN: r71307
2003-08-29win32.cc: fixed tab...Mohan Embar2-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
2003-08-19re PR libgcj/11575 ([win32] Problem with RandomAccessFile)Danny Smith1-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
2003-08-10re PR libgcj/11778 (System.out PrintStream does too much buffering)Bryce McKinlay1-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
2003-08-08[multiple changes]Andrew Haley1-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
2003-08-06FilePermission.java (equals): Use correct index for last character of path.Tom Tromey1-3/+5
* java/io/FilePermission.java (equals): Use correct index for last character of path. From-SVN: r70206
2003-08-01More for PR libgcj/11737:Tom Tromey2-23/+42
* java/io/ObjectInputStream.java (processResolution): Use getMethod. (getMethod): Make method accessible. (getField): Make field accessible. (setBooleanField): Don't call setAccessible here. (setByteField, setCharField, setDoubleField, setFloatField, setIntField, setLongField, setShortField, setObjectField): Likewise. (callReadMethod): Don't check whether method is null. Catch NoSuchMethodException. * java/io/ObjectOutputStream.java (callWriteMethod): Initialize cause on thrown exceptions. From-SVN: r70038
2003-08-01re PR libgcj/11737 (java.io.ObjectOutputStream.writeObject does not work ↵Tom Tromey1-13/+41
with HashMap) Fix for PR libgcj/11737: * java/io/ObjectOutputStream.java (getMethod): Make method accessible. (getField): Likewise. (writeObject): Use getMethod. Import PrivilegedAction and AccessController. (callWriteMethod): Don't check whether m is null. Catch NoSuchMethodException. From-SVN: r70035