summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
...
* 2006-09-22 Roman Kennke <kennke@aicas.com>Roman Kennke2006-09-223-191/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/Component.java (enableEvents): Set newEventsOnly flag. * java/awt/Container.java (dispatchEventImpl): Consume event if lightweight dispatcher dispatched the event. Don't call processEvent() here, this is already done in Component.dispatchEventImpl(). For heavyweights or when the lightweight dispatcher could not dispatch, fall back to calling super. (dispatchNoLightweight): New helper method to avoid recursivly calling the lightweight dispatcher. * java/awt/LightweightDispatcher.java (dragButton): Removed field. (dragTarget): Removed field. (mouseEventTarget): New field. (convertPointToChild): Removed method. (dispatchEvent): Don't depend on component beeing a window. (findTarget): Improved algorithm for finding a target. Before we went down to the deepest component and went up again to find a suitable target. Now we go down only once, without going up. (handleMouseEvent): Broke method down into some smaller helper methods. (isDragging): New helper method. (isMouseListening): New helper method. (redispatch): New helper method. (trackEnterExit): New helper method.
* 2006-09-21 Francis Kung <fkung@redhat.com>Francis Kung2006-09-211-0/+1
| | | | * java/awt/image/ColorModel.java (coerceData): Set alpha premultiplied flag.
* 2006-09-21 Francis Kung <fkung@redhat.com>Francis Kung2006-09-213-12/+3
| | | | | | * java/awt/image/ColorModel.java (coerceData): Return proper colour model. * java/awt/image/ComponentColorModel.java (coerceData): Likewise. * java/awt/image/DirectColorModel.java (coerceData): Likewise.
* 2006-09-20 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-09-201-182/+233
| | | | | | * java/awt/geom/RoundRectangle2D.java: (getPathIterator): Reimplemented, and updated various API doc comments.
* 2006-09-20 Roman Kennke <kennke@aicas.com>Roman Kennke2006-09-202-48/+47
| | | | | | | | | | | | | | * java/awt/Container.java (addImpl): Set the new component's parent after it has been added to the array. Call addNotify() and invalidate() after the component has been added, so that the peer gets to know about the component structure when it is created. * java/awt/Window.java (dispatchEventImpl): Only revalidate when window is resized, let the other stuff be processed by the superclass. (dispose): Post WINDOW_CLOSED event only when some listener is registered or event is explicitly enabled. (show): Post WINDOW_OPENED event when appropriate.
* 2006-09-20 Roman Kennke <kennke@aicas.com>Roman Kennke2006-09-203-71/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/Component.java (addNotify): Invalidate here. Fetch peer font. (getFont): Delegate to helper method, to protect from overriding client code. Lock the tree while fetching the font. (getFontImpl): New helper method. Moved code from getFont() in here. (removeNotify): Nullify peerFont too. (setFont): Synchronize on tree and component to avoid threading issues. Update the peerFont correctly. (validate): Update the peer font if necessary, before validating. (getGraphics): Revert to recursive graphics fetching. Set component font on the Graphics object. (translateEvent): Removed unnecessary cast. * java/awt/Container.java (invalidateTree): Made final and private. Made implementation slightly more efficient. (setFont): Get old and new font via getFont() to account for the real font, and only invalidate the tree when they are not the same and not equal. (visitChild): Set the font of the child on the component graphics. * java/awt/Frame.java (setMenuBar): Create local reference of peer for thread safety. Only call simple invalidate, not invalidateTree().
* Fixes bug #29137Mark Wielaard2006-09-191-17/+14
| | | | | * java/util/logging/LogManager.java (addLogger): Always check for existing children of a new Logger.
* 2006-09-19 Gary Benson <gbenson@redhat.com>Gary Benson2006-09-192-2/+271
| | | | | | * java/net/ResolverCache.java: New class (a DNS cache). * java/net/InetAddress.java (internalGetCanonicalHostName, getAllByName): Use the above.
* 2006-09-19 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2006-09-192-23/+13
| | | | | | | | | | | * java/net/ServerSocket.java (port): New field. (bind): Set port field. (close): Set impl to null. (isClosed): Check impl and channel instead of using VMChannel. (toString): Use port field and getLocalPort() method. * java/net/Socket.java (isClosed): Check impl and channel instead of using VMChannel.
* 2006-09-18 Roman Kennke <kennke@aicas.com>Roman Kennke2006-09-181-21/+15
| | | | | | | | | | * java/awt/LightweightDispatcher.java (findTarget): Correctly translate child coordinates. Use Component.eventTypeEnabled() for checking if a component has a certain event enabled. (handleMouseEvent): Find the correct mouse event target. Use Component.eventTypeEnabled() for checking if a component has a certain event enabled.
* 2006-09-18 Roman Kennke <kennke@aicas.com>Roman Kennke2006-09-182-183/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/Component.java (show): Test for the peer beeing lightweight directly. (paintAll): Validate before painting. Don't paint when not showing. Call peer.paint() when the component is heavyweight. (repaint): Delegate to the parent when lightweight, rather than skipping to the nearest heavyweight. (createImage): Added null check to prevent NPE. (dispatchEvent): Moved old event dispatching and toolkit event dispatching to dispatchEventImpl. (addComponentListener): Don't enable event. Only add listener when not null. Switch to new event dispatching only. (addFocusListener): Likewise. (addHierarchyListener): Likewise. (addHierarchyBoundsListener): Likewise. (addKeyListener): Likewise. (addMouseListener): Likewise. (addMouseMotionListener): Likewise. (addMouseWheelListener): Likewise. (addInputMethodListener): Likewise. (coalesceEvents): For mouse events coalesce them only when their modifiers are equal. For paint events coalesce the events when one contains the other, without going through complicated heuristics. (dispatchEventImpl): Moved old event dispatching and toolkit event dispatching to dispatchEventImpl. (coalescePaintEvents): Removed. (HeavyweightInLightweightListener.componentHidden): Fixed condition. * java/awt/Container.java (addImpl): Don't enable events on lightweights. (remove): Reordered operations. Don't remove any listeners. Throw ArrayIndexOutOfBoundsException when index >= ncomponents. Only removeNotify() when peer is != null. Only invalidate if not already invalid. Only fire ContainerEvent if there is an interested listener or the event is enabled. Dispatch this event directly without the event queue. (removeAll): Likewise. (paintComponents): Only paint when showing. Also paint heavyweights. Don't paint the container itself. (removeNotify): Create local variables for improved thread safety. (addNotifyContainerChildren): Don't enable events for lightweights.
* 2006-09-18 Roman Kennke <kennke@aicas.com>Roman Kennke2006-09-182-90/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/EventQueue.java (INITIAL_QUEUE_DEPTH): Removed obsolete field. (next_in): Removed obsolete field. (next_out): Removed obsolete field. (queueHead): New field. Markes the head of the queue. (queueTail): New field. Markes the tail of the queue. (queue): Removed obsolete field. (EventQueue): Documented empty block. (getNextEvent): Changed array based implementation to single-linked list based implementation. (invokeAndWait): Use an Object as synchronization object rather than the current thread. (peekEvent(int)): Changed array based implementation to single-linked list based implementation. (peekEvent()): Changed array based implementation to single-linked list based implementation. (pop()): Changed array based implementation to single-linked list based implementation. (postEvent): Foward to postEventImpl. (postEventImpl): Changed array based implementation to single-linked list based implementation. (push): Changed array based implementation to single-linked list based implementation. * java/awt/AWTEvent.java (queueNext): New field. Implements a single-linked list for the EventQueue.
* 2006-09-16 Casey Marshall <csm@gnu.org>Casey Marshall2006-09-178-142/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS: updated. * configure.ac (AC_CHECK_HEADERS): check for `sys/event.h'. (AC_CHECK_FUNCS): add checks for readv, writev, getifaddrs, kqueue, and kevent. (HAVE_INET6): define if IPv6 is supported. * gnu/java/net/PlainDatagramSocketImpl.java (channel): new field. (native_fd): removed. (impl): new field. (<init>): throw IOException; initialize fields. (finalize): removed. (getNativeFD): removed. (bind): use `PlainSocketImpl.bind.' (create): use `PlainSocketImpl.initSocket.' (disconnect): use `PlainSocketImpl.disconnect.' (getLocalPort): new method. (send): use `VMChannel.send.' (receive): use `VMChannel.receive.' (setOption): use `PlainSocketImpl.setOption.' (getOption): use `PlainSocketImpl.getOption.' (close): use `VMChannel.State.close.' (join): use `PlainSocketImpl.join.' (leave): use `PlainSocketImpl.leave.' (joinGroup, leaveGroup): implemented. * gnu/java/net/PlainSocketImpl.java: make non-final. (native_fd): removed. (impl): new field. (channel): new field. (<init>): initialize `impl.' (finalize, getNativeFD): removed. (setOption): use `PlainSocketImpl.setOption.' (getOption): use `PlainSocketImpl.getOption.' (shutdownInput): use `PlainSocketImpl.shutdownInput.' (shutdownOutput): use `PlainSocketImpl.shutdownOutput.' (create): create `channel,' initialize `impl's native state. (connect): use `connect(SocketAddress, int).' (connect): use `SocketChannelImpl.connect;' initialize `address' and `port.' (bind): use `VMPlainSocketImpl.bind.' (listen): use `VMPlainSocketImpl.listen.' (accept): use `SocketChannelImpl.accept.' (available): use `VMChannel.available.' (close): use `PlainSocketImpl.close.' (sendUrgentData): use `PlainSocketImpl.sendUrgentData.' (getVMChannel, getInetAddress, getLocalPort, getLocalAddress, getPort): new methods. (SocketInputStream.read): use `VMChannel.read.' (SocketInputStream.read): use `SocketChannel.read.' (SocketOutputStream.write): use `VMChannel.write.' (SocketOutputStream.write): use `SocketChannel.write.' * gnu/java/nio/DatagramChannelImpl.java: implement VMChannel. (channel): new field. (<init>): initialize `channel.' (implCloseSelectableChannel): use `VMChannel.close.' (implConfigureBlocking): use `VMChannel.setBlocking.' (connect): use `VMChannel.connect.' (disconnect): use `VMChannel.disconnect.' (isConnected): use `VMChannel.getPeerAddress.' (write): use `VMChannel.write.' (write): use `VMChannel.writeGathering.' (read): use `VMChannel.read.' (read): use `VMChannel.readScattering.' (receive): use `VMChannel.receive.' (send): use `VMChannel.send.' (getVMChannel): new method. * gnu/java/nio/DatagramChannelSelectionKey.java (getNativeFD): access native FD through VMChannel.State. * gnu/java/nio/FileChannelImpl.java: moved from gnu/java/nio/channels/FileChannelImpl.java. * gnu/java/nio/FileLockImpl.java: fix imports. * gnu/java/nio/KqueueSelectionKeyImpl.java: new file. * gnu/java/nio/KqueueSelectorImpl.java: new file. * gnu/java/nio/NIOSocket.java (impl): removed. (channel): new field. (<init>): init superclass with a `NIOSocketImpl;' init `channel.' (getPlainSocketImpl, setChannel): removed. (isConnected): new method. * gnu/java/nio/NIOSocketImpl.java: new file. * gnu/java/nio/PipeImpl.java (SourceChannelImpl): implement `VMChannelOwner.' (SourceChannelImpl.native_fd): removed. (SourceChannelImpl.<init>): init with a `VMChannel.' (SourceChannelImpl.getNativeFD): removed. (SourceChannelImpl.getVMChannel): new method. (SourceChannelImpl.implCloseSelectableChannel): implement. (SinkChannelImpl): implement `VMChannelOwner.' (SinkChannelImpl.native_fd): removed. (SinkChannelImpl.<init>): init with a `VMChannel.' (SinkChannelImpl.implCloseSelectableChannel): implement. (SinkChannelImpl.getNativeFD): removed. (SinkChannelImpl.getVMChannel): new method. * gnu/java/nio/SelectionKeyImpl.java (getNativeFD): mark deprecated. * gnu/java/nio/SelectorProviderImpl.java (SELECTOR_IMPL_KQUEUE, SELECTOR_IMPL_EPOLL, SELECTOR_IMPL): new constants. (openSelector): return kqueue selector if available. * gnu/java/nio/ServerSocketChannelImpl.java: implement `VMChannelOwner.' (channel): new field. (<init>): init `channel.' (finalizer): check if the `VMChannel.State' is valid. (implCloseSelectableChannel): use `VMChannel.close.' (implConfigureBlocking): use `VMChannel.setBlocking.' (accept): use `VMChannel.accept.' (getVMChannel): new method. * gnu/java/nio/ServerSocketChannelSelectionKey.java (getNativeFD): access native FD through `VMChannel.State.' * gnu/java/nio/SocketChannelImpl.java: implement `VMChannelOwner.' (impl): removed. (channel, connected, connectAddress): new field. (<init>): new constructors. (getPlainSocketImpl): removed. (implCloseSelectableChannel): use `VMChannel.close.' (implConfigureBlocking): use `VMChannel.setBlocking.' (connect): use `connect(SocketAddress,int).' (connect): use `VMChannel.connect.' (finishConnect): don't use a selector. (isConnected): use `VMChannel.getPeerAddress.' (read): use `VMChannel.read.' (read): use `VMChannel.readScattering.' (write): use `VMChannel.write.' (write): use `VMChannel.writeGathering.' (getVMChannel): new method. * gnu/java/nio/SocketChannelSelectionKey.java (getNativeFD): get native FD from `VMChannel.State.' * gnu/java/nio/SocketChannelSelectionKeyImpl.java (getNativeFD): get native FD from `VMChannel.State.' * gnu/java/nio/VMChannelOwner.java: new file. * gnu/java/nio/channels/FileChannelImpl.java: removed. * include/Makefile.am: generate `gnu_java_nio_FileChannelImpl.h' and `gnu_java_nio_KqueueSelectorImpl.h;' don't generate `gnu_java_nio_channels_FileChannelImpl.h.' * include/gnu_java_net_VMPlainSocketImpl.h: regenerated. * include/gnu_java_nio_FileChannelImpl.h: new file. * include/gnu_java_nio_KqueueSelectorImpl.h: new file. * include/gnu_java_nio_VMChannel.h: regenerated. * include/gnu_java_nio_VMPipe.h: regenerated. * include/java_net_VMNetworkInterface.h: regenerated. * java/io/FileDescriptor.java: fix imports. * java/io/FileInputStream.java (<init>): handle exceptions. (read): wrap the destination arary. * java/io/FileOutputStream.java (<init>): handle exceptions. (write): wrap the source array. * java/io/RandomAccessFile.java (<init>): handle exceptions. * java/net/DatagramSocket.java (<init>): handle exceptions. (receive): handle length/port setting. (connect): bind to any address/port if the argument is null. * java/net/NetworkInterface.java (name, inetAddress): removed. (netif): new field. (<init>): make private. (getName): return `netif.name.' (getInetAddresses): access `netif.addresses.' (getDisplayName): return `netif.name.' (getByName, getByAddress): handle changes to `VMNetworkInterface.' (condense): removed. (getNetworkInterfaces): handle changes to `VMNetworkInterface.' (equals): compare `netif' fields. (hashCode): get hash codes from `netif.' (toString): use a StringBuffer. * java/net/ServerSocket.java (close): don't set `impl' to null. (isClosed): use `VMChannel.State.isClosed.' * java/net/Socket.java (getLocalAddress): don't use `getOption' if the `SocketImpl' is a `PlainSocketImpl.' (close): just close the `impl.' (toString): use `super.toString' in the value we return. (isConnected): just access `impl,' not `getImpl.' (isBound): use `PlainSocketImpl' methods if we can. (isClosed): look at `VMChannel.State.' * native/jni/classpath/jcl.c (JNI_OnLoad): new function. (JCL_NewRawDataObject): don't initialize cached fields here; throw an exception if they were not. (JCL_GetRawData): throw an exception if cached fields weren't created. * native/jni/java-lang/java_lang_VMProcess.c: handle FileChannelImpl move. * native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c (IO_EXCEPTION, SOCKET_EXCEPTION, BIND_EXCEPTION, THROW_NO_NETWORK): new macros. (Java_gnu_java_net_VMPlainSocketImpl_bind): reipmlemented. (Java_gnu_java_net_VMPlainSocketImpl_bind6): new function. (Java_gnu_java_net_VMPlainSocketImpl_listen): reimplemented. (java_sockopt): new enum. (Java_gnu_java_net_VMPlainSocketImpl_setOption): reimplemented. (Java_gnu_java_net_VMPlainSocketImpl_getOption): reimplemented. (Java_gnu_java_net_VMPlainSocketImpl_shutdownInput): reimplemented. (Java_gnu_java_net_VMPlainSocketImpl_shutdownOutput): reimplemented. (Java_gnu_java_net_VMPlainSocketImpl_sendUrgentData): new function. (Java_gnu_java_net_VMPlainSocketImpl_join): new function. (Java_gnu_java_net_VMPlainSocketImpl_join6): new function. (Java_gnu_java_net_VMPlainSocketImpl_read): removed. (Java_gnu_java_net_VMPlainSocketImpl_leave): new function. (Java_gnu_java_net_VMPlainSocketImpl_leave6): new function. (Java_gnu_java_net_VMPlainSocketImpl_joinGroup): new function. (Java_gnu_java_net_VMPlainSocketImpl_write): removed. (Java_gnu_java_net_VMPlainSocketImpl_joinGroup6): new function. (Java_gnu_java_net_VMPlainSocketImpl_leaveGroup): new function. (Java_gnu_java_net_VMPlainSocketImpl_leaveGroup6): new function. (getif_address): new function. (getif_index): new function. * native/jni/java-net/java_net_VMNetworkInterface.c (java_net_VMNetworkInterface_init, java_net_VMNetworkInterface_addAddress): new file-scope globals. (Java_java_net_VMNetworkInterface_initIds): new function. (struct netif_entry): new struct. (free_netif_list): new function. (Java_java_net_VMNetworkInterface_getInterfaces): removed. (Java_java_net_VMNetworkInterface_getVMInterfaces): new function. * native/jni/java-nio/Makefile.am (libjavanio_la_SOURCES): remove gnu_java_nio_channels_FileChannelImpl.c, add gnu_java_nio_KqueueSelectorImpl.c. * native/jni/java-nio/gnu_java_nio_KqueueSelectorImpl.c: new file. * native/jni/java-nio/gnu_java_nio_VMChannel.c (INTERRUPTED_IO_EXCEPTION, SOCKET_TIMEOUT_EXCEPTION, ALIGN_UP, ALIGN_DOWN): new macros. (JCL_init_buffer): get the address through GetDirectBufferAddress if possible. (Java_gnu_java_nio_VMChannel_stdin_1fd, Java_gnu_java_nio_VMChannel_stdout_1fd, Java_gnu_java_nio_VMChannel_stderr_1fd): new functions. (Java_gnu_java_nio_VMChannel_setBlocking): fix setting blocking value. (Java_gnu_java_nio_VMChannel_read): renamed... (Java_gnu_java_nio_VMChannel_read__ILjava_nio_ByteBuffer_2): to this; handle interrupted IO; add HAVE_READ check. (Java_gnu_java_nio_VMChannel_write): renamed... (Java_gnu_java_nio_VMChannel_write__ILjava_nio_ByteBuffer_2): to this; handle zero-length write; add HAVE_WRITE check. (Java_gnu_java_nio_VMChannel_receive): new function. (Java_gnu_java_nio_VMChannel_send): new function. (Java_gnu_java_nio_VMChannel_send6): new function. (Java_gnu_java_nio_VMChannel_read__I): new function. (Java_gnu_java_nio_VMChannel_write__II): new function. (Java_gnu_java_nio_VMChannel_socket): new function. (Java_gnu_java_nio_VMChannel_connect): new function. (Java_gnu_java_nio_VMChannel_connect6): new function. (Java_gnu_java_nio_VMChannel_getsockname): new function. (Java_gnu_java_nio_VMChannel_getpeername): new function. (Java_gnu_java_nio_VMChannel_accept): new function. (Java_gnu_java_nio_VMChannel_disconnect): new function. (Java_gnu_java_nio_VMChannel_close): new function. (Java_gnu_java_nio_VMChannel_available): new function. (FileChannel_mode): new enum. (Java_gnu_java_nio_VMChannel_open): new function. (Java_gnu_java_nio_VMChannel_position): new function. (Java_gnu_java_nio_VMChannel_seek): new function. (Java_gnu_java_nio_VMChannel_truncate): new funciton. (Java_gnu_java_nio_VMChannel_lock): new function. (Java_gnu_java_nio_VMChannel_unlock): new function. (Java_gnu_java_nio_VMChannel_size): new function. (Java_gnu_java_nio_VMChannel_map): new function. (Java_gnu_java_nio_VMChannel_flush): new function. * native/jni/java-nio/gnu_java_nio_VMPipe.c (Java_gnu_java_nio_VMPipe_init): removed. (Java_gnu_java_nio_VMPipe_pipe0): new function. * native/jni/java-nio/javanio.c: new file. * native/jni/java-nio/javanio.h: new file. * native/jni/native-lib/cpnet.c (cpnet_getHostByName): fix for systems without `gethostbyname_r.' * vm/reference/gnu/java/net/VMPlainSocketImpl.java (nfd): new field. (<init>, <init>): new constructors. (setOption, getOption): make instance methods; defer to native implementation. (connect): removed. (bind): make an instance method; defer to native methods. (accept): removed. (available): removed. (listen): make an instance method; defer to native method. (read): removed. (join, leave): new methods. (write): removed. (joinGroup, leaveGroup): new methods. (shutdownInput, shutdownOutput): make instance methods. (sendUrgentData): removed. (State): new class. * vm/reference/gnu/java/nio/VMChannel.java: make final. (fd): removed. (nfd): new field. (<init>): new, public constructors. (getVMChannel): methods removed. (getState, getStdin, getStdout, getStderr, stdin_fd, stdout_fd, stderr_fd): new methods. (setBlocking): make an instance method. (available): new method. (read): get native fd from `nfd.' (read): new single-byte read method. (readScattering): get native fd from `nfd.' (receive): new method. (write, writeGathering): get native fd from `nfd.' (send): new method. (write): new single-byte write method. (initSocket): new method. (connect): new method. (disconnect): new method. (getLocalAddress): new method. (getPeerAddress): new method. (accept): new method. (openFile): new method. (position): new method. (seek): new method. (truncate): new method. (lock): new method. (unlock): new method. (size): new method. (map): new method. (flush): new method. (close): new method. (State): new class. (Kind): new class. * vm/reference/gnu/java/nio/VMPipe.java (init): removed. (pipe, pipe0): new method. * vm/reference/java/net/VMNetworkInterface.java (name, addresses): new fields. (<clinit>): call `initIds.' (initIds): new method. (getInterfaces): removed. (getVMInterfaces): new method. (addAddress): new method. * vm/reference/java/nio/channels/VMChannels.java: fix imports.
* 2006-09-15 Chistian Elias Naur <elias@oddlabs.com>Tom Tromey2006-09-151-2/+2
| | | | | * java/io/ObjectStreamClass.java (setClass(Class, ObjectStreamClass)): Added !cl.isArray() to serialVersionUID mismatch check.
* 2006-09-14 Gary Benson <gbenson@redhat.com>Gary Benson2006-09-142-37/+173
| | | | | | | | | | | | | | * java/net/InetAddress.java (internalGetCanonicalHostName): New method. (getCanonicalHostName): Use internalGetCanonicalHostName. (getByLiteral): New method. (getAllByName): Use getByLiteral. * java/net/SocketPermission.java (host): Replaced with... (hostname, address): New fields. (equals, hashcode): Reflect the above. (setHostPort): Parse host into hostname or address. (implies): Rewrite host checks.
* 2006-09-14 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-09-141-10/+15
| | | | | | | Fixes PR28699 * java/awt/Menu.java (insert(MenuItem, int)): Fixed loop range, (insert(String, int)): Updated API docs.
* 2006-09-14 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-09-141-353/+283
| | | | * java/awt/Menu.java: Reformatted source file.
* 2006-09-14 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2006-09-141-0/+2
| | | | | | PR classpath/28984 * java/io/InputStreamReader.java (read(char[],int,int)): Fixed bug.
* 2006-09-13 Francis Kung <fkung@redhat.com>Francis Kung2006-09-131-7/+19
| | | | | * java/awt/image/BandCombineOp.java: Updated documentation. (filter(Raster, WritableRaster)): Use int arrays, and added simple cache.
* PR classpath/29034:Tom Tromey2006-09-132-0/+8
| | | | | * java/io/PipedReader.java (read): Return early if len==0. * java/io/PipedInputStream.java (read): Return early if len==0.
* 2006-09-13 Francis Kung <fkung@redhat.com>Francis Kung2006-09-132-12/+14
| | | | | | | * java/awt/image/ConvolveOp.java (filter(Raster, WritableRaster)): Removed hard-coded max sample value. * java/awt/image/RescaleOp.java (filter(Raster, WritableRaster)): Fixed finding of max sample value.
* 2006-09-12 Gary Benson <gbenson@redhat.com>Gary Benson2006-09-121-2/+2
| | | | | * java/net/NetworkInterface.java (getInetAddresses): Fix port used in security check.
* 2006-09-11 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-09-112-4/+4
| | | | | | | | | * java/text/AttributedCharacterIterator.java (LANGUAGE): Initialise with lower case string, (INPUT_METHOD_SEGMENT): Likewise, (READING): Likewise, * java/text/AttributedStringIterator.java (getRunLimit): Check all attributes for changes.
* 2006-09-11 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-09-113-53/+66
| | | | | | | | * java/text/AttributedCharacterIterator.java: Added @since tag, renamed some variables (no underscores) and removed some spaces to match the common style, * java/text/AttributedString.java: Likewise, * java/text/AttributedStringIterator.java: Likewise.
* 2006-09-11 Gary Benson <gbenson@redhat.com>Gary Benson2006-09-112-7/+7
| | | | | | | | | * java/net/Inet4Address.java (FAMILY): Renamed back to AF_INET. (<init>, writeReplace): Reflect the above. * java/net/Inet6Address.java (FAMILY): Renamed back to AF_INET6. (<init>): Reflect the above.
* 2006-09-11 Cameron McCormack <cam-gcc-bugzilla@aka.mcc.id.au>David Gilbert2006-09-111-5/+5
| | | | | | | | Fixes PR29010 * java/text/AttributedString.java (AttributedString(AttributedCharacterIterator, int, int, AttributedCharacterIterator.Attribute[])): Fixed check for defined attribute.
* 2006-09-11 Gary Benson <gbenson@redhat.com>Gary Benson2006-09-112-7/+7
| | | | | | | | | * java/net/Inet4Address.java (AF_INET): Renamed to FAMILY. (<init>, writeReplace): Reflect the above. * java/net/Inet6Address.java (AF_INET6): Renamed to FAMILY. (<init>): Reflect the above.
* 2006-09-10 Ito Kazumitsu <kaz@maczuka.gcd.org>Ito Kazumitsu2006-09-102-23/+1
| | | | | | | | | Fixes bug #28867 Originally in Kaffe: 2004-04-16 Helmer Kraemer <hkraemer@freenet.de> * java/net/ServerSocket.java(implAccept): Deleted socket.implCreated. * java/net/Socket.java: Avoid creating a redundant file descriptor. (implCreated): Deleted, (getImpl): Don't check impleCreated, (bind): Call getImpl().create(true).
* 2006-09-08 Francis Kung <fkung@redhat.com>Francis Kung2006-09-081-116/+198
| | | | | | | | | | * java/awt/image/AffineTransformOp.java: Updated documentation. (createCompatibleDestRaster): Updated formatting. (filter(BufferedImage, BufferedImage)): Updated formatting. (filter(Raster, WritableRaster)): Delegated processing to native peers for if colour model is compatible. (filterBicubic): Get entire pixel at once, and use appropriate array type. (filterBilinear): Get entire pixel at once, and use appropriate array type.
* 2006-09-08 Gary Benson <gbenson@redhat.com>Gary Benson2006-09-083-16/+20
| | | | | | | | | | | | | | * java/net/InetAddress.java (family): Updated javadoc and made private. (<init>): Add an address family argument. (readObject): Don't overwrite family. * java/net/Inet4Address.java (AF_INET): New constant. (<init>): Use AF_INET as the family. (writeReplace): Likewise. * java/net/Inet6Address.java (AF_INET6): New constant. (<init>): Use AF_INET6 as the family.
* 2006-09-08 Gary Benson <gbenson@redhat.com>Gary Benson2006-09-081-22/+14
| | | | | | | * java/net/InetAddress.java (getHostName): Move lookup into getCanonicalHostName. (getCanonicalHostName): Move lookup from getHostName, Perform security check on canonical name (ie after lookup).
* 2006-09-08 Gary Benson <gbenson@redhat.com>Gary Benson2006-09-082-86/+100
| | | | | | | | | | | | | * java/net/Inet4Address.java (isMulticastAddress, isLoopbackAddress, isAnyLocalAddress, isLinkLocalAddress, isSiteLocalAddress, isMCGlobal, isMCNodeLocal, isMCLinkLocal, isMCSiteLocal, isMCOrgLocal, getHostAddress): Moved implementations from InetAddress. * java/net/InetAddress.java (isMulticastAddress, isLoopbackAddress, isAnyLocalAddress, isLinkLocalAddress, isSiteLocalAddress, isMCGlobal, isMCNodeLocal, isMCLinkLocal, isMCSiteLocal, isMCOrgLocal, getHostAddress): Replace implementations with UnsupportedOperationExceptions.
* 2006-09-08 Gary Benson <gbenson@redhat.com>Gary Benson2006-09-082-109/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/net/InetAddress.java (inaddr_any): Removed. (ANY_IF, LOCALHOST): Create using getByAddress. (<init>): Updated javadoc. (getHostName): Cache hostname even if the lookup failed. (getByAddress): Create Inet4Address objects when passed IPv4-mapped IPv6 addresses. (aton): Removed. (getAllByName): Create address objects using getByAddress. Do not perform security checks unless actually required. Do not strip whitespace from the hostname. (getInaddrAny): Removed. (getLocalHost): Return the loopback address if getByName throws a SecurityException. (readResolve): Updated javadoc. * vm/reference/java/net/VMInetAddress.java (aton): Declared. * include/java_net_VMInetAddress.h (Java_java_net_VMInetAddress_aton): Likewise. * native/jni/java-net/java_net_VMInetAddress.c (Java_java_net_VMInetAddress_aton): New method. * native/jni/native-lib/cpnet.h (cpnet_aton): Declared. * native/jni/native-lib/cpnet.c (cpnet_aton): New method. * configure.ac (AC_CHECK_FUNCS): Checks for cpnet_aton. * java/net/Inet4Address.java (writeReplace): Updated javadoc. * NEWS: Added note about updated VM interface.
* 2006-09-07 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-09-071-7/+63
| | | | * java/awt/image/MemoryImageSource.java: Added API docs.
* 2006-09-06 Francis Kung <fkung@redhat.com>Francis Kung2006-09-061-63/+231
| | | | | | | | | | | | * java/awt/image/RescaleOp.java: Updated documentation and formatting. (constructor): Make copy of arrays. (createCompatibleDestImage): Changed treatment of null ColorModel. (filter(BufferedImage, BufferedImage)): Re-implemented. (filter(Raster, WritableRaster, boolean[])): New method. (filter(Raster, WritableRaster)): Re-implemented. (getOffsets): Prevent ArrayIndexOutOfBoundsException. (getPoint2D): Cleaned up formatting. (getScaleFactors): Prevent ArrayIndexOutOfBoundsException.
* 2006-09-05 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-09-051-0/+49
| | | | * java/awt/List.java: Added @since to various methods.
* 2006-09-05 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-09-051-933/+763
| | | | * java/awt/List.java: Source code reformatted.
* 2006-09-05 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-09-051-2/+2
| | | | | * java/awt/Choice.java (addItem): Fixed API doc glitch.
* 2006-09-05 Francis Kung <fkung@redhat.com>Francis Kung2006-09-051-43/+98
| | | | | | | | * java/awt/image/LookupOp.java: Updated documentation & formatting. (createCompatibleDestImage): Re-implemented. (filter(BufferedImage, BufferedImage)): Added check for src/dest image compatibility, and use ColorConvertOp for color conversion if needed. (filter(Raster, WritableRaster)): Made exceptions more descriptive.
* 2006-09-04 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-09-041-7/+9
| | | | | | * java/awt/Rectangle.java (setRect(double, double, double, double)): Modified rounding of input values.
* 2006-09-01 Francis Kung <fkung@redhat.com>Francis Kung2006-09-012-60/+148
| | | | | | | | | | | | | | * java/awt/image/ColorConvertOp.java (copyImage): Updated javadoc and comments. (copyRaster): Add javadoc. (createCompatibleColorModel): Add javadocs and comments. (createCompatibleDestImage): Use correct transfer type. (createCompatibleDestRaster): Add new parameter for transfer type. (filter): Use correct transfer type. * java/awt/image/ConvolveOp.java: Updated javadocs. (createCompatibleDestImage): Set new image properties correctly. (filter(BufferedImage, BufferedImage): Correct handling of premultiplication. (filter(WritableRaster, Raster): Clip sample values to [0-255].
* 2006-08-31 Gary Benson <gbenson@redhat.com>Gary Benson2006-08-311-14/+13
| | | | | | | | * java/net/SocketPermission.java (maybeBracketIPv6Address): Renamed to processHostport. (processHostport): Also translate "" to "localhost". (setHostPort): Remove special cases for empty hostport and for extra colons in hostport (processHostport handles these now).
* 2006-08-29 Gary Benson <gbenson@redhat.com>Gary Benson2006-08-292-6/+47
| | | | | | | | | * java/net/SocketPermission.java (maybeBracketIPv6Address): New method. (<init>): Pass the hostport argument through the above. * java/net/NetworkInterface.java (getInetAddresses): Don't bracket IPv6 addresses.
* 2006-08-28 Tania Bento <tbento@redhat.com>Tania Bento2006-08-281-2/+231
| | | | | | | * java/awt/MenuShortcut.java (MenuShortcut (int, boolean)): Set keyName. (toString): Modified string output. (setKeyName): New private method.
* 2006-08-24 Francis Kung <fkung@redhat.com>Francis Kung2006-08-242-117/+310
| | | | | | | | | | | | | | | | | | * gnu/java/awt/color/PyccConverter.java: Throw UnsupportedOperationExceptions. * java/awt/image/ColorConvertOp.java: Updated javadocs. (srccs, dstcs, rasterValid): Variables removed. (ColorConvertOp(RenderingHints)): Initialize spaces to empty array. (copyRaster): Check for null rendering hints (createCompatibleColorModel): New private method. (createCompatibleDestImage): Re-implemented. (createCompatibleDestRaster(Raster, ColorSpace, boolean)): New private method. (createCompatibleDestRaster(Raster)): Re-implemented. (filter(BufferedImage, BufferedImage)): Add checks; fix temp image creation. (filter(Raster, WritableRaster)): Add checks; fix temp raster creation. (getPoint2D): Clean up formatting. * java/awt/image/ComponentColorModel.java (constructor): use findBits method instead of passing null. (findBits): New method.
* 2006-08-24 Gary Benson <gbenson@redhat.com>Gary Benson2006-08-241-1/+4
| | | | | * java/net/NetworkInterface.java (getInetAddresses): Bracket IPv6 addresses.
* 2006-08-24 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2006-08-242-24/+42
| | | | | | | | | | | | * java/lang/ref/Reference.java (queue, nextOnQueue): Made volatile. (enqueue): Made thread safe. * java/lang/ref/ReferenceQueue.java (lock): New field. (poll): Removed synchronized. (enqueue): Changed to synchronize on lock object, to update Reference state and return success status. (dequeue, remove): Synchronize on lock object.
* 2006-08-24 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2006-08-241-15/+35
| | | | | | | | | | * java/security/SecureClassLoader.java (protectionDomainCache): Changed to HashMap. (SecureClassLoader): Removed redundant security check. (defineClass(String,byte[],int,int,CodeSource): Moved protection domain lookup/construction to new method. (defineClass(String,ByteBuffer,CodeSource): New method. (getProtectionDomain): New method.
* 2006-08-23 Tania Bento <tbento@redhat.com>Tania Bento2006-08-231-8/+25
| | | | | | * java/awt/Color.java (brighter): Modified algorithm to correctly determine the new brighter colour.
* 2006-08-23 Roman Kennke <kennke@aicas.com>Roman Kennke2006-08-231-22/+14
| | | | | | | * java/awt/Container.java (maxSize): Removed field. This is already declared in Component. (validateTree): Check for ContainerPeer. Don't addNotify here. Only validate Component instances if they are invalid.