aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
1999-05-26[multiple changes]Warren Levy13-88/+608
1999-05-26 Bryce McKinlay <bryce@albatross.co.nz> * java/net/DatagramSocket.java (getSoTimeout): Verify class type. * java/net/DatagramSocketImpl.java (getOption): Made abstract. (setOption): Made abstract. * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields to avoid cpp conflicts in native code. * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid cpp conflicts in native code. * java/net/ServerSocket.java (toString): Prepended "ServerSocket". * java/net/Socket.java (getLocalAddress): Implemented. (setTcpNoDelay): Implemented. (getTcpNoDelay): Implemented. (setSoLinger): Implemented. (getSoLinger): Implemented. (getSoTimeout): Verify class type. (setSendBufferSize): Implemented. (getSendBufferSize): Implemented. (setReceiveBufferSize): Implemented. (getReceiveBufferSize): Implemented. (toString): Prepended "Socket". * java/net/SocketImpl.java (toString): Rewritten. (getOption): Made abstract. (setOption): Made abstract. * java/net/natPlainSocketImpl.cc (connect): Set localport properly. (setOption): Implemented. (getOption): Implemented. 1999-05-26 Warren Levy <warrenl@cygnus.com> * java/net/DatagramSocket.java (DatagramSocket): Get local host address when null. Set SO_REUSEADDR for multicasts. (getSoTimeout): Implemented. (setSoTimeout): Implemented. * java/net/DatagramSocketImpl.java: Implement SocketOptions interface. * java/net/MulticastSocket.java (getInterface): Implemented. (setInterface): Implemented. (setTimeToLive): Check for invalid ttl. (joinGroup): Verify multicast address and security. (leaveGroup): Verify multicast address and security. (send): Implemented. * java/net/PlainDatagramSocketImpl.java (timeout): Added. (iface): Added. (ttl): Added. (setOption): Added. (getOption): Added. (mcastGrp): Added. (getTTL): Implemented as non-native. (setTTL): ditto. (join): ditto. (leave): ditto. * java/net/ServerSocket.java (setSoTimeout): Implemented. (getSoTimeout): Implemented. (setSocketFactory): Made synchronized. * java/net/Socket.java (setSoTimeout): Implemented. (getSoTimeout): Implemented. (close): Made synchronized. (setSocketImplFactory): Made synchronized. * java/net/SocketImpl.java: Implement SocketOptions interface. * java/net/natInetAddress.cc: Corrected module name at top of file. * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union. (bind): Added FIXME. (peek): Implemented. (setTTL): Removed. (getTTL): Removed. (join): Removed. (leave): Removed. (mcastGrp): Added. (setOption): Implemented for SO_REUSEADDR. (getOption): Implemented for SO_REUSEADDR. From-SVN: r27184
1999-05-24ResourceBundle.java (getBundle): Throw NullPointerException if baseName is null.Tom Tromey2-1/+9
* java/util/ResourceBundle.java (getBundle): Throw NullPointerException if baseName is null. From-SVN: r27126
1999-05-22ZipInputStream.java (fill): New method.Tom Tromey6-18/+68
* java/util/zip/ZipInputStream.java (fill): New method. (compressed_len): New instance variable. (getNextStream): Set it. (read): Reset inflater on EOF. Only read via `super' if entry is deflated. (skip): Only skip via `super' if entry is deflated. * java/util/zip/Deflater.java (last_input_count): Removed. * java/util/zip/natDeflater.cc (deflate): Return 0 if input array is length 0. (needsInput): Don't use last_input_count. (setInput): Don't set last_input_count. * java/util/zip/natInflater.cc (getRemaining): Return correct result. (inflate): Return 0 if input array is length 0. (setInput): Don't set last_input_count. * java/util/zip/Inflater.java (last_input_count): Removed. From-SVN: r27105
1999-05-21Makefile.in: Rebuilt.Tom Tromey6-35/+54
* Makefile.in: Rebuilt. * Makefile.am (INCLUDES): Added $(ZINCS). * configure: Rebuilt. * configure.in (ZINCS): New subst. From-SVN: r27083
1999-05-21sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added to signal options to ↵Andrew Haley2-2/+8
allow the same exceptions to be rethrown... 1999-05-21 Andrew Haley <aph@cygnus.com> * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added to signal options to allow the same exceptions to be rethrown later. From-SVN: r27079
1999-05-20prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW added.Andrew Haley6-8/+211
1999-05-20 Andrew Haley <aph@cygnus.com> * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW added. * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro. (INIT_FPE): Exception string made more informative. * include/sparc-signal.h (INIT_FPE): Exception string made more informative. * testsuite/libjava.lang/Divide_1.java: New file. * testsuite/libjava.lang/Divide_1.out: New file. From-SVN: r27056
1999-05-19aclocal.m4, configure: Rebuilt.Tom Tromey4-175/+183
* aclocal.m4, configure: Rebuilt. * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE. From-SVN: r27033
1999-05-19GZIPOutputStream.java (write(byte[])): New method.Tom Tromey2-0/+8
* java/util/zip/GZIPOutputStream.java (write(byte[])): New method. From-SVN: r27031
1999-05-19natInflater.cc (inflate): Cast `len' to unsigned.Tom Tromey3-3/+13
* java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned. Include <stdlib.h>. * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned. Include <stdlib.h>. (update): Fail in default case. Always initialize `strat'. From-SVN: r27028
1999-05-19* mauve-libgcj: Enable java.util.zip.Tom Tromey2-1/+4
From-SVN: r27025
1999-05-19Shazam.java: New file.Anthony Green3-0/+25
* libjava.lang/Shazam.java: New file. libjava.lang/Shazam.out: New file. From-SVN: r27022
1999-05-18Makefile.am (ordinary_java_source_files): Added DatagramPacket.java...Warren Levy10-5/+848
* Makefile.am (ordinary_java_source_files): Added DatagramPacket.java, DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java, PlainDatagramSocketImpl.java, and SocketOptions.java. (nat_source_files): Added natPlainDatagramSocketImpl.cc. * Makefile.in: Rebuilt. * java/net/DatagramPacket.java: New file. * java/net/DatagramSocket.java: New file. * java/net/DatagramSocketImpl.java: New file. * java/net/MulticastSocket.java: New file. * java/net/PlainDatagramSocketImpl.java: New file. * java/net/SocketOptions.java: New file. * java/net/natPlainDatagramSocketImpl.cc: New file. From-SVN: r26997
1999-05-18ZipOutputStream.java (level): Initial value is Deflater.DEFAULT_COMPRESSION.Tom Tromey19-72/+1547
* java/util/zip/ZipOutputStream.java (level): Initial value is Deflater.DEFAULT_COMPRESSION. (close): New method. (closeEntry): Likewise. (finish): Likewise. (put_version): Likewise. (write_entry): Likewise. (put2, put4): Now return `int'. (comment): Default to empty string. (bytes_written): New instance variable. (chain): Likewise. * java/util/zip/ZipEntry.java (setComment): Limit length of comment string. (setCrc): Check CRC validity. (setExtra): Check argument validity. (setMethod): Likewise. (setSize): Likewise. (ZipEntry): Likewise. * include/javaprims.h: Updated namespace declarations. * Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Mention new files. (nat_source_files): Likewise. * java/util/zip/ZipFile.java (readu2): Throw ZipException, not EOFException. (read4): Likewise. (getInputStream): Handle compressed entries. * java/util/zip/GZIPOutputStream.java: New file. * java/util/zip/GZIPInputStream.java: New file. * java/util/zip/DataFormatException.java: New file. * java/util/zip/CheckedInputStream.java: New file. * java/util/zip/CheckedOutputStream.java: New file. * java/util/zip/InflaterInputStream.java: Implemented. * java/util/zip/natInflater.cc: New file. * java/util/zip/Deflater.java: Implemented. * java/util/zip/natDeflater.cc: New file. * java/util/zip/DeflaterOutputStream.java: Implemented. * java/util/zip/ZipInputStream.java (closeZipEntry): Throw ZipException, not IOException. * java/util/zip/ZipFile.java (readDirectory): Throw ZipException, not IOException. From-SVN: r26996
1999-05-17natSystem.cc (init_properties): URL now points to sourceware.Tom Tromey2-1/+6
* java/lang/natSystem.cc (init_properties): URL now points to sourceware. From-SVN: r26974
1999-05-12Calendar.java (set): First call computeFields if needed.Per Bothner2-1/+2
x * java/util/Calendar.java (set): First call computeFields if needed. * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong. From-SVN: r26910
1999-05-12Calendar.java (set): First call computeFields if needed.Per Bothner1-0/+5
d * java/util/Calendar.java (set): First call computeFields if needed. * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong. From-SVN: r26909
1999-05-12configure: Rebuilt.Tom Tromey3-61/+220
* configure: Rebuilt. * configure.in: Look for -ldl when using the Boehm collector. Look for sched_yield in -lposix4. From-SVN: r26905
1999-05-12File.java (mkdirs): Handle a null parent directory.Per Bothner1-4/+8
h * java/io/File.java (mkdirs): Handle a null parent directory. From-SVN: r26903
1999-05-12File.java (mkdirs): Handle a null parent directory.Per Bothner1-0/+4
� * java/io/File.java (mkdirs): Handle a null parent directory. From-SVN: r26902
1999-05-12javaprims.h: Updated namespace declarations.Tom Tromey12-125/+555
* include/javaprims.h: Updated namespace declarations. * classes.pl (scan): Uniquify class list. * Makefile.in, configure: Rebuilt. * Makefile.am (nat_source_files): Added natConcreteProcess.cc. (built_java_source_files): New macro. (nat_headers): Added built_java_source_files. (javao_files): Likewise. (EXTRA_libgcj_la_SOURCES): Likewise. (libgcj.zip): Create built class files. ($(built_java_source_files:.java=.class)): New target. (jv_convert_LDADD): Added -L$(here)/.libs. * configure.in: Create links for ConcreteProcess.java and natConcreteProcess.cc. * java/lang/Runtime.java (exec): Create a ConcreteProcess. * java/lang/natEcosProcess.cc: New file. * java/lang/EcosProcess.java: New file. * java/lang/PosixProcess.java: New file. * java/lang/natPosixProcess.cc: New file. From-SVN: r26901
1999-05-12Invoke_2.java: New file.Andrew Haley3-0/+25
1999-05-12 Andrew Haley <aph@cygnus.com> * libjava.lang/Invoke_2.java: New file. From-SVN: r26900
1999-05-12PlainSocketImpl.java: Corrected copyright & header comments.Warren Levy4-4/+26
* java/net/PlainSocketImpl.java: Corrected copyright & header comments. * java/net/SocketImpl.java: Added marker for JDK 1.2 work. * java/net/natPlainSocketImpl.cc (bind): Throw BindException. (connect): Throw ConnectException. From-SVN: r26896
1999-05-11Makefile.in: Rebuilt.Tom Tromey4-4/+11
* Makefile.in: Rebuilt. * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec. * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after our libraries. From-SVN: r26889
1999-05-11Makefile.in: Rebuilt.Tom Tromey3-4/+7
* Makefile.in: Rebuilt. * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed and it causes problems with libtool. From-SVN: r26886
1999-05-11Makefile.in, configure: Rebuilt.Tom Tromey7-176/+700
* Makefile.in, configure: Rebuilt. * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs. (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc. (jv_convert_DEPENDENCIES): Added ZDEPS. * configure.in (GCSPEC): Added `-L' to point to boehm-gc build directory. (THREADSPEC): Added `-L' to point to qthreads build directory. (ZLIBS): New subst. (ZDEPS): New subst. * configure, Makefile.in: Rebuilt. * Makefile.am (toolexeclib_DATA): New macro. * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl. Recognize --with-system-zlib. (GCSPEC): New subst. (THREADSPEC): New subst. (SYSTEMSPEC): New subst. (ZLIBSPEC): New subst. * libgcj.spec.in: New file. From-SVN: r26885
1999-05-10InputStreamReader.java (read): If length is 0, return 0.Tom Tromey3-10/+31
* java/io/InputStreamReader.java (read): If length is 0, return 0. Reset `wpos' and `wcount' when buffer has been filled and emptied. * java/util/Properties.java (save): Removed `FIXME' comment. (load): Invalid characters in \u now treated as terminators. Make sure to append character resulting from `\' handling. Cast to `char' when appending to key or value. (skip_ws): Inverted test for whitespace. From-SVN: r26862
1999-05-10RandomAccessFile.java (RandomAccessFile): Removed `FIXME' comment.Tom Tromey2-5/+8
* java/io/RandomAccessFile.java (RandomAccessFile): Removed `FIXME' comment. (readLine): Likewise. (readFully): Implemented. From-SVN: r26859
1999-05-10* java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.Tom Tromey2-2/+3
From-SVN: r26858
1999-05-10natToolkit.cc: Added copyright header.Tom Tromey5-3/+25
* java/awt/natToolkit.cc: Added copyright header. * java/util/zip/InflaterInputStream.java: Added copyright header. * java/io/FilterWriter.java (FilterWriter): Removed `FIXME' comment. * java/io/SequenceInputStream.java (SequenceInputStream): Removed `FIXME' comment. (getNextStream): Likewise. From-SVN: r26857
1999-05-10ResourceBundle.java (partialGetBundle): Explicitly use locale.toString().Tom Tromey2-6/+7
* java/util/ResourceBundle.java (partialGetBundle): Explicitly use locale.toString(). (getBundle): Don't explicitly throw null pointer exception. From-SVN: r26856
1999-05-10RawData.java: Added copyright header.Tom Tromey3-8/+16
* gnu/gcj/RawData.java: Added copyright header. * include/jni.h (_Jv_va_list): Always define as va_list. From-SVN: r26855
1999-05-08DateFormat.java (computeInstance): Separate time and date styles.Anthony Green6-13/+148
* java/text/DateFormat.java (computeInstance): Separate time and date styles. (getDateTimeInstance): Ditto. (getDateTimeInstance(int,int)): New method. * Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Add new classes. * java/util/PropertyResourceBundle.java: New file. * gnu/gcj/util/EnumerationChain.java: New file. From-SVN: r26842
1999-05-07acconfig.h (GCJVERSION): New undef.Tom Tromey9-234/+1017
* acconfig.h (GCJVERSION): New undef. * java/lang/natSystem.cc (init_properties): Define java.version, java.class.version, os.name, os.arch, os.version. Include <sys/utsname.h> if required. * configure: Rebuilt. * configure.in: Compute and define GCJVERSION. * java/lang/natSystem.cc (default_file_encoding): Now static. From-SVN: r26830
1999-05-07* java/lang/natCharacter.cc (isLowerCase): Use a binary search.Tom Tromey2-3/+20
From-SVN: r26829
1999-05-07libtool-version: New file.Tom Tromey4-4/+71
* libtool-version: New file. * Makefile.in: Rebuilt. * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not -release. From-SVN: r26828
1999-05-07mauve-libgcj: Don't omit Utf8Encoding or StringTest.Tom Tromey2-7/+10
* mauve-libgcj: Don't omit Utf8Encoding or StringTest. Comment out FieldPosition, ParsePosition, and SimpleDateFormat again (oops). From-SVN: r26827
1999-05-07mauve-libgcj: Test more from java.text.Tom Tromey2-6/+8
* mauve-libgcj: Test more from java.text. Don't mention 1.1 tests (we pick those up already). From-SVN: r26826
1999-05-05UpdatePer Bothner2-0/+69
From-SVN: r26798
1999-05-05natSystem.cc (DEFAULT_FILE_ENCODING): New macro.Per Bothner1-1/+6
� * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro. (default_file_encoding): New global, initial value is above macro. (init_properties): Default file.encoding to default_file_encoding. From-SVN: r26797
1999-05-05*** empty log message ***Per Bothner1-0/+190
From-SVN: r26796
1999-05-05InflaterInputStream.java: New stub class.Per Bothner2-6/+152
� * InflaterInputStream.java: New stub class. * ZipInputStream.java: New class. Partly works. * ZipConstants.java: Add two (internal) constants. * ZipEntry.java (timeFromDOS): New static (non-public) method. * ZipFile.java: Make it mostly work, except for compression. * ZipOutputStream.java: Start implementation. From-SVN: r26795
1999-05-05InflaterInputStream.java: New stub class.Per Bothner1-0/+32
8 * InflaterInputStream.java: New stub class. * ZipInputStream.java: New class. Partly works. * ZipConstants.java: Add two (internal) constants. * ZipEntry.java (timeFromDOS): New static (non-public) method. * ZipFile.java: Make it mostly work, except for compression. * ZipOutputStream.java: Start implementation. From-SVN: r26794
1999-05-05InflaterInputStream.java: New stub class.Per Bothner1-1/+6
e * InflaterInputStream.java: New stub class. * ZipInputStream.java: New class. Partly works. * ZipConstants.java: Add two (internal) constants. * ZipEntry.java (timeFromDOS): New static (non-public) method. * ZipFile.java: Make it mostly work, except for compression. * ZipOutputStream.java: Start implementation. From-SVN: r26793
1999-05-05InflaterInputStream.java: New stub class.Per Bothner1-0/+12
u * InflaterInputStream.java: New stub class. * ZipInputStream.java: New class. Partly works. * ZipConstants.java: Add two (internal) constants. * ZipEntry.java (timeFromDOS): New static (non-public) method. * ZipFile.java: Make it mostly work, except for compression. * ZipOutputStream.java: Start implementation. From-SVN: r26792
1999-05-05* doc/cni.sgml: Document RawData.Per Bothner1-0/+92
From-SVN: r26791
1999-05-05Makefile.in: Rebuilt.Tom Tromey6-16/+94
* Makefile.in: Rebuilt. * Makefile.am (CLEANFILES): Don't mention $(class_files). (clean-local): New target * java/lang/natRuntime.cc: Include <ltdl.h> if required. (load, loadLibrary): Now native. (init): New method. * java/lang/Runtime.java (load, loadLibrary): Now native. (init): New native method. (Runtime): Use init. * prims.cc: Include <ltdl.h> if required. (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS. From-SVN: r26785
1999-05-05New class.Per Bothner1-0/+8
From-SVN: r26783
1999-05-05libjava.exp (libjava_arguments): Don't use -nodefaultlibs.Tom Tromey2-7/+12
* lib/libjava.exp (libjava_arguments): Don't use -nodefaultlibs. (libjava_find_lib): Add `-L' option to find the actual library. From-SVN: r26782
1999-05-05configure.in: Switch from irix threads to posix threadsGilles Zunino3-77/+86
1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr> * configure.in: Switch from irix threads to posix threads * configure: Regenerate. From-SVN: r26781
1999-05-05Add AWT stubs and incomplete classes.Per Bothner40-0/+1321
From-SVN: r26778