OSDN Git Service

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