OSDN Git Service

* java/util/Arrays.java (qsort): Fix off-by-one errors and use of
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index ed0b35c..e2a1fe7 100644 (file)
@@ -1,3 +1,499 @@
+2002-04-04  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/util/Arrays.java (qsort): Fix off-by-one errors and use of
+       incorrect "hi" value when count > 40.
+
+2002-04-03  Mark Wielaard  <mark@klomp.org>
+
+       * java/lang/reflect/Modifier.java (toString(int,StringBuffer)): Fix
+       ordering.
+
+2002-04-02  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/natClassLoader.cc (findClass): Compare against `3',
+       not `0'.
+
+2002-04-02  Mark Wielaard  <mark@klomp.org>
+
+       * mauve-libgcj: add java.net.DatagramSocket.DatagramSocketTest2 to
+       list of testsuite crashers.
+
+2002-04-02  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/util/IdentityHashMap.java (put): Set new threshold correctly
+       when resizing table.
+
+2002-04-01  Mark Wielaard  <mark@klomp.org>
+
+        * java/util/BitSet.java (BitSet(int)): if nbits < 0 throw
+        NegativeArraySizeException
+        (clear(int)): Use sign extended shift.
+        (flip(int)): Likewise.
+        (get(int)): Likewise.
+        (nextClearBit(int)): Likewise.
+        (nextSetBit(int)): Likewise.
+        (set(int)): Likewise.
+
+2002-04-01  Mark Wielaard  <mark@klomp.org>
+
+       * mauve-libgcj: Add JDK1.3, JDK1.4, JLS1.2 tests, remove ignored tests
+       that can be compiled now and add testsuite crashers to ignore list.
+
+2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
+
+       * libgcj.spec.in, libgcj-test.spec.in: Revert for now.
+
+       * libgcj.spec.in: Override libgcc, not lib.
+       * libgcj-test.spec.in: Likewise.
+
+2002-03-29  Tom Tromey  <tromey@redhat.com>
+
+       * java/net/natPlainDatagramSocketImpl.cc (close): New function.
+       * java/net/natPlainSocketImpl.cc (close): Indentation fix.
+
+2002-03-27  Jeff Sturm  <jsturm@one-point.com>
+
+       * java/net/PlainDatagramSocketImpl.java
+       (close): Use native implementation.
+       (finalize): New method.
+
+       * java/net/PlainSocketImpl.java (finalize): New method.
+
+       * java/net/natPlainDatagramSocketImpl.cc
+       (java/io/FileDescriptor.h): Don't include.
+       (close): Implement method here.
+       (create): Don't assign fd.
+
+       * java/net/natPlainSocketImpl.cc
+       (java/io/FileDescriptor.h): Don't include.
+       (create): Don't assign fd.
+       (accept): Likewise.
+       (close): Synchronize.
+
+2002-03-27  Richard Henderson  <rth@redhat.com>
+
+       * include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy.
+
+2002-03-25  Andrew Haley <aph@cambridge.redhat.com>, Hans Boehm <Hans_Boehm@hp.com>
+
+        * include/dwarf2-signal.h (MAKE_THROW_FRAME): Add for IA-64.
+        (INIT_SEGV, INIT_FPE): Add versions that use __libc_sigaction
+        instead of syscall on IA-64.
+        Add FIXME comment.
+
+2002-03-27  Anthony Green  <green@redhat.com>
+
+       * libgcj.spec.in: Add CHECKREFSPEC.
+       * configure.in: Ditto.
+       * configure.host: Ditto.  Check references for xscale-elf.
+       * configure: Rebuilt.
+
+2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
+
+       * include/dwarf2-signal.h: Temporarily back out last change.
+
+2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
+
+       * include/posix-threads.h: Support <.../pal.h> on FreeBSD/alpha.
+
+2002-03-25  Andrew Haley <aph@cambridge.redhat.com>, Hans Boehm <Hans_Boehm@hp.com>
+
+       * configure.in, configure: enable dwarf2-exception-style
+       exception handling on IA-64.
+       * include/dwarf2-signal.h (MAKE_THROW_FRAME): Add for IA-64.
+       (INIT_SEGV, INIT_FPE): Use __libc_sigaction instead of syscall.
+       Add FIXME comment.
+       
+2002-03-25  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.am (libgcj_la_LDFLAGS): Use THREADLDFLAGS.
+       (jv_convert_LDFLAGS): Likewise.
+       (gij_LDFLAGS): Likewise.
+       (rmic_LDFLAGS): Likewise.
+       (rmiregistry_LDFLAGS): Likewise.
+       * configure.in (THREADLDFLAGS): New subst; set correctly for
+       *BSD.
+
+2002-03-25  Tom Tromey  <tromey@redhat.com>
+
+       For PR libgcj/5303:
+       * gnu/java/rmi/registry/RegistryImpl.java (main): Recognize --help
+       and --version.
+       (help): New method.
+       (version): Likewise.
+       * gnu/gcj/convert/Convert.java (version): Removed extraneous
+       "GNU".
+       * gnu/java/rmi/rmic/RMIC.java (parseOptions): Removed extraneous
+       "GNU".
+
+2002-03-25  Tom Tromey  <tromey@redhat.com>
+
+       * java/awt/Component.java (processEvent): Check ComponentEvent
+       after KeyEvent.
+
+2002-03-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/io/PushbackReader.java: Reformat.
+
+       * java/io/FileInputStream.java (skip): Call fd.getFilePointer() and
+       calculate correct number of bytes skipped.
+       
+       Based on patch from Intel's ORP team:
+       * java/io/PushbackInputStream.java (available): Calculate correct 
+       number of bytes in buffer.
+       (read): Remove redundant bound check. Return bytes from both the
+       buffer and the stream.
+
+2002-03-24  Tom Tromey  <tromey@redhat.com>
+
+       * java/awt/TextComponent.java (TextComponent): Editable by
+       default.
+
+       * java/awt/MenuItem.java (eventMask): No longer private.
+       * java/awt/Button.java (dispatchEventImpl): Only dispatch to
+       superclass if we didn't handle event.
+       * java/awt/Checkbox.java (dispatchEventImpl): New method.
+       * java/awt/CheckboxMenuItem.java (dispatchEventImpl): New method.
+       * java/awt/Choice.java (dispatchEventImpl): New method.
+       * java/awt/List.java (dispatchEventImpl): New method.
+       * java/awt/Scrollbar.java (dispatchEventImpl): New method.
+       * java/awt/TextComponent.java (dispatchEventImpl): New method.
+       * java/awt/TextField.java (dispatchEventImpl): New method.
+
+2002-03-24  Eric Blake  <ebb9@email.byu.edu>
+
+       * java/beans/IntrospectionException.java: Update to 1.4.
+       * java/beans/PropertyVetoException.java: Ditto.
+
+2002-03-24  Eric Blake  <ebb9@email.byu.edu>
+
+       * gnu/java/beans/BeanInfoEmbryo.java (hasMethod): Use
+       Arrays.equals instead of ArrayHelper.equalsArray.
+
+2002-03-24  C. Brian Jones <cbj@gnu.org>
+
+       * java/beans/Introspector.java: added new static final fields
+       introduced in 1.2, lots of other updates remain to be done
+
+2002-03-24  C. Brian Jones <cbj@gnu.org>
+
+       * java/beans/Introspector.java: reformatting
+
+2002-03-24  C. Brian Jones <cbj@gnu.org>
+
+       * java/beans/Introspector.java: default beanInfoSearchPath will
+       not include sun.beans.infos given we provide no such package and
+       the API doesn't really require it; gnu.java.beans.info is the
+       default.
+
+2002-03-24  Mark Wielaard  <mark@klomp.org>
+
+       Thanks to Orp developers
+       * gnu/java/beans/editors/NativeBooleanEditor.java (setAsText(String)):
+       switch TRUE and FALSE return values.
+
+2002-03-23  Tom Tromey  <tromey@redhat.com>
+
+       * include/name-finder.h (_Jv_name_finder::myclose): New method.
+       * name-finder.cc (_Jv_name_finder): Initialize file descriptors.
+
+2002-03-23  Michael Smith  <msmith@spinnakernet.com>
+
+       * java/util/GregorianCalendar.java (minimums, maximums): Correct
+       MONTH entry.  Fixes PR libgcj/6045.
+
+2002-03-23  Jeff Sturm  <jsturm@one-point.com>
+
+       * java/nat/natPlainSocketImpl.cc (write): Abort loop on error.
+
+2002-03-20  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use write_barrier,
+       not release_set.
+       * sysdep/powerpc/locks.h (write_barrier): New function.
+       * sysdep/i386/locks.h (write_barrier): New function.
+
+2002-03-19  Martin Kahlert  <martin.kahlert@infineon.com>
+
+       * include/jni.h Use correct C comments.
+
+2002-03-18  Tom Tromey  <tromey@redhat.com>
+
+       * include/jni.h (JNIIMPORT): New macro.
+       (JNIEXPORT): Likewise.
+       (JNICALL): Likewise.
+
+2002-03-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * configure.host (i?86-*): Use -fuse-divide-subroutine on Solaris
+       systems.
+
+2002-03-18  Andrew Haley  <aph@cambridge.redhat.com>
+
+       * include/i386-signal.h (old_i386_kernel_sigaction): New.
+       INIT_SEGV: Use old_i386_kernel_sigaction.
+       INIT_FP: Likewise.
+
+2002-03-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/lang/natSystem.cc (init_properties): Update VM version
+       properties.
+       * configure.in: Set GCJVERSION.
+       * acconfig.h: Add GCJVERSION.
+       * configure: Rebuilt.
+       * include/config.h.in: Rebuilt.
+
+2002-03-17  Anthony Green  <green@redhat.com>
+
+       * java/lang/ieeefp.h: Add ARM thumb support (copied from newlib).
+
+2002-03-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       Build a single libgcj.so, without separate gc and zlib libraries.
+       * configure.in: Use convenience libraries for boehm-gc and zlib. Set
+       SYS_ZLIBS if system zlib is used.
+       * configure: Rebuilt.
+       * Makefile.am: Use boehm-gc and zlib convenience libraries.
+       * Makefile.in: Rebuilt.
+       * libtool-version: Increment .so version number.
+
+       * Makefile.am: Escape quotes in echo.
+       * Makefile.in: Rebuilt.
+
+2002-03-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * Makefile.am: Use empty -classpath flag in addition to -bootclasspath.
+       * Makefile.in: Rebuilt.
+
+2002-03-15  Anthony Green  <green@redhat.com>
+
+       * configure.host (FILE): New macro for specifing File
+       implementation.
+       * configure: Rebuilt.
+       * configure.in: Use FILE.  Define HAVE_TIME for newlib targets.
+
+2002-03-15  Alexandre Oliva  <aoliva@redhat.com>
+
+       * Makefile.am (jv_convert_LDADD): Don't list libraries that are
+       already implicitly brought in from libgcj.la.
+       (gij_LDADD, rmic_LDADD, rmiregistry_LDADD): Likewise.
+       * Makefile.in: Rebuilt.
+
+2002-03-15  Eric Blake  <ebb9@email.byu.edu>
+
+       * THANKS: Fix punctuation, alphabetization.
+
+2002-03-15  Tom Tromey  <tromey@redhat.com>
+           Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+       
+       Fix for PR libgcj/5944.
+       * gnu/gcj/io/shs.h: Define uint8_t and uint32_t.
+
+2002-03-15  Anthony Green  <green@redhat.com>
+
+       * configure.in (tool_include_dir): Define.
+       * configure: Rebuilt.
+       * gcj/Makefile.am: Install libgcj-config.h relative to
+       tool_include_dir.
+       * gcj/Makefile: Rebuilt.
+       * gcj/libgcj-config.h: Add warning comment.
+
+2002-03-12  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * configure.host (powerpc*-darwin*): Enable interpreter.
+
+2002-03-10  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * include/posix.h: Add multiple include header protection.
+       * java/net/natPlainSocketImpl.cc: Don't #include <posix.h>.
+
+2002-03-10  Adam Megacz <adam@xwt.org>
+
+        * java/net/natPlainSocketImpl.cc: Added #include <platform.h>.
+       
+2002-03-10  Tom Tromey  <tromey@redhat.com>
+
+       * java/awt/GridLayout.java (layoutContainer): Handle case where
+       there are no items in container.
+
+       * java/lang/Win32Process.java: Added comment.
+       * include/posix.h (_Jv_platform_close_on_exec): New function.
+       Include fcntl.h.
+       * include/win32.h (_Jv_platform_close_on_exec): New function.
+       * java/net/natPlainSocketImpl.cc (create): Set close-on-exec
+       flag.
+       (accept): Likewise.
+       * java/net/natPlainDatagramSocketImpl.cc (create): Set
+       close-on-exec flag.
+       * java/io/natFileDescriptorPosix.cc (open): Set close-on-exec
+       flag.
+
+2002-03-09  Tom Tromey  <tromey@redhat.com>
+
+       * verify.cc (state::NO_STACK): New constant.
+       (state::is_unmerged_ret_state): Handle case where stacktop is
+       NO_STACK.
+       (state::merge): Handle NO_STACK merges.
+       (handle_jsr_insn): Invalidate PC, and use special NO_STACK state
+       for instruction following jsr.
+       (stacktop, stackdepth): Removed unused variables.
+       (pop_jump): Ignore case where all remaining states are skipped.
+
+2002-03-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/awt/ImageMediaEntry: Removed.
+       * java/awt/MediaEntry: Removed.
+
+2002-03-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       Hashtable synchronization for PowerPC.
+       * configure.in: Define SLOW_PTHREAD_SELF if configure.host set
+       slow_pthread_self. Set up symlink for sysdeps directory.
+       * configure: Rebuild.
+       * configure.host: Document more shell variables. Set sysdeps_dir
+       for most platforms. Set slow_pthread_self for i686. Set 
+       enable_hash_synchronization_default and slow_pthread_self for PowerPC. 
+       * posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use release_set so
+       that memory barrier is emitted where required.
+       * prims.cc: 64-bit align static primitive class instances.
+       * include/posix-threads.h (_Jv_ThreadSelf for SLOW_PTHREAD_SELF): Add
+       read_barrier() to enforce ordering of reads.
+       * sysdep/powerpc/locks.h: New file. Implementation of synchronization
+       primitives for PowerPC.
+       * sysdep/i386/locks.h: New file. Synchronization primitives for i386 
+       moved from natObject.cc.
+       * sysdep/alpha/locks.h: Likewise.
+       * sysdep/ia64/locks.h: Likewise.
+       * sysdep/generic/locks.h: Likewise.
+       * java/lang/natObject.cc: Move thread synchronization primitives to
+       system-dependent headers.
+
+2002-03-09  Adam Megacz  <adam@xwt.org>
+
+        * java/io/natFileDescriptorWin32.cc (read): Return -1 if zero
+        bytes read and no failure code returned.
+
+2002-03-09  Adam Megacz  <adam@xwt.org>
+
+        * win32.cc (_CRT_MT, __mingwthr_key_dtor) Added fake
+        definitions to simulate -mthreads.
+       
+2002-03-09  Adam Megacz  <adam@xwt.org>
+
+        * win32.cc (_Jv_platform_gettimeofday) Cast 1000 to long long to
+       avoid precision loss.
+
+2002-03-09  Per Bothner  <per@bothner.com>
+
+       * gnu/gcj/xlib/WindowAttributes.java  Assign null to RawData, not 0.
+       * gnu/gcj/xlib/XImage.java:  Likewise.
+       * gnu/gcj/xlib/XColor.java:  Likewise.
+
+2002-03-09  Adam Megacz  <adam@xwt.org>
+
+        * java/lang/Win32Process.java (ConcreteProcess): Now throws an
+        IOException so that Throwable.printStackTrace fails correctly.
+
+2002-03-08  Adam Megacz  <adam@xwt.org>
+
+        * java/net/natPlainSocketImpl.cc (read, write, close): Formatting
+        fixed.
+
+2002-03-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * posix.cc (_Jv_platform_gettimeofday): Make sure result doesn't get
+       truncated to int.
+
+2002-03-08  Tom Tromey  <tromey@redhat.com>
+
+       * include/jni.h: Include stdio.h.
+
+2002-03-08  Tom Tromey  <tromey@redhat.com>
+
+       * posix.cc (internal_gettimeofday): New function.
+       (_Jv_select): Use it.
+
+2002-03-07  Adam Megacz  <adam@xwt.org>
+
+        * java/net/natPlainSocketImpl.cc: Changed USE_WINSOCK to
+        WIN32, and added thunks for read(), write(), and close().
+        * java/net/natPlainSocketImpl.cc (accept, read, read):
+        Disabled timeouts on WIN32 pending discussion.
+
+2002-03-07  Adam Megacz  <adam@xwt.org>
+
+        * win32.cc (_Jv_platform_gettimeofday): Now takes no args,
+        returns jlong. Added implementation
+        * posix.cc (_Jv_platform_gettimeofday): Now takes no args,
+        returns jlong.
+        * win32.h (_Jv_platform_gettimeofday): Now takes no args,
+        returns jlong.
+        * posix.h (_Jv_platform_gettimeofday): Now takes no args,
+        returns jlong.
+        * java/lang/natSystem.cc (currentTimeMillis): Now uses updated
+        _Jv_platform_gettimeofday signature.
+       
+2002-03-07  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/net/natPlainSocketImpl.cc (_Jv_recv): Removed.
+       (read): Call recv() directly, not _Jv_recv().
+
+2002-03-06  Tom Tromey  <tromey@redhat.com>
+
+       * java/io/natFileDescriptorEcos.cc (init): Don't use
+       GetStdHandle.
+       * java/io/natFileDescriptorPosix.cc (valid): Don't call stat if FD
+       is negative.
+       (init): Don't use GetStdHandle.
+
+       * include/config.h.in: Rebuilt.
+       * configure: Rebuilt.
+       * Makefile.in: Rebuilt.
+
+2002-03-06  Adam Megacz  <adam@xwt.org>
+
+        * java/io/FileDescriptor.java: Initialize in/out/err in init().
+        * java/io/natFileDescriptorWin32.cc (init()): Added function.
+        * java/io/natFileDescriptorPosix.cc (init()): Added function.
+        * java/io/natFileDescriptorEcos.cc (init()): Added function.
+
+2002-03-06  Eric Blake  <ebb9@email.byu.edu>
+
+       * scripts/unicode-decomp.pl: Move from chartables.pl, and remove
+       the code for generating include/java-chartables.h.
+       * scripts/unicode-blocks.pl: Move from scripts/blocks.pl, and
+       merge with Classpath.
+       * scripts/unicode-muncher.pl: Copy from Classpath.
+       * scritps/MakeCharTables.java: New file.
+       * gnu/gcj/convert/Blocks-3.txt: New file.
+       * gnu/gcj/convert/UnicodeData-3.0.0.txt: New file.
+       * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html: New file.
+       * gnu/java/lang/CharData.java: Copy from Classpath.
+       * Makefile.am (ordinary_java_source_files): Add
+       gnu/java/lang/CharData.java.
+       * configure.in: Remove --enable-fast-character option.
+       * java/lang/Character.java: Merge algorithms and Javadoc with
+       Classpath.
+       * java/lang/natCharacter.cc: Implement Unicode lookup table more
+       efficiently.
+       * include/java-chardecomp.h: Regenerate.
+       * include/java-chartables.h: Regenerate.
+
+2002-03-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/awt/MediaTracker.java: Implemented.
+       * Makefile.am: Add MediaTracker.
+       * Makefile.in: Rebuilt.
+
+2002-03-05  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/natPosixProcess.cc (fail): Removed.
+       (startProcess): Simplified error-handling.  Preserve
+       LD_LIBRARY_PATH across exec.
+
+       * jni.cc (_Jv_LookupJNIMethod): Throw UnsatisfiedLinkError, not
+       AbstractMethodError.
+
 2002-03-03  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
        * Makefile.am: Use -bootclasspath, not -CLASSPATH.
        * configure: Rebuilt.
        * configure.in (GCJVERSION): Removed.
 
->>>>>>> 1.1201
 2002-02-26  Andreas Schwab  <schwab@suse.de>
 
        * acinclude.m4 (LIB_AC_PROG_CXX): Use glibjava_CXX instead of