- 13 Jan, 2004 1 commit
-
-
* java/awt/Dialog.java (show): Enable blocking for all modal dialogs and run secondary dispatch thread to process event queue while this thread is blocked. From-SVN: r75788
Fernando Nasser committed
-
- 09 Jan, 2004 2 commits
-
-
natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve a Utf8Const field before looking at its class. 2004-01-09 Andrew Haley <aph@redhat.com> * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Resolve a Utf8Const field before looking at its class. From-SVN: r75591
Andrew Haley committed -
* java/awt/geom/PathIterator.java (WIND_EVEN_ODD): Removed redundant modifiers. (WIND_NON_ZERO): Likewise. (SEG_MOVETO): Likewise. (SEG_LINETO): Likewise. (SEG_QUADTO): Likewise. (SEG_CUBICTO): Likewise. (SEG_CLOSE): Likewise. * java/awt/image/SinglePixelPackedSampleModel.java: Removed redundant semicolon. * java/io/ObjectInputStream.java (inputGetObjectStreamClasses): Removed unused variable "ret_val". * java/util/logging/Filter.java (isLoggable): Removed redundant modifier. * java/util/logging/LogManager.java: Removed redundant semicolon. * java/util/logging/XMLFormatter.java (format): Removed unused variable "key". From-SVN: r75570
Michael Koch committed
-
- 08 Jan, 2004 2 commits
-
-
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile): New name for the former setFile native method. (setFile): New method. (setDirectory): Implemented. (connectSignals): New native method. (setFilenameFilter): Improve comment. (getGraphics): Comment. (gtkHideFileDialog): New method. (gtkDisposeFileDialog): New method. (gtkSetFilename): New method. * java/awt/Dialog.java (show): Block on modal dialogs, but only for FileDialog for now. (hide): New method. (dispose): New method. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace deprecated creation functions. Make dialog modal. Add it to the window group. (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New function. (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename): Rename to... (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New name. (window_closed): New function. (ok_clicked): New function. (cancel_clicked): New function. From-SVN: r75557
Fernando Nasser committed -
2004-01-07 Graydon Hoare <graydon@redhat.com> * java/awt/Container.java (LightweightDispatcher): Implement. (visitChild): Reuse graphics object. (dispatchEventImpl): Optionally dispatch to lightweight. (addNotifyContainerChildren): Build LightweightDispatcher. From-SVN: r75531
Graydon Hoare committed
-
- 07 Jan, 2004 6 commits
-
-
* java/awt/Container.java (update): Clear only the clipped region, instead of clearing the entire Container. (visitChildren): Visit children in descending order. From-SVN: r75517
David Jee committed -
2004-01-07 Michael Koch <konqueror@gmx.de> * java/lang/reflect/Array.java: Merged documentation with classpath. From-SVN: r75512
Michael Koch committed -
* java/text/CollationElementIterator.java (textIndex): Renamed from index. * java/text/CollationKey.java (collator): New member. (CollationKey): New argument for parent collator. (equals): Check for same collator, source string and key array. * java/text/RuleBasedCollator.java: Reformated. (RuleBasedCollator): Don't re-initialize frenchAccents with default value. (getCollationElementIterator): Rewritten. (getCollationKey): Added new argument to CollationKey constructor. From-SVN: r75510
Michael Koch committed -
* gnu/java/nio/DatagramChannelImpl.java (blocking): Removed. (DatagramChannelImpl): Call configureBlocking(). (implConfigureBlocking): Dont initialize blocking. * gnu/java/nio/ServerSocketChannelImpl.java (blocking): Removed. (ServerSocketChannelImpl): Call configureBlocking(). (implConfigureBlocking): Dont initialize blocking. * gnu/java/nio/SocketChannelImpl.java (blocking): Removed. (SocketChannelImpl): Call configureBlocking(). (implConfigureBlocking): Dont initialize blocking. (connect): Use isBlocking(). * java/nio/channels/spi/AbstractSelectableChannel.java (configureBlocking): Use blockingLock() instead of LOCK. Set blocking after successfully called implConfigureBlocking(). (register): Use blockingLock() instead of LOCK. From-SVN: r75507
Michael Koch committed -
2004-01-07 Michael Koch <konqueror@gmx.de> * java/net/ServerSocket.java (isBound): Fixed documentation. From-SVN: r75506
Michael Koch committed -
2004-01-06 Graydon Hoare <graydon@redhat.com> * java/awt/Container.java (swapComponents): Add forgotten function, required for JLayeredPane change. From-SVN: r75491
Graydon Hoare committed
-
- 06 Jan, 2004 3 commits
-
-
2004-01-06 Michael Koch <konqueror@gmx.de> * java/text/CollationElementIterator.java: Reformated. (CollationElementIterator): Changed order of arguments. * java/text/RuleBasedCollator.java (RuleBasedCollator): Merged class documentation. (CollationElement): Added documentation. (compare): Reformated, renamed arguments. (equals): Likewise. (getCollationElementIterator): Likewise. (getCollationKey): Likewise. From-SVN: r75484
Michael Koch committed -
* java/net/URLConnection.java (contentHandler): Removed. (locale): Removed. (getHeaderFields): Return an empty map instead of null. (getContent): Connect if needed, renamed "cType" to "type" and "contentHandler" to "ch" and made it a local variable. (getPermission): Don't use package in class name. (setDefaultRequestProperty): Fixed typo in documentation. (initializeDateFormats): Made locale a local variable. From-SVN: r75466
Michael Koch committed -
* java/lang/Package.java (getPackage): Get the current class loader directly. * java/lang/SecurityManager.java (currentLoadedClass): Dont iterate over class contexts. (classLoaderDepth): Don't check class loaders if everything is allowed. From-SVN: r75465
Michael Koch committed
-
- 05 Jan, 2004 4 commits
-
-
* gnu/java/awt/peer/gtk/GtkScrollPanePeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c (create(int, int)): New method. (create): Call new create method. (gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove methods. (childResized): Remove native implementation. Implement in Java. (getHScrollbarHeight, getVScrollbarWidth): Call gtk_widget_size_request to get scrollbar dimensions. * java/awt/ScrollPane.java (getViewportSize): Reimplement. Only call getVScrollbarWidth and getHScrollbarHeight when vertical and horizontal scrollbars respectively are needed. (doLayout): Enlarge child if it is smaller than the viewport. From-SVN: r75446
Thomas Fitzsimmons committed -
* java/awt/Dialog.java (constructor): Accept null title as per spec. * java/awt/FileDialog.java (constructor): Throw exception on invalid argument as per spec. From-SVN: r75444
Fernando Nasser committed -
2004-01-05 Fernando Nasser <fnasser@redhat.com> * java/awt/Choice.java (add): Leave posting of ItemEvents to peer. (insert): Ditto. (remove): Ditto. Also, Check for valid argument. (removeAll): Use peer interface method. * gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for native add function. (nativeRemove): New name for native remove function. (getHistory): New native function. (constructor): Generate ItemEvent. (add): Ditto, if selection is changed. (remove): Ditto, ditto. (removeAll): Add implementation. (handleEvent): Remove. Dead code. (choicePostItemEvent): Add comment. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments. (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to... (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add comments and fix condition to change selection. (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to... (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add remove all capability. (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function. (item_activate): Add cast to remove compiler warning. From-SVN: r75443
Fernando Nasser committed -
2004-01-05 Sascha Brawer <brawer@dandelis.ch> Thanks to Brian Gough <bjg@network-theory.com> * java/awt/geom/CubicCurve2D.java (solveCubic): Implemented. * java/awt/geom/QuadCurve2D.java (solveQuadratic): Re-written. From-SVN: r75437
Sascha Brawer committed
-
- 04 Jan, 2004 1 commit
-
-
* java/util/Date.java (parse): Fix a number of problems. (skipParens): Remove no-longer-needed method. From-SVN: r75381
Per Bothner committed
-
- 31 Dec, 2003 3 commits
-
-
* java/io/ObjectOutputStream.java (putFields): Reindented. Fixed behaviour: currentPutField should be null before calling this method. (writeFields): Likewise. (markFieldsWritten): Fixed the exception message. (callWriteMethod): Ensure currentPutField is null. (getBooleanField): Translate IllegalArgumentException into InvalidClassException. (getByteField): Likewise. (getCharField): Likewise. (getDoubleField): Likewise. (getFloatField): Likewise. (getIntField): Likewise. (getLongField): Likewise. (getShortField): Likewise. (getObjectField): Check the type code before returning the object. (getField): Translate NoSuchFieldException into InvalidClassException directly. From-SVN: r75265
Guilhem Lavaux committed -
* java/net/URL.java (URL): Change context path to "/" if it is empty. From-SVN: r75264
Guilhem Lavaux committed -
2003-12-16 Graydon Hoare <graydon@redhat.com> * configure.in: Add --enable-gtk-cairo check. * configure: Regenerate. * Makefile.am: Conditionally link against cairo. * Makefile.in: Regenerate. * acinclude.m4: Include PKG_CHECK_MODULES. * aclocal.m4: Regenerate. * gnu/java/awt/peer/gtk/GtkToolkit.java (useGraphics2D): New method. (getFontMetrics, getClasspathFontPeer): * gnu/java/awt/peer/gtk/GtkCanvasPeer.java (getGraphics): * gnu/java/awt/peer/gtk/GtkComponentPeer.java (createImage): * gnu/java/awt/peer/gtk/GtkContainerPeer.java (getGraphics): * gnu/java/awt/peer/gtk/GtkFramePeer.java (getGraphics): Switch behavior depending on GtkToolkit.useGraphics2D(). * gnu/java/awt/peer/gtk/GtkFontPeer.java: Extend ClasspathFontPeer. * java/awt/Font.java: Switch to peer model. * jni/gtk-peer/gtkcairopeer.h: Definitions of cairo stuff. * jni/gtk-peer/gdkfont.h: Include gtkcairopeer.h. * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Include gtkcairopeer.h. * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeerMetrics.c: Un-include gtkpeer.h. From-SVN: r75260
Graydon Hoare committed
-
- 30 Dec, 2003 3 commits
-
-
2003-12-30 Guilhem Lavaux <guilhem@kaffe.org> * java/util/GregorianCalendar.java (computeFields): Reported by Ito Kazumitsu <kaz@maczuka.gcd.org>. Fixed the computation of DAY_OF_WEEK_IN_MONTH. (computeTime): 12:00 midnight is AM and 12:00 noon is PM. 2003-12-30 Michael Koch <konqueror@gmx.de> * testsuite/libjava.mauve/xfails: Removed the following testcase because it passes now: FAIL: gnu.testlet.java.text.SimpleDateFormat.Test: parse() strict (number 1) From-SVN: r75244
Michael Koch committed -
2003-12-30 Michael Koch <konqueror@gmx.de> * java/io/ObjectInputStream.java, java/io/ObjectOutputStream.java, java/io/ObjectStreamClass.java: Reformated, no functional code changes. From-SVN: r75236
Michael Koch committed -
* java/io/LineNumberReader.java (countLines): Removed. (fill): New private method. (mark): Changed logic to use and matchedNewLine. (reset): Likewise. (read): Likewise. (skipRedundantLF): Likewise. From-SVN: r75232
Guilhem Lavaux committed
-
- 28 Dec, 2003 1 commit
-
-
* java/io/LineNumberReader.java (mark): Improved error checking. (read): Likewise. (skip): Likewise. Skip is now really eating the specified number of characters. * java/io/CharArrayReader.java (read): It should throw IndexOutOfBoundsException and not ArrayIndexOutOfBoundsException (see mauve). * java/io/BufferedReader.java (readLine): Make readLine() really block until either EOF is reached or a true error happens. From-SVN: r75180
Guilhem Lavaux committed
-
- 26 Dec, 2003 3 commits
-
-
Naming.java (lookup): Check if the first character of the filename returned by URL.getFile() is a '/'... 2003-12-27 Guilhem Lavaux <guilhem@kaffe.org> * java/rmi/Naming.java (lookup): Check if the first character of the filename returned by URL.getFile() is a '/', only if it is the case we cut this first character and call the registry with the good name. (bind): Likewise. (rebind): Likewise. From-SVN: r75044
Guilhem Lavaux committed -
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org> Mark Wielaard <mark@klomp.org> * java/io/BufferedReader.java (BufferedReader): Throw IllegalArgumentException when size <= 0. (mark): Document and better exception message for negative readLimit IllegalArgumentException. (read(char[],int,int)): Throw IndexOutOfBoundsException if offset and count are not valid regarding buf. (skip): Throw IllegalArgumentException when count is negative. Co-Authored-By: Mark Wielaard <mark@klomp.org> From-SVN: r75041
Guilhem Lavaux committed -
* java/io/FileInputStream.java (FileInputStream(String)): Call FileInputStream(File). (FileInputStream(File)): Check whether the argument is a directory. From-SVN: r75039
Guilhem Lavaux committed
-
- 25 Dec, 2003 1 commit
-
-
ServerSocket.java bind (): If InetSocketAddress.getAddress() returns "null" use "0.0.0.0" as address to... 2003-12-25 Michael Koch <konqueror@gmx.de> * java/net/ServerSocket.java bind(): If InetSocketAddress.getAddress() returns "null" use "0.0.0.0" as address to bind to. From-SVN: r75023
Michael Koch committed
-
- 23 Dec, 2003 2 commits
-
-
* java/io/ObjectInputStream.java (getField): Handle transient and non persistent fields. (readClassDescriptor): Better error handling, use the right class loader. (readFields): Fields marked as not present in the stream or not to be set are not read and set. * java/io/ObjectInputStream.java (readFields): Changed implementation of GetField. (readClassDescriptor): Documented. * java/io/ObjectOutputStream.java (writeClassDescriptor): Added condition when to write class super class information. From-SVN: r74985
Guilhem Lavaux committed -
2003-12-22 Fernando Nasser <fnasser@redhat.com> * gnu/java/awt/peer/gtk/GtkChoicePeer.java (postItemEvent): Rename to... (choicePostItemEvent): Change signature to more specific String object. * java/awt/Choice.java (add): Generate ItemEvent for the first item added. (insert): Generate ItemEvent if insertion caused selection to change. (remove): Generate ItemEvent if removal cause selection to change. (removeAll): Change algorithm to prevent generation of ItemEvents. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c (connect_choice_item_selectable_hook): Change argument type. Fix argument value. Make sure resources are feed by registering callback. (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Adjust call to the above function. (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Ditto. (item_activate): Ditto. (Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Destroy removed menuitem. (item_removed): New function. Free resources. * jni/gtk-peer/gtkpeer.h (item_event_hook_info): Change member type and name. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkInit): Obtain MethodID for choicePostItemEvent. From-SVN: r74979
Fernando Nasser committed
-
- 20 Dec, 2003 4 commits
-
-
* gnu/java/net/protocol/jar/Connection.java (connectionCache): New field. (connect): New method. (getInputStream): New method. (hdrHash): New field. (hdrVec): New field. (gotHeaders): New field. (getHeaderField): New method. (getHeaderFields): New method. (getHeaderFieldKey): New method. (getKey): New method. (getField): New method. (getHeaders): New method. * java/net/JarURLConnection.java (connectionCache): Removed. (connect): Removed. (getInputStream): Removed. (hdrHash): Removed. (hdrVec): Removed. (gotHeaders): Removed. (getHeaderField): Removed. (getHeaderFields): Removed. (getHeaderFieldKey): Removed. (getKey): Removed. (getField): Removed. (getHeaders): Removed. From-SVN: r74895
Michael Koch committed -
2003-12-20 Michael Koch <konqueror@gmx.de> * java/io/ObjectStreamField.java (isUnshared): Added documentation. From-SVN: r74894
Michael Koch committed -
(selectThreadMutex): New field. (selectThread): New field. (unhandledWakeup): New field. (implCloseSelector): Added skeleton code which synchronizes as per Sun JRE JavaDoc. (keys): Throw ClosedSelectorException if selector is closed. (selectNow): Added comment that we're faking out an immediate select with a one-microsecond-timeout one. (select): Use 0 instead of -1 for infinite timeout. (implSelect): Changed comment in declaration. (select): Added synchronized to method declaration. Added synchronization and wakeup support as per Sun JRE JavaDoc. (selectedKeys): Throw ClosedSelectorException if selector is closed. (wakeup): Implemented. (deregisterCancelledKeys): Synchronize on cancelled key set before deregistering. (register): Synchronize on key set before registering. * java/nio/channels/spi/AbstractSelector.java Added import for java.nio.channels.ClosedSelectorException. (close): Added synchronized to method declaration. (cancelledKeys): Throw ClosedSelectorException if selector is closed. (cancelKey): Synchronize on cancelled key set before key. From-SVN: r74879
Mohan Embar committed -
2003-12-20 Guilhem Lavaux <guilhem@kaffe.org> * gnu/java/net/URLParseError.java: New file. * gnu/java/net/protocol/jar/Handler.java (parseURL): Throw URLParseError if needed, fix '/' handling. * java/net/URL.java (URL): Catch URLParseError and transform it into a MalformedURLException. From-SVN: r74877
Guilhem Lavaux committed
-
- 19 Dec, 2003 4 commits
-
-
2003-12-19 Michael Koch <konqueror@gmx.de> * gnu/java/nio/ChannelOutputStream.java: New file. * java/nio/channels/Channels.java (newOutputStream): Implemented. * Makefile.am (ordinary_java_source_files) Added gnu/java/nio/ChannelOutputStream.java. * Makefile.in: Regenerated. From-SVN: r74847
Michael Koch committed -
2003-12-19 Thomas Fitzsimmons <fitzsim@redhat.com> * java/awt/FlowLayout.java (layoutContainer): Let components assume their preferred height. Centre components vertically. From-SVN: r74844
Thomas Fitzsimmons committed -
2003-12-19 Michael Koch <konqueror@gmx.de> * gnu/java/nio/ChannelInputStream.java: New file. * java/nio/channels/Channels.java (newInputStream): Implemented. * java/nio/channels/FileChannelImpl.java (readImpl): Only put data into buffer if something was read. * Makefile.am (ordinary_java_source_files): Added gnu/java/nio/ChannelInputStream.java. * Makefile.in: Regenerated. From-SVN: r74842
Michael Koch committed -
2003-12-19 Michael Koch <konqueror@gmx.de> * gnu/java/nio/OutputStreamChannel.java: New file. * java/nio/channels/Channels.java (newChannel): Implemented. * Makefile.am (ordinary_java_source_files): Added gnu/java/nio/OutputStreamChannel.java. * Makefile.in: Regenerated. From-SVN: r74840
Michael Koch committed
-