OSDN Git Service

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