OSDN Git Service

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