Jeff Sturm
8ff6222751
UnicodeToBytes.java (write): Write work buffer starting from zero offset.
...
* gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
starting from zero offset.
From-SVN: r44997
2001-08-18 03:56:01 +00:00
Hans Boehm
eed5666980
boehm.cc: Include gc_local_alloc.h if appropriate.
...
2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
* boehm.cc: Include gc_local_alloc.h if appropriate.
(GC_GENERIC_MALLOC): Don't define.
(MAYBE_MARK): Redefine for GC 6.0.
(_Jv_MarkObj): Mark class differently.
(_Jv_AllocArray): Use GC_generic_malloc.
From-SVN: r44993
2001-08-18 01:01:51 +00:00
Alexandre Petit-Bianco
9fba6f962f
XercesBug.java: New file.
...
2001-08-17 Alexandre Petit-Bianco <apbianco@redhat.com>
* libjava.compile/XercesBug.java: New file.
(http://gcc.gnu.org/ml/gcc-patches/2001-08/msg01066.html )
From-SVN: r44987
2001-08-17 15:26:15 -07:00
Mark J Roberts
62ee966e9c
BigInteger.java (randBytes): New method.
...
2001-08-17 Mark J Roberts <mjr@anarcast.net>
* java/math/BigInteger.java (randBytes): New method.
(BigInteger(int,Random)): Use randBytes.
From-SVN: r44984
2001-08-17 22:21:02 +00:00
Tom Tromey
d1356866eb
* gnu/gcj/convert/IOConverter.java: Add `646' alias.
...
From-SVN: r44965
2001-08-17 18:09:24 +00:00
Hans Boehm
c8e6d3a499
* BigInteger.java: fix right shifts by nonzero multiples of 32.
...
From-SVN: r44964
2001-08-17 16:33:49 +00:00
Hans Boehm
552bf3d6af
* BigInteger.java: fix right shifts by nonzero multiples of 32.
...
From-SVN: r44963
2001-08-17 16:28:32 +00:00
Tom Tromey
ac8d99218a
jni.cc: Include IdentityHashMap.h, not Hashtable.h.
...
* 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-15 20:46:48 +00:00
Tom Tromey
369e1d74c6
natIconv.cc (read): Handle EINVAL and E2BIG correctly.
...
* gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
correctly.
From-SVN: r44928
2001-08-15 20:24:00 +00:00
Tom Tromey
586b870d4f
SampleModel.java (getPixel): Set correct array element.
...
* java/awt/image/SampleModel.java (getPixel): Set correct array
element. From Chris Meyer.
From-SVN: r44871
2001-08-13 21:38:07 +00:00
Alexandre Petit-Bianco
11cdfad624
Matrix4f.java: New file.
...
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-13 11:06:22 -07:00
Loren J. Rittle
6e15d3a83a
* gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
...
From-SVN: r44772
2001-08-10 17:39:34 +00:00
Loren J. Rittle
cc3835e651
* java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
...
From-SVN: r44771
2001-08-10 17:37:41 +00:00
Tom Tromey
012ca3e055
InputStreamReader.java (refill): Only call refill on BufferedInputStream 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-06 22:01:32 +00:00
Tom Tromey
f3997ccf90
StringWriter.java: Merged with Classpath.
...
* 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-05 22:41:30 +00:00
Richard Henderson
cba5553ae6
* libjava.jni/calls.c (Java_calls_docall): Fix typo.
...
From-SVN: r44601
2001-08-03 09:21:23 -07:00
Tom Tromey
870f3799af
prims.cc (JNI_OnLoad): Don't declare.
...
* prims.cc (JNI_OnLoad): Don't declare.
(_JNI_OnLoad): Don't define.
(_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
From-SVN: r44590
2001-08-03 01:25:17 +00:00
Tom Tromey
8d6a437584
RandomAccessFile.java (seek): Let seek go past end of file.
...
* 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-02 23:46:39 +00:00
Martin Kahlert
6ff02a9579
jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order to initialize 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-02 22:12:40 +00:00
Tom Tromey
1518ec6053
configure: Rebuilt.
...
* configure: Rebuilt.
* configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
David Billinghurst.
From-SVN: r44576
2001-08-02 17:08:37 +00:00
Rainer Orth
60a78ccfac
re PR libgcj/3694 (natPlainDatagramSocketImpl.cc doesn't compile in ALPHA OSF1)
...
* 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-01 17:53:00 +00:00
Jeff Sturm
868f43d886
KeepInline.java: New file.
...
* libjava.lang/KeepInline.java: New file.
* libjava.lang/KeepInline.out: New file.
From-SVN: r44540
2001-08-01 12:40:06 +00:00
Jeff Sturm
9042f830ca
* libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
...
From-SVN: r44539
2001-08-01 12:33:38 +00:00
Christian Iseli
0498eaeaab
Makefile.in: Rebuilt.
...
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 21:46:12 +00:00
Tom Tromey
e8b3bcfd3f
* java/util/Date.java: Re-merged with Classpath.
...
From-SVN: r44497
2001-07-31 03:01:47 +00:00
Jeff Sturm
1292bc9fe8
SyncTest.java: New file.
...
* libjava.lang/SyncTest.java: New file.
* libjava.lang/SyncTest.out: New file.
* libjava.lang/SyncTest.xfail: New file.
From-SVN: r44495
2001-07-31 02:13:46 +00:00
Jeff Sturm
2ff78183f8
natPlainDatagramSocketImpl.cc: Undefine bind if defined.
...
* 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-31 01:59:44 +00:00
Tom Tromey
3d5aea8366
natIconv.cc (done): New methods.
...
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 20:24:18 +00:00
Tom Tromey
d76cbbc844
* java/lang/Integer.java: Merged with Classpath.
...
From-SVN: r44478
2001-07-30 17:58:32 +00:00
Bryce McKinlay
6941ff9559
GregorianCalendar.java (GregorianCalendar): Call setTimeInMillis() to set the default/current time.
...
* java/util/GregorianCalendar.java (GregorianCalendar): Call
setTimeInMillis() to set the default/current time.
From-SVN: r44467
2001-07-30 01:41:31 +01:00
Mark Wielaard
7729617cf8
* HACKING: add description on updating namespace
...
From-SVN: r44454
2001-07-29 10:05:08 +00:00
Rainer Orth
08ecdbebab
g++.exp (g++_set_ld_library_path): Renamed to ${tool}_set_ld_library_path.
...
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-27 12:21:56 +00:00
Bryce McKinlay
fa397ddafb
Calendar.java (set): Never recompute fields here.
...
* 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-26 12:21:45 +01:00
Tom Tromey
a9e83c1b1b
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (libgcj.jar): Correctly fail when bytecode
compilation fails.
From-SVN: r44359
2001-07-25 16:40:04 +00:00
Rainer Orth
edd60b15d1
prims.cc (_JNI_OnLoad): New function.
...
* prims.cc (_JNI_OnLoad): New function.
(JNI_OnLoad): Use it.
(_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
From-SVN: r44316
2001-07-24 20:08:58 +00:00
Rainer Orth
6e6958dce4
Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
...
* Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
Makefile.in: Regenerate.
From-SVN: r44314
2001-07-24 19:51:34 +00:00
Tom Tromey
82545bf72f
VMClassLoader.java (getPrimitiveClass): Return correct type.
...
* java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
type.
From-SVN: r44296
2001-07-24 14:31:42 +00:00
Tom Tromey
e109d16f8c
javaprims.h: Rebuilt class list.
...
* 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-23 20:01:29 +00:00
Jeff Sturm
092a1f5ab3
configure.host: Enable hash synchronization for alpha*-*.
...
* 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-23 03:51:17 +00:00
Jeff Sturm
deaabf1413
re PR java/3731 (gcj should generate class init code for instanceof)
...
* libjava.lang/PR3731.java: New file.
* libjava.lang/PR3731.out: New file.
* libjava.lang/PR3731.xfail: New file.
From-SVN: r44151
2001-07-19 14:03:08 +00:00
Rainer Orth
06c271c3cf
natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC 2533 socket options 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-18 20:39:52 +00:00
Tom Tromey
e5c83273cf
natFileWin32.cc (_access): Renamed.
...
* 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-18 18:35:12 +00:00
Tom Tromey
860a15368d
For PR java/2812:
...
* 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-18 17:06:24 +00:00
Alexandre Petit-Bianco
ba75520fff
i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused local `_ebp.'
...
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-17 16:59:07 -07:00
Bryce McKinlay
f79ced717f
LinkedList.java (clone): Clear the copy list with clear(), not by setting 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-17 02:56:38 +01:00
Alexandre Petit-Bianco
e47c5acd7b
anon_ctor_itf_arg.java: Moved to `libjava.lang.'
...
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-13 12:45:05 -07:00
Tom Tromey
a9a399fe24
re PR libgcj/3426 (java.io.InputStreamReader, infinite loop)
...
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-13 05:41:28 +00:00
Alexandre Petit-Bianco
c813baa415
anon_ctor_itf_arg.java: New file.
...
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 14:39:56 -07:00
Tom Tromey
b9aaec62b7
* libjava.lang/N19990310_4.xfail: Removed.
...
From-SVN: r43968
2001-07-12 17:06:33 +00:00
Tom Tromey
a3e5ae6dd8
Report from Henner Zeller:
...
* java/io/FileOutputStream.java (FileOutputStream): Throw
FileNotFoundException, not IOException.
From-SVN: r43966
2001-07-12 15:37:43 +00:00