OSDN Git Service

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