OSDN Git Service

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