OSDN Git Service

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