aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
AgeCommit message (Collapse)AuthorFilesLines
2003-12-04FilePermission.java: Import used classes explicitely.Michael Koch1-2/+1
2003-12-04 Michael Koch <konqueror@gmx.de> * java/io/FilePermission.java: Import used classes explicitely. From-SVN: r74293
2003-12-04BeanDescriptor.java, [...]: Explicitely import used classes.Michael Koch9-17/+20
2003-12-04 Michael Koch <konqueror@gmx.de> * java/beans/BeanDescriptor.java, java/beans/EventSetDescriptor.java, java/beans/FeatureDescriptor.java, java/beans/IndexedPropertyDescriptor.java, java/beans/Introspector.java, java/beans/MethodDescriptor.java, java/beans/PropertyDescriptor.java, java/beans/SimpleBeanInfo.java: Explicitely import used classes. * java/beans/beancontext/BeanContextServicesSupport.java (serialVersionUID): New field. From-SVN: r74287
2003-12-04MenuComponent.java: Import java.io.Serialization.Michael Koch4-9/+14
2003-12-04 Michael Koch <konqueror@gmx.de> * java/awt/MenuComponent.java: Import java.io.Serialization. * java/awt/MenuItem.java: Likewise. * java/awt/TextComponent.java: Likewise. * java/awt/image/ImagingOpException.java (serialVersionUID): Fixed. From-SVN: r74286
2003-12-042003-12-04 Michael Koch <konqueror@gmx.de>Michael Koch1-58/+30
* java/net/DatagramPacket.java (length): Made packge-private to make it accessible via CNI. (maxlen): New field. (DatagramPacket): Cleaned up. (setSocketAddress): Add message to exception. (setData): Call other setData(). (setData): Call setLength(). (setLength): Initialize maxlen too. * gnu/java/net/natPlainDatagramSocketImplPosix.cc (peekData): Get maximal length from maxlen field, set length field directly. (receive): Likewise. * gnu/java/net/natPlainDatagramSocketImplWin32.cc (peekData): Get maximal length from maxlen field, set length field directly. (receive): Likewise. From-SVN: r74278
2003-12-03Class.h (hack_signers): Renamed signers to hack_signers.Michael Koch2-3/+3
2003-12-03 Michael Koch <konqueror@gmx.de> * java/lang/Class.h (hack_signers): Renamed signers to hack_signers. * java/lang/natClass.cc (getSigners): Likewise. (setSigners): Likewise. From-SVN: r74247
2003-12-02configure.in: Added new MinGW-specific configure flag --with-win32-nlsapi.Mohan Embar4-62/+75
* configure.in: Added new MinGW-specific configure flag --with-win32-nlsapi. Added new AC_DEFINE MINGW_LIBGCJ_UNICODE. Add -lunicows to MinGW SYSTEMSPEC if --with-win32-nlsapi is set to unicows. * configure: Rebuilt. * include/config.h.in: Rebuilt. * win32.cc (_Jv_Win32NewString): Implemented. (nativeToUnicode): New helper function defined only for non-UNICODE builds. (unicodeToNative): Likewise. (_Jv_Win32TempString): Implemented. (lots): Refactored using tchar.h macros. (WSAEventWrapper): Use _Jv_Win32NewString. (_Jv_platform_initialize): Use GetModuleFileNameA instead of GetModuleFileName. (_Jv_platform_initProperties): Use _Jv_Win32NewString. Use temporary stack buffer instead of a heap buffer. * include/win32.h Added defines for UNICODE and _UNICODE if MINGW_LIBGCJ_UNICODE is defined; added tchar.h include. (_Jv_Win32TempString): Declared new helper class. (JV_TEMP_STRING_WIN32): New helper macro. (_Jv_Win32NewString): Declared new helper method. * java/io/natFileDescriptorWin32.cc (open): Use JV_TEMP_STRING_WIN32 instead of JV_TEMP_UTF_STRING. (write): Reformatted slightly. * java/io/natFileWin32.cc (lots): Use tchar.h macros; use JV_TEMP_STRING_WIN32 instead of JV_TEMP_UTF_STRING. (getCanonicalPath): Use _Jv_Win32NewString instead of JvNewStringUTF. (performList): Likewise. * java/lang/natWin32Process.cc (ChildProcessPipe): Use tchar.h macros. (startProcess): Use tchar.h macros, JV_TEMP_STRING_WIN32, and UNICODE environment flag for CreateProcess. * java/net/natNetworkInterfaceWin32.cc (winsock2GetRealNetworkInterfaces): Use tchar.h macros and _Jv_Win32NewString. From-SVN: r74201
2003-12-02Security.java: Don't use &nbsp; in the api doc.Mark Wielaard1-1/+1
2003-12-02 Mark Wielaard <mark@klomp.org> * java/security/Security.java: Don't use &nbsp; in the api doc. From-SVN: r74191
2003-12-02Reported by: Jim Pick <jim@kaffe.org>Dalibor Topic1-1/+24
2003-12-02 Dalibor Topic <robilad@kaffe.org> Reported by: Jim Pick <jim@kaffe.org> * libraries/javalib/java/util/Hashtable.java (internalcontainsValue): New method. (contains): Delegate to internalContainsValue. Reported by: Mark Wielaard <mark@klomp.org> * libraries/javalib/java/util/Hashtable.java (contains): Improved comment. Reported by: Jeroen Frijters <jeroen@frijters.net> * libraries/javalib/java/util/Hashtable.java (containsValue): Delegate to contains(Object) to make sure older code overwriting it continues to work. From-SVN: r74190
2003-12-02GtkListPeer.java (handleEvent): New method.Fernando Nasser1-1/+1
2003-12-02 Fernando Nasser <fnasser@redhat.com> * gnu/java/awt/peer/gtk/GtkListPeer.java (handleEvent): New method. Handle mouse and key events that must generate ActionEvents. * java/awt/List.java (getSelectedIndex): Return -1 if no list element is selected. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (awt_event_handler): Correct handling of mouse and key events so that List receives them. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c (Java_gnu_java_awt_peer_gtk_GtkListPeer_delItems): Fix removal of multiple list elements. From-SVN: r74189
2003-12-02SimpleDateFormat.java (compileFormat): isLowerCase() and isUpperCase() allow ↵Ito Kazumitsu1-2/+2
too many characters. 2003-12-02 Ito Kazumitsu <kaz@maczuka.gcd.org> * java/text/SimpleDateFormat.java (compileFormat): isLowerCase() and isUpperCase() allow too many characters. Just use >= 'A' && <= 'Z' || >= 'a' && <= 'z'. From-SVN: r74188
2003-12-02FieldPosition.java (equals): Fixed comment.Dalibor Topic1-1/+1
2003-12-02 Dalibor Topic <robilad@kaffe.org> * java/text/FieldPosition.java (equals): Fixed comment. From-SVN: r74187
2003-12-02Reported by Archie Cobbs:Mark Wielaard1-2/+2
2003-12-02 Mark Wielaard <mark@klomp.org> Reported by Archie Cobbs: * java/security/DigestInputStream.java (read(byte[], int, int): Call digest.update() with temp, not len as lenght. From-SVN: r74186
2003-12-022003-12-02 Michael Koch <konqueror@gmx.de>Michael Koch3-7/+15
* java/net/DatagramSocket.java (close): Close associated DatagramChannel object. * java/net/ServerSocket.java * java/net/Socket.java (close): Reset impl and bound before calling getChannel().close() to prevent from loops. From-SVN: r74183
2003-12-022003-12-02 Michael Koch <konqueror@gmx.de>Michael Koch1-4/+7
* java/nio/channels/spi/AbstractInterruptibleChannel.java (opened): Removed. (closed): New field. (close): Check of channel is closed already. (isOpen): Return !closed. From-SVN: r74182
2003-12-02DateFormat.java: Explicitely import used classes.Michael Koch1-1/+6
2003-12-02 Michael Koch <konqueror@gmx.de> * java/text/DateFormat.java: Explicitely import used classes. From-SVN: r74174
2003-12-012003-12-01 Olga Rodimina <rodimina@redhat.com>Olga Rodimina1-2/+2
* java/awt/TextComponent.java: (getSelectionStart): Updated javadocs. (getSelectionEnd): Ditto. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer: (getSelectionStart): Changed to return caret position if no text is selected (getSelectionEnd): Ditto. From-SVN: r74124
2003-12-01GtkImage.java (setDimensions, [...]): Check that io is not null before ↵Thomas Fitzsimmons2-345/+649
calling io.imageUpdate. 2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkImage.java (setDimensions, setProperties): Check that io is not null before calling io.imageUpdate. * java/awt/image/ImageConsumer.java (setPixels, imageComplete): Update javadocs. * java/awt/image/PixelGrabber.java: Fix implementation and update javadocs. From-SVN: r74103
2003-11-302003-11-30 Jeff Sturm <jsturm@one-point.com>Michael Koch4-25/+8
* java/net/InetAddress.java: (static): Don'f force DNS request for ANY_IF address. 2003-11-30 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java, java/net/natInetAddressNoNet.cc, java/net/natInetAddressPosix.cc, java/net/natInetAddressWin32.cc: Reverted my last patch. From-SVN: r74074
2003-11-282003-11-28 Michael Koch <konqueror@gmx.de>Michael Koch4-7/+24
* java/net/InetAddress.java (lookup): New method that doesnt lookup "0.0.0.0". (ImplLookup): Renamed from lookup. * java/net/natInetAddressNoNet.cc (ImplLookup): Renamed from lookup. * java/net/natInetAddressPosix.cc (ImplLookup): Renamed from lookup. * java/net/natInetAddressWin32.cc (ImplLookup): Renamed from lookup. From-SVN: r74026
2003-11-27[multiple changes]Michael Koch1-5/+71
2003-11-27 Dalibor Topic <robilad@kaffe.org> * java/text/FieldPosition.java (equals): Adapted to handle field_attribute. Added fast-circuit check for comparison to self. Replaced use of instanceof by getClass to fix symmetry for derived types. (toString): Adapted to handle field_attribute. Improved readability. (hashCode): New method. 2003-11-27 Guilhem Lavaux <guilhem@kaffe.org> * java/text/FieldPosition.java (field_attribute): New field. (FieldPosition (Format.Field), FieldPosition(Format.Field, int), getFieldAttribute): New methods. From-SVN: r73988
2003-11-27DecimalFormatSymbols.java (locale): New field.Guilhem Lavaux1-3/+14
2003-11-27 Guilhem Lavaux <guilhem@kaffe.org> * java/text/DecimalFormatSymbols.java (locale): New field. (DecimalFormatSymbols (Locale)): Set locale. (serialVersionOnStream): Upgraded to number 2. (readObject): Assign locale if it wasn't by the serializer. From-SVN: r73987
2003-11-27FormatCharacterIterator.java: Documented the class andGuilhem Lavaux1-54/+118
2003-11-27 Guilhem Lavaux <guilhem@kaffe.org> * java/text/FormatCharacterIterator.java: Documented the class and 2003-11-27 Guilhem Lavaux <guilhem@kaffe.org> * java/text/FormatCharacterIterator.java: Fixed some typos. From-SVN: r73986
2003-11-27[multiple changes]Michael Koch1-1/+158
2003-11-27 Guilhem Lavaux <guilhem@kaffe.org> * java/text/NumberFormat.java: (getIntegerInstance) Added the java version in the comments. 2003-11-27 Mark Wielaard <mark@klomp.org> * java/text/NumberFormat.java: Import java.io.InvalidObjectException. (readResolve): Reformat. 2003-11-27 Guilhem Lavaux <guilhem@kaffe.org> * java/text/NumberFormat.java (NumberFormat.Field): New implemented class to match Java 1.4. (getIntegerInstance): Two new Java 1.4 methods.o From-SVN: r73985
2003-11-27GregorianCalendar.java (getLinearTime): Avoid counting the leap day of the ↵Ito Kazumitsu1-4/+6
leap year twice. 2003-11-27 Ito Kazumitsu <kaz@maczuka.gcd.org> * java/util/GregorianCalendar.java (getLinearTime): Avoid counting the leap day of the leap year twice. (computeFields): First week of month is 1 not 0. From-SVN: r73984
2003-11-26ZipFile (Zipfile(File)): Set file path as name.David Belanger1-3/+3
2003-11-26 David Belanger <dbelan2@cs.mcgill.ca> * java/util/zip/ZipFile (Zipfile(File)): Set file path as name. (ZipFile(File,int)): Likewise. From-SVN: r73965
2003-11-26HashMap.java (putAll): Use Iterator hasNext() method.Stuart Ballard2-9/+8
2003-11-26 Stuart Ballard <stuart.ballard@corp.fast.net> * java/util/HashMap.java (putAll): Use Iterator hasNext() method. (putAllInternal): Likewise. * java/util/Hashtable.java (putAll): Use Iterator hasNext() method. (putAllInternal): Likewise. From-SVN: r73964
2003-11-262003-11-26 Michael Koch <konqueror@gmx.de>Michael Koch1-1/+26
* java/net/URLStreamHandler.java (parseURL): Added comment in catch statement. (canonicalizeFilename): Add documentation. (sameURL): Completed documentation. (equals): Likewise. (hostsEqual): Likewise. (getDefaulPort): Likewise. (hashCode): Likewise. (toExternalForm): Likewise. (getHostName): Fix empty hostname check, completed documentation. From-SVN: r73962
2003-11-26natDouble.cc (parseDouble): Reverted patch of 2003-11-13.Tom Tromey1-1/+1
* java/lang/natDouble.cc (parseDouble): Reverted patch of 2003-11-13. From-SVN: r73956
2003-11-26URLStreamHandler (parseUrl): Fixed URL parsing ('@' should be checked to ↵Guilhem Lavaux1-7/+25
distinguish port from userinfo). 2003-11-26 Guilhem Lavaux <guilhem@kaffe.org> Mark Wielaard <mark@klomp.org> * java/net/URLStreamHandler (parseUrl): Fixed URL parsing ('@' should be checked to distinguish port from userinfo). (toExternalForm): Add @ userInfo if necessary. Co-Authored-By: Mark Wielaard <mark@klomp.org> From-SVN: r73953
2003-11-262003-11-26 Michael Koch <konqueror@gmx.de>Michael Koch1-42/+31
* java/net/DatagramSocket.java (DategramSocket, bind): Moved binding code from DatagramSocket constructor to bind method. From-SVN: r73952
2003-11-262003-11-26 Michael Koch <konqueror@gmx.de>Michael Koch2-113/+172
* java/net/DatagramSocket.java (impl): Made private. (bound): New private member variable. (DatagramSocket): Fixed documentation, use getImpl(). (getImpl): New package-private method. (isClosed): Use getImpl(). (getLocalAddress): Completed documentation, use getImpl(). (getLocalPort): Use getImpl(). (getSoTimeout): Likewise. (setSoTimeout): Likewise. (getSendBufferSize): Likewise. (setSendBufferSize): Likewise. (getReceiveBufferSize): Likewise. (setReceiveBufferSize): Likewise. (connect): Likewise. (disconnect): Likewise. (receive): Likewise. (send): Likewise. (setReuseAddress): Likewise. (setTrafficClass): Likewise. (bind): Added message to exception. (isClosed): Completed documentation. (getChannel): Likewise. (connect): Added missing exception, refined exception message. (isBound): Completed documentation, just return bound. (isConnected): Completed documentation. (getRemoteSocketAddress): Likewise. (getReuseAddress): Completed documentation, use getImpl(). (setSoBroadcast): Likewise. (getSoBroadcast): Likewise. (getTrafficClass): Likewise. (getLocalSocketAddress): Simplified. * java/net/MulticastSocket.java (MulticastSocket): Removed comment not applying anymore. (getInterface): Use getImpl(). (getTTL): Likewise. (getTimeToLive): Likewise. (setInterface): Likewise. (setNetworkInterface): Likewise. (getNetworkInterface): Likewise. (setLoopback): Likewise. (getLoopback): Likewise. (setTTL): Likewise. (setTimeToLive): Likewise. (joinGroup): Likewise. (leaveGroup): Likewise. (send): Likewise. From-SVN: r73951
2003-11-262003-11-26 Michael Koch <konqueror@gmx.de>Michael Koch2-14/+29
* java/net/Socket.java (implCreated): Dont set default value explicitely, added documentation. (inputShutdown): Likewise. (outputShutdown): Likewise. (bound): New private member variable. (bind): Set bound to true. (close): Set bound to false. (isBound): Return bound. * java/net/ServerSocket.java (bound): New private member variable. (bind): Set bound to true. (close): Set bound to false. (isBound): Return bound. From-SVN: r73949
2003-11-262003-11-26 Michael Koch <konqueror@gmx.de>Michael Koch1-9/+43
* java/net/URL.java (URL): Fixed documentation to be HTML compliant. (getContent): Completed documentation. (getFile): Likewise. (getPath): Likewise. (getAuthority): Likewise. (getHost): Likewise. (getDefaultPort): Likewise. (getProtocol): Likewise. (hashCode): Likewise. (openConnection): Likewise. (openStream): Likewise. (set): Likewise. (getURLStreamHandler): Wrapped lines to fit into our 79 chars rule. From-SVN: r73947
2003-11-262003-11-26 Michael Koch <konqueror@gmx.de>Michael Koch1-3/+30
* java/net/InetSocketAddress.java (hostname): Made private, added documentation. (addr): Likewise. (port): Likewise. (equals): Completed documentation. (getAddress): Likewise. (getHostName): Likewise. (getPort): Likewise. (hashCode): Likewise. (isUnresolved): Likewise. (toString): Likewise. From-SVN: r73946
2003-11-262003-11-26 Michael Koch <konqueror@gmx.de>Michael Koch1-5/+5
* java/net/DatagramPacket.java (DatagramPacket): Fixed documentation to become legal HTML. From-SVN: r73944
2003-11-252003-11-25 Michael Koch <konqueror@gmx.de>Michael Koch4-107/+265
* java/net/DatagramSocket.java (factory): Made private. (closed): Removed. (DatagramSocket): Check impl argument, use constructor with SocketAddress argument. (close): Set impl to null, use isClosed(). (isClosed): Check for impl == null. (getLocalAddress): Use isClosed(). (getLocalPort): Check if socket is closed. (getSoTimeout): Likewise. (setSoTimeout): Likewise. (getSendBufferSize): Likewise. (setSendBufferSize): Likewise. (getReceiveBufferSize): Likewise. (setReceiveBufferSize): Likewise. (receive): Likewise. (send): Likewise. (bind): Likewise. (connect): Likewise. (setReuseAddress): Likewise. (getReuseAddress): Likewise. (setBroadcast): Likewise. (getBroadcast): Likewise. (setTrafficClass): Likewise. (getTrafficClass): Likewise. * java/net/MulticastSocket.java (getInterface): Check if socket is closed. (getTTL): Likewise. (getTimeToLive): Likewise. (setInterface): Likewise. (setNetworkInterface): Likewise. (getNetworkInterface): Likewise. (setLoopbackMode): Likewise. (setTTL): Likewise. (setTimeToLive): Likewise. (joinGroup): Likewise. (leaveGroup): Likewise. (send): Likewise. * java/net/ServerSocket.java (closed): Removed. (close): Check if socket is closed, set impl to null. (isClosed): Check impl == null; (ServerSocket): Check impl argument. (getInetAddress): Check if socket is bound. (getLocalPort): Likewise. (getLocalSocketAddress): Likewise. (bind): Check if socket is closed. (implAccept): Likewise. (setSoTimeout): Likewise. (getSoTimeout): Likewise. (setReuseAddress): Likewise. (getReuseAddress): Likewise. (setReceiveBufferSize): Likewise. (getReceiveBufferSize): Likewise. (toString): Make output compliant to JDK 1.4.2. * java/net/Socket.java (closed): Removed. (Socket): Fixed documentation. (connect): Check if socket is closed, changed exception text, fixed documentation. (getInputStream): Check of socket is closed and connected. (getOutputStream): Likewise. (bind): Check if socket is closed. (setTcpNoDelay): Likewise. (getTcpNoDelay): Likewise. (setSoLinger): Likewise. (getSoLinger): Likewise. (sendUrgentData): Likewise. (setOOBInline): Likewise. (getOOBInline): Likewise. (setSoTimeout): Likewise. (getSoTimeout): Likewise. (setSendBufferSize): Likewise. (getSendBufferSize): Likewise. (setReceiveBufferSize): Likewise. (getReceiveBufferSize): Likewise. (setKeepAlive): Likewise. (getKeepAlive): Likewise. (close): Likewise. (shutdownInput): Likewise. (shutdownOutput): Likewise. (getReuseAddress): Likewise. (getTrafficClass): Likewise. (setTrafficClass): Likewise. (isClosed): Check impl == null. (toString): Added missing ']'. From-SVN: r73918
2003-11-25Makefile.in: Rebuilt.Tom Tromey1-0/+8
* Makefile.in: Rebuilt. * Makefile.am (propdir): New macro. (install-data-local): Install logging.properties. (core_java_source_files): Added java.util.logging.*. * java/util/logging/logging.properties: New file. From-SVN: r73907
2003-11-242003-11-25 Michael Koch <konqueror@gmx.de>Michael Koch2-39/+47
* java/net/DatagramSocket.java (DatagramSocket): Move binding code to bind(), simplify constructors. * java/net/MulticastSocket.java (MulticastSocket): Call parent constructor with null argument, bind socket after setReuseAddress is called, simplify constructors. From-SVN: r73902
2003-11-21* java/lang/Float.java (static): Removed.Mark Wielaard1-14/+1
From-SVN: r73805
2003-11-21TextLayout.java: Implement simple layouts using attributed strings and glyph ↵Graydon Hoare1-8/+152
vectors. 2003-11-18 Graydon Hoare <graydon@redhat.com> * java/awt/font/TextLayout.java: Implement simple layouts using attributed strings and glyph vectors. From-SVN: r73780
2003-11-19[multiple changes]Guilhem Lavaux2-0/+47
2003-11-19 Guilhem Lavaux <guilhem@kaffe.org> Jim Pick <jim@kaffe.org> * java/text/DecimalFormat.java (getCurrency, setCurrency): New methods. 2003-11-19 Guilhem Lavaux <guilhem@kaffe.org> * java/text/DecimalFormatSymbols.java (getCurrency, setCurrency): New methods. Co-Authored-By: Jim Pick <jim@kaffe.org> From-SVN: r73735
2003-11-19FlatteningPathIterator.java: Entirely re-written.Sascha Brawer2-26/+981
2003-11-19 Sascha Brawer <brawer@dandelis.ch> * java/awt/geom/FlatteningPathIterator.java: Entirely re-written. * java/awt/geom/doc-files/FlatteningPathIterator-1.html: Describe how the implementation works. From-SVN: r73734
2003-11-192003-11-19 Michael Koch <konqueror@gmx.de>Michael Koch1-48/+135
* java/net/Socket.java (implCreated): New variable that indicates created impl. (getImpl): New method. (toString): Return more SUN compliant string representation. (various): Use getImpl() instead of impl. From-SVN: r73732
2003-11-16re PR libgcj/13062 (StreamTokenizer ignores commentChar)Tom Tromey1-4/+18
PR libgcj/13062: * java/io/StreamTokenizer.java (commentChar): Clear other attributes for character. (quoteChar): Likewise. From-SVN: r73653
2003-11-14GridBagLayout.java (getLayoutDimensions): Return array of two zero-length ↵Tom Fitzsimmons1-5/+15
int arrays when layoutInfo is null. 2003-11-14 Tom Fitzsimmons <fitzsim@redhat.com> * java/awt/GridBagLayout.java (getLayoutDimensions): Return array of two zero-length int arrays when layoutInfo is null. (getLayoutWeights): Return array of two zero-length double arrays when layoutInfo is null. From-SVN: r73622
2003-11-14jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to ↵Tom Tromey4-7/+7
JvGetStringUTFRegion. * jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to JvGetStringUTFRegion. * java/lang/natPosixProcess.cc (new_string): Pass length of string to JvGetStringUTFRegion. * java/lang/natDouble.cc (parseDouble): Pass length of string to JvGetStringUTFRegion. * java/lang/natWin32Process.cc (startProcess): Pass length of string to JvGetStringUTFRegion. * java/lang/natClass.cc (forName): Pass length of string to JvGetStringUTFRegion. * gnu/gcj/runtime/natNameFinder.cc (getExternalLabel): Pass length of string to JvGetStringUTFRegion. * gnu/gcj/convert/natIconv.cc (init): Pass length of string to JvGetStringUTFRegion. * gnu/awt/gtk/natGtkLabelPeer.cc (setText): Pass length of string to JvGetStringUTFRegion. * gnu/awt/gtk/natGtkButtonPeer.cc (setLabel): Pass length of string to JvGetStringUTFRegion. From-SVN: r73571
2003-11-12GtkComponentPeer.java (prepareImage): Remove null check.Tom Fitzsimmons1-3/+0
2003-11-12 Tom Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Remove null check. * gnu/java/awt/peer/gtk/GtkToolkit.java (prepareImage): Likewise. * java/awt/Component.java (prepareImage): Likewise. From-SVN: r73513
2003-11-12Makefile.am: Add GdkPixbufDecoder.java and ↵Thomas Fitzsimmons2-7/+42
gnu_java_awt_peer_gtk_GdkPixbufDecoder.c 2003-11-11 Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am: Add GdkPixbufDecoder.java and gnu_java_awt_peer_gtk_GdkPixbufDecoder.c * Makefile.in: Regenerate. * gnu/java/awt/image/ImageDecoder.java (ImageDecoder(byte[],int,int)): New constructor. (startProduction): Create ByteArrayInputStream when url and filename are null. (produce): Declare stream parameter as InputStream. * gnu/java/awt/image/XBMDecoder.java (produce): Declare stream parameter as InputStream. * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java (GdkPixbufDecoder(byte[],int,int)): New constructor. (produce): Declare stream parameter as InputStream. * gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Throw NPE if image is null. Set image's observer before running PrepareImage thread. Pass image to startProduction. * gnu/java/awt/peer/gtk/GtkImage.java: Add null checks before calls to source's member functions. (observer): New field. (setObserver): New method. (setDimensions, setPixels, imageComplete): Call observer's imageUpdate. * gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage, getImage): Return new GtkImage. (prepareImage): Implement. * java/awt/Component.java: Add static fields incrementalDraw and redrawRate. (imageUpdate): Implement. (createImage): Call Toolkit's createImage if peer is null. (prepareImage): Throw NPE if image is null. * java/awt/MediaTracker.java: Fix return value. From-SVN: r73476
2003-11-11Font.java, [...]: Removed some redundant obj == null checks.Michael Koch10-20/+6
2003-11-11 Michael Koch <konqueror@gmx.de> * java/awt/Font.java, java/awt/datatransfer/DataFlavor.java, java/math/BigInteger.java, java/net/Inet4Address.java, java/net/Inet6Address.java, java/rmi/MarshalledObject.java, java/rmi/server/RMIClassLoader.java, java/security/cert/CertStore.java, java/sql/Timestamp.java, java/text/SimpleDateFormat.java, javax/naming/CompoundName.java: Removed some redundant obj == null checks. From-SVN: r73448
2003-11-112003-11-11 Michael Koch <konqueror@gmx.de>Michael Koch1-2/+1
* java/nio/ByteBuffer.java (equals): Remove redundant obj == null check. From-SVN: r73447