OSDN Git Service

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