OSDN Git Service

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