OSDN Git Service

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