| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/crypto/pad/PKCS7.java (unpad): Removed an unnecessary test.
* javax/crypto/CipherOutputStream.java: Re-implemented.
* gnu/javax/crypto/jce/cipher/CipherAdapter.java
(engineUpdate(byte[], int, int)): Always keep data for unpadding in padded
decryption mode and check if it is a complete block.
(engineUpdate(byte[], int, int, byte[], int)): Likewise.
(engineDoFinal(byte[], int, int)): In padded decryption mode, take
partially processed data into account.
|
|
|
|
|
|
|
|
| |
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/xml/transform/TransformerImpl.java (transform): Only strip if
there is a stylesheet.
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* resource/gnu/classpath/tools/orbd: New directory.
* resource/gnu/classpath/tools/rmic: Likewise.
* resource/gnu/classpath/tools/rmid: Likewise.
* resource/gnu/classpath/tools/rmiregistry: Likewise.
* resource/gnu/classpath/tools/tnameserv: Likewise.
* tools/gnu/classpath/tools/giop: Move contents to...
* tools/gnu/classpath/tools/orbd,
tools/gnu/classpath/tools/tnameserv: New directories.
* tools/gnu/classpath/tools/rmi/rmic: Move contents to...
* tools/gnu/classpath/tools/rmic: New directory.
* tools/gnu/classpath/tools/rmi/rmid: Move contents to...
* tools/gnu/classpath/tools/rmid: New directory.
* tools/gnu/classpath/tools/rmi/registry: Move contents to...
* tools/gnu/classpath/tools/rmiregistry: New directory.
* resource/gnu/classpath/tools/orbd/messages.properties: New file.
* resource/gnu/classpath/tools/rmic/messages.properties: Likewise.
* resource/gnu/classpath/tools/rmid/messages.properties: Likewise.
* resource/gnu/classpath/tools/rmiregistry/messages.properties:
Likewise.
* resource/gnu/classpath/tools/tnameserv/messages.properties:
Likewise.
* tools/gnu/classpath/tools/orbd/Main.java,
tools/gnu/classpath/tools/orbd/Messages.java,
tools/gnu/classpath/tools/orbd/PersistentContext.java,
tools/gnu/classpath/tools/orbd/PersistentContextMap.java,
tools/gnu/classpath/tools/orbd/PersistentMap.java,
tools/gnu/classpath/tools/rmic/AbstractMethodGenerator.java,
tools/gnu/classpath/tools/rmic/CompilationError.java,
tools/gnu/classpath/tools/rmic/Generator.java,
tools/gnu/classpath/tools/rmic/GiopIo.java,
tools/gnu/classpath/tools/rmic/HashFinder.java,
tools/gnu/classpath/tools/rmic/Main.java,
tools/gnu/classpath/tools/rmic/Messages.java,
tools/gnu/classpath/tools/rmic/MethodGenerator.java,
tools/gnu/classpath/tools/rmic/RMICException.java,
tools/gnu/classpath/tools/rmic/RmiMethodGenerator.java,
tools/gnu/classpath/tools/rmic/RmicBackend.java,
tools/gnu/classpath/tools/rmic/SourceGiopRmicCompiler.java,
tools/gnu/classpath/tools/rmic/SourceRmicCompiler.java,
tools/gnu/classpath/tools/rmic/Variables.java,
tools/gnu/classpath/tools/rmic/WrapUnWrapper.java,
tools/gnu/classpath/tools/rmic/templates,
tools/gnu/classpath/tools/rmid/ActivationSystemImpl.java,
tools/gnu/classpath/tools/rmid/ActivationSystemImpl_Stub.java,
tools/gnu/classpath/tools/rmid/Main.java,
tools/gnu/classpath/tools/rmid/Messages.java,
tools/gnu/classpath/tools/rmid/PersistentBidiHashTable.java,
tools/gnu/classpath/tools/rmiregistry/Main.java,
tools/gnu/classpath/tools/rmiregistry/Messages.java,
tools/gnu/classpath/tools/rmiregistry/PersistentHashTable.java,
tools/gnu/classpath/tools/rmiregistry/RegistryImpl.java,
tools/gnu/classpath/tools/rmiregistry/RegistryImpl_Skel.java,
tools/gnu/classpath/tools/rmiregistry/RegistryImpl_Stub.java,
tools/gnu/classpath/tools/tnameserv/Main.java,
tools/gnu/classpath/tools/tnameserv/Messages.java: New files.
* tools/gnu/classpath/tools/rmic/ClassRmicCompiler.java: Import
RMIC.java from cp-tools.
* configure.ac (AC_CONFIG_FILES): Add tools/grmiregistry,
tools/gtnameserv, tools/gorbd, tools/grmid and tools/grmic.
(AC_CONFIG_COMMANDS): Add grmiregistry, gtnameserv, gorbd, grmid
and grmic.
* examples/Makefile.am (GLIBJ_CLASSPATH): Add tools.zip.
* gnu/CORBA/NamingService/NamingServiceTransient.java (main):
Rename...
(start): New method.
* tools/Makefile.am: Add build support for new tool wrappers.
* tools/gorbd.in: New file.
* tools/grmic.in: Likewise.
* tools/grmid.in: Likewise.
* tools/grmiregistry.in: Likewise.
* tools/gtnameserv.in: Likewise.
* tools/gnu/classpath/tools/AbstractMethodGenerator.java: Move to...
* tools/gnu/classpath/tools/rmic/AbstractMethodGenerator.java: New
file.
* tools/gnu/classpath/tools/HelpPrinter.java: Remove file.
* tools/gnu/classpath/tools/rmi/Persistent.java: Move to...
* tools/gnu/classpath/tools/common/Persistent.java: New file.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
isConnected): Removed old comment.
(getRemoteSocketAddress): Uncommented.
(setOOBInline, getOOBInline, setKeepAlive, getKeepAlive,
setTrafficClass, getTrafficClass, setReuseAddress,
getReuseAddress, shutdownInput, shutdownOutput, isInputShutdown,
isOutputShutdown): Uncommented.
|
|
|
|
|
|
| |
Fixes PR 28589
* gnu/xml/transform/XSLURIResolver.java: Test SAXSource for specific
input stream during resolution.
|