OSDN Git Service

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