aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2004-08-31AttributedString.java (AttributedString): Use ArrayList to build array of ↵Tom Tromey2-5/+13
attribute ranges. 2004-08-31 Tom Tromey <tromey@redhat.com> * java/text/AttributedString.java (AttributedString): Use ArrayList to build array of attribute ranges. Don't use `attribs' before it is set. From-SVN: r86825
2004-08-30HACKING: Remove reference to special automake.Andreas Tobler2-12/+4
2004-08-30 Andreas Tobler <a.tobler@schweiz.ch> * HACKING: Remove reference to special automake. No longer needed. From-SVN: r86793
2004-08-30Prime.java (generateRandomPrime): Use return result from `add'.Tom Tromey2-5/+10
2004-08-30 Tom Tromey <tromey@redhat.com> * gnu/java/security/util/Prime.java (generateRandomPrime): Use return result from `add'. From-SVN: r86787
2004-08-30UID.java (UID): Read `nextCount', not count.Tom Tromey2-2/+6
2004-08-30 Tom Tromey <tromey@redhat.com> * java/rmi/server/UID.java (UID): Read `nextCount', not count. From-SVN: r86785
2004-08-30DEREncodingException.java: Remove whitespaces.Andreas Tobler2-2/+6
2004-08-30 Andreas Tobler <a.tobler@schweiz.ch> * gnu/java/security/der/DEREncodingException.java: Remove whitespaces. From-SVN: r86775
2004-08-30File.java File (String,String): Fixed handling of empty path.Jeroen Frijters2-6/+34
2004-08-30 Jeroen Frijters <jeroen@frijters.net> * java/io/File.java File(String,String): Fixed handling of empty path. From-SVN: r86774
2004-08-30Author e-mail updated for all files.Casey Marshall7-67/+170
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. From-SVN: r86765
2004-08-30[multiple changes]Andreas Tobler8-7/+20
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. From-SVN: r86758
2004-08-30DummyKeyPairGenerator.java (clone): Removed useless instanceof check.Casey Marshall8-54/+52
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. From-SVN: r86755
2004-08-292004-08-29 Mark Wielaard <mark@klomp.org>Mark Wielaard2-9/+45
* 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. From-SVN: r86734
2004-08-29AbstractCollection.java, [...]: Added additional exceptions to documentation...Andrew John Hughes13-54/+568
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. From-SVN: r86730
2004-08-28configure.ac: Handle --enable-gc-debug.Hans Boehm7-99/+197
* 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. From-SVN: r86686
2004-08-26re PR libgcj/17002 (java.util.TimeZone.getDefault() is broken)Mark Wielaard3-143/+538
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. From-SVN: r86623
2004-08-25Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS.David Daney3-237/+244
2004-08-25 David Daney <daney@avtrex.com> * Makefile.am (AM_GCJFLAGS): Add LIBGCJ_JAVAFLAGS. * Makefile.in: Regenerated. From-SVN: r86551
2004-08-23ignore autom4te.cacheR. Kelley Cook1-0/+1
From-SVN: r86446
2004-08-23prims.cc (JVMPI_NOTIFY_ALLOC): New macro.Bryce McKinlay2-67/+39
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. From-SVN: r86441
2004-08-23defineclass.cc: Include <stdio.h>.Hans Boehm3-0/+6
* defineclass.cc: Include <stdio.h>. * java/lang/natClassLoader.cc: Include <stdio.h>. From-SVN: r86434
2004-08-21Makefile.am (lib_gnu_java_awt_peer_gtk_la_LINK): Added.Andreas Tobler3-1/+9
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. Co-Authored-By: Michael Koch <konqueror@gmx.de> From-SVN: r86360
2004-08-20configure.ac: Replaced all AC_TRY_COMPILE macros with AC_COMPILE_IFELSE macros.Michael Koch2-19/+24
2004-08-20 Michael Koch <konqueror@gmx.de> * configure.ac: Replaced all AC_TRY_COMPILE macros with AC_COMPILE_IFELSE macros. From-SVN: r86333
2004-08-20configure.in: Renamed to configure.ac.Michael Koch8-8/+15
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. From-SVN: r86326
2004-08-20configure.in: Rewrote some obsolete stuff for autoconf 2.59.Michael Koch4-40/+32
2004-08-20 Michael Koch <konqueror@gmx.de> * configure.in: Rewrote some obsolete stuff for autoconf 2.59. * aclocal.m4, configure: Regenerated. From-SVN: r86322
2004-08-19Correct ChangeLog formatting.Bryce McKinlay1-9/+3
From-SVN: r86260
2004-08-19configure.in, [...]: Ported to automake 1.9.Michael Koch10-4128/+22376
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. * gcc/doc/install.texi: Update entry about automake for libjava. From-SVN: r86258
2004-08-19DatagramSocket.java: Fixed typo.Tom Tromey2-1/+5
2004-08-19 Tom Tromey <tromey@redhat.com> * java/net/DatagramSocket.java: Fixed typo. From-SVN: r86244
2004-08-18re PR libgcj/17081 (Deserializing java.net.URI fails)Bryce McKinlay2-17/+41
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'. From-SVN: r86197
2004-08-18re PR libgcj/17079 ([PATCH] Log messages whose logging level is equal to the ↵Bryce McKinlay2-1/+7
threshold discarded by java.util.logging.Handler) 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. From-SVN: r86187
2004-08-18natPosixProcess.cc (waitForSignal): Use sigsuspend instead of sigwait.David Daney2-7/+14
2004-08-18 David Daney <ddaney@avtrex.com> * java/lang/natPosixProcess.cc (waitForSignal): Use sigsuspend instead of sigwait. From-SVN: r86186
2004-08-17Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read.Michael Koch3-11/+31
2004-08-17 Michael Koch <konqueror@gmx.de> * Makefile.am (AM_CXXFLAGS): Reformatted to make it more ease to read. * Makefile.in: Regenerated. From-SVN: r86130
2004-08-16re PR java/8473 (syntax error on anonymous array subscript)Tom Tromey2-1/+5
PR java/8473: * testsuite/libjava.jacks/jacks.xfail: Removed passing test. From-SVN: r86086
2004-08-162004-08-16 Michael Koch <konqueror@gmx.de>Michael Koch6-22/+36
* 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. From-SVN: r86080
2004-08-16configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory to avoid ↵Bryce McKinlay3-3/+9
autoconf warning. 2004-08-16 Bryce McKinlay <mckinlay@redhat.com> * configure.in (AC_CONF_SUBDIRS): Use literal for ltdl directory to avoid autoconf warning. * configure: Rebuilt. From-SVN: r86072
2004-08-14natInetAddressPosix.cc (lookup): Reflect rename of localhostAddress to ↵Andreas Tobler3-4/+10
loopbackAddress. 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. From-SVN: r85982
2004-08-14configure.in (GCINCS): Don't use "boehm-cflags".Bryce McKinlay4-9/+12
libjava: 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. boehm-gc: 2004-08-13 Bryce McKinlay <mckinlay@redhat.com> * configure.ac (gc_cflags): Add -Iinclude. (AC_CONFIG_HEADERS): New. Configure gc_config.h header. Don't write DEFS to boehm-cflags file. * configure: Rebuilt. * gcj_mlc.c: Check #ifdef GC_GCJ_SUPPORT after including headers. * specific.c: Check #ifdef GC_LINUX_THREADS after including headers. * include/gc_config_macros.h: Remove backward-compatibility redefinitions of GC_ names. * include/gc.h: Include <gc_config.h>. 2004-08-13 Bryce McKinlay <mckinlay@redhat.com> Import Boehm GC version 6.3. From-SVN: r85972
2004-08-13InetAddress.java (loopbackAddress): Renamed from localhostAddress.Bryce McKinlay3-18/+33
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. From-SVN: r85967
2004-08-13re PR libgcj/17020 (gij should ignore all reserved method flags)Bryce McKinlay2-11/+18
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. From-SVN: r85952
2004-08-12re PR libgcj/16662 (IllegalMonitorStateException in ↵Hans Boehm2-21/+139
EventQueue.getNextEvent(): possible hash synchronization bug?) 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. From-SVN: r85884
2004-08-12Process_1.java: New test.David Daney13-0/+286
2004-08-03 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. From-SVN: r85881
2004-08-12re PR libgcj/11801 (Problems with Process.waitFor() and exitValue())David Daney13-508/+1098
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. From-SVN: r85880
2004-08-12re PR tree-optimization/16867 (Inline array initializer miscompilation at -O)Diego Novillo3-0/+23
PR tree-optimization/16867 * tree.c (is_global_var): New function. (needs_to_live_in_memory): Check for TREE_ADDRESSABLE. Call is_global_var. * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove. Update all users. (is_global_var): Declare. * tree-dfa.c (dump_variable): Display global and addressable attributes. (add_referenced_var): Clarify documentation when marking variables call-clobbered. * tree-flow-inline.h (is_call_clobbered): Call is_global_var instead of needs_to_live_in_memory. (mark_call_clobbered): If the variable is a tag, mark it DECL_EXTERNAL. * tree-gimple.c (is_gimple_reg): Don't check for TREE_ADDRESSABLE. (is_gimple_non_addressable): Likewise. * tree-ssa-alias.c (get_nmt_for): Always check whether the tag needs to be marked call-clobbered. (setup_pointers_and_addressables): Call is_global_var instead of needs_to_live_in_memory. * tree-ssa-dce.c (need_to_preserve_store): Remove. Update all users with is_global_var. (mark_stmt_if_obviously_necessary): Fix processing of aliased stores. Don't check the virtual definitions. Rather, check whether the store is going into global memory. (find_obviously_necessary_stmts): Get the symbol from the PHI result. * tree-ssa-operands.c (get_call_expr_operands): Do not add clobbering may-defs if the call does not have side effects. libjava/ChangeLog PR tree-optimization/16867 * testsuite/libjava.lang/PR16867.java: New test. From-SVN: r85874
2004-08-11javaprims.h (_Jv_Utf8Const): Change struct to a class, with private fields ↵Per Bothner14-117/+163
and access methods. * 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. From-SVN: r85854
2004-08-10err14.java: New file.Andrew Haley1-0/+5
2004-08-10 Andrew Haley <aph@redhat.com> * testsuite/libjava.lang/err14.java: New file. * testsuite/libjava.lang/err14.out: New file. From-SVN: r85754
2004-08-10err14.java: New file.Andrew Haley2-0/+22
2004-08-10 Andrew Haley <aph@redhat.com> * testsuite/libjava.lang/err14.java: New file. * testsuite/libjava.lang/err14.out: New file. From-SVN: r85752
2004-08-05Makefile.am: Fix missing rename from x_nat_headers to xlib_nat_headers.Andreas Tobler3-2/+8
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. From-SVN: r85612
2004-08-05BasicPermission.java: Don't check wildcards.Andrew Haley2-9/+11
2004-08-04 Andrew Haley <aph@redhat.com> * java/security/BasicPermission.java: Don't check wildcards. From-SVN: r85608
2004-08-04acinclude.m4: Correctly quote PKG_CHECK_MODULES.Thomas Fitzsimmons5-157/+62
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. Co-Authored-By: Michael Koch <konqueror@gmx.de> From-SVN: r85569
2004-08-04acconfig.h: Removed.Thomas Fitzsimmons4-50/+57
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. Co-Authored-By: Michael Koch <konqueror@gmx.de> From-SVN: r85566
2004-08-04libjava.exp (bytecompile_file): Byte compile with debugging.Andrew Haley2-2/+7
2004-08-04 Andrew Haley <aph@redhat.com> * testsuite/lib/libjava.exp (bytecompile_file): Byte compile with debugging. From-SVN: r85565
2004-08-04Reverted renaming of configure.in to configure.ac, has to waitPaolo Bonzini2-5/+0
for updating of automake. From-SVN: r85555
2004-08-04configure.ac: New name of...Paolo Bonzini2-0/+5
2004-08-04 Paolo Bonzini <bonzini@gnu.org> * configure.ac: New name of... * configure.in: ... this file. From-SVN: r85551
2004-08-04configure.in: Eliminate uses of changequote (mostly by quoting []).Nathanael Nerode3-137/+191
* configure.in: Eliminate uses of changequote (mostly by quoting []). Replace most top level 'dnl' comments with '#' comments, conforming to new autoconf style. Use AS_HELP_STRING throughout; improve a few help strings. * configure: Rebuilt. From-SVN: r85540