Jeff Sturm
31de261d68
re PR libgcj/10886 (The RMI registry that comes with GCJ does not work correctly)
...
PR libgcj/10886:
* gnu/java/rmi/server/UnicastRemoteCall.java (returnValue):
Test for empty vector.
From-SVN: r67610
2003-06-08 01:35:32 +00:00
Mark Wielaard
60e9f0d726
re PR libgcj/8738 (java.io.CharArrayWriter's write methods erroneously throw IOExceptions)
...
2002-06-06 James Clark <jjc@jclark.com>
Fix for PR libgcj/8738:
* gnu/gcj/convert/UnicodeToBytes.java (havePendingBytes): New method.
* gnu/gcj/convert/Output_SJIS.java (havePendingBytes): Likewise.
* gnu/gcj/convert/Output_EUCJIS.java (havePendingBytes): Likewise.
* gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Likewise.
(write): Always decrease avail when count is increased.
* java/lang/natString.cc (getBytes): Check converter havePendingBytes()
and whether output buffer is full before increasing size.
2002-06-06 Mark Wielaard <mark@klomp dot org>
* java/io/PrintStream.java (writeChars(char[],int, int)):
Check converter.havePendingBytes().
(writeChars(String,int,int)): Likewise.
* java/io/OutputStreamWriter.java (writeChars(char[], int, int)):
Check converter.havePendingBytes() and flush buffer when stalled.
From-SVN: r67595
2003-06-07 18:35:00 +00:00
Michael Koch
3a5eb28322
ByteBufferImpl.java, [...]: Moved files to java/nio.
...
2003-05-20 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/ByteBufferImpl.java,
gnu/java/nio/CharBufferImpl.java,
gnu/java/nio/CharViewBufferImpl.java,
gnu/java/nio/DirectByteBufferImpl.java,
gnu/java/nio/DoubleBufferImpl.java,
gnu/java/nio/DoubleViewBufferImpl.java,
gnu/java/nio/FloatBufferImpl.java,
gnu/java/nio/FloatViewBufferImpl.java,
gnu/java/nio/IntBufferImpl.java,
gnu/java/nio/IntViewBufferImpl.java,
gnu/java/nio/LongBufferImpl.java,
gnu/java/nio/LongViewBufferImpl.java,
gnu/java/nio/natDirectByteBufferImpl.cc,
gnu/java/nio/ShortBufferImpl.java,
gnu/java/nio/ShortViewBufferImpl.java:
Moved files to java/nio.
* gnu/java/nio/SocketChannelImpl.java
* java/nio/ByteBuffer.java,
java/nio/CharBuffer.java,
java/nio/DoubleBuffer.java,
java/nio/FloatBuffer.java,
java/nio/IntBuffer.java,
java/nio/LongBuffer.java,
java/nio/ShortBuffer.java:
Dont import anything.
* java/nio/ByteBufferImpl.java,
java/nio/CharBufferImpl.java,
java/nio/CharViewBufferImpl.java,
java/nio/DirectByteBufferImpl.java,
java/nio/DoubleBufferImpl.java,
java/nio/DoubleViewBufferImpl.java,
java/nio/FloatBufferImpl.java,
java/nio/FloatViewBufferImpl.java,
java/nio/IntBufferImpl.java,
java/nio/IntViewBufferImpl.java,
java/nio/LongBufferImpl.java,
java/nio/LongViewBufferImpl.java,
java/nio/natDirectByteBufferImpl.cc,
java/nio/ShortBufferImpl.java,
java/nio/ShortViewBufferImpl.java:
Moved from gnu/java/nio.
* Makefile.am
(ordinary_java_source_files): Moved files from gnu/java/nio to
java/nio.
(nat_source_files): Moved natDirectByteBufferImpl.cc from gnu/java/nio
to java/nio.
* Makefile.in: Regenerated.
From-SVN: r66990
2003-05-20 08:58:31 +00:00
Michael Koch
10832fce7c
2003-05-19 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/ByteBufferImpl.java
(putLong): Fixed conversion to bytes.
(putDouble): Fixed conversion to bytes.
* gnu/java/nio/DirectByteBufferImpl.java
(putLong): Fixed conversion to bytes.
(putDouble): Fixed conversion to bytes.
* gnu/java/nio/FileLockImpl.java
(isValid): Reformatted.
* java/nio/Buffer.java
(Buffer): Fixed off-by-one bug in handling mark.
* java/nio/ByteBuffer.java:
Added newline.
* java/nio/CharBuffer.java
(toString): Don't use relative get to get string data.
From-SVN: r66946
2003-05-19 06:59:23 +00:00
Michael Koch
cc1b3d6b64
2003-05-14 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/FileLockImpl.java
(released): New member variable.
(FileLockImpl): Initialize released.
(releaseImpl): New native method.
(release): Implemented.
* gnu/java/nio/SelectorImpl.java: Reformatted.
* gnu/java/nio/SelectionKeyImpl.java: Reformatted.
* gnu/java/nio/ServerSocketChannelImpl.java: Reformatted.
(accept): Throws IOException.
* gnu/java/nio/SocketChannelImpl.java: Reformatted.
(implConfigureBlocking): Throws IOException.
(connect): Likewise.
(read): Likewise.
(write): Likewise.
* gnu/java/nio/natFileLockImpl.cc: New file.
* java/nio/channels/FileLock.java: Reformatted.
* Makefile.am:
(ordinary_java_source_files): Added gnu/java/nio/FileLockImpl.java.
(nat_source_files): Added gnu/java/nio/natFileLockImpl.cc.
* Makefile.in: Regenerated.
From-SVN: r66799
2003-05-14 06:37:59 +00:00
Michael Koch
d24273abda
2003-05-13 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/CharViewBufferImpl.java
(CharViewBufferImpl): Fixed super constructor call, initialize offset.
(get): Shift bits to the right direction.
(put): Likewise.
* gnu/java/nio/DoubleViewBufferImpl.java
(DoubleViewBufferImpl): Fixed super constructor call, initialize offset.
(get): Shift bits to the right direction.
(put): Likewise.
* gnu/java/nio/FloatViewBufferImpl.java
(FloatViewBufferImpl): Fixed super constructor call, initialize offset.
(get): Shift bits to the right direction.
(put): Likewise.
* gnu/java/nio/IntViewBufferImpl.java
(IntViewBufferImpl): Fixed super constructor call, initialize offset.
(get): Shift bits to the right direction.
(put): Likewise.
* gnu/java/nio/LongViewBufferImpl.java
(LongViewBufferImpl): Fixed super constructor call, initialize offset.
(get): Shift bits to the right direction.
(put): Likewise.
* gnu/java/nio/ShortViewBufferImpl.java
(ShortViewBufferImpl): Fixed super constructor call, initialize offset.
(get): Shift bits to the right direction.
(put): Likewise.
From-SVN: r66780
2003-05-13 20:11:02 +00:00
Michael Koch
c484a5fbd3
2003-05-13 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/natDirectByteBufferImpl.cc
(allocateImpl): jlong -> RawData*.
(freeImpl): Likewise.
From-SVN: r66760
2003-05-13 12:57:32 +00:00
Michael Koch
e48d8b8886
2003-05-13 Michael Koch <konqueror@gmx.de>
...
* java/io/FileDescriptor.java
(SYNC): New constant.
(DSYNC): Likewise.
(getLength): Renamed from lenght() to match classpath's
FileDescriptor.java.
* java/io/RandomAccessFile.java
(RandomAccessFile): Removed unneeded mode check, implemented mode
"rws" and "rwd", merged documentation from classpath.
(setLength): Reformatted.
(length): Use new getLength() of FileDescriptor.
* java/io/natFileDescriptorEcos.cc
(getLength): Renamed from length().
* java/io/natFileDescriptorPosix.cc
(open): Implemented support for SYNC and DSYNC.
(seek): Use getLength() instead of length().
(getLength): Renamed from length().
* java/io/natFileDescriptorWin32.cc
(getLength): Renamed from length().
(seek): Use getLength() instead of length().
(available): Likewise.
* gnu/java/nio/natFileChannelImpl.cc
(size): Use getLength() instead of length().
From-SVN: r66755
2003-05-13 09:13:31 +00:00
Michael Koch
3b6b673dab
2003-05-13 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/ByteBufferImpl.java
(ByteBufferImpl): All constructors revised.
(slice): Reimplemented.
(duplicate): Reimplemented.
(asReadOnlyBuffer): Reimplemented.
* java/nio/ByteBuffer.java:
Reformatted.
(array_offset): Renamed from "offset" to match all other buffer
classes.
(ByteBuffer): All constructors revised.
(allocateDirect): Implemented.
(allocate): New implementation, documentation reworked.
(wrap): Likewise.
(get): Documentation reworked.
(put): New implementation, documentation reworked.
(hasArray): Documentation reworked.
(arrayOffset): Likewise.
(hashCode): Likewise.
(equals): Likewise.
(compareTo): Likewise.
(order): Likewise.
(compact): Likewise.
(isDirect): Likewise.
(slice): Likewise.
(duplicate): Likewise.
(asReadOnlyBuffer): Likewise.
* Makefile.am
(ordinary_java_source_files):
Added gnu/java/nio/DirectByteBufferImpl.java.
(nat_source_files):
Added gnu/java/nio/natDirectByteBufferImpl.cc.
* Makefile.in: Regenerated.
From-SVN: r66749
2003-05-13 06:04:19 +00:00
Michael Koch
36d4669b73
ByteBufferImpl.java: Reformatted.
...
2003-05-12 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/ByteBufferImpl.java: Reformatted.
(nio_get_*): Removed.
(nio_put_*): Removed.
(as*Buffer): Implemented.
(compact): Implemented.
(get): Documentation added.
(put): Documentation added.
(get*): Newly implemented.
(put*): Newly implemented.
* gnu/java/nio/CharBufferImpl.java: Reformatted.
(CharBufferImpl): Revised.
(slice): New implementation.
(duplicate): New implementation.
(compact): New implementation.
(asReadOnlyBuffer): New implementation.
(get): Documentation revised.
(order): Return native byte order.
* gnu/java/nio/DirectByteBufferImpl.java
(allocateDirect): objects can be null not 0.
* gnu/java/nio/DoubleBufferImpl.java: Reformatted.
(DoubleBufferImpl): Revised.
(slice): New implementation.
(duplicate): New implementation.
(compact): New implementation.
(asReadOnlyBuffer): New implementation.
(get): Documentation revised.
(order): Return native byte order.
* gnu/java/nio/FloatBufferImpl.java: Reformatted.
(FloatBufferImpl): Revised.
(slice): New implementation.
(duplicate): New implementation.
(compact): New implementation.
(asReadOnlyBuffer): New implementation.
(get): Documentation revised.
(order): Return native byte order.
* gnu/java/nio/IntBufferImpl.java: Reformatted.
(IntBufferImpl): Revised.
(slice): New implementation.
(duplicate): New implementation.
(compact): New implementation.
(asReadOnlyBuffer): New implementation.
(get): Documentation revised.
(order): Return native byte order.
* gnu/java/nio/LongBufferImpl.java: Reformatted.
(LongBufferImpl): Revised.
(slice): New implementation.
(duplicate): New implementation.
(compact): New implementation.
(asReadOnlyBuffer): New implementation.
(get): Documentation revised.
(order): Return native byte order.
* gnu/java/nio/ShortBufferImpl.java: Reformatted.
(ShortBufferImpl): Revised.
(slice): New implementation.
(duplicate): New implementation.
(compact): New implementation.
(asReadOnlyBuffer): New implementation.
(get): Documentation revised.
(order): Return native byte order.
* java/nio/CharBuffer.java: Reformatted, much documentation rewritten.
(CharBuffer): Revised.
(order): Removed.
* java/nio/DoubleBuffer.java: Reformatted, much documentation rewritten.
(DoubleBuffer): Revised.
(allocateDirect): Removed.
(order): Removed.
* java/nio/FloatBuffer.java: Reformatted, much documentation rewritten.
(FloatBuffer): Revised.
(allocateDirect): Removed.
(order): Removed.
* java/nio/IntBuffer.java: Reformatted, much documentation rewritten.
(IntBuffer): Revised.
(allocateDirect): Removed.
(order): Removed.
* java/nio/LongBuffer.java: Reformatted, much documentation rewritten.
(LongBuffer): Revised.
(allocateDirect): Removed.
(order): Removed.
* java/nio/ShortBuffer.java: Reformatted, much documentation rewritten.
(ShortBuffer): Revised.
(allocateDirect): Removed.
(order): Removed.
* gnu/java/nio/natByteBufferImpl.cc: Removed.
* gnu/java/nio/natCharBufferImpl.cc: Removed.
* Makefile.am
(ordinary_java_source_files): Added the following files:
gnu/java/nio/CharViewBufferImpl.java,
gnu/java/nio/DoubleViewBufferImpl.java,
gnu/java/nio/FloatViewBufferImpl.java,
gnu/java/nio/IntViewBufferImpl.java,
gnu/java/nio/LongViewBufferImpl.java,
gnu/java/nio/ShortViewBufferImpl.java
(nat_source_files): Removed the following files:
gnu/java/nio/natByteBufferImpl.cc,
gnu/java/nio/natCharBufferImpl.cc
* Makefile.in: Regenerated.
From-SVN: r66733
2003-05-12 20:45:20 +00:00
Michael Koch
5560b019e4
CharViewBufferImpl.java, [...]: New files, not yet to be compiled.
...
2003-05-12 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/CharViewBufferImpl.java,
gnu/java/nio/DirectByteBufferImpl.java,
gnu/java/nio/DoubleViewBufferImpl.java,
gnu/java/nio/FloatViewBufferImpl.java,
gnu/java/nio/IntViewBufferImpl.java,
gnu/java/nio/LongViewBufferImpl.java,
gnu/java/nio/ShortViewBufferImpl.java,
gnu/java/nio/natDirectByteBufferImpl.cc:
New files, not yet to be compiled.
From-SVN: r66727
2003-05-12 18:32:17 +00:00
Tom Tromey
553ada109d
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (nat_source_files): Removed old files.
* gnu/java/nio/natDoubleBufferImpl.cc: Removed.
* gnu/java/nio/natFloatBufferImpl.cc: Removed.
* gnu/java/nio/natIntBufferImpl.cc: Removed.
* gnu/java/nio/natLongBufferImpl.cc: Removed.
* gnu/java/nio/natShortBufferImpl.cc: Removed.
From-SVN: r66640
2003-05-09 19:16:54 +00:00
Michael Koch
2c478ce37c
2003-05-09 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/ByteBufferImpl.java
(nio_cast): Removed.
(ByteBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
(asCharBuffer): Removed implementation and throw exception.
(asShortBuffer): Likewise.
(asIntBuffer): Likewise.
(asLongBuffer): Likewise.
(asFloatBuffer): Likewise.
(asDoubleBuffer): Likewise.
* gnu/java/nio/CharBufferImpl.java
(CharBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/DoubleBufferImpl.java
(DoubleBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/FloatBufferImpl.java
(FloatBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/IntBufferImpl.java
(IntBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/LongBufferImpl.java
(LongBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/ShortBufferImpl.java
(ShortBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/natByteBufferImpl.cc
(nio_cast): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
* gnu/java/nio/natCharBufferImpl.cc
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
From-SVN: r66626
2003-05-09 07:55:59 +00:00
Scott Gilbertson
146b867529
natGC.cc (drawString): Removed obsolete code.
...
2003-05-08 Scott Gilbertson <scottg@mantatest.com>
* gnu/gcj/xlib/natGC.cc (drawString): Removed obsolete code.
From-SVN: r66608
2003-05-08 18:51:51 +00:00
Matt Kraai
5a43f8c419
GtkButtonPeer.java: Fix misspelling of "version".
...
* libjava/gnu/awt/gtk/GtkButtonPeer.java: Fix misspelling of
"version".
* libjava/gnu/awt/gtk/GtkComponentPeer.java: Likewise.
* libjava/gnu/awt/gtk/GtkContainerPeer.java: Likewise.
* libjava/gnu/awt/gtk/GtkFramePeer.java: Likewise.
* libjava/gnu/awt/gtk/GtkLabelPeer.java: Likewise.
* libjava/gnu/awt/gtk/GtkMainThread.java: Likewise.
* libjava/gnu/awt/gtk/GtkToolkit.java: Likewise.
* libjava/gnu/awt/gtk/GtkWindowPeer.java: Likewise.
* libjava/java/security/Key.java: Likewise.
* libjava/java/security/PrivateKey.java: Likewise.
* libjava/java/security/Provider.java: Likewise.
* libjava/java/security/PublicKey.java: Likewise.
From-SVN: r66431
2003-05-03 16:20:48 +00:00
Michael Koch
4b6eac52d5
2003-05-02 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/FileChannelImpl.java
(read): New implementation.
(implRead): New methods.
(write): New implementation, call other write insteal of read method.
(implWrite): New methods.
(map): Added comment.
(transferFrom): Implemented.
(transferTo): Implemented.
(lock): Added checks to throw exceptions.
(truncate): Added check to throw exception.
* gnu/java/nio/natFileChannelImpl.cc
(implRead): New method.
(implWrite): New method.
* java/nio/ByteBuffer.java
(hashCode): Fixed comment.
(get): Fixed exception documentation.
(put): Fixed exception documentation.
* java/nio/CharBuffer.java:
Added comment for later optimizations.
From-SVN: r66373
2003-05-02 05:35:57 +00:00
Michael Koch
43905ff30b
Engine.java, [...]: New files from classpath.
...
2003-04-30 Michael Koch <konqueror@gmx.de>
* gnu/java/security/Engine.java,
gnu/java/security/OID.java,
gnu/java/security/der/BitString.java,
gnu/java/security/der/DER.java,
gnu/java/security/der/DERReader.java,
gnu/java/security/der/DERValue.java,
gnu/java/security/der/DERWriter.java,
gnu/java/security/provider/DSAKeyFactory.java,
gnu/java/security/provider/X509CertificateFactory.java,
gnu/java/security/x509/X500DistinguishedName.java,
gnu/java/security/x509/X509CRL.java,
gnu/java/security/x509/X509CRLEntry.java,
gnu/java/security/x509/X509Certificate.java,
java/security/cert/CRLSelector.java,
java/security/cert/CertPathBuilder.java,
java/security/cert/CertPathBuilderResult.java,
java/security/cert/CertPathBuilderSpi.java,
java/security/cert/CertPathParameters.java,
java/security/cert/CertPathValidator.java,
java/security/cert/CertPathValidatorResult.java,
java/security/cert/CertPathValidatorSpi.java,
java/security/cert/CertSelector.java,
java/security/cert/CertStore.java,
java/security/cert/CertStoreParameters.java,
java/security/cert/CertStoreSpi.java,
java/security/cert/CollectionCertStoreParameters.java,
java/security/cert/LDAPCertStoreParameters.java,
java/security/cert/PKIXBuilderParameters.java,
java/security/cert/PKIXCertPathBuilderResult.java,
java/security/cert/PKIXCertPathChecker.java,
java/security/cert/PKIXCertPathValidatorResult.java,
java/security/cert/PKIXParameters.java,
java/security/cert/PolicyNode.java,
java/security/cert/PolicyQualifierInfo.java,
java/security/cert/TrustAnchor.java,
javax/security/auth/x500/X500Principal.java:
New files from classpath.
* gnu/java/io/ASN1ParsingException.java,
gnu/java/io/Base64InputStream.java,
gnu/java/security/der/DEREncodingException.java,
gnu/java/security/provider/DSAParameters.java,
gnu/java/security/provider/DSASignature.java,
gnu/java/security/provider/Gnu.java,
gnu/java/security/provider/GnuDSAPrivateKey.java,
gnu/java/security/provider/GnuDSAPublicKey.java,
java/security/AlgorithmParameterGenerator.java,
java/security/AlgorithmParameters.java,
java/security/KeyFactory.java,
java/security/KeyPairGenerator.java,
java/security/KeyStore.java,
java/security/MessageDigest.java,
java/security/SecureClassLoader.java,
java/security/SecureRandom.java,
java/security/Security.java,
java/security/Signature.java,
java/security/cert/Certificate.java,
java/security/cert/CertificateFactory.java,
java/security/cert/CertificateFactorySpi.java,
java/security/cert/X509CRL.java,
java/security/cert/X509Certificate.java,
java/security/spec/DSAPublicKeySpec.java:
New versions from classpath.
* gnu/java/security/provider/DERReader.java,
gnu/java/security/provider/DERWriter.java,
java/security/Engine.java: Removed.
* Makefile.am
(java_source_files, javax_source_files): Added new files.
* Makefile.in: Regenerated.
From-SVN: r66283
2003-04-30 07:23:42 +00:00
Scott Gilbertson
9e9e204234
XGraphics.java (XGraphics): Use new GC.create.
...
2003-04-19 Scott Gilbertson <scottg@mantatest.com>
* gnu/awt/xlib/XGraphics.java (XGraphics): Use new GC.create.
(dispose): Null metrics.
* gnu/awt/xlib/XToolkit.java (sync): Implement.
* gnu/gcj/xlib/Clip.java (dispose): Change name of native from
finalize.
(finalize): Call dispose.
* gnu/gcj/xlib/Drawable.java (gcCache): New field.
(gcCachedCount): New field.
(finalize): New method.
(putGCInCache): New method.
(getGCFromCache): New method.
* gnu/gcj/xlib/GC.java (GC): Make protected.
(clone): Get new GC from cache if possible.
(create): New static method.
(dispose): Save old GC in cache.
* gnu/gcj/xlib/natClip.cc (dispose): Check for null before
deleting.
* gnu/gcj/xlib/natGC.cc (initStructure): Call XCreateGC only if gc
is null.
* gnu/gcj/xlib/Pixmap.java (Pixmap): Use new GC.create.
* java/awt/Container.java (visitChild): Dispose gfx2 when
finished.
From-SVN: r65827
2003-04-19 19:54:39 +00:00
Scott Gilbertson
1230b94d56
XGraphicsConfiguration.java (FontMetricsCache): New inner class.
...
2003-04-19 Scott Gilbertson <scottg@mantatest.com>
* gnu/awt/xlib/XGraphicsConfiguration.java (FontMetricsCache): New
inner class.
(CACHE_SIZE_PER_DISPLAY): New field
(fontMetricsCache): New field
(getXFontMetrics): Use fontMetricsCache to cache fonts. Prefer
loading ISO10646-1 fonts.
From-SVN: r65821
2003-04-19 17:59:40 +00:00
Scott Gilbertson
3b2288059d
natFont.cc (getStringWidth): Support 16-bit characters.
...
2003-04-19 Scott Gilbertson <scottg@mantatest.com>
* libjava/gnu/gcj/xlib/natFont.cc (getStringWidth): Support 16-bit
characters.
* libjava/gnu/gcj/xlib/natGC.cc (drawString): Support 16-bit
characters.
From-SVN: r65820
2003-04-19 17:52:15 +00:00
Tom Tromey
20ba0464aa
MessageFormat.java: Removed some whitespace.
...
* java/text/MessageFormat.java: Removed some whitespace.
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added new files.
* gnu/javax/rmi/PortableServer.java,
gnu/javax/rmi/CORBA/DelegateFactory.java,
gnu/javax/rmi/CORBA/GetDelegateInstanceException.java,
gnu/javax/rmi/CORBA/PortableRemoteObjectDelegateImpl.java,
gnu/javax/rmi/CORBA/StubDelegateImpl.java,
gnu/javax/rmi/CORBA/UtilDelegateImpl.java,
gnu/javax/rmi/CORBA/ValueHandlerImpl.java,
javax/rmi/BAD_OPERATION.java, javax/rmi/ORB.java,
javax/rmi/PortableRemoteObject.java,
javax/rmi/CORBA/ClassDesc.java, javax/rmi/CORBA/ObjectImpl.java,
javax/rmi/CORBA/PortableRemoteObjectDelegate.java,
javax/rmi/CORBA/Stub.java, javax/rmi/CORBA/StubDelegate.java,
javax/rmi/CORBA/SystemException.java, javax/rmi/CORBA/Tie.java,
javax/rmi/CORBA/Util.java, javax/rmi/CORBA/UtilDelegate.java,
javax/rmi/CORBA/ValueHandler.java: New files from Classpath.
From-SVN: r65024
2003-03-29 21:23:25 +00:00
Michael Koch
54c99af155
2003-03-20 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/FileChannelImpl.java
(address): Removed.
(map_address): New member variable.
(length): Make it package private.
(fd): Make it package private.
(buf): Make it package private.
(file_obj): Make it package private.
(FileChannelImpl): New constructor.
(nio_mmap_file): Use RawData instead of long.
(nio_munmap_file): Use RawData instead of long.
(nio_msync): Use RawData instead of long.
(implCloseChannel): New implementation using map_address.
(read): Reformated.
(map): Implemented.
(create_direct_mapped_buffer): Implemented, use RawData, throws
IOException.
(force): Use map_address instead of address.
* gnu/java/nio/MappedByteFileBuffer.java
(address): Removed.
(map_address): New member variable.
(MappedByteFileBuffer): Use map_address instead of address, reformated.
(several methods): Use map_address instead of address, replaced long
with RawData where appropriate.
* gnu/java/nio/natFileChannelImpl.cc
(nio_mmap_file): Replaced long with RawData.
(nio_munmap_file): Replaced long with RawData.
(nio_msync): Replaced long with RawData.
* gnu/java/nio/natMappedByteFileBuffer.cc
(several methods): Replaced long with RawData where appropriate.
From-SVN: r64612
2003-03-20 11:14:35 +00:00
Michael Koch
b772d2f592
2003-03-11 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/ByteBufferImpl.java
(putInt): Use limit() instead of limit.
* gnu/java/nio/CharBufferImpl.java
(slice): Fixed implementation.
(subSequence): Better bounds checking.
* gnu/java/nio/MappedByteFileBuffer.java:
Import all needed classes directly.
* java/nio/ByteBuffer.java
(hashCode): New dummy method.
* java/nio/CharBuffer.java
(array_offset): New member variable.
(hasArray): Fixed documentation.
(arrayOffset): Return array_offset.
From-SVN: r64165
2003-03-11 10:30:52 +00:00
Andrew Haley
c068c63834
[multiple changes]
...
2003-03-10 2003-02-27 Mohan Embar <gnustuff@thisiscool.com>
* include/jvm.h: removed declaration of _Jv_ThisExecutable()
setter; made return value of getter const char* instead of char*
* prims.cc: removed all references to _Jv_ThisExecutable().
These are in the platform-specific sections now.
* posix.cc: define platform-specific _Jv_ThisExecutable().
Handle DISABLE_MAIN_ARGS and HAVE_PROC_SELF_EXE cases
* win32.cc: define platform-specific _Jv_ThisExecutable()
using GetModuleFilename()
* java/lang/natRuntime.cc: set gnu.gcj.progname property
to argv[0] instead of _Jv_ThisExecutable()
2003-03-10 Ranjit Mathew <rmathew@hotmail.com>
* gnu/gcj/runtime/NameFinder.java (usingAddr2name): New flag
that is set if we are using addr2name.awk instead of addr2line.
(NameFinder): Set usingAddr2name if using addr2name.awk.
(getExternalLabel): New native method to convert a method
name to an external label.
(lookup): Convert name given by addr2line to an external label
before demangling.
* gnu/gcj/runtime/natNameFinder.cc (LABEL_PREFIX): New string
constant representing the prefix attached to method names to
convert them to an external label.
(gnu::gcj::runtime::NameFinder::getExternalLabel): Define
using LABEL_PREFIX.
From-SVN: r64111
2003-03-10 19:45:30 +00:00
Michael Koch
a339cb5bd9
2003-03-02 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/FileChannelImpl.java
(fd): Type FileDescriptor instead of int.
(lengthInternal): Removed.
(FileChannelImpl): Fixed arguments, check type of file object.
(size): Made it native.
(implPosition): New native method.
(implTruncate): New native method.
(position): Implemented.
(truncate): Implemented.
(nio_mmap_file): Changed arguments.
(nio_munmap_file): Changed arguments.
(nio_msync): Changed arguments.
* gnu/java/nio/natFileChannelImpl.cc
(lengthInternal): Removed.
(size): New method.
(implPosition): New method.
(implTruncate): New method.
(nio_mmap_file): Changed arguments.
(nio_munmap_file): Changed arguments.
(nio_msync): Changed arguments.
From-SVN: r63668
2003-03-02 15:57:13 +00:00
Tom Tromey
d3c582c300
LocaleInformation_af_ZA.java, [...]: Updated copyright info; from Classpath.
...
* gnu/java/locale/LocaleInformation_af_ZA.java,
gnu/java/locale/LocaleInformation_ar_AE.java,
gnu/java/locale/LocaleInformation_ar_BH.java,
gnu/java/locale/LocaleInformation_ar_DZ.java,
gnu/java/locale/LocaleInformation_ar_EG.java,
gnu/java/locale/LocaleInformation_ar_IN.java,
gnu/java/locale/LocaleInformation_ar_IQ.java,
gnu/java/locale/LocaleInformation_ar_JO.java,
gnu/java/locale/LocaleInformation_ar_KW.java,
gnu/java/locale/LocaleInformation_ar_LB.java,
gnu/java/locale/LocaleInformation_ar_LY.java,
gnu/java/locale/LocaleInformation_ar_MA.java,
gnu/java/locale/LocaleInformation_ar_OM.java,
gnu/java/locale/LocaleInformation_ar_QA.java,
gnu/java/locale/LocaleInformation_ar_SD.java,
gnu/java/locale/LocaleInformation_ar_SY.java,
gnu/java/locale/LocaleInformation_ar_TN.java,
gnu/java/locale/LocaleInformation_ar_YE.java,
gnu/java/locale/LocaleInformation_be_BY.java,
gnu/java/locale/LocaleInformation_bn_IN.java,
gnu/java/locale/LocaleInformation_br_FR.java,
gnu/java/locale/LocaleInformation_bs_BA.java,
gnu/java/locale/LocaleInformation_ca_ES.java,
gnu/java/locale/LocaleInformation_cs_CZ.java,
gnu/java/locale/LocaleInformation_cy_GB.java,
gnu/java/locale/LocaleInformation_da_DK.java,
gnu/java/locale/LocaleInformation_de_AT.java,
gnu/java/locale/LocaleInformation_de_BE.java,
gnu/java/locale/LocaleInformation_de_CH.java,
gnu/java/locale/LocaleInformation_de_DE.java,
gnu/java/locale/LocaleInformation_de_LU.java,
gnu/java/locale/LocaleInformation_el_GR.java,
gnu/java/locale/LocaleInformation_en_AU.java,
gnu/java/locale/LocaleInformation_en_BW.java,
gnu/java/locale/LocaleInformation_en_CA.java,
gnu/java/locale/LocaleInformation_en_DK.java,
gnu/java/locale/LocaleInformation_en_GB.java,
gnu/java/locale/LocaleInformation_en_HK.java,
gnu/java/locale/LocaleInformation_en_IE.java,
gnu/java/locale/LocaleInformation_en_IN.java,
gnu/java/locale/LocaleInformation_en_NZ.java,
gnu/java/locale/LocaleInformation_en_PH.java,
gnu/java/locale/LocaleInformation_en_SG.java,
gnu/java/locale/LocaleInformation_en_US.java,
gnu/java/locale/LocaleInformation_en_ZA.java,
gnu/java/locale/LocaleInformation_en_ZW.java,
gnu/java/locale/LocaleInformation_es_AR.java,
gnu/java/locale/LocaleInformation_es_BO.java,
gnu/java/locale/LocaleInformation_es_CL.java,
gnu/java/locale/LocaleInformation_es_CO.java,
gnu/java/locale/LocaleInformation_es_CR.java,
gnu/java/locale/LocaleInformation_es_DO.java,
gnu/java/locale/LocaleInformation_es_EC.java,
gnu/java/locale/LocaleInformation_es_ES.java,
gnu/java/locale/LocaleInformation_es_GT.java,
gnu/java/locale/LocaleInformation_es_HN.java,
gnu/java/locale/LocaleInformation_es_MX.java,
gnu/java/locale/LocaleInformation_es_NI.java,
gnu/java/locale/LocaleInformation_es_PA.java,
gnu/java/locale/LocaleInformation_es_PE.java,
gnu/java/locale/LocaleInformation_es_PR.java,
gnu/java/locale/LocaleInformation_es_PY.java,
gnu/java/locale/LocaleInformation_es_SV.java,
gnu/java/locale/LocaleInformation_es_US.java,
gnu/java/locale/LocaleInformation_es_UY.java,
gnu/java/locale/LocaleInformation_es_VE.java,
gnu/java/locale/LocaleInformation_et_EE.java,
gnu/java/locale/LocaleInformation_eu_ES.java,
gnu/java/locale/LocaleInformation_fa_IR.java,
gnu/java/locale/LocaleInformation_fi_FI.java,
gnu/java/locale/LocaleInformation_fo_FO.java,
gnu/java/locale/LocaleInformation_fr_BE.java,
gnu/java/locale/LocaleInformation_fr_CA.java,
gnu/java/locale/LocaleInformation_fr_CH.java,
gnu/java/locale/LocaleInformation_fr_FR.java,
gnu/java/locale/LocaleInformation_fr_LU.java,
gnu/java/locale/LocaleInformation_ga_IE.java,
gnu/java/locale/LocaleInformation_gd_GB.java,
gnu/java/locale/LocaleInformation_gl_ES.java,
gnu/java/locale/LocaleInformation_gv_GB.java,
gnu/java/locale/LocaleInformation_he_IL.java,
gnu/java/locale/LocaleInformation_hi_IN.java,
gnu/java/locale/LocaleInformation_hr_HR.java,
gnu/java/locale/LocaleInformation_hu_HU.java,
gnu/java/locale/LocaleInformation_id_ID.java,
gnu/java/locale/LocaleInformation_it_CH.java,
gnu/java/locale/LocaleInformation_it_IT.java,
gnu/java/locale/LocaleInformation_iw_IL.java,
gnu/java/locale/LocaleInformation_ja_JP.java,
gnu/java/locale/LocaleInformation_ka_GE.java,
gnu/java/locale/LocaleInformation_kl_GL.java,
gnu/java/locale/LocaleInformation_ko_KR.java,
gnu/java/locale/LocaleInformation_kw_GB.java,
gnu/java/locale/LocaleInformation_lt_LT.java,
gnu/java/locale/LocaleInformation_lv_LV.java,
gnu/java/locale/LocaleInformation_mi_NZ.java,
gnu/java/locale/LocaleInformation_mk_MK.java,
gnu/java/locale/LocaleInformation_mr_IN.java,
gnu/java/locale/LocaleInformation_mt_MT.java,
gnu/java/locale/LocaleInformation_nl_BE.java,
gnu/java/locale/LocaleInformation_nl_NL.java,
gnu/java/locale/LocaleInformation_nn_NO.java,
gnu/java/locale/LocaleInformation_no_NO.java,
gnu/java/locale/LocaleInformation_oc_FR.java,
gnu/java/locale/LocaleInformation_pl_PL.java,
gnu/java/locale/LocaleInformation_pt_BR.java,
gnu/java/locale/LocaleInformation_pt_PT.java,
gnu/java/locale/LocaleInformation_ro_RO.java,
gnu/java/locale/LocaleInformation_ru_RU.java,
gnu/java/locale/LocaleInformation_ru_UA.java,
gnu/java/locale/LocaleInformation_se_NO.java,
gnu/java/locale/LocaleInformation_sk_SK.java,
gnu/java/locale/LocaleInformation_sl_SI.java,
gnu/java/locale/LocaleInformation_sq_AL.java,
gnu/java/locale/LocaleInformation_sr_YU.java,
gnu/java/locale/LocaleInformation_sv_FI.java,
gnu/java/locale/LocaleInformation_sv_SE.java,
gnu/java/locale/LocaleInformation_ta_IN.java,
gnu/java/locale/LocaleInformation_te_IN.java,
gnu/java/locale/LocaleInformation_tg_TJ.java,
gnu/java/locale/LocaleInformation_tl_PH.java,
gnu/java/locale/LocaleInformation_tr_TR.java,
gnu/java/locale/LocaleInformation_uk_UA.java,
gnu/java/locale/LocaleInformation_ur_PK.java,
gnu/java/locale/LocaleInformation_uz_UZ.java,
gnu/java/locale/LocaleInformation_vi_VN.java,
gnu/java/locale/LocaleInformation_yi_US.java,
gnu/java/locale/LocaleInformation_zh_CN.java,
gnu/java/locale/LocaleInformation_zh_HK.java,
gnu/java/locale/LocaleInformation_zh_SG.java,
gnu/java/locale/LocaleInformation_zh_TW.java: Updated copyright
info; from Classpath.
From-SVN: r63628
2003-03-01 22:22:23 +00:00
Tom Tromey
2759b2605e
XPanelPeer.java (beginLayout, [...]): New methods.
...
* gnu/awt/xlib/XPanelPeer.java (beginLayout, endLayout,
isPaintPending): New methods.
* gnu/awt/xlib/XFramePeer.java (getState, setState,
setMaximizedBounds): New methods.
(beginLayout, endLayout, isPaintPending): Likewise.
* gnu/awt/xlib/XCanvasPeer.java (isFocusable): New method.
(requestFocus): Likewise.
(isObscured): Likewise.
(canDetermineObscurity): Likewise.
(coalescePaintEvent): Likewise.
(updateCursorImmediately): Likewise.
(createVolatileImage): Likewise.
(handlesWheelScrolling): Likewise.
(createBuffers): Likewise.
(getBackBuffer): Likewise.
(flip): Likewise.
(destroyBuffers): Likewise.
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added DropTargetPeer.java,
RobotPeer.java.
* gnu/java/awt/GLightweightPeer.java,
gnu/java/awt/peer/gtk/GtkChoicePeer.java,
gnu/java/awt/peer/gtk/GtkComponentPeer.java,
gnu/java/awt/peer/gtk/GtkContainerPeer.java,
gnu/java/awt/peer/gtk/GtkFramePeer.java,
gnu/java/awt/peer/gtk/GtkPopupMenuPeer.java,
gnu/java/awt/peer/gtk/GtkTextComponentPeer.java,
java/awt/dnd/peer/DragSourceContextPeer.java,
java/awt/dnd/peer/DropTargetContextPeer.java,
java/awt/peer/ButtonPeer.java,
java/awt/peer/CheckboxMenuItemPeer.java,
java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
java/awt/peer/ComponentPeer.java,
java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
java/awt/peer/MenuBarPeer.java,
java/awt/peer/MenuComponentPeer.java,
java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
java/awt/peer/PopupMenuPeer.java,
java/awt/peer/ScrollPanePeer.java,
java/awt/peer/ScrollbarPeer.java, java/awt/peer/TextAreaPeer.java,
java/awt/peer/TextComponentPeer.java,
java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java:
New versions from Classpath.
* java/awt/dnd/peer/DropTargetPeer.java: New file from Classpath.
* java/awt/peer/RobotPeer.java: Likewise.
From-SVN: r63627
2003-03-01 22:14:21 +00:00
Michael Koch
9d4c156509
MappedByteFileBuffer.java, [...]: New files, both are not compiled yet to get not noncompiling CVS.
...
2003-02-25 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/MappedByteFileBuffer.java,
gnu/java/nio/natMappedByteFileBuffer.cc:
New files, both are not compiled yet to get not noncompiling CVS.
From-SVN: r63403
2003-02-25 11:09:44 +00:00
Michael Koch
2d4fad8e02
natSocketChannelImpl.cc: Reverse logic for DISABLE_JAVA_NET.
...
2003-02-21 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/natSocketChannelImpl.cc:
Reverse logic for DISABLE_JAVA_NET. Thanks to Krister Walfridsson
<cato@df.lth.se> for pointing to it.
From-SVN: r63212
2003-02-21 08:19:34 +00:00
Michael Koch
bb7dd383f0
natSocketChannelImpl.cc: Added support for platforms without network support.
...
2003-02-19 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/natSocketChannelImpl.cc:
Added support for platforms without network support.
From-SVN: r63155
2003-02-20 07:24:37 +00:00
Rainer Orth
a191802c42
natStackTrace.cc: Include platform.h immediately after config.h.
...
* gnu/gcj/runtime/natStackTrace.cc: Include platform.h immediately
after config.h. Use <> for consistency.
* java/lang/natObject.cc: Likewise.
* java/lang/natRuntime.cc: Likewise.
* java/lang/natSystem.cc: Likewise.
* java/util/natTimeZone.cc: Likewise.
* win32.cc: Likewise.
* include/posix.h (fcntl, socket, connect, close, bind, accept,
listen, write, read): Undef to avoid interference from OS macros.
From-SVN: r63122
2003-02-19 16:28:37 +00:00
Michael Koch
681979f075
2003-02-19 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/ByteBufferImpl.java
(ByteBufferImpl): Renamed two variables.
* gnu/java/nio/CharBufferImpl.java
(CharBufferImpl): Renamed two variables.
* gnu/java/nio/DoubleBufferImpl.java
(DoubleBufferImpl): Renamed two variables.
* gnu/java/nio/FloatBufferImpl.java
(FloatBufferImpl): Renamed two variables.
* gnu/java/nio/IntBufferImpl.java
(IntBufferImpl): Renamed two variables.
* gnu/java/nio/LongBufferImpl.java
(LongBufferImpl): Renamed two variables.
* gnu/java/nio/ShortBufferImpl.java
(ShortBufferImpl): Renamed two variables.
* java/nio/CharBuffer.java
(wrap): Fixed arguments to CharBufferImpl constructor.
(hasArray): Only not read-only buffers have backing arrays.
(length): Documentation added.
(subSequence): Documentation added.
* java/nio/DoubleBuffer.java
(hasArray): Only not read-only buffers have backing arrays.
* java/nio/FloatBuffer.java
(hasArray): Only not read-only buffers have backing arrays.
* java/nio/IntBuffer.java
(hasArray): Only not read-only buffers have backing arrays.
* java/nio/LongBuffer.java
(hasArray): Only not read-only buffers have backing arrays.
* java/nio/ShortBuffer.java
(hasArray): Only not read-only buffers have backing arrays.
From-SVN: r63101
2003-02-19 11:47:49 +00:00
Michael Koch
8d928fb140
2003-02-19 Michael Koch <konqueror@gmx.de>
...
* gnu/awt/j2d/Graphics2DImpl.java
(getFontRenderContext): New method.
(drawGlyphVector): New method.
* java/awt/Graphics2D.java
(getFontRenderContext): New abstract method.
(drawGlyphVector): New abstract method.
From-SVN: r63097
2003-02-19 09:46:43 +00:00
Hans Boehm
56bba8cf57
XToolkit.java (getFontMetrics): initialize if necessary.
...
2003-02-18 Hans Boehm <Hans.Boehm@hp.com>
* gnu/awt/xlib/XToolkit.java (getFontMetrics): initialize
if necessary.
* gnu/java/awt/peer/gtk/GtkButtonPeer.java,
gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
(setFont, gtkSetFont): add.
gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer):
Propagate font to peer. (setFont): add FIXME comment.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
(gtkTextGetSize): fix height, width computation.
* gnu/java/awt/peer/gtk/GtkFontPeer.java (GtkFontPeer):
Make X font name a bit less bogus.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
(post_adjustment_event): Pass on GTK_SCROLL_NONE.
* java/awt/Scrollbar.java (setValues): Fix visibleAmount range check.
(processAdjustmentEvent): Adjust value.
* java/awt/FlowLayout.java (layoutContainer) Fix 2 indexing and one
logic errors.
* java/awt/Component.java (setVisible, show, hide): Call show and
hide methods in subclasses.
(getPreferredSize): don't set prefSize before we have peer.
* java/awt/TextArea.java, java/awt/TextField.java (getPreferredSize):
Guess (0,0) if we don't have peer.
From-SVN: r63077
2003-02-19 00:35:35 +00:00
Michael Koch
b97991522d
natServerSocketChannelImpl.cc: Removed.
...
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-14 12:07:31 +00:00
Michael Koch
1cb02bdfd3
2003-02-13 Michael Koch <konqueror@gmx.de>
...
* gnu/java/awt/peer/gtk/GdkGraphics.java
(drawString): New stubbed method.
* java/awt/Graphics.java
(drawString): New method.
From-SVN: r62862
2003-02-13 19:26:57 +00:00
Michael Koch
6b603eb999
2003-02-13 Michael <konqueror@gmx.de>
...
* 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-13 15:12:36 +00:00
Ranjit Mathew
4cce66c3d7
NameFinder.java (createStackTraceElement): Use lastIndexOf( ) instead of 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-13 09:33:18 +00:00
Michael Koch
3b95ff5ebb
2003-02-13 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/natSocketChannelImpl.cc
(SocketConnect): This is not implemented yet.
(SocketBind): This is not implemented yet.
From-SVN: r62833
2003-02-13 08:50:52 +00:00
Michael Koch
9038b8b4d3
natByteBufferImpl.cc, [...]: Added copyright and license.
...
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-13 08:40:35 +00:00
Michael Koch
63640075b0
FileBasedFactory.java, [...]: New files, all merged from classpath.
...
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-13 07:45:58 +00:00
Michael Koch
248606ee91
ByteBufferImpl.java: Reformated and removed some code.
...
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-11 11:16:18 +00:00
Michael Koch
194ea9ced6
2003-02-11 Michael Koch <konqueror@gmx.de>
...
* 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-11 09:44:57 +00:00
Michael Koch
e3b6a47f66
FileLockImpl.java, [...]: New files.
...
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-11 06:47:50 +00:00
Raif S. Naffah
ff23b16ca7
SHA1PRNG.java (ensureIsSeeded): new method used to ensure seeding has 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-11 00:08:32 +00:00
Tom Tromey
5aac1dac62
Window.java (Window(Window,GraphicsConfiguration)): Don't try to find graphics configuration.
...
* java/awt/Window.java (Window(Window,GraphicsConfiguration)):
Don't try to find graphics configuration.
* java/awt/Toolkit.java (default_toolkit_name): Use new
Configuration entry.
* gnu/classpath/Configuration.java.in (default_awt_peer_toolkit):
New global.
* configure: Rebuilt.
* configure.in (TOOLKIT): New subst.
(--enable-java-awt) [xlib, gtk]: Set TOOLKIT if required.
Do AWT tests much earlier. Run Gtk tests. Make jniinclude
directory. Make output directories for .c files.
* Makefile.in: Rebuilt.
* Makefile.am (lib_gnu_java_awt_peer_gtk_la_SOURCES): New macro.
(toolexeclib_LTLIBRARIES): Added cond_gtk_ltlibrary.
(all_java_source_files): Added new sources.
($(lib_gnu_java_awt_peer_gtk_la_OBJECTS)): New target.
(gtk_c_files): New macro.
(gtk_c_source_files): New macro.
(cond_gtk_ltlibrary): New macro.
($(gtk_c_files)): New target.
(lib_gnu_java_awt_peer_gtk_la_LIBADD): New macro.
(gtk_awt_peer_sources): New macro.
(gtk_c_headers): New macro.
($(gtk_c_headers)): New target.
(ACLOCAL_AMFLAGS): New macro.
* gtk.m4, glib.m4, libart.m4: New files.
* gnu/java/awt/peer/gtk/GdkFontMetrics.java,
gnu/java/awt/peer/gtk/GdkGraphics.java,
gnu/java/awt/peer/gtk/GtkArg.java,
gnu/java/awt/peer/gtk/GtkArgList.java,
gnu/java/awt/peer/gtk/GtkButtonPeer.java,
gnu/java/awt/peer/gtk/GtkCanvasPeer.java,
gnu/java/awt/peer/gtk/GtkCheckboxGroupPeer.java,
gnu/java/awt/peer/gtk/GtkCheckboxMenuItemPeer.java,
gnu/java/awt/peer/gtk/GtkCheckboxPeer.java,
gnu/java/awt/peer/gtk/GtkChoicePeer.java,
gnu/java/awt/peer/gtk/GtkClipboard.java,
gnu/java/awt/peer/gtk/GtkComponentPeer.java,
gnu/java/awt/peer/gtk/GtkContainerPeer.java,
gnu/java/awt/peer/gtk/GtkDialogPeer.java,
gnu/java/awt/peer/gtk/GtkFileDialogPeer.java,
gnu/java/awt/peer/gtk/GtkFontPeer.java,
gnu/java/awt/peer/gtk/GtkFramePeer.java,
gnu/java/awt/peer/gtk/GtkGenericPeer.java,
gnu/java/awt/peer/gtk/GtkImage.java,
gnu/java/awt/peer/gtk/GtkImagePainter.java,
gnu/java/awt/peer/gtk/GtkLabelPeer.java,
gnu/java/awt/peer/gtk/GtkListPeer.java,
gnu/java/awt/peer/gtk/GtkMainThread.java,
gnu/java/awt/peer/gtk/GtkMenuBarPeer.java,
gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java,
gnu/java/awt/peer/gtk/GtkMenuItemPeer.java,
gnu/java/awt/peer/gtk/GtkMenuPeer.java,
gnu/java/awt/peer/gtk/GtkOffScreenImage.java,
gnu/java/awt/peer/gtk/GtkPanelPeer.java,
gnu/java/awt/peer/gtk/GtkPopupMenuPeer.java,
gnu/java/awt/peer/gtk/GtkScrollbarPeer.java,
gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
gnu/java/awt/peer/gtk/GtkTextComponentPeer.java,
gnu/java/awt/peer/gtk/GtkTextFieldPeer.java,
gnu/java/awt/peer/gtk/GtkToolkit.java,
gnu/java/awt/peer/gtk/GtkWindowPeer.java,
gnu/java/awt/peer/gtk/TestAWT.java,
gnu/java/awt/peer/gtk/Test.java: New files from Classpath.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPopupMenuPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c,
jni/gtk-peer/gthread-jni.c, jni/gtk-peer/gthread-jni.h,
jni/gtk-peer/gtkpeer.h, jni/classpath/jcl.c, jni/classpath/jcl.h,
jni/classpath/jnilink.c, jni/classpath/jnilink.h,
jni/classpath/native_state.c, jni/classpath/native_state.h,
jni/classpath/primlib.c, jni/classpath/primlib.h: Likewise.
From-SVN: r62187
2003-01-31 17:54:14 +00:00
Ranjit Mathew
e4261ef72c
configure.in: Specifically define HAVE_BACKTRACE if building for MinGW.
...
2003-01-27 Ranjit Mathew <rmathew@hotmail.com>
* configure.in: Specifically define HAVE_BACKTRACE if building
for MinGW.
* include/win32.h: Remove HAVE_BACKTRACE definition.
* gnu/gcj/runtime/natStackTrace.cc: Include platform.h.
* configure: Rebuilt.
From-SVN: r62000
2003-01-28 19:10:00 +00:00
Scott Gilbertson
f826d5952c
natGC.cc (fillPolygon): New method.
...
2003-01-15 Scott Gilbertson <scottg@mantatest.com>
* gnu/gcj/xlib/natGC.cc (fillPolygon): New method.
* gnu/gcj/xlib/GC.java (fillPolygon): Declare.
* gnu/awt/xlib/XGraphics.java (fillPolygon): Added translateX and
translateY arguments. Implement.
* gnu/awt/j2d/IntegerGraphicsState.java (fillPolygon): Pass
down translation arguments.
(drawPolyline, drawPolygon): Fix incorrect tests.
* gnu/awt/j2d/DirectRasterGraphics.java (fillPolygon): Added
translateX and translateY arguments.
From-SVN: r61369
2003-01-15 23:53:49 +00:00
Scott Gilbertson
7a968a5782
XToolkit.java (getColorModel): Implemented.
...
2003-01-15 Scott Gilbertson <scottg@mantatest.com>
* gnu/awt/xlib/XToolkit.java (getColorModel): Implemented.
* gnu/awt/xlib/XGraphicsConfiguration.java (getPixel): Work with
16-bit display mode.
From-SVN: r61362
2003-01-15 23:18:58 +00:00
Dhek Bhun Kho
5e694fba05
UnicastServerRef.java (unexportObject): Don't throw RemoteException.
...
2003-01-03 Dhek Bhun Kho <bhun@chello.nl>
* gnu/java/rmi/server/UnicastServerRef.java (unexportObject):
Don't throw RemoteException.
* java/rmi/server/UnicastRemoteObject.java (unexportObject): Don't
throw RemoteException.
From-SVN: r60854
2003-01-03 22:57:25 +00:00