aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2001-07-30natIconv.cc (done): New methods.Tom Tromey7-69/+207
2001-07-30 Tom Tromey <tromey@redhat.com> Corey Minyard <minyard@acm.org> * gnu/gcj/convert/natIconv.cc (done): New methods. * gnu/gcj/convert/Output_iconv.java (done): New method. * gnu/gcj/convert/Input_iconv.java (done): New method. * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass): Removed. (getDefaultEncodingClass): Removed. (getDefaultEncoder): Use getEncoder. (done): New method. (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New static fields. * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass): Removed. (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New static fields. (getDefaultDecodingClass): Removed. (getDefaultDecoder): Use getDecoder. (getDecoder): Look up decoder in cache. (done): New method. * java/lang/natString.cc (init): Call `done' on converter. (getBytes): Likewise. Co-Authored-By: Corey Minyard <minyard@acm.org> From-SVN: r44484
2001-07-30* java/lang/Integer.java: Merged with Classpath.Tom Tromey2-4/+6
From-SVN: r44478
2001-07-30GregorianCalendar.java (GregorianCalendar): Call setTimeInMillis() to set ↵Bryce McKinlay2-3/+6
the default/current time. * java/util/GregorianCalendar.java (GregorianCalendar): Call setTimeInMillis() to set the default/current time. From-SVN: r44467
2001-07-29* HACKING: add description on updating namespaceMark Wielaard2-0/+21
From-SVN: r44454
2001-07-27g++.exp (g++_set_ld_library_path): Renamed to ${tool}_set_ld_library_path.Rainer Orth2-0/+19
gcc/testsuite: * lib/g++.exp (g++_set_ld_library_path): Renamed to ${tool}_set_ld_library_path. Changed caller. * lib/objc.exp (${tool}_set_ld_library_path): New, copied from g++.exp. libjava/testsuite: * lib/libjava.exp (${tool}_set_ld_library_path): New, copied from g++.exp. From-SVN: r44420
2001-07-26Calendar.java (set): Never recompute fields here.Bryce McKinlay4-71/+112
* java/util/Calendar.java (set): Never recompute fields here. They will already be set if someone set time explicitly, and it can cause problems to do so. Don't invalidate AM_PM setting if HOUR is set. * java/util/GregorianCalendar.java (computeTime): Don't ignore an HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is sane. * java/text/SimpleDateFormat.java (defaultCentury): New field. (readObject): Call set2DigitYearStart if appropriate so that defaultCentury is calculated. (SimpleDateFormat): Don't bother clearing calendar here. Call computeCenturyStart(). (set2DigitYearStart): Calculate and set defaultCentury. (format): Don't clone the calendar. Use "calendar" not "theCalendar" everywhere. (parse): Likewise. If the pattern is "y" or "yy" and it found exactly 2 numeric digits, use the 80-20 heuristic to parse the value into a default century based on defaultCenturyStart. (computeCenturyStart): Rewritten. Call set2DigitYearStart(). From-SVN: r44395
2001-07-25Makefile.in: Rebuilt.Tom Tromey3-4/+10
* Makefile.in: Rebuilt. * Makefile.am (libgcj.jar): Correctly fail when bytecode compilation fails. From-SVN: r44359
2001-07-24prims.cc (_JNI_OnLoad): New function.Rainer Orth2-4/+17
* prims.cc (_JNI_OnLoad): New function. (JNI_OnLoad): Use it. (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL. From-SVN: r44316
2001-07-24Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.Rainer Orth3-0/+7
* Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS. Makefile.in: Regenerate. From-SVN: r44314
2001-07-24VMClassLoader.java (getPrimitiveClass): Return correct type.Tom Tromey2-8/+13
* java/lang/VMClassLoader.java (getPrimitiveClass): Return correct type. From-SVN: r44296
2001-07-23javaprims.h: Rebuilt class list.Tom Tromey12-649/+1662
* gcj/javaprims.h: Rebuilt class list. * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added VMClassLoader. * java/lang/VMClassLoader.java: New file. * java/lang/Boolean.java: Merged with Classpath. * java/lang/Byte.java: Merged with Classpath. * java/lang/Integer.java: Merged with Classpath. * java/lang/Long.java: Merged with Classpath. * java/lang/Number.java: Merged with Classpath. * java/lang/Short.java: Merged with Classpath. From-SVN: r44274
2001-07-23configure.host: Enable hash synchronization for alpha*-*.Jeff Sturm4-0/+65
* configure.host: Enable hash synchronization for alpha*-*. * include/posix-threads.h (_Jv_ThreadSelf): Added inline function for alpha. * java/lang/natObject.cc (compare_and_swap, release_set, compare_and_swap_release): Added inline functions for alpha. From-SVN: r44251
2001-07-19re PR java/3731 (gcj should generate class init code for instanceof)Jeff Sturm4-0/+23
* libjava.lang/PR3731.java: New file. * libjava.lang/PR3731.out: New file. * libjava.lang/PR3731.xfail: New file. From-SVN: r44151
2001-07-18natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC 2533 socket options ↵Rainer Orth2-1/+16
IPV6_JOIN_GROUP... * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling back to old RFC 2133 variants if missing. From-SVN: r44130
2001-07-18natFileWin32.cc (_access): Renamed.Tom Tromey4-12/+24
* java/io/natFileWin32.cc (_access): Renamed. (_stat): Likewise. * java/io/natFile.cc (_access): Renamed. (_stat): Likewise. * java/io/File.java (access, stat): Add leading `_' to name. Updated all callers. From-SVN: r44124
2001-07-18For PR java/2812:Tom Tromey9-297/+603
* libgcj.spec.in (*lib): Added LIBICONV. * configure: Rebuilt. * configure.in: Call AM_ICONV. Don't check for iconv function. Add parameters to JV_HASH_SYNCHRONIZATION define. * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible. From-SVN: r44116
2001-07-17i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused local `_ebp.'Alexandre Petit-Bianco2-1/+5
2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com> * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused local `_ebp.' (http://gcc.gnu.org/ml/java-patches/2001-q3/msg00070.html ) From-SVN: r44093
2001-07-17LinkedList.java (clone): Clear the copy list with clear(), not by setting ↵Bryce McKinlay2-8/+7
its size field. * java/util/LinkedList.java (clone): Clear the copy list with clear(), not by setting its size field. From-SVN: r44057
2001-07-13anon_ctor_itf_arg.java: Moved to `libjava.lang.'Alexandre Petit-Bianco5-0/+46
2001-07-12 Alexandre Petit-Bianco <apbianco@redhat.com> * libjava.compile/anon_ctor_itf_arg.java: Moved to `libjava.lang.' * libjava.compile/anon_ctor_itf_arg.out: Likewise * libjava.lang/invoke_from_inner.java: New file. * libjava.lang/invoke_from_inner.out: Likewise. (http://gcc.gnu.org/ml/java-patches/2001-q3/msg00061.html ) From-SVN: r43994
2001-07-13re PR libgcj/3426 (java.io.InputStreamReader, infinite loop)Tom Tromey4-64/+83
Fix for PR libgcj/3426: * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h, errno.h. (read): Throw exception if character conversion fails. * java/io/BufferedInputStream.java (refill): Now package-private. * java/io/InputStreamReader.java (ready): Simplified. (refill): New method. (read): Use it. Co-Authored-By: David Brownell <david-b@pacbell.net> From-SVN: r43975
2001-07-12anon_ctor_itf_arg.java: New file.Alexandre Petit-Bianco3-0/+44
2001-07-12 Alexandre Petit-Bianco <apbianco@redhat.com> * libjava.compile/anon_ctor_itf_arg.java: New file. * libjava.compile/anon_ctor_itf_arg.out: New file. (http://gcc.gnu.org/ml/java-patches/2001-q3/msg00059.html) From-SVN: r43974
2001-07-12* libjava.lang/N19990310_4.xfail: Removed.Tom Tromey2-1/+4
From-SVN: r43968
2001-07-12Report from Henner Zeller:Tom Tromey2-6/+15
* java/io/FileOutputStream.java (FileOutputStream): Throw FileNotFoundException, not IOException. From-SVN: r43966
2001-07-11Add some org packages.Anthony Green57-65/+12784
From-SVN: r43922
2001-07-10Makefile.am: Added `java/lang/ThreadLocal.java'.Alexandre Petit-Bianco7-1/+240
libjava: 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com> * Makefile.am: Added `java/lang/ThreadLocal.java'. * Makefile.in: Regenerate. * java/lang/ThreadLocal.java: Initial import. libjava/testsuite: 2001-07-10 Alexandre Petit-Bianco <apbianco@readhat.com> * libjava.lang/TLtest.java: New file. * libjava.lang/TLtest.out: New file. (http://gcc.gnu.org/ml/java-patches/2001-q3/msg00042.html ) From-SVN: r43915
2001-07-07Makefile.am (libgcj.jar): Don't recursively make built_java_source_files.Jeff Sturm3-1006/+92
* Makefile.am (libgcj.jar): Don't recursively make built_java_source_files. Avoid long command lines. Don't change to $(srcdir) to invoke javac. (libgcj.la, libgcjx.la); Avoid long command lines. ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar. * Makefile.in: Rebuilt. From-SVN: r43836
2001-07-06i386-signal.h: Don't do anything with unsigned divide overflow except throw ↵Andrew Haley2-15/+5
an exception. 2001-07-06 Andrew Haley <aph@cambridge.redhat.com> * include/i386-signal.h: Don't do anything with unsigned divide overflow except throw an exception. From-SVN: r43813
2001-07-06Divide_1.java: Add may more test cases.Andrew Haley3-3/+117
2001-07-06 Andrew Haley <aph@cambridge.redhat.com> * libjava.lang/Divide_1.java: Add may more test cases. * libjava.lang/Divide_1.out: Likewise. From-SVN: r43812
2001-07-05For PR java/3562:Tom Tromey2-2/+8
* java/lang/Class.h (Class(void)): Now private. Removed implementation. From dmorsberger@sensysdl.com. From-SVN: r43781
2001-07-03II.java: New file.Jeff Sturm3-0/+22
* libjava.lang/II.java: New file. * libjava.lang/II.out: New file. From-SVN: r43744
2001-07-03configure: Rebuilt.Tom Tromey3-145/+172
* configure: Rebuilt. * configure.in: Added aux-dir hacks to satisfy automake and in-tree builds. From-SVN: r43740
2001-07-03re PR bootstrap/3281 (Installation failure (mkinstalldirs))Tom Tromey9-306/+352
Fix for PR bootstrap/3281: * aclocal.m4, configure: Rebuilt. * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir. Correctly compute libgcj_basedir. (mkinstalldirs): Define and subst. From-SVN: r43739
2001-07-02For PR libgcj/3523:Jeremy Nimmer2-2/+8
2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu> For PR libgcj/3523: * java/io/LineNumberReader.java (reset): Pass correct arguments to countLines. From-SVN: r43683
2001-06-27IOConverter.java: Manually maintained alias now lowercase.Tom Tromey2-1/+6
* gnu/gcj/convert/IOConverter.java: Manually maintained alias now lowercase. From-SVN: r43620
2001-06-26encodings.pl: Generate lower-case names.Tom Tromey3-26/+38
* scripts/encodings.pl: Generate lower-case names. Updated URL for `character-sets' file. * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to lower case. Rebuilt list of aliases. From-SVN: r43566
2001-06-26natFileDescriptorPosix.cc (open): Change error message formatting.Tom Tromey2-1/+8
* java/io/natFileDescriptorPosix.cc (open): Change error message formatting. From David Brownell. From-SVN: r43564
2001-06-25* libjava.lang/stub.xfail: Removed.Tom Tromey2-3/+4
From-SVN: r43558
2001-06-25jni.exp (gcj_jni_compile_c_to_so): Fix path for jni.h.Andreas Jaeger2-27/+31
* libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Fix path for jni.h. From-SVN: r43549
2001-06-21java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.Tom Tromey2-1/+8
* include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL. From Corey Minyard. From-SVN: r43484
2001-06-19BigInteger.java (byteArrayToIntArray): Don't include extraneous/malformed ↵Mark J. Roberts2-5/+6
sign word. 2001-06-19 Mark J. Roberts <mjr@statesmean.com> * java/math/BigInteger.java (byteArrayToIntArray): Don't include extraneous/malformed sign word. From-SVN: r43455
2001-06-15* jni.cc (_Jv_JNI_NewLocalRef): Search other frames.Tom Tromey2-8/+19
From-SVN: r43415
2001-06-15natRuntime.cc (_Jv_FindSymbolInExecutable): Return NULL if no library on the ↵Tom Tromey3-3/+23
list has the symbol. * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return NULL if no library on the list has the symbol. (init): Call add_library on the program itself. * prims.cc (JvRunMain): Initialize Runtime before searching for `main'. (_Jv_RunMain): Likewise. From-SVN: r43413
2001-06-15jni.cc (ClassClass): Removed; updated all users.Tom Tromey2-30/+51
* jni.cc (ClassClass): Removed; updated all users. (ObjectClass): Likewise. (ThrowableClass): Likewise. (MethodClass): Likewise. (ThreadGroupClass): Likewise. (local_ref_table): Renamed from `ref_table'. (global_ref_table): New global. (_Jv_JNI_Init): Initialize both ref tables. (mark_for_gc): Added `ref_table' parameter. (unmark_for_gc): Likewise. Also, fail if we unreferenced too many times. (_Jv_JNI_NewGlobalRef): Updated for new mark function. (_Jv_JNI_DeleteGlobalRef): Likewise. (_Jv_JNI_DeleteLocalRef): Likewise. (_Jv_JNI_NewLocalRef): Likewise. (_Jv_JNI_PopLocalFrame): Likewise. (_Jv_JNI_GetStringChars): Likewise. (_Jv_JNI_ReleaseStringChars): Likewise. (_Jv_JNI_GetPrimitiveArrayElements): Likewise. (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise. From-SVN: r43409
2001-06-14jni.exp: New file.Tom Tromey3-0/+176
* libjava.jni/jni.exp: New file. * lib/libjava.exp (gcj_link): New proc. From-SVN: r43375
2001-06-14re PR libgcj/3144 (java.lang.Date.compareTo() not supported)Tom Tromey2-143/+415
Fix for PR libgcj/3144: * java/util/Date.java: Merged with Classpath. From-SVN: r43374
2001-06-13Added John Gilmore.Per Bothner1-0/+1
From-SVN: r43330
2001-06-13aclocal.m4, configure: Rebuilt.Tom Tromey4-3/+15
* aclocal.m4, configure: Rebuilt. * acinclude.m4: Find configure.host in srcdir. From-SVN: r43325
2001-06-10exception.cc (cstdlib): Replaces stdlib.h.Alexandre Petit-Bianco2-3/+9
2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com> * exception.cc (cstdlib): Replaces stdlib.h. (_Jv_Throw): Use std::abort(). (PERSONALITY_FUNCTION): Likewise. (http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00620.html ) From-SVN: r43153
2001-06-09acinclude.m4 (AC_EXEEXT): Work around in case it expands to nothing, as in ↵Alexandre Oliva3-238/+246
autoconf 2.50. * acinclude.m4 (AC_EXEEXT): Work around in case it expands to nothing, as in autoconf 2.50. * aclocal.m4, configure: Rebuilt. From-SVN: r43108
2001-06-09acinclude.m4 (AC_EXEEXT): Work around in case it expands to nothing, as in ↵Alexandre Oliva2-0/+10
autoconf 2.50. * acinclude.m4 (AC_EXEEXT): Work around in case it expands to nothing, as in autoconf 2.50. * configure: Rebuilt. From-SVN: r43104