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