summaryrefslogtreecommitdiffstats
path: root/libjava/java
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 2004-01-25 Michael Koch <konqueror@gmx.de>mkoch2004-01-251-93/+542
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/lang/Class.java: Imports reworked, reformated. (Class): Javadoc added. (forName): Likewise. (getClasses): Likewise. (getClassLoader): Likewise. (getComponentType): Likewise. (getConstructor): Likewise. (getConstructors): Likewise. (getDeclaredConstructor): Likewise. (getDeclaredClasses): Likewise. (getDeclaredConstructors): Likewise. (getDeclaredField): Likewise. (getDeclaredMethod): Likewise. (getDeclaredMethods): Likewise. (getDeclaringClass): Likewise. (getField): Likewise. (getInterfaces): Likewise. (getMethod): Likewise. (getMethods): Likewise. (getModifiers): Likewise. (getName): Likewise. (getResource): Likewise. (getResourceAsStream): Likewise. (getSigners): Likewise. (setSigners): Likewise. (getSuperclass): Likewise. (isArray): Likewise. (isAssignableFrom): Likewise. (isInstance): Likewise. (isInterface): Likewise. (isPrimitive): Likewise. (newInstance): Likewise. (getProtectionDomain): Likewise. (toString): Likewise. (Class): Moved. (initializeClass): Likewise. (finalize): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76554 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-24 Michael Koch <konqueror@gmx.de>mkoch2004-01-241-8/+11
| | | | | | | | * java/util/zip/InflaterInputStream.java: Merged class documentation with classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76519 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-231-9/+7
| | | | | | | * java/lang/VMClassLoader.java: Reworked imports. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76426 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-231-1/+22
| | | | | | | | * java/text/CollationElementIterator.java: (setText): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76423 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-232-4/+53
| | | | | | | | | | | | | | | | | | | | | * gnu/java/nio/FileLockImpl.java: Fixed filename in copyright. (released): Removed. (finalize): New method. * gnu/java/nio/natFileLockImpl.cc (releaseImpl): Implemented. * java/nio/channels/FileChannelImpl.java: Reworked imports. (lock): Implemented. (lockImpl): New method. (tryLock): Implemented. (tryLockImpl): New method. * java/nio/channels/natFileChannelImpl.cc (lockImpl): New method. (tryLockImpl): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76422 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-234-0/+91
| | | | | | | | | | | | | | | | | | | | | | * java/io/FileDescriptor.java (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorEcos.cc (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorPosix.cc (lock): New method. (tryLock): New method. (unlock): New method. * java/io/natFileDescriptorWin32.cc (lock): New method. (tryLock): New method. (unlock): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76421 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-231-28/+79
| | | | | | | | | | | | | | | | | | | * java/io/FileDescriptor.java (sync): Moved around, added javadoc. (valid): Likewise. (open): Likewise. (write): Likewise. (close): Likewise. (setLength): Likewise. (seek): Likewise. (getLength): Likewise. (getFilePointer): Likewise. (read): Likewise. (available): Likewise. (finalize): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76419 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-231-13/+44
| | | | | | | | | | * java/io/FileDescriptor.java (in, out, err): Added javadoc. (static): Merged loading code. (fd, position): Moved around. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76411 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-233-26/+112
| | | | | | | | | * java/lang/Class.java, java/lang/Object.java, java/lang/Thread.java: Merged copyright with classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76409 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-23 Michael Koch <konqueror@gmx.de>mkoch2004-01-231-20/+47
| | | | | | | | * java/io/FileDescriptor.java: Merged copyright with classpath to start merging this class. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76408 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-22 Graydon Hoare <graydon@redhat.com>graydon2004-01-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java: * gnu/java/awt/peer/gtk/GdkGlyphVector.java: Predicate static initialization on GtkToolkit.useGraphics2D(). * java/awt/Component.java (processPaintEvent): Consume event. * javax/swing/AbstractButton.java: Reimplement, document. * javax/swing/DefaultButtonModel.java: Reimplement, document. * javax/swing/JComponent.java (paint): Use double buffer. (listenerList): Enable member. * javax/swing/ToggleButtonModel.java: Remove incorrect constructor. * javax/swing/JToggleButton.java (JToggleButton): Modify model constructor. * javax/swing/SwingUtilities.java (layoutCompoundLabel): Adjust arithmetic. * javax/swing/plaf/basic/BasicButtonUI.java: Reimplement, document. * javax/swing/plaf/basic/BasicGraphicsUtils.java (getPreferredButtonSize): Include margins in calculation. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals): Receive up events from subordinate layout component. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76344 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-21 Thomas Fitzsimmons <fitzsim@redhat.com>fitzsim2004-01-221-1/+6
| | | | | | | | * java/awt/Component.java (show): Set visible to true before showing the peer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76325 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-21 David Jee <djee@redhat.com>djee2004-01-211-1/+11
| | | | | | | | | | * java/awt/Container.java (LightweightDispatcher.handleEvent): Add an extra check to avoid dispatching MOUSE_ENTERED event twice. Translate the point for the mouse event target before dispatching the event. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76278 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/EventQueue.java (invokeAndWait): Use list-awarefnasser2004-01-191-2/+3
| | | | | | | isDispatchThread method to replace wrong test condition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76165 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/EventQueue.java (pop): Prevent racing condition to addfnasser2004-01-191-18/+20
| | | | | | | | events to the queue out of order by acquiring locks in the proper order and not by releasing one before acquiring the other. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76161 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/EventQueue.java (getCurrentEvent): Consider that systemfnasser2004-01-191-2/+12
| | | | | | | events may be handled by any queue in the stack. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76150 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-01-19 Kim Ho <kho@redhat.com>kho2004-01-194-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GtkFramePeer.java (getMenuBarHeight): Added MenuBarPeer parameter. (removeMenuBarPeer): New native method. (setMenuBar): Call remove if menu bar is null. Adjust insets appropriately. (postSizeAllocateEvent): New method. Called when menu bar size is allocated. Adjust insets and redo layout. (GtkFramePeer): Set menu bar during frame creation. (postConfigureEvent): Adjust position and size to accomodate menu bar. * java/awt/Frame.java (setMenuBar): addNotify to create menu bar. * java/awt/Menu.java (addSeparator): Use peer's addSeparator. (addNotify): Create the peer if it doesn't exist and call addNotify for the menu's items. * java/awt/MenuBar.java (addNotify): Create this menu bar's menus. * java/awt/MenuItem.java (addNotify): Create the peer if it doesn't exist. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (removeMenuBarPeer): New method. Remove menu bar on the current frame. (setMenuBarPeer): Add the menu bar to the current frame and the callback for size-allocate events on the menu bar. (getMenuBarHeight): Add menu bar parameter. (menubar_resize_cb): New callback method for postSizeAllocate events. Also: Fix indentation on last ChangeLog entry. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76149 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/Container.java: Typo and indentation fixes.tromey2004-01-171-19/+19
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76004 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClassLoader.cc: Moved VMClassLoader methods...tromey2004-01-162-107/+134
| | | | | | | | | * java/lang/natVMClassLoader.cc: ...here. New file. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Added natVMClassLoader.cc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76003 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud