OSDN Git Service

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