aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2003-02-152003-02-15 Jesse Rosenstock <jmr@ugcs.caltech.edu>Jesse Rosenstock3-2/+15
* java/nio/charset/Charset.java (isRegistered): Fixed method args and implementation. * java/nio/charset/CharsetEncoder.java (unmappableCharacterAction): New method. From-SVN: r62934
2003-02-152003-02-15 Michael Koch <konqueror@gmx.de>Michael Koch15-14/+462
* java/awt/CheckboxMenuItem.java (CheckBoxMenuItem): Dont implement Serializable. (getListeners): New method, (getItemListeners): New method. * java/awt/Choice.java (getListeners): New method, (getItemListeners): New method. * java/awt/Container.java (getListeners): Added exception documentation. (setFocusTraversalKeys): Throw exceptions, added documentattion. (getFocusTraversalKeys): Added documentation. (areFocusTraversalKeysSet): Added documentation. (applyComponentOrientation): Added documentation. * java/awt/ContainerOrderFocusTraversalPolicy.java (implicitDownCycleTraversal): Renamed from downCycle for serialization. (ContainerOrderFocusTraversalPolicy): Added documentation. (accept): Reformated. * java/awt/Dialog.java (Dialog): Dont implement Serializable. (Dialog): Added documentation. * java/awt/Font.java (Font): Dont use absolute class name. * java/awt/Frame.java (Frame): Font implement Serializable. * java/awt/List.java (getListeners): New method, (getActionListeners): New method. (getItemListeners): New method. * java/awt/Menu.java (countItems): New deprecated method. * java/awt/Scrollbar.java (getListeners): New method, (getAdjustmentListeners): New method, * java/awt/TextComponent.java (getListeners): New method, (getTextListeners): New method, * java/awt/TextField.java (getListeners): New method, (getActionListeners): New method. * java/awt/Window.java (windowFocusListener): New member variable. (windowStateListener): New member variable. (getWindowFocusListeners): New method. (getWindowStateListeners): New method. (addWindowFocusListener): New method. (addWindowStateListener): New method. (removeWindowFocusListener): New method. (removeWindowStateListener): New method. * java/awt/datatransfer/DataFlavor.java (isRepresentationClassByteBuffer): New method. (isRepresentationClassCharBuffer): New method. (isRepresentationClassReader): New method. From-SVN: r62933
2003-02-14libjava.exp (test_libjava_from_javac): Don't create .o files containing $ ↵Mark Wielaard2-1/+8
characters and always quote class files with... * lib/libjava.exp (test_libjava_from_javac): Don't create .o files containing $ characters and always quote class files with "'"s. From-SVN: r62919
2003-02-14mauve.exp (mauve_compute_uses): Add inner class object files by changing all ↵Mark Wielaard2-3/+17
occurances of $ to ^. * libjava.mauve/mauve.exp (mauve_compute_uses): Add inner class object files by changing all occurances of $ to ^. (test_mauve): Replace ^ with $ for class file names and quote them with "'"s. From-SVN: r62914
2003-02-14BigDecimal.java (BigDecimal(String)): Always set scale to zero when there is ↵Mark Wielaard2-2/+10
an exponent and the significant is zero. * java/math/BigDecimal.java (BigDecimal(String)): Always set scale to zero when there is an exponent and the significant is zero. (divide): Always set scale to newScale even in special ZERO case. From-SVN: r62908
2003-02-14System.java (properties): Use Properties.clone.Tom Tromey2-3/+14
* java/lang/System.java (properties): Use Properties.clone. (setProperties): Likewise. From-SVN: r62903
2003-02-14natServerSocketChannelImpl.cc: Removed.Michael Koch3-81/+8
2003-02-14 Michael Koch <konqueror@gmx.de> * gnu/java/nio/natServerSocketChannelImpl.cc: Removed. * gnu/java/nio/ServerSocketChannelImpl.java (SocketAccept): Removed. (accept): Commented out use of SocketAccept. From-SVN: r62898
2003-02-13verify.cc (state::seen_subrs): New field.Tom Tromey2-5/+69
* verify.cc (state::seen_subrs): New field. (state::state): Initialize it. (state::clean_subrs): New method. (state::~state): Call it. (state::copy): Copy subroutine list. (state::add_subr): New method. (state::merge): Only register a change if the current subroutine hasn't yet been noted. From-SVN: r62878
2003-02-13InputStreamReader.java (getEncoding): Return null when closed.Mark Wielaard3-4/+16
* java/io/InputStreamReader.java (getEncoding): Return null when closed. * java/io/OutputStreamWriter.java (getEncoding): Likewise. From-SVN: r62875
2003-02-13InflaterInputStream.java (read): Return zero when len is zero.Mark Wielaard2-1/+8
* java/util/zip/InflaterInputStream.java (read): Return zero when len is zero. From-SVN: r62872
2003-02-13BufferedOutputStream.java (write(int)): Only flush when next byte cannot be ↵Mark Wielaard2-4/+9
buffered. * java/io/BufferedOutputStream.java (write(int)): Only flush when next byte cannot be buffered. From-SVN: r62867
2003-02-132003-02-13 Michael Koch <konqueror@gmx.de>Michael Koch10-19/+57
* java/awt/Label.java (Label): Don't implement Serializable directly. (addNotify): Fixed typo in documentation. * java/awt/List.java (List): Don't implement Serializable directly. * java/awt/PopupMenu.java (PopupMenu): Don't implement Serializable directly. * java/awt/ScrollPane.java (ScrollPane): Don't implement Serializable directly. * java/awt/Scrollbar.java (Scrollbar): Don't implement Serializable directly. * java/awt/TextArea.java (preferredSize): Fixed method arguments. * java/awt/TextField.java (TextField): Don't implement Serializable directly. * java/awt/color/ICC_ColorSpace.java (fromCIOXYZ): Documentation added. (getMinValue): Documentation added. (getMaxValue): Documentation added. * java/awt/datatransfer/DataFlavor.java (isMimeTypeEqual): May not be final. (clone): Throws CloneNotSupportedException. (getReaderForText): Don't throws UnsupportedEncodingException. From-SVN: r62863
2003-02-132003-02-13 Michael Koch <konqueror@gmx.de>Michael Koch3-0/+16
* gnu/java/awt/peer/gtk/GdkGraphics.java (drawString): New stubbed method. * java/awt/Graphics.java (drawString): New method. From-SVN: r62862
2003-02-13re PR libgcj/9271 (Severe bias in java.security.SecureRandom)Casey Marshall2-3/+10
2003-02-13 Casey Marshall <rsdio@metastatic.org> PR libgcj/9271: * java/security/SecureRandom.java (next): Avoid bias in results. From-SVN: r62851
2003-02-13xfails: Added entries for an unimplemented Class method.Tom Tromey2-0/+7
* libjava.mauve/xfails: Added entries for an unimplemented Class method. From-SVN: r62843
2003-02-132003-02-13 Michael <konqueror@gmx.de>Michael Koch3-29/+228
* gnu/java/nio/FileChannelImpl.java (lengthInternal): Must be native. (size): Check if channel is already closed. (implCloseChannel): Reformated. (read): w was unused, removed it. (read): Removed. (read): New method. (write): New method. (map): Check arguments. (force): Throws IOException, check if channel is closed. (transferTo): New method. (transferFrom): New method. (lock): New method. (tryLock): New method. (position): New method. (truncate): New method. (nio_mmap_file): Uncommented. (nio_munmap_file): Uncommented. (nio_msync): Uncommented. * gnu/java/nio/natFileChannelImpl.cc: New file. From-SVN: r62841
2003-02-132003-02-13 Michael Koch <konqueror@gmx.de>Michael Koch3-6/+428
* java/nio/ByteBuffer.java (endian): New member variable. (get): New methods. (equals): New method. (compareTo): New method. (order): New methods. (compact): New method. (isDirect): New method. (slice): New method. (duplicate): New method. (asReadOnlyBuffer): New method. (asCharBuffer): New method. (asDoubleBuffer): New method. (asFloatBuffer): New method. (asIntBuffer): New method. (asLongBuffer): New method. (asShortBuffer): New method. (get*): New methods. (put*): New methods. (toString): New method. * java/nio/CharBuffer.java (CharBuffer): Implement Comparable instead of Cloneable. (get): May not be final. (put): May not be final. From-SVN: r62836
2003-02-13NameFinder.java (createStackTraceElement): Use lastIndexOf( ) instead of ↵Ranjit Mathew2-1/+8
indexOf( ) to find the colon before the line... 2002-02-13 Ranjit Mathew <rmathew@hotmail.com> * gnu/gcj/runtime/NameFinder.java (createStackTraceElement): Use lastIndexOf( ) instead of indexOf( ) to find the colon before the line number, because Win32 file names might contain a drive letter and a colon at the start of an absolute path. From-SVN: r62834
2003-02-132003-02-13 Michael Koch <konqueror@gmx.de>Michael Koch2-18/+8
* gnu/java/nio/natSocketChannelImpl.cc (SocketConnect): This is not implemented yet. (SocketBind): This is not implemented yet. From-SVN: r62833
2003-02-13natByteBufferImpl.cc, [...]: Added copyright and license.Michael Koch13-0/+148
2003-02-13 Michael Koch <konqueror@gmx.de> * gnu/java/nio/natByteBufferImpl.cc, gnu/java/nio/natCharBufferImpl.cc, gnu/java/nio/natDoubleBufferImpl.cc, gnu/java/nio/natFloatBufferImpl.cc, gnu/java/nio/natIntBufferImpl.cc, gnu/java/nio/natLongBufferImpl.cc, gnu/java/nio/natShortBufferImpl.cc: Added copyright and license. * java/nio/DoubleBuffer.java, java/nio/FloatBuffer.java, java/nio/IntBuffer.java, java/nio/LongBuffer.java, java/nio/ShortBuffer.java (array): Throw exceptions. (arrayOffset): Throw exceptions. From-SVN: r62832
2003-02-13FileBasedFactory.java, [...]: New files, all merged from classpath.Michael Koch17-1/+3410
2003-02-13 Michael Koch <konqueror@gmx.de> * gnu/java/util/prefs/FileBasedFactory.java, gnu/java/util/prefs/MemmoryBasedFactory.java, gnu/java/util/prefs/MemoryBasedPreferences.java, gnu/java/util/prefs/NodeReader.java, gnu/java/util/prefs/NodeWriter.java, java/util/prefs/AbstractPreferences.java, java/util/prefs/BackingStoreException.java, java/util/prefs/InvalidPreferencesFormatException.java, java/util/prefs/NodeChangeEvent.java, java/util/prefs/NodeChangeListener.java, java/util/prefs/PreferenceChangeEvent.java, java/util/prefs/PreferenceChangeListener.java, java/util/prefs/Preferences.java, java/util/prefs/PreferencesFactory.java: New files, all merged from classpath. * Makefile.am (ordinary_java_source_files): Added the following files: gnu/java/util/prefs/FileBasedFactory.java, gnu/java/util/prefs/MemmoryBasedFactory.java, gnu/java/util/prefs/MemoryBasedPreferences.java, gnu/java/util/prefs/NodeReader.java, gnu/java/util/prefs/NodeWriter.java, (core_java_source_files): Added the following files: java/util/prefs/AbstractPreferences.java, java/util/prefs/BackingStoreException.java, java/util/prefs/InvalidPreferencesFormatException.java, java/util/prefs/NodeChangeEvent.java, java/util/prefs/NodeChangeListener.java, java/util/prefs/PreferenceChangeEvent.java, java/util/prefs/PreferenceChangeListener.java, java/util/prefs/Preferences.java, java/util/prefs/PreferencesFactory.java * Makefile.in: Regenerated. From-SVN: r62827
2003-02-13Moved ChangeLog entry into correct ChangeLog fileMichael Koch1-0/+13
From-SVN: r62825
2003-02-132003-02-13 Michael Koch <konqueror@gmx.de>Michael Koch7-66/+104
* java/net/NetPermission.java (NetPermission): Make doucmentation match the method declaration. * java/net/NetworkInterface.java (equals): Reformated for GNU coding style. * java/net/ServerSocket.java: Merged with classpath. * java/net/Socket.java: Partly merged with classpath (Added some @since). * java/net/SocketImpl.java (localPort): Merged with classpath (initialize with -1). * java/net/SocketPermission.java: Merged with classpath (reindented). * java/net/URLDecoder.java: Merged with classpath (reindented). From-SVN: r62824
2003-02-13GridBagConstraints.java (FIRST_LINE_ENT, [...]): New constants.Michael Koch5-3/+91
2003-02-13 Michael Koch <konqueror@gmx.de> * java/awt/GridBagConstraints.java (FIRST_LINE_ENT, FIRST_LINE_START, LAST_LINE_END, LAST_LINE_START, LINE_END, LINE_START, PAGE_END, PAGE_START): New constants. * java/awt/KeyboardFocusManager.java (setGlobalCurrentFocusCycleRoot): Must be public. * java/awt/MenuComponent.java (MenuComponent): Must be public. * java/awt/Toolkit.java: Added some empty lines to make documentation more readable. (getFontPeer): Added @deprecated. (getColorModel): Added exception documentation. (getProperty): Fixed documentation. From-SVN: r62822
2003-02-13configure.host (alpha*-*): Default to -mieee.Jeff Sturm5-64/+75
* configure.host (alpha*-*): Default to -mieee. * configure.in (IEEESPEC): New. * libgcj.spec.in (jc1): Add IEEESPEC. * configure: Rebuild. From-SVN: r62815
2003-02-13win32.h: Include ws2tcpip.h instead of winsock.h to obtain definition of the ↵Ranjit Mathew2-5/+10
socklen_t type. 2003-02-12 Ranjit Mathew <rmathew@hotmail.com> * include/win32.h: Include ws2tcpip.h instead of winsock.h to obtain definition of the socklen_t type. Remove IP_TOS definition - not needed with ws2tcpip.h (_Jv_connect): Correct slight formatting error. From-SVN: r62801
2003-02-12jni.cc (_Jv_LookupJNIMethod): Modify to accept the size of the arguments for ↵Ranjit Mathew2-12/+85
a JNI function. 2003-02-12 Ranjit Mathew <rmathew@hotmail.com> * jni.cc (_Jv_LookupJNIMethod): Modify to accept the size of the arguments for a JNI function. For Win32, modify to search for all forms of possible exported names of an stdcall JNI function. (_Jv_JNIMethod::call): Modify to calculate the size of the arguments passed to a JNI function and pass it to _Jv_LookupJNIMethod. From-SVN: r62796
2003-02-12Channels.java: New file.Michael Koch4-1/+140
2003-02-12 Michael Koch <konqueror@gmx.de> * java/nio/channels/Channels.java: New file. * Makefile.am (ordinary_java_source_files): Added java/nio/channels/Channels.java. * Makefile.in: Regenerated. From-SVN: r62762
2003-02-122003-02-12 Michael Koch <konqueror@gmx.de>Michael Koch3-51/+191
* java/nio/ByteBuffer.java (allocate): Implemented. (wrap): Implemented. * java/nio/CharBuffer.java: Some documentation added and reworked. (endian): Removed. (allocate): Implemented. (wrap): Implemented. (array): Throw exceptions. (arrayOffset): Throw exceptions. (toString): Implemented. (length): Implemented. (put): Implemented. (charAt): Implemented. From-SVN: r62760
2003-02-12Wrote better ChangeLog entryTom Tromey1-1/+2
From-SVN: r62757
2003-02-12ZipInputStream.java: idemJohn Leuner2-1/+7
2003-02-11 John Leuner <jewel@debian.org> * java/util/zip/ZipInputStream.java: idem From-SVN: r62754
2003-02-112003-02-11 Ranjit Mathew <rmathew@hotmail.com>Ranjit Mathew2-3/+22
* java/io/natFileDescriptorWin32.cc (java::io::FileDescriptor::read): Return -1 (EOF) if ReadFile( ) returns with Win32 error code ERROR_BROKEN_PIPE. From-SVN: r62722
2003-02-112003-02-11 Michael Koch <konqueror@gmx.de>Michael Koch2-1/+5
* Makefile.in (libgcj_la_OBJECTS): Removed natSelctorImpl.la. From-SVN: r62700
2003-02-11ByteBufferImpl.java: Reformated and removed some code.Michael Koch10-506/+753
2003-02-11 Michael Koch <konqueror@gmx.de> * gnu/java/nio/ByteBufferImpl.java: Reformated and removed some code. (backing_buffer): Removed. (array_offset): Removed. (ro): Renamed to readOnly. (ByteBufferImpl): Use parent constructor, initialize readOnly. * gnu/java/nio/CharBufferImpl.java: Reformated and removed some code. (array_offset): Removed. (ro): Renamed to readOnly. (CharBufferImpl): Use parent constructor, initialize readOnly. (inc_pos): Removed. (order): New method. * gnu/java/nio/DoubleBufferImpl.java: Reformated and removed some code. (array_offset): Removed. (ro): Renamed to readOnly. (DoubleBufferImpl): Use parent constructor, initialize readOnly. (inc_pos): Removed. (order): New method. * gnu/java/nio/FloatBufferImpl.java: Reformated and removed some code. (array_offset): Removed. (ro): Renamed to readOnly. (FloatBufferImpl): Use parent constructor, initialize readOnly. (inc_pos): Removed. (order): New method. * gnu/java/nio/IntBufferImpl.java: Reformated and removed some code. (array_offset): Removed. (ro): Renamed to readOnly. (IntBufferImpl): Use parent constructor, initialize readOnly. (inc_pos): Removed. (order): New method. * gnu/java/nio/LongBufferImpl.java: Reformated and removed some code. (array_offset): Removed. (ro): Renamed to readOnly. (LongBufferImpl): Use parent constructor, initialize readOnly. (inc_pos): Removed. (order): New method. * gnu/java/nio/ShortBufferImpl.java: Reformated and removed some code. (array_offset): Removed. (ro): Renamed to readOnly. (ShortBufferImpl): Use parent constructor, initialize readOnly. (inc_pos): Removed. (order): New method. * Makefile.am (ordinary_java_source_files): Added the following files: gnu/java/nio/ByteBufferImpl.java gnu/java/nio/CharBufferImpl.java gnu/java/nio/DoubleBufferImpl.java gnu/java/nio/FloatBufferImpl.java gnu/java/nio/IntBufferImpl.java gnu/java/nio/LongBufferImpl.java gnu/java/nio/ShortBufferImpl.java java/nio/DoubleBuffer.java java/nio/FloatBuffer.java java/nio/IntBuffer.java java/nio/LongBuffer.java java/nio/ShortBuffer.java (nat_source_files): Added the following files: gnu/java/nio/natByteBufferImpl.cc gnu/java/nio/natCharBufferImpl.cc gnu/java/nio/natDoubleBufferImpl.cc gnu/java/nio/natFloatBufferImpl.cc gnu/java/nio/natIntBufferImpl.cc gnu/java/nio/natLongBufferImpl.cc gnu/java/nio/natShortBufferImpl.cc * Makefile.in: Regenerated. From-SVN: r62692
2003-02-112003-02-11 Michael Koch <konqueror@gmx.de>Michael Koch11-618/+57
* gnu/java/nio/natCharBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natDoubleBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natFloatBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natIntBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natLongBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/natShortBufferImpl.cc (nio_cast): Removed. (nio_put_*): Removed. (nio_get_*): Removed. * gnu/java/nio/SelectorProviderImpl.java (openDatagramChannel): Throws IOException. (openPipe): Throws IOException. (openSelector): Throws IOException. (openServerSocketChannel): Throws IOException. (openSocketChannel): Throws IOException. * gnu/java/nio/ServerSocketChannelImpl.java (ServerSocketChannelImpl): Throws IOException. (implCloseSelectableChannel): Throws IOException. (implConfigureBlocking): Throws IOException. * java/nio/ByteBuffer.java (readOnly): Removed. (hasArray): Use isReadOnly() instead of readOnly. (array): Use isReadOnly() instead of readOnly. (arrayOffset): Use isReadOnly() instead of readOnly. * java/nio/CharBuffer.java (CharBuffer): Implements Cloneable and CharSequence. From-SVN: r62688
2003-02-112003-02-11 Michael Koch <konqueror@gmx.de>Michael Koch9-17/+202
* java/nio/Buffer.java (cap, lim, pos, mark): Made private (Buffer): Added package private constructor. * java/nio/ByteBuffer.java (ByteBuffer): Implements Cloneable. (offset): New member variable. (readOnly): New member variable. (backing_buffer): New member variable. (allocateDirect): Throw exception and tell that direct buffers are not supported yet, documentation added. (allocate): Documentation added. (wrap): Documentation added. (ByteBuffer): New constructor. (hasArray): New method. (array): New method. (arrayOffset): New method. (get): Documentation added. (put): Documentation added. * java/nio/CharBuffer.java (CharBuffer): New constructor. (compareTo): Don't access member variables of Buffer directly. * java/nio/DoubleBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/FloatBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/IntBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/LongBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/MappedByteBuffer.java (MappedByteBuffer): New method. (force): New method. (isLoaded): New method. (load): New method. * java/nio/ShortBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. From-SVN: r62685
2003-02-112003-02-11 Michael Koch <konqueror@gmx.de>Michael Koch6-240/+138
* java/nio/DoubleBuffer.java (DoubleBuffer): Implements Comparable. (endian): Removed. (array_offset): New member variable. (DoubleBuffer): New constuctor. (get): May not be final. (put): May not be final. (arrayOffset): Implemented. (order): Made abstract. (order): Removed. (as*Buffer): Removed. (get*): Removed. (put*): Removed. * java/nio/FloatBuffer.java (FloatBuffer): Implements Comparable. (endian): Removed. (array_offset): New member variable. (FloatBuffer): New constuctor. (get): May not be final. (put): May not be final. (arrayOffset): Implemented. (order): Made abstract. (order): Removed. (as*Buffer): Removed. (get*): Removed. (put*): Removed. * java/nio/IntBuffer.java (IntBuffer): Implements Comparable. (endian): Removed. (array_offset): New member variable. (IntBuffer): New constuctor. (get): May not be final. (put): May not be final. (arrayOffset): Implemented. (order): Made abstract. (order): Removed. (as*Buffer): Removed. (get*): Removed. (put*): Removed. * java/nio/LongBuffer.java (LongBuffer): Implements Comparable. (endian): Removed. (array_offset): New member variable. (LongBuffer): New constuctor. (get): May not be final. (put): May not be final. (arrayOffset): Implemented. (order): Made abstract. (order): Removed. (as*Buffer): Removed. (get*): Removed. (put*): Removed. * java/nio/ShortBuffer.java (ShortBuffer): Implements Comparable. (endian): Removed. (array_offset): New member variable. (ShortBuffer): New constuctor. (get): May not be final. (put): May not be final. (arrayOffset): Implemented. (order): Made abstract. (order): Removed. (as*Buffer): Removed. (get*): Removed. (put*): Removed. From-SVN: r62684
2003-02-112003-02-11 Michael Koch <konqueror@gmx.de>Michael Koch2-4/+10
* java/nio/channels/SelectionKey.java (OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE): Initialize with correct values. From-SVN: r62683
2003-02-112003-02-11 Michael Koch <konqueror@gmx.de>Michael Koch9-27/+78
* java/nio/channels/DatagramChannel.java (write): Throws IOException. (connect): Throws IOException. (disconnect): Throws IOException. (read): Throws IOException. (receive): Throws IOException. (send): Throws IOException. * java/nio/channels/Pipe.java (open): Throws IOException. * java/nio/channels/SelectableChannel.java (configureBlocking): Throws IOException. * java/nio/channels/ServerSocketChannel.java (accept): Throws IOException. * java/nio/channels/SocketChannel.java (SocketChannel): Implements ByteChannel, ScatteringByteChannel, GatheringByteChannel. (read): Throws IOException. (write): Throws IOException. (finishConnect): Throws IOException. * java/nio/channels/spi/AbstractInterruptibleChannel.java (end): Throws AsynchronousCloseException. * java/nio/channels/spi/AbstractSelectableChannel.java (configureBlocking): Throws IOException. (implCloseChannel): Throws IOException. (implCloseSelectableChannel): Throws IOException. (implConfigureBlocking): Throws IOException. * java/nio/channels/spi/SelectorProvider.java (openDatagramChannel): Throws IOException. (openPipe): Throws IOException. (openSelector): Throws IOException. (openServerSocketChannel): Throws IOException. (openSocketChannel): Throws IOException. From-SVN: r62682
2003-02-11FileLockImpl.java, [...]: New files.Michael Koch3-0/+205
2003-02-11 Michael Koch <konqueror@gmx.de> * gnu/java/nio/FileLockImpl.java, java/nio/channels/FileLock.java: New files. From-SVN: r62681
2003-02-112003-02-08 Michael Koch <konqueror@gmx.de>Michael Koch3-4/+35
* java/nio/charset/IllegalCharsetNameException.java (serialVersionUID): New member variable. (charsetName): New member variable. (IllegalCharsetException): New implementation. (getCharsetName): New implementation. * java/nio/charset/UnsupportedCharsetException.java (serialVersionUID): New member variable. (charsetName): New member variable. (UnsupportedCharsetException): New implementation. (getCharsetName): New implementation. From-SVN: r62680
2003-02-11ConnectionEvent.java (serialVersionUID): New field.Tom Tromey2-5/+13
* javax/sql/ConnectionEvent.java (serialVersionUID): New field. (ex): Renamed from sqlException. From-SVN: r62678
2003-02-11SHA1PRNG.java (ensureIsSeeded): new method used to ensure seeding has ↵Raif S. Naffah2-11/+27
occurred and that a specific seed can be... 2003-02-10 Raif S. Naffah <raif@fl.net.au> * gnu/java/security/provider/SHA1PRNG.java (ensureIsSeeded): new method used to ensure seeding has occurred and that a specific seed can be set and used. From-SVN: r62660
2003-02-10Win32Process.java (destroy): Declare as native.Ranjit Mathew3-20/+349
2003-02-10 Ranjit Mathew <rmathew@hotmail.com> * java/lang/Win32Process.java (destroy): Declare as native. (hasExited): New native method. (exitValue): Define. (getErrorStream): Likewise. (getInputStream): Likewise. (getOutputStream): Likewise. (waitFor): Declare as native. (startProcess): New native method. (cleanup): Likewise. (ConcreteProcess): Define. (outputStream, inputStream, errorStream): New members. (procHandle, exitCode): Likewise. * java/lang/natWin32Process.cc (java::lang::ConcreteProcess::cleanup): Define. (java::lang::ConcreteProcess::destroy): Likewise. (java::lang::ConcreteProcess::hasExited): Likewise. (java::lang::ConcreteProcess::waitFor): Likewise. (new_string): Likewise. (java::lang::ConcreteProcess::startProcess): Likewise. From-SVN: r62657
2003-02-10BigInteger.java: Updated notice to include years 2002 and 3.Raif S. Naffah2-181/+189
2003-02-10 Raif S. Naffah <raif@fl.net.au> * java/math/BigInteger.java: Updated notice to include years 2002 and 3. Added 2 private (int) arrays with values from the HAC (Handbook of Applied Cryptography -A. Menezes & al): k[] that contains bit lengths and t[] that contains nbr. of tests --used in isProbablePrime(). * java/math/BigInteger.java (make(long)): Merged into valueOf(long). * java/math/BigInteger.java (make(int[],int), add(int,int), add(BI,BI,int), times(BI,int), divide(long,long,BI,BI,int), gcd(BI), isProbablePrime(int), shift(BI,int), valueOf(String,int), neg(BI), bitOp(int,BI,BI), and(BI,int)): Use valueOf(long) instead of make(long). * java/math/BigInteger.java (euclidInv): Reduce number of work vars (euclidInv(int,int,int)): Now returns an array of 2 ints instead of 3. (euclidInv(BI,BI,BI)): Used to return an array of 2 BIs; now accepts 6 BIs and returns void. (modInverse(BI)): Use new signatures of euclidInv(). * java/math/BigInteger.java (isProbablePrime(int)): Use divide() with static small primes instead of remainder(). Use pre-computed max nbr of trials based on bitlength of BI to test. Use pre-computed small primes for the trial tests instead of random numbers. * java/math/BigInteger.java (isOdd, isMinusOne, pow): Removed. not used. * java/math/BigInteger.java (format(int,StringBuffer)): Removed invoacation of MPN.chars_per_word(). not used. * java/math/BigInteger.java (gcd(int,int)): Declared 'tmp' once as local var and used where needed. * java/math/BigInteger.java (modPow(BI,BI)): Fixed spelling. Combined declaration with initialisation of locals. Removed unused var. * java/math/BigInteger.java: Style changes (pow(int)): Removed 'else' keyword. (toString(int)): idem. (doubleValue()): idem. (bitLength()): idem. (equals(Object)): Use static methods name in same class w/o prepending class name. (doubleValue()): idem. (setNegative(BI)): idem. (negate()): idem. (and(BI,int)): idem. (and(BI)): idem. (gcd(BI)): idem. (byteArrayToIntArray()): Removed casting to (int). this is std. behaviour. (canonicalize()): idem. (alloc(int)): Always instantiate a new BI. From-SVN: r62656
2003-02-10Timestamp.java (compareTo(Object)): New method.Tom Tromey2-8/+32
* java/sql/Timestamp.java (compareTo(Object)): New method. (compareTo(Timestamp)): Likewise. (serialVersionUID): Updated. From-SVN: r62648
2003-02-07JarFile.java (JarFile(String, boolean)): Read manifest when verify is true.Mark Wielaard2-3/+28
* java/util/jar/JarFile.java (JarFile(String, boolean)): Read manifest when verify is true. (JarFile(File, boolean)): Likewise. (manifestRead): Set manifestRead field correctly. From-SVN: r62545
2003-02-07BigDecimal (valueOf): fix DiagBigDecimal val008, val013 tests; see patch ↵Stephen Crawley2-18/+54
#1016 on Savannah. 2003-02-07 Stephen Crawley <crawley@dstc.edu.au> * java/math/BigDecimal(valueOf): fix DiagBigDecimal val008, val013 tests; see patch #1016 on Savannah. 2003-02-07 Stephen Crawley <crawley@dstc.edu.au> * java/math/BigDecimal.java (BigDecimal): enhance parsing of exponents (toString): do not return Strings starting with . and - erroneously. Improves Mauve results to 12 of 600 instead of 16 of 338 on DiagBigDecimal. From-SVN: r62540
2003-02-07Stephen Crawley <crawley@dstc.edu.au>Stephen Crawley2-267/+314
* java/beans/PropertyDescriptor.java (PropertyDescriptor(String, Class)): Sanity check getter and setter methods. (PropertyDescriptor(String, Class, String, String)): Likewise. (PropertyDescriptor(String, Method, Method): Factor out getter and setter method sanity checks into new method. (findMethods): Don't do parameter sanity checking of get method here. (checkMethods): New method. 2003-02-07 Stephen Crawley <crawley@dstc.edu.au> * java/beans/PropertyDescriptor.java: Reformat. From-SVN: r62537
2003-02-07xfails: Add new entries for gnu.testlet.java.text.CollationElementIterator.jdk11Mark Wielaard2-0/+39
* libjava.mauve/xfails: Add new entries for gnu.testlet.java.text.CollationElementIterator.jdk11 From-SVN: r62525