aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2001-08-17* gnu/gcj/convert/IOConverter.java: Add `646' alias.Tom Tromey2-0/+9
From-SVN: r44965
2001-08-17* BigInteger.java: fix right shifts by nonzero multiples of 32.Hans Boehm1-0/+4
From-SVN: r44964
2001-08-17* BigInteger.java: fix right shifts by nonzero multiples of 32.Hans Boehm1-1/+1
From-SVN: r44963
2001-08-15jni.cc: Include IdentityHashMap.h, not Hashtable.h.Tom Tromey7-11/+442
* jni.cc: Include IdentityHashMap.h, not Hashtable.h. (local_ref_table, global_ref_table): Now IdentityHashMap. (_Jv_JNI_Init): Updated for new types. (mark_for_gc): Likewise. (unmark_for_gc): Likewise. * gcj/javaprims.h: Rebuilt class list. * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added new file. * java/util/IdentityHashMap.java: New file. From-SVN: r44929
2001-08-15natIconv.cc (read): Handle EINVAL and E2BIG correctly.Tom Tromey2-4/+12
* gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG correctly. From-SVN: r44928
2001-08-13SampleModel.java (getPixel): Set correct array element.Tom Tromey2-3/+8
* java/awt/image/SampleModel.java (getPixel): Set correct array element. From Chris Meyer. From-SVN: r44871
2001-08-13Matrix4f.java: New file.Alexandre Petit-Bianco3-0/+143
2001-08-12 Alexandre Petit-Bianco <apbianco@redhat.com> * libjava.lang/Matrix4f.java: New file. * libjava.lang/Matrix4f.out: New file. (http://gcc.gnu.org/ml/gcc-patches/2001-08/msg00737.html) From-SVN: r44864
2001-08-10* gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.Loren J. Rittle2-0/+9
From-SVN: r44772
2001-08-10* java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.Loren J. Rittle2-0/+8
From-SVN: r44771
2001-08-06InputStreamReader.java (refill): Only call refill on BufferedInputStream ↵Tom Tromey2-1/+8
when appropriate constraints are met. * java/io/InputStreamReader.java (refill): Only call refill on BufferedInputStream when appropriate constraints are met. From-SVN: r44675
2001-08-05StringWriter.java: Merged with Classpath.Tom Tromey7-179/+979
* java/io/StringWriter.java: Merged with Classpath. * java/io/InputStream.java: Merged with Classpath. * java/io/OutputStream.java: Merged with Classpath. * java/io/PushbackInputStream.java: Merged with Classpath. * java/io/CharArrayReader.java: Merged with Classpath. * java/io/CharArrayWriter.java: Merged with Classpath. From-SVN: r44652
2001-08-03* libjava.jni/calls.c (Java_calls_docall): Fix typo.Richard Henderson2-1/+5
From-SVN: r44601
2001-08-03prims.cc (JNI_OnLoad): Don't declare.Tom Tromey2-35/+6
* prims.cc (JNI_OnLoad): Don't declare. (_JNI_OnLoad): Don't define. (_Jv_CreateJavaVM): Don't handle JNI_OnLoad. From-SVN: r44590
2001-08-02RandomAccessFile.java (seek): Let seek go past end of file.Tom Tromey7-23/+43
* java/io/RandomAccessFile.java (seek): Let seek go past end of file. (skipBytes): Don't fail if seeking past end of file. * java/io/FileInputStream.java (skip): Don't fail if seeking past end of file. * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc' argument. * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc' argument. * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc' argument. * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument. From-SVN: r44586
2001-08-02jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order to initialize ↵Martin Kahlert2-0/+8
global_ref_table/local_ref_table. 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com> * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order to initialize global_ref_table/local_ref_table. From-SVN: r44583
2001-08-02configure: Rebuilt.Tom Tromey3-302/+331
* configure: Rebuilt. * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From David Billinghurst. From-SVN: r44576
2001-08-01re PR libgcj/3694 (natPlainDatagramSocketImpl.cc doesn't compile in ALPHA OSF1)Rainer Orth8-313/+379
* include/posix.h (_POSIX_PII_SOCKET): Define. * configure.in (HAVE_SOCKLEN_T): Define. * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t definition up. (_JV_accept): New function, avoids Tru64 UNIX accept macro. (java::net::PlainSocketImpl::accept): Use it. Fixes PRs libgcj/3694, libgcj/3696. * configure.in (HAVE_STRUCT_IPV6_MREQ): New test. * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template. * configure, include/config.h.in: Regenerate. * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it. (mcastGrp): Likewise. (java::net::PlainDatagramSocketImpl::setOption): Guard against missing IPV6_MULTICAST_IF. Fixes PR libgcj/3694. From-SVN: r44546
2001-08-01KeepInline.java: New file.Jeff Sturm3-0/+25
* libjava.lang/KeepInline.java: New file. * libjava.lang/KeepInline.out: New file. From-SVN: r44540
2001-08-01* libgcj.spec.in: Pass -fkeep-inline-functions to jc1.Jeff Sturm2-1/+5
From-SVN: r44539
2001-07-31Makefile.in: Rebuilt.Christian Iseli3-4/+10
2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch> * Makefile.in: Rebuilt. * Makefile.am (GCJLINK): Added --tag=GCJ. (LIBLINK): Likewise. From-SVN: r44520
2001-07-31* java/util/Date.java: Re-merged with Classpath.Tom Tromey2-1/+6
From-SVN: r44497
2001-07-31SyncTest.java: New file.Jeff Sturm4-0/+39
* libjava.lang/SyncTest.java: New file. * libjava.lang/SyncTest.out: New file. * libjava.lang/SyncTest.xfail: New file. From-SVN: r44495
2001-07-31natPlainDatagramSocketImpl.cc: Undefine bind if defined.Jeff Sturm3-3/+47
* java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined. (_Jv_bind): New static function. (bind): Use _Jv_bind. * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined. (_Jv_bind, _Jv_connect): New static functions. (bind): Use _Jv_bind. (connect): Use _Jv_connect. From-SVN: r44494
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