OSDN Git Service

Another newlib fix.
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index 62b0413..31d82a6 100644 (file)
@@ -1,3 +1,518 @@
+2003-09-22  Anthony Green  <green@redhat.com>
+
+       * configure.in (HAVE_USLEEP_DECL): Define for newlib build.
+       * configure: Rebuilt.
+
+2003-09-21  Ralph Loader  <suckfish@ihug.co.nz>
+
+       PR java/12350:
+       * java/lang/StringBuffer.java (substring): Fix handling of shared flag.
+
+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.
+
+2003-09-22  Michael Koch  <konqueror@gmx.de>
+
+       * java/net/InetAddress.java:
+       Moves around some code, reformats and adds documentation.
+       No functional changes.
+
+2003-09-22  Michael Koch  <konqueror@gmx.de>
+
+       * 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.
+
+2003-09-20  Tom Tromey  <tromey@redhat.com>
+
+       * 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.
+
+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)
+
+2003-09-19  David Daney <ddaney@avtrex.com>
+
+       * java/lang/ref/Reference.java (clear): Set referent to null and
+       synchronize.
+
+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.
+
+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.
+
+2003-09-19  Mohan Embar  <gnustuff@thisiscool.com>
+
+       * 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.
+
+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.
+
+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.
+
+2003-09-18  Tom Tromey  <tromey@redhat.com>
+
+       * javax/naming/InitialContext.java: Reindented.
+
+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.
+
+2003-09-18  Michael Koch  <konqueror@gmx.de>
+
+       * java/util/Timer.java (finalize): Added "throws Throwable".
+
+2003-09-18  Michael Koch  <konqueror@gmx.de>
+
+       * 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.
+
+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".
+
+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.
+
+2003-09-18  Jeroen Frijters  <jeroen@frijters.net>
+
+       * java/sql/Timestamp.java
+       (valueOf): Fixed confusion of java.sql.Date and java.util.Date
+
+2003-09-18  David P Grove  <groved@us.ibm.com>
+
+       * java/io/LineNumberReader (read): Don't reset pos & limit when
+       markPos is 0.
+
+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.
+
+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.
+
+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.
+
+2003-09-17  Mohan Embar  <gnustuff@thisiscool.com>
+
+       * configure.in: Standardized help text case of
+       --enable-hash-synchronization
+       New configure switch --enable-libgcj-multifile and corresponding
+       automake conditional ONESTEP.
+       * configure: Rebuilt.
+       * Makefile.am: Use automake conditional ONESTEP to determine
+       whether classfiles should be compiled individually or all
+       at once.
+       * Makefile.in: Rebuilt.
+
+2003-09-16  Thomas Fitzsimmons  <fitzsim@redhat.com>
+
+       * gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java (construct):
+       Remove method declaration.
+       (create()): Call native create.
+       (create(int)): New method.
+       * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
+       (create): Add window_id parameter.  Call gtk_plug_new with
+       window_id parameter.
+       (construct): Remove method implementation.
+
+2003-09-16  Mohan Embar  <gnustuff@thisiscool.com>
+
+       * Makefile.am: (MOSTLYCLEANFILES) Removed libtool objects.
+       (mostlyclean-local): New target patterned after clean-local
+       which recursively deletes all libtool objects using 'libtool rm'.
+       (clean-local): Slightly modified comment to alleviate monotony.
+       (distclean-local): New target patterned after clean-local
+       which recursively deletes all .d files.
+       * Makefile.in: Rebuilt.
+
+2003-09-11  Tom Tromey  <tromey@redhat.com>
+
+       * java/net/URLStreamHandler.java (parseURL): If original file
+       ends with "/", so must canonical result.
+       * java/io/natFilePosix.cc (getCanonicalPath): Clean up snafus
+       with nul-termination and finding previous "/".
+
+2003-09-11  Michael Koch  <konqueror@gmx.de>
+
+       * acconfig.h: Removed most items.
+       * configure.in: Added descriptions to AC_DEFINE macros that where in
+       acconfig.h before.
+       * include/config.h.in: Regenerated.
+
+2003-09-11  Sascha Brawer  <brawer@dandelis.ch>
+
+       * java/awt/Toolkit.java (getSystemEventQueue): Call SecurityManager
+       if one is installed. Improve Javadoc.
+       (getSystemEventQueueImpl): Improve Javadoc.
+
+2003-09-11  Tom Tromey  <tromey@redhat.com>
+
+       * java/io/natFilePosix.cc (getCanonicalPath): Handle case where
+       file does not exist.
+
+2003-09-10  Anthony Green  <green@redhat.com>
+
+       * gnu/java/net/natPlainDatagramSocketImplWin32.cc (peekData):
+       Specify full name when referencing ::java::net::InetAddress.
+       * gnu/java/net/natPlainSocketImplWin32.cc (accept): Ditto.
+       Fix argument type.
+
+2003-09-10  Michael Koch  <konqueror@gmx.de>
+
+       * acconfig.h (__NO_MATH_INLINES): Removed.
+       * configure.in: Removed check for g++ math inlining bug from 2000.
+       * configure.host: Removed -D__NO_MATH_INLINES in libgcj_cflags and
+       libgcj_cxxflags.
+       * configure: Regenerated.
+
+2003-09-10  David Daney <ddaney@avtrex.com>
+
+       * java/util/Arrays.java (equals(all variants)): Quit using
+       NullPointerException catching to detect null valued parameters.
+
+2003-09-10  Michael Koch  <konqueror@gmx.de>
+
+       * java/net/DatagramSocket.java,
+       java/net/MulticastSocket.java,
+       java/net/ServerSocket.java,
+       java/net/Socket.java:
+       Use gnu.java.net.Plain*SocketImpl instead of
+       java.net.PlainSocketImpl.
+       * java/net/PlainDatagramSocketImpl.java,
+       java/net/PlainSocketImpl.java,
+       java/net/SocketInputStream.java,
+       java/net/SocketOutputStream.java,
+       java/net/natPlainDatagramSocketImplNoNet.cc,
+       java/net/natPlainDatagramSocketImplPosix.cc,
+       java/net/natPlainDatagramSocketImplWin32.cc,
+       java/net/natPlainSocketImplNoNet.cc,
+       java/net/natPlainSocketImplPosix.cc,
+       java/net/natPlainSocketImplWin32.cc:
+       Removed.
+       * gnu/java/net/PlainDatagramSocketImpl.java,
+       gnu/java/net/PlainSocketImpl.java,
+       gnu/java/net/SocketInputStream.java,
+       gnu/java/net/SocketOutputStream.java,
+       gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
+       gnu/java/net/natPlainDatagramSocketImplPosix.cc,
+       gnu/java/net/natPlainDatagramSocketImplWin32.cc,
+       gnu/java/net/natPlainSocketImplNoNet.cc,
+       gnu/java/net/natPlainSocketImplPosix.cc,
+       gnu/java/net/natPlainSocketImplWin32.cc:
+       New files (moved from java/net).
+       * configure.in: Create links for gnu/java/net/natPlain*SocketImpl.cc
+       instead of java/net/natPlain*SocketImpl.cc.
+       * configure: Regenerated.
+       * Makefile.am: Moved files from java/net to gnu/java/net.
+       * Makefile.in: Regenerated.
+
+2003-09-09  Alan Modra  <amodra@bigpond.net.au>
+
+       * configure: Regenerate.
+
+2003-09-04  Tom Tromey  <tromey@redhat.com>
+
+       * configure.host: Removed erroneous comment.
+
+       * gnu/java/awt/natEmbeddedWindow.cc (setWindowPeer): Removed
+       lvalue cast; use correct rvalue cast.
+
+2003-09-02  Thomas Fitzsimmons  <fitzsim@redhat.com>
+
+       * gnu/java/awt/peer/gtk/GtkDialogPeer.java (create): Add width
+       and height arguments to GtkWindowPeer.create method call.
+       * gnu/java/awt/peer/gtk/GtkWindowPeer.java
+       (create(int,int,int)): New method.
+       (create(int)): Add call to new create method.
+       (create()): Add width and height arguments to create method
+       call.
+       (GtkWindowPeer): Remove call to setBounds.
+       * java/awt/Frame.java (Frame(String)): Initialize visible field
+       to false.
+       (Frame(GraphicsConfiguration)): Likewise.
+       (Frame(String,GraphicsConfiguration)): Likewise.
+       * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create):
+       Add width and height parameters.  Call
+       gtk_window_set_default_size.
+       (connectHooks): Remove unused name variable.
+       (static setBounds): Call gtk_window_resize not
+       gtk_widget_set_usize.
+       (setBounds): Remove unused nchildren variable.
+
+2003-08-31  Ingo Proetel  <proetel@aicas.com>
+
+       * java/util/logging/Logger.java: provide class and method information
+       * java/util/logging/LogManager.java: create handlers
+       * java/util/logging/SimpleFormatter.java: print souceClassName and
+       sourceMethodName
+
+2003-08-28  Mohan Embar  <gnustuff@thisiscool.com>
+
+       * win32.cc: fixed tab, indentation and whitespace
+       inconsistencies
+       removed jvm.h include
+       added includes java/lang/UnsupportedOperationException.h,
+       java/io/IOException.h, java/net/SocketException.h
+       (WSAEventWrapper): class implementation
+       (_Jv_WinStrError): implemented both overloads
+       (_Jv_ThrowIOException): implemented both overloads
+       (_Jv_ThrowSocketException): implemented both overloads
+       (_Jv_select): implemented
+       * include/win32.h: fixed tab, indentation and whitespace
+       inconsistencies
+       wrapped <windows.h> include with  #define WIN32_LEAN_AND_MEAN
+       added jvm.h include
+       (WSAEventWrapper): added class declaration
+       (_Jv_WinStrError): added both overload declarations
+       (_Jv_ThrowIOException): added both overload declarations
+       (_Jv_ThrowSocketException): added both overload declarations
+       removed ENOTCONN, ECONNRESET and ENOPROTOOPT defines
+       (_Jv_select): added declaration
+       (_Jv_socket): removed
+       (_Jv_connect): removed
+       (_Jv_close): removed
+       (_Jv_bind): removed
+       (_Jv_accept): removed
+       (_Jv_listen): removed
+       (_Jv_write): removed
+       (_Jv_read): removed
+       * java/io/natFileDescriptorWin32.cc: fixed tab, indentation and
+       whitespace inconsistencies
+       replaced <windows.h> #include with <platform.h>
+       removed jvm.h include
+       (testCanUseGetHandleInfo): new function which tests whether Win32
+       GetHandleInformation() call can be used with console buffer handles
+       (only supported on >=WinNT 5.0)
+       (winerr): removed (superseded by _Jv_WinStrError in include/win32.h)
+       (valid): rewrote implementation using GetHandleInformation()
+       (sync):         changed exception throwing to use error string and exception
+       helper methods declared in include/win32.h
+       (open): likewise
+       (write): likewise
+       (setLength): likewise
+       (close): likewise
+       (seek): likewise
+       (getFilePointer): likewise
+       (read): likewise
+       * java/io/natFileWin32.cc: fixed tab, indentation and
+       whitespace inconsistencies
+       replaced <windows.h> #include with <platform.h>
+       removed jvm.h include
+       (_access): use JV_TEMP_UTF_STRING
+       (_stat): likewise
+       (performMkDir): use JV_TEMP_UTF_STRING
+       (performRenameTo): likewise
+       (performDelete): likewise
+       (performCreate): likewise
+       (performSetReadOnly): likewise
+       (performSetLastModified): likewise
+       * java/lang/natWin32Process.cc: fixed tab, indentation and
+       whitespace inconsistencies
+       replaced <windows.h> #include with <platform.h>
+       removed includes gcj/cni.h, jvm.h
+       (new_string): removed
+       (startProcess): use JV_TEMP_UTF_STRING,
+       changed exception throwing to use error string and exception
+       helper methods declared in include/win32.h
+       * java/net/natInetAddressWin32.cc: fixed tab, indentation and
+       whitespace inconsistencies
+       replaced <windows.h> #include with <platform.h>
+       removed jvm.h include
+       removed DISABLE_JAVA_NET conditional code
+       removed POSIX conditional code not relevant to Win32
+       (aton): use JV_TEMP_UTF_STRING
+       removed POSIX conditional code not relevant to Win32
+       (lookup): likewise
+       (getLocalHostName): likewise
+       * java/net/natNetworkInterfaceWin32.cc: fixed tab, indentation and
+       whitespace inconsistencies
+       removed unnecessary windows.h, winsock.h and gcj/cni.h includes
+       removed DISABLE_JAVA_NET conditional code
+       removed POSIX conditional code not relevant to Win32
+       (winsock2GetRealNetworkInterfaces): new function to compute network
+       interfaces via Winsock2 API
+       (determineGetRealNetworkInterfacesFN): new function for returning
+       a function pointer to the function used to compute network interfaces.
+       (getRealNetworkInterfaces): implemented
+       * java/net/natPlainDatagramSocketImplWin32.cc: fixed tab, indentation and
+       whitespace inconsistencies
+       removed gcj/cni.h include
+       removed DISABLE_JAVA_NET conditional code
+       removed POSIX conditional code not relevant to Win32
+       changed net POSIXisms to Win32isms
+       replaced _Jv socket-related calls with their real Win32 equivalents
+       changed exception throwing to use error string and exception
+       helper methods declared in include/win32.h
+       (peekData): implemented timeout support
+       (receive): likewise
+       * java/net/natPlainSocketImplWin32.cc: fixed tab, indentation and
+       whitespace inconsistencies
+       removed gcj/cni.h and gcj/javaprims.h includes
+       removed DISABLE_JAVA_NET conditional code
+       removed POSIX conditional code not relevant to Win32
+       changed net POSIXisms to Win32isms
+       replaced _Jv socket-related calls with their real Win32
+       equivalents
+       changed exception throwing to use error string and exception
+       helper methods declared in include/win32.h
+       (throwConnectException): helper function for connect()
+       (connect): implemented timeout support
+       (accept): likewise
+       (doRead): new helper function common to both read() method overloads,
+       includes timeout support
+       (read): implemented both overloads in terms of doRead()
+       (available): implemented using ioctlsocket()
+
 2003-08-28  Mohan Embar  <gnustuff@thisiscool.com>
 
        * java/net/natInetAddressWin32.cc,