OSDN Git Service

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