aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2003-12-26Naming.java (lookup): Check if the first character of the filename returned ↵Guilhem Lavaux2-4/+37
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
2003-12-26BufferedReader.java (BufferedReader): Throw IllegalArgumentException when ↵Guilhem Lavaux2-3/+27
size <= 0. 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
2003-12-262003-12-26 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2-6/+15
* java/io/FileInputStream.java (FileInputStream(String)): Call FileInputStream(File). (FileInputStream(File)): Check whether the argument is a directory. From-SVN: r75039
2003-12-26Makefile.am (rmi_java_source_files): Added ↵Michael Koch3-0/+9
gnu/java/rmi/server/RMIVoidValue.java. 2003-12-26 Michael Koch <konqueror@gmx.de> * Makefile.am (rmi_java_source_files): Added gnu/java/rmi/server/RMIVoidValue.java. * Makefile.in: Regenerated. From-SVN: r75037
2003-12-262003-12-26 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux6-33/+153
Mark Wielaard <mark@klomp.org> * gnu/java/rmi/server/UnicastConnectionManager.java (startScavenger): Set the client connection manager to daemon state because it may block clients until TIMEOUT is reached when they are exiting. * gnu/java/rmi/RMIVoidValue.java: New file for a class representing a void return. * gnu/java/rmi/server/UnicastRemoteCall.java (DummyOutputStream): Add a boolean before each written field to know whether it is a primitive. (releaseOutputStream): Flush parameters at write time. * gnu/java/rmi/server/UnicastServerRef.java (incomingMessageCall): Return a RMIVoidValue if no value is to be returned. * gnu/java/rmi/server/UnicastServer.java (incomingMessageCall): Do not write a returned object if it is a RMIVoidValue. Co-Authored-By: Mark Wielaard <mark@klomp.org> From-SVN: r75033
2003-12-25ltdl.c (HAVE_DYLD): Remove ifdef conditional for darwin.Andreas Tobler2-6/+5
2003-12-25 Andreas Tobler <a.tobler@schweiz.ch> * libltdl/ltdl.c (HAVE_DYLD): Remove ifdef conditional for darwin. Fixed by fixinclude now. From-SVN: r75024
2003-12-25ServerSocket.java bind (): If InetSocketAddress.getAddress() returns "null" ↵Michael Koch2-2/+14
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
2003-12-232003-12-23 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux4-45/+359
* 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
2003-12-23GtkChoicePeer.java (postItemEvent): Rename to...Fernando Nasser6-29/+120
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
2003-12-23Copies.java, [...]: New files.Michael Koch13-0/+1046
2003-12-23 Michael Koch <konqueror@gmx.de> * javax/print/attribute/standard/Copies.java, javax/print/attribute/standard/JobImpressions.java, javax/print/attribute/standard/JobMediaSheets.java, javax/print/attribute/standard/JobPriority.java, javax/print/attribute/standard/NumberOfDocuments.java, javax/print/attribute/standard/NumberOfInterveningJobs.java, javax/print/attribute/standard/NumberUp.java, javax/print/attribute/standard/PagesPerMinuteColor.java, javax/print/attribute/standard/PagesPerMinute.java, javax/print/attribute/standard/QueuedJobCount.java: New files. * Makefile.am (ordinary_java_source_files): Added new files. * Makefile.in: Regenerated. From-SVN: r74971
2003-12-232003-12-23 Michael Koch <konqueror@gmx.de>Michael Koch4-8/+49
* javax/print/attribute/AttributeSetUtilities.java (verifyCategoryForValue): Renamed from verifyCategoryForAttribute. * javax/print/attribute/HashAttributeSet.java (HashAttributeSet): Call internal add methods, added missing exceptions. (add): Call addInternal, added exceptions to documentation. (addInternal): New method. (addAll): Call addAllInternal, added exception to documentation. (addAllInternal): New method. (clear): Added exception to documentation. (remove): Likewise. * javax/print/attribute/URISyntax.java (serialVersionUID): Fixed value. From-SVN: r74969
2003-12-222003-12-22 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2-1/+6
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler): Don't dereference NULL focus_obj_ptr. From-SVN: r74948
2003-12-21AttributeSetUtilities.java, [...]: New files.Michael Koch9-0/+1191
2003-12-21 Michael Koch <konqueror@gmx.de> * javax/print/attribute/AttributeSetUtilities.java, javax/print/attribute/HashAttributeSet.java, javax/print/attribute/HashDocAttributeSet.java, javax/print/attribute/HashPrintJobAttributeSet.java, javax/print/attribute/HashPrintRequestAttributeSet.java, javax/print/attribute/HashPrintServiceAttributeSet.java: New files. * Makefile.am (ordinary_java_source_files): Added new files. * Makefile.in: Regenerated. From-SVN: r74914
2003-12-21EnumSyntax.java, [...]: New files.Michael Koch5-0/+414
2003-12-21 Michael Koch <konqueror@gmx.de> * javax/print/attribute/EnumSyntax.java, javax/print/attribute/SetOfIntegerSyntax.java: New files. * Makefile.am (ordinary_java_source_files): Added javax/print/attribute/EnumSyntax.java and javax/print/attribute/SetOfIntegerSyntax.java. * Makefile.in: Regenerated. From-SVN: r74908
2003-12-21PrintJobAttribute.java, [...]: New files.Michael Koch9-0/+319
2003-12-21 Michael Koch <konqueror@gmx.de> * javax/print/attribute/PrintJobAttribute.java, javax/print/attribute/PrintJobAttributeSet.java, javax/print/attribute/PrintRequestAttribute.java, javax/print/attribute/PrintServiceAttribute.java, javax/print/attribute/PrintServiceAttributeSet.java, javax/print/attribute/SupportedValuesAttribute.java: New files. * Makefile.am (ordinary_java_source_files): Added new files. * Makefile.in: Regenerated. From-SVN: r74905
2003-12-21DateTimeSyntax.java, [...]: New files.Michael Koch12-0/+1104
2003-12-21 Michael Koch <konqueror@gmx.de> * javax/print/attribute/DateTimeSyntax.java, javax/print/attribute/DocAttribute.java, javax/print/attribute/DocAttributeSet.java, javax/print/attribute/IntegerSyntax.java, javax/print/attribute/ResolutionSyntax.java, javax/print/attribute/Size2DSyntax.java, javax/print/attribute/TextSyntax.java, javax/print/attribute/URISyntax.java, javax/print/attribute/UnmodifiableSetException.java: New files. * Makefile.am (ordinary_java_source_files): Added new files. * Makefile.in: Regenerated. From-SVN: r74904
2003-12-202003-12-21 Michael Koch <konqueror@gmx.de>Michael Koch2-2/+20
* gnu/java/net/PlainDatagramSocketImpl.java (mcastGrp): Added documentation. From-SVN: r74896
2003-12-202003-12-20 Michael Koch <konqueror@gmx.de>Michael Koch3-228/+258
* 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
2003-12-20ObjectStreamField.java (isUnshared): Added documentation.Michael Koch2-0/+10
2003-12-20 Michael Koch <konqueror@gmx.de> * java/io/ObjectStreamField.java (isUnshared): Added documentation. From-SVN: r74894
2003-12-20* gnu/java/nio/SelectorImpl.javaMohan Embar3-81/+247
(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
2003-12-20Makefile.am (ordinary_java_source_files): Added gnu.java.net.URLParseError.java.Michael Koch3-1/+9
2003-12-20 Michael Koch <konqueror@gmx.de> * Makefile.am (ordinary_java_source_files): Added gnu.java.net.URLParseError.java. * Makefile.in: Regenerated. From-SVN: r74878
2003-12-20URLParseError.java: New file.Guilhem Lavaux4-8/+99
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
2003-12-19ChannelOutputStream.java: New file.Michael Koch5-2/+82
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
2003-12-19FlowLayout.java (layoutContainer): Let components assume their preferred height.Thomas Fitzsimmons2-1/+7
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
2003-12-19ChannelInputStream.java: New file.Michael Koch6-3/+98
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
2003-12-19OutputStreamChannel.java: New file.Michael Koch5-4/+102
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
2003-12-19Makefile.am (ordinary_java_source_files): Added gnu.java.nio.InputStreamChannel.Michael Koch3-1/+11
2003-12-19 Michael Koch <konqueror@gmx.de> * Makefile.am (ordinary_java_source_files): Added gnu.java.nio.InputStreamChannel. * Makefile.in: Regenerated. From-SVN: r74839
2003-12-19InputStreamChannel.java: New file.Michael Koch3-3/+97
2003-12-19 Michael Koch <konqueror@gmx.de> * gnu/java/nio/InputStreamChannel.java: New file. * java/nio/channels/Channels.java (newChannel): Implemented. From-SVN: r74838
2003-12-192003-12-19 Michael Koch <konqueror@gmx.de>Michael Koch2-7/+33
* java/util/SimpleTimeZone.java (setStartRule): Reformated documentation. (setEndRule): Reworked documentation. (getDSTSavings): Fixed @since tag. (setDSTSavings): New method. From-SVN: r74831
2003-12-19NumberFormat.java: Sorted imports.Michael Koch2-5/+53
2003-12-19 Michael Koch <konqueror@gmx.de> * java/text/NumberFormat.java: Sorted imports. (getCurrency): New method. (setCurrency): New method. From-SVN: r74830
2003-12-192003-12-19 Michael Koch <konqueror@gmx.de>Michael Koch2-3/+22
* java/text/MessageFormat.java (MessageFormat): New constructor. From-SVN: r74828
2003-12-192003-12-19 Michael Koch <konqueror@gmx.de>Michael Koch2-0/+88
* gnu/java/net/protocol/jar/Handler.java (parseURL): New method. (toExternalForm): New method. From-SVN: r74827
2003-12-19List.java (replaceItem): Prevent selection to move with replace and minimize ↵Fernando Nasser2-2/+20
flickering. 2003-12-18 Fernando Nasser <fnasser@redhat.com> * java/awt/List.java (replaceItem): Prevent selection to move with replace and minimize flickering. From-SVN: r74814
2003-12-18ltdl.c: Define __private_extern__ if needed.Michael Koch2-1/+11
2003-12-18 Michael Koch <konqueror@gmx.de> * libltdl/ltdl.c: Define __private_extern__ if needed. From-SVN: r74801
2003-12-18cvsignore: Ignore autom4te.cacheMichael Koch8-68/+127
2003-12-18 Michael Koch <konqueror@gmx.de> * libltdl/.cvsignore: Ignore autom4te.cache * libltdl/Makefile.in: Regenerated. * libltdl/aclocal.m4: Regenerated. * libltdl/acconfig.h: Removed (obsolete). * libltdl/config-h.in: Regenerated. * libltdl/configure.ac: Added AM_MAINTAINER_MODE. * libltdl/configure: Regenerated. From-SVN: r74800
2003-12-18mauve-libgcj: Removed the disabling of java.text.ACIAttribute and...Michael Koch3-6/+73
2003-12-18 Michael Koch <konqueror@gmx.de> * mauve-libgcj: Removed the disabling of java.text.ACIAttribute and java.text.CollationElementIterator tests as they compile again. * testsuite/libjava.mauve/xfails: Added failing java.text.CollationElementIterator tests. From-SVN: r74796
2003-12-182003-12-18 Michael Koch <konqueror@gmx.de>Michael Koch2-0/+15
* java/util/prefs/AbstractPreferences.java (cachedChildren): New method. From-SVN: r74785
2003-12-18TimeZone.java (getOffset): New method.Michael Koch2-1/+21
2003-12-18 Michael Koch <konqueror@gmx.de> * java/util/TimeZone.java (getOffset): New method. From-SVN: r74784
2003-12-17GtkListPeer.java (handleEvent): Fix generation of ActionEvents for mouse ↵Fernando Nasser2-3/+15
double-clicks. 2003-12-17 Fernando Nasser <fnasser@redhat.com> * gnu/java/awt/peer/gtk/GtkListPeer.java (handleEvent): Fix generation of ActionEvents for mouse double-clicks. From-SVN: r74745
2003-12-17GtkContainerPeer.java (handleEvent): Check for null Graphics pointer ↵Fernando Nasser2-0/+10
returned by FileDialogPeer. 2003-12-16 Fernando Nasser <fnasser@redhat.com> * gnu/java/awt/peer/gtk/GtkContainerPeer.java (handleEvent): Check for null Graphics pointer returned by FileDialogPeer. From-SVN: r74744
2003-12-17stamp-h.in: Removed, not used anymore.Michael Koch2-1/+4
2003-12-17 Michael Koch <konqueror@gmx.de> * libltdl/stamp-h.in: Removed, not used anymore. From-SVN: r74742
2003-12-16natPlainDatagramSocketImplWin32.cc: Removed unused InterruptedIOException.h ↵Mohan Embar3-30/+37
include. * gnu/java/net/natPlainDatagramSocketImplWin32.cc: Removed unused InterruptedIOException.h include. * gnu/java/net/natPlainSocketImplWin32.cc (connect): Reset and ignore our thread's interrupted flag instead of testing and throwing an InterruptedIOException if set. (accept): Likewise + changed case of SocketTimeoutException text. (write): Likewise (for both overloads). (doRead): Likewise. From-SVN: r74716
2003-12-16win32.cc (WSAEventWrapper): Implemented default constructor and init() methods.Mohan Embar4-94/+122
* win32.cc (WSAEventWrapper): Implemented default constructor and init() methods. (_Jv_select): Removed. * gnu/java/nio/natSelectorImplWin32.cc (helper_put_filedescriptors): Removed. (helper_get_filedescriptors): Removed. (implSelect): Implemented in terms of WSAEventWrapper and WSAWaitForMultipleEvents instead of _Jv_select(). Added support for thread interruption. * include/win32.h (WSAEventWrapper): Minor formatting changes; added default constructor declaration, init(), getFD() and getEventHandle() methods. (_Jv_select): Removed. From-SVN: r74715
2003-12-16* gnu/java/net/natPlainDatagramSocketImplPosix.ccMohan Embar3-6/+18
(peekData): Throw SocketTimeoutException instead of InterruptedIOException on timeout. (receive): Likewise. * gnu/java/net/natPlainSocketImplPosix.cc (read): Made a minor exception text case change. From-SVN: r74714
2003-12-16re PR libgcj/13056 (import new libltdl)Michael Koch18-6388/+38184
2003-12-16 Michael Koch <konqueror@gmx.de> Fix for PR libgcj/13056. * libltdl/configure.in, libltdl/config.h.in: Removed. * libltdl/configure.ac, libltdl/config-h.in, libltdl/install-sh, libltdl/config.guess, libltdl/config.sub, libltdl/missing, libltdl/mkinstalldirs, libltdl/ltmain.sh: New files. * libltdl/Makefile.am, libltdl/acinclude.m4, libltdl/aclocal.m4, libltdl/ltdl.c, libltdl/ltdl.h, libltdl/README: Update to versions from libtool 1.5. libltdl/configure, * libltdl/Makefile.in: Regenerated. * java/lang/natRuntime.cc (find_symbol): Use type 'lt_ptr' instead of 'lt_ptr_t'. From-SVN: r74711
2003-12-162003-12-16 Michael Koch <konqueror@gmx.de>Michael Koch2-1/+6
* java/awt/MenuComponent.java (serialVersionUID): Fixed value. From-SVN: r74709
2003-12-162003-12-16 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2-1/+12
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler): Handle GtkButton widgets differently as events go to its event_window. (connect_awt_hook): Remove compiler warning. From-SVN: r74704
2003-12-16i2003-12-16 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux3-36/+201
* java/io/ObjectInputStream.java (lookupClass): New method. (currentLoader): New method. (inputGetObjectStreamClasses): New method. (assignNewHandle): Documented. (currentClassLoader): Documented. * java/io/ObjectStreamClass.java (setClass): Changed API. Better handling of the imported/exported fields. (getSerialPersistentFields): Make it throw previously caught exceptions so they can handled in setClass. From-SVN: r74693
2003-12-16ObjectStreamField.java: A few methods were added in prevision of the ↵Guilhem Lavaux2-6/+167
upcoming upgrade of the... 2003-12-16 Guilhem Lavaux <guilhem@kaffe.org> * java/io/ObjectStreamField.java: A few methods were added in prevision of the upcoming upgrade of the serialization code. This also adds some missing documentation. (ObjectStreamField): We should throw a NullPointerException when 'name' is null. From-SVN: r74690
2003-12-16ObjectInputStream.java (setBooleanField): Throw an InvalidClassException if ↵Guilhem Lavaux2-17/+166
the field hasn't the required type... 2003-12-16 Guilhem Lavaux <guilhem@kaffe.org> * java/io/ObjectInputStream.java (setBooleanField): Throw an InvalidClassException if the field hasn't the required type, documentation added. (setByteField) Likewise. (setCharField) Likewise. (setDoubleField) Likewise. (setFloatField) Likewise. (setIntField) Likewise. (setShortField) Likewise. (setLongField) Likewise. (setObjectField) Likewise. From-SVN: r74688