OSDN Git Service

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