summaryrefslogtreecommitdiffstats
path: root/libjava/java
Commit message (Collapse)AuthorAgeFilesLines
...
* 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>mkoch2004-03-121-20/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/URI.java (toURL): Implemented. 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp> * java/net/URI.java (URI_REGEXP) updated to contain scheme specific part. (SCHEME_SPEC_PART_GROUP) new constant. (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP) updated to make room for SCHEME_SPEC_PART_GROUP. (parseURI) parse scheme specific part. (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart, getSchemeSpecificPart, getAuthority, getUserInfo, getPath, getQuery, getFragment) implemented. 2004-03-12 Dalibor Topic <robilad@kaffe.org> * libraries/javalib/java/net/URI.java partially implemented using java.util.regex. (URI_REGEXP) new constant. Used to parse URIs. (SCHEME_GROUP) new constant representing index of scheme group in parsed URI. (AUTHORITY_GROUP) new constant representing index of authority group in parsed URI. (PATH_GROUP) new constant representing index of path group in parsed URI. (QUERY_GROUP) new constant representing index of query group in parsed URI. (FRAGMENT_GROUP) new constant representing index of fragment group in parsed URI. (getURIGroup) new static utility method. (parseURI) implemented. (quote) stub for new static utility method. (quoteAuthority) stub for new static utility method. (quoteHost) stub for new static utility method. (quotePath) stub for new static utility method. (quoteUserInfo) stub for new static utility method. (URI) implemented. (create) don't throw URISyntaxException. Implemented. (toString) implemented. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79375 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-12 Michael Koch <konqueror@gmx.de>mkoch2004-03-121-1/+1
| | | | | | | | * java/net/HttpURLConnection.java (getResponseCode): Fix another typo in javadoc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79374 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-11 Michael Koch <konqueror@gmx.de>mkoch2004-03-111-4/+3
| | | | | | | | * java/util/logging/Level.java (parse): Use String.equals() instead of ==. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79333 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-11 Michael Koch <konqueror@gmx.de>mkoch2004-03-111-2/+2
| | | | | | | | | * java/util/Locale.java (getISO3Language): Use String.equals() instead of ==. (getISO3Country): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79330 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-11 Dalibor Topic <robilad@kaffe.org>mkoch2004-03-112-8/+13
| | | | | | | | | | | | | | | | | | * java/text/AttributedString.java (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)): Use HashMap instead of Hashtable since value can be null, and you can not store a null value in a Hashtable. 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org> * java/text/AttributedStringIterator.java (getAllAttributesKey): Return only keys concerned by the current iterator. (getAttributes): Use strict inequality for end_index. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79329 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-11 Michael Koch <konqueror@gmx.de>mkoch2004-03-111-1/+1
| | | | | | | | * java/net/HttpURLConnection.java: Fixed typo in javadoc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79328 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org>mkoch2004-03-111-5/+23
| | | | | | | | | | | | | | * java/io/BufferedInputStream.java (marktarget): New field for max mark limit. (CHUNKSIZE): New constant for incremental mark buffer allocation. (mark): Use new fields. (read): Likewise. (read(byte[],int,int)): Likewise. (skip): Likewise. (refill): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79326 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-11 Mark Wielaard <mark@klomp.org>mkoch2004-03-111-1/+9
| | | | | | | | * java/beans/BeanDescriptor.java (BeanDescriptor): Set the FeatureDescriptor programmatic name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79324 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-09 Michael Koch <konqueror@gmx.de>mkoch2004-03-092-79/+77
| | | | | | | | | | | | | | | | | * java/lang/Thread.java (runnable): Moved around. (daemon): Renamed from daemon_flag. (contextClassLoader): Renamed from context_class_loader. (Thread): Reordered constructors. (activeCount): Use group directly. (destroy): Make it a java method. Throw NoSuchMethodError like Sun does. (holdsLock): Reworked javadoc. (setDaemon): Reworked. * java/lang/natThread.cc (destroy): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79200 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-03-08 Anthony Green <green@redhat.com>green2004-03-092-35/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: Build property resource files into libgcj. * Makefile.in: Rebuilt. * java/util/regex/Matcher.java, java/util/regex/Pattern.java, java/util/regex/PatternSyntaxException.java, gnu/regexp/CharIndexed.java, gnu/regexp/CharIndexedCharArray.java, gnu/regexp/CharIndexedInputStream.java, gnu/regexp/CharIndexedReader.java, gnu/regexp/CharIndexedString.java, gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java, gnu/regexp/REException.java, gnu/regexp/REFilterInputStream.java, gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java, gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java, gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java, gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java, gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java, gnu/regexp/RETokenLookAhead.java, gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java, gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java, gnu/regexp/RETokenStart.java, gnu/regexp/RETokenWordBoundary.java, gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79198 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/nio/channels/Channels.java (newInputStream, newOutputStream):bothner2004-03-032-2/+48
| | | | | | | | | | | Optimize when argument is a FileChannelImpl. (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)): New native methods. * java/nio/channels/natChannels.cc: New file for new native methods. * Makefile.am: Update accordingly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78867 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natPosixProcess.cc (startProcess): Fix thinko.bothner2004-03-011-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78725 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natPosixProcess.cc (startProcess): Implement standardbothner2004-02-292-9/+18
| | | | | | | | streams using FileChannelImpl, not FileDescriptor. * java/lang/natWin32Process.cc (startProcess): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78664 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,bothner2004-02-292-47/+103
| | | | | | | | | | unmapImpl): New dummy methods, to be overridden by subclass. (finalize, isLoaded, load, force): New methods. * java/nio/MappedByteBufferImpl.java: More-or-less rewrite. Now works, at least for read mapping. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78662 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/FileDescriptor.java: Implement on top of FileChannel.bothner2004-02-297-1184/+106
| | | | | | | | | | | | | | | | | | | | Remove native methods. * java/io/natFileDescriptorEcos.cc: Remove file. * java/io/natFileDescriptorPosix.cc: Remove file. * java/io/natFileDescriptorWin32.cc: Remove file. * java/io/FileInputStream.java (ch): Change type to FileChannelImpl. (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor. (<init>(FileChannelImpl)): New package-private constructor. (<init>(FileDescriptor)): Extract FileChannelImpl from arg. (available, close, read, skip): Implement using FileChannelImpl. (getFD): Allocate FileDescriptor if needed. (getChannel): Is now trivial. * java/io/FileOutputStream.java: Corresponding changes. * java/io/RandomAccessFile.java: Corresponding changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78661 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/nio/channels/FileChannelImpl.java: Moved to packagebothner2004-02-292-551/+0
| | | | | | | | | | gnu/java/nio/channels, since we need to refer to it from java.io. * java/nio/channels/natFileChannelImpl.cc: Removed file. * Makefile.am, configure.in: Updated accordingly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78660 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-28 Michael Koch <konqueror@gmx.de>mkoch2004-02-281-0/+1
| | | | | | | | * java/io/ObjectInputStream.java: Compile fix, damn I commited the wrong code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78629 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>mkoch2004-02-283-173/+304
| | | | | | | | | | | | | | | | * java/io/ObjectInputStream.java (readClassDescriptor): Keep elements of the mapping non null. (checkTypeConsistency): New method. (readFields): Fixed main loop and base logic. Small reindentation. * java/io/ObjectStreamField.java (lookupField): New method to update the field reference. (checkFieldType): New method. * java/io/ObjectStreamClass.java (setClass, setFields): Call lookupField when building the field database. Check the real field type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78627 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-28 Michael Koch <konqueror@gmx.de>mkoch2004-02-281-1/+1
| | | | | | | | * java/nio/ByteOrder.java (nativeOrder): Use equals() to compare strings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78626 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-26 Michael Koch <konqueror@gmx.de>mkoch2004-02-263-11/+13
| | | | | | | | | | | | | | | | | | | * gnu/java/nio/FileLockImpl.java (finalize): Made protected. * java/nio/channels/FileChannel.java (MapMode.READ_ONLY): Made final. (MapMode.READ_WRITE): Made final. (MapMode.PRIVATE): Made final. * java/nio/channels/SocketChannel.java (open): Simplified code. * java/nio/channels/spi/AbstractSelectableChannel.java (registered): Unused, removed. (keyFor): Check channel is open, only locate key and not add a new one. (register): Don't delete attachments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78519 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-25 Andrew Haley <aph@redhat.com>aph2004-02-261-1/+10
| | | | | | | | | PR java/14296: * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Make sure we have a valid method index. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78504 138bc75d-0d04-0410-961f-82ee72b054a4
* de-pessimizationgreen2004-02-251-4/+21
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78447 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/nio/ByteBuffer.java (endian): Make non-private so otherbothner2004-02-165-96/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | java.nio classes can inherit it. (<init>): Don't bother clearing array_offset. * java/nio/ByteBuffer.java (allocate): Re-implement using wrap. * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow. Remove redundant test. * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer, asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer): Use new XxxViewBufferImpl constructors. * java/nio/MappedByteBufferImpl.java: Likewise. * java/nio/DirectByteBufferImpl.java: Likewise. * java/nio/ByteBufferImpl.java: Remove one constructor. Inline super in remaining constructor. * java/nio/ByteBuffer.java: Remove unused constructor. * java/nio/ByteBufferImpl.java (shiftDown): New optimized method. * java/nio/ByteBufferImpl.java (get, put): Add array_offset. * java/nio/DirectByteBufferImpl.java (owner): New field. (offset): Remove unused field. (<init>): Modify one and add another constructor. Change callers. (allocateDirect): Removed - not used. (getImpl, putImpl): Make static and pass address explicitly, to make them useful for MappedByteBufferImpl. (get, put): Check for underflow. Modify for new getImpl. (getImpl): New native method where target is array. (get(byte[],int,int)): Use the above. (adjustAddress): New static native method. (slice, duplicate, asReadOnly): New implementations. * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown, adjustAddress): New or updated native methods. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77919 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/nio/CharViewBufferImpl.java: New convenience constructor.bothner2004-02-166-6/+60
| | | | | | | | | | | | Fix buggy call to super constructor. * java/nio/DoubleViewBufferImpl.java: Likewise. * java/nio/FloatViewBufferImpl.java: Likewise. * java/nio/IntViewBufferImpl.java: Likewise. * java/nio/LongViewBufferImpl.java: Likewise. * java/nio/ShortViewBufferImpl.java: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77917 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/nio/CharBufferImpl.java: Inline super constructor.bothner2004-02-1612-48/+18
| | | | | | | | | | | | | | | | | * java/nio/DoubleBufferImpl.java: Likewise. * java/nio/FloatBufferImpl.java: Likewise. * java/nio/IntBufferImpl.java: Likewise. * java/nio/LongBufferImpl.java: Likewise. * java/nio/ShortBufferImpl.java: Likewise. * java/nio/CharBuffer.java: Remove unused constructor. * java/nio/DoubleBuffer.java: Likewise. * java/nio/FloatBuffer.java: Likewise. * java/nio/IntBuffer.java: Likewise. * java/nio/LongBuffer.java: Likewise. * java/nio/ShortBuffer.java: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77916 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org>mkoch2004-02-151-2/+14
| | | | | | | | * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the overflow of fieldmapping. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77843 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/nio/channels/spi/AbstractInterruptibleChannel.java (close):bothner2004-02-141-1/+1
| | | | | | | Set closed before calling implCloseChannel, as in the spec. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77809 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-11 Michael Koch <konqueror@gmx.de>mkoch2004-02-116-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/DatagramSocket.java (setReuseAddress): Use Boolean.valueOf() instead of creating a new Boolean object. (setBroadcast): Likewise. * java/net/MulticastSocket.java (setLoopbackMode): Likewise. * java/net/ServerSocket.java (setReuseAddress): Likewise. * java/net/Socket.java (setTcpNoDelay): Likewise. (setSoLinger): Likewise. (setOOBInline): Likewise. (setKeepAlive): Likewise. (setReuseAddress): Likewise. * java/net/URLConnection.java (setContentHandler): Replace == with equals(). * java/net/URLStreamHandler.java (hostSEquals): Fix checking host addresses. (toExternalForm): Dont check protocol for null. We know already its not null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77670 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-10 David Jee <djee@redhat.com>djee2004-02-103-1/+4
| | | | | | | | | | | | | * java/awt/BorderLayout.java (calcCompSize): Invisible components get zero dimensions. * java/awt/Button.java (setLabel): Set actionCommand. * java/awt/Component.java (show): Invalidate component and parent container. (hide): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77613 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-10 David Jee <djee@redhat.com>djee2004-02-101-113/+367
| | | | | | | | | | | | * java/awt/GridBagLayout.java (GridBagLayout): New private field, internalcomptable. (lookupInternalConstraints): New method. (ArrangeGrid): Use components' MINSIZE. Use internalcomptable. (GetLayoutInfo): Reimplement. (calcCellSizes): Ignore rows/columns with size 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77612 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/nio/ByteBuffer.java (shiftDown): New helper method.bothner2004-02-0812-548/+461
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/nio/natDirectByteBufferImpl.cc (shiftDown): New implementation. * java/nio/ByteBufferImpl.java (compact): Use new shiftDown method. * sava/nio/ByteBufferHelper.java: Remove redundant 'final' specifiers. Pass ByteOrder parameter to most methods, since the underlying ByteBuffer's order isn't always what we should use. * java/nio/ByteBufferImpl.java: Pass byte-order various places. * java/nio/DirectByteBufferImpl.java: Likewise. Use ByteBufferHelper methods. * java/nio/MappedByteBufferImpl.java: Likewise. (compact): Use shiftDown. * java/nio/CharViewBufferImpl.java (<init>): Pass byte-order. (get, put): Use ByteBufferHelper. (compact): Use new shiftDown method. (duplicate(boolean)): New helper method. (duplicate, asReadOnlyBuffer): Use it. (order): Return endian field. * java/nio/DoubleViewBufferImpl.java: Likewise. * java/nio/FloatViewBufferImpl.java: Likewise. * java/nio/IntViewBufferImpl.java: Likewise. * java/nio/LongViewBufferImpl.java: Likewise. * java/nio/ShortViewBufferImpl.java: Likewise. * java/nio/CharViewBufferImpl.java (subsequence): Redundant test. * java/nio/DirectByteBufferImpl.java (shiftDown): New native method. (compact): Re-implement using shiftDown. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77501 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-06 Michael Koch <konqueror@gmx.de>mkoch2004-02-061-1/+5
| | | | | | | | * java/io/ObjectInputStream.java (currentClassLoader): Reverted to old version of this method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77397 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-06 Jeroen Frijters <jeroen@frijters.net>mkoch2004-02-063-595/+458
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/io/ObjectInputStream.java: Made all calls to dumpElement[ln] conditional on dump flag. (readObject): Changed to use cached info from ObjectStreamClass. (readClassDescriptor): Cache more information in ObjectStreamClass. (processResolution, readFields): Use cached info from ObjectStreamClass. (newObject): Throw exception instead of returning null for failure. (getField, getMethod, callReadMethod, setBooleanField, setByteField, setCharField, setDoubleField, setFloatField, setIntField, setLongField, setShortField, setObjectField, readObjectParams): Removed. (dumpElement, dumpElementln): Removed dump flag condition check. * java/io/ObjectStreamField.java (hasReadMethod): Removed. (setClass): Added call to cacheMethods() (findMethod): New method. (cacheMethods): New method. (ObjectStreamClass): Added call to cacheMethods(). (setFields): Cache fields. (getClassUID): Use AccessController.doPrivileged to invoke setAccessible. (readObjectMethod, readResolveMethod, realClassIsSerializable, realClassIsExternalizable, fieldMapping, firstNonSerializableParent): New fields. * java/io/ObjectStreamField.java (ObjectStreamField): New constructor. (ObjectStreamField): Removed FIXME workaround. (getTypeString, isPrimitive): Made safe for cases where type == null. (setBooleanField, setByteField, setCharField, setShortField, setIntField, setLongField, setFloatField, setDoubleField, setObjectField): New methods. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77395 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>fitzsim2004-02-051-1/+5
| | | | | | | | * java/awt/Component.java (getFont): Return a default font instead of null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77352 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-05 Thomas Fitzsimmons <fitzsim@redhat.com>fitzsim2004-02-051-17/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/Scrollbar.java (next_scrollbar_number): New field. (Scrollbar (int, int, int, int, int)): Make default page increment 10. (setValues): Only call peer.setValues if one of the values has changed. (generateName): New method. (getUniqueLong): New method. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c (range_scrollbar): Remove structure. (post_adjustment_event): Remove function. (post_change_event): Accept jobject argument. (create): Cast jints to gdoubles. Round scrollbar values to the nearest integer. Clamp min, max and value settings. (connectJObject): Connect hook to widget->window. (connectSignals): Remove range_scrollbar structure variables. Remove "move-slider" connection. Pass global peer reference to "value-changed" callback. (setLineIncrement): Cast jint value to gdouble. (setPageIncrement): Likewise. (setValues): Likewise. Clamp min, max and value settings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77332 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-05 Michael Koch <konqueror@gmx.de>mkoch2004-02-051-7/+7
| | | | | | | | | * java/awt/datatransfer/DataFlavor.java (imageFlavor): Javadoc added. (javaJVMLocalObjectType): Fixed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77328 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-05 Michael Koch <konqueror@gmx.de>mkoch2004-02-051-264/+260
| | | | | | | | | | | | | * java/lang/Thread.java (Thread): Reordered. (setContextClassLoader): Fixed javadoc comment. (setPriority): Reordered. (yield): Reordered. (initialize_native): Reordered. (gen_name): Reordered. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77327 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-05 Michael Koch <konqueror@gmx.de>mkoch2004-02-051-86/+101
| | | | | | | | | * java/lang/Thread.java: Reordered fields, reformated much code, no functional changes, some variables renamed, javadoc comments merged. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77322 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-05 Michael Koch <konqueror@gmx.de>mkoch2004-02-053-109/+292
| | | | | | | | | | * java/util/zip/Deflater.java, java/util/zip/DeflaterOutputStream.java, java/util/zip/GZIPInputStream.java: Reformated and javadoc comments merged from classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77319 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-02 Graydon Hoare <graydon@redhat.com>graydon2004-02-041-56/+52
| | | | | | | | | | * javax/swing/SwingUtilities.java: Many new functions. * java/awt/Container.java (LightweightDispatcher): Reimplement. * javax/swing/basic/BasicGraphicsUtils.java (getPreferredButtonSize): Start layout from top-left corner. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77271 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/geom/AffineTransform.java:rodimina2004-02-041-8/+47
| | | | | | | | | | | | Corrected comments on the field definitions for m11 and m10. (shear): Fixed few errors that caused shear transformation to be performed incorrectly. (createInverse): Fixed to return correct inverse of the given matrix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77261 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natPosixProcess.cc (startProcess): Handle case wheretromey2004-02-041-3/+3
| | | | | | | PATH or LD_LIBRARY_PATH is not set in parent environment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77203 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>fitzsim2004-02-0320-687/+682
| | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GtkListPeer.java, java/awt/BorderLayout.java, java/awt/CardLayout.java, java/awt/CheckboxGroup.java, java/awt/Choice.java, java/awt/Component.java, java/awt/Container.java, java/awt/FontMetrics.java, java/awt/GridBagLayout.java, java/awt/LayoutManager2.java, java/awt/List.java, java/awt/Menu.java, java/awt/MenuBar.java, java/awt/MenuItem.java, java/awt/Polygon.java, java/awt/Rectangle.java, java/awt/ScrollPane.java, java/awt/Scrollbar.java, java/awt/TextArea.java, java/awt/TextField.java, java/awt/image/renderable/RenderContext.java, javax/swing/JApplet.java: Fix handling of alias methods, where a method has been deprecated in favour of a new one with the same funtion but a different name. Put the method implementation in the deprecated method and have the new method call the deprecated one. Make all other code call the new method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77178 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/nio/DatagramChannelImpl.javamembar2004-02-031-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | (inChannelOperation): New field. (isInChannelOperation): New accessor. (setInChannelOperation): New modifier. (receive): Use capacity() - position() of destination buffer instead of remaining(). Set and reset our "in channel operation indicator" before and after delegating the receive to our datagram socket. Removed testing code. Update destination buffer's current position if it is backed by a byte array (hasArray() is true). (send): Set and reset our "in channel operation indicator" before and after delegating the send to our datagram socket. Removed testing code. Update source buffer's current position if it is backed by a byte array (hasArray() is true). * gnu/java/nio/SocketChannelImpl.java (read(ByteBuffer)): Use capacity() - position() of destination buffer instead of remaining(). * java/net/DatagramSocket.java (receive): Don't throw an IllegalBlockingModeException if we have a non-blocking channel which initiated this operation. (send): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77173 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/java/net/PlainSocketImpl.javamembar2004-01-303-8/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (inChannelOperation): New field. (isInChannelOperation): New accessor. (setInChannelOperation): New modifier. * gnu/java/nio/ServerSocketChannelImpl.java (accept): Set and reset our server socket's PlainSocketImpl's "in channel operation" indicator before and after delegating the accept to our server socket. * gnu/java/nio/SocketChannelImpl.java (connect): Set and reset our socket's PlainSocketImpl's "in channel operation" indicator before and after delegating the operation to our socket. (read): Likewise. (write): Likewise. * java/net/ServerSocket.java (implAccept): Don't throw an IllegalBlockingModeException if we have a non-blocking channel which initiated this accept operation. * java/net/Socket.java (connect): Don't throw an IllegalBlockingModeException if we have a non-blocking channel which initiated this connect operation. * java/nio/channels/spi/AbstractSelectableChannel.java (configureBlocking): Only call implConfigureBlocking() if the desired blocking mode is different from our current one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76956 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/BufferedReader.java (sbuf): New field.membar2004-01-302-25/+27
| | | | | | | | | | | | | | | | (readLine): Use String.valueOf instead of new String() as per Per Bothner's suggestion. Use instance sbuf field instead of a local StringBuffer instance. * java/io/InputStreamReader.java (read(char[],int,int)): Pass the caller's buffer to refill(). (read(void)): Pass our internal work buffer to refill if our input queue is empty. (refill): Changed return type to int. Use the specified buffer instead of our work buffer as per Bryce McKinlay's suggestion. Return the number of characters read or -1 for EOF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76927 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-27 Michael Koch <konqueror@gmx.de>mkoch2004-01-271-14/+11
| | | | | | | | | | | | | | | | | | | * java/lang/Class.java (getConstructor): Removed SecurityException from throws clause. (_getConstructors): Likewise. (getConstructors): Likewise. (getDeclaredConstructor): Likewise. (getDeclaredClasses): Likewise. (getDeclaredConstructors): Likewise. (getDeclaredField): Likewise. (getDeclaredMethod): Likewise. (getDeclaredMethods): Likewise. (getField): Likewise. (getMethod): Likewise. (getMethods): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76747 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-27 Kim Ho <kho@redhat.com>kho2004-01-273-4/+30
| | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GtkFramePeer.java (removeMenuBarPeer): Remove MenuBarPeer argument. * gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java (dispose): Call native method. * java/awt/Frame.java (setMenuBar): Create and remove MenuBar peers only if the Frame has a peer. (addNotify): Create the MenuBar peer if one exists. (removeNotify): Remove MenuBar peer if one exists. * java/awt/Menu.java: Fix imports. (addNotify): Don't use full class name. (removeNotify): Call removeNotify on all children. * java/awt/MenuBar.java (removeNotify): Call removeNotify on all children. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (removeMenuBarPeer): Remove MenuBarPeer argument. Iterate through children to find the Frame's MenuBar. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuComponentPeer.c New file. (dispose): Remove references to the MenuComponent. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76740 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-26 David Jee <djee@redhat.com>djee2004-01-262-48/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GtkComponentPeer.java (handleEvent): Implemented. Handles PaintEvents. (paint): Implemented. Use GTK native methods to queue updates for this heavyweight peer. * gnu/java/awt/peer/gtk/GtkContainerPeer.java (handleEvent): Removed. * java/awt/Component.java (paint): Implemented. Explictly paint the heavyweight peer. (update): Clear the background for heavyweight components. (paintAll): No need to call peer.paint() anymore. (processEvent): Don't process PaintEvents here. It's now done in the peer's handleEvent(). (processPaintEvent): Removed. * java/awt/Container.java (paint): No need to call super.paint(). Visit heavyweight children as well. (update): Don't clear the background here. It's done in Component.update(). (visitChildren): Added check to not recurse into Containers. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (filter_expose_event_handler): New method. Filter unwanted expose events while painting heavyweight peers. (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_addExposeFilter): New method. Connect filter and block pre_event_handler. (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_removeExposeFilter): New method. Disconnect filter and unblock pre_event_handler. (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetQueueDrawArea): New method. Invalidate and update given area. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler): Add checks for unwanted expose events. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76668 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-25 Thomas Fitzsimmons <fitzsim@redhat.com>fitzsim2004-01-251-554/+578
| | | | | | | | | | | | | | | | * java/awt/TextArea.java: Fix indentation. Flesh out javadocs. (getMinimumSize (int, int)): Fix FIXME -- return Dimension (0,0) when peer is null. (setColumns): Remove FIXME -- peer will retrieve number of columns by calling getColumns. (setRows): Likewise for number of rows. (next_text_number): New field. (paramString): Fix param string. (generateName): New method. (getUniqueLong): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76577 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud