OSDN Git Service

2004-08-30 Tom Tromey <tromey@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index fdd047b..44d9ce4 100644 (file)
@@ -1,3 +1,375 @@
+2004-08-30  Tom Tromey  <tromey@redhat.com>
+
+       * java/rmi/server/UID.java (UID): Read `nextCount', not count.
+
+2004-08-30  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * gnu/java/security/der/DEREncodingException.java: Remove whitespaces.
+
+2004-08-30  Jeroen Frijters  <jeroen@frijters.net>
+
+       * java/io/File.java File(String,String): Fixed handling of empty
+       path.
+
+2004-08-30  Casey Marshall  <csm@gnu.org>
+
+       Author e-mail updated for all files.
+       * gnu/java/security/OID.java (equals): Test if the aurgment is an
+       instance of OID.
+       (compareTo): Use `equals'.
+       * gnu/java/security/der/BitString.java (equals): Test if the
+       argument is an instance of BitString.
+       * gnu/java/security/der/DERReader.java: Removed NIO imports.  Made
+       class final. Made fields private.
+       (<init>): New constructor.
+       (skip): New method.
+       (makeString): Made static; don't use NIO.
+       (fromIso88591, fromUtf16Be, fromUtf8): New methods.
+       * gnu/java/security/der/DERWriter.java: Fixed imports.
+       (writeString): Don't use NIO.
+       (toIso88591, toUtf16Be, toUtf8): New methods.
+       * gnu/java/security/der/DERValue.java: Formatting changes only.
+       * gnu/java/security/der/DER.java: Likewise.
+
+2004-08-30  Tom Tromey  <tromey@redhat.com>
+
+       * java/nio/CharBuffer.java (put): Fix typo.
+       * java/nio/DoubleBuffer.java (put): Fix typo.
+       * java/nio/FloatBuffer.java (put): Fix typo.
+       * java/nio/IntBuffer.java (put): Fix typo.
+       * java/nio/LongBuffer.java (put): Fix typo.
+       * java/nio/ShortBuffer.java (put): Fix typo.
+
+2004-08-30  Florian Weimer  <fw@deneb.enyo.de>
+
+       * java/nio/ByteBuffer.java (put): Fix typo.
+
+2004-08-30  Casey Marshall  <csm@gnu.org>
+
+       * java/security/DummyKeyPairGenerator.java (clone): Removed
+       useless instanceof check.
+       * java/security/DummyMessageDigest.java (clone): Likewise.
+       * java/security/DummySignature.java (clone): Likewise.
+       * java/security/MessageDigest.java (clone): Remove useless
+       instanceof check.
+       * java/security/MessageDigestSpi.java (clone): Likewise.
+       * java/security/Signature.java (clone): Provide meaningful
+       implementation.
+       * java/security/SignatureSpi.java (clone): Likewise.
+
+2004-08-29  Mark Wielaard  <mark@klomp.org>
+
+       * java/util/Arrays.java
+       (sort(byte[], int, int)): Check fromIndex < 0.
+       (sort(char[], int, int)): Likewise.
+       (sort(short[], int, int)): Likewise.
+       (sort(int[], int, int)): Likewise.
+       (sort(long[], int, int)): Likewise.
+       (sort(float[], int, int)): Likewise.
+       (sort(double[], int, int)): Likewise.
+       (sort(Object[], int, int, Comparator)): Likewise.
+       (qsort(byte[], int, int)): Honor lower bound from in insertion sort.
+       (qsort(char[], int, int)): Likewise.
+       (qsort(short[], int, int)): Likewise.
+       (qsort(int[], int, int)): Likewise.
+       (qsort(long[], int, int)): Likewise.
+       (qsort(float[], int, int)): Likewise.
+       (qsort(double[], int, int)): Likewise.
+
+2004-08-29  Andrew John Hughes  <gnu_andrew@member.fsf.org>
+
+       * java/util/AbstractCollection.java, java/util/AbstractList.java,
+       java/util/AbstractMap.java, java/util/AbstractSequentialList.java,
+       java/util/ArrayList.java, java/util/Arrays.java,
+       java/util/BitSet.java, java/util/Calendar.java,
+       java/util/Collection.java, java/util/ListIterator.java,
+       java/util/Map.java, java/util/SortedSet.java:
+       Added additional exceptions to documentation, along
+       with some additions and corrections.
+
+2004-08-27  Hans Boehm  <Hans.Boehm@hp.com>
+
+       * configure.ac: Handle --enable-gc-debug.
+       * configure: Regenerate.
+       * include/config.h.in (LIBGCJ_GC_DEBUG): Add.
+       * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files.
+       Rearrange include file order.
+       (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set.
+       (GC_finalize_all, GC_debug_generic_malloc): Don't declare.
+       (disable_gc_mutex): Delete along with all references.
+       (_Jv_MarkObj, _Jv_MarkArray): Use public types,
+       adjust for debug header size.
+       (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for
+       debug case.
+       (_Jv_AllocArray): Declare min_heap_addr only if needed.
+       (gcj_describe_type_fn): New.
+       (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind.
+       Register gcj_describe_type_fn.
+       * include/boehm-gc.h:
+       (_Jv_AllocObj, _Jv_allocPtrFreeObj):
+       Don't define, but declare, for debug case.
+       * java/lang/natObject.cc:
+       (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set.
+
+2004-08-26  Mark Wielaard  <mark@klomp.org>
+
+       Fixes PR libgcj/17002:
+       * java/util/TimeZone.java (defaultZone): Try a couple of ways to get
+       a TimeZoneId string and then try to convert that to a TimeZone with
+       getDefaultSystemTimeZone(String).
+       (timezones0): Changed type from Hashtable to HashMap.
+       (timezones): Create HashMap, not Hashtable.
+       (getDefaultTimeZone): New method, rewritten from CNI version.
+       (readTimeZoneFile): New method.
+       (readtzFile): Likewise.
+       (skipFully): Likewise.
+       * java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
+       getDefaultTimeZoneId and rewritten.
+       (getDefaultTimeZoneId): Rewritten in java.
+       
+2004-08-25  David Daney  <daney@avtrex.com>
+
+       * Makefile.am (AM_GCJFLAGS):  Add LIBGCJ_JAVAFLAGS.
+       * Makefile.in: Regenerated.
+
+2004-08-23  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * prims.cc (JVMPI_NOTIFY_ALLOC): New macro. Call jvmpi_notify_alloc
+       only if jvmpi is enabled.
+       (jvmpi_notify_alloc): Don't check if jvmpi is enabled here.
+       (_Jv_AllocObjectNoFinalizer): Use JVMPI_NOTIFY_ALLOC.
+       (_Jv_AllocString): Likewise.
+       (_Jv_AllocPtrFreeObject): Likewise.     
+
+2004-08-23  Hans Boehm  <Hans.Boehm@hp.com>
+
+       * defineclass.cc: Include <stdio.h>.
+       * java/lang/natClassLoader.cc: Include <stdio.h>.
+
+2004-08-21  Andreas Tobler  <a.tobler@schweiz.ch>
+           Michael Koch  <konqueror@gmx.de>
+
+       * Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.
+       * Makefile.in: Regenerated.
+
+2004-08-20  Michael Koch  <konqueror@gmx.de>
+
+       * configure.ac: Replaced all AC_TRY_COMPILE macros with
+       AC_COMPILE_IFELSE macros.
+
+2004-08-20  Michael Koch  <konqueror@gmx.de>
+
+       * configure.in: Renamed to configure.ac.
+       * configure.ac: New file.
+       * configure, Makefile.in, gcj/Makefile.in, include/Makefile.in
+       include/config.h.in, testsuite/Makefile.in: Regenerated.
+
+2004-08-20  Michael Koch  <konqueror@gmx.de>
+
+       * configure.in: Rewrote some obsolete stuff for autoconf 2.59.
+       * aclocal.m4, configure: Regenerated.
+
+2004-08-19  Thomas Fitzsimmons  <fitzsim@redhat.com>
+           Michael Koch  <konqueror@gmx.de>
+
+       * configure.in, Makefile.am: Ported to automake 1.9.
+       * Makefile.in, aclocal.m4, configure, gcj/Makefile.in, 
+       include/Makefile.in, testsuite/Makefile.in, include/config.h.in:
+       Regenerated.
+
+2004-08-19  Tom Tromey  <tromey@redhat.com>
+
+       * java/net/DatagramSocket.java: Fixed typo.
+
+2004-08-18  Bryce McKinlay  <mckinlay@redhat.com>
+
+       PR libgcj/17081
+       * java/net/URI.java (string): New field. Make all other fields
+       transient.
+       (readObject): Implemented.
+       (writeObject): Implemented.
+       (URI): Set 'string'.
+
+2004-08-18  Bryce McKinlay  <mckinlay@redhat.com>
+
+       PR libgcj/17079
+       * java/util/logging/Handler.java (isLoggable): Accept record if its
+       log level equals the threshold level. From Robin Green.
+
+2004-08-18  David Daney  <ddaney@avtrex.com>
+
+       * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend 
+       instead of sigwait.
+
+2004-08-17  Michael Koch  <konqueror@gmx.de>
+
+       * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.
+       * Makefile.in: Regenerated.
+
+2004-08-16  Tom Tromey  <tromey@redhat.com>
+
+       PR java/8473:
+       * testsuite/libjava.jacks/jacks.xfail: Removed passing test.
+
+2004-08-16  Michael Koch  <konqueror@gmx.de>
+
+       * Makefile.am
+       (math_c_files): Renamed from c_files.
+       (math_c_source_files): Renamed from c_source_files.
+       * Makefile.in,
+       gcj/Makefile.in,
+       include/Makefile.in,
+       testsuite/Makefile.in: Regenerated.
+
+2004-08-16  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory
+       to avoid autoconf warning.
+       * configure: Rebuilt.
+
+2004-08-14  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * java/net/natInetAddressPosix.cc (lookup): Reflect rename of 
+       localhostAddress to loopbackAddress.
+       * java/net/natInetAddressWin32.cc (lookup): Likewise.
+
+2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I 
+       boehm-gc's include dirs.
+       * configure: Rebuilt.
+       * include/boehm-gc.h: Include gc_config.h.
+
+2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * java/net/InetAddress.java (loopbackAddress): Renamed from 
+       localhostAddress.
+       (getByName): Return loopback address for null hostname, without
+       security check. Use lookup(), not getAllByName.
+       (getAllByName): Return loopback address for null hostname, without
+       security check.
+       * java/net/natInetAddressPosix.cc (lookup): Don't perform security
+       check here.
+
+2004-08-13  Bryce McKinlay  <mckinlay@redhat.com>
+
+       PR libgcj/17020
+       Reported by Robin Green.
+       * defineclass.cc (handleField): Don't throw exception on unrecognised
+       modifier. Add FIXME comments for spec compliance.
+       (handleMethod): Likewise.
+
+2004-08-10  Hans Boehm <Hans.Boehm@hp.com>
+
+       PR libgcj/16662
+       * java/lang/natObject.cc (LOCK_LOG, LOG): Add debug tracing.
+       (Almost everywhere): add LOG calls, fix, add comments.
+       (_Jv_MonitorEnter): Replace masking of LOCKED bit with assertion.
+       Add explicit check for LOCKED bit in slow case (PR 16662).
+       (_Jv_MonitorExit): Add casts in debug-only code.
+       Always release LOCKED bit before throwing exception.
+       (_Jv_ObjectCheckMonitor): Lock may be held if lightweight lock
+       isn't.  Handle easy cases without lock acquisition.
+       (Object::wait): Use NotifyAll for lock inflation.
+
+2004-08-12  David Daney  <ddaney@avtrex.com>
+
+       * testsuite/libjava.lang/Process_1.java: New test.
+       * testsuite/libjava.lang/Process_2.java: New test.
+       * testsuite/libjava.lang/Process_3.java: New test.
+       * testsuite/libjava.lang/Process_4.java: New test.
+       * testsuite/libjava.lang/Process_5.java: New test.
+       * testsuite/libjava.lang/Process_6.java: New test.
+       * testsuite/libjava.lang/Process_1.out: Expected result.
+       * testsuite/libjava.lang/Process_2.out: Expected result.
+       * testsuite/libjava.lang/Process_3.out: Expected result.
+       * testsuite/libjava.lang/Process_4.out: Expected result.
+       * testsuite/libjava.lang/Process_5.out: Expected result.
+       * testsuite/libjava.lang/Process_6.out: Expected result.
+
+2004-08-12  David Daney  <ddaney@avtrex.com>
+
+       PR libgcj/11801
+       * java/lang/PosixProcess.java: Rewrote.
+       * java/lang/natPosixProcess.cc: Rewrote.
+       * java/lang/Runtime.java (execInternal): Declare throws IOException.
+       * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare.
+       * posix-threads.cc (block_sigchld) New function.
+       (_Jv_ThreadRegister) Use it.
+       (_Jv_ThreadStart) Use it.
+       * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in...
+       * Makefile.am: ... to specify extra native headers.
+       * configure: Regenerated.
+       * include/config.h: Regenerated.
+       * Makefile.in: Regenerated.
+       * gcj/Makefile.in: Regenerated.
+       * include/Makefile.in: Regenerated.
+       * testsuite/Makefile.in: Regenerated.
+
+2004-08-12  Diego Novillo  <dnovillo@redhat.com>
+
+       PR tree-optimization/16867
+       * testsuite/libjava.lang/PR16867.java: New test.
+
+2004-08-09  Per Bothner  <per@bothner.com>
+
+       * gcj/javaprims.h (_Jv_Utf8Const): Change struct to a class,
+       with private fields and access methods.
+       (_Jv_NewStringUTF, _Jv_hashUtf8String): New function declarations.
+       * gcj/cni.h (_Jv_NewStringUTF): Move to javaprims.h.
+       * prims.cc (_Jv_Utf8COnst::init): New method implementation.
+       ( _Jv_makeUtf8Const): Rewrite using new constructors.
+       (hashUtf8String): Rename to +_Jv_hashUtf8String and make non-static.
+       * defineclass.cc: Use new _Utf8Const access/convenience methods.
+       * jni.cc: Likewise.
+       * resolve.cc: Likewise.
+       * gcj/field.h: Likewise.
+       * include/jvm.h: Likewise.
+       * java/lang/Class.h: Likewise.
+       * java/lang/natClass.cc: Likwise.
+       * java/lang/natClassLoader.cc: Likewise
+       * java/lang/reflect/natMethod.cc: Likewise
+       * verify.cc: Likewise.
+       (_Jv_BytecodeVerifier::make_utf8_const):  Optimize.
+       (~_Jv_BytecodeVerifier):  Don't need second _Jv_Free call.
+
+2004-08-10  Andrew Haley  <aph@redhat.com>
+
+       * testsuite/libjava.lang/err14.java: New file.
+       * testsuite/libjava.lang/err14.out: New file.
+
+2004-08-05  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * Makefile.am: Fix missing rename from x_nat_headers to 
+       xlib_nat_headers.
+       * Makefile.in: Regenerated.
+
+2004-08-04  Andrew Haley  <aph@redhat.com>
+
+       * java/security/BasicPermission.java: Don't check wildcards.
+
+2004-08-04  Thomas Fitzsimmons <fitzsim@redhat.com>
+           Michael Koch  <konqueror@gmx.de>
+
+       * acinclude.m4: Correctly quote PKG_CHECK_MODULES.
+       * configure.in: Replaced all usages of AC_LINK_FILES by
+       AC_CONFIG_LINKS.
+       * aclocal.m4,
+       configure: Regenerated.
+
+2004-08-04  Thomas Fitzsimmons  <fitzsim@redhat.com>
+           Michael Koch  <konqueror@gmx.de>
+
+       * acconfig.h: Removed.
+       * Makefile.am: Rename variables for xlib peer to include xlib and
+       gtk_c_headers to gtk_jni_headers.
+       * Makefile.in: Regenerated.
+
+2004-08-04  Andrew Haley  <aph@redhat.com>
+
+       * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with
+       debugging.
+
 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * configure.in: Eliminate uses of changequote (mostly by quoting []).