OSDN Git Service

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