aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2003-09-26RoundRectangle2D.java (getPathIterator): Wrote.Tom Tromey3-7/+167
* java/awt/geom/RoundRectangle2D.java (getPathIterator): Wrote. * java/awt/geom/PathIterator.java: Documentation fixes. From-SVN: r71820
2003-09-26Fix build failure.Jeff Sturm2-6/+12
* gnu/java/nio/SelectorImpl.java (getFDsAsArray): Use getNativeFD(). (select): Likewise. (register): Use DatagramChannelSelectionKey, SocketChannelSelectionKey. From-SVN: r71812
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch8-4/+154
* gnu/java/nio/DatagramChannelImpl.java (getNativeFD): New method. * gnu/java/nio/SelectionKeyImpl.java (SelectionKeyImpl): Class made abstract. (fd): Removed. (SelectionKeyImpl): Remove fd argument. (getNativeFD): New method. * gnu/java/nio/SocketChannelImpl.java (getNativeFD): New method. gnu/java/nio/DatagramChannelSelectionKey.java, * gnu/java/nio/SocketChannelSelectionKey.java: New files. * Makefile.am (ordinary_java_source_files): Added new files gnu/java/nio/DatagramChannelSelectionKey.java and gnu/java/nio/SocketChannelSelectionKey.java. * Makefile.in: Regenerated. From-SVN: r71797
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch2-12/+8
* java/lang/reflect/Proxy.java (getProxyClass): Remove workaround for gcj 3.0.x. From-SVN: r71796
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch3-10/+28
* gnu/java/net/PlainDatagramSocketImpl.java (finalize): Moved to directly after constructor. (getNativeFD): New method. * gnu/java/net/PlainSocketImpl.java (getNativeFD): New method. From-SVN: r71792
2003-09-25ObjectOutputStream.java: Allow putFields be called more than once.Ingo Proetel2-13/+24
2003-09-25 Ingo Proetel <proetel@aicas.com> * java/io/ObjectOutputStream.java: Allow putFields be called more than once. From-SVN: r71791
2003-09-25Really commit the files.Sascha Brawer3-8/+28
From-SVN: r71790
2003-09-25Raster.java (Raster): Interpret null origin as (0,0).Sascha Brawer1-0/+6
2003-09-25 Sascha Brawer <brawer@dandelis.ch> * java/awt/image/Raster.java(Raster): Interpret null origin as (0,0). * java/awt/image/WritableRaster.java(WritableRaster): Likewise. * java/awt/image/BufferedImage.java (toString): Implement. From-SVN: r71789
2003-09-25aclocal.m4: Rebuilt.Jeff Sturm3-233/+292
* aclocal.m4: Rebuilt. * configure: Rebuilt. From-SVN: r71788
2003-09-25SimpleDateFormat.java (parse): Don't use class calendar field.Guilhem Lavaux2-11/+17
2003-09-25 Guilhem Lavaux <guilhem@kaffe.org> * java/text/SimpleDateFormat.java (parse): Don't use class calendar field. From-SVN: r71782
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch3-10/+19
* gnu/java/nio/SelectorImpl.java (implSelect): Renamed from java_do_select. (select): Call native implSelect() and add support for Thread interruption. * gnu/java/nio/natSelectorImpl.cc (implSelect): Renamed from java_do_select. From-SVN: r71781
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch3-68/+42
* gnu/java/nio/SelectorImpl.java (selectNow): Made final, throws IOException. (select): Likewise. (getFDsAsArray): Made final. (selectedKeys): Likewise. (wakeup): Likewise. (deregisterCancelledKeys): Likewise. (register): Likewise. (ass): Removed. (add_selected): Removed. * gnu/java/nio/natSelectorImpl.cc: No need to include bstring.h or gcj/cni.h. (helper_put_filedescriptors): Rewritten. (helper_get_filedescriptors): Rewritten. From-SVN: r71779
2003-09-25[multiple changes]Michael Koch5-4/+80
2003-09-25 Sascha Brawer <brawer@dandelis.ch> * java/awt/font/FontRenderContext.java (getTransform): Return copy of internal transform object. Add Javadoc. * java/awt/geom/Rectangle2D.java (getPathIterator): Use the same winding rule as Sun J2SE. * javax/swing/border/MatteBorder.java (MatteBorder(Icon)): Docfix. 2003-09-25 Ingo Proetel <proetel@aicas.com> * java/rmi/Naming.java: Added comments, now accepts pseudo protocol "rmi". From-SVN: r71777
2003-09-25DecimalFormat.java (format): Don't immediatly round baseNumber to long.Guilhem Lavaux2-5/+14
2003-09-25 Guilhem Lavaux <guilhem@kaffe.org> * java/text/DecimalFormat.java (format): Don't immediatly round baseNumber to long. (setMinimumIntegerDigits): Call super. (setMinimumFractionDigits): Likewise. (setMaximumIntegerDigits): Likewise. (setMaximumFractionDigits): Likewise. From-SVN: r71773
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch8-85/+439
* gnu/java/nio/DatagramChannelImpl.java (DatagramChannelImpl): Made class final. (blocking): Made private. (socket): Made it a NIODatagramSocket and private. (DatagramChannelImpl): create NIODatagramSocket instead of DatagramSocket. (implConfigureBlocking): Set socket timeout. (connect): Check that channel is not closed. (write): Implemented. (write): Rewritten. (read): Implemented. (read): Rewritten. (receive): Implemented. (send): Implemented. * gnu/java/nio/SelectionKeyImpl.java (readyOps): Made private. (interestOps): Made private. (impl): Made private. (ch): Made private. (readyOps): Check if selection key is valid. (interestOps): Likewise. * gnu/java/nio/SelectorImpl.java (closed): Removed. (keys): Made private. (selected): Made private. (finalize): New method. (implCloseSelector): Rewritten. (keys): Return unmodifiable Set. (deregisterCancelledKeys): Fixed typo in method name. * gnu/java/nio/SocketChannelImpl.java (SocketChannelImpl): Made class final. (socket): Made it a NIOSocket and private. (blocking): Made private. (connected): Made private. (connectionPending): New member variable. (SocketChannelImpl): New implementation. (finalizer): Use isConnected(). (connect): Rewritten. (finishConnect): Throws IOException, implemented. (isConnectionPending): Return connectionPending. (read): Rewritten. (write): Rewritten. * gnu/java/nio/NIOConstants.java: New file. * Makefile.am (ordinary_java_source_files): Added gnu/java/nio/NIOConstants.java. * Makefile.in: Regenerated. From-SVN: r71769
2003-09-25InetAddress.java: Reorder imports, remove implementation comment.Michael Koch3-20/+32
2003-09-25 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Reorder imports, remove implementation comment. (isMulticastAddress): Merged documentation from classpath. * java/net/URLConnection.java (setRequestProperty): Check key for null, fix documentation. (adREquestProperty): Check key for null, remove wrong implementation and replace it with comment to overwrite this method in subclasses, fix documentation. From-SVN: r71767
2003-09-25Proxy.java (generate): Uncomment protection domain code.Tom Tromey11-690/+880
* java/lang/reflect/Proxy.java (generate): Uncomment protection domain code. * java/lang/natClassLoader.cc (defineClass): Added `loader' argument. (linkClass0): Now in VMClassLoader. (markClassErrorState0): Likewise. (getSystemClassLoaderInternal): New method. * java/lang/natClass.cc (initializeClass): Use VMClassLoader::resolveClass. * java/lang/ClassLoader.java: New version, from Classpath. * java/lang/Class.java (getProtectionDomain): protectionDomainPermission and unknownProtectionDomain now in VMClassLoader. * java/lang/Class.h: VMClassLoader now a friend class. * gnu/gcj/runtime/VMClassLoader.java (instance): Now package-private. * gcj/javaprims.h: Regenerated class list. * resolve.cc (_Jv_PrepareClass): Use VMClassLoader::resolveClass. * java/lang/VMClassLoader.java: New version from Classpath; modified for libgcj use. From-SVN: r71765
2003-09-25Forgot to add in last commit.Michael Koch2-3/+5
From-SVN: r71758
2003-09-25ByteBufferHelper.java: New file.Michael Koch5-395/+711
2003-09-25 Michael Koch <konqueror@gmx.de> * java/nio/ByteBufferHelper.java: New file. * java/nio/ByteBufferImpl.java, java/nio/DirectByteBufferImpl.java, java/nio/MappedByteBufferImpl.java (getType,putType): Use new helper class ByteBufferHelper. * Makefile.am (ordinary_java_source_files): Added java/nio/ByteBufferHelper.java. * Makefile.in: Regenerated. From-SVN: r71757
2003-09-25re PR libgcj/12388 (mingw32 target fails to build libjava)Bryce McKinlay2-0/+7
* gnu/java/net/natPlainSocketImplWin32.cc: Add missing #includes. PR libgcj/12388. From-SVN: r71750
2003-09-24StringBuffer.java (substring): Don't set `shared' on small Strings, even if ↵Bryce McKinlay2-4/+10
buffer is already shared. * java/lang/StringBuffer.java (substring): Don't set `shared' on small Strings, even if buffer is already shared. From-SVN: r71726
2003-09-24acinclude.m4 (AM_LC_LOCALES): Added check for locale.h.Michael Koch2-1/+6
2003-09-24 Michael Koch <konqueror@gmx.de> * acinclude.m4 (AM_LC_LOCALES): Added check for locale.h. From-SVN: r71725
2003-09-24PlainSocketImpl.java (read): Remove declaration.Bryce McKinlay9-457/+84
* gnu/java/net/PlainSocketImpl.java (read): Remove declaration. (write): Likewise. (SocketInputStream, SocketOutputStream): Declare `read' and `write' native. Remove implementations which called back into PlainSocketImpl. Remove unneccessary overridden methods. * gnu/java/net/natPlainSocketImplNoNet.cc (read): Move implementation to inner class PlainSocketImpl.SocketInputStream. (write): Likewise. * gnu/java/net/natPlainSocketImplPosix.cc: As above. * gnu/java/net/natPlainSocketImplWin32.cc: As above. * gnu/java/net/SocketInputStream.java: Remove unused file. * gnu/java/net/SocketOutputStream.java: Likewise. * Makefile.am: Build CNI headers for PlainSocketImpl.SocketInputStream and SocketOutputStream. * Makefile.in: Rebuilt. From-SVN: r71724
2003-09-24* java/lang/System.java: Add GCJ LOCAL note about encoding aliases.Nathanael Nerode2-0/+7
From-SVN: r71710
2003-09-23Float.java, [...]: Add GCJ LOCAL markers.Nathanael Nerode3-0/+17
* java/lang/Float.java, java/lang/Double.java: Add GCJ LOCAL markers. From-SVN: r71699
2003-09-22Another newlib fix.Anthony Green3-0/+10
From-SVN: r71655
2003-09-22re PR libgcj/12350 (StringBuffer.substring handles shared flag incorrected.)Ralph Loader5-2/+35
2003-09-21 Ralph Loader <suckfish@ihug.co.nz> PR java/12350: * java/lang/StringBuffer.java (substring): Fix handling of shared flag. 2003-09-21 Ralph Loader <suckfish@ihug.co.nz> PR java/12350 * libjava.lang/PR12350.java: New file. * libjava.lang/PR12350.out: New file. From-SVN: r71651
2003-09-22jni.cc (_Jv_LookupJNIMethod): Remove workaround that should hide a compiler ↵Michael Koch2-3/+6
warning but produces a different... 2003-09-22 Michael Koch <konqueror@gmx.de> * jni.cc (_Jv_LookupJNIMethod): Remove workaround that should hide a compiler warning but produces a different one now. From-SVN: r71650
2003-09-22InetAddress.java: Moves around some code, reformats and adds documentation.Michael Koch2-53/+93
2003-09-22 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Moves around some code, reformats and adds documentation. No functional changes. From-SVN: r71649
2003-09-222003-09-22 Michael Koch <konqueror@gmx.de>Michael Koch2-12/+26
* java/net/JarURLConnection.java (JarURLConnection): Modifed code to match classpath more, fixed comment. (getCertificates): Made it more error prone. (getMainAttributes): Likewise. (getAttributes): Implemented. (getManifest): Reformatted code. From-SVN: r71643
2003-09-20Component.java: Indentation cleanup from Classpath.Tom Tromey3-14/+51
* java/awt/Component.java: Indentation cleanup from Classpath. 2003-09-20 Dalibor Topic <robilad@kaffe.org> * java/awt/BasicStroke.java (BasicStroke): Fixed illegal argument checking to follow 1.4.2 spec. From-SVN: r71612
2003-09-20UnicastRef.java: make constructor public and check if serverobject is ↵Ingo Proetel2-24/+26
compatible in case client... 2003-08-11 Ingo Proetel <proetel@aicas.com> * gnu/java/rmi/server/UnicastRef.java: make constructor public and check if serverobject is compatible in case client and server are running in the same VM (remerged from Classpath on 2003-09-20) From-SVN: r71611
2003-09-20Reference.java (clear): Set referent to null and synchronize.David Daney2-1/+11
2003-09-19 David Daney <ddaney@avtrex.com> * java/lang/ref/Reference.java (clear): Set referent to null and synchronize. From-SVN: r71597
2003-09-19NIODatagramSocket.java, [...]: New files.Michael Koch5-2/+164
2003-09-19 Michael Koch <konqueror@gmx.de> * gnu/java/nio/NIODatagramSocket.java, gnu/java/nio/NIOSocket.java: New files. * Makefile.am (ordinary_java_source_files): Added gnu/java/nio/NIODatagramSocket.java and gnu/java/nio/NIOSocket.java. * Makefile.in: Regenerated. From-SVN: r71592
2003-09-19GtkDialogPeer.java (create()): Create a top-level GTK window.Thomas Fitzsimmons9-129/+158
2003-09-19 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create()): Create a top-level GTK window. (getArgs): Add "title" property. * gnu/java/awt/peer/gtk/GtkWindowPeer.java (setResizable): Use "allow_shrink" and "allow_grow" properties. * java/awt/Dialog.java: Initialize resizable to true and change comments accordingly. Initialize visible to false in constructors. * java/awt/Frame.java (dispose): Remove method. * java/awt/Window.java (ownedWindows): New field. (Window(Window,GraphicsConfiguration)): Add a weak reference to owner's ownedWindows vector. (finalize): Remove method. (hide): Hide owned windows. (dispose): Dispose of owned windows. (getOwnedWindows): Implement. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Remove unused GtkArg code. (set(String,boolean)): Clamp gboolean parameter to g_object_set to TRUE or FALSE. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create): Set window's size requisition. (connectHooks): Fix indentation. (setResizable): Remove function. (static setBounds): Likewise. (setBounds): Replace call to setBounds with GTK size requisition and resize calls. From-SVN: r71585
2003-09-19win32-threads.cc: (ensure_interrupt_event_initialized) New function for lazy ↵Mohan Embar4-11/+152
initialization of an... * win32-threads.cc: (ensure_interrupt_event_initialized) New function for lazy initialization of an auto-reset event. (_Jv_CondWait) Added thread interrupt support. (_Jv_ThreadInitData) Added initialization of interrupt support members. (_Jv_ThreadDestroyData) Added cleanup of interrupt support members. (_Jv_ThreadStart) Removed unused code. (_Jv_Win32GetInterruptEvent) New method for returning interrupt event to an external caller. (_Jv_ThreadInterrupt) Implemented. * include/win32-threads.h: (_Jv_Thread_t) Added a Win32 auto-reset event for interrupt support as well as a mutex which regulates access to this. (_Jv_Win32GetInterruptEvent) Declared new method for returning interrupt event to an external caller. * java/lang/natWin32Process.cc: (cleanup) Close handle to spawned process. (waitFor) Added interrupt support. From-SVN: r71562
2003-09-19DatagramSocket.java (getLocalAddress): Renamed result variable to localAddr.Michael Koch3-8/+13
2003-09-19 Michael Koch <konqueror@gmx.de> * java/net/DatagramSocket.java (getLocalAddress): Renamed result variable to localAddr. * java/net/MulticastSocket.java: No need to import gnu.java.net.PlainDatagramSocketImpl. From-SVN: r71561
2003-09-18Toolkit.java (getSystemEventQueue, [...]): Replace UTF-8 characters in ↵Sascha Brawer2-2/+7
Javadoc by XML/HTML escape sequence. 2003-09-18 Sascha Brawer <brawer@dandelis.ch> * java/awt/Toolkit.java (getSystemEventQueue, getSystemEventQueueImpl): Replace UTF-8 characters in Javadoc by XML/HTML escape sequence. From-SVN: r71549
2003-09-18* javax/naming/InitialContext.java: Reindented.Tom Tromey2-137/+147
From-SVN: r71535
2003-09-18NamingManager.java (getURLContext, [...]): Always use current thread's ↵Dalibor Topic2-4/+19
context class loader when calling Class.forName. 2003-09-18 Dalibor Topic <robilad@kaffe.org>, Helmer Kraemer <hkraemer@freenet.de> * javax/naming/spi/NamingManager.java (getURLContext, getObjectInstance, getStateToBind): Always use current thread's context class loader when calling Class.forName. Co-Authored-By: Helmer Kraemer <hkraemer@freenet.de> From-SVN: r71534
2003-09-18Timer.java (finalize): Added "throws Throwable".Michael Koch2-1/+5
2003-09-18 Michael Koch <konqueror@gmx.de> * java/util/Timer.java (finalize): Added "throws Throwable". From-SVN: r71519
2003-09-182003-09-18 Michael Koch <konqueror@gmx.de>Michael Koch4-42/+34
* java/net/DatagramSocket.java (ch): Removed. (receive): Use getChannel() instead of ch. (send): Likewise. (getChannel): Return null. * java/net/ServerSocket.java (ch): Removed. (setChannel): Removed. (implAccept): Use getChannel() instead of ch. (close): Likewise. (getChannel): Return null. * java/net/Socket.java (ch): Removed. (connect): Use getChannel() instead of ch. (setChannel): Removed. (getChannel): Return null. From-SVN: r71516
2003-09-18Reported by Guilhem Lavaux and Julian DolbyMark Wielaard2-1/+7
2003-09-18 Mark Wielaard <mark@klomp.org> Reported by Guilhem Lavaux and Julian Dolby * java/io/ObjectStreamClass.java (getSerialPersistentFields): Get the field "serialPersistentFields", not "getSerialPersistentFields". From-SVN: r71515
2003-09-18TimeZone.java: Initialize lazily.Ingo Proetel5-694/+736
2003-09-18 Ingo Proetel <proetel@aicas.com> * java/util/TimeZone.java: Initialize lazily. * java/util/Locale.java (readManifest): Fix check for country. * java/util/GregorianCalendar.java: Make use of ResourceBundle better traceable * java/util/Calendar.java: Make use of ResourceBundle better traceable. From-SVN: r71509
2003-09-182003-09-18 Jeroen Frijters <jeroen@frijters.net>Jeroen Frijters2-1/+6
* java/sql/Timestamp.java (valueOf): Fixed confusion of java.sql.Date and java.util.Date From-SVN: r71508
2003-09-18LineNumberReader (read): Don't reset pos & limit when markPos is 0.David P Grove2-1/+6
2003-09-18 David P Grove <groved@us.ibm.com> * java/io/LineNumberReader (read): Don't reset pos & limit when markPos is 0. From-SVN: r71507
2003-09-18[multiple changes]Michael Koch10-64/+419
2003-09-18 Dalibor Topic <robilad@kaffe.org> * gnu/java/rmi/rmic/Compile_gcj.java (COMPILER_ARGS): New private constant. (computeArguments): use computeTypicalArguments. * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Add Compile_kjc.java, Compile_jikes.java and RMICException.java. * gnu/java/rmi/rmic/Compile_kjc.java: New file. * gnu/java/rmi/rmic/Compile_jikes.java: Likewise. * gnu/java/rmi/rmic/RMICException.java: Likewise. * gnu/java/rmi/rmic/Compiler.java (getDestination): New method. * gnu/java/rmi/rmic/CompilerProcess.java: Import java.io.InputStream. (computeTypicalArguments): New method. (compile): Print compiler output to System.out. Collect compiler error output and use it in exception message. * gnu/java/rmi/rmic/RMIC.java: Import java.util.Set. (destination): Initialize to null. (run): Replace file separator with '.' when processing class. (processClass): Replace '.' with file separator when compiling classes. (findClass): Use SystemClassLoader to load class. (generateStub): Use full class name for generated stub, that puts it in right path. Replace '.' with file separator when generating stub file name. Write just the stub class name without package information as class name, and constructor name. Write only interface names for interfaces extending java.rmi.Remote as implemented. (generateSkel): Use full class name for generated skel, that puts it in right path. Replace '.' with file separator when generating stub file name. Write just the stub class name without package information as class name. 2003-09-18 Michael Koch <konqueror@gmx.de> * Makefile.am (rmi_java_source_files): Added gnu/java/rmi/rmic/Compile_kjc.java, gnu/java/rmi/rmic/Compile_jikes.java and gnu/java/rmi/rmic/RMICException.java * Makefile.in: Regenerated. From-SVN: r71506
2003-09-17GdkGraphics2D.java, [...]: New files.Graydon Hoare5-0/+2676
2003-09-17 Graydon Hoare <graydon@redhat.com> * gnu/java/awt/peer/gtk/GdkGraphics2D.java, gnu/java/awt/peer/gtk/GdkPixbufDecoder.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c, jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c: New files. From-SVN: r71475
2003-09-17[multiple changes]Graydon Hoare4-55/+121
2003-09-16 Graydon Hoare <graydon@redhat.com> * java/awt/BufferedImage.java (setData): Support non-component sample models. (getData): Same. 2003-09-10 Graydon Hoare <graydon@redhat.com> * java/awt/geom/AffineTransform.java(transform): Fix airthmetic bugs. * java/awt/geom/Arc2D.java: Approximate arc segments with cubics. From-SVN: r71472
2003-09-17re PR java/9577 (Linker error for legal Java/CNI code if method parameters ↵Ranjit Mathew4-0/+31
are reversed) 2003-09-17 Ranjit Mathew <rmathew@hotmail.com> PR java/9577 * libjava.cni/PR9577.java: New file. * libjava.cni/natPR9577.cc: New file. * libjava.cni/PR9577.out: New file. From-SVN: r71460