Update version
[official-gcc.git] / libjava / ChangeLog
blob30b228c739997fc498dd05f7858e9dea7fe87057
1 2001-10-23  Release Manager
3         * GCC 3.0.2 Released.
5 2001-10-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
7         * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname
8         and dli_fname.
10 2001-10-03  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12         * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
14 2001-09-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
17         an uninitialized target class. Revert patch of 2001-07-18.
19 2001-08-17  Tom Tromey  <tromey@redhat.com>
21         * gnu/gcj/convert/IOConverter.java: Add `646' alias.
23 2001-06-15  Tom Tromey  <tromey@redhat.com>
25         * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
27 2001-05-03  Tom Tromey  <tromey@redhat.com>
29         * java/lang/natRuntime.cc (init): Call add_library on the program
30         itself.
31         (_Jv_FindSymbolInExecutable): Return NULL if no library on the
32         list has the symbol.
34 2001-09-21  Richard Henderson  <rth@redhat.com>
36         * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
37         add get_method, set_method, vtable_elt_size, new_vtable.
38         (_Jv_ArrayVTable): Derive from _Jv_VTable.
39         * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
40         * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
41         * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
43 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
45         * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
46         starting from zero offset.
48 2001-08-19  Release Manager
50         * GCC 3.0.1 Released.
52 2001-08-19  Release Manager
54         * GCC 3.0.1 Released.
56 2001-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
58         * include/posix.h (_POSIX_PII_SOCKET): Define.
59         * configure.in (HAVE_SOCKLEN_T): Define.
60         * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
61         definition up. 
62         (_JV_accept): New function, avoids Tru64 UNIX accept macro.
63         (java::net::PlainSocketImpl::accept): Use it.
64         Fixes PRs libgcj/3694, libgcj/3696.
65         
66         * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
67         * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
68         * configure, include/config.h.in: Regenerate.
69         * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
70         (mcastGrp): Likewise.
71         (java::net::PlainDatagramSocketImpl::setOption): Guard against
72         missing IPV6_MULTICAST_IF.
73         Fixes PR libgcj/3694.
75 2001-07-31  Christian Iseli  <chris@ludwig-alpha.unil.ch>
77         * Makefile.in: Rebuilt.
78         * Makefile.am (GCJLINK): Added --tag=GCJ.
79         (LIBLINK): Likewise.
81 2001-07-29  Mark Wielaard  <mark@klomp.org>
83         * HACKING: New documentation file.
85 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
87         * gnu/gcj/runtime/natFirstThread.cc (_JNI_OnLoad): New function.
88         (JNI_OnLoad): Use it.
89         (gnu::gcj::runtime::FirstThread::run): Check for _JNI_OnLoad, not
90         NULL.
92 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
94         * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
95         Makefile.in: Regenerate.
97 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
99         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
100         2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
101         back to old RFC 2133 variants if missing.
103 2001-07-18  Tom Tromey  <tromey@redhat.com>
105         * java/io/natFileWin32.cc (_access): Renamed.
106         (_stat): Likewise.
107         * java/io/natFile.cc (_access): Renamed.
108         (_stat): Likewise.
109         * java/io/File.java (access, stat): Add leading `_' to name.
110         Updated all callers.
112 2001-07-18  Martin Kahlert  <martin.kahlert@infineon.com>
114         * java/lang/natClass.cc: Move calls of _Jv_InitClass from
115         java::lang::Class::isAssignableFrom and java::lang::Class::isInstance
116         into _Jv_IsAssignableFrom
118 2001-07-18  Tom Tromey  <tromey@redhat.com>
120         For PR java/2812:
121         * libgcj.spec.in (*lib): Added LIBICONV.
122         * Makefile.am (GCJLINK): Added ICONV_LDFLAGS.
123         (LIBLINK): Likewise.
124         * configure: Rebuilt.
125         * configure.in: Call AM_ICONV.  Don't check for iconv function.
126         * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.  Then
127         modified to generate ICONV_LDFLAGS.
129 2001-07-05  Tom Tromey  <tromey@redhat.com>
131         For PR java/3562:
132         * java/lang/Class.h (Class(void)): Now private.  Removed
133         implementation.  From dmorsberger@sensysdl.com.
135 2001-07-02  Tom Tromey  <tromey@redhat.com>
137         Fix for PR bootstrap/3281:
138         * aclocal.m4, configure: Rebuilt.
139         * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
140         Correctly compute libgcj_basedir.
141         (mkinstalldirs): Define and subst.
143 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
145         * configure.in (test for eh model): Fixed typo.
146         * configure: Rebuilt.
147         
148 20010617 Release Manager
150         * GCC 3.0 Released.
152 2001-06-13  Tom Tromey  <tromey@redhat.com>
154         * configure.host: Don't use -fno-use-divide-subroutine on x86.
156 2001-06-12  Tom Tromey  <tromey@redhat.com>
158         * aclocal.m4, configure: Rebuilt.
159         * acinclude.m4: Find configure.host in srcdir.
161 2001-06-10  Alexandre Petit-Bianco  <apbianco@redhat.com>
163         * exception.cc (cstdlib): Replaces stdlib.h.
164         (_Jv_Throw): Use std::abort().
165         (PERSONALITY_FUNCTION): Likewise.
167 2001-06-08  Tom Tromey  <tromey@redhat.com>
169         * configure: Rebuilt.
170         * configure.in: Compute new aux dir using `pwd'.
172 2001-06-07  Tom Tromey  <tromey@redhat.com>
174         For PR bootstrap/3075:
175         * configure, aclocal.m4, Makefile.am: Rebuilt.
176         * configure.in: Pass `--with-auxdir' to subdir configure.  Don't
177         call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM.  Look for unwind.h
178         relative to libgcj_basedir.
179         * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
180         AC_CANONICAL_SYSTEM here.
181         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
182         libgcj_basedir.
183         ($(extra_headers)): New target.
185 2001-05-31  Martin Kahlert  <martin.kahlert@infineon.com>
186             Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
188         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
189         table index is within allowed bounds. Ensure that we dont try to access
190         class itable at a negative offset. Avoid an ancestor table lookup if
191         source is a primitive type class.
192         (isInstance): Remove redundant isPrimitive() check.
194 2001-05-31  Jeff Sturm  <jsturm@one-point.com>
196         * natFile.cc (get_entry): Removed functions.
197         (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
198         Allocate enough storage for d_name if using readdir_r.
200 2001-05-30  Tom Tromey  <tromey@redhat.com>
202         * Makefile.in: Rebuilt.
203         * Makefile.am: Removed erroneous patch.
205 2001-05-29  Tom Tromey  <tromey@redhat.com>
207         * Makefile.in: Rebuilt.
208         * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
210 2001-05-29  Andrew Haley  <aph@redhat.com>
212         * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
213         pointer: the dwarf unwinder in libgcc will do everything that's
214         needed.
215         (HANDLE_DIVIDE_OVERFLOW): Tidy.  Don't mess with stack frames any
216         more than we absolutely need to.
217         * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
218         * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
219         Alpha.
220         (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
221         "$libgcj_sjlj".
222         * configure: Rebuilt.
223         * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
224         for Alpha.
225         (SIGNAL_HANDLER): Use siginfo style handler.
226         (INIT_SEGV): Likewise.
227         (INIT_FPE): Likewise.
228         * include/ppc-signal.h: Delete whole file.
230 2001-05-23  Jeff Sturm  <jsturm@one-point.com>
232         * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
233         (_Jv_bind): New static function.
234         (bind): Use _Jv_bind.
235         * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
236         (_Jv_bind, _Jv_connect): New static functions.
237         (bind): Use _Jv_bind.
238         (connect): Use _Jv_connect.
240 2001-05-23  Joseph S. Myers  <jsm28@cam.ac.uk>
242         * gij.cc (version): Update copyright year.
244 2001-05-22  Anthony Green  <green@redhat.com>
246         * configure: Rebuilt.
247         * configure.in: Tweak canadian cross test, and don't redefine GCJ
248         for cross builds.
250 2001-05-21  Andrew Haley  <aph@cambridge.redhat.com>
252         * configure.host (EXCEPTIONSPEC): Revert broken patch that removed
253         sjlj on Alpha.
255 2001-05-21  Andrew Haley  <aph@cambridge.redhat.com>
257         * include/dwarf2-signal.h: Correct copyright date.
259 2001-05-18  Andrew Haley  <aph@cambridge.redhat.com>
261         * include/dwarf2-signal.h: New file.    
262         * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
263         * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
264         * configure: Rebuilt.
266 2001-05-19  Bryce McKinlay  <bryce@albatross.co.nz>
268         * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
269         * gcj/javaprims.h: ... here.
270         * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
272 2001-05-19  Zack Weinberg  <zackw@stanford.edu>
274         * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
275         * Makefile.in: Regenerate (by hand).
276         * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
277         * doc/cni.sgml: Document #pragma GCC java_exceptions.
279         * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
280         * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
281         (_Jv_ThreadDestroyData): Use _Jv_Free.
282         * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
283         Use _Jv_Malloc.
285 2001-05-18  Alexandre Petit-Bianco  <apbianco@redhat.com>
287         * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
288         (_Jv_MutexInit): Likewise.
290 2001-05-17  Martin Kahlert  <martin.kahlert@infineon.com>
292         * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
293         with length of ioffset table.
294         (_Jv_IsAssignableFrom): Likewise.
296 2001-05-17  Per Bothner  <per@bothner.com>
298         * Makefile.am (ZIP):  The "fastjar" binary is now plain "jar".
300 2001-05-14  Andrew Haley  <aph@cambridge.redhat.com>
302         * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
303         * configure.host (EXCEPTIONSPEC): New.
304         * configure.in (EXCEPTIONSPEC): New.
305         * configure: Rebuilt.
307 2001-05-12  Richard Henderson  <rth@redhat.com>
309         EH merge from mainline:
311         2001-05-11  Richard Henderson  <rth@redhat.com>
312         * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
313         * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
315         2001-05-11  Richard Henderson  <rth@redhat.com>
316         * exception.cc: Include unwind-pe.h.  Remove all pointer
317         encoding logic.
319         2001-04-02  Richard Henderson  <rth@redhat.com>
320         * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
321         the same tree as gcc.
322         * configure: Rebuilt.
324         * exception.cc (_Jv_Throw): Clarify commentary.
326         2001-03-28  Richard Henderson  <rth@redhat.com>
327         * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
328         (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
329         Remove EXCEPTIONSPEC.
330         * configure.host (libgcj_sjlj): Remove.
331         * configure.in (EXCEPTIONSPEC): Remove.
332         (enable-sjlj-exceptions): Detect if not specified.
333         (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
334         what header we're looking for.
335         * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
336         * Makefile.in, configure: Regenerate.
337         * exception.cc: Don't declare libgcc2 stuff.
338         (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
339         (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
340         (win32_get_restart_frame): Remove.
341         (struct java_exception_header): New.
342         (__gcj_exception_class): New.
343         (get_exception_header_from_ue): New.
344         (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
345         (size_of_encoded_value, read_encoded_value): New.
346         (read_uleb128, read_sleb128, parse_lsda_header): New.
347         (get_ttype_entry, __gcj_personality_sj0): New.
348         * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
350 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
352         * gcj/javaprims.h: Rebuild CNI namespace.
354 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
356         * java/lang/Class.h (_Jv_Self): New union type.
357         (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
358         Jeff Sturm and Fergus Henderson.
360 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
362         Fix PR libgcj/2237:
363         * java/io/ObjectStreamClass.java (setClass): Calculate
364         serialVersionUID for local class and compare it against the UID
365         from the Object Stream. Throw InvalidClassException upon mismatch.
366         (setUID): Renamed to...
367         (getClassUID): this. Return the calculated class UID rather than
368         setting uid field directly.
369         (getDefinedSUID): Removed.
370         * java/io/ObjectInputStream.java (resolveClass): Use the
371         three-argument Class.forName().
372         * java/io/InvalidClassException.java (toString): Don't include
373         classname in result if it is null.
375 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
377         * java/lang/Class.h (forName): Add initialize parameter. Fixes
378         declaration to comply with JDK spec.
379         * java/lang/natClass.cc (forName): Correct declaration of the three-arg
380         variant. Honour "initialize" flag.
381         * java/lang/Class.java: Fix forName() declaration.
382         * java/lang/ClassLoader.java (getParent): Now final.
383         (findSystemClass): Now final.
384         (getSystemResourceAsStream): Remove redundant "final" modifier.
385         (getSystemResource): Remove redundant "final" modifier.
386         (getResources): Now final.
387         (getSystemClassLoader): Now non-native.
388         * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
389         arguments for Class.forName().
390         * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
391         (instance): Static initialize singleton.
392         (findClass): Override this, not findSystemClass.
393         * java/lang/natClassLoader.cc (findClass): Renamed from
394         findSystemClass. Call the interpreter via URLClassLoader.findClass if
395         loading class via dlopen fails.
397 2001-05-03  Martin Kahlert  <martin.kahlert@infineon.com>
399         * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
400         checking.
401         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
403 2001-05-02  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
405         * doc/*.texi: Remove generated documentation.
407 2001-04-30  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
409         * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
410         (performDelete): Fix #endif placement.
412 2001-04-27  Tom Tromey  <tromey@redhat.com>
414         * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
415         checking.
416         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
418 2001-04-27  Martin Kahlert  <martin.kahlert@infineon.com>
420         * include/jni.h (struct JNINativeInterface): Fixed types in
421         Get/Set*ArrayRegion declarations.
422         (class _Jv_JNIEnv): Likewise.
424 2001-04-26  Alexandre Oliva  <aoliva@redhat.com>
426         * configure.in: Obtain THREADS with `gcc -v'.
427         * configure: Rebuilt.
429 2001-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
431         * java/net/natInetAddress.cc (java::net::InetAddress::aton):
432         Wrap use of inet_pton in HAVE_INET6.
434 2001-04-24  Alexandre Oliva  <aoliva@redhat.com>
436         * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
437         for libtool tests.  Pre-create gnu/classpath/Configuration.java.
438         * configure: Rebuilt.
440 2001-04-20  Warren Levy  <warrenl@redhat.com>
442         * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
443         * java/text/SimpleDateFormat.java
444         (indexInArray): Removed private method.
445         (processYear): Removed private method.
446         (parseLenient): Removed private method.
447         (parseLeadingZeros): Removed private method.
448         (parseStrict): Removed private method.
449         (expect): Added new private method.
450         (parse): Reverted to pre-Classpath merge version with minor fixes.
451         * java/util/natGregorianCalendar.cc (computeTime): Handle strict
452         calendars.
454 2001-04-18  Warren Levy  <warrenl@redhat.com>
456         * java/util/TimeZone.java: Sync up with Classpath.  Includes new
457         and corrected SimpleTimeZone's for the timezones hash table.
459 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
461         * java/io/File.java (normalizePath): New private method.
462         (File (String)): Use normalizePath().
463         (File (String, String)): Likewise.
465         * Makefile.am (libffi_files): Removed.
466         (libgcj.la): Link libffi as a convenience library instead of
467         refering to its object files directly.
468         * Makefile.in: Rebuilt.
470 2001-04-08  Per Bothner  <per@bothner.com>
472         * java/lang/natString.cc (_Jv_NewStringUtf8Const):  Register finalizer.
473         Recalculate hash, since Utf8Const's hash is only 16 bits.
475         * java/lang/natString.cc (_Jv_StringFindSlot, rehash):  Use high-order
476         bits of hash to calculate step for chaining.
478         * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const):  Rehash
479         when 2/3 full, rather than 3/4 full.
481 2001-04-06  Tom Tromey  <tromey@redhat.com>
483         * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
484         (wrap_value<T*>): New specialization.
485         (_Jv_JNI_PopLocalFrame): Update env->locals.
487 2001-04-05  Tom Tromey  <tromey@redhat.com>
489         * libtool-version: Updated current.
491 2001-04-04  Andreas Jaeger  <aj@suse.de>
493         * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
494         * gcj/Makefile.in: Rebuilt.
495         * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
496         * Makefile.in: Rebuilt.
497         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
498         * testsuite/Makefile.in: Rebuild.
499         * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
500         * include/Makefile.in: Rebuild.
502 2001-04-02 Zack Weinberg <zackw@stanford.edu>
504         * testsuite/lib/libjava.exp: Correct typo: 'output from source
505         compiled test', not 'execution from source compiled test'.
506         Use UNTESTED, not XFAIL, for tests which are not run because
507         they depend on a previous test which failed.
509 2001-04-02  Marcus G. Daniels  <mgd@swarm.org>
511         * jni.cc (wrap_value<jclass>): New specialization.
513 2001-04-02  Tom Tromey  <tromey@redhat.com>
515         * java/io/PrintStream.java (out): Removed field.  Fixes PR
516         java/2449.
517         (write): Call flush, not out.flush, per spec.
518         (close): Flush output stream, per spec.  Handle
519         InterruptedIOException.
520         (checkError): Likewise.
521         (flush, print, write): Handle InterruptedIOException per spec.
522         (PrintStream): Don't create BufferedOutputStream.
523         (work_bytes): New field.
524         (writeChars): Use work_bytes.  Don't assume `out' is a
525         BufferedOutputStream.
527 2001-04-02  Torsten Rueger  <torsten.rueger@firsthop.com>
529         * java/text/MessageFormat.java (setLocale): Added missing `else'.
530         For PR libgcj/2429.
532 2001-03-30  Tom Tromey  <tromey@redhat.com>
534         * jni.cc (add_char): Correctly encode non-ascii characters.
535         (add_char): Define even when INTERPRETER not defined.
536         (mangled_name): Likewise.
537         (_Jv_GetJNIEnvNewFrame): Likewise.
538         (_Jv_LookupJNIMethod): Likewise.
540 2001-04-02  Bryce McKinlay  <bryce@albatross.co.nz>
542         * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
543         to "file.separator", "path.separator", and "java.io.tmpdir" property
544         initialization.
545         * java/io/File.java: Likewise.
546         * java/io/natFile.cc (init_native): Likewise.
547         * java/io/natFileWin32.cc (init_native): Likewise.
549 2001-04-01  Per Bothner  <per@bothner.com>
551         * java/lang/natString.cc (intern):  If string's data does not point to
552         this String, make a fresh String that does.
554         * java/lang/natString.cc (unintern):  Replace by static function.
555         * java/lang/String.java (unintern):  Remove method.
557 2001-04-01  Per Bothner  <per@bothner.com>
559         * DeflaterOutputStream.java (deflate):  Loop while def.needsInput.
560         (finish):  def.deflate needs to be called in a loop.
561         (inbuf, inbufLength):  New private fields.
562         (write(int)): Use inbuf.
563         (write(byte[],int,int):  Check if pending output in inbuf.
564         * ZipOutputStream.java:  Don't use Deflater if stored.
565         Use a Checksum object directly, not via a CheckedOutputStream.
566         (uncompressed_size):  New field,
567         (closeEntry):  Only write data_directory if needed.
568         (write):  If STORED, write directly.
569         Always update crc, and uncompressed_size.
570         (write_entry):  Fix lots of protocol erors.
572 2001-04-01  Bryce McKinlay  <bryce@albatross.co.nz>
574         1.3-Compliant Implementation of java.io.File.
575         * java/lang/natSystem.cc (init_properties): Get "file.separator",
576         "path.separator", and "java.io.tmpdir" from the File class, instead
577         of setting them explicitly.
578         * java/io/File.java: Do not canonicalize paths for security manager
579         checks. Call init_native() from static initializer. Do not pass path
580         argument to native methods. New native method declarations. Some
581         security manager checks moved to checkWrite().
582         (equals): Check file system case sensitivity and act appropriatly.
583         (hashCode): Likewise.
584         (isHidden): New method implemented.
585         (performList): Changed prototype. Now takes a class argument specifying
586         the class of the returned array: Strings or File objects. Also added
587         FileFilter argument.
588         (listFiles): New variants with "File" return type implemented.
589         (createTempFile): Use createNewFile(). Use maxPathLen.
590         (setReadOnly): New method implemented.
591         (listRoots): Likewise.
592         (compareTo): Likewise.
593         (setLastModified): Likewise.
594         (checkWrite): New method.
595         (setPath): Removed.
596         * java/io/natFile.cc: Various functions no longer take canonical path
597         argument.
598         (stat): Handle ISHIDDEN query.
599         (isAbsolute): Remove WIN32 cruft.
600         (performList): New arguments. Handle returning either File[] or String[]
601         arrays. Check with FileFilter or FilenameFilter arguments as
602         appropriate. Use an ArrayList, not a Vector, for the temporary list.
603         (performSetReadOnly): New method implemented.
604         (performListRoots): Likewise.
605         (performSetLastModified): Likewise.
606         (performCreate): Likewise.
607         (init_native): New initialization function.
608         * java/io/natFileWin32.cc: Various functions no longer take canonical
609         path argument.
610         (stat): Add FIXME about ISHIDDEN query.
611         (performList): New arguments. Handle returning either File[] or String[]
612         arrays. Check with FileFilter or FilenameFilter arguments as
613         appropriate. Use an ArrayList, not a Vector, for the temporary list.
614         (performSetReadOnly): New. Stubbed.
615         (performListRoots): Likewise.
616         (performSetLastModified): Likewise.
617         (performCreate): Likewise.
618         (init_native) New initialization function.
619         * configure.in: Check for utime() and chmod().
620         * configure: Rebuilt.
621         * include/config.h.in: Rebuilt.
623 2001-03-27  Joerg Brunsmann  <joerg_brunsmann@yahoo.de>
625         * javax/naming/InitialContext.java (init): Fix typo.
626         (composeName): Remove unnecessary semicolon.
627         (addToEnvironment): Remove unnecessary semicolon.
628         (addToEnvironment): Use put() instead of add().
630         * javax/naming/InitialContext.java (InitialContext):
631         Make public.
632         (destroySubcontext): Method doesn't return a result.
633         * javax/naming/Context.java: Import java.util.Hashtable.
634         * javax/naming/Name.java: Import java.util.Enumeration.
636 2001-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
638         * Makefile.am (libffi_files): Use $(shell) wrapper instead of back
639         quotes.
640         (libgcj.la): Echo the list of object files one at a time, using a
641         for loop.
642         (libgcjx.la): Likewise.
643         * Makefile.in: Rebuilt.
645 2001-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
647         * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
648         objects in subdirectories.
649         * Makefile.in: Rebuilt.
651 2001-03-24  Bryce McKinlay  <bryce@albatross.co.nz>
653         * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
654         paramater, bump it to 1.
655         * java/util/Hashtable.java (Hashtable): Likewise.
657 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
659         * configure.host: Enable interpreter for PPC.
661 2001-03-23  Per Bothner  <per@bothner.com>
663         * java/lang/natDouble.cc (parseDouble):  Cannot use errno to
664         check for errors, since we don't want to throw exception on
665         overflow/underflow.  Instead, trim whitespace, and then check that
666         _strtod_r uses up all the rest of the string.
668         * java/lang/natClass.cc (_Jv_IsAssignableFrom):  Checking the
669         ancestors array is invalid for interfaces, so do that *after*
670         check that the target type is not an interface.
672 2000-03-23  Jeff Sturm  <jsturm@one-point.com>
674         * prims.cc (_Jv_FindClassFromSignature): Check return of
675         recursive call.  Do not abort on invalid signature; return NULL
676         instead.
678 2001-03-22  Tom Tromey  <tromey@redhat.com>
680         * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
681         * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
682         unconditionally.
683         * include/jvm.h (_Jv_ResolveField): Declare.
684         * include/java-interp.h (_Jv_ResolveField): Don't declare.
685         * resolve.cc (_Jv_ResolveField): No longer conditional on
686         INTERPRETER.
688 2001-03-23  Bryce McKinlay  <bryce@albatross.co.nz>
690         Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
691         for libtool hacking.
692         * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
693         to a temporary file, then invoke libtool with the -objectlist
694         paramater.
695         (libgcjx.la): Likewise.
696         * Makefile.in: Rebuilt.
698 2001-03-22  Joerg Brunsmann  <joerg_brunsmann@yahoo.de>
700         * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
702 2001-03-22  Marcus G. Daniels  <mgd@swarm.org>
704         * jni.cc (add_char): Handle `.' like `/'.
706 2001-03-22  Bryce McKinlay  <bryce@albatross.co.nz>
708         * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
709         initialize if exception_types is null.
710         * java/lang/reflect/Constructor.java: Likewise.
711         * java/lang/reflect/natConstructor.cc (getType): Initialize
712         exception_types to an empty Object array.
714 2001-03-21  Tom Tromey  <tromey@redhat.com>
716         * configure: Rebuilt.
717         * configure.in (GCJFLAGS): Subst.
718         * Makefile.in: Rebuilt.
719         * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
720         (gij_LDFLAGS): Likewise.
721         (JC1FLAGS): Added GCJFLAGS and removed -g.
723         * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
724         read/write case.  Fixes PR libgcj/2338.
726 2001-03-19  Per Bothner  <per@bothner.com>
728         * java/net/URLStreamHandler.java (parseURL):  Fix bug which would
729         "canonicalize" "../../xxx" to "/xxx".
731 2001-03-17  Tom Tromey  <tromey@redhat.com>
733         * java/lang/natString.cc (rehash): Don't bother with memset;
734         _Jv_AllocBytes returns zero'd memory.  Use _Jv_AllocBytesChecked.
735         Use UNMASK_PTR.
736         (UNMASK_PTR): New macro.
737         (intern): Unmask pointer before returning it.  Register finalizer
738         for the string.
739         (unintern): Handle case where
740         (MASK_PTR): New macro.
741         (PTR_MAKSED): Likewise.
742         (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
744 2001-03-01  Andrew Haley  <aph@redhat.com>
746         * java/lang/natThrowable.cc (printRawStackTrace): Copy the
747         stackTrace buffer to a correctly aligned pointer array.
749 2001-03-12  Bryce McKinlay  <bryce@albatross.co.nz>
751         * java/lang/Runtime.java (_exit): Declare new package-private native.
752         * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
753         without a security manager check.
754         (exit): Call _exit.
755         * java/lang/System.java (setSecurityManager): If a security manager
756         is already in place, call checkPermission.
757         * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
758         throws an exception, try to deal with it gracefully.
759         * prims.cc (JvRunMain): Call Runtime._exit to shutdown
760         the runtime.
761         * java/lang/ExceptionInInitializerError.java (printStackTrace):
762         Only try to print the subordinate stack trace if "exception" is set.
763         Print our class name first.
765 2001-03-08  Tom Tromey  <tromey@redhat.com>
767         * java/io/ObjectStreamClass.java (setUID): Don't write interface
768         info for array classes.
769         Fixes PR libgcj/1971.
771 2001-03-06  Bryce McKinlay  <bryce@albatross.co.nz>
773         * java/util/TreeSet.java (writeObject): Use a for-loop instead of
774         Iterator.hasNext().
776 2001-03-05  Jochen Hoenicke  <jochen@gnu.org>
778         * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
779         instead of the new JDK1.2 API.  This is simpler and makes
780         back-porting the classes to JDK1.1 trivial.
781         (readObject): likewise.
783 2001-03-01  Per Bothner  <per@bothner.com>
785         Changes merged from Kawa's gnu.math.
786         * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
787         (rshift(int[],int[],int,int):  Removed - not needed.
788         (gcd):  Use rshift0 rather than rshift.
789         * java/math/BigInteger.java (setShiftRight):  Likewise.
790         (divide):  Simplify by using rshift0.
791         (divide):  Zero-extend results if high-order bit set.
793 2001-02-23  Per Bothner  <per@bothner.com>
795         Change to sometimes include class name in ClassFormatError message.
796         * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
797         _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)):  Return
798         boolean instead of throwing ClassFormatError on failure.
799         (throw_class_format_error):  Change static function to method.
800         (_Jv_ClassReader):  New inline methods verify_identifier,
801         two overloads of verify_classname, verify_field_signature, and
802         verify_method_signature
803         * include/java-interp.h:  Update declarations to return bool.
804         * java/lang/natClassLoader.cc (defineClass0):  Explicitly throw
805         ClassFormatError since _Jv_VerifyClassName now returns bool.
807 2001-02-23  Per Bothner  <per@bothner.com>
809         * java/lang/Throwable.java (CPlusPlusDemangler):  Pass -s java to
810         c++filt to select java-style output.
812 2001-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
814         * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
815         linking.
817 2001-02-22  Bryce McKinlay  <bryce@albatross.co.nz>
819         Fix for PR java/2040:
820         * java/util/HashMap.java (HashMap): Don't throw exception for
821         loadFactor > 1. Add exception messages.
822         * java/util/Hashtable.java (Hashtable): Likewise.
824 2001-02-21  Bryce McKinlay  <bryce@albatross.co.nz>
826         Disable libgcjx by default.
827         * configure.in: Add support for --enable-java-awt configure option.
828         Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
829         * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
830         * Makefile.in: Rebuilt.
831         * configure: Rebuilt.
833 2001-02-20  Tom Tromey  <tromey@redhat.com>
835         * java/io/PipedWriter.java (flush): Throw exception if stream
836         closed.
837         * java/io/OutputStreamWriter.java (write): Throw exception if
838         stream closed.
839         (writeChars): Don't throw exception if stream closed.
840         * java/io/CharArrayWriter.java (closed): New field.
841         (close): Set it.
842         (flush): Throw exception if stream closed.
843         (reset): Synchronize on correct lock.  Allow stream to be
844         reopened.
845         (toCharArray, toString, writeTo): Synchronize.
846         (write): Throwe exception if stream closed.
847         * java/io/BufferedWriter.java (close): Clear `buffer'.
848         (flush): Throw IOException if stream is closed.
849         (write): Likewise.
851 2001-02-16  Tom Tromey  <tromey@cygnus.com>
853         * java/lang/ThreadGroup.java (activeCount): Only include threads
854         which are alive.
855         (enumerate): Likewise.
857 2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
859         * java/lang/Integer.java (getInteger): Return default argument if
860         property is not set. Don't call decode with null argument.
861         * java/lang/Long.java (getLong): Likewise.
863         * java/io/CharArrayReader.java (CharArrayReader): Throw
864         IllegalArgumentException if constructor arguments are illegal.
865         (ready): Return false if no more characters can be read.
866         * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
868 2001-02-16  Bryce McKinlay  <bryce@albatross.co.nz>
870         * java/util/TreeSet.java (clone): Made subclass safe, use
871         super.clone(), not new.
872         * java/util/TreeMap.java (clone): Likewise.
874         * java/util/TreeMap.java (nil): Made non-final.
875         (clone): Create new nil node for copy.
877         * java/util/HashSet.java (clone): Made subclass safe, use
878         super.clone(), not new.
880 2001-02-15  Anthony Green  <green@redhat.com>
882         * defineclass.cc: Don't include alloca.h.
883         (prepare_pool_entry): Convert alloca to __builtin_alloca.
884         * interpret.cc (run_normal): Ditto.
885         (continue1): Ditto.
886         * java/lang/natDouble.cc (parseDouble): Ditto.
888 2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
890         * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
891         Object.clone().
892         * java/util/Collections.java (ReverseComparator): New static class.
893         (reverseOrder): Return static instance of ReverseComparator.
895         * java/util/HashSet.java (clone): Remove try/catch.
897         * java/util/AbstractSequentialList.java: Synchronize with Classpath.
898         * java/util/Collection.java: Likewise.
899         * java/util/Comparator.java: Likewise.
900         * java/util/Dictionary.java: Likewise.
901         * java/util/Iterator.java: Likewise.
902         * java/util/ListIterator.java: Likewise.
903         * java/util/Map.java: Likewise.
904         * java/util/Set.java: Likewise.
906 2001-02-14  Bryce McKinlay  <bryce@albatross.co.nz>
908         * java/util/TreeMap.java: New file.
909         * java/util/TreeSet.java: New file.
910         * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
911         * Makefile.in: Rebuilt.
912         * java/util/HashSet.java (clone): Use constructor instead of calling
913         clone on itself.
914         * java/util/SortedSet.java: Sync with classpath.
915         * java/util/HashMap.java (hash): Use if statement instead of ternary,
916         for clarity.
918         * java/lang/natClass.cc (getSignature): Don't try to dereference
919         param_types if it is null. Instead, take this to mean "no parameters".
920         * java/lang/TreeMap.java (TreeIterator.next): Throw
921         NoSuchElementException in preference to ConcurrentModificationException.
922         (TreeIterator.remove): Throw IllegalStateException in preference to
923         ConcurrentModificationException.
924         (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
925         throw a NoSuchElementException.
926         (SubMap.lastKey): Likewise.
928 2001-02-13  Tom Tromey  <tromey@redhat.com>
930         * java/io/PipedReader.java (ready): Throw IOException if pipe
931         closed.
932         * java/io/FilterReader.java (close): Don't clear `in'.
933         * java/io/CharArrayReader.java (mark): Throw IOException if stream
934         closed.
935         (read, ready, reset, skip): Added exception message.
936         * java/io/BufferedReader.java (mark, reset, ready, read, skip):
937         Perform checkStatus check inside synchronized block.
939 2001-02-13  Tom Tromey  <tromey@redhat.com>
941         Fix for PR libgcj/1351:
942         * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
943         interrupted.
944         Include Thread.h and InterruptedIOException.h.
946 2001-02-13  Bryce McKinlay  <bryce@albatross.co.nz>
948         * java/io/BlockDataException.java: Removed.
949         * java/io/ObjectInputStream.java (readObject): Throw
950         StreamCorruptedException, not BlockDataException.
951         * Makefile.am: Remove BlockDataException.
952         * Makefile.in: Rebuild.
954 2001-02-12  Jeff Sturm  <jeff.sturm@commerceone.com>
955             Tom Tromey  <tromey@redhat.com>
957         * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
958         null pointer check.
960 2001-02-15  Zack Weinberg  <zackw@stanford.edu>
962         * include/i386-signal.h: Adjust comment to match previous change.
964 2001-02-14  Andrew Haley  <aph@redhat.com>
966         * include/i386-signal.h (INIT_SEGV): Use a direct system call to
967         set the handler.
969 2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
971         * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
972         * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
973         Rectangle.clone(), not Object.clone().
975 2001-02-13  Tom Tromey  <tromey@redhat.com>
977         * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
979 2001-02-09  Tom Tromey  <tromey@redhat.com>
981         * java/util/Timer.java: New version from Classpath.
983 2001-02-09  Bryce McKinlay  <bryce@albatross.co.nz>
985         * java/lang/Double.java (doubleToRawLongBits): Now native.
986         * java/lang/Float.java (floatToRawIntBits): Likewise.
987         * java/lang/natDouble.cc (doubleToRawLongBits): New method.
988         * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
990 2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>
992         * java/io/File.java (java.net): Imported.
993         (getAbsoluteFile): Added.
994         (getCanonicalPath): Likewise.
995         (toURL): Likewise.
997 2001-02-08  Bryce McKinlay  <bryce@albatross.co.nz>
999         * java/lang/Byte.java: Remove redundant instanceof and null checks.
1000         * java/lang/Integer.java: Likewise.
1001         * java/lang/Long.java: Likewise.
1002         * java/lang/Short.java: Likewise.
1003         * java/lang/Double.java: Likewise.
1004         (doubleToRawLongBits): New method.
1005         * java/lang/Float.java: As above.
1006         (floatToRawIntBits): New method.
1008         * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1009         IOException if stream closed.
1011 2001-02-08  Tom Tromey  <tromey@redhat.com>
1013         * java/lang/Float.java (parseFloat): New method.
1015 2001-02-08  Tom Tromey  <tromey@redhat.com>
1017         From paul@dawa.demon.co.uk.  Fix for PR libgcj/1913:
1018         * java/io/InputStreamReader.java (ready, read): Throw IOException
1019         if stream has been closed.
1021 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
1023         * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1024         Change sources.redhat.com and sourceware.cygnus.com references to
1025         gcc.gnu.org.
1027 2001-02-07  Tom Tromey  <tromey@redhat.com>
1029         Fix for PR libgcj/1906:
1030         * java/text/MessageFormat.java (setLocale): Use named class
1031         literals.
1032         (forName): Removed.
1033         (format(Object,StringBuffer,FieldPosition)): Special case if
1034         argument is an Object[].
1036 2001-02-07  Bryce McKinlay  <bryce@albatross.co.nz>
1038         * java/util/Arrays.java: Removed "cmp" methods.
1039         (qsort): Don't use "cmp".
1040         (med3): Likewise.
1042 2001-02-07  Mark Benvenuto  <mcb54@columbia.edu>
1044         * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1045         sort. Fix for PR java/1895.
1047 2001-02-03  Jeff Sturm  <jeff.sturm@commerceone.com>
1049         * configure.host: Use sjlj-exceptions for Alpha.
1051 2001-02-03  Bryce McKinlay  <bryce@albatross.co.nz>
1053         * libgcj.spec.in: Don't force static libgcc into the executable.
1054         * configure.in (FORCELIBGCCSPEC): Removed.
1055         * configure: Rebuilt.
1057 2001-01-31  Tom Tromey  <tromey@redhat.com>
1059         * Makefile.in: Rebuilt.
1060         * Makefile.am (LTCXXCOMPILE): New macro.
1062 2001-01-26  Andrew Haley  <aph@redhat.com>
1064         (INIT_FPE): Use a direct system call to set the handler.
1066 2001-01-27  Richard Henderson  <rth@redhat.com>
1068         * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1070 2001-01-27  Tom Tromey  <tromey@redhat.com>
1072         * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1073         native interface structure.
1075 2001-01-27  Bryce McKinlay  <bryce@albatross.co.nz>
1077         * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1078         result unsigned.
1079         (read (byte[], int, int)): Only call readNextBlock() if the block
1080         buffer would actually be overrun. Increment blockDataPosition.
1081         (callReadMethod): Propagate exceptions from invocation target.
1082         * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1083         exceptions from invocation target.
1085 2001-01-26  Tom Tromey  <tromey@redhat.com>
1087         * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1088         to internal representation.
1089         (_Jv_JNI_GetAnyFieldID): Likewise.  Also, only use
1090         _Jv_FindClassFromSignature.
1092 2001-01-26  Warren Levy  <warrenl@redhat.com>
1094         * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1095         and timezone if they are available on the system.
1097 2001-01-24  Tom Tromey  <tromey@redhat.com>
1099         * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1101 2001-01-24  Tom Tromey  <tromey@redhat.com>
1103         * Makefile.in: Rebuilt.
1104         * Makefile.am (c_source_files): Added sf_fabs.c.
1105         * java/lang/sf_fabs.c: New file.
1107 2001-01-19  Warren Levy  <warrenl@redhat.com>
1109         * java/text/SimpleDateFormat.java (format): Compute hour for cases
1110         HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1111         correctly.  Adjust properly from 0-23 clock hour.
1113 2001-01-17  Mark Wielaard  <mark@klomp.org>
1115         * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1117 2001-01-17  Bryce McKinlay  <bryce@albatross.co.nz>
1119         * java/lang/Class.h (isInterface): Move implementation from
1120         natClass.cc. Declare inline.
1121         (Class): Add default constructor.
1122         * java/lang/Object.h: Update comments.
1123         * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1124         initialize superclass, saving a call if super is already initialized.
1126 2001-01-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1128         * prims.cc (init_prim_class): Deleted.
1129         (DECLARE_PRIM_TYPE): Rewritten.
1130         * java/lang/Class.h (stdio.h): Include removed.
1131         (stddef.h): Included.
1132         (java/lang/reflect/Modifier.h): Likewise.
1133         (Class): Contructor now takes arguments, initializes fields.
1134         (initializePrim): Prototype deleted.
1135         * java/lang/natClass.cc (initializePrim): Deleted.
1137 2001-01-16  Warren Levy  <warrenl@redhat.com>
1139         * java/math/BigInteger.java: Update Copyright year.
1141 2001-01-16  Hans Boehm  <hans_boehm@hp.com>
1143         * java/math/BigInteger.java (setShiftRight): Only do negative shift
1144         if count != 0.
1146 2001-01-14  Mark Wielaard  <mark@klomp.org>
1147         * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1148         (decode): Merge comments with Classpath, don't throw Exception
1150 2001-01-12  Tom Tromey  <tromey@redhat.com>
1152         * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1153         Wrote.
1154         (setCursor): Wrote.
1155         Include Cursor.h.
1156         * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1157         * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1158         * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1159         * gnu/awt/gtk/GtkLabelPeer.java: New file.
1160         * gnu/awt/gtk/GtkButtonPeer.java: New file.
1162         * java/lang/natSystem.cc: Include locale.h if it exists.
1163         * configure: Rebuilt.
1164         * configure.in: Check for locale.h.
1166 2001-01-11  Tom Tromey  <tromey@redhat.com>
1168         * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1169         (Cursor(int), getPredefinedCursor): Throw exception if argument
1170         invalid.
1172 2001-01-03  Tom Tromey  <tromey@redhat.com>
1174         * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1175         (getLocationOnScreen): Wrote.
1177 2001-01-11  Bryce McKinlay  <bryce@albatross.co.nz>
1179         * Makefile.am: Re-enable dependencies.
1180         * Makefile.in: Rebuilt.
1182 2001-01-10  Warren Levy  <warrenl@redhat.com>
1184         * java/math/BigDecimal.java (divide): Fixed comment.
1186 2001-01-10  Warren Levy  <warrenl@redhat.com>
1188         Fix for PR libgcj/1596:
1189         * java/math/BigDecimal.java (divide): Check newScale for validity.
1190         Ensure that BigInteger.pow() is called with a non-negative value.
1191         (setScale (int)): New public method.
1192         (setScale (int,int)): New public method.
1194 2001-01-09  Oskar Liljeblad <osk@hem.passagen.se>
1196         Fix for PR libgcj/1338:
1197         * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1198         commentChar.  Fixed typos in comments.
1200 2001-01-08  Warren Levy  <warrenl@redhat.com>
1202         Fix for PR libgcj/1411:
1203         * Makefile.am: Removed java/util/natTimeZone.cc.
1204         * Makefile.in: Rebuilt.
1205         * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1206         missing localized timezone names.
1207         * java/lang/System.java (getDefaultTimeZoneId): New private method.
1208         * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1209         (init_properties): Set user.timezone property.
1210         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1211         default timezone names; removed non-standard ones.  Use standard
1212         ID names per JCL.
1213         * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1214         (UTC): Ditto.
1215         * java/util/TimeZone.java: Add standard ID names per JCL; removed
1216         non-standard ones.
1217         (getDefaultTimeZoneId): Removed.
1218         (zoneGMT): Removed.
1219         * java/util/natTimeZone.cc: Removed.
1221 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
1223         * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1224         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1225         (_Jv_GetArrayClass): New inline function.
1226         (arrayclass): New field.
1227         * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1228         _Jv_GetArrayElementFromElementType.
1229         (_Jv_NewPrimArray): Ditto.
1230         (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1231         "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1232         Set Modifier::ABSTRACT.
1233         * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1234         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1235         Now synchronized. Array classes are now referenced from
1236         elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1237         Set array classes' accessibility flags correctly. Optimize so that
1238         all array classes share the same IDT.
1239         * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1240         * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1241         * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1242         in superclasses from overwriting classes own fields.
1243         (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1244         Modifier::isAbstract().
1245         (null_idt): New static field.
1246         (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1247         no interfaces.
1248         (_Jv_IndexOf): Made inline.
1249         * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1251 2001-01-08  Tom Tromey  <tromey@redhat.com>
1253         Fix for PR java/1586:
1254         * Makefile.in: Rebuilt.
1255         * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1257 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
1259         * Makefile.am: Use the new "-M -MF" option for generating dependencies
1260         from the c++ compiler.
1261         * Makefile.in: Rebuilt.
1263 2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1265         All files with updated copyright.
1266         * prims.cc (class _Jv_PrimClass): Removed.
1267         (init_prim_class): New function.
1268         (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1269         `_Jv_PrimClass' in primitive type declarations. Assign to the
1270         value returned by `init_prim_class.'
1271         * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1272         primitive type declarations.
1273         (JvPrimClass): Cast to `jclass' removed.
1274         * java/lang/Class.h (Class): New constructor.
1275         (Class): New copy constructor.
1276         (initializePrim): New prototype.
1277         (_Jv_PrimClass): Field removed.
1278         * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1279         nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1280         (class java::lang::Object): `finalize' moved up front.
1281         * java/lang/natClass.cc
1282         (isAssignableFrom): Turned outline.
1283         (isInstance): Likewise.
1284         (isInterface): Likewise, fixed indentation.
1285         (initializePrim): New function.
1287 2001-01-07  Anthony Green  <green@redhat.com>
1289         * Makefile.am (texinfo): Add texinfo target for generating texinfo
1290         documentation.
1291         * Makefile.in: Rebuilt.
1293         * scripts/TexinfoDoclet.java: New file.
1295         * doc/java-applet.texi, doc/java-lang-reflect.texi,
1296         doc/java-awt-color.texi, doc/java-lang.texi,
1297         doc/java-awt-datatransfer.texi, doc/java-math.texi,
1298         doc/java-awt-event.texi, doc/java-net.texi,
1299         doc/java-awt-geom.texi, doc/java-security-spec.texi,
1300         doc/java-awt-image.texi, doc/java-security.texi,
1301         doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1302         doc/java-text.texi, doc/java-beans-beancontext.texi,
1303         doc/java-util-jar.texi, doc/java-beans.texi,
1304         doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1305         doc/java-lang-ref.texi: New files.
1307 2001-01-07  Anthony Green  <green@redhat.com>
1309         * java/net/URLConnection.java (setDoOutput): URLConnection's may
1310         be used for both input and output, so don't clear doInput.
1312         * java/lang/StringBuffer.java: Fix comments.
1314 2001-01-06  Anthony Green  <green@redhat.com>
1316         * java/beans/PropertyDescriptor.java: Fix comment.
1317         * java/io/PushbackReader.java: Fix comment.
1318         * java/io/ObjectStreamClass.java: Fix comment.
1319         * java/io/DataInputStream.java: Fix comment.
1320         * java/io/PipedInputStream.java: Fix comments.
1321         * java/io/PipedReader.java: Fix comments.
1322         * java/sql/DatabaseMetaData.java: Fix comments.
1324 2001-01-06  Bryce McKinlay  <bryce@albatross.co.nz>
1326         * java/io/PipedReader: Synchronize on "lock" instead of this.
1328 2001-01-05  Bryce McKinlay  <bryce@albatross.co.nz>
1330         * java/lang/Thread.java: Update comment.
1332         * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1333         * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1334         * java/io/PipedReader: New implementation based on new
1335         PipedInputStream.
1336         * java/io/PipedWriter: Updated to match new PipedReader.
1338 2001-01-03  Tom Tromey  <tromey@redhat.com>
1340         * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1341         (getViewportSize): Insets include scrollbar size.
1342         (doLayout): Finished.
1343         (getScrollPosition): Wrote.
1344         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1346 2001-01-02  Tom Tromey  <tromey@redhat.com>
1348         * java/awt/ScrollPane.java: Wrote.
1349         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1350         method.
1352         * java/awt/Panel.java (Panel()): Fixed.
1354         * java/awt/Component.java (isShowing): Return false if no peer
1355         exists, and true if component is visible and no parent exists.
1356         (getLocationOnScreen): Wrote.
1357         (getPreferredSize): Removed FIXME comment.
1358         (getMinimumSize): Likewise.
1359         (getAlignmentX, getAlignmentY): Wrote.
1360         (list): Wrote.
1361         (requestFocus): Wrote.
1362         (transferFocus): Wrote.
1363         (findNextFocusComponent): New method.
1364         (hasFocus()): Wrote.
1365         (checkImage): Wrote.
1366         (enableEvents): Call setEventMask on the peer.
1368         * java/awt/Container.java (list): Use super.list() to print self.
1369         (findNextFocusComponent): New method.
1370         (setLayout): Call invalidate.
1371         (findComponentAt): Wrote.
1373 2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>
1375         * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1376         the correct versions of various linuxthreads functions get linked.
1377         * Makefile.in: Rebuilt.
1378         * java/lang/natThread.cc (finalize_native): New static function. Call
1379         _Jv_ThreadDestroyData.
1380         (initialize_native): Register finalizer for "data".
1381         * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1382         (_Jv_ThreadDestroyData): New prototype.
1383         * include/win32-threads.h: Ditto.
1384         * include/no-threads.h: Ditto.
1385         * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1386         (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1387         move mutex and condition variable destroy code from:
1388         (really_start): ...here.
1389         (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1390         * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1391         (_Jv_ThreadDestroyData): Implemented.
1392         * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1393         (_Jv_AllocArray): Ditto.
1395 2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>
1397         * java/sql/DriverManager.java (getConnection): Don't set user/password
1398         properties if null.
1400 2000-12-27  Warren Levy  <warrenl@redhat.com>
1402         Fix for PR libgcj/1358:
1403         * java/lang/System.java: Update Copyright date properly.
1404         * java/util/Calendar.java: Fix typo in comment.
1405         (set): Set 24-hour clock hour instead of 12-hour clock hour.
1406         * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1407         initialize times.  Spec says to set H:M:S values to zero only if
1408         a date is given.
1409         * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1410         needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1411         * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1412         timezones and GMT offsets, being careful to account for units of
1413         milliseconds vs. seconds.
1415 2000-12-28  Bryce McKinlay  <bryce@albatross.co.nz>
1417         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1418         not be assigned to Object.
1420         Fix for PR libgcj/1516:
1421         * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1422         Add boolean entry.
1423         (can_widen): Declared inline. Remove redundant checks for void
1424         arguments and char->short conversion. Add special case for boolean
1425         conversions.
1426         (ffi_type): Declared inline.
1427         (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1429 2000-12-26  Petter Reinholdtsen  <pere@hungry.com>
1431         * java/sql/SQLWarning.java: Fixed typo in comment.
1433 2000-12-26  Tom Tromey  <tromey@redhat.com>
1435         * java/awt/MenuItem.java (paramString): Now protected.
1437         * java/awt/MenuShortcut.java: Implements Serializable.
1439         * java/awt/MenuBar.java: Rewrote from scratch.
1441         * java/awt/MenuComponent.java (removeNotify): Wrote.
1442         Implements Serializable.
1444         * java/awt/GridBagConstraints.java (GridBagConstraints): New
1445         constructor.
1447         * java/awt/CheckboxMenuItem.java: Wrote.
1449 2000-12-25  Tom Tromey  <tromey@redhat.com>
1451         * java/awt/MenuContainer.java: Fixed typo.
1453         * Makefile.in: Rebuilt.
1454         * Makefile.am (awt_java_source_files): Added SystemColor.java.
1455         * java/awt/SystemColor.java: New file.
1457         * java/awt/Color.java (rgba): Now package-private.
1459         * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1461         * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1462         getComponent.
1464         * java/awt/MenuItem.java (addNotify): New method.
1465         (MenuItem(String,MenuShortcut)): New constructor.
1466         (setLabel): Notify peer of change.
1467         (setEnabled): Likewise.
1469         * java/awt/GridLayout.java (toString): New method.
1471         * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1472         (FlowLayout): Check for LEADING and TRAILING.
1473         (setAlignment): Likewise.
1474         (layoutContainer): Handle component orientation.
1476         * java/awt/Component.java (orientatin): New field.
1477         (setComponentOrientation): Wrote.
1478         (getComponentOrientation): Wrote.
1480         * java/awt/Event.java (Event): Implements Serializable.
1481         (consumed): New field for serialization.
1482         * java/awt/Dimension.java (Dimension): Implements Serializable.
1483         * java/awt/Cursor.java (Cursor): Implements Serializable.
1484         * java/awt/Container.java (Container): No longer abstract.
1486         * java/awt/Choice.java: Wrote.
1487         * java/awt/Checkbox.java: Wrote.
1488         * java/awt/ItemSelectable.java: Documented.
1489         * java/awt/CheckboxGroup.java: Wrote.
1491         * java/awt/CardLayout.java (layoutContainer): Directly use fields
1492         in other classes.
1493         (getSize): Likewise.
1495 2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>
1497         * java/io/FileDescriptor.java: Initialize fd to -1.
1498         Remove default constructor.
1500 2000-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1502         * java/lang/mprec.h: Change C9X reference to refer to C99.
1504 2000-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
1506         * java/lang/Throwable.java (trace_enabled): New static field.
1507         * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1508         trace_enabled not set.
1509         * prims.cc (main_init): Turn off trace_enabled while creating
1510         default exception objects.
1512 2000-12-21  Tom Tromey  <tromey@redhat.com>
1514         * java/beans/PropertyChangeListener.java: Extends EventListener.
1515         * java/beans/VetoableChangeListener.java: Extends EventListener.
1517         * java/util/zip/Deflater.java (update, init): Now private.
1519 2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
1521         * java/util/BasicMapEntry.java: Re-added.
1522         * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1523         (putAll): Test for BasicMapEntry.
1524         * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1525         (putAll): Test for BasicMapEntry.
1526         Change references from `HashMap.Entry' to `Entry' in various places.
1527         * Makefile.am: Add BasicMapEntry.java.
1528         * Makefile.in: Rebuilt.
1530 2000-12-18  Warren Levy  <warrenl@redhat.com>
1532         * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1533         need to set timezone to a valid non-null value.  Partial fix for
1534         PR 331.
1536 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
1538         * java/awt/Window.java (addNotify): Remove peer casting hack now that
1539         gcj/312 is fixed.
1540         * java/awt/Button.java (addNotify): Likewise.
1541         * java/awt/Label.java (addNotify): Likewise.
1542         * java/awt/Panel.java (addNotify): Likewise.
1543         * java/awt/Scrollbar.java (addNotify): Likewise.
1544         * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1545         Remove redundant null checks.
1547 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1549         * COPYING: Update to current
1550         ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1551         to 19yy as example year in copyright notice).
1553 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
1555         * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
1556         end-of-stream if avail_in is 0.
1558 2000-12-17  Bryce McKinlay  <bryce@albatross.co.nz>
1560         * java/util/ArrayList.java (data): Declare transient.
1561         (serialPersistantFields): Removed.
1562         (readObject): Use defaultReadObject(), not readFields().
1563         (writeObject): Use defaultWriteObject(), not writeFields().
1565 2000-12-17  Jeff Sturm  <jeff.sturm@commerceone.com>
1567         * java/util/Hashtable.java (put): Remove `last' variable.
1568         Link new entry to head of list.
1569         * java/util/HashMap.java (put): Ditto.
1571 2000-12-15  Tom Tromey  <tromey@redhat.com>
1573         * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1574         loader to Class.forName.
1576 2000-12-14  Tom Tromey  <tromey@redhat.com>
1578         * java/util/ResourceBundle.java
1579         (getBundle(String,Locale,ClassLoader)): New method.
1580         (trySomeGetBundle): Added `loader' argument.
1581         (partialGetBundle): Likewise.
1583         * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1584         maximumFractionDigits, maximumIntegerDigits,
1585         minimumFractionDigits, minimumIntegerDigits): Now
1586         package-private.
1588         * java/lang/Thread.java (checkAccess): Now final.
1590         * java/lang/RuntimePermission.java: Class now final.
1592         * java/io/StringWriter.java (StringWriter(int)): Now public.
1594         * java/io/SerializablePermission.java (legal_names): Now private.
1596         * java/lang/Character.java: Updated UnicodeBlock constants.
1597         * scripts/blocks.pl: Special case private use and surrogate
1598         areas.  Updated URL.
1600 2000-12-12  Tom Tromey  <tromey@redhat.com>
1602         * Makefile.in: Rebuilt.
1603         * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1604         option.
1605         (GCJCOMPILE): Use it.
1606         (JAVAC): Likewise.
1608 2000-12-11  Tom Tromey  <tromey@redhat.com>
1610         * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1611         New static final fields.
1613         * scripts/classes.pl (scan): Skip lines with leading `*'.
1614         Fix for PR libgcj/378.
1616 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
1618         * configure.in: Remove check for -fuse-divide-subroutine.
1619         * configure: Rebuilt.
1621         * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1623         * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1625 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
1627         * Makefile.am: Add HashSet.java and java/lang/ref classes.
1628         Remove BasicMapEntry.java and Bucket.java.
1629         * Makefile.in: Rebuilt.
1630         * java/util/HashMap.java: Rewritten.
1631         * java/util/HashSet.java: Imported from classpath.
1632         * java/util/WeakHashMap.java: Imported from classpath.
1633         * java/util/Hashtable.java: Rewritten based on new HashMap code.
1634         * java/util/Bucket.java: Deleted.
1635         * java/util/BasicMapEntry.java: Deleted.
1636         * java/util/Collections.java (search): Use a for-loop, not iterator
1637         hasNext().
1638         (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
1639         of elements in source.
1640         (max): Use a for-loop.
1641         (min): Ditto.
1642         (reverse): Keep track of positions instead of using Iterator's
1643         nextIndex() and previousIndex().
1644         (shuffle(List)): Initialize defaultRandom if required using
1645         double-check thread safety idiom. Call two-argument shuffle method
1646         using defaultRandom.
1647         (defaultRandom): New field.
1648         (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1649         using previousIndex() and nextIndex().
1650         (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1651         * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1652         * java/util/AbstractMap.java (toString): Use StringBuffer.
1653         * java/lang/ref/PhantomReference.java: Imported from classpath.
1654         * java/lang/ref/SoftReference.java: Ditto.
1655         * java/lang/ref/Reference.java: Ditto.
1656         * java/lang/ref/WeakReference.java: Ditto.
1657         * java/lang/ref/ReferenceQueue.java: Ditto.
1659 2000-12-10  Richard Henderson <rth@redhat.com>
1661         * configure.host: Recognize alpha*-*, not alphaev6-*.
1663 2000-12-09  Anthony Green  <green@redhat.com>
1665         * configure.host: Enable interpreter for Alpha.
1667 2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1669         * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1670         (ZIP): Points at fastjar instead of zip.
1671         (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1672         (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1673         (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1674         (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1675         ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1676         ($(x_java_source_files:.java=.class):): Likewise.
1677         (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1678         fastar's flags.
1679         (CLEANFILES): libgcj.jar replaces libgcj.zip.
1680         (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1681         (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1682         java/lang/String.h:, java/lang/reflect/Constructor.h:,
1683         java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1684         gnu/gcj/runtime/VMClassLoader.h:,
1685         java/io/ObjectInputStream$$GetField.h:,
1686         java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1687         (Makefile.in): Rebuilt.
1689 2000-12-08  Tom Tromey  <tromey@redhat.com>
1691         From Phil Edwards:
1692         * configure: Rebuilt.
1693         * configure.in: Use echo, not `:', to create .d files.
1695 2000-12-08  Warren Levy  <warrenl@redhat.com>
1697         * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1698         NullPointerException so proper check of offset can be done.
1700 2000-12-08  Warren Levy  <warrenl@redhat.com>
1702         * java/io/FileInputStream.java (close): Check if the fd is valid.
1703         * java/io/RandomAccessFile.java (close): Ditto.
1704         * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1705         * java/net/PlainSocketImpl.java (close): Ditto.
1707 2000-12-06  Tom Tromey  <tromey@redhat.com>
1709         * java/awt/GridBagConstraints.java: Filled in values for static
1710         final fields.
1712         * java/util/BitSet.java: Updated copyright notice.
1714         * Makefile.in: Rebuilt.
1715         * Makefile.am (awt_java_source_files): Added new file.
1716         * java/awt/GridBagConstraints.java: New file.
1718 2000-12-05  Tom Tromey  <tromey@redhat.com>
1720         * java/text/Collator.java (decomposeCharacter, decmp, strength):
1721         Now package-private, not protected.
1722         * java/text/DateFormatSymbols.java (equals): Now private.
1723         * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1724         * java/util/BitSet.java: Class no longer final.
1726 2000-12-04  Warren Levy  <warrenl@redhat.com>
1728         * java/util/TimeZone.java (getAvailableIDs): Activated commented
1729         out code dependent on compiler and library changes.
1731 2000-12-04  Warren Levy  <warrenl@redhat.com>
1733         * java/io/FilePermission.java: Made class final per spec.
1734         * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1735         method name to match spec (fixed typo).
1736         * java/util/LinkedList.java: Implements List.
1738 2000-12-04  Bryce McKinlay  <bryce@albatross.co.nz>
1740         * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
1741         Edgar Villanueva <edgarvil@home.com>.
1743 2000-12-03  Tom Tromey  <tromey@redhat.com>
1745         * java/awt/geom/Point2D.java: Added protected constructor.
1746         (equals): New method.
1747         (Float.setLocation(float,float)): New method.
1748         * java/awt/geom/Dimension2D.java: Added protected constructor.
1749         * java/awt/geom/AffineTransform.java: Made all constants public.
1750         (concatenate): Fixed typo in name.
1751         * java/awt/event/WindowAdapter.java: Class now abstract.
1752         * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1753         * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1754         AWTEvent.
1756         * java/awt/AWTError.java: Extend Error, not
1757         IllegalStateException.
1759         * Makefile.in: Rebuilt.
1760         * Makefile.am (awt_java_source_files): Added new file.
1761         * java/awt/geom/RoundRectangle2D.java: New file.
1763         * Makefile.in: Rebuilt.
1764         * Makefile.am (awt_java_source_files): Added new file.
1765         * java/awt/FlowLayout.java: New file.
1767         * Makefile.in: Rebuilt.
1768         * Makefile.am (awt_java_source_files): Added new file.
1769         * java/awt/GridLayout.java: New file.
1771 2000-12-02  Tom Tromey  <tromey@redhat.com>
1773         * Makefile.in: Rebuilt.
1774         * Makefile.am (awt_java_source_files): Added new files.
1775         * java/awt/CardLayout.java: New file.
1776         * java/awt/AWTPermission.java: New file.
1778 2000-12-01  Tom Tromey  <tromey@redhat.com>
1780         * java/util/Vector.java (insertElementAt): Unconditionally
1781         increment elementCount.
1782         (removeRange): Clear unused slots in vector.
1784 2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
1786         * java/lang/natMath.cc: Declare fabsf() function.
1787         * java/lang/mprec.h: Don't include math.h.
1788         * java/lang/dtoa.c: Include string.h.
1789         * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1790         compiler warning.
1792         From Adam Welc <welc@cs.purdue.edu>:
1793         * java/util/LinkedList.java (removeFirst): Update `first' field.
1794         Handle the last == first case.
1795         (removeLast): Update `last' field. Handle the last == first case.
1797 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1799         * Makefile.am: Added entries for new java.sql modules.
1800         * Makefile.in: Rebuilt.
1802 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1804         * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1805         that aren't quite 1.2 compatible yet.
1807 2000-11-30  Warren Levy  <warrenl@cygnus.com>
1809         * java/sql/Array.java: New file from classpath.
1810         * java/sql/BatchUpdateException.java: Ditto.
1811         * java/sql/Blob.java: Ditto.
1812         * java/sql/Clob.java: Ditto.
1813         * java/sql/Ref.java: Ditto.
1814         * java/sql/SQLData.java: Ditto.
1815         * java/sql/SQLInput.java: Ditto.
1816         * java/sql/SQLOutput.java: Ditto.
1817         * java/sql/Struct.java: Ditto.
1818         * java/sql/CallableStatement.java: Merged file from claspath.
1819         * java/sql/Connection.java: Ditto.
1820         * java/sql/DataTruncation.java: Ditto.
1821         * java/sql/DatabaseMetaData.java: Ditto.
1822         * java/sql/DriverManager.java: Ditto.
1823         * java/sql/PreparedStatement.java: Ditto.
1824         * java/sql/ResultSet.java: Ditto.
1825         * java/sql/ResultSetMetaData.java: Ditto.
1826         * java/sql/SQLException.java: Ditto.
1827         * java/sql/SQLWarning.java: Ditto.
1828         * java/sql/Statement.java: Ditto.
1829         * java/sql/Types.java: Ditto.
1831 2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>
1833         * java/lang/natSystem.cc (init_properties): Set user.language and
1834         user.region.
1835         * configure.in: Check for setlocale.
1836         * configure: Rebuilt.
1837         * include/config.h.in: Rebuilt.
1839         * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1840         the infate() call didn't deliver any output. Throw a ZipException if
1841         the needsDictionary() call returns true.
1842         * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1843         * java/io/InputStreamReader: Use the default buffer size for the
1844         contained BufferedInputStream.
1846 2000-11-28  Warren Levy  <warrenl@cygnus.com>
1848         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1849         more time zone entries.
1850         * java/text/SimpleDateFormat.java (format): Added case for
1851         TIMEZONE_FIELD.
1853 2000-11-28  Bryce McKinlay  <bryce@albatross.co.nz>
1855         * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1856         directly rather than read() in all cases. Make primitive read
1857         implementations more efficient, as defined in JDK online docs.
1858         (skipBytes): Behave like the JDK's implementation.
1859         * java/io/BufferedReader.java: Merge classpath docs. Check for a
1860         closed stream with checkStatus() whenever an IOException can be
1861         thrown.
1862         (checkStatus): New private method.
1864 2000-11-27  Warren Levy  <warrenl@cygnus.com>
1866         * Makefile.am: Added natTimeZone.cc.
1867         * Makefile.in: Rebuilt.
1868         * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1869         * java/text/DateFormatSymbols.java (ampms): Made package private.
1870         (eras): Made package private.
1871         (months): Made package private.
1872         (shortMonths): Made package private.
1873         (shortWeekdays): Made package private.
1874         (weekdays): Made package private.
1875         (formatPrefixes): New private field.
1876         (localPatternCharsDefault): Made private.
1877         (dateFormats): New package private field.
1878         (timeFormats): New package private field.
1879         (formatsForKey): New private method.
1880         (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1881         (DateFormatSymbols(DateFormatSymbols)): Ditto.
1882         * java/text/SimpleDateFormat.java: Merged with Classpath.
1883         * java/util/TimeZone.java: Merged with Classpath.
1884         * java/util/natTimeZone.cc: New file.
1886 2000-11-27  Bryce McKinlay  <bryce@albatross.co.nz>
1888         * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1889         (addElement): Don't increment elementCount twice. Doh.
1890         * java/util/ArrayList.java (add): Only call ensureCapacity if the
1891         array needs to be expanded.
1892         (addAll): Ditto.
1893         * java/util/Collections.java (UnmodifiableCollection): Implement
1894         toString().
1895         (UnmodifiableList): Throw UnsupportedOperationException from
1896         modification methods. Set `l' from the one-parameter constructor.
1897         (UnmodifiableMap): Implement toString().
1898         (SynchronizedCollection): Ditto.
1899         (SynchronizedList): Set `l' from the one-parameter constructor.
1900         (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1901         (SynchronizedMap): Implement toString().
1903 Sun Nov 26 23:59:55 2000  Anthony Green  <green@redhat.com>
1905         * javax/naming/NameParser.java,
1906         javax/naming/directory/AttributeInUseException.java,
1907         javax/naming/directory/AttributeModificationException.java,
1908         javax/naming/directory/InvalidAttributeIdentifierException.java,
1909         javax/naming/directory/InvalidAttributesException.java,
1910         javax/naming/directory/InvalidAttributeValueException.java,
1911         javax/naming/directory/InvalidSearchControlsException.java,
1912         javax/naming/directory/InvalidSearchFilterException.java,
1913         javax/naming/directory/NoSuchAttributeException.java,
1914         javax/naming/directory/SchemaViolationException.java: New files.
1916 Sun Nov 26 22:35:53 2000  Anthony Green  <green@redhat.com>
1918         * javax/naming/InitialContext.java (rebind): Implement.
1919         (unbind): Implement.
1920         (rename): Implement.
1921         (list): Implement.
1922         (listBindings): Implement.
1923         (destroySubcontext): Implement.
1924         (createSubcontext): Implement.
1925         (lookupLink): Implement.
1926         (getNameParser): Implement.
1927         (composeName): Implement.
1928         (addToEnvironment): Implement.
1930 Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
1932         * javax/naming/AuthenticationException.java,
1933         javax/naming/AuthenticationNotSupportedException.java,
1934         javax/naming/CannotProceedException.java,
1935         javax/naming/CommunicationException.java,
1936         javax/naming/ConfigurationException.java,
1937         javax/naming/ContextNotEmptyException.java,
1938         javax/naming/InsufficientResourcesException.java,
1939         javax/naming/InterruptedNamingException.java,
1940         javax/naming/InvalidNameException.java,
1941         javax/naming/LimitExceededException.java,
1942         javax/naming/LinkException.java,
1943         javax/naming/LinkLoopException.java,
1944         javax/naming/MalformedLinkException.java,
1945         javax/naming/NameAlreadyBoundException.java,
1946         javax/naming/NameNotFoundException.java,
1947         javax/naming/NamingSecurityException.java,
1948         javax/naming/NoPermissionException.java,
1949         javax/naming/NotContextException.java,
1950         javax/naming/PartialResultException.java,
1951         javax/naming/ReferralException.java,
1952         javax/naming/ServiceUnavailableException.java,
1953         javax/naming/SizeLimitExceededException.java,
1954         javax/naming/TimeLimitExceededException.java: New files.
1956         * javax/naming/Name.java (clone): New method.
1957         (compareTo): New method.
1958         (isEmpty): New method.
1959         (getAll): New method.
1960         (getPrefix): New method.
1961         (getSuffix): New method.
1962         (startsWith): New method.
1963         (endsWith): New method.
1964         (addAll): New method.
1965         (addAll): New method.
1966         (add): New method.
1967         (add): New method.
1968         (remove): New method.
1970         * javax/naming/Context.java (lookup): New method.
1971         (rebind): New method.
1972         (unbind): New method.
1973         (rename): New method.
1974         (list): New method.
1975         (listBindings): New method.
1976         (destroySubcontext): New method.
1977         (createSubcontext): New method.
1978         (lookupLink): New method.
1979         (getNameParser): New method.
1980         (composeName): New method.
1981         (addToEnvironment): New method.
1982         (removeFromEnvironment): New method.
1983         (getEnvironment): New method.
1984         (close): New method.
1985         (getNameInNamespace): New method.
1987         * javax/naming/InitialContext.java (lookup): New method.
1988         (rebind): New method.
1989         (unbind): New method.
1990         (rename): New method.
1991         (list): New method.
1992         (listBindings): New method.
1993         (destroySubcontext): New method.
1994         (createSubcontext): New method.
1995         (lookupLink): New method.
1996         (getNameParser): New method.
1997         (composeName): New method.
1998         (addToEnvironment): New method.
1999         (removeFromEnvironment): New method.
2000         (getEnvironment): New method.
2001         (close): New method.
2002         (getNameInNamespace): New method.
2004 2000-11-26  Tom Tromey  <tromey@cygnus.com>
2006         * Makefile.in: Rebuilt.
2007         * Makefile.am (core_java_source_files): Added
2008         RuntimePermission.java.
2009         * java/lang/RuntimePermission.java: Imported from Classpath.
2010         * java/lang/Thread.java (getContextClassLoader): Now
2011         synchronized.  Added security code.
2012         (setContextClassLoader): Likewise.
2014         * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2015         length field of array.
2016         (_Jv_NewPrimArray): Likewise.
2017         * gcj/array.h (__JArray): `length' field now const.  Added
2018         constructor.
2020 2000-11-26  Anthony Green  <green@redhat.com>
2022         * javax/naming/spi/NamingManager.java,
2023         javax/naming/spi/ObjectFactory.java,
2024         javax/naming/spi/InitialContextFactory.java,
2025         javax/naming/spi/InitialContextFactoryBuilder.java,
2026         javax/naming/RefAddr.java, javax/naming/Reference.java,
2027         javax/naming/NamingException.java, javax/naming/Context.java,
2028         javax/naming/Referenceable.java,
2029         javax/naming/directory/InitialDirContext.java,
2030         javax/naming/directory/DirContext.java,
2031         javax/naming/directory/Attributes.java,
2032         javax/naming/directory/Attribute.java,
2033         javax/naming/StringRefAddr.java,
2034         javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2035         javax/naming/InitialContext.java,
2036         javax/naming/NoInitialContextException.java: New files.
2038 2000-11-25  Anthony Green  <green@redhat.com>
2040         * prims.cc (_Jv_NewObjectArray): Undo placement change.
2041         (_Jv_NewPrimArray): Likewise.
2042         * gcj/array.h (__JArray): Undo const change.  Removed constructor.
2043         (class JArray): Removed constructor.
2045         * java/lang/Thread.java (context_class_loader): New private data.
2046         (getContextClassLoader): New method.
2047         (setContextClassLoader): New method.
2048         (Thread): Initialize context_class_loader.
2050         * java/net/URLClassLoader.java: Import java.util.Enumeration.
2051         (getResource): Rename to findResource.
2052         (findResource): New method.  Used to be getResource.
2053         (getResourceAsStream): Deleted.
2054         (jarFileize): Extracted logic from URLClassLoader constructor into
2055         this new private method.
2056         (addURL): New protected method.
2057         (URLClassLoader): Call jarFileize.  Use addElement instead of
2058         insertElementAt.
2059         (findResources): New method.
2061         * java/lang/ClassLoader.java: Import java.util.Enumeration.
2062         (getResource): Implement correct logic.
2063         (findResource): New method.
2064         (getResources): New method.
2065         (findClass): Create a ClassNotFoundException with the name of the
2066         class rather than nothing at all.
2067         (defineClass) Only throw ClassFormatError.
2069         * java/lang/Class.java (forName): New method.
2070         * java/lang/Class.h (forName): New method.
2071         * java/lang/natClass.cc (forName): New method.
2073 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
2075         * java/lang/System.java (setProperties): Only call init_properties()
2076         if properties is null.
2077         (getProperties): Ditto.
2078         (getProperty): Ditto.
2079         (setProperty): Call init_properties if properties are null.
2080         (prop_init): Remove field.
2081         * java/lang/natSystem.cc (init_properties): Synchronize the entire
2082         method. Check for null properties after synchronizing instead of
2083         prop_init flag. Set the properties field last for thread safety.
2085         * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2086         test for gcj.dumpobjects property and enable object stream dumping
2087         if it is set.
2088         (dumpElement): No longer native.
2089         (dumpElementln): Ditto.
2090         (setDump): Do not define.
2091         * java/io/natObjectInputStream.cc (dumpElement): Removed.
2092         (dumpElementln): Removed.
2093         (setDump): Removed.
2095 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
2097         * configure: Rebuilt.
2098         * Makefile.in: Rebuilt.
2099         * Makefile.am (built_java_source_files): Add Configuration.java.
2100         * configure.in: Add Configuration.java to CONFIG_FILES. Set
2101         LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2102         Create `gnu' directory in the build tree.
2103         * gnu/classpath/Configuration.java.in: New file.
2105 2000-11-24  Tom Tromey  <tromey@cygnus.com>
2107         * prims.cc (_Jv_NewObjectArray): Use placement new to create
2108         array.
2109         (_Jv_NewPrimArray): Likewise.
2110         Include <new>.
2111         * gcj/array.h (__JArray): `length' field now const.  Added
2112         constructor.
2113         (class JArray): Added constructor.
2115 2000-11-23  Mark Wielaard  <mark@klomp.org>
2117         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2118         lookup.
2120 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
2122         * java/util/Vector.java: Improve exception messages.
2123         (Vector): Check initialCapacity for IllegalArgumentException.
2124         (tromToSize): Don't check for elementCount == elementData.length
2125         case.
2126         (toArray): Don't try to set null marker if target array is the same
2127         length as the vector.
2129 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
2131         * Makefile.in: Rebuilt.
2132         * Makefile.am (core_java_source_files): Added Collections.java.
2133         * java/util/List.java: Merged from classpath.
2134         * java/util/Vector.java: Ditto.
2135         * java/util/Collections.java: From classpath.
2136         * java/util/ArrayList.java (addAll(Collection)): Call
2137         addAll(int,Collection) instead of duplicating code.
2138         (indexOf): Clean up int initialization.
2139         (clear): Set cleared array entries to null, to allow garbage
2140         collection.
2141         * java/util/List.java: Minor formatting fixes.
2142         * java/util/SimpleTimeZone.java: ditto.
2144 2000-11-18  Tom Tromey  <tromey@cygnus.com>
2146         * Makefile.in: Rebuilt.
2147         * Makefile.am (core_java_source_files): Added new files.
2148         * java/lang/reflect/ReflectPermission.java: New class.
2149         * java/io/FileFilter.java: From Classpath
2150         * java/io/FilePermission.java: From Classpath.
2152 2000-11-17  Tom Tromey  <tromey@cygnus.com>
2154         * java/lang/reflect/AccessibleObject.java (isAccessible,
2155         setAccessible): Now public.
2157         * java/lang/natString.cc: Include Locale.h.
2158         (toUpperCase): Added `locale' argument.  Handle locale
2159         sensitivity.
2160         (toLowerCase): Added `locale' argument.  Handle locale
2161         sensitivity.
2162         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2163         CAPITAL_I): New defines.
2164         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2165         final.
2166         Import Locale.
2167         (toUpperCase, toLowerCase): New methods.  Variants which accept
2168         locale now native.
2170         * java/lang/ExceptionInInitializerError.java (printStackTrace):
2171         New methods.
2173         * java/util/PropertyPermission.java: Re-merged from Classpath.
2175         * java/text/RuleBasedCollator.java (getCollationElementIterator):
2176         New method.
2177         * java/text/StringCharacterIterator.java: Reindented.
2178         (setText): New method.
2180 2000-11-17  Mark Wielaard  <mark@klomp.org>
2182         Merge with Classpath (changes by Bryce McKinlay)
2183         * java/util/jar/*.java: Reformat all to unofficial standard coding
2184         style. No changes of substance.
2186 2000-11-17  Mark Wielaard  <mark@klomp.org>
2188         * java/util/zip/*.java: Javadoc updates.
2190 2000-11-17  Tom Tromey  <tromey@cygnus.com>
2192         * java/text/CollationKey.java: Implement Comparable.
2193         (compareTo(Object)): New method.
2194         * java/text/Collator.java (compare(Object,Object)): New method.
2195         Implement Comparator.
2197         * java/util/zip/InflaterInputStream.java (available): New method.
2198         (close): New method.
2199         (read, available, skip, fill): Throw exception if stream closed.
2200         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2201         getNextEntry): Throw exception if closed.
2203 2000-11-16  Tom Tromey  <tromey@cygnus.com>
2205         * java/io/PushbackReader.java: Merged with Classpath.
2206         * java/util/Arrays.java: Updated from Classpath.
2208         * scripts/blocks.pl: New file.
2209         * java/lang/Character.java (Subset): New class.
2210         (UnicodeBlock): New class.
2212         * java/lang/Math.java (toDegrees, toRadians): New methods.
2214         * java/lang/Float.java: Implement Comparable.
2215         (compareTo): New methods.
2216         * java/lang/Double.java: Implement Comparable.
2217         (compareTo): New methods.
2219 2000-11-16  Warren Levy  <warrenl@cygnus.com>
2221         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2222         transient.
2223         (listeners): Made transient.
2224         (source): Renamed from 'bean'.
2225         (children): New field for serialization.
2226         (propertyChangeSupportSerializedDataVersion): Ditto.
2227         (serialVersionUID): Ditto.
2228         (writeObject): New serialization method.
2229         (readObject): New serialization method.
2230         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2231         transient.
2232         (listeners): Made transient.
2233         (source): Renamed from 'bean'.
2234         (children): New field for serialization.
2235         (vetoableChangeSupportSerializedDataVersion): Ditto.
2236         (serialVersionUID): Ditto.
2237         (writeObject): New serialization method.
2238         (readObject): New serialization method.
2239         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2240         to allow constructor to have a return type (i.e. the class that the
2241         constructor constructs).
2243 2000-11-14  Tom Tromey  <tromey@cygnus.com>
2245         * Makefile.in: Rebuilt.
2246         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2247         and -k not given.
2249 2000-11-02  Warren Levy  <warrenl@cygnus.com>
2251         * java/io/ObjectInputStream.java (readObject): Added code to
2252         conditionally dump out the serialized data.
2253         Handle ENDBLOCKDATA case a bit more gracefully since the current
2254         behavior doesn't seem to work as expected.
2255         (readStreamHeader): Added code for serialized data dumper.
2256         (readNextBlock): Ditto.
2257         (readFields): Ditto.
2258         (dump): New private static field for turning on/off dumper.
2259         (setDump): New native method.
2260         (dumpElement): New native method.
2261         (dumpElementln): New native method.
2262         * java/io/natObjectInputStream.cc (setDump): New method.
2263         (dumpElement): New method.
2264         (dumpElementln): New method.
2266 2000-11-02  Warren Levy  <warrenl@cygnus.com>
2268         * java/net/InetAddress.java (addr): Renamed from 'address'.
2269         (address): New field to match Serialized Form doc.
2270         (hostName): Renamed from 'hostname' to match Serialized Form doc.
2271         (family): New serialization field.
2272         (serialVersionUID): New field.
2273         (readObject): New method.
2274         (writeObject): New method.
2275         (getFamily): New native method.
2276         (InetAddress): Set family.
2277         * java/net/natInetAddress.cc (getFamily): New method.
2278         (addr): Renamed from 'address'.
2279         (hostName): Renamed from 'hostname' to match Serialized Form doc.
2280         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2281         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2283 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
2285         * java/util/AbstractList.java (SubList): Make it a top-level private
2286         class.
2287         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2288         (add): Ditto.
2289         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2290         * Makefile.in: Rebuilt.
2292 2000-11-02  Tom Tromey  <tromey@cygnus.com>
2294         * Makefile.in: Rebuilt.
2295         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2296         link.
2298 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
2300         * java/util/AbstractList.java (remove): Comment out modCount increment
2301         to work around compiler bug.
2302         (add): Ditto.
2304 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
2306         * java/util/AbstractList.java: Throw messages with
2307         IndexOutOfBoundsExceptions.
2308          (listIterator()): Call listIterator(0).
2309         (size): New field. Initialize to size().
2310         (hasNext): Test position against size, not size().
2311         (remove): Increment knownMod by one instead of resetting it from
2312         modCount.
2313         (add): Ditto.
2314         (SubList.upMod): Removed.
2315         (SubList.set): Don't call upMod() or update knownMod.
2316         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2317         (SubList.remove): Ditto.
2318         (SubList.addAll): Don't call backingList.size(). Increment size from
2319         c.size().
2320         (SubList.iterator): New method. Call listIterator(0).
2321         (SubList.listIterator): New method. Restore code to return an anonymous
2322         listIterator implementation (with some changes).
2323         * java/util/AbstractSequentialList.java: Throw messages with
2324         IndexOutOfBoundsExceptions.
2325         (addAll): Add a specnote.
2326         * java/util/ArrayList.java (removeRange): Get the math right.
2327         (addAll): Increment modCount _before_ creating iterator.
2328         * java/util/LinkedList.java: Rewritten, mostly.
2330 2000-11-01  Tom Tromey  <tromey@cygnus.com>
2332         * scripts/encodings.pl: Added `ASCII' alias.
2333         * Makefile.in: Rebuilt.
2334         * Makefile.am (convert_source_files): Added new files.
2335         * gnu/gcj/convert/Input_ASCII.java: New file.
2336         * gnu/gcj/convert/Output_ASCII.java: New file.
2337         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2338         out-of-range characters.
2339         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2340         (read): Swap bytes if required.  Treat `count' as character count,
2341         not byte count.
2342         (write): Likewise.  Also, handle case where iconv fails on a given
2343         character.
2344         (init): Put encoding into exception.
2345         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2346         (static): Call iconv_init.  Rebuilt alias list.
2347         (iconv_init): New private method.
2349 2000-11-01  Tom Tromey  <tromey@cygnus.com>
2351         * Makefile.in: Rebuilt.
2352         * Makefile.am (install-exec-hook): Only make a single symlink, and
2353         remove the destination before making the link.
2354         * configure: Rebuilt.
2355         * configure.in: Call AC_PROG_LN_S.
2357 2000-10-31  Warren Levy  <warrenl@cygnus.com>
2359         * jni.cc: Added include of java/lang/ThreadGroup.h.
2360         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2361         per change of 2000-10-05.
2363 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
2365         * java/util/BitSet.java: Updated @specnote.
2367         * java/io/Reader.java: Merge docs from classpath.
2368         (skip): Synchronize on `lock'.
2369         * java/io/FileReader.java: Import correct implementation from
2370         classpath.
2371         * java/io/StringReader.java: Merge docs from classpath.
2372         (ready): Throw IOException if stream is closed.
2374 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
2376         * java/util/AbstractCollection.java (addAll): Use size() instead of
2377         hasNext() in iterator loop.
2378         (clear): Ditto.
2379         (contains): Ditto. Simplify loop.
2380         (containsAll): Ditto.
2381         (remove): Ditto.
2382         (removeAll): Ditto.
2383         (retainAll): Ditto.
2384         (toArray): Ditto.
2385         (toString): Ditto. Use string concatenation operators, not
2386         StringBuffer.
2387         * java/util/AbstractList.java (addAll): Use size() instead of
2388         hasNext() in iterator loop.
2389         (equals): Ditto.
2390         (hashCode): Ditto.
2391         (indexOf): Ditto. Don't take null check outside of the loop.
2392         (iterator): Return an AbstractListItr instead of anonymous class.
2393         (lastIndexOf): Use a for loop bounded by size() instead of
2394         hasPrevious() in iterator loop.
2395         (listIterator): Return an AbstractListItr.
2396         (removeRange): Remove bounds checking code and docs.
2397         (AbstractListItr): New inner class. Code moved here from
2398         listIterator().
2399         (SubList.iterator): Removed. Use default implementation from
2400         AbstractList instead.
2401         (SubList.listIterator): As above.
2402         * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2403         instead of hasNext() in iterator loop.
2404         (containsValue): Ditto.
2405         (equals): Ditto.
2406         (get): Ditto.
2407         (put): Ditto.
2408         (putAll): Ditto.
2409         (remove): Ditto.
2410         (toString): Ditto. Use string concatenation operators, not
2411         StringBuffer.
2412         * java/util/AbstractSequentialList.java (addAll): Use a for loop
2413         bounded by size() instead of hasNext() in iterator loop.
2414         * java/util/AbstractSet.java (hashCode): Don't catch exception as
2415         part of normal execution flow. Do an explicit null check instead.
2416         * java/util/ArrayList.java (_iSize): Rename to `size'.
2417         (_arData): Rename to `data'.
2418         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2419         message.
2420         (remove): Ditto.
2421         (removeRange): Make protected. Don't check bounds.
2422         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2423         message.
2424         (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2425         check.
2426         (addAll (int, Collection)): Check lower bounds. Simplify exception
2427         string.
2428         (clone): Clone the data array too.
2429         (indexOf): Inline doesEqual().
2430         (lastIndexOf): Ditto.
2431         (clear): Don't set array data to null.
2432         (set): Check lower bounds. Simplify exception string.
2433         (toArray): Correct comment.
2434         (trimToSize): Don't update modCount, this is not a structural change.
2435         Add comment.
2437         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2438         implemented.
2439         (toString): Declare `bit' as long, not int.
2440         (data): Made package-private, not private.
2442 2000-10-27  Warren Levy  <warrenl@cygnus.com>
2444         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2445         array elements to true.
2447 2000-10-27  Warren Levy  <warrenl@cygnus.com>
2449         * Makefile.am: Added locale files from Classpath.
2450         * Makefile.in: Rebuilt.
2451         * gnu/java/locale/Calendar.java: New file.
2452         * gnu/java/locale/Calendar_de.java: New file.
2453         * gnu/java/locale/Calendar_en.java: New file.
2454         * gnu/java/locale/Calendar_nl.java: New file.
2455         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2456         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2457         serialization compatibility.
2458         (scale): Made private.
2459         (serialVersionUID): New field.
2460         * java/math/BigInteger.java (ival): Made transient.
2461         (words): Made transient.
2462         (bitCount): New serialization field.
2463         (bitLength): Ditto.
2464         (firstNonzeroByteNum): Ditto.
2465         (lowestSetBit): Ditto.
2466         (magnitude): Ditto.
2467         (signum): Ditto.
2468         (serialVersionUID): New field.
2469         (readObject): New method.
2470         (writeObject): New method.
2471         * java/util/BitSet.java (serialVersionUID): New field.
2472         * java/util/Calendar.java: Replaced with Classpath file.
2473         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2474         of getDefault() for TimeZone or Locale instead of passing nulls.
2475         * java/util/Locale.java (serialVersionUID): New field.
2476         (writeObject): New method.
2477         (readObject): New method.
2478         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2480 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
2482         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2483         (core_java_source_files): Put java.lang, java.io, and java.util here.
2484         (ordinary_java_source_files): Order so that core_java_source_files are
2485         built first.
2486         (java_source_files): Reorder so that special_java_source_files are
2487         built first.
2488         * configure.in: Don't pass -I flag to gcj.
2489         * Makefile.in: Rebuilt.
2490         * configure: Rebuilt.
2492 2000-10-25  Tom Tromey  <tromey@cygnus.com>
2494         * Makefile.in: Rebuilt.
2495         * Makefile.am (install-exec-hook): New target.
2497 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
2499         * java/util/EventObject.java: Merged from classpath.
2501         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2502         with stack dump.
2504 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2506         * java/util/AbstractSet.java (equals): Re-installed original code.
2508 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
2510         * Makefile.am: Added rules for libgcjx library.
2511         * Makefile.in: Rebuilt.
2512         * configure.in: Added check for X.
2513         * configure: Rebuilt.
2514         * gnu/awt/LightweightRedirector.java: New file.
2515         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2516         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2517         * gnu/awt/j2d/Graphics2DImpl.java: New file.
2518         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2519         * gnu/awt/j2d/MappedRaster.java: New file.
2520         * gnu/awt/xlib/XCanvasPeer.java: New file.
2521         * gnu/awt/xlib/XEventLoop.java: New file.
2522         * gnu/awt/xlib/XEventQueue.java: New file.
2523         * gnu/awt/xlib/XFontMetrics.java: New file.
2524         * gnu/awt/xlib/XFramePeer.java: New file.
2525         * gnu/awt/xlib/XGraphics.java: New file.
2526         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2527         * gnu/awt/xlib/XPanelPeer.java: New file.
2528         * gnu/awt/xlib/XToolkit.java: New file.
2529         * gnu/gcj/xlib/Clip.java: New file.
2530         * gnu/gcj/xlib/Colormap.java: New file.
2531         * gnu/gcj/xlib/Display.java: New file.
2532         * gnu/gcj/xlib/Drawable.java: New file.
2533         * gnu/gcj/xlib/Font.java: New file.
2534         * gnu/gcj/xlib/GC.java: New file.
2535         * gnu/gcj/xlib/Pixmap.java: New file.
2536         * gnu/gcj/xlib/Screen.java: New file.
2537         * gnu/gcj/xlib/Visual.java: New file.
2538         * gnu/gcj/xlib/WMSizeHints.java: New file.
2539         * gnu/gcj/xlib/Window.java: New file.
2540         * gnu/gcj/xlib/WindowAttributes.java: New file.
2541         * gnu/gcj/xlib/XAnyEvent.java: New file.
2542         * gnu/gcj/xlib/XButtonEvent.java: New file.
2543         * gnu/gcj/xlib/XColor.java: New file.
2544         * gnu/gcj/xlib/XConfigureEvent.java: New file.
2545         * gnu/gcj/xlib/XConnectException.java: New file.
2546         * gnu/gcj/xlib/XEvent.java: New file.
2547         * gnu/gcj/xlib/XException.java: New file.
2548         * gnu/gcj/xlib/XExposeEvent.java: New file.
2549         * gnu/gcj/xlib/XID.java: New file.
2550         * gnu/gcj/xlib/XImage.java: New file.
2551         * gnu/gcj/xlib/XUnmapEvent.java: New file.
2552         * gnu/gcj/xlib/natClip.cc: New file.
2553         * gnu/gcj/xlib/natColormap.cc: New file.
2554         * gnu/gcj/xlib/natDisplay.cc: New file.
2555         * gnu/gcj/xlib/natDrawable.cc: New file.
2556         * gnu/gcj/xlib/natFont.cc: New file.
2557         * gnu/gcj/xlib/natGC.cc: New file.
2558         * gnu/gcj/xlib/natPixmap.cc: New file.
2559         * gnu/gcj/xlib/natScreen.cc: New file.
2560         * gnu/gcj/xlib/natVisual.cc: New file.
2561         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
2562         * gnu/gcj/xlib/natWindow.cc: New file.
2563         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2564         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2565         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2566         * gnu/gcj/xlib/natXColor.cc: New file.
2567         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2568         * gnu/gcj/xlib/natXException.cc: New file.
2569         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2570         * gnu/gcj/xlib/natXImage.cc: New file.
2571         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2572         * java/awt/EventDispatchThread.java: Start thead on creation.
2574 2000-10-20  Tom Tromey  <tromey@cygnus.com>
2576         From Arno J. Klaassen:
2577         * interpret.cc: Include <stdlib.h> for alloca.
2578         * defineclass.cc: Include <stdlib.h> for alloca.
2580         * Makefile.in: Rebuilt.
2581         * Makefile.am: Include deps.mk.
2582         (GCJCOMPILE): Added -MD, -MT, and -MF.
2583         ($(javao_files)): Don't depend on libgcj.zip.
2584         (all-recursive): New target.
2585         (%.lo:%.cc): Do dependency tracking.
2586         ($(nat_headers)): Don't depend on libgcj.zip.
2587         * configure: Rebuilt.
2588         * configure.in: Make .d files and deps.mk.
2590 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
2592         * exception.cc: Don't #include "exception".
2593         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2595         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2596         * Makefile.in: Updated.
2598 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
2600         * java/awt/peer/ChoicePeer.java (addItem): Removed.
2601         * java/awt/peer/ComponentPeer.java (disable): Removed.
2602         (enable): Removed.
2603         (hide): Removed.
2604         (minimumSize): Removed.
2605         (preferredSize): Removed.
2606         (reshape): Removed.
2607         (show): Removed.
2608         * java/awt/peer/ListPeer.java (addItem): Removed.
2609         (clear): Removed.
2610         (minimumSize): Removed.
2611         (preferredSize): Removed.
2612         (setMultipleSelections): Removed.
2613         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2614         (remove): Renamed from removeMenu.
2615         * java/awt/peer/MenuItemPeer.java (disable): Removed.
2616         (enable): Removed.
2617         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2618         (remove): Renamed from removeItem.
2619         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2620         (getMinimumSize): Removed.
2621         (getPreferredSize): Removed.
2622         (minimumSize): Removed.
2623         (preferredSize): Removed.
2624         (replaceText): Removed.
2625         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2626         (preferredSize): Removed.
2627         (getMinimumSize): Removed.
2628         (getPreferredSize): Removed.
2629         (setEchoCharacter): Removed.
2631 2000-10-10  Warren Levy  <warrenl@cygnus.com>
2633         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2634         * java/sql/Date.java (serialVersionUID): New field.
2635         * java/sql/Time.java (serialVersionUID): New field.
2636         * java/sql/Timestamp.java (serialVersionUID): New field.
2637         * java/text/ChoiceFormat.java (serialVersionUID): New field.
2638         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2639         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2640         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2641         (readObject): New serialization method.
2642         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2643         (serialVersionOnStream): New field.
2644         (readObject): New serialization method.
2645         (getMonetaryDecimalSeparator): New method.
2646         (setMonetaryDecimalSeparator): New method.
2647         * java/text/NumberFormat.java (maxFractionDigits): New field.
2648         (maxIntegerDigits): New field.
2649         (minFractionDigits): New field.
2650         (minIntegerDigits): New field.
2651         (serialVersionOnStream): New field.
2652         (serialVersionUID): New field.
2653         (readObject): New serialization method.
2654         (writeObject): New serialization method.
2655         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2656         (serialVersionOnStream): New field.
2657         (serialVersionUID): New field.
2658         (readObject): New serialization method.
2660 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
2662         * configure.in (GCJ): Avoid bogus error message when looking for
2663         (and not finding) gcj in the build tree.
2664         * configure: Rebuilt.
2666 2000-10-09  Tom Tromey  <tromey@cygnus.com>
2668         * configure: Rebuilt.
2669         * configure.in: Include sys/types.h when checking for socklen_t.
2670         From Arno J. Klaassen.
2672 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
2674         * include/jvm.h: Enable __builtin_expect().
2676         * name-finder.cc (lookup): Don't trust dladdr() if the address is from
2677         the main program. Fix for PR libgcj/341.
2679 2000-10-07  Tom Tromey  <tromey@cygnus.com>
2681         * java/util/Properties.java: Merged with Classpath version.
2683 2000-10-05  Tom Tromey  <tromey@cygnus.com>
2685         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2686         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2687         * java/lang/Class.h (Object): Added `class$' field.
2688         * java/lang/Object.h (Object): Added `class$' field.
2689         * defineclass.cc (ClassClass): Use `class$' form.
2690         (ClassObject): Likewise.
2691         * resolve.cc (ClassObject): Use `class$' form.
2692         (ObjectClass): Likewise.
2693         * interpret.cc (ClassError): Removed.
2694         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2695         `class$' form.
2696         (IntegerClass): Likewise.
2697         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2698         form.
2699         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2700         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2701         SerializableClass): Likewise.
2702         Include Serializable.h, Cloneable.h.
2703         * java/lang/natSystem.cc (SystemClass): Removed.
2704         (init_properties): Use `class$' form.
2705         * java/lang/natObject.cc (CloneableClass): Removed.
2706         (clone): Use `class$' form.
2707         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2708         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2709         ConstructorClass): Likewise.
2710         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2711         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2712         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2713         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2714         form.
2715         (ClassClass): Likewise.
2716         * include/jvm.h (StringClass): Use `class$' form.
2717         * prims.cc (ObjectClass): Removed.
2718         (_Jv_RunMain): Use `class$' form.
2719         (_Jv_AllocObject): Likewise.
2720         * jni.cc (ClassClass): Use `class$' form.
2721         (ThrowableClass): Likewise.
2722         (ObjectClass): Likewise.
2723         (MethodClass): Likewise.
2724         (ThreadGroupClass): Likewise.
2725         (NativeThreadClass): Likewise.
2726         * boehm.cc (ObjectClass): Removed.
2727         (ClassClass): Removed.
2728         (_Jv_MarkObj): Use `class$' form.
2729         * gcj/field.h (JvFieldIsRef): Use `class$' form.
2730         Include RawData.h.
2732 2000-10-05  Warren Levy  <warrenl@cygnus.com>
2734         * Makefile.am: Removed java/io/Replaceable.java and
2735         java/io/Resolvable.java.
2736         * Makefile.in: Rebuilt.
2737         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2738         namespace.
2739         * java/io/ObjectInputStream.java (processResolution): Fixed typo
2740         in method name.
2741         (processResolution): Handle readResolve method via reflection with
2742         removal of Resolvable interface.
2743         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2744         method via reflection with removal of Replaceable interface.
2745         * java/io/Replaceable.java: Removed.
2746         * java/io/Resolvable.java: Removed.
2747         * java/security/Key.java (serialVersionUID): New field.
2748         * java/security/Provider.java (serialVersionUID): New field.
2749         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2750         New field.
2751         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2752         New field.
2753         * java/sql/DataTruncation.java (serialVersionUID): New field.
2754         * java/sql/SQLException.java (serialVersionUID): New field.
2755         * java/sql/SQLWarning.java (serialVersionUID): New field.
2756         * java/util/Date.java (serialVersionUID): New field.
2757         (millis): Made transient.
2758         (readObject): New method.
2759         (writeObject): New method.
2761 2000-10-05  Tom Tromey  <tromey@cygnus.com>
2763         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2765 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
2767         * prims.cc (_Jv_argv, _Jv_argc): New fields.
2768         (JvRunMain): Set _Jv_argv and _Jv_argc.
2769         * java/awt/Component.java: Minor fixes.
2770         * java/awt/Image.java (UndefinedProperty): Initialize final field.
2771         * java/awt/Toolkit.java (systemEventQueue): Removed.
2772         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2773         * java/awt/Window.java (getToolkit): Don't call super.
2774         * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2775         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2776         * gnu/awt/gtk/GtkComponentPeer.java: New file.
2777         * gnu/awt/gtk/GtkContainerPeer.java: New file.
2778         * gnu/awt/gtk/GtkFramePeer.java: New file.
2779         * gnu/awt/gtk/GtkMainThread.java: New file.
2780         * gnu/awt/gtk/GtkToolkit.java: New file.
2781         * gnu/awt/gtk/GtkWindowPeer.java: New file.
2782         * gnu/awt/gtk/gtkcommon.cc: New file.
2783         * gnu/awt/gtk/gtkcommon.h: New file.
2784         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2785         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2786         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2787         * gnu/awt/gtk/natGtkMainThread.cc: New file.
2788         * gnu/awt/gtk/natGtkToolkit.cc: New file.
2789         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2791 2000-09-30  Tom Tromey  <tromey@cygnus.com>
2793         * posix-threads.cc (_Jv_CondWait): Check to see if we are
2794         interrupted before modifying the cv's wait set.
2795         From Corey Minyard.
2797 2000-09-30  Hans Boehm  <boehm@acm.org>
2798             Bryce McKinlay  <bryce@albatross.co.nz>
2800         Implement bitmap descriptor based marking for Boehm GC.
2802         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2803         * configure: Rebuilt.
2804         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2805         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2806         method get_finalizer().
2807         (struct _Jv_ArrayVTable): Ditto. Declare method array with
2808         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2809         (_Jv_AllocObj): Add new jclass parameter.
2810         (_Jv_AllocArray): Ditto.
2811         (_Jv_BuildGCDescr): New prototype.
2812         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2813         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2814         get_finalizer() instead of direct finalizer vtable offset.
2815         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2816         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2817         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2818         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2819         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2820         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2821         (_Jv_DetermineVTableIndex): Ditto.
2822         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
2823         calculations to account for new gc_descr field.
2824         * boehm.cc: #include gc_gcj.h.
2825         (obj_kind_x, obj_free_list): `#if 0'-ed away.
2826         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2827         New commentary from HB. Mark the classes vtable.
2828         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2829         (GC_DEFAULT_DESCR): New #define.
2830         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
2831         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2832         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2833         scan conservativly if size is less than min_heap_addr. Set vtable
2834         pointer of new object before returning.
2835         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2836         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2837         allocation for obj_kind_x.
2838         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2839         (_Jv_AllocObj): Set vtable on returned object.
2840         (_Jv_AllocArray): Ditto.
2841         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2842         (_Jv_NewPrimArray): Ditto.
2843         (_Jv_AllocObj): Declare as a friend.
2844         (_Jv_AllocArray): Ditto.
2845         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2846         from &ObjectClass into new array class. Remove offset-by-one
2847         adjustments from `method' size calculations to account for gc_descr
2848         field.
2850 2000-09-26  Tom Tromey  <tromey@cygnus.com>
2852         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2853         `remove', not `add'.
2855 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2857         * java/lang/natSystem.cc (file_encoding): Added return statement.
2859 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
2861         * Makefile.am: Re-work shell commands that exceeded command-line
2862         length limits.
2863         * Makefile.in: Rebuilt.
2865         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2867         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2868         * java/lang/natDouble.cc: Likewise.
2869         * java/lang/reflect/natMethod.cc: Likewise.
2870         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
2872 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
2874         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2875         libgcjdata.a.
2876         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
2877         * acinclude.m4: Arrange for automake to not bring in a new
2878         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
2879         * Makefile.am: Leave it up to automake to subst GCJ.
2880         * aclocal.m4, configure, Makefile.in: Rebuilt.
2882 2000-09-13  Tom Tromey  <tromey@cygnus.com>
2884         * java/lang/reflect/natArray.cc (BooleanClass): New define.
2885         (get): Ensure Boolean class is initialized.
2886         * java/lang/reflect/natField.cc (BooleanClass): New define.
2887         (get): Ensure Boolean class is initialized.
2889 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
2891         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2892         Initialize with anonymous class.
2893         (compareToIgnoreCase): New method.
2895         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2896         (uncaughtException): Set had_uncaught_exception.
2897         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2898         exit with error status if set.
2899         (_Jv_RunMain): Ditto.
2901 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
2903         * configure: Rebuilt with new ../libtool.m4.
2905 2000-09-11  Tom Tromey  <tromey@cygnus.com>
2907         * java/lang/reflect/Field.java (toString): Don't rely on
2908         Class.toString.
2910 2000-09-08  Tom Tromey  <tromey@cygnus.com>
2912         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2913         default decoder use iconv.
2914         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2915         Let default encoder use iconv.
2916         * configure: Rebuilt.
2917         * configure.in: Check for nl_langinfo and <langinfo.h>.
2918         * java/lang/natSystem.cc (file_encoding): New function.
2919         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2921 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
2923         * acinclude.m4: Simplify the tests for CC and CXX.
2924         * aclocal.m4, configure: Rebuilt.
2926         * acinclude.m4: Include libtool macros from the source tree.
2927         * aclocal.m4, configure: Rebuilt.
2929 2000-09-08  Warren Levy  <warrenl@cygnus.com>
2931         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2932         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2933         * java/io/File.java (writeObject): Added.
2934         (readObject): Added.
2935         (serialVersionUID): Added.
2936         * java/io/ObjectOutputStream.java (writeObject): Initialized
2937         fieldsAlreadyWritten before recursion rather than after.
2938         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2939         * java/io/OptionalDataException.java (serialVersionUID): Added.
2940         (OptionalDataException): Made package private.
2941         * java/io/SyncFailedException.java (SyncFailedException): Removed
2942         default constructor to match spec.
2943         * java/lang/Boolean.java (serialVersionUID): Added.
2944         * java/lang/Byte.java (serialVersionUID): Added.
2945         * java/lang/Character.java (serialVersionUID): Added.
2946         * java/lang/Double.java (serialVersionUID): Added.
2947         * java/lang/Float.java (serialVersionUID): Added.
2948         * java/lang/Integer.java (serialVersionUID): Added.
2949         * java/lang/Long.java (serialVersionUID): Added.
2950         * java/lang/Number.java (serialVersionUID): Added.
2951         * java/lang/Short.java (serialVersionUID): Added.
2952         * java/lang/String.java (serialVersionUID): Added.
2953         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2954         to match spec.
2955         * java/lang/reflect/InvocationTargetException.java
2956         (serialVersionUID): Added.
2957         * java/net/URL.java (handler): Made transient.
2958         (hashCode): Added field for serialization, per spec. and use
2959         cached value if available.
2960         (serialVersionUID): Added.
2961         (URL): Initialize hashCode.
2962         (set): Adjust hashCode.
2963         (readObject): New Method to initialize the protocol handler when
2964         deserializing.
2965         (writeObject): New method.
2966         * java/text/BreakIterator.java: Removed 'implements Serializable'.
2967         * java/text/Collator.java: Removed 'implements Serializable'.
2968         * java/util/GregorianCalendar.java (serialVersionUID): Added.
2969         * java/util/Properties.java (serialVersionUID): Added.
2970         * java/util/Random.java (serialVersionUID): Added.
2971         (seed): Made private.
2972         (nextNextGaussian): Made private.
2973         (haveNextNextGaussian): Made private.
2974         * java/util/Stack.java (serialVersionUID): Added.
2975         * java/util/TimeZone.java (serialVersionUID): Added.
2976         * java/util/Vector.java (serialVersionUID): Added.
2978 2000-09-07  Bryce McKinlay  <bryce@albatross.co.nz>
2980         * Makefile.am (Thread.h): Don't be friends with native threads
2981         functions.
2982         * Makefile.in: Rebuilt.
2983         * java/lang/Thread.java (interrupt_flag): Make package-private.
2985 2000-09-06  Jeff Sturm  <jeff.sturm@appnet.com>
2987         * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2988         to avoid long long division.
2990 2000-09-06  Tom Tromey  <tromey@cygnus.com>
2992         * java/lang/reflect/Constructor.java (toString): Use `getName' for
2993         parameter types.
2994         * java/lang/reflect/Method.java (toString): Use `getName' for
2995         return type.
2997         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2998         `args' if method takes no parameters.
3000         Fix for PR java.lang/339:
3001         * java/lang/natPosixProcess.cc (fail): New function.
3002         (cleanup): New function.
3003         (startProcess): Use them.  Create pipe so child can communicate
3004         exec failure back to parent.
3006 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
3008         * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
3009         calls to `throw'.
3010         (send): Undo last patch. Remove the label only.
3011         (mcastGrp): Ditto.
3012         * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
3013         `throw'.
3014         * java/net/natInetAdress.cc: Ditto.
3016         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
3018 2000-09-05  Tom Tromey  <tromey@cygnus.com>
3020         * doc/cni.sgml: Updated from master copy.
3022 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
3024         * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
3025         (write): Ditto.
3026         * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
3027         stack. Synchronize.
3028         * java/lang/fdlibm.h: #undef __P if previously defined.
3029         * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
3030         * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
3031         block.
3032         (mcastGrp): Ditto.
3034 2000-09-04  Tom Tromey  <tromey@cygnus.com>
3036         * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
3037         DELETE mode.
3039 2000-09-04  Anthony Green  <green@redhat.com>
3041         Fix for PR java.io/203:
3042         * java/io/File.java (createTempFile): Obey directory argument.
3043         Use java.io.tmpdir if needed.  Don't leave FileDescripators open.
3044         * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
3045         variable to set java.io.tmpdir on non-WIN32 systems.
3047 2000-09-04  Anthony Green  <green@redhat.com>
3049         * java/io/File.java (deleteOnExit): New method.
3050         * gnu/gcj/runtime/FileDeleter.java: New class.
3051         * java/lang/natRuntime.cc (exit): Call
3052         FileDeleter.deleteOnExitNow()
3053         * Makefile.am: Add FileDeleter.java.
3054         * Makefile.in: Rebuilt.
3056 2000-09-02  Tom Tromey  <tromey@cygnus.com>
3058         * Makefile.in: Rebuilt.
3059         * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
3060         environment variable.
3062 2000-09-01  Andrew Haley  <aph@redhat.com>
3064         * java/io/StreamTokenizer.java: Don't throw a
3065         NumberFormatException if a field is numeric as far as the
3066         StreamTokenizer is concerned but not as far as Double.valueOf() is
3067         concerned: return a zero instead.
3069 2000-08-30  Tom Tromey  <tromey@cygnus.com>
3071         * Makefile.in: Rebuilt.
3072         * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
3074 2000-08-28  Tom Tromey  <tromey@cygnus.com>
3076         * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
3077         gnu/gcj/awt/ComponentDataBlitOp.java,
3078         gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
3079         java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
3080         java/awt/color/ICC_ColorSpace.java,
3081         java/awt/color/ICC_Profile.java,
3082         java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
3083         java/awt/image/ComponentColorModel.java,
3084         java/awt/image/ComponentSampleModel.java,
3085         java/awt/image/DataBuffer.java,
3086         java/awt/image/DataBufferByte.java,
3087         java/awt/image/DataBufferInt.java,
3088         java/awt/image/DataBufferUShort.java,
3089         java/awt/image/DirectColorModel.java,
3090         java/awt/image/IndexColorModel.java,
3091         java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
3092         java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
3093         java/awt/image/SinglePixelPackedSampleModel.java,
3094         java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
3095         Removed Latin-1 copyright symbols.
3096         * java/util/zip/ZipFile.java: Indentation fixes.
3098 2000-08-27  Mark Wielaard  <mark@klomp.org>
3100         * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
3101         constructor, close can delete the file, finalize calls close.
3102         * java/util/jar/JarFile.java: Constructor that takes mode now
3103         calls super.
3105 2000-08-27  Anthony Green  <green@redhat.com>
3107         * java/util/ArrayList.java, java/util/Timer.java,
3108         java/util/LinkedList.java, java/util/TimerTask.java,
3109         java/util/HashMap.java, java/util/AbstractMap.java,
3110         java/util/SortedMap.java, java/util/AbstractSequentialList.java,
3111         java/util/SortedSet.java: Imported from GNU Classpath.
3112         * Makefile.in: Rebuilt.
3113         * Makefile.am: Added new files.
3115 2000-08-26  Anthony Green  <green@redhat.com>
3117         * Makefile.in: Rebuilt.
3118         * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
3119         friend.
3121         * prims.cc: Include ClassLoader.h.
3122         (_Jv_RunMain): When executing jar files, classpath must be the jar
3123         file only.  Lose our reference to the system ClassLoader in order
3124         to get a new one with the correct classpath.
3125         * java/lang/natSystem.cc (init_properties): When executing a jar
3126         file, only use the jar file for java.class.path.
3128         * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
3129         for bytecode archives.
3131         * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
3132         exists, but not Main-Class.
3134 2000-08-23  Mark Wielaard  <mark@klomp.org>
3136         * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
3137         return -1 when fill() has no more data for the Inflater.
3139 2000-08-23  Mark Wielaard  <mark@klomp.org>
3141         * java/io/PrintWriter.java (print(String)): Don't catch IOException,
3142         write(String) already does.
3144 2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3146         * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
3147         to `alive_flag', call `init'.
3148         (init): New native method.
3149         * gnu/gcj/jni/natNativeThread.cc (init): New native method
3150         implementation.
3152 2000-08-21  Mark Wielaard  <mark@klomp.org>
3154         * Makefile.in: Rebuilt.
3155         * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
3156         a `friend class'.
3157         (java/lang/reflect/Field.h): Likewise.
3158         (java/lang/reflect/Method.h): Likewise.
3159         (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
3160         `friend class'.
3162 2000-08-21  Tom Tromey  <tromey@cygnus.com>
3164         * java/util/ResourceBundle.java (trySomeGetBundle): Removed
3165         debugging prints.
3167 Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>
3169         * java/lang/natSystem.cc (init_properties): Change sourceware
3170         reference to sources.redhat.com.
3172         * include/java-props.h: Add _Jv_Jar_Class_Path.
3173         * prims.cc: Ditto.  Set it from `gij -jar file' option.
3175         * java/lang/natSystem.cc (init_properties): Set java.class.path
3176         from
3177         {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
3179         * java/util/PropertyPermission.java: Import from GNU Classpath.
3180         * Makefile.in: Rebuilt.
3181         * Makefile.am: Add java/util/PropertyPermission.java.
3182         * java/lang/System.java: Add setProperty method.
3184         * gij.cc (main): Add -jar option to execute jar files.
3185         (help): Describe -jar option.
3186         * prims.cc (_Jv_RunMain): Add support for jar execution mode.
3187         * include/jvm.h: Add is_jar argument to _Jv_RunMain.
3188         * gnu/gcj/runtime/FirstThread.java (main): New method.
3190         * java/util/jar/Attributes.java: Correct comment spelling.
3192 2000-08-20  Mark Wielaard  <mark@klomp.org>
3194         * java/util/zip/Adler32.java: Make private variables really private
3195         * java/util/zip/CRC32.java: Make private variables really private
3196         * java/util/zip/CheckedInputStream.java: skip() could skip to much
3197         bytes
3198         * java/util/zip/InflaterInputStream.java: skip() could skip to
3199         much bytes
3200         * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
3201         * java/util/zip/ZipFile.java: size() new 1.2 method
3202         * java/util/zip/ZipInputStream.java: Use createZipEntry not new
3203         ZipEntry.  since 1.2 available() always returns just 1 or 0 when
3204         closed
3206 Sun Aug 20 12:33:43 2000  Anthony Green  <green@redhat.com>
3208         * java/util/jar/JarFile.java: Don't call
3209         java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
3210         <mark@klomp.org>.
3212 Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>
3214         * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
3215         Read the entire contents of the class file, not just what is
3216         available().
3218         * java/net/JarURLConnection.java: getEntry doesn't take any
3219         arguments.  Return null if element is null.
3221         * java/util/zip/ZipFile.java (getInputStream): Read the compressed
3222         size from the archive, not the inflated size.
3224         * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
3225         java.util.zip.ZipFile.getEntry.
3227         * gij.cc (help): Change sourceware reference to
3228         sources.redhat.com.
3230 2000-08-19  Tom Tromey  <tromey@cygnus.com>
3232         * java/util/zip/ZipInputStream.java (createZipEntry):
3233         Implemented.
3235 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
3237         * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
3238         java/util/jar/JarException.java, java/util/jar/JarFile.java,
3239         java/util/jar/JarInputStream.java,
3240         java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
3241         java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
3242         java/util/AbstractSet.java, java/util/BasicMapEntry.java,
3243         java/security/cert/CRL.java, java/security/cert/CRLException.java,
3244         java/security/cert/Certificate.java,
3245         java/security/cert/CertificateEncodingException.java,
3246         java/security/cert/CertificateException.java,
3247         java/security/cert/CertificateExpiredException.java,
3248         java/security/cert/CertificateFactory.java,
3249         java/security/cert/CertificateFactorySpi.java,
3250         java/security/cert/CertificateNotYetValidException.java,
3251         java/security/cert/CertificateParsingException.java,
3252         java/security/cert/X509CRL.java,
3253         java/security/cert/X509CRLEntry.java,
3254         java/security/cert/X509Certificate.java,
3255         java/security/cert/X509Extension.java: Imported from Classpath.
3256         * java/util/Hashtable.java: Imported from Classpath.
3258         * java/util/zip/ZipInputStream.java: Create stub for
3259         createZipEntry.
3261         * gcj/javaprims.h: Updated class list.
3263         * Makefile.in, gcj/Makefile.in: Rebuilt.
3264         * Makefile.am (ordinary_java_source_files): Add these new classes.
3266 2000-08-16  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3268         * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
3269         * gnu/gcj/awt/GLightweightPeer.java: New file.
3270         * java/awt/BorderLayout.java: Implemented all methods.
3271         * java/awt/Button.java (actionListener, actionCommand): Renamed
3272         and modifier change.
3273         (addNotify): Call super.
3274         (dispatchEventImpl): New method.
3275         (getListeners): New method.
3276         (label): Made package-private, not private.
3277         * java/awt/Canvas.java: Implemented class body.
3278         * java/awt/Color.java (brighter): New method.
3279         (darker): New method.
3280         (hashCode): New method.
3281         * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
3282         (getGraphicsConfiguration): Delegate to
3283         getGraphicsConfigurationImpl().
3284         (getGraphicsConfigurationImpl): New method.
3285         (getToolkit): Only return value from peer if not null.
3286         (isDisplayable): Check with parent.
3287         (isShowing): No parent implies not showing.
3288         (getForeground): Check parent property if local is null.
3289         (getBackground): Likewise.
3290         (getFont): Likewise.
3291         (setForeground): Inform peer.
3292         (setBackground): Likewise
3293         (setLocale): Invalidate component.
3294         (getColorModel): Implemented.
3295         (setLocation): Invalidate, or ignore if no change.
3296         (setSize): Invalidate, or ignore if no change.
3297         (setBounds): Invalidate, or ignore if no change.
3298         (isOpaque): By default, heavyweight implies opaque.
3299         (isLightweight): Implemented.
3300         (getMaximumSize): Implemented.
3301         (doLayout): Implemented, NOP.
3302         (validate): Implemented, NOP.
3303         (invalidate): Only propagate to parent if parent was valid.
3304         (getGraphics): Implemented.
3305         (getFontMetrics): Implemented.
3306         (update): Implemented.
3307         (paintAll): Implemented.
3308         (repaint): Implemented all repaint methods.
3309         (print): Implemented.
3310         (printAll): Implemented.
3311         (createImage): Implemented.
3312         (dispatchEvent): Give the peer a chance to handle the event.
3313         (dispatchEventImpl): Dispatch paint events.
3314         (enableEvents): Lightweights enable events on parent component.
3315         (coalesceEvents): Coalesce paint events, and select event type
3316         using a switch.
3317         (coalescePaintEvents): New method.
3318         (processEvent): Fix unfortunate ordering of statements, and call
3319         correct method for MOUSE_CLICKED.
3320         (processPaintEvent): New method.
3321         (addNotify): Allow container to notify children before event
3322         mask is set in peer.
3323         (addNotifyContainerChildren): New method.
3324         (removeNotify): Visibility should not change on removeNotify.
3325         (paramString): Implemented.
3326         (list): Implemented two of the list methods.
3327         * Container (myInsets): Removed, insets are managed by peer.
3328         (getInsets): Query peer.
3329         (addImpl): Fix reparenting, enable events for lightweights,
3330         initialize component array.
3331         (validate): Call doLayout in validateTree() instead.
3332         (validateTree): Do nothing if already valid. Call beginValidate(),
3333         endValidate() on peer. Call validateTree() instead of validate()
3334         for children that are containers. Mark valid after validation of
3335         children.
3336         (setFont): Partial implementation.
3337         (paint): Implemented.
3338         (visitChildren): New method.
3339         (visitChild): New method.
3340         (update): Implemented.
3341         (print): Implemented.
3342         (paintComponents): Implemented.
3343         (printComponents): Consider translation and clipping.
3344         (getComponentAt): Ignore invisible children. Return this if no
3345         child match.
3346         (addNotify): Call super.
3347         (addNotifyContainerChildren): New method.
3348         (paramString): Implemented.
3349         (list): Implemented.
3350         * java/awt/EventQueue (invokeAndWait): Get system event queue the
3351         right way.
3352         (invokeLater): Likewise.
3353         (isDispatchThread): Likewise.
3354         * java/awt/FontMetrics (getLeading): Formula change.
3355         (getDescent): Consider leading also.
3356         (getMaxAscent): Default to getAscent().
3357         (getMaxDescent): Default to getDescent.
3358         (getMaxAdvance): Return value signifying unknown.
3359         (charWidth): Both methods implemented.
3360         (charsWidth): Implemented.
3361         (bytesWidth): Implemented.
3362         (getWidths): Implemented.
3363         * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
3364         state): New fields.
3365         (Frame): Rearragend constuctor chaining to disallow null being
3366         passed as a graphics configuration.
3367         (getTitle): Return empty string if null.
3368         (dispose): Removed.
3369         (getIconImage): New method.
3370         (setIconImage): New method.
3371         (finalize): New method.
3372         (setMenuBar): Notify peer.
3373         (isResizable): New method.
3374         (setResizable): New method.
3375         (getState): New method.
3376         (getFont): Removed.
3377         (remove): Implemented.
3378         (removeNotify): New method.
3379         (getFrames): New method.
3380         * java/awt/Graphics.java: Implemented body of class.
3381         * java/awt/Graphics2D.java: New file.
3382         * java/awt/GraphicsConfiguration.java: Enabled part of the API.
3383         * java/awt/Image.java: Implemented body of class.
3384         * java/awt/Panel.java (Panel): Call correct super constructor.
3385         (addNotify): Implemented.
3386         * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
3387         * java/awt/RenderingHints.java: New file.
3388         * java/awt/Toolkit.java (createComponent): Implemented.
3389         (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
3390         * java/awt/Window.java (Window): Two new constructors. Reordered
3391         constructor chaining.
3392         (getGraphicsConfigurationImpl): New method.
3393         (finalize): Call super.
3394         (addNotify): Call super.
3395         (pack): Do layout stuff.
3396         (show): Ensure that peer exists and that component is valid.
3397         (dispose): Dispose owned children.
3398         (getOwner): Simplify code, casting null pointers is valid.
3399         (getGraphicsConfiguration): Ask peer if local value is null.
3400         * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
3401         getcmd().
3402         * java/awt/image/BufferedImage.java: New file.
3403         * java/awt/image/RasterOp.java: New file.
3404         * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
3405         More powerfull replacement for getColorModel().
3406         (getColorModel) Removed.
3407         (setEventMask) New method.
3408         * Makefile.am: Added new files.
3409         * Makefile.in: Rebuilt.
3411 2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3413         * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
3414         (finit_leg_name): New global.
3415         (java::lang::Class::getDeclaredMethods): Test for `finit$' or
3416         `$finit$'. This is a backward compatibility hack.
3417         (java::lang::Class::_getMethods): Likewise.
3419 2000-08-15  Andrew Haley  <aph@cygnus.com>
3421         * include/jvm.h (_Jv_HashCode): New hash code.
3423 2000-08-15  Tom Tromey  <tromey@cygnus.com>
3425         * java/io/ByteArrayOutputStream.java: Merged with Classpath.
3427 Sun Aug 13 19:53:01 2000  Anthony Green  <green@redhat.com>
3429         * THANKS: More thanks.
3431 2000-08-10  Tom Tromey  <tromey@cygnus.com>
3433         * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
3434         when errno not set.
3435         (connect): Likewise.
3436         (accept): Likewise.
3437         (getOption): Likewise.
3438         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
3439         case when errno not set.
3440         (peek): Likewise.
3441         (send): Likewise.
3442         (receive): Likewise.
3443         (mcastGrp): Likewise.
3444         (setOption): Likewise.
3445         (getOption): Likewise.
3447 2000-08-10  Bryce McKinlay  <bryce@albatross.co.nz>
3448             John Stracke <francis@ecal.com>
3450         * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
3451         (connect): Don't falsely claim HTTP/1.1 compliance. Call
3452         getHttpHeaders().
3453         (disconnect): Don't unset connected flag.
3454         (getHeaderField (String)): Call connect() if not connected.
3455         (getHeaderField (int)): Ditto.
3456         (getHeaderFieldKey): Ditto.
3457         (getHttpHeaders): Don't call connect().
3458         * java/net/HttpURLConnection.java (instanceFollowRedirects,
3459         gotResponseVals): New fields.
3460         (getResponseCode): Call getResponseVals() conditionally.
3461         (getResponseMessage): Ditto.
3462         (getResponseVals): Call connect(). Don't throw FileNotFoundException.
3464 2000-08-09  Bryce McKinlay  <bryce@albatross.co.nz>
3466         * Makefile.am: Move beans and applet classes to awt_java_source_files.
3467         * Makefile.in: Rebuilt.
3468         * java/awt/Color.java (getTransparency): New method.
3469         * java/awt/Component.java: Various updates.
3470         * java/awt/Container.java (removeNotify): Call super.removeNotify()
3471         after dealing with children.
3472         * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
3473         * java/awt/Window.java: Various new methods and updates.
3474         * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
3475         to int for switch.
3476         * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
3477         * java/awt/event/WindowEvent.java (paramString): Ditto.
3478         * java/awt/geom/Dimension2D.java (clone): Wrap super call with
3479         try/catch block.
3480         * java/awt/geom/Point2D.java (clone): Ditto.
3481         * java/awt/geom/RectangularShape.java (clone): Ditto.
3482         * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
3483         isAlphaPremultiplied): Make package-private, not private.
3485 2000-08-08  Tom Tromey  <tromey@cygnus.com>
3487         * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
3488         surrogate characters.
3489         * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
3490         true.
3491         (write): Correct handling of surrogate characters.
3493 2000-08-07  Tom Tromey  <tromey@cygnus.com>
3495         * java/lang/reflect/Method.java (hashCode): Use getName().
3496         (toString): Likewise.
3497         * java/lang/reflect/natMethod.cc (getType): Initialize
3498         exception_types.
3500         * java/lang/reflect/Method.java (toString): Use Class.getName, not
3501         Class.toString.
3502         * java/lang/reflect/Field.java (toString): Correct formatting.
3503         From Corey Minyard.
3505         * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
3506         rewrote.
3507         (receive): Streamlined.
3509 2000-08-05  Tom Tromey  <tromey@cygnus.com>
3511         * java/io/PrintWriter.java: Merged comments from Classpath.
3512         (printlnUnsynchronized): Removed.
3513         (println()): Print the separator.
3514         (println): Call println(), not printlnUnsynchronized.
3515         (out): Now protected, to match spec.
3517 2000-08-04  Tom Tromey  <tromey@cygnus.com>
3519         * java/io/StreamTokenizer.java (TT_NONE): Now private.
3520         (nextToken): Handle backslashed newline.  From Oskar Liljeblad.
3521         For PR java.io/301.
3523 2000-08-03  Warren Levy  <warrenl@cygnus.com>
3525         * java/io/ObjectInputStream.java (readFields): Turn off
3526         readDataFromBlock while reading via GetField.
3527         (GetField$1.get(String, Object)): Pass Class of default value to
3528         getField.
3529         (getField): Allow for null default values.
3531         * java/io/ObjectOutputStream.java: Fixed typo in comment.
3532         (PutField$1.put): Fixed calls of checkType in most of the put
3533         methods to pass the correct parameter.
3534         (PutField$1.put(String, Object)): Allow for null value arg.
3535         (PutField$1.write): Turn off writeDataAsBlocks while writing via
3536         PutField.
3538         * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
3539         typo in spec'ed field name.
3540         (getSerialPersistentFields): Changed spelling of method to match
3541         the correct spelling of the spec'ed field name.
3543 2000-08-03  Tom Tromey  <tromey@cygnus.com>
3545         * Makefile.in: Rebuilt.
3546         * Makefile.am (awt_java_source_files): Added new files.
3548 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
3550         * Makefile.am: Add new AWT stubs.
3551         * java/awt/Canvas.java: New placeholder class.
3552         * java/awt/Checkbox.java: Ditto.
3553         * java/awt/CheckboxMenuItem.java: Ditto.
3554         * java/awt/Choice.java: Ditto.
3555         * java/awt/Dialog.java: Ditto.
3556         * java/awt/FileDialog.java: Ditto.
3557         * java/awt/List.java: Ditto.
3558         * java/awt/ScrollPane.java: Ditto.
3559         * java/awt/TextField.java: Ditto.
3560         * java/awt/datatransfer/Clipboard.java: Ditto.
3561         * java/awt/Component.java (treeLock): Now a static String. Add comment.
3562         * java/awt/MenuItem.java (MenuItem): Add default constructor.
3563         * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
3564         Some commented out. Partially implemented.
3565         * java/awt/natToolkit.cc: Removed file.
3567 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
3569         * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3570         Fixes "make -j" builds.
3571         * Makefile.in: Rebuild.
3573 2000-08-02  Tom Tromey  <tromey@cygnus.com>
3575         * Makefile.in: Rebuilt.
3576         * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3577         * java/net/natPlainSocketImpl.cc: Include posix.h.
3578         (accept): Use _Jv_select.
3579         * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3580         (receive): Use _Jv_select.
3581         * java/io/natFileDescriptorPosix.cc: Include posix.h.
3582         (available): Use _Jv_select.
3583         * java/lang/natSystem.cc: Include posix.h.
3584         (currentTimeMillis): Use _Jv_gettimeofday.
3585         * include/posix.h: New file.
3586         * posix.cc: New file.
3588         * scripts/encodings.pl: New file.
3589         * Makefile.in: Rebuilt.
3590         * Makefile.am (convert_source_files): Added IOConverter.java.
3591         * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3592         IOConverter.
3593         (getDefaultDecodingClass): Canonicalize default encoding name.
3594         (getEncoder): Likewise.
3595         * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3596         IOConverter.
3597         (getDefaultDecodingClass): Canonicalize default encoding name.
3598         (getDecoder): Likewise.
3599         * gnu/gcj/convert/IOConverter.java: New file.
3601 2000-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
3603         * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3604         to match C declaration in ffi.h.
3605         * Makefile.am: Add java/awt/Button.java.
3606         * Makefile.in: Rebuilt.
3608 2000-07-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3610         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3611         cast of the second argument to `ffi_raw_call' changed to match
3612         prototype.
3614 2000-07-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3616         * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3617         argument to `ffi_raw_call' changed to match prototype.
3619 2000-07-31  Bryce McKinlay  <bryce@albatross.co.nz>
3621         * java/awt/Component.java (toString): Implemented.
3622         * java/awt/Container.java (addImpl): Remove FIXME. Only call
3623         dispatchEvent() to dispatch the event.
3624         (removeImpl): Ditto.
3626 2000-07-30  Anthony Green  <green@redhat.com>
3628         * java/awt/Component.java: Add treeLock object.
3629         (getTreeLock): Implement.
3630         (isShowing): Implement.
3632 2000-07-30  Tom Tromey  <tromey@cygnus.com>
3634         * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3636         * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3638         * java/awt/Window.java (addNotify): Wrote.
3639         (addWindowListener): Wrote.
3640         (getLocale): Wrote.
3641         (getWarningString): Wrote.
3642         (processEvent): Wrote.
3643         (processWindowEvent): Wrote.
3644         (removeWindowListener): Wrote.
3645         (show): Call validate(), setVisible().
3646         (toBack): Wrote.
3647         (toFront): Wrote.
3649         * java/awt/Toolkit.java (createWindow): Declare.
3651         * java/awt/Frame.java (addNotify): Use getToolkit to find
3652         toolkit.
3654         * java/awt/Component.java (invalidate): Wrote.
3655         (isValid): Wrote.
3656         (getToolkit): Wrote.
3658         * java/awt/Container.java (addContainerListener): Removed
3659         unnecessary cast.
3660         (removeContainerListener): Likewise.
3661         (addImpl): Wrote.
3662         (add(Component)): Use it.
3663         (add(String,Component)): Likewise.
3664         (add(Component,int)): Likewise.
3665         (add(Component,Object)): Likewise.
3666         (add(Component,Object,int)): Likewise.
3667         (doLayout): Wrote.
3668         (getAlignmentX): Wrote.
3669         (getAlignmentY): Wrote.
3670         (getComponentAt): Wrote.
3671         (getMaximumSize): Wrote.
3672         (invalidate): Wrote.
3673         (list(PrintStream,int)): Wrote.
3674         (list(PrintWriter,int)): Wrote.
3675         (getMinimumSize): Wrote.
3676         (getPreferredSize): Wrote.
3677         (printComponents): Wrote.
3678         (processContainerEvent): Look at containerListener, not
3679         componentListener.
3680         (remove): Added event processing and peer destruction.
3681         (removeAll): Use remove.
3682         (removeNotify): Wrote.
3683         (validate): Wrote.
3684         (validateTree): Wrote.
3686         * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3687         * java/awt/Label.java (addNotify): Do nothing if peer exists.
3688         * java/awt/Container.java (addNotify): Don't create Container
3689         peer.
3690         * java/awt/Button.java (addNotify): Do nothing if peer exists.
3692 2000-07-30  Tom Tromey  <tromey@cygnus.com>
3694         * java/awt/Container.java (remove(int)): Wrote.
3695         (remove(Component)): Wrote.
3696         (add(Component)): Wrote.
3697         (add(Component,int)): Wrote.
3698         (removeAll): Wrote.
3699         (addNotify): Set our own peer.
3700         * java/awt/Scrollbar.java (listeners): Changed type.
3701         (Scrollbar): Don't initialize listeners.
3702         (addNotify): Wrote.
3703         (setValue): Call setValues.
3704         (setMinimum): Likewise.
3705         (setMaxPriority): Likewise.
3706         (setVisibleAmount): Likewise.
3707         (setValues): Wrote.
3708         (setUnitIncrement): Forward to peer.
3709         (setLineIncrement): Call setUnitIncrement.
3710         (setPageIncrement): Call setBlockIncrement.
3711         (setBlockIncrement): Forward to peer.
3712         (addAdjustmentListener): Rewrote.
3713         (removeAdjustmentListener): Rewrote.
3714         (processAdjustmentEvent): Rewrote.
3715         (paramString): Wrote.
3716         * Makefile.in: Rebuilt.
3717         * Makefile.am (awt_java_source_files): Added Button.java.
3718         * java/awt/Button.java: New file.
3719         * java/awt/Toolkit.java (createLabel): Declare.
3720         (createButton): Likewise.
3721         (createScrollbar): Likewise.
3722         (createContainer): Likewise.
3723         * java/awt/Label.java (addNotify): Wrote.
3724         (setAlignment): Call setAlignment in the peer.
3725         (setText): Call setText in the peer.
3727 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3729         * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3730         NotSerializableException with just the class name.
3732 2000-07-26  Andrew Haley  <aph@cygnus.com>
3734         * interpret.cc (continue1): Insert missing break into switch.
3736 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3738         * java/io/ObjectStreamException.java: Made constructors protected.
3740 2000-07-27  Tom Tromey  <tromey@cygnus.com>
3742         * java/io/OutputStreamWriter.java (close): Only flush if not
3743         closed.
3745 2000-07-27  Warren Levy  <warrenl@cygnus.com>
3747         * mauve-libgcj: Activated serialization tests.
3748         * gcj/field.h (getModifiers): Mask off unknown flags.
3749         * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3750         spurious bits don't cause discrepancies.
3751         * java/io/ObjectOutputStream.java: Fixed typo in comment.
3752         * java/io/ObjectStreamClass.java: Fixed typos in comments.
3753         (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3754         (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3755         * java/lang/Throwable.java (serialVersionUID): New field.
3756         * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3757         * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3758         unknown flags.
3759         * java/lang/reflect/natMethod.cc: Ditto.
3760         * java/security/Key.java (serialVersionUID): Removed field for now.
3761         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3762         * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3764 2000-07-22  Tom Tromey  <tromey@cygnus.com>
3766         * java/awt/geom/RectangularShape.java (getPathIterator):
3767         Wrote.
3769 2000-07-23  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3771         * libjava/java/awt/image/ColorModel.java: New file, replaces the
3772         stub libjava/java/awt/ColorModel.java which was located in the
3773         wrong package.
3774         * libjava/java/awt/image/ComponentColorModel.java: New file.
3775         * libjava/java/awt/image/ComponentSampleModel.java: New file.
3776         * libjava/java/awt/image/DataBuffer.java: New file.
3777         * libjava/java/awt/image/DataBufferByte.java: New file.
3778         * libjava/java/awt/image/DataBufferInt.java: New file.
3779         * libjava/java/awt/image/DataBufferUShort.java: New file.
3780         * libjava/java/awt/image/DirectColorModel.java: New file.
3781         * libjava/java/awt/image/PackedColorModel.java: New file.
3782         * libjava/java/awt/image/Raster.java: New file.
3783         * libjava/java/awt/image/SampleModel.java: New file.
3784         * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3785         file.
3786         * libjava/java/awt/image/IndexColorModel.java: New file.
3787         * libjava/java/awt/image/ImageConsumer.java: Removed import of
3788         java.awt.ColorModel stub.
3790         * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3791         * gnu/gcj/util/Buffers.java: New file, utility class.
3793         * libjava/Makefile.am: Updated to include new files.
3794         * libjava/Makefile.in: Rebuilt.
3796 2000-07-23  Oskar Liljeblad <osk@hem.passagen.se>
3798         * java/io/StreamTokenizer.java: Merged with classpath.
3800 2000-07-20  Tom Tromey  <tromey@cygnus.com>
3802         * Makefile.in: Rebuilt.
3803         * Makefile.am (awt_java_source_files): Updated for new files.
3804         * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3805         * java/awt/Label.java: New file.
3806         * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3807         (createIntersection, createUnion, getBounds2D): New methods.
3808         * java/awt/Scrollbar.java: New file.
3809         * java/awt/Shape.java: Updated to 1.2.
3810         * java/awt/geom/AffineTransform.java: New file.
3811         * java/awt/geom/Ellipse2D.java: New file.
3812         * java/awt/geom/NoninvertibleTransformException.java: New file.
3813         * java/awt/geom/PathIterator.java: New file.
3814         * java/awt/geom/Rectangle2D.java: New file.
3815         * java/awt/geom/RectangularShape.java: New file.
3816         * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3817         * java/awt/geom/IllegalPathStateException.java: New file.
3819         * scripts/showval.java: New file.
3821         * scripts/classes.pl (scan): Print inner classes properly.
3822         * gcj/javaprims.h: Updated class list.
3824         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3825         initialize String fields for interpreted classes.  Fixes bug
3826         reported by Hans Boehm.
3828         * java/io/File.java (getParentFile): New method, from Classpath
3829         via Oskar Liljeblad.
3831         * java/util/Vector.java (remove(Object)): Implemented.
3833 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
3835         * java/lang/natThrowable.cc (fillInStackTrace): Check for
3836         zero return from backtrace().
3838 2000-07-15  Bryce McKinlay  <bryce@albatross.co.nz>
3840         * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3841         synchronized block.
3842         * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3843         before calling notifyAll().
3845 2000-07-13  Bryce McKinlay  <bryce@albatross.co.nz>
3847         Add missing files from last check-in:
3848         * java/awt/image/ImageConsumer.java: New file.
3849         * java/awt/image/ImageProducer.java: New file.
3850         * java/awt/image/ImageObserver.java: New file.
3852 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3854         Merged implementation of java.applet from classpath:
3855         * java/applet/Applet.java: New file.
3856         * java/applet/AppletContext.java: New file.
3857         * java/applet/AppletStub.java: New file.
3858         * java/applet/AudioClip.java: New file.
3860         * Makefile.am: Added new java.applet classes.
3861         * Makefile.in: Rebuilt.
3863 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3865         AWT Stuff:
3866         * java/util/ResourceBundle.java (getLocale): stub.
3867         * Makefile.am: Added new AWT classes.
3868         * Makefile.in: Rebuilt.
3869         * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
3870         constructors. Fix toString() and paramString().
3871         * java/awt/AWTEventMulticaster.java: New class. Implemented.
3872         * java/awt/CheckboxGroup.java: New class.
3873         * java/awt/ColorModel.java: New class.
3874         * java/awt/Component.java: Added stubs for most methods. Implemented
3875         event dispatch.
3876         * java/awt/Container.java: ditto.
3877         * java/awt/ComponentOrientation.java: New class. Partly implemented.
3878         * java/awt/Cursor.java: ditto.
3879         * java/awt/Event.java: Fix paramString().
3880         * java/awt/EventQueue.java: New class. Implemented.
3881         * java/awt/Font.java: Added additional stub methods. Implemented
3882         toString().
3883         * java/awt/FontMetrics.java: New class. Stubbed.
3884         * java/awt/GraphicsConfiguration.java: New class. Complete, except for
3885         Java2D parts.
3886         * java/awt/Insets.java: New class. Implemented.
3887         * java/awt/Menu.java: Add new methods. Partially implemented.
3888         * java/awt/MenuItem.java: Add new methods and fields. Partially
3889         implemented.
3890         * java/awt/MenuShortcut.java: New class. Implemented.
3891         * java/awt/Panel.java: New class. Placeholder.
3892         * java/awt/PopupMenu.java: New class. Stubbed.
3893         * java/awt/Rectangle.java: New class. Implemented.
3894         * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3895         * java/awt/event/ActionEvent.java: Implement paramString().
3896         * java/awt/event/AdjustmentEvent.java: Implement paramString().
3897         * java/awt/event/ComponentEvent.java: Implement paramString().
3898         * java/awt/event/ContainerEvent.java: Implement paramString().
3899         * java/awt/event/FocusEvent.java: Implement paramString().
3900         * java/awt/event/HierarchyBoundsAdapter.java: New class.
3901         * java/awt/event/HierarchyBoundsListener.java: New class.
3902         * java/awt/event/HierarchyEvent.java: New class.
3903         * java/awt/event/HierarchyListener.java: New class.
3904         * java/awt/event/InputMethodEvent.java: Implement paramString().
3905         * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
3906         exception if !catchExceptions.
3907         * java/awt/event/ItemEvent.java: Implement paramString().
3908         * java/awt/event/KeyEvent.java: Implement paramString().
3909         * java/awt/event/MouseEvent.java: Implement paramString().
3910         * java/awt/event/PaintEvent.java: Implement paramString().
3911         * java/awt/event/TextEvent.java: Implement paramString().
3912         * java/awt/event/WindowEvent.java: Implement paramString().
3914         AWT Peer interfaces:
3915         * java/awt/peer/ButtonPeer.java: New file.
3916         * java/awt/peer/ListPeer.java: New file.
3917         * java/awt/peer/CanvasPeer.java: New file.
3918         * java/awt/peer/MenuBarPeer.java: New file.
3919         * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3920         * java/awt/peer/MenuComponentPeer.java: New file.
3921         * java/awt/peer/CheckboxPeer.java: New file.
3922         * java/awt/peer/MenuItemPeer.java: New file.
3923         * java/awt/peer/ChoicePeer.java: New file.
3924         * java/awt/peer/MenuPeer.java: New file.
3925         * java/awt/peer/ComponentPeer.java: Implemented.
3926         * java/awt/peer/PanelPeer.java: New file.
3927         * java/awt/peer/ContainerPeer.java: Implemented.
3928         * java/awt/peer/PopupMenuPeer.java: New file.
3929         * java/awt/peer/DialogPeer.java: New file.
3930         * java/awt/peer/ScrollPanePeer.java: New file.
3931         * java/awt/peer/FileDialogPeer.java: New file.
3932         * java/awt/peer/ScrollbarPeer.java: New file.
3933         * java/awt/peer/FontPeer.java: New file.
3934         * java/awt/peer/TextAreaPeer.java: New file.
3935         * java/awt/peer/FramePeer.java: Implemented.
3936         * java/awt/peer/TextComponentPeer.java: New file.
3937         * java/awt/peer/LabelPeer.java: New file.
3938         * java/awt/peer/TextFieldPeer.java: New file.
3939         * java/awt/peer/LightweightPeer.java: New file.
3940         * java/awt/peer/WindowPeer.java: Implemented.
3942 2000-07-06  Tom Tromey  <tromey@cygnus.com>
3944         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3945         Initialize static final String fields.
3947 2000-07-03  Tom Tromey  <tromey@cygnus.com>
3949         * java/io/PrintWriter.java (print): Call write(String), not
3950         print(String).  See PR libgcj/277.
3951         (print(String)): Use write, not out.write.
3953 2000-06-30  Tom Tromey  <tromey@cygnus.com>
3955         * include/jni.h: Include <gcj/array.h>.  Fixes PR libgcj/270.
3957 2000-06-27  Andrew Haley  <aph@cygnus.com>
3959        * java/io/File.java (createTempFile): Close the FileDescriptor
3960        used to create a temp file.  Fixes some of PR 203.
3961        * java/io/natFileDescriptorPosix.cc (open): Call garbage
3962        collection if we run out of file handles.
3964 2000-06-28  Warren Levy  <warrenl@cygnus.com>
3966         * gnu/java/security/provider/Gnu.java: New file.
3967         * gnu/java/security/provider/SHA.java: New file.
3968         * gnu/java/security/provider/SHA1PRNG.java: New file.
3969         * Makefile.am: Added the above files.
3970         * Makefile.in: Rebuilt.
3972         * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3974 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
3976         * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3977         (destroyed_flag): Removed.
3978         (isDestroyed, removeGroup, removeThread): Test for parent == null.
3979         (activeCount): Added spec note.
3981 2000-06-27  Warren Levy  <warrenl@cygnus.com>
3983         * java/security/Principal.java: New file.
3984         * Makefile.am: Added Principal.java.
3985         * Makefile.in: Rebuilt.
3987 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3989         * java/awt/event/MouseEvent.java: Fixed coordinate space
3990         confusion.
3992 2000-06-27  Tom Tromey  <tromey@cygnus.com>
3994         * java/io/PushbackInputStream.java (read): If there are characters
3995         in the buffer, don't also call super.read().
3996         * java/io/PushbackReader.java (read): If there are characters in
3997         the buffer, don't also call super.read().
3999         * java/lang/Double.java (valueOf): Call parseDouble().
4001 2000-06-26  Warren Levy  <warrenl@cygnus.com>
4003         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
4004         (newVal): Renamed to newValue.
4005         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
4006         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
4007         (revokeNow): Renamed to invalidateRefs.
4008         * java/io/OptionalDataException.java: Updated FIXME.
4009         (eof): New placeholder field.
4010         (length); Ditto.
4011         * java/io/WriteAbortedException.java (message): Made transient.
4012         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
4013         * java/lang/Throwable.java (stackTrace): Made transient.
4014         * java/net/InetAddress.java: Made Serializable.
4015         * java/security/KeyPair.java: Made Serializable.
4016         * java/security/Provider.java: Replaced with Classpath version that
4017         implements serialization and proper methods.
4018         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
4019         (limits): Renamed to choiceLimits.
4021 2000-06-24  Tom Tromey  <tromey@cygnus.com>
4023         * java/lang/natDouble.cc (parseDouble): Renamed from
4024         doubleValueOf.
4025         * java/lang/Double.java (parseDouble): Renamed from
4026         doubleValueOf.  Now public.
4028 2000-06-23  Andrew Haley  <aph@cygnus.com>
4030         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
4031         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
4033 2000-06-23  Tom Tromey  <tromey@cygnus.com>
4035         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
4036         * java/lang/natDouble.cc: Always include <alloca.h>.
4037         Fix for PR libgcj/267.
4039 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
4041         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
4042         comply with classpath VM spec.
4043         (add(Group)): Rename to addGroup().
4044         * java/lang/Thread.java (Thread): Use addThread().
4045         * java/lang/natThread.cc (finish_): Use removeThread().
4047 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
4049         * java/lang/ThreadGroup.java: Merged with classpath.
4050         * prims.cc (_Jv_RunMain): Don't use `main_group'.
4051         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
4052         argument.
4053         * java/lang/Thread.java (Thread): Bootstrap initial thread from
4054         ThreadGroup.root if Thread.currentThread is null. Honour the
4055         ThreadGroup's max priority setting.
4057 2000-06-18  Tom Tromey  <tromey@cygnus.com>
4059         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
4060         returned class.  For PR gcj/260.
4062 2000-06-16  Tom Tromey  <tromey@cygnus.com>
4064         Fix for PR libgcj/261:
4065         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
4066         argument.
4067         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
4068         argument.  (This is a patch from long ago that somehow went
4069         missing.)
4071 2000-06-15  Tom Tromey  <tromey@cygnus.com>
4073         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
4074         (read): Use it.
4075         (write): Likewise.
4077 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
4079         Fix for PR java.lang/258:
4080         * prims.cc (_Jv_PrimClass): Set state of primitive class to
4081         JV_STATE_DONE, to prevent accidental initialization.
4082         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
4083         _Jv_InterfaceAssignableFrom if target is an interface and source is an
4084         interface or an abstract class. Remove redundant initializeClass calls.
4085         Remove duplicate if_idt test.
4086         (_Jv_InterfaceAssignableFrom): New function.
4087         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
4089 2000-05-31  Tom Tromey  <tromey@cygnus.com>
4091         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
4092         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
4093         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
4094         (NUM_OBJECT_METHODS): New define.
4095         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
4096         `array_vtable' parameter.  Added assertion.
4097         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
4098         parameter.
4100 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
4102         * gcj/cni.h: Include <string.h>.
4103         * defineclass.cc: Include <alloca.h>.
4104         * interpret.cc: Ditto.
4105         * gij.cc: Include <stdlib.h>.
4107 2000-05-30  Tom Tromey  <tromey@cygnus.com>
4109         * include/name-finder.h: Include <sys/wait.h>.
4110         (_Jv_name_finder::pid): Now of type `pid_t'.
4111         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
4112         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
4113         `proc.waitFor()'.
4115 2000-05-24  Warren Levy  <warrenl@cygnus.com>
4117         * java/io/ObjectOutputStream.java (writeObject): Use component type
4118         when writing arrays.
4119         Fixed typo.
4121 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
4123         Fix for PR libgcj/226:
4124         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
4125         since this is an installed header.
4127         Fix for PR libgcj/228:
4128         * java/util/zip/ZipFile (getInputStream): Create inflater with
4129         nowrapper option.
4131         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
4132         with DataFormatException.
4134 2000-05-20  Tom Tromey  <tromey@cygnus.com>
4136         * Makefile.in: Rebuilt.
4137         * Makefile.am (hack1): Removed.
4138         (awto_files): Likewise.
4139         (libgcjawt_la_SOURCES): Likewise.
4140         (EXTRA_libgcjawt_la_SOURCES): Likewise.
4141         (libgcjawt_la_DEPENDENCIES): Likewise.
4142         (libgcjawt_la_LIBADD): Likewise.
4143         (libgcjawt_la_LDFLAGS): Likewise.
4144         (libgcjawt_la_LINK): Likewise.
4145         ($(awt_java_source_files:.java=.class)): Likewise.
4146         (libgcj.zip): Don't depend on AWT files.
4147         (MOSTLYCLEANFILES): Don't include AWT files.
4148         ($(awto_files)): Removed.
4149         (nat_headers): Removed AWT files.
4150         (cond_awt_java_source_files): Removed.
4151         (ordinary_java_source_files): Added awt_java_source_files.
4152         * libgcj.spec.in (*lib): Removed -lgcjawt.
4153         * configure: Rebuilt.
4154         * configure.in: Removed --enable-java-awt option.
4156 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
4158         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
4159         (ZipEntry): Copy the `name' field.
4160         (clone): Implement JDK1.2 method.
4161         (setCompressedSize): ditto.
4162         (hashCode): ditto.
4164 2000-05-19  Tom Tromey  <tromey@cygnus.com>
4166         * java/io/BufferedWriter.java: Merged with Classpath.
4167         * java/io/BufferedOutputStream.java: Merged with Classpath.
4169 2000-05-16  Andrew Haley  <aph@cygnus.com>
4171         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
4172         build_ia64_frame_state.
4173         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
4174         defintion in gcc.
4176 2000-05-15  Warren Levy  <warrenl@cygnus.com>
4178         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
4179         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
4180         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
4181         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
4182         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
4183         * gnu/gcj/beans/editors/FontEditor.java: Removed.
4184         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
4185         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
4186         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
4187         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
4188         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
4189         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
4190         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
4191         * gnu/gcj/beans/editors/StringEditor.java: Removed.
4192         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
4193         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
4194         * gnu/gcj/io/NullOutputStream.java: Removed.
4195         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
4196         * gnu/gcj/lang/ArrayHelper.java: Removed.
4197         * gnu/gcj/lang/ClassHelper.java: Removed.
4198         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
4200         * gnu/java/beans/BeanInfoEmbryo.java: New file.
4201         * gnu/java/beans/EmptyBeanInfo.java: New file.
4202         * gnu/java/beans/ExplicitBeanInfo.java: New file.
4203         * gnu/java/beans/IntrospectionIncubator.java: New file.
4204         * gnu/java/beans/editors/ColorEditor.java: New file.
4205         * gnu/java/beans/editors/FontEditor.java: New file.
4206         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
4207         * gnu/java/beans/editors/NativeByteEditor.java: New file.
4208         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
4209         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
4210         * gnu/java/beans/editors/NativeIntEditor.java: New file.
4211         * gnu/java/beans/editors/NativeLongEditor.java: New file.
4212         * gnu/java/beans/editors/NativeShortEditor.java: New file.
4213         * gnu/java/beans/editors/StringEditor.java: New file.
4214         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
4215         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
4216         * gnu/java/io/NullOutputStream.java: New file.
4217         * gnu/java/io/ObjectIdentityWrapper.java: New file.
4218         * gnu/java/lang/ArrayHelper.java: New file.
4219         * gnu/java/lang/ClassHelper.java: New file.
4220         * gnu/java/lang/reflect/TypeSignature.java: New file.
4222         * Makefile.am: Updated for moving Classpath files from gnu/gcj
4223         namespace back to the original Classpath gnu/java namespace.
4224         * Makefile.in: Rebuilt.
4226         * java/beans/Beans.java: Namespace change.
4227         * java/beans/EventSetDescriptor.java: Namespace change.
4228         * java/beans/Introspector.java: Namespace change.
4229         * java/beans/PropertyEditorManager.java: Namespace change.
4230         * java/io/ObjectInputStream.java: Namespace change.
4231         * java/io/ObjectOutputStream.java: Namespace change.
4232         * java/io/ObjectStreamClass.java: Namespace change.
4233         * java/io/ObjectStreamField.java: Namespace change.
4235 2000-04-21  Warren Levy  <warrenl@cygnus.com>
4237         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
4238         now that compiler patch is available.
4239         Removed unneeded System.loadLibrary.
4240         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
4241         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
4243 2000-04-19  Andrew Haley  <aph@cygnus.com>
4245         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
4246         and target classes have been initialized.
4248 2000-04-19  Andrew Haley  <aph@cygnus.com>
4250         * java/lang/String.java: implement Serializable, Comparable.
4251         (compareTo (Object)): New method.
4253 2000-04-19  Warren Levy  <warrenl@cygnus.com>
4255         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
4256         instead of getField to retrieve non-public field.
4257         (getSerialPersistantFields): Ditto.
4259 2000-04-18  Warren Levy  <warrenl@cygnus.com>
4261         * mauve-libgcj: Turned off object serialization tests temporarily
4262         due to compiler error.
4264 2000-04-17  Warren Levy  <warrenl@cygnus.com>
4266         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
4267         to avoid build problem.
4268         (DEBUGln): Ditto.
4269         * mauve-libgcj: Turned on object serialization tests.
4271 2000-04-17  Tom Tromey  <tromey@cygnus.com>
4273         * libgcj.spec.in (*lib): Added -lgcjawt.
4275 2000-04-17  Andrew Haley  <aph@cygnus.com>
4277         * Makefile.am: Add new files:
4278         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
4279         gnu/gcj/io/shs.cc.
4280         * Makefile.in: Rebuilt.
4282         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
4283         interface that has no implementations.
4284         Check for an attempt to assign an abstract class to an interface.
4286         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
4287         if we fail to find MessageDigest.getInstance ("SHA").
4289         * gnu/gcj/io/SimpleSHSStream.java: New file.
4290         * gnu/gcj/io/natSimpleSHSStream.java: New file.
4291         * gnu/gcj/io/shs.cc: New file.
4292         * gnu/gcj/io/shs.h: new file.
4294         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
4295         serializable.
4297         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
4298         punctuation from the classname of an array element.
4300         * gcj/javaprims.h: Add SimpleDigestStream.
4302 2000-04-17  Andrew Haley  <aph@cygnus.com>
4304         * java/lang/natClass.cc (getPrivateField): Make recursive calls
4305         to getPrivateField for superclasses.
4307 2000-04-14  Andrew Haley  <aph@cygnus.com>
4309         * Makefile.am: Add new files:
4310         java/io/ObjectOutputStream$PutField.h,
4311         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
4312         java/io/natObjectOutputStream.cc
4313         * Makefile.in: Rebuilt.
4314         * gcj/Makefile.in: Rebuilt.
4315         * include/Makefile.in: Rebuilt.
4316         * java/lang/Class.h (getPrivateField): New method.
4317         (getPrivateMethod): Ditto.
4318         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
4319         and java::io::ObjectStreamClass our friends.
4320         * java/lang/natClass.cc (getPrivateField): New method.
4321         (getPrivateMethod): Ditto.
4322         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
4323         * gcj/javaprims.h: Add serialization classes.
4324         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
4325         (setByteField): Ditto.
4326         (setCharField): Ditto.
4327         (setDoubleField): Ditto.
4328         (setFloatField): Ditto.
4329         (setIntField): Ditto.
4330         (setLongField): Ditto.
4331         (setShortField): Ditto.
4332         (setObjectField): Ditto.
4333         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
4334         Java.
4335         (getByteField): Ditto.
4336         (getCharField): Ditto.
4337         (getDoubleField): Ditto.
4338         (getFloatField): Ditto.
4339         (getIntField): Ditto.
4340         (getLongField): Ditto.
4341         (getShortField): Ditto.
4342         (getObjectField): Ditto.
4343         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
4344         Java.
4345         (getSerialPersistantFields): Ditto.
4346         (getDefinedSUID): Ditto.
4347         * java/io/natObjectOutputStream.cc: New file.
4348         * java/io/natObjectInputStream.cc: New file.
4350 2000-04-13  Warren Levy  <warrenl@cygnus.com>
4352         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
4353         problems.  Revert to previous version to reproduce and when fixed.
4355 2000-04-13  Warren Levy  <warrenl@cygnus.com>
4357         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
4358         * gnu/gcj/io/NullOutputStream.java: New file.
4359         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
4360         * java/io/BlockDataException.java: New file.
4361         * java/io/Externalizable.java: New file.
4362         * java/io/InvalidClassException.java: New file.
4363         * java/io/InvalidObjectException.java: New file.
4364         * java/io/NotActiveException.java: New file.
4365         * java/io/NotSerializableException.java: New file.
4366         * java/io/ObjectInput.java: New file.
4367         * java/io/ObjectInputStream.java: New file.
4368         * java/io/ObjectInputValidation.java: New file.
4369         * java/io/ObjectOutput.java: New file.
4370         * java/io/ObjectOutputStream.java: New file.
4371         * java/io/ObjectStreamClass.java: New file.
4372         * java/io/ObjectStreamConstants.java: New file.
4373         * java/io/ObjectStreamField.java: New file.
4374         * java/io/Replaceable.java: New file.
4375         * java/io/Resolvable.java: New file.
4376         * java/io/SerializablePermission.java: New file.
4377         * java/io/WriteAbortedException.java: New file.
4378         * java/security/BasicPermission.java: New file.
4379         * java/security/DigestOutputStream.java: New file.
4380         * java/security/Guard.java: New file.
4381         * java/security/Permission.java: New file.
4382         * java/security/PermissionCollection.java: New file.
4383         * Makefile.am: Added above files.
4384         * Makefile.in: Rebuilt.
4386         * java/beans/Beans.java (instantiate): Activated serialization code.
4387         * java/lang/SecurityManager.java (checkPermission): New method.
4389 2000-04-12  Warren Levy  <warrenl@cygnus.com>
4391         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
4392         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
4393         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
4394         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
4395         * gnu/gcj/beans/editors/ColorEditor.java: New file.
4396         * gnu/gcj/beans/editors/FontEditor.java: New file.
4397         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
4398         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
4399         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
4400         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
4401         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
4402         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
4403         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
4404         * gnu/gcj/beans/editors/StringEditor.java: New file.
4405         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
4406         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
4407         * gnu/gcj/lang/ArrayHelper.java: New file.
4408         * gnu/gcj/lang/ClassHelper.java: New file.
4409         * java/beans/BeanDescriptor.java: New file.
4410         * java/beans/BeanInfo.java: New file.
4411         * java/beans/Beans.java: New file.
4412         * java/beans/Customizer.java: New file.
4413         * java/beans/DesignMode.java: New file.
4414         * java/beans/EventSetDescriptor.java: New file.
4415         * java/beans/FeatureDescriptor.java: New file.
4416         * java/beans/IndexedPropertyDescriptor.java: New file.
4417         * java/beans/IntrospectionException.java: New file.
4418         * java/beans/Introspector.java: New file.
4419         * java/beans/MethodDescriptor.java: New file.
4420         * java/beans/ParameterDescriptor.java: New file.
4421         * java/beans/PropertyChangeEvent.java: New file.
4422         * java/beans/PropertyChangeListener.java: New file.
4423         * java/beans/PropertyChangeSupport.java: New file.
4424         * java/beans/PropertyDescriptor.java: New file.
4425         * java/beans/PropertyEditor.java: New file.
4426         * java/beans/PropertyEditorManager.java: New file.
4427         * java/beans/PropertyEditorSupport.java: New file.
4428         * java/beans/PropertyVetoException.java: New file.
4429         * java/beans/SimpleBeanInfo.java: New file.
4430         * java/beans/VetoableChangeListener.java: New file.
4431         * java/beans/VetoableChangeSupport.java: New file.
4432         * java/beans/Visibility.java: New file.
4433         * java/beans/beancontext/BeanContext.java: New file.
4434         * java/beans/beancontext/BeanContextChild.java: New file.
4435         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
4436         * java/beans/beancontext/BeanContextChildSupport.java: New file.
4437         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
4438         * java/beans/beancontext/BeanContextEvent.java: New file.
4439         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
4440         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
4441         * java/beans/beancontext/BeanContextProxy.java: New file.
4442         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
4443         New file.
4444         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
4445         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
4446         New file.
4447         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
4448         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
4449         New file.
4450         * java/beans/beancontext/BeanContextServices.java: New file.
4451         * java/beans/beancontext/BeanContextServicesListener.java: New file.
4452         * java/util/AbstractCollection.java: New file.
4453         * java/util/AbstractList.java: New file.
4454         * java/util/Arrays.java: New file.
4455         * Makefile.am: Added above files.
4456         * Makefile.in: Rebuilt.
4458 2000-04-11  Warren Levy  <warrenl@cygnus.com>
4460         * java/awt/AWTError.java: New file.
4461         * java/awt/AWTEvent.java: New file.
4462         * java/awt/AWTException.java: New file.
4463         * java/awt/ActiveEvent.java: New file.
4464         * java/awt/Adjustable.java: New file.
4465         * java/awt/BorderLayout.java: New file.
4466         * java/awt/Color.java: New file.
4467         * java/awt/Component.java: New file.
4468         * java/awt/Container.java: New file.
4469         * java/awt/Dimension.java: New file.
4470         * java/awt/Event.java: New file.
4471         * java/awt/Font.java: New file.
4472         * java/awt/Frame.java: New file.
4473         * java/awt/Graphics.java: New file.
4474         * java/awt/IllegalComponentStateException.java: New file.
4475         * java/awt/Image.java: New file.
4476         * java/awt/ItemSelectable.java: New file.
4477         * java/awt/LayoutManager.java: New file.
4478         * java/awt/LayoutManager2.java: New file.
4479         * java/awt/Menu.java: New file.
4480         * java/awt/MenuBar.java: New file.
4481         * java/awt/MenuComponent.java: New file.
4482         * java/awt/MenuContainer.java: New file.
4483         * java/awt/MenuItem.java: New file.
4484         * java/awt/Paint.java: New file.
4485         * java/awt/PaintContext.java: New file.
4486         * java/awt/Point.java: New file.
4487         * java/awt/Rectangle.java: New file.
4488         * java/awt/Shape.java: New file.
4489         * java/awt/TextArea.java: New file.
4490         * java/awt/TextComponent.java: New file.
4491         * java/awt/Toolkit.java: New file.
4492         * java/awt/Transparency.java: New file.
4493         * java/awt/Window.java: New file.
4494         * java/awt/natToolkit.cc: New file.
4495         * java/awt/event/AWTEventListener.java: New file.
4496         * java/awt/event/ActionEvent.java: New file.
4497         * java/awt/event/ActionListener.java: New file.
4498         * java/awt/event/AdjustmentEvent.java: New file.
4499         * java/awt/event/AdjustmentListener.java: New file.
4500         * java/awt/event/ComponentAdapter.java: New file.
4501         * java/awt/event/ComponentEvent.java: New file.
4502         * java/awt/event/ComponentListener.java: New file.
4503         * java/awt/event/ContainerAdapter.java: New file.
4504         * java/awt/event/ContainerEvent.java: New file.
4505         * java/awt/event/ContainerListener.java: New file.
4506         * java/awt/event/FocusAdapter.java: New file.
4507         * java/awt/event/FocusEvent.java: New file.
4508         * java/awt/event/FocusListener.java: New file.
4509         * java/awt/event/InputEvent.java: New file.
4510         * java/awt/event/InputMethodEvent.java: New file.
4511         * java/awt/event/InputMethodListener.java: New file.
4512         * java/awt/event/InvocationEvent.java: New file.
4513         * java/awt/event/ItemEvent.java: New file.
4514         * java/awt/event/ItemListener.java: New file.
4515         * java/awt/event/KeyAdapter.java: New file.
4516         * java/awt/event/KeyEvent.java: New file.
4517         * java/awt/event/KeyListener.java: New file.
4518         * java/awt/event/MouseAdapter.java: New file.
4519         * java/awt/event/MouseEvent.java: New file.
4520         * java/awt/event/MouseListener.java: New file.
4521         * java/awt/event/MouseMotionAdapter.java: New file.
4522         * java/awt/event/MouseMotionListener.java: New file.
4523         * java/awt/event/PaintEvent.java: New file.
4524         * java/awt/event/TextEvent.java: New file.
4525         * java/awt/event/TextListener.java: New file.
4526         * java/awt/event/WindowAdapter.java: New file.
4527         * java/awt/event/WindowEvent.java: New file.
4528         * java/awt/event/WindowListener.java: New file.
4529         * java/awt/geom/Dimension2D.java: New file.
4530         * java/awt/geom/Point2D.java: New file.
4531         * java/awt/peer/ComponentPeer.java: New file.
4532         * java/awt/peer/ContainerPeer.java: New file.
4533         * java/awt/peer/FramePeer.java: New file.
4534         * java/awt/peer/WindowPeer.java: New file.
4535         * java/util/Collection.java: New file.
4536         * java/util/Comparator.java: New file.
4537         * java/util/Iterator.java: New file.
4538         * java/util/List.java: New file.
4539         * java/util/ListIterator.java: New file.
4540         * Makefile.am: Added above files.
4541         * Makefile.in: Rebuilt.
4543 2000-04-10  Warren Levy  <warrenl@cygnus.com>
4545         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
4546         * java/lang/FirstThread.java: Ditto.
4547         * java/lang/StringBuffer.java: Ditto.
4548         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4550         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
4551         Special case handled in java.math.BigInteger.
4552         * java/math/BigInteger.java (divide): Handle the special case when
4553         dividing by 1 and the high bit of the dividend is set.
4554         (setShiftRight): Handle case when count == 0.
4556 2000-04-05  Andrew Haley  <aph@cygnus.com>
4558         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
4559         special case.
4561 2000-04-05  Andrew Haley  <aph@cygnus.com>
4563         * sysdep/ia64.c (rse_address_add): Delete.
4564         (IS_NaT_COLLECTION_ADDR): Delete.
4565         (ia64_backtrace_helper): check for null unwind_info.
4567         * sysdep/ia64-frame.h: add calc_caller_bsp.
4569         * java/lang/natThrowable.cc (printRawStackTrace): Flush
4570         PrintWriter.
4572         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4573         (_Jv_remI): Likewise.
4574         (_Jv_divJ): Likewise.
4575         (_Jv_remJ): Likewise.
4577         * interpret.cc (continue1): Use divide subroutines to guarantee
4578         correct Java standard behaviour.
4579         Floating-point division should not abort; make it so.
4581 2000-03-29  Tom Tromey  <tromey@cygnus.com>
4583         * configure: Rebuilt.
4584         * configure.in: Test against `libgcj_sjlj', not
4585         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
4586         to be set even when using sjlj.
4588 2000-03-24  Andrew Haley  <aph@cygnus.com>
4590         * Makefile.am: Add file addr2name.awk.
4591         * Makefile.in: Rebuilt.
4592         * addr2name.awk: New file.
4593         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4594         lookups on ia64.
4595         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4596         blank line.
4598 2000-03-22  Andrew Haley  <aph@cygnus.com>
4600         * configure.host: Add -funwind-tables for IA64.
4601         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4602         * Makefile.in: Rebuilt.
4603         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4604         * sysdep/ia64.c: New file.
4605         * sysdep/ia64-frame.h: New file.
4606         * configure.in: Add sysdep/ia64.c for ia64.
4607         * configure: Rebuilt.
4609 2000-03-17  Andrew Haley  <aph@cygnus.com>
4611         * java/lang/natString.cc: Remove `register' keyword.
4612         interpret.cc: ditto.
4614 2000-03-16  Andrew Haley  <aph@cygnus.com>
4616         * configure.host (ia64): Enable interpreter.
4618 2000-03-14  Hans Boehm  <boehm@acm.org>
4620         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4622 2000-03-14  Andrew Haley  <aph@cygnus.com>
4624         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4625         `_exception'.
4627 2000-03-10  Andrew Haley  <aph@cygnus.com>
4629         * java/lang/ieeefp.h: Import latest version from fdlibm.
4631 2000-03-14  Andrew Haley  <aph@cygnus.com>
4633         * prims.cc (_Jv_ThrowSignal): New function.
4634         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4635         (catch_fpe): Ditto.
4636         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4637         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4638         * include/ppc-signal.h: New file.
4640 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
4642         * java/lang/Thread.java: Declare `data' as Object, not RawData.
4643         * java/lang/natThread.java (initialize_native): Cast `data' to
4644         jobject.
4645         * gnu/gcj/RawData.java: Clarify documentation.
4647         From Gregory R. Warnes <warnes@biostat.washington.edu>:
4648         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4649         `jarFile', not `jarFileURL'.
4651 2000-05-15  Andrew Haley  <aph@cygnus.com>
4653         * include/ppc-signal.h: New file.
4655 2000-05-11  Tom Tromey  <tromey@cygnus.com>
4657         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4658         file headers, don't include `size' in the skip call.
4660 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
4662         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4663         Avoid arrayCopy() call where possible. Update `count' _after_ calling
4664         arrayCopy().
4665         (replace): Reimplemented. Fix javadoc.
4666         (reverse): Call ensureCapacity_unsynchronized().
4667         (StringBuffer (String)): Use DEFAULT_CAPACITY.
4669         (replace): Calculate length for arraycopy() correctly.
4671 2000-05-09  Tom Tromey  <tromey@cygnus.com>
4673         * java/lang/StringBuffer.java (toString): Don't mark buffer as
4674         shared.
4675         (insert(int,char[],int,int): New method.
4676         (delete): New method from Classpath.
4677         (deleteCharAt): Likewise.
4678         (substring): Likewise.
4679         (shared): No longer private.
4680         Added JavaDoc comments from Classpath.
4681         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4682         shared.
4684 2000-05-07  Tom Tromey  <tromey@cygnus.com>
4686         * Makefile.in: Rebuilt.
4687         * Makefile.am (LIBLINK): New macro.
4688         (libgcj_la_LINK): Use it.
4689         (libgcjawt_la_LINK): Likewise.
4691 2000-05-06  Tom Tromey  <tromey@cygnus.com>
4693         * Makefile.in: Rebuilt.
4694         * Makefile.am (libgcj.zip): Don't pass -L to javac.
4696 2000-05-05  Tom Tromey  <tromey@cygnus.com>
4698         Fix for PR libgcj/220:
4699         * Makefile.in: Rebuilt.
4700         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4701         (jv_convert_LDFLAGS): Likewise.
4702         (libgcj_la_LDFLAGS): Likewise.
4703         (GCJLINK): New macro.
4704         (jv_convert_LINK): Use it.
4705         (gij_LINK): Likewise.
4706         (libgcj_la_LINK): New macro.
4707         (libgcjawt_la_LINK): Likewise.
4709 2000-05-04  Tom Tromey  <tromey@cygnus.com>
4711         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4712         field.
4713         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
4714         `0x0008'.
4715         Include Modifier.h.
4717 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
4719         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4720         (_Jv_IsAssignableFrom): Ditto.
4721         (_Jv_IsInstanceOf): Ditto.
4722         (_Jv_CheckCast): Ditto.
4723         (_Jv_CheckArrayStore): Ditto.
4724         * java/lang/Class.h (_Jv_InitClass): Ditto.
4725         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4726         not `0'.
4727         (notify): Ditto.
4728         (notifyAll): Ditto.
4729         (wait): Ditto.
4730         (_Jv_MonitorExit): Ditto.
4731         * boehm.cc (_Jv_MarkObj): Ditto.
4732         (_Jv_MarkObj): Ditto.
4733         (_Jv_MarkArray): Ditto.
4734         * prims.cc (_Jv_AllocObject): Ditto.
4735         (_Jv_NewObjectArray): Ditto.
4736         (_Jv_NewPrimArray): Ditto.
4737         (_Jv_Malloc): Ditto.
4738         (_Jv_Realloc): Ditto.
4739         (_Jv_MallocUnchecked): Ditto.
4740         (_Jv_divI): Ditto.
4741         (_Jv_remI): Ditto.
4742         (_Jv_divJ): Ditto.
4743         (_Jv_remJ): Ditto.
4745 2000-05-04  Tom Tromey  <tromey@cygnus.com>
4747         * java/util/Locale.java (Locale): Don't explicitly check for
4748         null.
4749         * java/util/Hashtable.java (containsKey): Don't explicitly check
4750         for null.
4751         (get): Likewise.
4752         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4753         null.
4754         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4755         for null.
4756         * java/text/StringCharacterIterator.java
4757         (StringCharacterIterator): Don't check for null.
4758         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4759         for null pointer.
4760         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4761         check for null pointer.
4762         (leaveGroup): Likewise.
4763         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4764         comment.
4765         (setData): Likewise.
4766         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4767         for `p==null'.
4769 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
4771         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4772         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4773         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4774         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4775         -rpath for in-gcc builds.
4776         * Makefile.in: Rebuilt.
4778 2000-04-28  Tom Tromey  <tromey@cygnus.com>
4780         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4781         Fix for PR gcj/218.
4783 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
4785         * libjava/java/lang/String.java (toString): Remove `final' hack.
4787 2000-04-05  Tom Tromey  <tromey@cygnus.com>
4789         Runtime support for PR gcj/2:
4790         * prims.cc (_Jv_ThrowNullPointerException): New function.
4791         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4793 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
4795         * prims.cc (_Jv_NewObjectArray): Fix typo.
4797 2000-04-26  Tom Tromey  <tromey@cygnus.com>
4799         * Makefile.in: Rebuilt.
4800         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4802 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
4804         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4805         calling main.
4807 2000-04-22  Anthony Green  <green@cygnus.com>
4809         * include/jvm.h (__builtin_expect): Define as unused for now.
4810         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4811         (notify): Ditto.
4812         (notifyAll): Ditto.
4813         (wait): Ditto.
4814         (_Jv_MonitorExit): Ditto.
4815         * boehm.cc (_Jv_MarkObj): Ditto.
4816         (_Jv_MarkObj): Ditto.
4817         (_Jv_MarkArray): Ditto.
4818         (_Jv_AllocBytes): Ditto.
4819         * prims.cc (_Jv_AllocObject): Ditto.
4820         (_Jv_NewObjectArray): Ditto.
4821         (_Jv_NewPrimArray): Ditto.
4822         (_Jv_Malloc): Ditto.
4823         (_Jv_Realloc): Ditto.
4824         (_Jv_MallocUnchecked): Ditto.
4825         (_Jv_divI): Ditto.
4826         (_Jv_remI): Ditto.
4827         (_Jv_divJ): Ditto.
4828         (_Jv_remJ): Ditto.
4830         * include/Makefile.in: Rebuilt.
4831         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4833 2000-04-21  Tom Tromey  <tromey@cygnus.com>
4835         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4836         Yet another new version from Classpath.
4838         Fix for PR libgcj/15:
4839         * java/util/natGregorianCalendar.cc (_REENTRANT,
4840         _POSIX_PTHREAD_SEMANTICS): Don't define.
4841         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4842         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4843         Don't define.
4844         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4845         define.
4846         * configure: Rebuilt.
4847         * configure.in: If using POSIX threads, define _REENTRANT if
4848         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
4849         GETHOSTBYNAME_R_NEEDS_REENTRANT.
4851         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4852         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4853         version from Classpath.
4855         Fix for PR libgcj/213:
4856         * Makefile.in: Rebuilt.
4857         * Makefile.am (gij_SOURCES): Added gij.cc.
4858         (EXTRA_gij_SOURCES): Removed.
4859         (gij_LDADD): Removed gij.lo.
4860         (gij_DEPENDENCIES): Likewise.
4861         ($(gij_OBJECTS)): Depend on nat_headers.
4863         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4864         `setURL', not `url.set'.
4866 2000-04-20  Tom Tromey  <tromey@cygnus.com>
4868         Fix for PR java.io/204:
4869         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4870         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4871         from Classpath.
4873         Fix for PR libgcj/212:
4874         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4875         * include/jvm.h (_Jv_word, _Jv_word2): Define.
4876         * java/lang/Class.h (_Jv_word): Declare.
4878         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4880 2000-04-19  Tom Tromey  <tromey@cygnus.com>
4882         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4883         doesn't have a loader.
4885 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
4887         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4888         MAYBE_MARK to ptr_t, for compatibility with new GC version.
4890 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
4892         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4893         libgcj/202.
4894         (available): Initialize `where' to prevent bogus compiler warning.
4896 2000-04-12  Tom Tromey  <tromey@cygnus.com>
4898         * java/lang/natString.cc (intern): Temporarily disable finalizer
4899         registration.
4901         * java/lang/natString.cc (unintern): Added `obj' argument.
4902         (intern): Register finalizer for string.
4903         * java/lang/String.java (unintern): Now static; added obj
4904         argument.
4906 2000-04-11  Tom Tromey  <tromey@cygnus.com>
4908         * java/util/Vector.java (VectorEnumeration): Now `final'.
4909         * java/util/Hashtable.java (HashtableEntry): Now `final'.
4910         (HashtableEnumeration): Likewise.
4911         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4912         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4914 2000-04-10  Warren Levy  <warrenl@cygnus.com>
4916         * java/io/ObjectStreamException.java: New file.
4917         * java/io/OptionalDataException.java: New file.
4918         * java/io/StreamCorruptedException.java: New file.
4919         * java/math/BigDecimal.java: New file.
4920         * java/sql/CallableStatement.java: New file.
4921         * java/sql/Connection.java: New file.
4922         * java/sql/DataTruncation.java: New file.
4923         * java/sql/DatabaseMetaData.java: New file.
4924         * java/sql/Date.java: New file.
4925         * java/sql/Driver.java: New file.
4926         * java/sql/DriverManager.java: New file.
4927         * java/sql/DriverPropertyInfo.java: New file.
4928         * java/sql/PreparedStatement.java: New file.
4929         * java/sql/ResultSet.java: New file.
4930         * java/sql/ResultSetMetaData.java: New file.
4931         * java/sql/SQLException.java: New file.
4932         * java/sql/SQLWarning.java: New file.
4933         * java/sql/Statement.java: New file.
4934         * java/sql/Time.java: New file.
4935         * java/sql/Timestamp.java: New file.
4936         * java/sql/Types.java: New file.
4937         * Makefile.am: Added above new files.
4938         * Makefile.in: Rebuilt.
4940         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4941         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4942         DatagramSocket constructor instead of null.
4944 2000-04-08  Anthony Green  <green@cygnus.com>
4946         * include/posix-threads.h (_Jv_MutexUnlock): Replace
4947         _JV_NOT_OWNER.
4949 2000-04-08  Anthony Green  <green@cygnus.com>
4951         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4952         (_Jv_MutexUnlock): Ditto.
4953         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4954         (_Jv_MutexUnlock): Ditto.
4956 2000-04-08  Anthony Green  <green@cygnus.com>
4958         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4959         (ensureCapacity_unsynchronized): New private method.
4960         (append): Use ensureCapacity_unsynchronized.
4962 2000-04-08  Tom Tromey  <tromey@cygnus.com>
4964         * Makefile.in: Rebuilt.
4965         * Makefile.am (awt_java_source_files): Added new files.
4966         * java/awt/IllegalComponentStateException.java: New file.
4967         * java/awt/ItemSelectable.java: New file.
4968         * java/awt/event/WindowEvent.java: Finished.
4969         * java/awt/event/TextEvent.java: Finished.
4970         * java/awt/event/ContainerEvent.java: New file.
4971         * java/awt/Component.java (getX, getY): New methods.
4972         * java/awt/event/PaintEvent.java: New file.
4973         * java/awt/event/MouseEvent.java: New file.
4974         * java/awt/ActiveEvent.java: New file.
4975         * java/awt/event/KeyEvent.java: Finished.
4976         * java/awt/event/ItemEvent.java: New file.
4977         * java/awt/Adjustable.java: New file.
4978         * java/awt/event/InputMethodEvent.java: New file.
4979         * java/awt/event/InputEvent.java: Finished.
4980         * java/awt/event/FocusEvent.java: New file.
4981         * java/awt/event/MouseMotionAdapter.java: New file.
4982         * java/awt/event/MouseAdapter.java: New file.
4983         * java/awt/event/KeyAdapter.java: New file.
4984         * java/awt/event/FocusAdapter.java: New file.
4985         * java/awt/event/ContainerAdapter.java: New file.
4986         * java/awt/event/ComponentEvent.java: Finished.
4987         * java/awt/event/AdjustmentEvent.java: New file.
4988         * java/awt/event/ComponentAdapter.java: New file.
4989         * java/awt/event/ActionEvent.java: Finished.
4990         * java/awt/event/MouseMotionListener.java: New file.
4991         * java/awt/event/MouseListener.java: New file.
4992         * java/awt/event/ItemListener.java: New file.
4993         * java/awt/event/InputMethodListener.java: New file.
4994         * java/awt/event/ContainerListener.java: New file.
4995         * java/awt/event/FocusListener.java: New file.
4996         * java/awt/event/ComponentListener.java: New file.
4997         * java/awt/event/AWTEventListener.java: New file.
4998         * java/awt/event/AdjustmentListener.java: New file.
5000 2000-04-08  Anthony Green  <green@cygnus.com>
5002         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
5003         check when we have to.
5005         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
5006         x) as `inline'.
5008         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
5009         one method call.
5011         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
5012         inline hasMoreElements.
5014 2000-04-05  Tom Tromey  <tromey@cygnus.com>
5016         * configure: Rebuilt.
5017         * configure.in: Recognize --enable-java-awt.
5018         (AWT): New conditional.
5019         * Makefile.in: Rebuilt.
5020         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
5021         requested.
5022         (libgcjawt_la_SOURCES): New macro.
5023         (EXTRA_libgcjawt_la_SOURCES): Likewise.
5024         (libgcjawt_la_DEPENDENCIES): Likewise.
5025         (libgcjawt_la_LIBADD): Likewise.
5026         (libgcjawt_la_LDFLAGS): Likewise.
5027         (libgcj.zip): Depend on cond_java_awt_source_files
5028         (cond_awt_java_source_files): New macro.
5029         (MOSTLYCLEANFILES): Added awto_files.
5030         (awto_files): New macro.  Use where javao_files used.
5031         (nat_headers): Use cond_awt_java_source_files.
5033 2000-04-04  Tom Tromey  <tromey@cygnus.com>
5035         * Makefile.in: Rebuilt.
5036         * Makefile.am (awt_java_source_files): Added AWTException.java.
5037         * java/awt/AWTException.java: New file.
5039 2000-04-03  Tom Tromey  <tromey@cygnus.com>
5041         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
5042         commentary from Alex.
5044         * Makefile.in: Rebuilt.
5045         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
5046         From H.J. Lu.
5048 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
5050         * configure: Rebuilt.
5051         * configure.in: Add --disable-jvmpi.
5052         * include/config.h.in: Rebuilt.
5053         * acconfig.h: Add ENABLE_JVMPI.
5055         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
5056         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
5057         (_Jv_JVMPI_Notify_THREAD_END): New define.
5058         (_Jv_JVMPI_Notify_THREAD_END): New define.
5059         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
5060         (_Jv_JVMPI_Notify_THREAD_END): Declare.
5061         (_Jv_JVMPI_Notify_THREAD_END): Declare.
5063         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
5064         events.
5066         * java/lang/natThread.cc: Include JVMPI headers if necessary.
5067         (finish_): Generate JVMPI thread end events.
5068         (run_): Generate JVMPI thread start events.
5069         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
5070         preloaded JNI library.
5071         Include JVMPI headers if necessary.
5072         (run): Generate JVMPI thread start events.
5074         * boehm.cc: Define GC_disable and GC_enable.
5075         (_Jv_DisableGC): New function.
5076         (_Jv_EnableGC): New function.
5077         (disable_gc_mutex): Declare.
5078         * nogc.cc (_Jv_DisableGC): New function.
5079         (_Jv_EnableGC): New function.
5081         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
5082         (_Jv_JVMPI_Interface): Define.
5083         (jvmpiEnableEvent): New function.
5084         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
5086         * include/jvmpi.h: New file.
5088 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
5090         * Makefile.in: New #defines and friends for Thread.h.
5091         * Makefile.am: Ditto.
5092         * posix-threads.cc: (struct starter): Remove `object'.
5093         (_Jv_CondWait): Use interruptable condition variables and new
5094         recursive mutexes. New return codes on interrupt or non-ownership
5095         of mutex.
5096         (_Jv_CondNotify): Ditto.
5097         (_Jv_CondNotifyAll): Ditto.
5098         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
5099         the target thread by signaling its wait condition.
5100         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
5101         not the starter struct. Initialize wait_mutex and wait_cond.
5102         (_Jv_MutexLock): New recursive mutex implementation. Moved from
5103         posix-threads.h.
5104         (_Jv_MutexUnlock): Ditto.
5105         (really_start): Set info->data->thread from pthread_self() to work
5106         around a race condition. Destroy wait_mutex and wait_cond when run()
5107         returns.
5108         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
5109         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
5110         set.
5111         startable_flag: New private field.
5112         (Thread): Initialize `startable_flag'.
5113         (toString): Check for null thread group.
5114         * java/lang/natThread.cc: (struct natThread): New fields
5115         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
5116         (class locker): Removed.
5117         (initialize_native): Initialize `join_cond' and `join_mutex'.
5118         (interrupt): Now just calls _Jv_ThreadInterrupt().
5119         (join): Simplified. Just wait on the target thread's join condition.
5120         (finish_): Remove join list code. Unset thread group. Signal
5121         potential joiners by notifying the dying threads join_cond.
5122         (start): Check for illegal restarts.
5123         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
5124         act appropriatly.
5125         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
5126         #defines and #ifdefs.
5127         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
5128         `wait_mutex', `next'.
5129         (struct _Jv_ConditionVariable_t): Define as a struct instead of
5130         directly mapping to pthread_cond_t.
5131         (struct _Jv_Mutex_t): New recursive implementation.
5132         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
5133         _Jv_HaveCondDestroy: Never define this for posix-threads.
5134         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
5135         (_Jv_CondNotifyAll): Ditto.
5136         (_Jv_MutexLock): Ditto.
5137         (_Jv_MutexUnlock): Ditto.
5138         (_Jv_MutexInit): Changed to reflect new mutex implementation.
5139         (_Jv_MutexDestroy): Ditto.
5140         (_Jv_CondDestroy): Removed.
5141         (_Jv_PthreadGetMutex): Removed.
5142         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
5143         error. Add a FIXME about this.
5144         (_Jv_CondNotifyAll): Ditto.
5145         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
5146         _JV_NOT_OWNER on other errors. Add FIXME.
5148 2000-03-26  Tom Tromey  <tromey@cygnus.com>
5150         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
5151         set, throw it.
5152         (call): Don't throw exception here.
5154 2000-03-26  Tom Tromey  <tromey@cygnus.com>
5156         * java/lang/mprec.h: Use SIZEOF_VOID_P.
5157         * interpret.cc: Use SIZEOF_VOID_P.
5158         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
5159         (_Jv_loadLong): Likewise.
5160         (_Jv_storeDouble): Likewise.
5161         * configure: Rebuilt.
5162         * configure.in: Check size of void*.
5164         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
5166 2000-03-26  Hans Boehm  <boehm@acm.org>
5168         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
5169         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
5170         machine.
5171         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
5172         __IEEE_LITTLE_ENDIAN appropriately on IA64.
5173         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
5174         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
5175         case.
5176         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
5177         (FFI_RAW_SIZE): Likewise.
5178         (_Jv_InterpMethod::ncode): Use them.
5179         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
5180         STORED): Define differently on a 64 bit machine.
5181         (continue1): Use ffi_java_raw_call when appropriate.
5183 2000-03-24  Warren Levy  <warrenl@cygnus.com>
5185         * java/math/BigInteger.java(divide): Handle the special case when
5186         dividing by 1 and the high bit of the dividend is set.
5187         (setShiftRight): Handle case when count == 0.
5189 2000-03-24  Warren Levy  <warrenl@cygnus.com>
5191         * java/awt/Font.java(isBold): Fix syntax error.
5192         (isItalic): ditto.
5193         * java/awt/Frame.java(postEvent): ditto.
5194         * java/awt/Menu.java(postEvent): ditto.
5195         * java/awt/MenuBar.java(postEvent): ditto.
5196         * java/awt/Toolkit.java(init): Included a stub.
5198 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
5200         * java/awt/Event.java: Add all the event type constants.
5201         (Event): Implemented constructors.
5202         (controlDown): Implemented.
5203         (metaDown): Implemented.
5204         (paramString): Stubbed.
5205         (shiftDown): Implemented.
5206         (toString): Implemented.
5207         (translate): Implemented.
5209 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
5211         * java/lang/natClass.cc (isInstance): Initialize `this'.
5212         (isAssignableFrom): Initialize `this' and `klass'.
5213         (_Jv_IsAssignableFrom): If an interface has no idt, it is not
5214         implemented by any loaded class, so return false.
5215         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
5216         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
5218 2000-03-19  Warren Levy  <warrenl@cygnus.com>
5220         * java/awt/Color.java: Specified java.io for Serializable.
5221         * java/awt/Toolkit.java: Imported java.net.URL.
5223 2000-03-19  Warren Levy  <warrenl@cygnus.com>
5225         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
5227 2000-03-16  Warren Levy  <warrenl@cygnus.com>
5229         * java/awt/Color.java: New file.
5230         * java/awt/Graphics.java: New file.
5231         * java/awt/Image.java: New file.
5232         * java/awt/Paint.java: New file.
5233         * java/awt/PaintContext.java: New file.
5234         * java/awt/Transparency.java: New file.
5235         * java/util/Collection.java: New file.
5236         * java/util/Comparator.java: New file.
5237         * java/util/Iterator.java: New file.
5238         * java/util/List.java: New file.
5239         * java/util/ListIterator.java: New file.
5240         * Makefile.am: Added above new files.
5241         * Makefile.in: Rebuilt.
5243         * java/awt/Font.java (PLAIN): New field.
5244         (BOLD): New field.
5245         (ITALIC): New field.
5246         (ROMAN_BASELINE): New field.
5247         (CENTER_BASELINE): New field.
5248         (HANGING_BASELINE): New field.
5249         (name): New field.
5250         (style): New field.
5251         (size): New field.
5252         (pointSize): New field.
5253         (Font): Implemented constructor.
5254         (isPlain): Implemented method.
5255         (isBold): Implemented method.
5256         (isItalic): Implemented method.
5257         (getName): Implemented method.
5258         (getStyle): Implemented method.
5259         (getSize): Implemented method.
5260         (getSize2D): Implemented method.
5261         (decode): Stubbed.
5262         * java/awt/Frame.java (getFont): Stubbed.
5263         (postEvent): Stubbed.
5264         (remove): Stubbed.
5265         * java/awt/Menu.java (postEvent): Stubbed.
5266         * java/awt/MenuBar.java (getFont): Stubbed.
5267         (postEvent): Stubbed.
5268         * java/awt/Toolkit.java (getImage): Added abstract method.
5270 2000-03-15  Tom Tromey  <tromey@cygnus.com>
5272         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
5274         * prims.cc (win32_exception_handler): Reformatted.
5276         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
5277         (_Jv_HaveMutexDestroy): Likewise.
5279 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
5281         * java/io/natFileDescriptorWin32.cc: New file.
5282         * java/io/natFileWin32.cc: New file.
5283         * java/net/natInetAddress.cc: Added conditional inclusion of
5284         Windows / Winsock headers.
5285         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
5286         inclusion of Windows / Winsock headers.
5287         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
5288         Windows / Winsock headers.
5289         * include/win32-signal.h: New file.
5290         * include/win32-threads.h: New file.
5291         * win32-threads.cc: New file.
5292         * exception.cc (win32_get_restart_frame): New function.
5293         * prims.cc (win32_exception_handler): New function.
5294         (main_init) Performs Winsock initialisation.
5295         (main_init) Installs exeception handler.
5297 2000-03-14  Tom Tromey  <tromey@cygnus.com>
5299         * jni.cc (mangled_name): Fixed assertion.
5300         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
5301         turned assert into actual failure.
5303 2000-03-09  Warren Levy  <warrenl@cygnus.com>
5305         * java/security/Key.java(serialVersionUID): Set to 0 for now.
5306         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
5307         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
5309 2000-03-09  Warren Levy  <warrenl@cygnus.com>
5311         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
5312         * java/security/DigestException.java: New file.
5313         * java/security/GeneralSecurityException.java: New file.
5314         * java/security/InvalidAlgorithmParameterException.java: New file.
5315         * java/security/InvalidKeyException.java: New file.
5316         * java/security/InvalidParameterException.java: New file.
5317         * java/security/Key.java: New file.
5318         * java/security/KeyException.java: New file.
5319         * java/security/KeyPair.java: New file.
5320         * java/security/KeyPairGenerator.java: New file.
5321         * java/security/KeyPairGeneratorSpi.java: New file.
5322         * java/security/NoSuchProviderException.java: New file.
5323         * java/security/PrivateKey.java: New file.
5324         * java/security/Provider.java: New file.
5325         * java/security/PublicKey.java: New file.
5326         * java/security/SecureRandom.java: New file.
5327         * java/security/Security.java: New file.
5328         * java/security/Signature.java: New file.
5329         * java/security/SignatureException.java: New file.
5330         * java/security/interfaces/DSAKey.java: New file.
5331         * java/security/interfaces/DSAParams.java: New file.
5332         * java/security/interfaces/DSAPrivateKey.java: New file.
5333         * java/security/interfaces/DSAPublicKey.java: New file.
5334         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
5335         * java/security/interfaces/RSAPrivateKey.java: New file.
5336         * java/security/interfaces/RSAPublicKey.java: New file.
5337         * java/security/spec/AlgorithmParameterSpec.java: New file.
5338         * java/security/spec/InvalidKeySpecException.java: New file.
5339         * java/security/spec/InvalidParameterSpecException.java: New file.
5340         * java/security/spec/KeySpec.java: New file.
5341         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
5342         * java/security/spec/RSAPrivateKeySpec.java: New file.
5343         * java/security/spec/RSAPublicKeySpec.java: New file.
5344         * Makefile.am: Added above java.security files.
5345         * Makefile.in: Rebuilt.
5347         * java/security/MessageDigest.java: Rewritten.
5348         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
5350 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
5352         * README: Updated.
5354 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
5356         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
5357         _Jv_PrepareConstantTimeTables.
5358         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
5359         classes should have an IDT, so don't return if klass is an array
5360         class.
5362 2000-03-08  Tom Tromey  <tromey@cygnus.com>
5364         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
5365         of `void' to be created.
5367 2000-03-08  Warren Levy  <warrenl@cygnus.com>
5369         * java/math/BigInteger.java(signum): Handle zero properly.
5371 2000-03-07  Tom Tromey  <tromey@cygnus.com>
5373         * All files: Updated copyright information.
5374         * COPYING: New file.
5375         * COPYING.LIB: Removed.
5376         * LIBGCJ_LICENSE: We now use GPL + special exception.
5378 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
5380         * resolve.cc (_Jv_SearchMethodInClass): New function.
5381         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
5382         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
5384 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
5386         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
5387         (struct _Jv_ifaces): New declaration.
5388         JV_CLASS: New macro definition.
5389         (getComponentType): Relocate below isArray() for inlining.
5390         (getModifiers): Declare `inline'.
5391         (getSuperclass): Ditto.
5392         (isArray): Ditto.
5393         (isPrimitive): Ditto.
5394         (_Jv_IsAssignableFrom): New prototype.
5395         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
5396         linkage.
5397         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
5398         Check for JV_STATE_DONE before invoking initializeClass().
5399         (_Jv_PrepareConstantTimeTables): New prototype.
5400         (_Jv_GetInterfaces): Ditto.
5401         (_Jv_GenerateITable): Ditto.
5402         (_Jv_GetMethodString): Ditto.
5403         (_Jv_AppendPartialITable): Ditto.
5404         (_Jv_FindIIndex): Ditto.
5405         depth, ancestors, idt: New class fields.
5407         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
5408         inline function `_Jv_IsAssignableFrom'. Use that function.
5409         (isInstance): Declare `inline'.
5410         (initializeClass): Get lock on class before checking `state'. Unlock
5411         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
5412         the lock held.
5413         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
5414         (_Jv_IsAssignableFrom): New inline function. Test assignability using
5415         class->depth and ancestor table.
5416         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
5417         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
5418         _Jv_IsAssignableFrom.
5419         (_Jv_CheckArrayStore): Ditto.
5420         (_Jv_LookupInterfaceMethodIdx): New function.
5421         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
5422         (_Jv_PrepareConstantTimeTables): New function.
5423         (_Jv_IndexOf): Ditto.
5424         (_Jv_GetInterfaces): Ditto.
5425         (_Jv_GenerateITable): Ditto.
5426         (_Jv_GetMethodString): Ditto.
5427         (_Jv_AppendPartialITable): Ditto.
5428         iindex_mutex, iindex_mutex_initialized: New static fields.
5429         (_Jv_FindIIndex): New function.
5431         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
5433         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
5434         (_Jv_CheckArrayStore): Ditto.
5435         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
5436         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
5437         Moved to gcj/array.h.
5438         (_Jv_Realloc): New function.
5440         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
5442         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
5443         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
5444         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
5445         JvNewDoubleArray): Implementations moved from prims.cc and
5446         declared `inline'.
5448         * gcj/javaprims.h (_Jv_Realloc): Prototype.
5450         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
5452 2000-03-06  Tom Tromey  <tromey@cygnus.com>
5454         * jni.cc (MARK_NONE): New define.
5455         (MARK_USER): Likewise.
5456         (MARK_SYSTEM): Likewise.
5457         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
5458         smaller.
5459         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
5460         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
5461         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
5462         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
5463         argument.
5464         (call): Use MARK_SYSTEM.
5465         (_Jv_GetJNIEnvNewFrame): New function.
5466         (_Jv_LookupJNIMethod): New function.
5467         (_Jv_JNI_PopSystemFrame): New function.
5468         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
5470 2000-03-05  Tom Tromey  <tromey@cygnus.com>
5472         Fix for PR libgcj/43:
5473         * include/Makefile.in: Rebuilt.
5474         * include/Makefile.am (include_HEADERS): New define.
5476 2000-03-05  Anthony Green  <green@redhat.com>
5478         * gcj/javaprims.h ("Java"): Remove FirstThread.
5480         * configure.host: Fix __NO_MATH_INLNES botch.
5482         * Makefile.in: Rebuilt.
5483         * Makefile.am (nat_source_files): Move natFirstThread.cc.
5484         (gnu/gcj/runtime/FirstThread.h): Moved.
5485         (ordinary_java_source_files): Move FirstThread.java.
5486         * prims.cc: Deal with FirstThread movement.
5487         (JvRunMain): Ditto.
5488         (_Jv_RunMain): Ditto.
5490         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
5491         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
5493 2000-03-05  Warren Levy  <warrenl@cygnus.com>
5495         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
5496           Handle null addresses.
5498 2000-03-04  Anthony Green  <green@redhat.com>
5500         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
5501         See PR gcj/151.
5503 2000-03-04  Anthony Green  <green@redhat.com>
5505         * configure: Rebuilt.
5506         * configure.in (ZLIBTESTSPEC): New macro.
5507         (GCTESTSPEC): New macro.
5508         (LIBGCJTESTSPEC): New macro.
5509         * libgcj-test.spec.in: New file.
5511 2000-03-02  Tom Tromey  <tromey@cygnus.com>
5513         * include/java-interp.h: Don't include MethodInvocation.h.
5514         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
5515         * Makefile.in: Rebuilt.
5516         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
5517         (ordinary_java_source_files): Don't mention
5518         MethodInvocation.java.
5519         * gnu/gcj/runtime/MethodInvocation.java: Removed.
5520         * interpret.cc (MethodInvocation::continue1): Removed.
5521         (run): Handle exceptions here.
5522         * java/lang/ClassLoader.java (defineClass1, defineClass2):
5523         Removed.
5524         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
5525         here.
5526         (defineClass2): Removed.
5528         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
5529         Removed.
5530         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
5531         exceptions here.
5532         (hack_call): Removed.
5534         * java/lang/Class.h (Class): Removed hackRunInitializers,
5535         hackTrampoline.
5536         * java/lang/natClass.cc (hackRunInitializers): Removed.
5537         (initializeClass): Catch exceptions here.
5538         Include ExceptionInInitializerError.h.
5539         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
5540         Removed.
5542         * java/lang/Object.h (Object): Don't mention hack12_6.
5543         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
5544         here.
5545         * java/lang/Object.java (hack12_6): Removed.
5547         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
5548         (start): Use run_, not run__.
5549         * java/lang/Thread.java (run_): Renamed from run__; old run_
5550         removed.
5552         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
5553         (_Jv_JNI_EnsureLocalCapacity): Likewise.
5554         (_Jv_JNI_DefineClass): Likewise.
5555         (_Jv_JNI_ThrowNew): Likewise.
5556         (_Jv_JNI_AllocObject): Likewise.
5557         (_Jv_JNI_GetAnyMethodID): Likewise.
5558         (_Jv_JNI_CallAnyMethodV): Likewise.
5559         (_Jv_JNI_CallAnyMethodA): Likewise.
5560         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5561         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
5562         (_Jv_JNI_GetAnyFieldID): Likewise.
5563         (_Jv_JNI_NewString): Likewise.
5564         (_Jv_JNI_NewStringUTF): Likewise.
5565         (_Jv_JNI_GetStringUTFChars): Likewise.
5566         (_Jv_JNI_NewObjectArray): Likewise.
5567         (_Jv_JNI_NewPrimitiveArray): Likewise.
5568         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5569         (_Jv_JNI_GetStringRegion): Likewise.
5570         (_Jv_JNI_GetStringUTFRegion): Likewise.
5571         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5572         (_Jv_JNI_MonitorEnter): Likewise.
5573         (_Jv_JNI_MonitorExit): Likewise.
5574         (_Jv_JNI_ToReflectedField): Likewise.
5575         (_Jv_JNI_ToReflectedMethod): Likewise.
5576         (_Jv_JNI_RegisterNatives): Likewise.
5577         (_Jv_JNI_AttachCurrentThread): Likewise.
5578         (_Jv_JNI_DestroyJavaVM): Likewise.
5580 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
5582         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5583         error caused by the incorrect casting of a long to an int.
5585 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
5587         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5588         SIGSEV caused by use of the wrong instance variable.
5590 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
5592         * java/io/File.java (File(String, String)): For dirPath, treat an
5593         empty String the same as `null'.
5595 2000-02-26  Anthony Green  <green@cygnus.com>
5597         * gnu/gcj/io/MimeTypes.java: Test for null.
5599         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5600         (JNI_GetCreatedJavaVMs): Remove compiler warning.
5602         * java/net/URLConnection.java: Update copyright notice.
5604 2000-02-25  Tom Tromey  <tromey@cygnus.com>
5606         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5607         `INTERPRETER'.
5609 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
5611         * java/net/URLConnection.java (initializeDateFormats): New
5612         private method.
5613         (getHeaderFieldDate): Call initializeDateFormats if required.
5614         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5615         these.
5616         Fix for PR libgcj/38.
5618 2000-02-24  Warren Levy  <warrenl@cygnus.com>
5620         * java/math/BigInteger.java(ival): Made private.
5621         (words): Ditto.
5622         (neg): Ditto.
5624 2000-02-20  Anthony Green  <green@cygnus.com>
5626         * Makefile.in: Rebuilt.
5627         * Makefile.am (ordinary_java_source_files): Add
5628         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5630         * scripts/MakeDefaultMimeTypes.java: New file.
5631         * scripts/mime.types: New file.
5632         * scripts/classes.pl: Moved from top level.
5633         * classes.pl: Moved to scripts directory.
5635         * java/net/URLConnection.java: Implement guessContentTypeFromName.
5637         * gnu/gcj/io/MimeTypes.java: New file.
5638         * gnu/gcj/io/DefaultMimeTypes.java: New file.
5640 2000-02-20  Tom Tromey  <tromey@cygnus.com>
5642         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5644 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
5646         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5647         (setSize): ditto.
5649 2000-02-18  Tom Tromey  <tromey@cygnus.com>
5651         * include/jvm.h (_Jv_GetJavaVM): Declare.
5652         * include/java-interp.h (_Jv_GetFirstMethod): New function.
5653         (_Jv_MethodBase::get_method): New method.
5654         (_Jv_JNIMethod::set_function): New method.
5655         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5656         (_Jv_JNI_RegisterNatives): New function.
5657         (_Jv_JNIFunctions): Updated for new functions.
5658         (_Jv_GetJavaVM): New function.
5659         (_Jv_JNI_GetJavaVM): Use it.  Now static.
5660         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5661         is already a Java thread but does not have a JNIEnv yet.
5663         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5664         function.
5666 2000-02-17  Tom Tromey  <tromey@cygnus.com>
5668         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5669         Fixes PR gcj/152.
5671 2000-02-16  Tom Tromey  <tromey@cygnus.com>
5673         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5675         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5676         (_Jv_JNI_NewObject): Likewise.
5677         (_Jv_JNI_NewObjectA): Likewise.
5678         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5679         as "return" type to _Jv_CallAnyMethodA.
5680         (_Jv_JNI_CallAnyMethodA): Likewise.
5681         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5683         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5684         findClass.
5686 2000-02-15  Tom Tromey  <tromey@cygnus.com>
5688         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
5689         jni_arg_types.
5690         (init_cif): Added `rtype_p' argument.
5691         * include/java-interp.h (class _Jv_MethodBase): Added
5692         args_raw_size.
5693         (class _Jv_InterpMethod): Removed args_raw_size.
5694         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5695         * jni.cc (call): Pass JNIEnv and (for static methods only) the
5696         class pointer as well as the ordinary arguments.
5698         * jni.cc (mangled_name): Skip leading `(' in signature.
5700         * jni.cc (add_char): Added missing `else'.
5702         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5703         fails.
5705 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
5707         * NEWS: Updated.
5709         * java/lang/natRuntime.cc (_load): Include library path with
5710         exception message.
5712         * java/lang/natSystem.cc (init_properties): set java.lang.classpath
5713         property.
5715         * java/lang/natThread.cc (dumpStack): Removed.
5716         * java/lang/Thread.java (dumpStack): Implemented.
5718 2000-02-15  Tom Tromey  <tromey@cygnus.com>
5720         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5721         with `lib' for loadLibrary.  Fixes PR gcj/150.
5723 2000-02-14  Warren Levy  <warrenl@cygnus.com>
5725         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5727         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5728           New constructor.
5729         (min): Implemented.
5730         (max): Implemented.
5731         (modPow): Rewritten to not use the naive, slow, brute force approach.
5732         (isProbablePrime): Implemented.
5733         (testBit): Implemented.
5734         (flipBit): Implemented.
5735         (getLowestSetBit): Implemented.
5737 2000-02-16  Anthony Green  <green@redhat.com>
5739         * configure.host: Use the same options for i386 and i486 as we do
5740         for i586 and i686.
5742 2000-02-12  Tom Tromey  <tromey@cygnus.com>
5744         * java/io/File.java (createTempFile): Use low bits from counter,
5745         not high bits.
5747 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
5749         * THANKS: More thanks.
5751 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5753         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5754         astore instruction.  From Hans Boehm.
5756 2000-02-11  Warren Levy  <warrenl@cygnus.com>
5758         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5759         (BigInteger(String)): New constructor.
5760         (not): Rewritten using version from Kawa's BitOps class.
5761         (valueOf): New private methods from Kawa's BitOps class.
5762         (swappedOp): ditto.
5763         (bitOp): ditto.
5764         (setBitOp): ditto.
5765         (and): Implemented.
5766         (or): Implemented.
5767         (xor): Implemented.
5768         (andNot): Implemented.
5769         (clearBit): Implemented.
5770         (setBit): Implemented.
5771         (bitCount): Implemented.
5772         (toByteArray): Implemented.
5774 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5776         * java/io/File.java (nextValue): Now synchronized.
5778 2000-02-10  Tom Tromey  <tromey@cygnus.com>
5780         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5781         * java/io/FileDescriptor.java (EXCL): New static field.
5782         * java/io/File.java (tmpdir): New static field.
5783         (createTempFile): New method.
5784         (nextValue): New method.
5785         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5786         property.
5788         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5789         (jboolean): Declare as an attributed int, not a bool.
5790         (_Jv_func): Declare differently for C.
5792         * gnu/gcj/jni/natNativeThread.cc: New file.
5793         * gnu/gcj/jni/NativeThread.java: New file.
5794         * java/lang/Thread.java (data): Now a RawData.
5795         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5796         Declare.
5797         * Makefile.in: Rebuilt.
5798         * Makefile.am (java/lang/Thread.h): New target.
5799         (ordinary_java_source_files): Added NativeThread.java.
5800         (nat_source_files): Added natNativeThread.cc.
5801         * java/lang/natThread.cc: Include <jni.h>
5802         (struct natThread): Added `jni_env' field.
5803         (_Jv_GetCurrentJNIEnv): New function.
5804         (_Jv_SetCurrentJNIEnv): Likewise.
5805         (initialize_native): Initialize jni_env.
5806         Include RawData.h.
5807         * jni.cc (ThreadGroupClass): New define.
5808         (_Jv_JNI_InvokeFunctions): New structure.
5809         (JNI_GetCreatedJavaVMs): New function.
5810         (the_vm): New global.
5811         (JNI_GetDefaultJavaVMInitArgs): New function.
5812         Include NativeThread.h.
5813         (NativeThreadClass): New define.
5814         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5815         (_Jv_JNI_DestroyJavaVM): New function.
5816         (_Jv_JNI_AttachCurrentThread): New function.
5817         (_Jv_JNI_DetachCurrentThread): New function.
5818         (_Jv_JNI_GetEnv): New function.
5819         (JNI_CreateJavaVM): New function.
5820         (_Jv_JNI_GetJavaVM): New function.
5821         (_Jv_JNIFunctions): Added entry for GetJavaVM.
5822         * include/jni.h (JavaVMAttachArgs): New structure.
5823         (JNI_EDETACHED): New define.
5824         (JNI_EVERSION): Likewise.
5825         (JavaVM): Define properly.
5826         (struct JNIInvokeInterface): New structure.
5827         (class _Jv_JavaVM): New class.
5828         (JNI_OnLoad, JNI_OnUnload): Declare.
5829         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5830         JNI_GetCreatedJavaVMs): Declare.
5831         (JavaVMInitArgs): New typedef.
5832         (JavaVMOption): Likewise.
5833         (JNI_ERR): New define.
5834         (JNI_OK): Likewise.
5836 2000-02-10  Andrew Haley  <aph@cygnus.com>
5838         * interpret.cc: Don't include fdlibm.h.
5839         Replace #if with #ifdef throughout.
5840         Declare extern __ieee754_fmod.
5841         (continue1): Remove op_getfield, op_getstatic, op_putfield,
5842         op_putstatic insns.
5843         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5844         Search class hierarchy for superclass vtable.
5846         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5847         off the end of a pointer list.
5849         * java/lang/natThread.cc (stop): Don't abort, throw an exception
5850         instead.
5851         (suspend): Ditto.
5853 2000-02-09  Tom Tromey  <tromey@cygnus.com>
5855         * java/lang/natRuntime.cc (_load): Call add_library.
5856         (loadLibraryInternal): Likewise.
5858         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5859         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
5860         (Output_iconv::finalize): Likewise.
5862 2000-02-08  Tom Tromey  <tromey@cygnus.com>
5864         * java/util/Properties.java (setProperty): New method.
5865         (store): New method.
5867 2000-02-07  Tom Tromey  <tromey@cygnus.com>
5869         * java/lang/Runtime.java (_load): Declare.
5870         (load, loadLibrary): Wrote in terms of _load.
5871         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5872         library.
5873         (loadLibrary): Likewise.
5874         Include <jni.h>.
5875         (_load): New method.
5876         (loadLibrary, load): Removed.
5878         * jni.cc (ThrowableClass): New define.
5879         (_Jv_JNI_Throw): Check argument.
5880         (_Jv_JNI_ThrowNew): Likewise.
5881         (wrap_value): Don't wrap object if it is NULL.
5882         (_Jv_JNI_DefineClass): Use wrap_value.
5883         (_Jv_JNI_FindClass): Likewise.
5884         (_Jv_JNI_GetSuperclass): Likewise.
5885         (_Jv_JNI_ExceptionOccurred): Likewise.
5886         (_Jv_JNI_AllocObject): Likewise.
5887         (_Jv_JNI_GetObjectClass): Likewise.
5888         (_Jv_JNI_NewString): Likewise.
5889         (_Jv_JNI_NewStringUTF): Likewise.
5890         (_Jv_JNI_NewObjectArray): Likewise.
5891         (_Jv_JNI_GetObjectArrayElement): Likewise.
5892         (_Jv_JNI_NewPrimitiveArray): Likewise.
5893         (_Jv_JNI_ToReflectedField): Likewise.
5894         (_Jv_JNI_ToReflectedMethod): Likewise.
5895         (_Jv_JNI_AllocObject): Check argument.
5896         (_Jv_JNI_NewObjectV): Likewise.
5897         (_Jv_JNI_NewObject): Likewise.
5898         (_Jv_JNI_NewObjectA): Likewise.
5899         (_Jv_JNI_GetObjectClass): Likewise.
5900         (_Jv_JNI_GetField): Likewise.
5901         (_Jv_JNI_SetField): Likewise.
5903         * interpret.cc (PUSHL): Don't use expression statement.
5904         (PUSHD): Likewise.
5905         (LOADL): Likewise.
5906         (STOREL): Likewise.
5908         * jni.cc (add_char): Conditional on INTERPRETER.
5909         (mangled_name): Likewise.
5910         (call): Likewise.
5911         * include/java-interp.h (class _Jv_MethodBase): Conditional on
5912         INTERPRETER.
5913         (class _Jv_JNIMethod): Likewise.
5915 2000-02-04  Warren Levy  <warrenl@cygnus.com>
5917         * Makefile.am: Added MPN.java and BigInteger.java.
5918         * Makefile.in: Rebuilt.
5919         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
5920         <per@bothner.com>.
5921         * java/math/BigInteger.java: New file.  Based primarily on
5922         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5924 2000-02-04  Tom Tromey  <tromey@cygnus.com>
5926         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5927         pointers.
5928         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
5929         if the method is native.
5930         * resolve.cc (ncode): Don't handle native methods.
5931         (_Jv_JNIMethod::ncode): New method.
5932         (_Jv_PrepareClass): Handle native methods.
5933         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5934         Include AbstractMethodError.h.
5935         (add_char): New function.
5936         (mangled_name): Likewise.
5937         * include/java-interp.h (class _Jv_JNIMethod): New class.
5938         (class _Jv_MethodBase): New class.
5939         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5940         (_Jv_InterpClass): Changed `interpreted_methods' field to type
5941         `_Jv_MethodBase'.
5943         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5944         * java/lang/natRuntime.cc (libraries_size, libraries_count,
5945         libraries): New globals.
5946         (add_library): New function.
5947         (_Jv_FindSymbolInExecutable): New function.
5949         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5950         Now static.
5952 2000-02-04  Andrew Haley  <aph@cygnus.com>
5954         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5955         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5956         * java/lang/natThrowable.cc (printRawStackTrace): Rename
5957         printStackTrace to printRawStackTrace.
5959 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5961         * java/util/Calendar.java (toString): New method.
5962         * java/util/SimpleTimeZone.java (clone): New method.
5963         (toString): New method.
5964         * java/util/TimeZone.java (clone): New method.
5965         * java/text/SimpleDateFormat.java (clone): New method.
5966         * java/text/NumberFormat.java (clone): New method.
5967         (equals): New method.
5968         * java/text/Format.java (clone): New method.
5969         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5970         constructor.
5971         (clone): New method.
5972         * java/text/DateFormat.java (clone): New method.
5973         * java/text/Collator.java (clone): New method.
5975 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5977         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5978         method.
5980 2000-02-01  Tom Tromey  <tromey@cygnus.com>
5982         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5983         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5984         constructing the closure if the function is native.
5985         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
5986         a template function, #if'd out, or static.
5987         Include <java-interp.h>.
5989         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5991         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5993         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5994         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5995         `locals == NULL'.
5996         (wrap_value): New function.
5997         (_Jv_JNI_CallAnyMethodV): Use it.
5998         (_Jv_JNI_CallAnyMethodA): Likewise.
5999         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
6000         (_Jv_JNI_GetStaticField): Likewise.
6002         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
6003         (_Jv_JNI_GetStaticField): Likewise.
6005 2000-01-31  Tom Tromey  <tromey@cygnus.com>
6007         * prims.cc (_Jv_MallocUnchecked): New function.
6008         (main_init): Call _Jv_JNI_Init.
6009         * include/jvm.h (_Jv_MallocUnchecked): Declare.
6010         (_Jv_JNI_Init): Declare.
6011         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
6012         <string.h>.
6013         (_Jv_JNI_NewGlobalRef): New function.
6014         (_Jv_JNI_DeleteGlobalRef): New function.
6015         (_Jv_JNI_DeleteLocalRef): New function.
6016         (_Jv_JNI_conversion_call): Initialize and clear local reference
6017         frame.
6018         (_Jv_JNI_NewLocalRef): New function.
6019         (struct _Jv_JNI_LocalFrame): New structure.
6020         (_Jv_JNI_PushLocalFrame): New function.
6021         (_Jv_JNI_EnsureLocalCapacity): New function.
6022         (FRAME_SIZE): New define.
6023         (_Jv_JNI_GetStringChars): Mark string, not characters.
6024         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
6025         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
6026         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
6027         elements.
6028         (_Jv_JNI_DefineClass): Make return value a local ref.
6029         (_Jv_JNI_FindClass): Likewise.
6030         (_Jv_JNI_GetSuperclass): Likewise.
6031         (_Jv_JNI_ExceptionOccurred): Likewise.
6032         (_Jv_JNI_AllocObject): Likewise.
6033         (_Jv_JNI_GetObjectClass): Likewise.
6034         (_Jv_JNI_CallAnyMethodV): Likewise.
6035         (_Jv_JNI_NewString): Likewise.
6036         (_Jv_JNI_NewStringUTF): Likewise.
6037         (_Jv_JNI_NewObjectArray): Likewise.
6038         (_Jv_JNI_GetObjectArrayElement): Likewise.
6039         (_Jv_JNI_ToReflectedField): Likewise.
6040         (_Jv_JNI_ToReflectedMethod): Likewise.
6041         (_Jv_JNIFunctions): Updated table for new functions.
6042         (_Jv_JNI_Init): New function.
6043         (mark_for_gc): Wrote.
6044         (unmark_for_gc): Wrote.
6045         * include/jni.h (struct JNINativeInterface): Removed name from
6046         PopLocalFrame parameter.
6047         (class _Jv_JNIEnv): Added `locals' field.
6049 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
6051         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
6052         (write): Ditto.
6054 2000-01-30  Tom Tromey  <tromey@cygnus.com>
6056         * include/config.h.in: Rebuilt.
6057         * acconfig.h (HAVE_ICONV): Define.
6058         * configure: Rebuilt.
6059         * configure.in: Check for `iconv' function.
6060         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
6061         no specific encoder exists.
6062         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
6063         no specific encoder exists.
6064         * Makefile.in: Rebuilt.
6065         * Makefile.am (convert_source_files): Mention Input_iconv.java and
6066         Output_iconv.java.
6067         (nat_source_files): Added natIconv.cc.
6068         * gnu/gcj/convert/natIconv.cc: New file.
6069         * gnu/gcj/convert/Input_iconv.java: New file.
6070         * gnu/gcj/convert/Output_iconv.java: New file.
6072 2000-01-28  Tom Tromey  <tromey@cygnus.com>
6074         * Makefile.in: Rebuilt.
6075         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
6077 2000-01-26  Tom Tromey  <tromey@cygnus.com>
6079         * gcj/method.h (JvNumMethods): Moved from Class.h.
6080         (JvGetFirstMethod): Likewise.
6081         * java/lang/Class.h (Object): Updated decl of
6082         _Jv_JNI_ToReflectedField.
6083         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
6084         * Makefile.in: Rebuilt.
6085         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
6086         argument of _Jv_JNI_ToReflectedField.
6087         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
6088         as a friend.
6089         (java/lang/reflect/Method.h): Likewise.
6090         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
6091         __GCJ_JNI_IMPL__.
6092         (jweak): New typedef.
6093         (struct JNINativeInterface): Correctly declare remaining entries.
6094         * jni.cc: Include Class.h, ClassLoader.h.
6095         (_Jv_JNI_FindClass): New function.
6096         (_Jv_JNI_DefineClass): New function.
6097         (_Jv_JNI_conversion_call): New function.
6098         (_Jv_JNI_FindClass): Use current class loader to find class.
6099         (_Jv_JNI_ExceptionCheck): New function.
6100         (_Jv_JNI_FromReflectedField): Now static.
6101         (MethodClass): New define.
6102         (_Jv_JNI_FromReflectedMethod): New function.
6103         (_Jv_JNI_ToReflectedMethod): Likewise.
6104         Include Method.h.
6105         (_Jv_JNI_IsAssignableFrom): Renamed.
6106         (_Jv_JNI_GetStringRegion): New function.
6107         Include StringIndexOutOfBoundsException.h.
6108         (_Jv_JNI_GetStringUTFRegion): New function.
6109         (_Jv_JNIFunctions): Updated for new functions.
6110         (_Jv_JNI_GetPrimitiveArrayCritical): New function
6111         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
6112         (_Jv_JNI_GetStringCritical): New function.
6113         (_Jv_JNI_ReleaseStringCritical): Likewise.
6114         (get_throwable): Removed.
6115         (GCJ_JV_JNIENV_FRIEND): Removed.
6116         (__GCJ_JNI_IMPL__): Define.
6117         Include method.h.
6119         * resolve.cc (get_ffi_type_from_signature): Handle case where
6120         boolean is an int.
6122 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
6124         * interpret.cc (run): Don't call println.
6125         Don't include PrintStream.h.
6127         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
6128         nameIndex.  Use "jint" as type for boffset.
6129         * java/lang/Class.h (struct _Jv_Method): Made accflags a
6130         _Jv_ushort.
6131         (Class): Likewise.  Also changed type of method_count,
6132         vtable_method_count, size_in_bytes, field_count,
6133         static_field_count, interface_count.
6134         * gcj/array.h (__JArray): Made `length' a const jsize, not an
6135         int.
6137 2000-01-21  Tom Tromey  <tromey@cygnus.com>
6139         * java/lang/reflect/natConstructor.cc (newInstance): Use
6140         _Jv_CallAnyMethodA.
6141         * include/jvm.h: Declare _Jv_CallAnyMethodA.
6142         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
6143         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
6144         Include <jni.h>.
6145         (COPY): Removed.
6146         (invoke): Use _Jv_CallAnyMethodA.
6147         (VAL): Redefined.
6148         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
6149         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
6150         functions.
6151         (struct _Jv_Method): Added getNextMethod method.
6152         (JvNumMethods): New function.
6153         (JvGetFirstMethod): Likewise.
6154         * gcj/field.h (JvGetFirstStaticField): New function.
6155         (JvNumStaticFields): Likewise.
6156         (getNextField): Renamed from getNextInstanceField.
6157         (struct _Jv_Field): New method getClass.
6158         * jni.cc: Wrote many new functions.
6159         * include/jni.h (JNI_TRUE): Define.
6160         (JNI_FALSE): Likewise.
6161         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
6162         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
6163         jcharArray, jfloatArray, jdoubleArray): New typedefs.
6164         (jfieldID, jmethodID): Likewise.
6165         (JNI_COMMIT, JNI_ABORT): New defines.
6166         (JNINativeMethod): New struct.
6167         (struct JNINativeInterface): Correctly declared more entries.
6168         (class _Jv_JNIEnv): Added `ex' member.
6169         (JNI_VERSION_1_1): New define.
6170         (JNI_VERSION_1_2): Likewise.
6172         * boehm.cc (_Jv_MarkObj): Use getNextField, not
6173         getNextInstanceField.
6175 2000-01-20  Tom Tromey  <tromey@cygnus.com>
6177         * resolve.cc (StringClass): Removed.
6178         * defineclass.cc (StringClass): Removed.
6180 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
6182         * NEWS: updated.
6184 2000-01-19  Tom Tromey  <tromey@cygnus.com>
6186         * interpret.cc (PC_REGISTER_ASM): Removed.
6188         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
6189         From Bryce McKinlay.
6191         * All files: Updated copyright to reflect Cygnus purchase.
6193 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
6195         * configure: Rebuilt.
6196         * configure.in: Recognize --disable-interpreter.
6198 2000-01-18  Andrew Haley  <aph@cygnus.com>
6200         * name-finder.cc (lookup): Check for dladdr function.
6201         acconfig.h (HAVE_DLADDR): Add.
6202         configure.in: Check for HAVE_DLADDR
6203         configure: Rebuilt.
6204         include/config.h.in:  Rebuilt.
6206 2000-01-17  Andrew Haley  <aph@cygnus.com>
6208         * prims.cc (_Jv_RunMain): Set the name of this executable.
6210 2000-01-17  Tom Tromey  <tromey@cygnus.com>
6212         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
6213         when backtrace can't be computed.
6215         * configure: Rebuilt.
6216         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
6218         * java/lang/Runtime.java (loadLibraryInternal): Declare.
6219         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
6220         (_Jv_FindClassInCache): Likewise.
6221         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
6222         (findSystemClass): Try to load class from compiled module.
6223         Include Runtime.h.
6224         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
6225         (loadLibrary): Likewise.
6226         (lt_preloaded_symbols): Define.
6227         (loadLibraryInternal): New method.
6228         * include/config.h.in: Rebuilt.
6229         * acconfig.h (USE_LTDL): Added.
6230         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
6231         (INCLUDES): Added $(INCLTDL).
6232         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
6233         (libgcj_la_LIBADD): Likewise.
6234         * aclocal.m4, configure: Rebuilt.
6235         * configure.in: Added libltdl support.
6237 2000-01-15  Tom Tromey  <tromey@cygnus.com>
6239         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
6241 2000-01-14  Andrew Haley  <aph@cygnus.com>
6243         * java/lang/natThrowable.cc: New file.
6245         * java/lang/Throwable.java (fillInStackTrace): Make native.
6246         (printStackTrace): Call native method to do this.
6247         (Throwable): Call fillInStackTrace.
6248         (stackTrace): New variable.
6250         * include/jvm.h: Add _Jv_ThisExecutable functions.
6252         * prims.cc: (_Jv_execName): New variable.
6253         (catch_segv): Call fillInStackTrace.
6254         (catch_fpe): Ditto.
6255         (_Jv_ThisExecutable): New functions.
6256         (JvRunMain): Set the name of this executable.
6258         * Makefile.am: Add java/lang/natThrowable.cc.
6259         Add name-finder.cc.
6260         * Makefile.in: Rebuilt.
6262         * acconfig.h: Add HAVE_PROC_SELF_EXE.
6264         * configure.in: Force link with __frame_state_for in
6265         FORCELIBGCCSPEC.  Add new checks for backtrace.
6266         * include/config.h.in: Rebuilt.
6268         * name-finder.cc: New file.
6269         * include/name-finder.h: New file.
6271 2000-01-16  Anthony Green  <green@cygnus.com>
6273         * java/lang/StringBuffer.java (StringBuffer): Don't special case
6274         null argument.
6276 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
6278         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
6280 2000-01-13  Tom Tromey  <tromey@cygnus.com>
6282         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
6283         not system loader, as initiating loader.
6285 2000-01-11  Tom Tromey  <tromey@cygnus.com>
6287         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
6288         HP/UX.  From David Scott Urban.
6290 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
6292         * java/lang/natMath.cc (pow): Cast args to `double', not
6293         `jdouble'.
6294         (atan2): Likewise.
6295         (IEEEremainder): Likewise.
6296         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
6297         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
6299 2000-01-09  Anthony Green  <green@cygnus.com>
6301         * java/lang/natString.cc (init): Test for overflow condition
6302         during out of bounds check.
6303         (getChars): Throw StringIndexOutOfBoundsException, not
6304         ArrayIndexOutOfBoundsException.
6305         (getBytes): Ditto.
6306         (regionMatches): Obey case option during string comparison.
6308         * configure.host (ligcj_interpreter): New variable.  Enable
6309         interpreter by default on IA-32.
6310         * configure.in:  Examine libgcj_interpreter.
6311         * configure: Rebuilt.
6313 2000-01-07  Tom Tromey  <tromey@cygnus.com>
6315         * mauve-libgcj: Don't disable ClassTest.
6317         * java/lang/natClass.cc (getClasses): Wrote.
6319 2000-01-06  Tom Tromey  <tromey@cygnus.com>
6321         * java/lang/natClass.cc (_getConstructors): Correctly check
6322         whether method name is the init name.
6323         (getMethod): Look at accflags on method in `klass', not `this'.
6325 2000-01-05  Tom Tromey  <tromey@cygnus.com>
6327         * java/lang/natClass.cc (getMethod): Compute offset relative to
6328         `klass's methods table, not `this's table.
6330         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
6331         In unwrapping/widening case, check whether `k' is null, not
6332         whether it is primitive.  Initialize `num' from `argelts', not
6333         `paramelts'.  Correct create and pass arguments to ffi_call.
6334         Don't let presence of `this' argument affect index used to look in
6335         argument arrays.
6336         (COPY): Set appropriate element in `values' vector.
6338         * java/lang/natClass.cc: Include <gcj/method.h>.
6340         * java/lang/Class.h (_getMethods): Correctly declare as private,
6341         not public.
6343         * java/lang/Class.h (_getMethods): Declare.
6344         * java/lang/Class.java (_getMethods): Declare.
6345         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
6346         (getDeclaredClasses): Always return empty array.
6347         (_getMethods): New method.
6348         (getMethods): Wrote.
6349         (getDeclaredMethod): Return `rmethod'.
6350         (finit_name): New global.
6351         (getDeclaredMethods): Check for finit_name.
6352         (_getMethods): Likewise.
6353         (getMethod): Only return public methods.
6355         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
6356         jboolean and select correct ffi type on that basis.
6357         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
6358         Constructor call always has `void' return type.
6360 2000-01-04  Tom Tromey  <tromey@cygnus.com>
6362         * java/lang/Class.h (getSignature): Updated.
6363         * java/lang/Class.java (getSignature): Updated.
6364         * java/lang/natClass.cc (getSignature): Added `is_constructor'
6365         argument.
6366         (getConstructor): Ensure constructor is public.
6367         (_getConstructors): Check for public-ness of constructor when
6368         `declared' is false, not when it is true.
6370 2000-01-04  Warren Levy  <warrenl@cygnus.com>
6372         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
6373         comment.
6374         (receive): Set the sender's address in the DatagramPacket.
6376 2000-01-04  Tom Tromey  <tromey@cygnus.com>
6378         * java/lang/reflect/natConstructor.cc (newInstance): Pass
6379         declaring class as return_type argument to
6380         _Jv_CallNonvirtualMethodA.
6381         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
6382         constructor case, create object and use it as `this' argument.
6383         * java/lang/Class.h (_getConstructors): Declare.
6384         (_getFields): Declare.
6385         * java/lang/Class.java (getConstructors): Wrote.
6386         (_getConstructors): New native method.
6387         (getDeclaredConstructors): Wrote.
6388         (_getFields): Declare new native method.
6389         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
6390         incorrect comment.
6391         (getMethod): Work correctly when class is primitive.
6392         (getDeclaredMethods): Likewise.  Compute offset using `method',
6393         not `mptr'.
6394         (getDeclaredMethod): Likewise.
6395         (getConstructor): Wrote.
6396         (ConstructorClass): New define.
6397         (getDeclaredConstructor): Wrote.
6398         (_getConstructors): New method.
6399         (_getFields): New method.
6400         (getFields): Wrote.
6402         * Makefile.in: Rebuilt.
6403         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
6405         * prims.cc: Remove `#pragma implementation'.
6406         * gcj/array.h: Remove `#pragma interface'.
6408         * prims.cc (_Jv_equaln): New function.
6409         * java/lang/Class.java (getSignature): Declare.
6410         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
6411         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
6412         resolve.cc.
6413         (getSignature): New method.
6414         (getDeclaredMethod): Wrote.
6415         (getMethod): Wrote.
6416         Include StringBuffer.h.
6417         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
6418         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
6419         a friend.
6420         (getSignature): Declare.
6421         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
6422         (_Jv_equaln): Declare.
6423         (_Jv_CallNonvirtualMethodA): Declare.
6424         * Makefile.in: Rebuilt.
6425         * Makefile.am (nat_source_files): Added natConstructor.cc.
6426         (java/lang/reflect/Constructor.h): New target.
6427         * java/lang/reflect/natConstructor.cc: New file.
6428         * java/lang/reflect/Constructor.java (newInstance): Now native.
6429         (declaringClass): Renamed from decl_class.
6430         (offset): Renamed from index.
6431         (getType): New native method.
6432         (getModifiers): Now native.
6433         (getParameterTypes): Call getType if required.
6434         (hashCode): Include hash code from declaring class.
6435         (modifiers): Removed.
6436         (toString): Call getType if required.
6437         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
6438         * java/lang/reflect/natMethod.cc (hack_call): New method.
6439         Removed `#if 0' around FFI code.
6440         Include <gnu/gcj/RawData.h>.
6441         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
6442         IllegalArgumentException when argument object and class disagree.
6443         (_Jv_GetTypesFromSignature): New function.
6444         (getType): Use it.
6445         (ObjectClass): New define.
6446         (_Jv_CallNonvirtualMethodA): New function.
6447         * java/lang/reflect/Method.java (hack_trampoline): New method.
6448         (hack_call): New native method.