| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
| |
* gnu/java/net/protocol/jar/Handler.java (parseURL): Flatten jar
path.
(flat): New method.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(fillRect): Handle custom composites.
(drawRenderedImage): Handle custom composites.
(drawImage): Handle custom composites.
(createBuffer): New method.
(drawLine): Handle custom composites.
(drawComposite): New method.
(fill): Handle custom composites.
(getNativeCM): New method.
(drawGlyphVector): Handle custom composites.
(drawRect): Handle custom composites.
(draw): Handle custom composites.
* gnu/java/awt/peer/gtk/VolatileImageGraphics.java
(drawComposite): Unset composite during draw call, to prevent parent
from handling composite again.
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(getBufferCM): Added comments.
(getNativeCM): Made abstract.
(setComposite): Removed comments.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 29644
* gnu/java/awt/peer/ClasspathFontPeer.java
(getStringBounds): Removed abstract method. This is replaced
in java.awt.Font to use a TextLayout.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(GtkWindowPeer): Set a font on the window object.
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
(FreetypeGlyphVector(Font,String,FontRenderContext,int)):
Changed to take char,int,int instead of String. Filter
control characters.
(FreetypeGlyphVector(Font,String,FontRenderContext)):
Create char array out of string.
(getLogicalBounds): Don't translate bounds. They already are
translated.
* gnu/java/awt/peer/gtk/GdkFontMetrics.java
(stringWidth): Filter out control characters.
* gnu/java/awt/peer/gtk/GdkFontPeer.java
(getStringBounds): Removed unneeded method.
(layoutGlyphVector): Pass char array directly to FreetypeGlyphVector
constructor.
* gnu/java/awt/peer/qt/QtFontPeer.java
(getStringBounds): Removed unneeded method.
* gnu/java/awt/peer/x/XFontPeer.java
(getStringBounds): Removed unneeded method.
* gnu/java/awt/peer/x/XFontPeer2.java
(getStringBounds): Removed unneeded method.
* java/awt/Font.java
(getStringBounds(char[],int,int,FontRenderContext)):
Use TextLayout to determine the bounds.
(getStringBounds(CharacterIterator,int,int,FontRenderContext)):
Delegate to the char[] version of this method.
(getStringBounds(String,FontRenderContext)):
Delegate to the char[] version of this method.
(getStringBounds(String,int,int,FontRenderContext)):
Delegate to the String version of this method.
|
| |
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(fillArc): Corrected arc type to Arc2D.PIE.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-10-25 Robert Schuster <robertschuster@fsfe.org>
* gnu/java/net/PlainDatagramSocketImpl.java:
(connect): Use VMChannel instance for connect call.
(getTimeToLive): Call VMPlainSocketImpl.getTimeToLive.
(setTimeToLive): Call VMPlainSocketImpl.setTimeToLive.
(setOption): Handle multicast options.
(getOption): Handle multicast options.
* gnu/java/net/PlainSocketImpl.java:
(getTimeToLive): Call VMPlainSocketImpl.getTimeToLive.
(setTimeToLive): Call VMPlainSocketImpl.setTimeToLive.
(setOption): Filter unappropriate options.
(getOption): Filter unappropriate options.
(connect): Use given SocketAddress.
(close): Reset address and port.
(getInetAddress):
* include/Makefile.am: Removed all occurences of
gnu_java_net_VMPlainDatagramSocketImpl.h.
* include/gnu_java_net_VMPlainDatagramSocketImpl.h: Removed.
* native/jni/java-net/Makefile.am: Removed
gnu_java_net_VMPlainDatagramSocketImpl.c from sources.
* native/jni/java-net/gnu_java_net_VMPlainDatagramSocketImpl.c:
Removed.
as SocketException, declare to throw SocketException.
* native/jni/java-nio/gnu_java_nio_VMChannel.c: Added definitions
for SocketException and ConnectException.
(Java_gnu_java_nio_VMChannel_connect): Throw SocketException instead
of IOException.
(Java_gnu_java_nio_VMChannel_connect6): Throw SocketException instead
of IOException.
(Java_gnu_java_nio_VMChannel_accept): Rewritten.
(JCL_thread_interrupted): New function.
(initIDs): Added initialisation for isThreadInterrupted method id.
* native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c: Added
CPNET_IP_TTL to java_sockopt enum.
(Java_gnu_java_net_VMPlainSocketImpl_setOption): Handle CPNET_IP_TTL
case, handle SO_LINGER case properly.
(Java_gnu_java_net_VMPlainSocketImpl_getOption): Handle CPNET_IP_TTL
case, handle SO_LINGER case properly.
(Java_gnu_java_net_VMPlainSocketImpl_getMulticastInterface): New
function.
(Java_gnu_java_net_VMPlainSocketImpl_setMulticastInterface): New
function.
(Java_gnu_java_net_VMPlainSocketImpl_setMulticastInterface6): New
function.
(Java_gnu_java_net_VMPlainSocketImpl_leave6): Fixed constant to be
IPV6_LEAVE_GROUP.
* vm/reference/gnu/java/net/VMPlainDatagramSocketImpl.java: Removed.
* vm/reference/gnu/java/nio/VMChannel.java:
(connect(int, byte[], int, int)): Declare to throw SocketException.
(connect6): Declare to throw SocketException.
(connect(InetSocketAddress, int)): Catch IOException and rethrow
(isThreadInterrupted): New method.
* vm/reference/gnu/java/net/VMPlainSocketImpl.java: Added CP_IP_TTL
field.
(setTimeToLive): New method.
(getTimeToLive): New method.
(setMulticastInterface(int, InetAddress)): New method.
(setMulticastInterface(int, int, Inet4Address): New method.
(setMulticastInterface6(int, int, Inet6Address): New method.
(setOptions): Handle SO_LINGER case.
(getOptions): Add missing SO_REUSEADDR case.
* java/net/Socket.java:
(Socket(InetAddress, int, InetAddress, int, boolean)): Close socket
when exception was thrown out of connect().
(setSoLinger): Replaced instantiations with valueOf calls, replaced
Boolean.FALSE with Integer.valueOf(-1).
* native/jni/native-lib/cpio.h: Added cpio_closeOnExec declaration.
* native/jni/native-lib/cpio.c: Added cpio_closeOnExec implementation.
* NEWS: Documented VM interface changes.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(cairoSetFont): New method.
(copy): Set font using setFont method.
(setFont): Call cairoSetFont.
(setup): Set font using setFont method.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Added method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(install_font_peer): Removed.
(cairoDrawGlyphVector): Removed call to install_font_peer.
(cairoSetFont): New method.
|
| |
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/NativeEventLoopRunningEvent.java: New file.
* gnu/java/awt/peer/gtk/GtkMainThread.java: Post
NativeEventLoopRunningEvent after GTK main loop start and stop.
* java/awt/EventQueue.java (isShutdown): Check nativeLoopRunning.
(getNextEvent): Set dispatchThread to null.
(postEventImpl): Set nativeLoopRunning.
(pop): Interrupt event dispatch thread.
* java/awt/Frame.java (noteFrame): Synchronize on weakFrames.
|
| |
|
|
|
|
|
|
| |
PR 29510
* java/awt/image/BufferedImage.java
(constructor): Updated some properties of default image types.
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java
(argb32): Updated field to match default in BufferedImage.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
PR 29419
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(copyArea): Changed size comparison to return when size == 0
too.
* javax/swing/JViewport.java
(paintBackingStore): Check width and height of blitted area
and only do blit if its > 0.
(paintBlit): Check width and height of blitted area
and only do blit if its > 0.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 27091
* gnu/java/awt/peer/gtk/GtkFramePeer.java
(maximize): New native method.
(unmaximize): New native method.
(iconify): New native method.
(deiconify): New native method.
(getState): Implemented.
(setState): Implemented.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(oldState): Rename to windowState and made protected, so that
the FramePeer can access it.
(postWindowEvent): Handle state change events more gently and
correctly.
* java/awt/Frame.java
(getState): Fetch state from getExtendedState().
(setExtendedState): Update the peer. Check if the state change
is actually supported.
(getExtendedState): Update the state from the peer.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c
(maximize): New method.
(unmaximize): New method.
(iconify): New method.
(deiconify): New method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(AWT_FRAME_NORMAL): New macro.
(AWT_FRAME_ICONIFIED): New macro.
(AWT_FRAME_MAXIMIZED_BOTH): New macro.
(window_window_state_cb): Rewritten to handle window state changes
more gently (mostly on the java side of the world).
* include/gnu_java_awt_peer_gtk_GtkFramePeer.h: Regenerated.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(AWT_WINDOW_OPENED): Remove unnecessary macro.
(window_show_cb): Removed unnecessary function.
(connect_signals): Don't connect signal for show.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(hasBeenShown): Removed. This is handled in java.awt.Window.
(postWindowEvent): Removed handling of WINDOW_OPENED. This
is done in java.awt.Window.
* java/awt/Window.java
(dispose): Post WINDOW_CLOSED here, not WINDOW_OPENED.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java
(drawRenderedImage): New method.
(drawImage): New method.
(CairoSurfaceGraphics): Set clip.
(createBuffer): New method.
(getBufferCM): New method.
(drawComposite): New method.
(fill): New method.
(getNativeCM): New method.
(drawGlyphVector): New method.
(draw): New method.
* gnu/java/awt/peer/gtk/VolatileImageGraphics.java
(getNativeCM): Reflect renamed field.
* gnu/java/awt/peer/gtk/CairoSurface.java
(cairoCM_pre): Renamed from cairoColorModel.
(cairoColorModel): Set premultiplication to false.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
PR 29502
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(updateComponent): Don't override this here.
* java/awt/Window.java
(addWindowListener): Ignore null listener. Set newEventsOnly flag.
(addWindowFocusListener): Ignore null listener. Set newEventsOnly
flag.
(addWindowStateListener): Ignore null listener. Set newEventsOnly
flag.
|
| |
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkMainThread.java: Introduce running flag
to track native GTK event loop status.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c: Set and
clear running flag when native GTK event loop starts and stops.
|
| |
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java (draw): Extend updated
region to account for pixel-shifting.
* gnu/java/awt/peer/gtk/CairoGraphics2D.java (shiftDrawCalls): Made
proctected.
|
| |
|
|
|
|
|
| |
PR 29450
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
(getLogicalBounds): Translate individual glyphs before appending bounds.
(getOutline): Translate individual glyphs before appending outline.
|
| |
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java (drawComposite): Ensure
composite does not extend beyond buffer bounds.
* java/awt/image/Raster.java (createChild): Ensure child does not extend
beyond parent's bounds.
* java/awt/image/WritableRaster.java (createWritableChild): Ensure child
does not extend beyond parent's bounds.
|
| |
|
|
|
|
|
|
|
|
|
| |
PR 29448
* java/awt/Component.java
(dispatchEventImpl): Special handle ComponentReshapeEvents to
update the AWT's knowledge about a component's size.
* gnu/java/awt/ComponentReshapeEvent.java: New class.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(postConfigureEvent): Directly dispatch a ComponentReshapeEvent
to update the AWT's knowledge about the component bounds.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java
(buffer, locked): New fields.
(constructors): Initialize new variables.
(createBuffer): New method.
(draw): Implement custom composites.
(drawComposite): New method.
(drawGlyphVector): Implement custom composites.
(drawImage): Implement custom composites.
(drawRenderedImage): Implement custom composites.
(fill): Implement custom composites.
(getBufferCM): New method.
(getNativeCM): New method.
(updateBufferedImage): Fix premultiplication.
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(copy): Copy composite.
(drawImage): Set background properly.
(getBufferCM): New method.
(setComposite): Reset alpha composite when using custom composite.
* gnu/java/awt/peer/gtk/CairoSurface.java
(cairoColorModel): New field.
(nativeColorModel): Renamed.
(constructor): Use renamed createCairoSampleModel method.
(createCairoSampleModel): New method.
(createNativeSampleModel): Renamed.
(getBufferedImage): Use renamed cairoColorModel field.
* gnu/java/awt/peer/gtk/GtkVolatileImage.java
(gdkColorModel): New field.
(createGdkSampleModel): New method.
(getPixels): Added comments.
(getSnapshot): Use GDK colour and sample models.
* gnu/java/awt/peer/gtk/VolatileImageGraphics.java
(createBuffer): Use GDK colour and sample models.
(getNativeCM): Added comments.
* java/awt/image/BufferedImage.java
(constructor): Set premultiplied flag properly.
|
| |
|
|
|
|
|
|
| |
PR 29372
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(createPath): Added isDraw parameter.
(draw): Updated createPath call.
(fill): Updated createPath call.
|
| |
|
|
|
| |
* gnu/java/nio/KqueueSelectorImpl.java: Renamed field
sizeof_struct_kevent to _sizeof_struct_kevent.
|
| |
|
|
|
| |
* gnu/java/lang/InstrumentationImpl.java:
Made constructor package visible.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(compCtx): New field for composite context.
(copy): Copy composite.
(dispose): Dispose of composite context.
(getNativeCM): New method.
(setComposite): Discard old composite context and set up new context.
(setRenderingHints): Update composite context.
* gnu/java/awt/peer/gtk/CairoSurface.java
(nativeColorModel): New field, renamed from nativeModel.
(nativeModel): Renamed field to nativeColorModel.
(CairoSurface(int, int)): Call new method to create sample model.
(createNativeSampleModel): New method.
(getBufferedImage): Updated variable name.
* gnu/java/awt/peer/gtk/VolatileImageGraphics.java
(buffer): New field.
(createBuffer): New method.
(draw): New method.
(drawComposite): New method.
(drawGlyphVector): New method.
(drawImage(Image, AffineTransform, Color, ImageObserver)): New method.
(drawImage(Image, int, int, ImageObserver)): Check composite.
(drawImage(Image, int, int, int, int, ImageObserver)): Check composite.
(fill): New method.
(getNativeCM): New method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c
(Java_gnu_java_awt_peer_gtk_GtkVolatileImage_nativeGetPixels): Use
intermediary pixbuf to grab on-screen pixels.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java
(updateBufferedImage): Recognise that raw data is alpha-premultiplied.
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(clearRect): Paint background colour with AlphaComposite.SRC rule.
(drawImage(Image, AffineTransform, Color, ImageObserver)): Alpha
pre-multiply data before drawing.
(fillRect): Draw using regular fill() method.
(setComposite): Handle null case with AlphaComposite.SrcOver default.
* gnu/java/awt/peer/gtk/CairoSurface.java
(nativeModel): Use correct value for alpha premultiplication (true).
* java/awt/image/BufferedImage.java
(coerceData): Update isPremultiplied field.
|
| |
|
|
|
|
|
|
|
|
|
| |
* gnu/classpath/ListenerData.java:
New class for holding listener data.
* gnu/java/lang/management/MemoryMXBeanImpl.java:
ListenerData class moved to its own file.
* javax/management/MBeanServerDelegate.java,
* javax/management/MBeanServerDelegateMBean.java,
* javax/management/MBeanServerNotification.java:
Implemented.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 29190
* gnu/java/nio/EpollSelectionKeyImpl.java: extend
`AbstractSelectionKey.'
(cancel, isValid): removed.
* gnu/java/nio/EpollSelectorImpl.java (cancelledKeys): removed.
(events): new field.
(INITIAL_CAPACITY, MAX_DOUBLING_CAPACITY, CAPACITY_INCREMENT): new
fields.
(<clinit>): initialize those constants.
(<init>): don't initialize `cancelledKeys;' initialize `events.'
(doSelect): deregister cancelled keys; remove keys attached to
closed channels; wrap `epoll_wait' in `begin' and `end' calls; use
`events' buffer; reallocate `events' buffer if needed.
(register): reallocate `events' buffer if needed.
(reallocateBuffer): new method.
(cancel): removed.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/java2d/AbstractGraphics2D.java: Updated
API docs.
(isOptimized): Initialize with true.
(paintRaster): Removed unneeded field.
(shapeCache): New static field. Caches certain shapes for reuse.
(computeIntersection): Removed unneeded casts.
(drawArc): Use shape cache.
(drawImage): Removed unneeded statement.
(drawLine): Use shape cache. Pass untranslated coordinates
to rawDrawLine().
(drawOval): Use shape cache.
(drawPolygon): Use shape cache.
(drawRect): Overridden to provide accelerated rectangle drawing
if possible and to use the shape cache.
(drawRoundRect): Use shape cache.
(fillArc): Use shape cache.
(fillOval): Use shape cache.
(fillPolygon): Use shape cache.
(fillRect): Pass untranslated coordinates to rawFillRect().
Use shape cache.
(fillRoundRect): Use shape cache.
(fillScanlineAA): Removed unneeded statement.
(fillScanline): Updated API docs.
(fillShapeAntialias): Removed unnecessary cast.
(fillShapeImpl): Update API docs. Removed unnecessary cast.
(fillShape): Updated API docs.
(getShapeCache): New helper method.
* gnu/java/awt/java2d/ShapeCache.java: New class. Caches
certain shapes for reuse in AbstractGraphics2D.
|
| |
|
|
| |
* gnu/java/nio/VMChannelOwner.java: Removed unneeded imports.
|
| |
|
|
|
|
|
|
| |
* vm/reference/gnu/java/nio/VMChannel.java: Removed unneeded imports.
* vm/reference/gnu/java/nio/VMPipe.java: Removed unneeded imports.
* gnu/java/nio/EpollSelectorImpl.java:
(doSelect): Use Integer.valueOf() instead of constructor call.
(register): Use Integer.valueOf() instead of constructor call.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/nio/KqueueSelectionKeyImpl.java: extend
AbstractSelectionKey.
(nstate, valid, readEverEnabled, writeEverEnabled): removed.
(activeOps, fd): new fields.
(cancel): removed.
(interestOps): just call `selector.setInterestOps.'
(isValid): removed.
(toString): include native fd in output.
(hashCode, equals, isReadActive, isReadInterested, isWriteActive,
isWriteInterested, needCommitRead, needCommitWrite): new methods.
* gnu/java/nio/KqueueSelectorImpl.java (MAX_DOUBLING_CAPACITY,
CAP_INCREMENT, INITIAL_CAPACITY): new constants.
(cancelled): removed.
(events): new field.
(OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE): new constants.
(toString, equals): new methods.
(doSelect): get cancelled keys from superclass; fix synchronization;
initialize events that need to be added/deleted only when selecting;
ignore keys attached to closed channels.
(register): fix key initialization; synchronize adding keys.
(setInterestOps): new method.
(updateOps, updateOps): removed.
(reallocateBuffer): new method.
(doCancel): removed.
(kevent_set): add index, active ops parameters; remove delete
parameter.
(kevent): add output space size parameter.
* include/gnu_java_nio_KqueueSelectorImpl.h: regenerated.
* native/jni/java-nio/gnu_java_nio_KqueueSelectorImpl.c
(Java_gnu_java_nio_KqueueSelectorImpl_kevent_1set): only fill in
one filter, at the given index.
(Java_gnu_java_nio_KqueueSelectorImpl_kevent): separate incoming
event count and outgoing event count.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/EventQueue.java
(Queue): New inner class. Implements the actual queue.
(LOW_PRIORITY): New constant field.
(NORM_PRIORITY): New constant field.
(queueHead): Removed. Moved into Queue.
(queueTail): Removed. Moved into Queue.
(queues): New field.
(EventQueue): Initialize two internal queues, one for
normal events, one for low priority events.
(getNextEventImpl): New helper method, fetches the next event.
(getNextEvent): Use getNextEventImpl() for fetching the event.
(peekEvent): Use getNextEventImpl() for fetching the event.
(peekEvent(int)): Search for event in all queues.
(postEventImpl(AWTEvent)): Moved actual posting into
postEventImpl(AWTEvent,int). Prioritize events here.
(postEventImpl(AWTEvent,int)): Take priority parameter and insert
event into correct queue. Re-enable event coalescing.
* gnu/java/awt/LowPriorityEvent.java: New marker interface.
* javax/swing/RepaintManager.java
(RepaintWorkerEvent): New internal class. This is a low priority
event for the repaint worker.
(addDirtyRegion): Use new internal invokeLater() for sending
a low priority event.
(addInvalidComponent): Use new internal invokeLater() for sending
a low priority event.
(commitBuffer): Added some null checks.
(invokeLater): New helper method. Sends a low priority
repaint worker event on the event queue.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* scripts/check_jni_methods.sh: added two new methods in the
ignore list:
Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1escape_1key
and
Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1unescape_1key
* native/jni/gconf-peer/GConfNativePeer.c:
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1all_1keys):
refacored method name, renamed from
Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1gconf_1client_1all_1keys.
Added code to unescape escaped GConf key names.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1all_1nodes):
refacored method name, renamed from
Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1gconf_1client_1all_1nodes.
Added code to unescape escaped GConf key names.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1escape_1key):
new function.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1unescape_1key):
new function.
* gnu/java/util/prefs/gconf/GConfNativePeer.java: removed
version javadoc tag.
(escapeString): new method.
(unescapeString): likewise.
(gconf_escape_key): new native method.
(gconf_unescape_key): likewise.
(gconf_client_suggest_sync): update native method signature, now
explicity throws BackingStoreException.
(gconf_client_all_nodes): update native method signature, now
explicity throws BackingStoreException. Refactored method name,
renamed from gconf_client_gconf_client_all_nodes.
(gconf_client_all_keys): update native method signature, now
explicity throws BackingStoreException. Refactored method name,
renamed from gconf_client_gconf_client_all_keys.
(getKeys): refactored to use the new method name
gconf_client_all_keys.
(getChildrenNodes): refactored to use the new method name
gconf_client_all_nodes.
* gnu/java/util/prefs/GConfBasedPreferences.java: removed
version javadoc tag.
(GConfBasedPreferences): Added code to escape node names from
invalid characters so that GConf now accept invalid node names.
(GConfBasedPreferences): Moved code to register the current
node to the list of nodes watched by GConf outside the constructor.
(childSpi): Added code to register the current node to the
list of nodes watched by GConf.
(getGConfKey): Added code to escape key names from
invalid characters so that GConf now accept invalid key names.
|
| |
|
|
|
|
|
|
| |
* gnu/java/nio/FileChannelImpl.java (read): revert back to using
`readScattering.'
(write): revert back to using `writeGathering.'
* vm/reference/gnu/java/nio/VMChannel.java (writeGathering): find
the first buffer that has data remaining, and start at that one.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/nio/charset/US_ASCII.java (Encoder.canEncode): New method.
(Encoder.canEncode): Likewise.
(Encoder.encodeLoop): Return unmappable for all non-ASCII characters.
* gnu/java/nio/charset/ByteCharset.java (Encoder.canEncode): New
method.
(Encoder.canEncode): Likewise.
* gnu/java/nio/charset/ISO_8859_1.java (Encoder.canEncode): New
method.
(Encoder.canEncode): Likewise.
|
| |
|
|
|
|
| |
* gnu/java/nio/FileChannelImpl.java
(read): call `read' in a loop, don't use `readScattering.'
(write): call `write' in a loop, don't use `writeGathering.'
|
| |
|
|
|
|
|
|
|
|
|
| |
* gnu/java/nio/EpollSelectorImpl.java (doSelect): remove keys
after we delete them.
(selectedKeys): return an empty set if nothing's been selected.
* native/jni/java-nio/gnu_java_nio_EpollSelectorImpl.c
(Java_gnu_java_nio_EpollSelectorImpl_epoll_1delete): don't
throw an exception on EBADF.
(Java_gnu_java_nio_EpollSelectorImpl_epoll_1wait): don't
throw exception on EINTR, just return 0.
|
| |
|
|
|
|
|
|
|
|
| |
Fixes bug #29047
* gnu/java/util/regex/RETokenRepeated.java
(findMatch): Rewriten without using recursive calls,
(FindMatchControlStack): New class,
(FindMatchControl): New class,
(TryAnotherResult): New class,
(tryAnother): New method.
|
| | |
|
| |
|
|
|
|
|
|
| |
* gnu/java/net/PlainDatagramSocketImpl.java (send): ignore
`InterruptedIOException;' try again if it gets thrown.
(receive): likewise, but re-throw `SocketTimeoutException.'
* gnu/java/nio/EpollSelectorImpl.java (doSelect): just return 0
if we have nothing to select.
|
| |
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java:
(getLogicalBounds): Respect glyph transformations.
(getGlyphOutline): Added null pointer check.
(getGlyphTransform): Do not generate identity transform (API permits null).
(setGlyphPosition): Do not invalidate transform.
(setGlyphTransform): Do not modify glyph position.
|
| |
|
|
|
|
|
|
|
| |
PR 29011
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java:
(getGlyphTransform): Use translation instead of scale.
(performDefaultLayout): Increment position values instead of resetting, and
pre-increment instead of post-increment.
(setGlyphTransform): Handle null case with identity transform.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac (AC_CHECK_HEADERS): check for `sys/epoll.h.'
(AC_CHECK_FUNCS): check for `epoll_create.'
* gnu/java/nio/EpollSelectionKeyImpl.java: new file.
* gnu/java/nio/EpollSelectorImpl.java: new file.
* gnu/java/nio/SelectorProviderImpl.java (epoll_failed): new class
field.
(openSelector): return epoll selector if requested and available.
* include/Makefile.am (H_FILES): add gnu_java_nio_EpollSelectorImpl.h.
(gnu_java_nio_EpollSelectorImpl.h): new target.
* include/gnu_java_nio_EpollSelectorImpl.h: new file.
* native/jni/java-nio/Makefile.am (libjavanio_la_SOURCES): add
gnu_java_nio_EpollSelectorImpl.c.
* native/jni/java-nio/gnu_java_nio_EpollSelectorImpl.c: new file.
|
| |
|
|
|
|
| |
* gnu/java/nio/SocketChannelImpl.java (finishConnect): don't
call `isConnected.'
(isConnected): return false if `connectionPending' is true.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
PR 29011
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java:
(constructor): Expanded glyphPositions array to accomodate Y-coordinates.
(getGlyphOutline): Call getGylphTransform to generate transform.
(getGylphPosition): Read position directly out of array.
(getGlyphPositions): Read positions directly out of array.
(getGlyphTransform): Generate transform based on gylphPositions array.
(performDefaultLayout): Populate glyphPositions array instead of transforms.
(setGlyphPosition): Set position directly into array.
(setGlyphTransform): Update positions array as well.
|
| |
|
|
|
| |
* gnu/java/net/protocol/http/HTTPURLConnection.java (connect): Add
default content-type for POST method.
|
| |
|
|
|
|
| |
PR 29012
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java:
(constructor): Copy image field.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java: Added interpolation constants.
(cairoSurfaceSetFilter): Removed method.
(drawImage): Pass interpolation type as argument to drawing methods.
(drawPixels): Added interpolation parameter.
(drawRaster): Pass interpolation type as argument to drawing method.
(getInterpolation): New method.
(setRenderingHint): Store hints, but do not set interpolation in cairo.
(setRenderingHints): Store hints, but do not set interpolation in cairo.
* gnu/java/awt/peer/gtk/CairoSurface.java
(drawSurface): Added interpolation parameter.
(nativeDrawSurface): Added interpolation parameter.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_drawPixels): Added interpolation
parameter.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoSurfaceSetFilter): Removed.
* native/jni/gtk-peer/cairographics2d.h
(java_awt_rendering_hints_filter): Added bicubic interpolation constant.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_drawPixels): Added interpolation
parameter.
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoSurfaceSetFilter): Removed.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c
(Java_gnu_java_awt_peer_gtk_CairoSurface_nativeDrawSurface): Added
interpolation parameter.
|
| |
|
|
|
| |
* gnu/java/rmi/server/ActivatableRef.java
(readExternal, writeExternal): Partial fix for serialization format.
|