OSDN Git Service

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