aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2003-12-06Attribute.java, [...]: Import used classes explicitely.Michael Koch25-33/+127
2003-12-06 Michael Koch <konqueror@gmx.de> * javax/naming/directory/Attribute.java, javax/naming/directory/Attributes.java, javax/naming/directory/DirContext.java, javax/naming/directory/InitialDirContext.java, javax/naming/directory/SearchResult.java, javax/naming/event/EventContext.java, javax/naming/event/NamingEvent.java, javax/naming/event/NamingExceptionEvent.java, javax/naming/ldap/ControlFactory.java, javax/naming/ldap/ExtendedRequest.java, javax/naming/ldap/HasControls.java, javax/naming/ldap/InitialLdapContext.java, javax/naming/ldap/LdapContext.java, javax/naming/ldap/LdapReferralException.java, javax/naming/ldap/UnsolicitedNotification.java, javax/naming/ldap/UnsolicitedNotificationListener.java, javax/naming/spi/DirObjectFactory.java, javax/naming/spi/DirStateFactory.java, javax/naming/spi/DirectoryManager.java, javax/naming/spi/NamingManager.java, javax/naming/spi/ObjectFactoryBuilder.java, javax/naming/spi/ResolveResult.java, javax/naming/spi/Resolver.java, javax/naming/spi/StateFactory.java: Import used classes explicitely. From-SVN: r74362
2003-12-05GC.java (updateClip): Added rectangles argument.Scott Gilbertson3-15/+32
2003-12-05 Scott Gilbertson <scottg@mantatest.com> * gnu/gcj/xlib/GC.java (updateClip): Added rectangles argument. (clip): Removed field (clipRectangles): New field. (clone): Use new updateClip. (setClipRectangles): Use new updateClip. * gnu/gcj/xlib/natGC.cc (updateClip): Prepare passed rectangles. From-SVN: r74348
2003-12-04FilePermission.java: Import used classes explicitely.Michael Koch2-2/+6
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 Koch10-17/+33
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 Koch5-9/+22
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 Koch2-7/+63
* gnu/java/net/protocol/http/Connection.java (sendRequest): Merged writing http headers with classpath. (getInputStream): Merged documentation from classpath. (getHeaderField): Likewise. (getHeaderFieldKey): Likewise. From-SVN: r74283
2003-12-04boehm.cc (_Jv_MarkObj): Access hack_signers field.Michael Koch2-1/+5
2003-12-04 Michael Koch <konqueror@gmx.de> * boehm.cc (_Jv_MarkObj): Access hack_signers field. From-SVN: r74279
2003-12-042003-12-04 Michael Koch <konqueror@gmx.de>Michael Koch4-66/+55
* 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-04* gnu/java/nio/natSelectorImplPosix.ccMohan Embar2-2/+10
(implSelect): A timeout of 0 means an infinite timeout. From-SVN: r74259
2003-12-03GtkListPeer.java (handleEvent): Fix generation of ActionEvents.Fernando Nasser2-3/+15
2003-12-02 Fernando Nasser <fnasser@redhat.com> * gnu/java/awt/peer/gtk/GtkListPeer.java (handleEvent): Fix generation of ActionEvents. From-SVN: r74248
2003-12-03Class.h (hack_signers): Renamed signers to hack_signers.Michael Koch3-3/+9
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-03re PR java/12374 (Segfault on "".x)Ralph Loader2-0/+32
PR java/12374: * parse.y (qualify_ambiguous_name): Remove lots of broken field access processing - there's no need to do that here, because we have resolve_field_access. Remove RESOLVE_EXPRESSION_NAME_P as it isn't used anywhere else. * java-tree.h: Remove RESOLVE_EXPRESSION_NAME_P as it isn't used. From-SVN: r74217
2003-12-02configure.in: Added new MinGW-specific configure flag --with-win32-nlsapi.Mohan Embar10-471/+721
* 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-022003-12-02 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2-2/+10
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c (initState): Mark obj parameter as unused. (stringWidth): Mark obj parameter as unused. Initialize font_name properly. From-SVN: r74198
2003-12-02GdkPixbufDecoder.java: Make BufferedImageBuilder class static.Thomas Fitzsimmons2-1/+6
2003-12-02 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GdkPixbufDecoder.java: Make BufferedImageBuilder class static. From-SVN: r74195
2003-12-02Security.java: Don't use &nbsp; in the api doc.Mark Wielaard2-1/+5
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 Topic2-1/+40
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 Nasser5-43/+137
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 Kazumitsu2-2/+8
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 Topic2-1/+5
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 Wielaard2-2/+8
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 Koch4-7/+24
* 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 Koch2-4/+15
* 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-022003-12-02 Michael Koch <konqueror@gmx.de>Michael Koch6-5/+40
* gnu/java/nio/DatagramChannelImpl.java (blocking): Initialize with true by default. * gnu/java/nio/ServerSocketChannelImpl.java (serverSocket): Made private. (blocking): Likewise. (connected): Likewise. * gnu/java/nio/SocketChannelImpl.java (connectionPending): Made private. * gnu/java/nio/FileLockImpl.java (static): Load native library (needed for classpath). * gnu/java/nio/SelectorImpl.java (static): Load native library (needed for classpath). From-SVN: r74181
2003-12-022003-12-02 Michael Koch <konqueror@gmx.de>Michael Koch2-1/+46
* gnu/java/net/protocol/file/Connection.java (getLastModified): Implement for file connections. (getContentLength): Likewise. From-SVN: r74180
2003-12-02Connection.java: Some reformating.Michael Koch2-23/+29
2003-12-02 Michael Koch <konqueror@gmx.de> * gnu/java/net/protocol/file/Connection.java: Some reformating. (file): Renamed from fileIn. (getPermission): Moved around. From-SVN: r74179
2003-12-022003-12-02 Michael Koch <konqueror@gmx.de>Michael Koch2-17/+23
* gnu/java/net/protocol/jar/Connection.java (Connection): Made class final, merged documentation with classpath. (file_cache): Made private. (jar_file): Renamed from jarfile. From-SVN: r74178
2003-12-022003-12-02 Michael Koch <konqueror@gmx.de>Michael Koch2-18/+48
* gnu/java/net/protocol/http/Connection.java (Connection): Initialize doOutput to false; (connect): Initialize inputStream, moved "send request" code to new method. (sendRequest): New method. (getHttpHeaders): Don't reinitialize inputStream. From-SVN: r74177
2003-12-022003-12-02 Michael Koch <konqueror@gmx.de>Michael Koch2-32/+39
* gnu/java/net/protocol//http/Connection.java (defRequestProperties): Removed. This dont gets used since JDK 1.3. (requestProperties): Initialize, documentation added. (inputStream): Renamed from bufferedIn. (Connection): Dont initialize requestProperties. (setDefaultRequestProperty): Removed. (getDefaultRequestProperty): Removed. (usingProxy): Documentation added. (getHttpHeaders): Likewise. From-SVN: r74176
2003-12-02DateFormat.java: Explicitely import used classes.Michael Koch2-1/+11
2003-12-02 Michael Koch <konqueror@gmx.de> * java/text/DateFormat.java: Explicitely import used classes. From-SVN: r74174
2003-12-02re PR rtl-optimization/13024 (gcj can't build current rhug)Jeff Sturm3-0/+29
* libjava.compile/PR13024.java: New file. * libjava.compile/PR13237.java: New file. From-SVN: r74157
2003-12-02verify.cc (state::clean_subrs): Clear seen_subrs.Jeff Sturm2-3/+9
* verify.cc (state::clean_subrs): Clear seen_subrs. (state::copy): Walk seen_subrs from copy, not `this'. Don't clear seen_subrs. From-SVN: r74152
2003-12-02gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create): Disable wrapping if ↵Kim Ho2-2/+10
TextArea has horizontal scroll bars. 2003-12-01 Kim Ho <kho@redhat.com> * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create): Disable wrapping if TextArea has horizontal scroll bars. From-SVN: r74141
2003-12-012003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2-16/+8
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (awt_event_handler): Hard-code inset values. From-SVN: r74136
2003-12-01GdkFontMetrics.java (GdkFontMetrics): Pass font name, not XLFD, to initState.Thomas Fitzsimmons3-35/+70
2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GdkFontMetrics.java (GdkFontMetrics): Pass font name, not XLFD, to initState. (stringWidth(String, int, String)): New method. (stringWidth(String)): Call new stringWidth. (getLeading): Always return 0. * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c (initState): New Pango implementation. (stringWidth): Likewise. From-SVN: r74133
2003-12-012003-12-01 Olga Rodimina <rodimina@redhat.com>Olga Rodimina3-2/+32
* 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-01GtkButtonPeer.java, [...]: Remove files.Thomas Fitzsimmons19-1531/+12
2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/awt/gtk/GtkButtonPeer.java, gnu/awt/gtk/gtkcommon.cc, gnu/awt/gtk/gtkcommon.h, gnu/awt/gtk/GtkComponentPeer.java, gnu/awt/gtk/GtkContainerPeer.java, gnu/awt/gtk/GtkFramePeer.java, gnu/awt/gtk/GtkLabelPeer.java, gnu/awt/gtk/GtkMainThread.java, gnu/awt/gtk/GtkToolkit.java, gnu/awt/gtk/GtkWindowPeer.java, gnu/awt/gtk/natGtkButtonPeer.cc, gnu/awt/gtk/natGtkComponentPeer.cc, gnu/awt/gtk/natGtkContainerPeer.cc, gnu/awt/gtk/natGtkFramePeer.cc, gnu/awt/gtk/natGtkLabelPeer.cc, gnu/awt/gtk/natGtkMainThread.cc, gnu/awt/gtk/natGtkToolkit.cc, gnu/awt/gtk/natGtkWindowPeer.cc: Remove files. From-SVN: r74118
2003-12-012003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2-1/+6
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (closed): Mark loader parameter as unused. From-SVN: r74115
2003-12-012003-12-01 Michael Koch <konqueror@gmx.de>Michael Koch2-24/+43
* gnu/java/net/protocol/http/Connection.java (Connection): Merged class documentation. (socket): Renamed from sock. (Connection): Made protected, documentation added. (connect): Give URL'S host instead of InetAddress to Socket constructor. (disconnect): Documentation added. (getOutputStream): Rewrapped. From-SVN: r74109
2003-12-012003-12-01 Michael Koch <konqueror@gmx.de>Michael Koch2-8/+62
* gnu/java/net/protocol/file/Connection.java (fileIn): Documentation added. (inputStream): Likewise. (outputStream): Likewise. (Connection): Likewise. (connect): Simplified. From-SVN: r74106
2003-12-01GtkImage.java (setDimensions, [...]): Check that io is not null before ↵Thomas Fitzsimmons4-351/+668
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-12-01natPlainSocketImplPosix.cc bind (): Dont set SockedImpl.address field on ↵Michael Koch3-2/+7
succesful bind. 2003-12-01 Michael Koch <konqueror@gmx.de> * gnu/java/net/natPlainSocketImplPosix.cc bind(): Dont set SockedImpl.address field on succesful bind. * gnu/java/net/natPlainSocketImplWin32.cc bind(): Likewise. From-SVN: r74102
2003-11-302003-11-30 Jeff Sturm <jsturm@one-point.com>Michael Koch5-25/+21
* 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 Koch5-7/+36
* 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-28configure: Rebuilt.Bryce McKinlay4-365/+381
2003-11-28 Bryce McKinlay <bryce@mckinlay.net.nz> * configure: Rebuilt. * configure.in: Require gtk and glib 2.2.0. From-SVN: r74023
2003-11-27[multiple changes]Michael Koch2-5/+86
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 Lavaux2-3/+21
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 Lavaux2-54/+126
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 Koch2-1/+174
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 Kazumitsu2-4/+12
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