OSDN Git Service

Fix for PR libgcj/3426:
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2001-07-12  Tom Tromey  <tromey@redhat.com>
2             David Brownell  <david-b@pacbell.net>
3         
4         Fix for PR libgcj/3426:
5         * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
6         errno.h.
7         (read): Throw exception if character conversion fails.
8         * java/io/BufferedInputStream.java (refill): Now package-private.
9         * java/io/InputStreamReader.java (ready): Simplified.
10         (refill): New method.
11         (read): Use it.
12
13 2001-07-12  Tom Tromey  <tromey@redhat.com>
14
15         Report from Henner Zeller:
16         * java/io/FileOutputStream.java (FileOutputStream): Throw
17         FileNotFoundException, not IOException.
18
19 2001-07-10  Anthony Green  <green@redhat.com>
20
21         * Makefile.in: Rebuilt.
22         * Makefile.am: Add new files.
23         * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
24         org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
25         org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
26         org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
27         org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
28         org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
29         org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
30         org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
31         org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
32         org/w3c/dom/ranges/DocumentRange.java,
33         org/w3c/dom/ranges/Range.java,
34         org/w3c/dom/ranges/RangeException.java,
35         org/w3c/dom/traversal/DocumentTraversal.java,
36         org/w3c/dom/traversal/NodeFilter.java,
37         org/w3c/dom/traversal/NodeIterator.java,
38         org/w3c/dom/traversal/TreeWalker.java,
39         org/xml/sax/ext/DeclHandler.java,
40         org/xml/sax/ext/LexicalHandler.java,
41         org/xml/sax/helpers/AttributeListImpl.java,
42         org/xml/sax/helpers/AttributesImpl.java,
43         org/xml/sax/helpers/DefaultHandler.java,
44         org/xml/sax/helpers/LocatorImpl.java,
45         org/xml/sax/helpers/NamespaceSupport.java,
46         org/xml/sax/helpers/ParserAdapter.java,
47         org/xml/sax/helpers/ParserFactory.java,
48         org/xml/sax/helpers/XMLFilterImpl.java,
49         org/xml/sax/helpers/XMLReaderAdapter.java,
50         org/xml/sax/helpers/XMLReaderFactory.java,
51         org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
52         org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
53         org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
54         org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
55         org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
56         org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
57         org/xml/sax/SAXNotRecognizedException.java,
58         org/xml/sax/SAXNotSupportedException.java,
59         org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
60         org/xml/sax/XMLReader.java:  New files.
61
62 2001-07-10  Alexandre Petit-Bianco  <apbianco@redhat.com>
63
64         * Makefile.am: Added `java/lang/ThreadLocal.java'.
65         * Makefile.in: Regenerate.
66         * java/lang/ThreadLocal.java: Initial import.
67
68 2001-07-07  Jeff Sturm  <jsturm@one-point.com>
69         
70         * Makefile.am (libgcj.jar): Don't recursively make
71         built_java_source_files.  Avoid long command lines.
72         Don't change to $(srcdir) to invoke javac.
73         (libgcj.la, libgcjx.la); Avoid long command lines.
74         ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
75         * Makefile.in: Rebuilt.
76
77 2001-07-06  Andrew Haley  <aph@cambridge.redhat.com>
78
79         * include/i386-signal.h: Don't do anything with unsigned divide
80         overflow except throw an exception.
81
82 2001-07-05  Tom Tromey  <tromey@redhat.com>
83
84         For PR java/3562:
85         * java/lang/Class.h (Class(void)): Now private.  Removed
86         implementation.  From dmorsberger@sensysdl.com.
87
88 2001-07-02  Tom Tromey  <tromey@redhat.com>
89
90         Fix for PR bootstrap/3281:
91         * aclocal.m4, configure: Rebuilt.
92         * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
93         Correctly compute libgcj_basedir.
94         (mkinstalldirs): Define and subst.
95
96 2001-07-01  Jeremy Nimmer  <jwnimmer@alum.mit.edu>
97
98         For PR libgcj/3523:
99         * java/io/LineNumberReader.java (reset): Pass correct arguments to
100         countLines.
101
102 2001-06-27  Tom Tromey  <tromey@redhat.com>
103
104         * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
105         lowercase.
106
107 2001-06-25  Tom Tromey  <tromey@redhat.com>
108
109         * scripts/encodings.pl: Generate lower-case names.  Updated URL
110         for `character-sets' file.
111         * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
112         lower case.
113         Rebuilt list of aliases.
114
115 2001-06-25  Tom Tromey  <tromey@redhat.com>
116
117         * java/io/natFileDescriptorPosix.cc (open): Change error message
118         formatting.  From David Brownell.
119
120 2001-06-21  Tom Tromey  <tromey@redhat.com>
121
122         * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
123         From Corey Minyard.
124
125 2001-06-19  Mark J. Roberts  <mjr@statesmean.com>
126
127         * java/math/BigInteger.java (byteArrayToIntArray): Don't include
128         extraneous/malformed sign word.
129
130 2001-06-15  Tom Tromey  <tromey@redhat.com>
131
132         * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
133
134 2001-06-15  Tom Tromey  <tromey@redhat.com>
135
136         * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
137         NULL if no library on the list has the symbol.
138         (init): Call add_library on the program itself.
139         * prims.cc (JvRunMain): Initialize Runtime before searching for
140         `main'.
141         (_Jv_RunMain): Likewise.
142
143 2001-06-15  Tom Tromey  <tromey@redhat.com>
144
145         * jni.cc (ClassClass): Removed; updated all users.
146         (ObjectClass): Likewise.
147         (ThrowableClass): Likewise.
148         (MethodClass): Likewise.
149         (ThreadGroupClass): Likewise.
150         (local_ref_table): Renamed from `ref_table'.
151         (global_ref_table): New global.
152         (_Jv_JNI_Init): Initialize both ref tables.
153         (mark_for_gc): Added `ref_table' parameter.
154         (unmark_for_gc): Likewise.  Also, fail if we unreferenced too many
155         times.
156         (_Jv_JNI_NewGlobalRef): Updated for new mark function.
157         (_Jv_JNI_DeleteGlobalRef): Likewise.
158         (_Jv_JNI_DeleteLocalRef): Likewise.
159         (_Jv_JNI_NewLocalRef): Likewise.
160         (_Jv_JNI_PopLocalFrame): Likewise.
161         (_Jv_JNI_GetStringChars): Likewise.
162         (_Jv_JNI_ReleaseStringChars): Likewise.
163         (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
164         (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
165
166 2001-06-14  Tom Tromey  <tromey@redhat.com>
167
168         Fix for PR libgcj/3144:
169         * java/util/Date.java: Merged with Classpath.
170
171 2001-06-12  Tom Tromey  <tromey@redhat.com>
172
173         * aclocal.m4, configure: Rebuilt.
174         * acinclude.m4: Find configure.host in srcdir.
175
176 2001-06-07  Tom Tromey  <tromey@redhat.com>
177
178         Fix for PR libgcj/3059:
179         * java/lang/natSystem.cc (init_properties): Define `java.home'.
180         * Makefile.in: Rebuilt.
181         * Makefile.am (AM_CXXFLAGS): Define PREFIX.
182
183 2001-06-10  Alexandre Petit-Bianco  <apbianco@redhat.com>
184
185         * exception.cc (cstdlib): Replaces stdlib.h.
186         (_Jv_Throw): Use std::abort().
187         (PERSONALITY_FUNCTION): Likewise.
188
189 2001-06-09  Alexandre Oliva  <aoliva@redhat.com>, Stephen L Moshier  <moshier@mediaone.net>
190
191         * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
192         nothing, as in autoconf 2.50.
193         * aclocal.m4, configure: Rebuilt.
194
195 2001-06-08  Tom Tromey  <tromey@redhat.com>
196
197         * configure: Rebuilt.
198         * configure.in: Compute new aux dir using `pwd'.
199
200 2001-06-07  Tom Tromey  <tromey@redhat.com>
201
202         For PR bootstrap/3075:
203         * configure, aclocal.m4, Makefile.am: Rebuilt.
204         * configure.in: Pass `--with-auxdir' to subdir configure.  Don't
205         call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM.  Look for unwind.h
206         relative to libgcj_basedir.
207         * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
208         AC_CANONICAL_SYSTEM here.
209         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
210         libgcj_basedir.
211         ($(extra_headers)): New target.
212
213 2001-06-05  Martin Kahlert  <martin.kahlert@infineon.com>
214             Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
215
216         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
217         table index is within allowed bounds. Ensure that we dont try to access
218         class itable at a negative offset. Avoid an ancestor table lookup if
219         source is a primitive type class.
220         (isInstance): Remove redundant isPrimitive() check.
221
222 2001-06-04  Tom Tromey  <tromey@redhat.com>
223
224         * java/security/PublicKey.java: Extend Key.
225         * java/security/PrivateKey.java: Extend Key.
226
227 2001-06-02  Anthony Green  <green@redhat.com>
228
229         * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
230         alternate when USE_LTDL not defined.
231
232 2001-06-02  Anthony Green  <green@redhat.com>
233
234         * configure: Rebuild.
235         * configure.in: Remove data_start hack.
236         * libgcj.spec.in: Ditto.
237         * Makefile.in: Rebuild.
238         * Makefile.am: Ditto.
239         * libgcjdata.c: Remove.
240         
241 2001-06-02  Anthony Green  <green@redhat.com>
242
243         * configure: Rebuild.
244         * configure.in (LIBFFIINCS, LIBFFI): Introduce.  Add
245         --without-libffi option.  Tweak --disable-java-net processing.
246         * Makefile.in: Rebuild.
247         * Makefile.am (LIBFFIINCS, LIBFFI): Use.
248         * include/config.h.in: Rebuild.
249         * acconfig.h (USE_LIBFFI): Define.
250         * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
251
252 2001-06-02  Anthony Green  <green@redhat.com>
253
254         * configure: Rebuilt.
255         * configure.in: Test for sigaction on native builds.
256         * prims.cc: Check HAVE_SIGACTION.
257         * include/config.h.in: Rebuilt.
258
259 2001-05-31  Jeff Sturm  <jsturm@one-point.com>
260
261         * natFile.cc (get_entry): Removed functions.
262         (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
263         Allocate enough storage for d_name if using readdir_r.
264
265 2001-05-31  Tom Tromey  <tromey@redhat.com>
266
267         * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
268         correct size.
269         (write): Loop until write completes.  From Corey Minyard.
270
271 2001-05-29  Laurent Guerby  <guerby@acm.org>
272
273         * java/awt/geom/Rectangle2D.java: fix doc typo.
274
275 2001-05-31  Tom Tromey  <tromey@redhat.com>
276
277         * java/sql/DriverManager.java (getDrivers): Handle case where
278         driver's class loader is null.  From Corey Minyard.
279
280 2001-05-29  Tom Tromey  <tromey@redhat.com>
281
282         * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
283
284         * configure: Rebuilt.
285         * configure.in: Only add multilib support code if we just rebuilt
286         top-level Makefile.
287
288 2001-05-29  Andrew Haley  <aph@redhat.com>
289
290         * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
291         pointer: the dwarf unwinder in libgcc will do everything that's
292         needed.
293         (HANDLE_DIVIDE_OVERFLOW): Tidy.  Don't mess with stack frames any
294         more than we absolutely need to.
295         * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
296         * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
297         Alpha.
298         (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
299         "$libgcj_sjlj".
300         * configure: Rebuilt.
301         * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
302         for Alpha.
303         (SIGNAL_HANDLER): Use siginfo style handler.
304         (INIT_SEGV): Likewise.
305         (INIT_FPE): Likewise.
306         * include/ppc-signal.h: Delete whole file.
307
308 2001-05-24  Tom Tromey  <tromey@redhat.com>
309
310         * java/lang/natString.cc (init): Throw
311         ArrayIndexOutOfBoundsException.
312         (getChars): Likewise.
313         (getBytes): Likewise.
314         (valueOf): Likewise.
315
316         * configure.in: Only allow hash synchronization when POSIX threads
317         are enabled.
318         * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
319         of sync info object.
320
321 2001-05-23  Tom Tromey  <tromey@redhat.com>
322
323         * Makefile.in: Rebuilt.
324         * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
325
326         Revert patch of 2001-05-21:
327         * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
328         (libgcj_la_LIBADD): Likewise.
329         (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
330         (libgcjx_la_LIBADD): Likewise.
331
332         * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
333         * gcj/Makefile.in: Rebuilt.
334         * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
335         * gcj/javaprims.h: Include gcj/libgcj-config.h.
336         * gcj/libgcj-config.h.in: New file.
337         * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
338         * configure: Rebuilt.
339         * configure.in: Enable hash synchronization by default on some
340         platforms.
341         (HASH_SYNC_SPEC): New subst.
342         (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
343         Correctly use `test -z' instead of `test -n' in a couple places.
344         (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
345         LIBGCJ_CXXFLAGS.
346         * configure.host (enable_java_net_default): Initialize.
347         (enable_hash_synchronization_default): New variable.
348
349 2001-05-23  Hans Boehm <Hans_Boehm@hp.com>
350
351         * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
352         synchronization in use.
353         (_Jv_MarkArray): Likewise.
354         (_Jv_AllocBytes): Don't check return result.
355         (handle_out_of_memory): New function.
356         (_Jv_InitGC): Set GC_oom_fn.
357         (trace_one_vtable): New global.
358         (_Jv_AllocTraceOne): New function.
359         * configure.in: Added --enable-hash-synchronization.
360         * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
361         java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
362         * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
363         (_Jv_AllocArray): Likewise.
364         (_Jv_AllocBytes): Likewise.
365         (_Jv_AllocPtrFreeObject): New function.
366         (_Jv_AllocTraceOne): Likewise.
367         * posix-threads.cc (_Jv_ThreadRegister): Handle slow
368         pthread_self().
369         (self_cache): New global.
370         (_Jv_ThreadSelf_out_of_line): New function.
371         * prims.cc (_Jv_AllocBytesChecked): Removed.
372         (_Jv_ThrowNoMemory): New function.
373         (_Jv_AllocObject): Don't check for null return from allocator.
374         (_Jv_NewObjectArray): Likewise.
375         (_Jv_AllocPtrFreeObject): New function.
376         (_Jv_NewPrimArray): Allocate pointer-free object if possible.
377         * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
378         (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
379         * include/boehm-gc.h (_Jv_AllocObj): Define.
380         (_Jv_AllocPtrFreeObj): Define.
381         * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
382         (_Jv_ThrowNoMemory): Declare.
383         (_Jv_AllocTraceOne): Declare.
384         (_Jv_AllocBytesChecked): Removed.
385         * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
386         _Jv_MutexUnlock): Handle LOCK_DEBUG.
387         (_Jv_ThreadSelf): Handle case where system pthread_self() is
388         slow.
389         * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
390         friend.
391         * java/lang/Object.h (sync_info): Conditional upon presence of
392         hash synchronization.
393         * java/lang/natObject.cc: Much new code to handle thin locks and
394         hash synchronization.
395         * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
396         object if possible.
397
398 2001-05-23  Joseph S. Myers  <jsm28@cam.ac.uk>
399
400         * gij.cc (version): Update copyright year.
401
402 2001-05-22  Anthony Green  <green@redhat.com>
403
404         * configure.in: Tweak canadian cross test, and don't redefine GCJ
405         for cross builds.
406
407 2001-05-21  Per Bothner  <per@bothner.com>
408
409         Implement invocation interface; don't create new thread for main.
410         * java/lang/Thread.java (gen_name):  Make native.
411         (<init>(Thread,THreadGroup,Runnable,String)):  New private
412         constructor, used by other constructors, and _Jv_AttachCurrentThread.
413         * java/lang/natThread.cc (gen_name):  New implementation.
414         (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread):  New.
415         * prims.cc (main_init):  Removed, replaced by _Jv_CreateJavaVM.
416         (_Jv_CreateJavaVM):  New runtime initialization procedure.
417         (runFirst):  New proecdure - mostly code from old FirstThread::run.
418         (JvRunMain, _Jv_RunMain):  Re-write to use new invocation code.
419         * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
420         JvDetachCurrentThread):  New inline wrappers.
421         * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
422         _Jv_DetachCurrentThread):  New declarations.
423         * gnu/gcj/runtime/FirstThread.java:  Gutted.  Now contains only ...
424         (getMain): new static method.
425         * gnu/gcj/runtime/natFirstThread.cc:  Removed;  run method replaced
426         by runFirst in prims.cc.
427         (java/lang/Thread.h):  Update for new invocation interface.
428         * include/posix-threads.h (_Jv_ThreadRegister,
429         _Jv_ThreadUnRegister):  New declarations.
430         * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New.
431         (really_start):  Use new _Jv_ThreadRegister.
432         * include/no-threads.h (_Jv_ThreadInitData):  No longer inline.
433         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New empty inlines.
434         * no-threads.cc (_Jv_ThreadInitData):  Set _Jv_OnlyThread here.
435         Complain of called when _Jv_OnlyThread already set.
436         (_Jv_ThreadStart):  Always JvFail.
437         * include/win32-threads.h  (_Jv_Thread_t):  New thread_obj field.
438         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New declarations.
439         * win32-threads.cc (struct starter):  Remove objet field -
440         we use _Jv_Thread_t's new thread_obj field instead.
441         (_Jv_ThreadInitData):  Set _Jv_Thread_t's thread_obj field.
442         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New.
443         (really_start):  Use new _Jv_ThreadRegister.
444         * jni.cc (_Jv_JNI_AttachCurrentThread):  Use _Jv_AttachCurrentThread.
445         (_Jv_JNI_DetachCurrentThread):  Use _Jv_DetachCurrentThread.
446         * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
447         Removed - no longer needed with new invocation interface.
448         * Makefile.am:  Update for removed/added files.
449
450 2001-05-21  Per Bothner  <per@bothner.com>
451
452         * Makefile.am (libgcj_la_DEPENDENCIES):  Add $(nat_files).
453         (libgcj_la_LIBADD):  Likewise.
454         (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD):  Add $(x_nat_files).
455         
456 2001-05-21  Per Bothner  <per@bothner.com>
457
458         * gcj/javaprims.h (_Jv_FormatInt):  New declaration.
459         * java/lang/natString.cc (_JvFormatInt):  New primitive, with logic
460         taken from old Integer.toString code.
461         (Integer::valueOf):  Use _Jv_FormatInt.
462         * java/lang/Integer.java (toString):  Just use call String.valueOf.
463         * java/lang/Long.java (toString):  Fix typo in comment.
464         * java/lang/String.java (valueOf(int)):  Make native.
465         * java/lang/StringBuffer.java (append(int)):  Make native.
466         * java/lang/natStringBuffer.cc:  New file, for append(jint).
467         * Makefile.am (nat_source_files):  Add java/lang/natStringBuffer.cc.
468
469 2001-05-21  Tom Tromey  <tromey@redhat.com>
470
471         * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
472
473 2001-05-18  Andrew Haley  <aph@cambridge.redhat.com>
474
475         * include/dwarf2-signal.h: New file.    
476         * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
477         * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
478         * configure: Rebuilt.
479
480 2001-05-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
481
482         * configure.in: Update boehm-gc include dir for new GC version.
483         * configure: Rebuilt.
484         * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
485         extern "C" wrapper.
486         * boehm.cc: Update includes for new GC version. MAKE_PROC is now
487         GC_MAKE_PROC. mark_proc is now GC_mark_proc.
488         * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
489         extern "C".
490
491 2001-05-18  Alexandre Petit-Bianco  <apbianco@redhat.com>
492
493         * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
494         (_Jv_MutexInit): Likewise.
495
496 2001-05-18  Tom Tromey  <tromey@redhat.com>
497
498         * Makefile.in: Rebuilt.
499         * Makefile.am (awt_java_source_files): Added Polygon.java.
500
501 2001-05-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
502
503         * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
504         * gcj/javaprims.h: ... here.
505         * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
506
507 2001-05-17  Martin Kahlert  <martin.kahlert@infineon.com>
508
509         * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error 
510         with length of ioffset table.
511         (_Jv_IsAssignableFrom): Likewise.
512
513 2001-05-17  Per Bothner  <per@bothner.com>
514
515         * Makefile.am (ZIP):  The "fastjar" binary is now plain "jar".
516
517 2001-05-16  Tom Tromey  <tromey@redhat.com>
518
519         * java/text/SimpleDateFormat.java (parse): Handle non-dst time
520         zones.
521
522 2001-05-15  Tom Tromey  <tromey@redhat.com>
523
524         * java/util/GregorianCalendar.java (computeTime): Only call
525         getTimeZone() once.
526
527 2001-05-14  Tom Tromey  <tromey@redhat.com>
528
529         * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
530         ZONE_OFFSET just before computing the time.
531
532 2001-05-12  Zack Weinberg  <zackw@stanford.edu>
533
534         * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
535         * Makefile.in: Regenerate (by hand).
536         * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
537         * doc/cni.sgml: Document #pragma GCC java_exceptions.
538
539 2001-05-11  Richard Henderson  <rth@redhat.com>
540
541         * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
542         * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
543
544 2001-05-11  Richard Henderson  <rth@redhat.com>
545
546         * exception.cc: Include unwind-pe.h.  Remove all pointer
547         encoding logic.
548
549 2001-05-10  Tom Tromey  <tromey@redhat.com>
550
551         * Makefile.in: Rebuilt.
552         * Makefile.am (awt_java_source_files): Added Polygon.java.
553         * java/awt/Polygon.java: New file.
554
555         * java/awt/geom/AffineTransform.java
556         (setToRotation(double,double,double)): New method.
557         (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
558         (setToShear): Likewise.
559
560 2001-05-10  Tom Tromey  <tromey@redhat.com>
561
562         * java/util/GregorianCalendar.java: Imported from Classpath.
563         * gnu/java/locale/LocaleInformation_nl.java: New file from
564         Classpath.
565         * gnu/java/locale/LocaleInformation_en.java: Likewise.
566         * gnu/java/locale/LocaleInformation_de.java: Likewise.
567         * gnu/java/locale/LocaleInformation.java: Likewise.
568         * natGregorianCalendar.cc: Removed.
569         * Makefile.in: Rebuilt.
570         * Makefile.am (nat_source_files): Removed
571         natGregorianCalendar.cc.
572
573 2001-05-10  Tom Tromey  <tromey@redhat.com>
574
575         * java/text/SimpleDateFormat.java (computeCenturyStart): New
576         method.
577         (defaultCenturyStart): Use it.
578         (readObject): Likewise.
579         (SimpleDateFormat): Clear the calendar.  Set the grouping on the
580         number format.
581         (parse): Copy the calendar before modifying it.  Correctly handle
582         the time zone.
583
584         * java/util/Calendar.java (clear): Set field value(s) to 0.
585
586 2001-05-10  Jeff Sturm  <jsturm@one-point.com>
587
588         * Calendar.java (get): Clear areFieldsSet if requested field
589         is not set.
590         (set): Unset fields that depend on new value.
591
592 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
593
594         * java/lang/Class.h (_Jv_Self): New union type.
595         (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
596         Jeff Sturm and Fergus Henderson.
597
598 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
599
600         * java/lang/ClassLoader.java: Remove dead code fragment.
601
602 2001-05-03  Martin Kahlert  <martin.kahlert@infineon.com>
603
604         * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
605         checking.
606         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
607
608 2001-04-30  Andrew Haley  <aph@cambridge.redhat.com>
609
610         * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
611         * configure.host (EXCEPTIONSPEC): New.
612         * configure.in (EXCEPTIONSPEC): New.
613         * configure: Rebuilt.
614
615 2001-05-02  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
616
617         * doc/*.texi: Remove generated documentation.
618
619 2001-04-30  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
620
621         * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
622         (performDelete): Fix #endif placement.
623
624 2001-04-27  Zack Weinberg  <zackw@stanford.edu>
625
626         * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
627         * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
628         (_Jv_ThreadDestroyData): Use _Jv_Free.
629         * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
630         Use _Jv_Malloc.
631
632 2001-04-27  Tom Tromey  <tromey@redhat.com>
633
634         * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
635         checking.
636         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
637
638 2001-04-27  Martin Kahlert  <martin.kahlert@infineon.com>
639
640         * include/jni.h (struct JNINativeInterface): Fixed types in
641         Get/Set*ArrayRegion declarations.
642         (class _Jv_JNIEnv): Likewise.
643
644 2001-04-26  Alexandre Oliva  <aoliva@redhat.com>
645
646         * configure.in: Obtain THREADS with `gcc -v'.
647         * configure: Rebuilt.
648
649 2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
650
651         Fix PR libgcj/2237:
652         * java/io/ObjectStreamClass.java (setClass): Calculate 
653         serialVersionUID for local class and compare it against the UID
654         from the Object Stream. Throw InvalidClassException upon mismatch.
655         (setUID): Renamed to...
656         (getClassUID): this. Return the calculated class UID rather than 
657         setting uid field directly.
658         (getDefinedSUID): Removed.
659         * java/io/ObjectInputStream.java (resolveClass): Use the 
660         three-argument Class.forName(). 
661         * java/io/InvalidClassException (toString): Don't include classname in
662         result if it is null.
663
664 2001-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
665
666         * java/net/natInetAddress.cc (java::net::InetAddress::aton):
667         Wrap use of inet_pton in HAVE_INET6.
668
669 2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
670
671         java.security merge and ClassLoader compliance fixes.
672
673         * java/lang/Class.h (Class): Include ProtectionDomain.h. 
674         New protectionDomain field.
675         (forName): Add initialize parameter. Fixes declaration to comply with 
676         JDK spec.
677         * java/lang/natClass.cc (forName): Correct declaration of the three-arg
678         variant. Honour "initialize" flag.
679         (getProtectionDomain0): New method.
680         * java/lang/Class.java: Fix forName() declaration.
681         (getPackage): New method based on Classpath implementation.
682         (getProtectionDomain0): New native method decl.
683         (getProtectionDomain): New method.
684         * java/lang/ClassLoader.java (getParent): Now final.
685         (definedPackages): New field.
686         (getPackage): New.
687         (defineClass): New variant with protectionDomain argument.
688         (definePackage): New.
689         (getPackages): New.
690         (findSystemClass): Now final.
691         (getSystemResourceAsStream): Remove redundant "final" modifier.
692         (getSystemResource): Remove redundant "final" modifier.
693         (getResources): Now final.
694         (protectionDomainPermission): New static field.
695         (unknownProtectionDomain): Ditto.
696         (defaultProtectionDomain): Ditto.
697         (getSystemClassLoader): Now non-native.
698         * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
699         arguments for Class.forName().
700         * java/lang/Package.java: New file.
701         * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
702         (instance): Static initialize singleton.
703         (findClass): Override this, not findSystemClass.
704         * java/lang/natClassLoader.cc (defineClass0): Set class's
705         protectionDomain field as specified.
706         (getSystemClassLoader): Removed.
707         (findClass): Renamed from findSystemClass. Call the interpreter via
708         URLClassLoader.findClass if loading class via dlopen fails.
709
710         * java/security/*.java: java.security import/merge with Classpath.
711         * java/security/acl/*.java: Likewise.
712         * java/security/interfaces/*.java: Likewise.
713         * java/security/spec/*.java: Likewise.
714         * java/net/NetPermission.java: Likewise.
715         * java/net/SocketPermission.java: Likewise.
716         * gnu/java/security/provider/DefaultPolicy.java: Likewise.
717         
718         * Makefile.am: Add new classes.
719         * Makefile.in: Rebuilt.
720         * gcj/javaprims.h: CNI namespace rebuild.
721
722 2001-04-24  Alexandre Oliva  <aoliva@redhat.com>
723
724         * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
725         for libtool tests.  Pre-create gnu/classpath/Configuration.java.
726         * configure: Rebuilt.
727
728 2001-04-21  Tom Tromey  <tromey@redhat.com>
729
730         * Makefile.in: Rebuilt.
731         * Makefile.am (awt_java_source_files): Added Line2D.java.
732         * java/awt/geom/Line2D.java: Wrote.
733
734         * java/awt/Menu.java (addNotify): Wrote.
735
736         * java/awt/PopupMenu.java (addNotify): Implemented.
737         (show): Likewise.
738
739         * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
740         * java/awt/List.java (addNotify): Call super.addNotify.
741         * java/awt/Label.java (addNotify): Call super.addNotify.
742         * java/awt/FileDialog.java (addNotify): Call super.addNotify.
743         * java/awt/Dialog.java (addNotify): Call super.addNotify.
744         * java/awt/Choice.java (addNotify): Call super.addNotify.
745         * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
746         * java/awt/Checkbox.java (addNotify): Call super.addNotify.
747
748         * java/awt/List.java (replaceItem): Notify peer.
749
750         * java/awt/geom/Rectangle2D.java
751         (Float.setRect(float,float,float,float)): New method.
752
753         * java/awt/event/ContainerEvent.java (getContainer): Now returns
754         Container.
755
756         * java/awt/RenderingHints.java (Key): Class now public.
757
758         * java/awt/Rectangle.java (Rectangle): Now implements
759         Serializable.
760         (getPathIterator): Removed.
761
762         * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
763         constructor.
764
765         * java/awt/FileDialog.java: Wrote.
766
767         * java/awt/EventQueue.java (isDispatchThread): Now public.
768         (invokeLater): Likewise.
769
770         * java/awt/Component.java (setCursor): Update peer.
771         (getFontMetrics): Use peer.
772
773         * java/awt/ComponentOrientation.java (ComponentOrientation): Class
774         now final.
775
776 2001-04-20  Tom Tromey  <tromey@redhat.com>
777
778         * java/awt/List.java: Wrote.
779         * java/awt/Dialog.java: Wrote.
780
781 2001-04-20  Warren Levy  <warrenl@redhat.com>
782
783         * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
784         * java/text/SimpleDateFormat.java
785         (indexInArray): Removed private method.
786         (processYear): Removed private method.
787         (parseLenient): Removed private method.
788         (parseLeadingZeros): Removed private method.
789         (parseStrict): Removed private method.
790         (expect): Added new private method.
791         (parse): Reverted to pre-Classpath merge version with minor fixes.
792         * java/util/natGregorianCalendar.cc (computeTime): Handle strict
793         calendars.
794
795 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
796
797         * java/io/File.java (normalizePath): New private method. 
798         (File (String)): Use normalizePath().
799         (File (String, String)): Likewise.
800
801         * Makefile.am (libffi_files): Removed.
802         (libgcj.la): Link libffi as a convenience library instead of 
803         refering to its object files directly.
804         * Makefile.in: Rebuilt.
805
806 2001-04-08  Per Bothner  <per@bothner.com>
807
808         * java/lang/natString.cc (_Jv_NewStringUtf8Const):  Register finalizer.
809         Recalculate hash, since Utf8Const's hash is only 16 bits.
810
811         * java/lang/natString.cc (_Jv_StringFindSlot, rehash):  Use high-order
812         bits of hash to calculate step for chaining.
813
814         * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const):  Rehash
815         when 2/3 full, rather than 3/4 full.
816
817 2001-04-06  Tom Tromey  <tromey@redhat.com>
818
819         * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
820         (wrap_value<T*>): New specialization.
821         (_Jv_JNI_PopLocalFrame): Update env->locals.
822
823 2001-04-05  Tom Tromey  <tromey@redhat.com>
824
825         * libtool-version: Updated current.
826
827 2001-04-04  Andreas Jaeger  <aj@suse.de>
828
829         * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
830         * gcj/Makefile.in: Rebuilt.
831         * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
832         * Makefile.in: Rebuilt.
833         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
834         * testsuite/Makefile.in: Rebuild.
835         * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
836         * include/Makefile.in: Rebuild.
837
838 2001-04-02 Zack Weinberg <zackw@stanford.edu>
839
840         * testsuite/lib/libjava.exp: Correct typo: 'output from source
841         compiled test', not 'execution from source compiled test'.
842         Use UNTESTED, not XFAIL, for tests which are not run because
843         they depend on a previous test which failed.
844
845 2001-04-02  Richard Henderson  <rth@redhat.com>
846
847         * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
848         the same tree as gcc.
849         * configure: Rebuilt.
850
851         * exception.cc (_Jv_Throw): Clarify commentary.
852
853 2001-04-02  Marcus G. Daniels  <mgd@swarm.org>
854
855         * jni.cc (wrap_value<jclass>): New specialization.
856
857 2001-04-02  Tom Tromey  <tromey@redhat.com>
858
859         * java/io/PrintStream.java (out): Removed field.  Fixes PR
860         java/2449.
861         (write): Call flush, not out.flush, per spec.
862         (close): Flush output stream, per spec.  Handle
863         InterruptedIOException.
864         (checkError): Likewise.
865         (flush, print, write): Handle InterruptedIOException per spec.
866         (PrintStream): Don't create BufferedOutputStream.
867         (work_bytes): New field.
868         (writeChars): Use work_bytes.  Don't assume `out' is a
869         BufferedOutputStream.
870
871 2001-04-02  Torsten Rueger  <torsten.rueger@firsthop.com>
872
873         * java/text/MessageFormat.java (setLocale): Added missing `else'.
874         For PR libgcj/2429.
875
876 2001-03-30  Tom Tromey  <tromey@redhat.com>
877
878         * jni.cc (add_char): Correctly encode non-ascii characters.
879         (add_char): Define even when INTERPRETER not defined.
880         (mangled_name): Likewise.
881         (_Jv_GetJNIEnvNewFrame): Likewise.
882         (_Jv_LookupJNIMethod): Likewise.
883
884 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
885
886         * configure.host: Enable interpreter for PPC.
887
888 2001-04-02  Bryce McKinlay  <bryce@albatross.co.nz>
889
890         * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
891         to "file.separator", "path.separator", and "java.io.tmpdir" property
892         initialization.
893         * java/io/File.java: Likewise.
894         * java/io/natFile.cc (init_native): Likewise.
895         * java/io/natFileWin32.cc (init_native): Likewise.
896
897 2001-04-01  Per Bothner  <per@bothner.com>
898
899         * java/lang/natString.cc (intern):  If string's data does not point to
900         this String, make a fresh String that does.
901
902         * java/lang/natString.cc (unintern):  Replace by static function.
903         * java/lang/String.java (unintern):  Remove method.
904
905 2001-04-01  Per Bothner  <per@bothner.com>
906
907         * DeflaterOutputStream.java (deflate):  Loop while def.needsInput.
908         (finish):  def.deflate needs to be called in a loop.
909         (inbuf, inbufLength):  New private fields.
910         (write(int)): Use inbuf.
911         (write(byte[],int,int):  Check if pending output in inbuf.
912         * ZipOutputStream.java:  Don't use Deflater if stored.
913         Use a Checksum object directly, not via a CheckedOutputStream.
914         (uncompressed_size):  New field,
915         (closeEntry):  Only write data_directory if needed.
916         (write):  If STORED, write directly.
917         Always update crc, and uncompressed_size.
918         (write_entry):  Fix lots of protocol erors.
919
920 2001-04-01  Bryce McKinlay  <bryce@albatross.co.nz>
921
922         1.3-Compliant Implementation of java.io.File.
923         * java/lang/natSystem.cc (init_properties): Get "file.separator",
924         "path.separator", and "java.io.tmpdir" from the File class, instead
925         of setting them explicitly.
926         * java/io/File.java: Do not canonicalize paths for security manager
927         checks. Call init_native() from static initializer. Do not pass path
928         argument to native methods. New native method declarations. Some
929         security manager checks moved to checkWrite().
930         (equals): Check file system case sensitivity and act appropriatly.
931         (hashCode): Likewise.
932         (isHidden): New method implemented.
933         (performList): Changed prototype. Now takes a class argument specifying
934         the class of the returned array: Strings or File objects. Also added
935         FileFilter argument.
936         (listFiles): New variants with "File" return type implemented.
937         (createTempFile): Use createNewFile(). Use maxPathLen.
938         (setReadOnly): New method implemented.
939         (listRoots): Likewise.
940         (compareTo): Likewise.
941         (setLastModified): Likewise.
942         (checkWrite): New method.
943         (setPath): Removed.
944         * java/io/natFile.cc: Various functions no longer take canonical path
945         argument.
946         (stat): Handle ISHIDDEN query.
947         (isAbsolute): Remove WIN32 cruft.
948         (performList): New arguments. Handle returning either File[] or String[]
949         arrays. Check with FileFilter or FilenameFilter arguments as
950         appropriate. Use an ArrayList, not a Vector, for the temporary list.
951         (performSetReadOnly): New method implemented.
952         (performListRoots): Likewise.
953         (performSetLastModified): Likewise.
954         (performCreate): Likewise.
955         (init_native): New initialization function.
956         * java/io/natFileWin32.cc: Various functions no longer take canonical
957         path argument.
958         (stat): Add FIXME about ISHIDDEN query.
959         (performList): New arguments. Handle returning either File[] or String[]
960         arrays. Check with FileFilter or FilenameFilter arguments as
961         appropriate. Use an ArrayList, not a Vector, for the temporary list.
962         (performSetReadOnly): New. Stubbed.
963         (performListRoots): Likewise.
964         (performSetLastModified): Likewise.
965         (performCreate): Likewise.
966         (init_native) New initialization function.
967         * configure.in: Check for utime() and chmod().
968         * configure: Rebuilt.
969         * include/config.h.in: Rebuilt.
970
971         Resolves PR libgcj/1759.
972
973 2001-03-28  Richard Henderson  <rth@redhat.com>
974
975         IA-64 ABI Exception Handling:
976         * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
977         (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
978         Remove EXCEPTIONSPEC.
979         * configure.host (libgcj_sjlj): Remove.
980         * configure.in (EXCEPTIONSPEC): Remove.
981         (enable-sjlj-exceptions): Detect if not specified.
982         (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
983         what header we're looking for.
984         * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
985         * Makefile.in, configure: Regenerate.
986         * exception.cc: Don't declare libgcc2 stuff.
987         (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
988         (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
989         (win32_get_restart_frame): Remove.
990         (struct java_exception_header): New.
991         (__gcj_exception_class): New.
992         (get_exception_header_from_ue): New.
993         (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
994         (size_of_encoded_value, read_encoded_value): New.
995         (read_uleb128, read_sleb128, parse_lsda_header): New.
996         (get_ttype_entry, __gcj_personality_sj0): New.
997         * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
998
999 2001-03-27  Joerg Brunsmann  <joerg_brunsmann@yahoo.de>
1000
1001         * javax/naming/InitialContext.java (init): Fix typo.
1002         (composeName): Remove unnecessary semicolon.
1003         (addToEnvironment): Remove unnecessary semicolon.
1004         (addToEnvironment): Use put() instead of add().
1005
1006         * javax/naming/InitialContext.java (InitialContext):
1007         Make public.
1008         (destroySubcontext): Method doesn't return a result.
1009         * javax/naming/Context.java: Import java.util.Hashtable.
1010         * javax/naming/Name.java: Import java.util.Enumeration.
1011
1012 2001-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
1013
1014         * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1015         objects in subdirectories.
1016         * Makefile.in: Rebuilt.
1017
1018 2001-03-25  Richard Henderson  <rth@redhat.com>
1019
1020         * exception.cc (java_eh_info): Make value type jthrowable.
1021         (_Jv_type_matcher): Remove now unneeded cast.
1022         (_Jv_Throw): Make argument type jthrowable.  Munge name
1023         for SJLJ_EXCEPTIONS here ...
1024         * gcj/cni.h: ... not here.
1025         (JvThrow): Remove.
1026         * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1027
1028         * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1029         prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1030         gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1031         gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1032         gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1033         java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1034         java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1035         java/lang/natClass.cc, java/lang/natClassLoader.cc,
1036         java/lang/natDouble.cc, java/lang/natObject.cc,
1037         java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1038         java/lang/natString.cc, java/lang/natSystem.cc,
1039         java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1040         java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1041         java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1042         java/util/zip/natInflater.cc:
1043         Use throw, not JvThrow or _Jv_Throw.
1044
1045 2001-03-24  Bryce McKinlay  <bryce@albatross.co.nz>
1046
1047         * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1048         paramater, bump it to 1.
1049         * java/util/Hashtable.java (Hashtable): Likewise.
1050
1051 2001-03-23  Per Bothner  <per@bothner.com>
1052
1053         * java/lang/natDouble.cc (parseDouble):  Cannot use errno to
1054         check for errors, since we don't want to throw exception on
1055         overflow/underflow.  Instead, trim whitespace, and then check that
1056         _strtod_r uses up all the rest of the string.
1057
1058         * java/lang/natClass.cc (_Jv_IsAssignableFrom):  Checking the
1059         ancestors array is invalid for interfaces, so do that *after*
1060         check that the target type is not an interface.
1061
1062 2000-03-23  Jeff Sturm  <jsturm@one-point.com>
1063
1064         * prims.cc (_Jv_FindClassFromSignature): Check return of
1065         recursive call.  Do not abort on invalid signature; return NULL
1066         instead.
1067
1068 2001-03-22  Tom Tromey  <tromey@redhat.com>
1069
1070         * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1071         * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1072         unconditionally.
1073         * include/jvm.h (_Jv_ResolveField): Declare.
1074         * include/java-interp.h (_Jv_ResolveField): Don't declare.
1075         * resolve.cc (_Jv_ResolveField): No longer conditional on
1076         INTERPRETER.
1077
1078 2001-03-23  Bryce McKinlay  <bryce@albatross.co.nz>
1079
1080         Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1081         for libtool hacking.
1082         * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1083         to a temporary file, then invoke libtool with the -objectlist
1084         paramater.
1085         (libgcjx.la): Likewise.
1086         * Makefile.in: Rebuilt.
1087
1088 2001-03-22  Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1089
1090         * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1091
1092 2001-03-22  Marcus G. Daniels  <mgd@swarm.org>
1093
1094         * jni.cc (add_char): Handle `.' like `/'.
1095
1096 2001-03-22  Bryce McKinlay  <bryce@albatross.co.nz>
1097
1098         * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1099         initialize if exception_types is null.
1100         * java/lang/reflect/Constructor.java: Likewise.
1101         * java/lang/reflect/natConstructor.cc (getType): Initialize
1102         exception_types to an empty Object array.
1103
1104 2001-03-21  Tom Tromey  <tromey@redhat.com>
1105
1106         * configure: Rebuilt.
1107         * configure.in (GCJFLAGS): Subst.
1108         * Makefile.in: Rebuilt.
1109         * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1110         (gij_LDFLAGS): Likewise.
1111         (JC1FLAGS): Added GCJFLAGS and removed -g.
1112
1113         * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1114         read/write case.  Fixes PR libgcj/2338.
1115
1116 2001-03-20  Warren Levy  <warrenl@redhat.com>
1117
1118         * java/util/TimeZone.java: Sync up with Classpath.  Includes new
1119         and corrected SimpleTimeZone's for the timezones hash table.
1120
1121 2001-03-19  Per Bothner  <per@bothner.com>
1122
1123         * java/net/URLStreamHandler.java (parseURL):  Fix bug which would
1124         "canonicalize" "../../xxx" to "/xxx".
1125
1126 2001-03-19  Mark Wielaard <mark@klomp.org>
1127
1128         * java/util/ArrayList.java: Remove RCS keywords from comments
1129         * java/util/BasicMapEntry.java: idem
1130         * java/util/Dictionary.java: idem
1131         * java/util/HashSet.java: idem
1132
1133         * java/util/EventObject.java: reindent
1134         * java/util/Properties.java: idem
1135         * java/util/SortedMap.java: idem
1136
1137         * java/util/Enumeration.java: Merge with Classpath
1138         * java/util/EventListener.java: idem
1139         * java/util/Observable.java: idem
1140         * java/util/Observer.java: idem
1141         * java/util/Stack.java: idem
1142
1143 2001-03-17  Tom Tromey  <tromey@redhat.com>
1144
1145         * java/lang/natString.cc (rehash): Don't bother with memset;
1146         _Jv_AllocBytes returns zero'd memory.  Use _Jv_AllocBytesChecked.
1147         Use UNMASK_PTR.
1148         (UNMASK_PTR): New macro.
1149         (intern): Unmask pointer before returning it.  Register finalizer
1150         for the string.
1151         (unintern): Handle case where
1152         (MASK_PTR): New macro.
1153         (PTR_MAKSED): Likewise.
1154         (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1155
1156 2001-03-01  Andrew Haley  <aph@redhat.com>
1157
1158         * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1159         stackTrace buffer to a correctly aligned pointer array.
1160
1161 2001-03-12  Bryce McKinlay  <bryce@albatross.co.nz>
1162
1163         * java/lang/Runtime.java (_exit): Declare new package-private native.
1164         * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1165         without a security manager check.
1166         (exit): Call _exit after security check.
1167         * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1168         "naturally".
1169         * java/lang/System.java (setSecurityManager): If a security manager
1170         is already in place, call checkPermission.
1171         * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1172         throws an exception, try to deal with it gracefully.
1173         * java/lang/ExceptionInInitializerError.java (printStackTrace):
1174         Only try to print the subordinate stack trace if "exception" is set.
1175         Print our class name first.
1176
1177 2001-03-08  Tom Tromey  <tromey@redhat.com>
1178
1179         * java/io/ObjectStreamClass.java (setUID): Don't write interface
1180         info for array classes.
1181         Fixes PR libgcj/1971.
1182
1183 2001-03-06  Bryce McKinlay  <bryce@albatross.co.nz>
1184
1185         * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1186         Iterator.hasNext().
1187
1188 2001-03-05  Jochen Hoenicke  <jochen@gnu.org>
1189
1190         * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1191         instead of the new JDK1.2 API.  This is simpler and makes
1192         back-porting the classes to JDK1.1 trivial.
1193         (readObject): likewise.
1194
1195 2001-03-01  Per Bothner  <per@bothner.com>
1196
1197         Changes merged from Kawa's gnu.math.
1198         * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1199         (rshift(int[],int[],int,int):  Removed - not needed.
1200         (gcd):  Use rshift0 rather than rshift.
1201         * java/math/BigInteger.java (setShiftRight):  Likewise.
1202         (divide):  Simplify by using rshift0.
1203         (divide):  Zero-extend results if high-order bit set.
1204
1205 2001-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
1206
1207         * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1208         linking.
1209
1210 2001-02-23  Per Bothner  <per@bothner.com>
1211
1212         Change to sometimes include class name in ClassFormatError message.
1213         * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1214         _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)):  Return
1215         boolean instead of throwing ClassFormatError on failure.
1216         (throw_class_format_error):  Change static function to method.
1217         (_Jv_ClassReader):  New inline methods verify_identifier,
1218         two overloads of verify_classname, verify_field_signature, and
1219         verify_method_signature
1220         * include/java-interp.h:  Update declarations to return bool.
1221         * java/lang/natClassLoader.cc (defineClass0):  Explicitly throw
1222         ClassFormatError since _Jv_VerifyClassName now returns bool.
1223
1224 2001-02-23  Per Bothner  <per@bothner.com>
1225
1226         * java/lang/Throwable.java (CPlusPlusDemangler):  Pass -s java to
1227         c++filt to select java-style output.
1228
1229 2001-02-22  Bryce McKinlay  <bryce@albatross.co.nz>
1230
1231         Fix for PR java/2040:
1232         * java/util/HashMap.java (HashMap): Don't throw exception for
1233         loadFactor > 1. Add exception messages.
1234         * java/util/Hashtable.java (Hashtable): Likewise.
1235
1236 2001-02-21  Bryce McKinlay  <bryce@albatross.co.nz>
1237
1238         Disable libgcjx by default.
1239         * configure.in: Add support for --enable-java-awt configure option.
1240         Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1241         * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1242         * Makefile.in: Rebuilt.
1243         * configure: Rebuilt.
1244
1245 2001-02-20  Tom Tromey  <tromey@redhat.com>
1246
1247         * java/io/PipedWriter.java (flush): Throw exception if stream
1248         closed.
1249         * java/io/OutputStreamWriter.java (write): Throw exception if
1250         stream closed.
1251         (writeChars): Don't throw exception if stream closed.
1252         * java/io/CharArrayWriter.java (closed): New field.
1253         (close): Set it.
1254         (flush): Throw exception if stream closed.
1255         (reset): Synchronize on correct lock.  Allow stream to be
1256         reopened.
1257         (toCharArray, toString, writeTo): Synchronize.
1258         (write): Throwe exception if stream closed.
1259         * java/io/BufferedWriter.java (close): Clear `buffer'.
1260         (flush): Throw IOException if stream is closed.
1261         (write): Likewise.
1262
1263 2001-02-16  Tom Tromey  <tromey@cygnus.com>
1264
1265         * java/lang/ThreadGroup.java (activeCount): Only include threads
1266         which are alive.
1267         (enumerate): Likewise.
1268
1269 2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
1270
1271         * java/lang/Integer.java (getInteger): Return default argument if
1272         property is not set. Don't call decode with null argument.
1273         * java/lang/Long.java (getLong): Likewise.
1274
1275         * java/io/CharArrayReader.java (CharArrayReader): Throw
1276         IllegalArgumentException if constructor arguments are illegal.
1277         (ready): Return false if no more characters can be read.
1278         * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1279
1280 2001-02-17  Mark Wielaard <mark@klomp.org>
1281
1282         * java/util/TimerTask.java: New version from Classpath.
1283
1284 2001-02-17  Mark Wielaard <mark@klomp.org>
1285
1286         Remerge with Classpath
1287         (changes by Bryce McKinlay  <bryce@albatross.co.nz>)
1288         * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1289         (readByte): Use convertToByte().
1290         (readChar): Use convertToChar().
1291         (readInt): Use convertToInt().
1292         (readLong): Use convertToLong().
1293         (readShort): Use convertToShort().
1294         (readUnsignedByte): Use convertToUnsignedByte().
1295         (readUnsignedShort): Use convertToUnsignedShort().
1296         (readUTF): Use convertToUTF().
1297
1298         (convertToBoolean): Resurrected.
1299         (convertToByte): Ditto.
1300         (convertToChar): Ditto.
1301         (convertToInt): Ditto.
1302         (convertToLong): Ditto.
1303         (convertToShort): Ditto.
1304         (convertToUnsignedByte): Ditto.
1305         (convertToUnsignedShort): Ditto.
1306         (convertToUTF): Ditto.
1307
1308 2001-02-17  Mark Wielaard <mark@klomp.org>
1309
1310         * HACKING: new file
1311
1312 2001-02-17  Mark Wielaard <mark@klomp.org>
1313
1314         * java/io/DataInputStream.java: update copyright notice
1315         * java/io/PrintWriter.java: idem
1316         * java/io/Reader.java: idem
1317         * java/io/StreamTokenizer.java: idem
1318         * java/io/StringReader.java: idem
1319         * java/lang/reflect/ReflectPermission.java: idem
1320
1321 2001-02-16  Bryce McKinlay  <bryce@albatross.co.nz>
1322
1323         * java/util/TreeSet.java (clone): Made subclass safe, use
1324         super.clone(), not new.
1325         * java/util/TreeMap.java (clone): Likewise.
1326
1327         * java/util/TreeMap.java (nil): Made non-final.
1328         (clone): Create new nil node for copy.
1329
1330         * java/util/HashSet.java (clone): Made subclass safe, use
1331         super.clone(), not new.
1332
1333 2001-02-14  Andrew Haley  <aph@redhat.com>
1334
1335         * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1336         set the handler.
1337
1338 2001-02-15  Anthony Green  <green@redhat.com>
1339
1340         * defineclass.cc: Don't include alloca.h.
1341         (prepare_pool_entry): Convert alloca to __builtin_alloca.
1342         * interpret.cc (run_normal): Ditto.
1343         (continue1): Ditto.
1344         * java/lang/natDouble.cc (parseDouble): Ditto.
1345
1346 2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
1347
1348         * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1349         Object.clone().
1350         * java/util/Collections.java (ReverseComparator): New static class.
1351         (reverseOrder): Return static instance of ReverseComparator.
1352
1353         * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1354         * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1355         Rectangle.clone(), not Object.clone().
1356
1357         * java/util/HashSet.java (clone): Remove try/catch.
1358
1359         * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1360         * java/util/Collection.java: Likewise.
1361         * java/util/Comparator.java: Likewise.
1362         * java/util/Dictionary.java: Likewise.
1363         * java/util/Iterator.java: Likewise.
1364         * java/util/ListIterator.java: Likewise.
1365         * java/util/Map.java: Likewise.
1366         * java/util/Set.java: Likewise.
1367
1368 2001-02-14  Bryce McKinlay  <bryce@albatross.co.nz>
1369
1370         * java/util/TreeMap.java: New file.
1371         * java/util/TreeSet.java: New file.
1372         * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1373         * Makefile.in: Rebuilt.
1374         * java/util/HashSet.java (clone): Use constructor instead of calling
1375         clone on itself.
1376         * java/util/SortedSet.java: Sync with classpath.
1377         * java/util/HashMap.java (hash): Use if statement instead of ternary,
1378         for clarity.
1379
1380         * java/lang/natClass.cc (getSignature): Don't try to dereference
1381         param_types if it is null. Instead, take this to mean "no parameters".
1382         * java/lang/TreeMap.java (TreeIterator.next): Throw
1383         NoSuchElementException in preference to ConcurrentModificationException.
1384         (TreeIterator.remove): Throw IllegalStateException in preference to
1385         ConcurrentModificationException.
1386         (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1387         throw a NoSuchElementException.
1388         (SubMap.lastKey): Likewise.
1389
1390 2001-02-13  Tom Tromey  <tromey@redhat.com>
1391
1392         * java/io/PipedReader.java (ready): Throw IOException if pipe
1393         closed.
1394         * java/io/FilterReader.java (close): Don't clear `in'.
1395         * java/io/CharArrayReader.java (mark): Throw IOException if stream
1396         closed.
1397         (read, ready, reset, skip): Added exception message.
1398         * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1399         Perform checkStatus check inside synchronized block.
1400
1401 2001-02-13  Tom Tromey  <tromey@redhat.com>
1402
1403         * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
1404
1405 2001-02-13  Tom Tromey  <tromey@redhat.com>
1406
1407         Fix for PR libgcj/1351:
1408         * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
1409         interrupted.
1410         Include Thread.h and InterruptedIOException.h.
1411
1412 2001-02-13  Bryce McKinlay  <bryce@albatross.co.nz>
1413
1414         * java/io/BlockDataException.java: Removed.
1415         * java/io/ObjectInputStream.java (readObject): Throw
1416         StreamCorruptedException, not BlockDataException.
1417         * Makefile.am: Remove BlockDataException.
1418         * Makefile.in: Rebuild.
1419
1420 2001-02-12  Jeff Sturm  <jeff.sturm@commerceone.com>
1421             Tom Tromey  <tromey@redhat.com>
1422
1423         * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
1424         null pointer check.
1425
1426 2001-02-09  Tom Tromey  <tromey@redhat.com>
1427
1428         * java/util/Timer.java: New version from Classpath.
1429
1430 2001-02-09  Bryce McKinlay  <bryce@albatross.co.nz>
1431
1432         * java/lang/Double.java (doubleToRawLongBits): Now native.
1433         * java/lang/Float.java (floatToRawIntBits): Likewise.
1434         * java/lang/natDouble.cc (doubleToRawLongBits): New method.
1435         * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
1436
1437 2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>
1438
1439         * java/io/File.java (java.net): Imported.
1440         (getAbsoluteFile): Added.
1441         (getCanonicalPath): Likewise.
1442         (toURL): Likewise.
1443
1444 2001-02-08  Bryce McKinlay  <bryce@albatross.co.nz>
1445
1446         * java/lang/Byte.java: Remove redundant instanceof and null checks.
1447         * java/lang/Integer.java: Likewise.
1448         * java/lang/Long.java: Likewise.
1449         * java/lang/Short.java: Likewise.
1450         * java/lang/Double.java: Likewise.
1451         (doubleToRawLongBits): New method.
1452         * java/lang/Float.java: As above.
1453         (floatToRawIntBits): New method.
1454
1455         * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
1456         IOException if stream closed.
1457
1458 2001-02-08  Tom Tromey  <tromey@redhat.com>
1459
1460         * java/lang/Float.java (parseFloat): New method.
1461
1462 2001-02-08  Tom Tromey  <tromey@redhat.com>
1463
1464         From paul@dawa.demon.co.uk.  Fix for PR libgcj/1913:
1465         * java/io/InputStreamReader.java (ready, read): Throw IOException
1466         if stream has been closed.
1467
1468 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
1469
1470         * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
1471         Change sources.redhat.com and sourceware.cygnus.com references to
1472         gcc.gnu.org.
1473
1474 2001-02-07  Tom Tromey  <tromey@redhat.com>
1475
1476         Fix for PR libgcj/1906:
1477         * java/text/MessageFormat.java (setLocale): Use named class
1478         literals.
1479         (forName): Removed.
1480         (format(Object,StringBuffer,FieldPosition)): Special case if
1481         argument is an Object[].
1482
1483 2001-02-07  Bryce McKinlay  <bryce@albatross.co.nz>
1484
1485         * java/util/Arrays.java: Removed "cmp" methods.
1486         (qsort): Don't use "cmp".
1487         (med3): Likewise.
1488
1489 2001-02-07  Mark Benvenuto  <mcb54@columbia.edu>
1490
1491         * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
1492         sort. Fix for PR java/1895.
1493
1494 2001-02-03  Jeff Sturm  <jeff.sturm@commerceone.com>
1495
1496         * configure.host: Use sjlj-exceptions for Alpha.
1497
1498 2001-02-03  Bryce McKinlay  <bryce@albatross.co.nz>
1499
1500         * libgcj.spec.in: Don't force static libgcc into the executable.
1501         * configure.in (FORCELIBGCCSPEC): Removed.
1502         * configure: Rebuilt.
1503
1504 2001-01-31  Tom Tromey  <tromey@redhat.com>
1505
1506         * Makefile.in: Rebuilt.
1507         * Makefile.am (LTCXXCOMPILE): New macro.
1508
1509 2001-01-26  Andrew Haley  <aph@redhat.com>
1510
1511         (INIT_FPE): Use a direct system call to set the handler.
1512
1513 2001-01-27  Richard Henderson  <rth@redhat.com>
1514
1515         * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
1516
1517 2001-01-27  Tom Tromey  <tromey@redhat.com>
1518
1519         * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
1520         native interface structure.
1521
1522 2001-01-27  Bryce McKinlay  <bryce@albatross.co.nz>
1523
1524         * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
1525         result unsigned.
1526         (read (byte[], int, int)): Only call readNextBlock() if the block
1527         buffer would actually be overrun. Increment blockDataPosition.
1528         (callReadMethod): Propagate exceptions from invocation target.
1529         * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
1530         exceptions from invocation target.
1531
1532 2001-01-26  Tom Tromey  <tromey@redhat.com>
1533
1534         * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
1535         to internal representation.
1536         (_Jv_JNI_GetAnyFieldID): Likewise.  Also, only use
1537         _Jv_FindClassFromSignature.
1538
1539 2001-01-26  Warren Levy  <warrenl@redhat.com>
1540
1541         * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
1542         and timezone if they are available on the system.
1543
1544 2001-01-24  Tom Tromey  <tromey@redhat.com>
1545
1546         * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
1547
1548 2001-01-24  Tom Tromey  <tromey@redhat.com>
1549
1550         * Makefile.in: Rebuilt.
1551         * Makefile.am (c_source_files): Added sf_fabs.c.
1552         * java/lang/sf_fabs.c: New file.
1553
1554 2001-01-19  Warren Levy  <warrenl@redhat.com>
1555
1556         * java/text/SimpleDateFormat.java (format): Compute hour for cases
1557         HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
1558         correctly.  Adjust properly from 0-23 clock hour.
1559
1560 2001-01-17  Mark Wielaard  <mark@klomp.org>
1561
1562         * java/bean/Beans.java (instantiate): enable Applet code from Classpath
1563
1564 2001-01-17  Bryce McKinlay  <bryce@albatross.co.nz>
1565
1566         * java/lang/Class.h (isInterface): Move implementation from
1567         natClass.cc. Declare inline.
1568         (Class): Add default constructor.
1569         * java/lang/Object.h: Update comments.
1570         * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
1571         initialize superclass, saving a call if super is already initialized.
1572
1573 2001-01-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1574
1575         * prims.cc (init_prim_class): Deleted.
1576         (DECLARE_PRIM_TYPE): Rewritten.
1577         * java/lang/Class.h (stdio.h): Include removed.
1578         (stddef.h): Included.
1579         (java/lang/reflect/Modifier.h): Likewise.
1580         (Class): Contructor now takes arguments, initializes fields.
1581         (initializePrim): Prototype deleted.
1582         * java/lang/natClass.cc (initializePrim): Deleted.
1583
1584 2001-01-16  Warren Levy  <warrenl@redhat.com>
1585
1586         * java/math/BigInteger.java: Update Copyright year.
1587
1588 2001-01-16  Hans Boehm  <hans_boehm@hp.com>
1589
1590         * java/math/BigInteger.java (setShiftRight): Only do negative shift
1591         if count != 0.
1592
1593 2001-01-14  Mark Wielaard  <mark@klomp.org>
1594         * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
1595         (decode): Merge comments with Classpath, don't throw Exception
1596
1597 2001-01-12  Tom Tromey  <tromey@redhat.com>
1598
1599         * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
1600         Wrote.
1601         (setCursor): Wrote.
1602         Include Cursor.h.
1603         * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
1604         * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
1605         * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
1606         * gnu/awt/gtk/GtkLabelPeer.java: New file.
1607         * gnu/awt/gtk/GtkButtonPeer.java: New file.
1608
1609         * java/lang/natSystem.cc: Include locale.h if it exists.
1610         * configure: Rebuilt.
1611         * configure.in: Check for locale.h.
1612
1613 2001-01-11  Tom Tromey  <tromey@redhat.com>
1614
1615         * java/awt/Cursor.java (Cursor(String)): Set type to custom.
1616         (Cursor(int), getPredefinedCursor): Throw exception if argument
1617         invalid.
1618
1619 2001-01-03  Tom Tromey  <tromey@redhat.com>
1620
1621         * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
1622         (getLocationOnScreen): Wrote.
1623
1624 2001-01-11  Bryce McKinlay  <bryce@albatross.co.nz>
1625
1626         * Makefile.am: Re-enable dependencies.
1627         * Makefile.in: Rebuilt.
1628
1629 2001-01-10  Warren Levy  <warrenl@redhat.com>
1630
1631         * java/math/BigDecimal.java (divide): Fixed comment.
1632
1633 2001-01-10  Warren Levy  <warrenl@redhat.com>
1634
1635         Fix for PR libgcj/1596:
1636         * java/math/BigDecimal.java (divide): Check newScale for validity.
1637         Ensure that BigInteger.pow() is called with a non-negative value.
1638         (setScale (int)): New public method.
1639         (setScale (int,int)): New public method.
1640
1641 2001-01-09  Oskar Liljeblad <osk@hem.passagen.se>
1642
1643         Fix for PR libgcj/1338:
1644         * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
1645         commentChar.  Fixed typos in comments.
1646
1647 2001-01-08  Warren Levy  <warrenl@redhat.com>
1648
1649         Fix for PR libgcj/1411:
1650         * Makefile.am: Removed java/util/natTimeZone.cc.
1651         * Makefile.in: Rebuilt.
1652         * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
1653         missing localized timezone names.
1654         * java/lang/System.java (getDefaultTimeZoneId): New private method.
1655         * java/lang/natSystem.cc (getSystemTimeZone): New private method.
1656         (init_properties): Set user.timezone property.
1657         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1658         default timezone names; removed non-standard ones.  Use standard
1659         ID names per JCL.
1660         * java/util/Date.java (toGMTString): Removed zoneGMT variable.
1661         (UTC): Ditto.
1662         * java/util/TimeZone.java: Add standard ID names per JCL; removed
1663         non-standard ones.
1664         (getDefaultTimeZoneId): Removed.
1665         (zoneGMT): Removed.
1666         * java/util/natTimeZone.cc: Removed.
1667
1668 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
1669
1670         * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
1671         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
1672         (_Jv_GetArrayClass): New inline function.
1673         (arrayclass): New field.
1674         * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
1675         _Jv_GetArrayElementFromElementType.
1676         (_Jv_NewPrimArray): Ditto.
1677         (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
1678         "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
1679         Set Modifier::ABSTRACT.
1680         * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
1681         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
1682         Now synchronized. Array classes are now referenced from
1683         elementClass->arrayclass. Don't use _Jv_FindClassInCache.
1684         Set array classes' accessibility flags correctly. Optimize so that
1685         all array classes share the same IDT.
1686         * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
1687         * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
1688         * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
1689         in superclasses from overwriting classes own fields.
1690         (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
1691         Modifier::isAbstract().
1692         (null_idt): New static field.
1693         (_Jv_PrepareConstantTimeTables): Optimize case where class implements
1694         no interfaces.
1695         (_Jv_IndexOf): Made inline.
1696         * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
1697
1698 2001-01-08  Tom Tromey  <tromey@redhat.com>
1699
1700         Fix for PR java/1586:
1701         * Makefile.in: Rebuilt.
1702         * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
1703
1704 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
1705
1706         * Makefile.am: Use the new "-M -MF" option for generating dependencies
1707         from the c++ compiler.
1708         * Makefile.in: Rebuilt.
1709
1710 2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1711
1712         All files with updated copyright.
1713         * prims.cc (class _Jv_PrimClass): Removed.
1714         (init_prim_class): New function.
1715         (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
1716         `_Jv_PrimClass' in primitive type declarations. Assign to the
1717         value returned by `init_prim_class.'
1718         * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
1719         primitive type declarations.
1720         (JvPrimClass): Cast to `jclass' removed.
1721         * java/lang/Class.h (Class): New constructor.
1722         (Class): New copy constructor.
1723         (initializePrim): New prototype.
1724         (_Jv_PrimClass): Field removed.
1725         * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
1726         nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
1727         (class java::lang::Object): `finalize' moved up front.
1728         * java/lang/natClass.cc
1729         (isAssignableFrom): Turned outline.
1730         (isInstance): Likewise.
1731         (isInterface): Likewise, fixed indentation.
1732         (initializePrim): New function.
1733
1734 2001-01-07  Anthony Green  <green@redhat.com>
1735
1736         * Makefile.am (texinfo): Add texinfo target for generating texinfo
1737         documentation.
1738         * Makefile.in: Rebuilt.
1739
1740         * scripts/TexinfoDoclet.java: New file.
1741
1742         * doc/java-applet.texi, doc/java-lang-reflect.texi,
1743         doc/java-awt-color.texi, doc/java-lang.texi,
1744         doc/java-awt-datatransfer.texi, doc/java-math.texi,
1745         doc/java-awt-event.texi, doc/java-net.texi,
1746         doc/java-awt-geom.texi, doc/java-security-spec.texi,
1747         doc/java-awt-image.texi, doc/java-security.texi,
1748         doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
1749         doc/java-text.texi, doc/java-beans-beancontext.texi,
1750         doc/java-util-jar.texi, doc/java-beans.texi,
1751         doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
1752         doc/java-lang-ref.texi: New files.
1753
1754 2001-01-07  Anthony Green  <green@redhat.com>
1755
1756         * java/net/URLConnection.java (setDoOutput): URLConnection's may
1757         be used for both input and output, so don't clear doInput.
1758
1759         * java/lang/StringBuffer.java: Fix comments.
1760
1761 2001-01-06  Anthony Green  <green@redhat.com>
1762
1763         * java/beans/PropertyDescriptor.java: Fix comment.
1764         * java/io/PushbackReader.java: Fix comment.
1765         * java/io/ObjectStreamClass.java: Fix comment.
1766         * java/io/DataInputStream.java: Fix comment.
1767         * java/io/PipedInputStream.java: Fix comments.
1768         * java/io/PipedReader.java: Fix comments.
1769         * java/sql/DatabaseMetaData.java: Fix comments.
1770
1771 2001-01-06  Bryce McKinlay  <bryce@albatross.co.nz>
1772
1773         * java/io/PipedReader: Synchronize on "lock" instead of this.
1774
1775 2001-01-05  Bryce McKinlay  <bryce@albatross.co.nz>
1776
1777         * java/lang/Thread.java: Update comment.
1778
1779         * java/io/PipedInputStream: Rewrote to be simpler and more correct.
1780         * java/io/PipedOutputStream: Updated to match new PipedInputStream.
1781         * java/io/PipedReader: New implementation based on new
1782         PipedInputStream.
1783         * java/io/PipedWriter: Updated to match new PipedReader.
1784
1785 2001-01-03  Tom Tromey  <tromey@redhat.com>
1786
1787         * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
1788         (getViewportSize): Insets include scrollbar size.
1789         (doLayout): Finished.
1790         (getScrollPosition): Wrote.
1791         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
1792
1793 2001-01-02  Tom Tromey  <tromey@redhat.com>
1794
1795         * java/awt/ScrollPane.java: Wrote.
1796         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
1797         method.
1798
1799         * java/awt/Panel.java (Panel()): Fixed.
1800
1801         * java/awt/Component.java (isShowing): Return false if no peer
1802         exists, and true if component is visible and no parent exists.
1803         (getLocationOnScreen): Wrote.
1804         (getPreferredSize): Removed FIXME comment.
1805         (getMinimumSize): Likewise.
1806         (getAlignmentX, getAlignmentY): Wrote.
1807         (list): Wrote.
1808         (requestFocus): Wrote.
1809         (transferFocus): Wrote.
1810         (findNextFocusComponent): New method.
1811         (hasFocus()): Wrote.
1812         (checkImage): Wrote.
1813         (enableEvents): Call setEventMask on the peer.
1814
1815         * java/awt/Container.java (list): Use super.list() to print self.
1816         (findNextFocusComponent): New method.
1817         (setLayout): Call invalidate.
1818         (findComponentAt): Wrote.
1819
1820 2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>
1821
1822         * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
1823         the correct versions of various linuxthreads functions get linked.
1824         * Makefile.in: Rebuilt.
1825         * java/lang/natThread.cc (finalize_native): New static function. Call
1826         _Jv_ThreadDestroyData.
1827         (initialize_native): Register finalizer for "data".
1828         * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
1829         (_Jv_ThreadDestroyData): New prototype.
1830         * include/win32-threads.h: Ditto.
1831         * include/no-threads.h: Ditto.
1832         * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1833         (_Jv_ThreadDestroyData): New function. Free native thread "data" and
1834         move mutex and condition variable destroy code from:
1835         (really_start): ...here.
1836         (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
1837         * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
1838         (_Jv_ThreadDestroyData): Implemented.
1839         * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
1840         (_Jv_AllocArray): Ditto.
1841
1842 2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>
1843
1844         * java/sql/DriverManager.java (getConnection): Don't set user/password
1845         properties if null.
1846
1847 2000-12-27  Warren Levy  <warrenl@redhat.com>
1848
1849         Fix for PR libgcj/1358:
1850         * java/lang/System.java: Update Copyright date properly.
1851         * java/util/Calendar.java: Fix typo in comment.
1852         (set): Set 24-hour clock hour instead of 12-hour clock hour.
1853         * java/util/GregorianCalendar.java (GregorianCalendar): Properly
1854         initialize times.  Spec says to set H:M:S values to zero only if
1855         a date is given.
1856         * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
1857         needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
1858         * java/util/natGregorianCalendar.cc (computeTime): Properly handle
1859         timezones and GMT offsets, being careful to account for units of
1860         milliseconds vs. seconds.
1861
1862 2000-12-28  Bryce McKinlay  <bryce@albatross.co.nz>
1863
1864         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
1865         not be assigned to Object.
1866
1867         Fix for PR libgcj/1516:
1868         * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
1869         Add boolean entry.
1870         (can_widen): Declared inline. Remove redundant checks for void
1871         arguments and char->short conversion. Add special case for boolean
1872         conversions.
1873         (ffi_type): Declared inline.
1874         (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
1875
1876 2000-12-26  Petter Reinholdtsen  <pere@hungry.com>
1877
1878         * java/sql/SQLWarning.java: Fixed typo in comment.
1879
1880 2000-12-26  Tom Tromey  <tromey@redhat.com>
1881
1882         * java/awt/MenuItem.java (paramString): Now protected.
1883
1884         * java/awt/MenuShortcut.java: Implements Serializable.
1885
1886         * java/awt/MenuBar.java: Rewrote from scratch.
1887
1888         * java/awt/MenuComponent.java (removeNotify): Wrote.
1889         Implements Serializable.
1890
1891         * java/awt/GridBagConstraints.java (GridBagConstraints): New
1892         constructor.
1893
1894         * java/awt/CheckboxMenuItem.java: Wrote.
1895
1896 2000-12-25  Tom Tromey  <tromey@redhat.com>
1897
1898         * java/awt/MenuContainer.java: Fixed typo.
1899
1900         * Makefile.in: Rebuilt.
1901         * Makefile.am (awt_java_source_files): Added SystemColor.java.
1902         * java/awt/SystemColor.java: New file.
1903
1904         * java/awt/Color.java (rgba): Now package-private.
1905
1906         * java/awt/event/InputEvent.java (isAltGraphDown): New method.
1907
1908         * java/awt/event/ContainerEvent.java (getContainer): Renamed from
1909         getComponent.
1910
1911         * java/awt/MenuItem.java (addNotify): New method.
1912         (MenuItem(String,MenuShortcut)): New constructor.
1913         (setLabel): Notify peer of change.
1914         (setEnabled): Likewise.
1915
1916         * java/awt/GridLayout.java (toString): New method.
1917
1918         * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
1919         (FlowLayout): Check for LEADING and TRAILING.
1920         (setAlignment): Likewise.
1921         (layoutContainer): Handle component orientation.
1922
1923         * java/awt/Component.java (orientatin): New field.
1924         (setComponentOrientation): Wrote.
1925         (getComponentOrientation): Wrote.
1926
1927         * java/awt/Event.java (Event): Implements Serializable.
1928         (consumed): New field for serialization.
1929         * java/awt/Dimension.java (Dimension): Implements Serializable.
1930         * java/awt/Cursor.java (Cursor): Implements Serializable.
1931         * java/awt/Container.java (Container): No longer abstract.
1932
1933         * java/awt/Choice.java: Wrote.
1934         * java/awt/Checkbox.java: Wrote.
1935         * java/awt/ItemSelectable.java: Documented.
1936         * java/awt/CheckboxGroup.java: Wrote.
1937
1938         * java/awt/CardLayout.java (layoutContainer): Directly use fields
1939         in other classes.
1940         (getSize): Likewise.
1941
1942 2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>
1943
1944         * java/io/FileDescriptor.java: Initialize fd to -1.
1945         Remove default constructor.
1946
1947 2000-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1948
1949         * java/lang/mprec.h: Change C9X reference to refer to C99.
1950
1951 2000-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
1952
1953         * java/lang/Throwable.java (trace_enabled): New static field.
1954         * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
1955         trace_enabled not set.
1956         * prims.cc (main_init): Turn off trace_enabled while creating
1957         default exception objects.
1958
1959 2000-12-21  Tom Tromey  <tromey@redhat.com>
1960
1961         * java/beans/PropertyChangeListener.java: Extends EventListener.
1962         * java/beans/VetoableChangeListener.java: Extends EventListener.
1963
1964         * java/util/zip/Deflater.java (update, init): Now private.
1965
1966 2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
1967
1968         * java/util/BasicMapEntry.java: Re-added.
1969         * java/util/HashMap.java (Entry): Extend BasicMapEntry.
1970         (putAll): Test for BasicMapEntry.
1971         * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
1972         (putAll): Test for BasicMapEntry.
1973         Change references from `HashMap.Entry' to `Entry' in various places.
1974         * Makefile.am: Add BasicMapEntry.java.
1975         * Makefile.in: Rebuilt.
1976
1977 2000-12-18  Warren Levy  <warrenl@redhat.com>
1978
1979         * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
1980         need to set timezone to a valid non-null value.  Partial fix for
1981         PR 331.
1982
1983 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
1984
1985         * java/awt/Window.java (addNotify): Remove peer casting hack now that
1986         gcj/312 is fixed.
1987         * java/awt/Button.java (addNotify): Likewise.
1988         * java/awt/Label.java (addNotify): Likewise.
1989         * java/awt/Panel.java (addNotify): Likewise.
1990         * java/awt/Scrollbar.java (addNotify): Likewise.
1991         * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
1992         Remove redundant null checks.
1993
1994 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1995
1996         * COPYING: Update to current
1997         ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1998         to 19yy as example year in copyright notice).
1999
2000 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
2001
2002         * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2003         end-of-stream if avail_in is 0.
2004
2005 2000-12-17  Bryce McKinlay  <bryce@albatross.co.nz>
2006
2007         * java/util/ArrayList.java (data): Declare transient.
2008         (serialPersistantFields): Removed.
2009         (readObject): Use defaultReadObject(), not readFields().
2010         (writeObject): Use defaultWriteObject(), not writeFields().
2011
2012 2000-12-17  Jeff Sturm  <jeff.sturm@commerceone.com>
2013
2014         * java/util/Hashtable.java (put): Remove `last' variable.
2015         Link new entry to head of list.
2016         * java/util/HashMap.java (put): Ditto.
2017
2018 2000-12-15  Tom Tromey  <tromey@redhat.com>
2019
2020         * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2021         loader to Class.forName.
2022
2023 2000-12-14  Tom Tromey  <tromey@redhat.com>
2024
2025         * java/util/ResourceBundle.java
2026         (getBundle(String,Locale,ClassLoader)): New method.
2027         (trySomeGetBundle): Added `loader' argument.
2028         (partialGetBundle): Likewise.
2029
2030         * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2031         maximumFractionDigits, maximumIntegerDigits,
2032         minimumFractionDigits, minimumIntegerDigits): Now
2033         package-private.
2034
2035         * java/lang/Thread.java (checkAccess): Now final.
2036
2037         * java/lang/RuntimePermission.java: Class now final.
2038
2039         * java/io/StringWriter.java (StringWriter(int)): Now public.
2040
2041         * java/io/SerializablePermission.java (legal_names): Now private.
2042
2043         * java/lang/Character.java: Updated UnicodeBlock constants.
2044         * scripts/blocks.pl: Special case private use and surrogate
2045         areas.  Updated URL.
2046
2047 2000-12-12  Tom Tromey  <tromey@redhat.com>
2048
2049         * Makefile.in: Rebuilt.
2050         * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2051         option.
2052         (GCJCOMPILE): Use it.
2053         (JAVAC): Likewise.
2054
2055 2000-12-11  Tom Tromey  <tromey@redhat.com>
2056
2057         * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2058         New static final fields.
2059
2060         * scripts/classes.pl (scan): Skip lines with leading `*'.
2061         Fix for PR libgcj/378.
2062
2063 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
2064
2065         * configure.in: Remove check for -fuse-divide-subroutine.
2066         * configure: Rebuilt.
2067
2068         * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2069
2070         * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2071
2072 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
2073
2074         * Makefile.am: Add HashSet.java and java/lang/ref classes.
2075         Remove BasicMapEntry.java and Bucket.java.
2076         * Makefile.in: Rebuilt.
2077         * java/util/HashMap.java: Rewritten.
2078         * java/util/HashSet.java: Imported from classpath.
2079         * java/util/WeakHashMap.java: Imported from classpath.
2080         * java/util/Hashtable.java: Rewritten based on new HashMap code.
2081         * java/util/Bucket.java: Deleted.
2082         * java/util/BasicMapEntry.java: Deleted.
2083         * java/util/Collections.java (search): Use a for-loop, not iterator
2084         hasNext().
2085         (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2086         of elements in source.
2087         (max): Use a for-loop.
2088         (min): Ditto.
2089         (reverse): Keep track of positions instead of using Iterator's
2090         nextIndex() and previousIndex().
2091         (shuffle(List)): Initialize defaultRandom if required using
2092         double-check thread safety idiom. Call two-argument shuffle method
2093         using defaultRandom.
2094         (defaultRandom): New field.
2095         (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2096         using previousIndex() and nextIndex().
2097         (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2098         * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2099         * java/util/AbstractMap.java (toString): Use StringBuffer.
2100         * java/lang/ref/PhantomReference.java: Imported from classpath.
2101         * java/lang/ref/SoftReference.java: Ditto.
2102         * java/lang/ref/Reference.java: Ditto.
2103         * java/lang/ref/WeakReference.java: Ditto.
2104         * java/lang/ref/ReferenceQueue.java: Ditto.
2105
2106 2000-12-10  Richard Henderson <rth@redhat.com>
2107
2108         * configure.host: Recognize alpha*-*, not alphaev6-*.
2109
2110 2000-12-09  Anthony Green  <green@redhat.com>
2111
2112         * configure.host: Enable interpreter for Alpha.
2113
2114 2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2115
2116         * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2117         (ZIP): Points at fastjar instead of zip.
2118         (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2119         (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2120         (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2121         (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2122         ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2123         ($(x_java_source_files:.java=.class):): Likewise.
2124         (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2125         fastar's flags.
2126         (CLEANFILES): libgcj.jar replaces libgcj.zip.
2127         (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2128         (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2129         java/lang/String.h:, java/lang/reflect/Constructor.h:,
2130         java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2131         gnu/gcj/runtime/VMClassLoader.h:,
2132         java/io/ObjectInputStream$$GetField.h:,
2133         java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2134         (Makefile.in): Rebuilt.
2135
2136 2000-12-08  Tom Tromey  <tromey@redhat.com>
2137
2138         From Phil Edwards:
2139         * configure: Rebuilt.
2140         * configure.in: Use echo, not `:', to create .d files.
2141
2142 2000-12-08  Warren Levy  <warrenl@redhat.com>
2143
2144         * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2145         NullPointerException so proper check of offset can be done.
2146
2147 2000-12-08  Warren Levy  <warrenl@redhat.com>
2148
2149         * java/io/FileInputStream.java (close): Check if the fd is valid.
2150         * java/io/RandomAccessFile.java (close): Ditto.
2151         * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2152         * java/net/PlainSocketImpl.java (close): Ditto.
2153
2154 2000-12-06  Tom Tromey  <tromey@redhat.com>
2155
2156         * java/awt/GridBagConstraints.java: Filled in values for static
2157         final fields.
2158
2159         * java/util/BitSet.java: Updated copyright notice.
2160
2161         * Makefile.in: Rebuilt.
2162         * Makefile.am (awt_java_source_files): Added new file.
2163         * java/awt/GridBagConstraints.java: New file.
2164
2165 2000-12-05  Tom Tromey  <tromey@redhat.com>
2166
2167         * java/text/Collator.java (decomposeCharacter, decmp, strength):
2168         Now package-private, not protected.
2169         * java/text/DateFormatSymbols.java (equals): Now private.
2170         * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2171         * java/util/BitSet.java: Class no longer final.
2172
2173 2000-12-04  Warren Levy  <warrenl@redhat.com>
2174
2175         * java/util/TimeZone.java (getAvailableIDs): Activated commented
2176         out code dependent on compiler and library changes.
2177
2178 2000-12-04  Warren Levy  <warrenl@redhat.com>
2179
2180         * java/io/FilePermission.java: Made class final per spec.
2181         * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2182         method name to match spec (fixed typo).
2183         * java/util/LinkedList.java: Implements List.
2184
2185 2000-12-04  Bryce McKinlay  <bryce@albatross.co.nz>
2186
2187         * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2188         Edgar Villanueva <edgarvil@home.com>.
2189
2190 2000-12-03  Tom Tromey  <tromey@redhat.com>
2191
2192         * java/awt/geom/Point2D.java: Added protected constructor.
2193         (equals): New method.
2194         (Float.setLocation(float,float)): New method.
2195         * java/awt/geom/Dimension2D.java: Added protected constructor.
2196         * java/awt/geom/AffineTransform.java: Made all constants public.
2197         (concatenate): Fixed typo in name.
2198         * java/awt/event/WindowAdapter.java: Class now abstract.
2199         * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2200         * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2201         AWTEvent.
2202
2203         * java/awt/AWTError.java: Extend Error, not
2204         IllegalStateException.
2205
2206         * Makefile.in: Rebuilt.
2207         * Makefile.am (awt_java_source_files): Added new file.
2208         * java/awt/geom/RoundRectangle2D.java: New file.
2209
2210         * Makefile.in: Rebuilt.
2211         * Makefile.am (awt_java_source_files): Added new file.
2212         * java/awt/FlowLayout.java: New file.
2213
2214         * Makefile.in: Rebuilt.
2215         * Makefile.am (awt_java_source_files): Added new file.
2216         * java/awt/GridLayout.java: New file.
2217
2218 2000-12-02  Tom Tromey  <tromey@redhat.com>
2219
2220         * Makefile.in: Rebuilt.
2221         * Makefile.am (awt_java_source_files): Added new files.
2222         * java/awt/CardLayout.java: New file.
2223         * java/awt/AWTPermission.java: New file.
2224
2225 2000-12-01  Tom Tromey  <tromey@redhat.com>
2226
2227         * java/util/Vector.java (insertElementAt): Unconditionally
2228         increment elementCount.
2229         (removeRange): Clear unused slots in vector.
2230
2231 2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
2232
2233         * java/lang/natMath.cc: Declare fabsf() function.
2234         * java/lang/mprec.h: Don't include math.h.
2235         * java/lang/dtoa.c: Include string.h.
2236         * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2237         compiler warning.
2238
2239         From Adam Welc <welc@cs.purdue.edu>:
2240         * java/util/LinkedList.java (removeFirst): Update `first' field.
2241         Handle the last == first case.
2242         (removeLast): Update `last' field. Handle the last == first case.
2243
2244 2000-12-01  Warren Levy  <warrenl@cygnus.com>
2245
2246         * Makefile.am: Added entries for new java.sql modules.
2247         * Makefile.in: Rebuilt.
2248
2249 2000-12-01  Warren Levy  <warrenl@cygnus.com>
2250
2251         * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2252         that aren't quite 1.2 compatible yet.
2253
2254 2000-11-30  Warren Levy  <warrenl@cygnus.com>
2255
2256         * java/sql/Array.java: New file from classpath.
2257         * java/sql/BatchUpdateException.java: Ditto.
2258         * java/sql/Blob.java: Ditto.
2259         * java/sql/Clob.java: Ditto.
2260         * java/sql/Ref.java: Ditto.
2261         * java/sql/SQLData.java: Ditto.
2262         * java/sql/SQLInput.java: Ditto.
2263         * java/sql/SQLOutput.java: Ditto.
2264         * java/sql/Struct.java: Ditto.
2265         * java/sql/CallableStatement.java: Merged file from claspath.
2266         * java/sql/Connection.java: Ditto.
2267         * java/sql/DataTruncation.java: Ditto.
2268         * java/sql/DatabaseMetaData.java: Ditto.
2269         * java/sql/DriverManager.java: Ditto.
2270         * java/sql/PreparedStatement.java: Ditto.
2271         * java/sql/ResultSet.java: Ditto.
2272         * java/sql/ResultSetMetaData.java: Ditto.
2273         * java/sql/SQLException.java: Ditto.
2274         * java/sql/SQLWarning.java: Ditto.
2275         * java/sql/Statement.java: Ditto.
2276         * java/sql/Types.java: Ditto.
2277
2278 2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>
2279
2280         * java/lang/natSystem.cc (init_properties): Set user.language and
2281         user.region.
2282         * configure.in: Check for setlocale.
2283         * configure: Rebuilt.
2284         * include/config.h.in: Rebuilt.
2285
2286         * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2287         the infate() call didn't deliver any output. Throw a ZipException if
2288         the needsDictionary() call returns true.
2289         * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2290         * java/io/InputStreamReader: Use the default buffer size for the
2291         contained BufferedInputStream.
2292
2293 2000-11-28  Warren Levy  <warrenl@cygnus.com>
2294
2295         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2296         more time zone entries.
2297         * java/text/SimpleDateFormat.java (format): Added case for
2298         TIMEZONE_FIELD.
2299
2300 2000-11-28  Bryce McKinlay  <bryce@albatross.co.nz>
2301
2302         * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2303         directly rather than read() in all cases. Make primitive read
2304         implementations more efficient, as defined in JDK online docs.
2305         (skipBytes): Behave like the JDK's implementation.
2306         * java/io/BufferedReader.java: Merge classpath docs. Check for a
2307         closed stream with checkStatus() whenever an IOException can be
2308         thrown.
2309         (checkStatus): New private method.
2310
2311 2000-11-27  Warren Levy  <warrenl@cygnus.com>
2312
2313         * Makefile.am: Added natTimeZone.cc.
2314         * Makefile.in: Rebuilt.
2315         * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2316         * java/text/DateFormatSymbols.java (ampms): Made package private.
2317         (eras): Made package private.
2318         (months): Made package private.
2319         (shortMonths): Made package private.
2320         (shortWeekdays): Made package private.
2321         (weekdays): Made package private.
2322         (formatPrefixes): New private field.
2323         (localPatternCharsDefault): Made private.
2324         (dateFormats): New package private field.
2325         (timeFormats): New package private field.
2326         (formatsForKey): New private method.
2327         (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2328         (DateFormatSymbols(DateFormatSymbols)): Ditto.
2329         * java/text/SimpleDateFormat.java: Merged with Classpath.
2330         * java/util/TimeZone.java: Merged with Classpath.
2331         * java/util/natTimeZone.cc: New file.
2332
2333 2000-11-27  Bryce McKinlay  <bryce@albatross.co.nz>
2334
2335         * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2336         (addElement): Don't increment elementCount twice. Doh.
2337         * java/util/ArrayList.java (add): Only call ensureCapacity if the
2338         array needs to be expanded.
2339         (addAll): Ditto.
2340         * java/util/Collections.java (UnmodifiableCollection): Implement
2341         toString().
2342         (UnmodifiableList): Throw UnsupportedOperationException from
2343         modification methods. Set `l' from the one-parameter constructor.
2344         (UnmodifiableMap): Implement toString().
2345         (SynchronizedCollection): Ditto.
2346         (SynchronizedList): Set `l' from the one-parameter constructor.
2347         (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2348         (SynchronizedMap): Implement toString().
2349
2350 Sun Nov 26 23:59:55 2000  Anthony Green  <green@redhat.com>
2351
2352         * javax/naming/NameParser.java,
2353         javax/naming/directory/AttributeInUseException.java,
2354         javax/naming/directory/AttributeModificationException.java,
2355         javax/naming/directory/InvalidAttributeIdentifierException.java,
2356         javax/naming/directory/InvalidAttributesException.java,
2357         javax/naming/directory/InvalidAttributeValueException.java,
2358         javax/naming/directory/InvalidSearchControlsException.java,
2359         javax/naming/directory/InvalidSearchFilterException.java,
2360         javax/naming/directory/NoSuchAttributeException.java,
2361         javax/naming/directory/SchemaViolationException.java: New files.
2362
2363 Sun Nov 26 22:35:53 2000  Anthony Green  <green@redhat.com>
2364
2365         * javax/naming/InitialContext.java (rebind): Implement.
2366         (unbind): Implement.
2367         (rename): Implement.
2368         (list): Implement.
2369         (listBindings): Implement.
2370         (destroySubcontext): Implement.
2371         (createSubcontext): Implement.
2372         (lookupLink): Implement.
2373         (getNameParser): Implement.
2374         (composeName): Implement.
2375         (addToEnvironment): Implement.
2376
2377 Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
2378
2379         * javax/naming/AuthenticationException.java,
2380         javax/naming/AuthenticationNotSupportedException.java,
2381         javax/naming/CannotProceedException.java,
2382         javax/naming/CommunicationException.java,
2383         javax/naming/ConfigurationException.java,
2384         javax/naming/ContextNotEmptyException.java,
2385         javax/naming/InsufficientResourcesException.java,
2386         javax/naming/InterruptedNamingException.java,
2387         javax/naming/InvalidNameException.java,
2388         javax/naming/LimitExceededException.java,
2389         javax/naming/LinkException.java,
2390         javax/naming/LinkLoopException.java,
2391         javax/naming/MalformedLinkException.java,
2392         javax/naming/NameAlreadyBoundException.java,
2393         javax/naming/NameNotFoundException.java,
2394         javax/naming/NamingSecurityException.java,
2395         javax/naming/NoPermissionException.java,
2396         javax/naming/NotContextException.java,
2397         javax/naming/PartialResultException.java,
2398         javax/naming/ReferralException.java,
2399         javax/naming/ServiceUnavailableException.java,
2400         javax/naming/SizeLimitExceededException.java,
2401         javax/naming/TimeLimitExceededException.java: New files.
2402
2403         * javax/naming/Name.java (clone): New method.
2404         (compareTo): New method.
2405         (isEmpty): New method.
2406         (getAll): New method.
2407         (getPrefix): New method.
2408         (getSuffix): New method.
2409         (startsWith): New method.
2410         (endsWith): New method.
2411         (addAll): New method.
2412         (addAll): New method.
2413         (add): New method.
2414         (add): New method.
2415         (remove): New method.
2416
2417         * javax/naming/Context.java (lookup): New method.
2418         (rebind): New method.
2419         (unbind): New method.
2420         (rename): New method.
2421         (list): New method.
2422         (listBindings): New method.
2423         (destroySubcontext): New method.
2424         (createSubcontext): New method.
2425         (lookupLink): New method.
2426         (getNameParser): New method.
2427         (composeName): New method.
2428         (addToEnvironment): New method.
2429         (removeFromEnvironment): New method.
2430         (getEnvironment): New method.
2431         (close): New method.
2432         (getNameInNamespace): New method.
2433
2434         * javax/naming/InitialContext.java (lookup): New method.
2435         (rebind): New method.
2436         (unbind): New method.
2437         (rename): New method.
2438         (list): New method.
2439         (listBindings): New method.
2440         (destroySubcontext): New method.
2441         (createSubcontext): New method.
2442         (lookupLink): New method.
2443         (getNameParser): New method.
2444         (composeName): New method.
2445         (addToEnvironment): New method.
2446         (removeFromEnvironment): New method.
2447         (getEnvironment): New method.
2448         (close): New method.
2449         (getNameInNamespace): New method.
2450
2451 2000-11-26  Tom Tromey  <tromey@cygnus.com>
2452
2453         * Makefile.in: Rebuilt.
2454         * Makefile.am (core_java_source_files): Added
2455         RuntimePermission.java.
2456         * java/lang/RuntimePermission.java: Imported from Classpath.
2457         * java/lang/Thread.java (getContextClassLoader): Now
2458         synchronized.  Added security code.
2459         (setContextClassLoader): Likewise.
2460
2461         * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
2462         length field of array.
2463         (_Jv_NewPrimArray): Likewise.
2464         * gcj/array.h (__JArray): `length' field now const.  Added
2465         constructor.
2466
2467 2000-11-26  Anthony Green  <green@redhat.com>
2468
2469         * javax/naming/spi/NamingManager.java,
2470         javax/naming/spi/ObjectFactory.java,
2471         javax/naming/spi/InitialContextFactory.java,
2472         javax/naming/spi/InitialContextFactoryBuilder.java,
2473         javax/naming/RefAddr.java, javax/naming/Reference.java,
2474         javax/naming/NamingException.java, javax/naming/Context.java,
2475         javax/naming/Referenceable.java,
2476         javax/naming/directory/InitialDirContext.java,
2477         javax/naming/directory/DirContext.java,
2478         javax/naming/directory/Attributes.java,
2479         javax/naming/directory/Attribute.java,
2480         javax/naming/StringRefAddr.java,
2481         javax/naming/NamingEnumeration.java, javax/naming/Name.java,
2482         javax/naming/InitialContext.java,
2483         javax/naming/NoInitialContextException.java: New files.
2484
2485 2000-11-25  Anthony Green  <green@redhat.com>
2486
2487         * prims.cc (_Jv_NewObjectArray): Undo placement change.
2488         (_Jv_NewPrimArray): Likewise.
2489         * gcj/array.h (__JArray): Undo const change.  Removed constructor.
2490         (class JArray): Removed constructor.
2491
2492         * java/lang/Thread.java (context_class_loader): New private data.
2493         (getContextClassLoader): New method.
2494         (setContextClassLoader): New method.
2495         (Thread): Initialize context_class_loader.
2496
2497         * java/net/URLClassLoader.java: Import java.util.Enumeration.
2498         (getResource): Rename to findResource.
2499         (findResource): New method.  Used to be getResource.
2500         (getResourceAsStream): Deleted.
2501         (jarFileize): Extracted logic from URLClassLoader constructor into
2502         this new private method.
2503         (addURL): New protected method.
2504         (URLClassLoader): Call jarFileize.  Use addElement instead of
2505         insertElementAt.
2506         (findResources): New method.
2507
2508         * java/lang/ClassLoader.java: Import java.util.Enumeration.
2509         (getResource): Implement correct logic.
2510         (findResource): New method.
2511         (getResources): New method.
2512         (findClass): Create a ClassNotFoundException with the name of the
2513         class rather than nothing at all.
2514         (defineClass) Only throw ClassFormatError.
2515
2516         * java/lang/Class.java (forName): New method.
2517         * java/lang/Class.h (forName): New method.
2518         * java/lang/natClass.cc (forName): New method.
2519
2520 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
2521
2522         * java/lang/System.java (setProperties): Only call init_properties()
2523         if properties is null.
2524         (getProperties): Ditto.
2525         (getProperty): Ditto.
2526         (setProperty): Call init_properties if properties are null.
2527         (prop_init): Remove field.
2528         * java/lang/natSystem.cc (init_properties): Synchronize the entire
2529         method. Check for null properties after synchronizing instead of
2530         prop_init flag. Set the properties field last for thread safety.
2531
2532         * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
2533         test for gcj.dumpobjects property and enable object stream dumping
2534         if it is set.
2535         (dumpElement): No longer native.
2536         (dumpElementln): Ditto.
2537         (setDump): Do not define.
2538         * java/io/natObjectInputStream.cc (dumpElement): Removed.
2539         (dumpElementln): Removed.
2540         (setDump): Removed.
2541
2542 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
2543
2544         * configure: Rebuilt.
2545         * Makefile.in: Rebuilt.
2546         * Makefile.am (built_java_source_files): Add Configuration.java.
2547         * configure.in: Add Configuration.java to CONFIG_FILES. Set
2548         LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
2549         Create `gnu' directory in the build tree.
2550         * gnu/classpath/Configuration.java.in: New file.
2551
2552 2000-11-24  Tom Tromey  <tromey@cygnus.com>
2553
2554         * prims.cc (_Jv_NewObjectArray): Use placement new to create
2555         array.
2556         (_Jv_NewPrimArray): Likewise.
2557         Include <new>.
2558         * gcj/array.h (__JArray): `length' field now const.  Added
2559         constructor.
2560         (class JArray): Added constructor.
2561
2562 2000-11-23  Mark Wielaard  <mark@klomp.org>
2563
2564         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
2565         lookup.
2566
2567 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
2568
2569         * java/util/Vector.java: Improve exception messages.
2570         (Vector): Check initialCapacity for IllegalArgumentException.
2571         (tromToSize): Don't check for elementCount == elementData.length
2572         case.
2573         (toArray): Don't try to set null marker if target array is the same
2574         length as the vector.
2575
2576 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
2577
2578         * Makefile.in: Rebuilt.
2579         * Makefile.am (core_java_source_files): Added Collections.java.
2580         * java/util/List.java: Merged from classpath.
2581         * java/util/Vector.java: Ditto.
2582         * java/util/Collections.java: From classpath.
2583         * java/util/ArrayList.java (addAll(Collection)): Call
2584         addAll(int,Collection) instead of duplicating code.
2585         (indexOf): Clean up int initialization.
2586         (clear): Set cleared array entries to null, to allow garbage
2587         collection.
2588         * java/util/List.java: Minor formatting fixes.
2589         * java/util/SimpleTimeZone.java: ditto.
2590
2591 2000-11-18  Tom Tromey  <tromey@cygnus.com>
2592
2593         * Makefile.in: Rebuilt.
2594         * Makefile.am (core_java_source_files): Added new files.
2595         * java/lang/reflect/ReflectPermission.java: New class.
2596         * java/io/FileFilter.java: From Classpath
2597         * java/io/FilePermission.java: From Classpath.
2598
2599 2000-11-17  Tom Tromey  <tromey@cygnus.com>
2600
2601         * java/lang/reflect/AccessibleObject.java (isAccessible,
2602         setAccessible): Now public.
2603
2604         * java/lang/natString.cc: Include Locale.h.
2605         (toUpperCase): Added `locale' argument.  Handle locale
2606         sensitivity.
2607         (toLowerCase): Added `locale' argument.  Handle locale
2608         sensitivity.
2609         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
2610         CAPITAL_I): New defines.
2611         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
2612         final.
2613         Import Locale.
2614         (toUpperCase, toLowerCase): New methods.  Variants which accept
2615         locale now native.
2616
2617         * java/lang/ExceptionInInitializerError.java (printStackTrace):
2618         New methods.
2619
2620         * java/util/PropertyPermission.java: Re-merged from Classpath.
2621
2622         * java/text/RuleBasedCollator.java (getCollationElementIterator):
2623         New method.
2624         * java/text/StringCharacterIterator.java: Reindented.
2625         (setText): New method.
2626
2627 2000-11-17  Mark Wielaard  <mark@klomp.org>
2628
2629         Merge with Classpath (changes by Bryce McKinlay)
2630         * java/util/jar/*.java: Reformat all to unofficial standard coding
2631         style. No changes of substance.
2632
2633 2000-11-17  Mark Wielaard  <mark@klomp.org>
2634
2635         * java/util/zip/*.java: Javadoc updates.
2636
2637 2000-11-17  Tom Tromey  <tromey@cygnus.com>
2638
2639         * java/text/CollationKey.java: Implement Comparable.
2640         (compareTo(Object)): New method.
2641         * java/text/Collator.java (compare(Object,Object)): New method.
2642         Implement Comparator.
2643
2644         * java/util/zip/InflaterInputStream.java (available): New method.
2645         (close): New method.
2646         (read, available, skip, fill): Throw exception if stream closed.
2647         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
2648         getNextEntry): Throw exception if closed.
2649
2650 2000-11-16  Tom Tromey  <tromey@cygnus.com>
2651
2652         * java/io/PushbackReader.java: Merged with Classpath.
2653         * java/util/Arrays.java: Updated from Classpath.
2654
2655         * scripts/blocks.pl: New file.
2656         * java/lang/Character.java (Subset): New class.
2657         (UnicodeBlock): New class.
2658
2659         * java/lang/Math.java (toDegrees, toRadians): New methods.
2660
2661         * java/lang/Float.java: Implement Comparable.
2662         (compareTo): New methods.
2663         * java/lang/Double.java: Implement Comparable.
2664         (compareTo): New methods.
2665
2666 2000-11-16  Warren Levy  <warrenl@cygnus.com>
2667
2668         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
2669         transient.
2670         (listeners): Made transient.
2671         (source): Renamed from 'bean'.
2672         (children): New field for serialization.
2673         (propertyChangeSupportSerializedDataVersion): Ditto.
2674         (serialVersionUID): Ditto.
2675         (writeObject): New serialization method.
2676         (readObject): New serialization method.
2677         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
2678         transient.
2679         (listeners): Made transient.
2680         (source): Renamed from 'bean'.
2681         (children): New field for serialization.
2682         (vetoableChangeSupportSerializedDataVersion): Ditto.
2683         (serialVersionUID): Ditto.
2684         (writeObject): New serialization method.
2685         (readObject): New serialization method.
2686         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
2687         to allow constructor to have a return type (i.e. the class that the
2688         constructor constructs).
2689
2690 2000-11-14  Tom Tromey  <tromey@cygnus.com>
2691
2692         * Makefile.in: Rebuilt.
2693         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
2694         and -k not given.
2695
2696 2000-11-02  Warren Levy  <warrenl@cygnus.com>
2697
2698         * java/io/ObjectInputStream.java (readObject): Added code to
2699         conditionally dump out the serialized data.
2700         Handle ENDBLOCKDATA case a bit more gracefully since the current
2701         behavior doesn't seem to work as expected.
2702         (readStreamHeader): Added code for serialized data dumper.
2703         (readNextBlock): Ditto.
2704         (readFields): Ditto.
2705         (dump): New private static field for turning on/off dumper.
2706         (setDump): New native method.
2707         (dumpElement): New native method.
2708         (dumpElementln): New native method.
2709         * java/io/natObjectInputStream.cc (setDump): New method.
2710         (dumpElement): New method.
2711         (dumpElementln): New method.
2712
2713 2000-11-02  Warren Levy  <warrenl@cygnus.com>
2714
2715         * java/net/InetAddress.java (addr): Renamed from 'address'.
2716         (address): New field to match Serialized Form doc.
2717         (hostName): Renamed from 'hostname' to match Serialized Form doc.
2718         (family): New serialization field.
2719         (serialVersionUID): New field.
2720         (readObject): New method.
2721         (writeObject): New method.
2722         (getFamily): New native method.
2723         (InetAddress): Set family.
2724         * java/net/natInetAddress.cc (getFamily): New method.
2725         (addr): Renamed from 'address'.
2726         (hostName): Renamed from 'hostname' to match Serialized Form doc.
2727         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
2728         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
2729
2730 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
2731
2732         * java/util/AbstractList.java (SubList): Make it a top-level private
2733         class.
2734         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
2735         (add): Ditto.
2736         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
2737         * Makefile.in: Rebuilt.
2738
2739 2000-11-02  Tom Tromey  <tromey@cygnus.com>
2740
2741         * Makefile.in: Rebuilt.
2742         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
2743         link.
2744
2745 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
2746
2747         * java/util/AbstractList.java (remove): Comment out modCount increment
2748         to work around compiler bug.
2749         (add): Ditto.
2750
2751 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
2752
2753         * java/util/AbstractList.java: Throw messages with
2754         IndexOutOfBoundsExceptions.
2755          (listIterator()): Call listIterator(0).
2756         (size): New field. Initialize to size().
2757         (hasNext): Test position against size, not size().
2758         (remove): Increment knownMod by one instead of resetting it from
2759         modCount.
2760         (add): Ditto.
2761         (SubList.upMod): Removed.
2762         (SubList.set): Don't call upMod() or update knownMod.
2763         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
2764         (SubList.remove): Ditto.
2765         (SubList.addAll): Don't call backingList.size(). Increment size from
2766         c.size().
2767         (SubList.iterator): New method. Call listIterator(0).
2768         (SubList.listIterator): New method. Restore code to return an anonymous
2769         listIterator implementation (with some changes).
2770         * java/util/AbstractSequentialList.java: Throw messages with
2771         IndexOutOfBoundsExceptions.
2772         (addAll): Add a specnote.
2773         * java/util/ArrayList.java (removeRange): Get the math right.
2774         (addAll): Increment modCount _before_ creating iterator.
2775         * java/util/LinkedList.java: Rewritten, mostly.
2776
2777 2000-11-01  Tom Tromey  <tromey@cygnus.com>
2778
2779         * scripts/encodings.pl: Added `ASCII' alias.
2780         * Makefile.in: Rebuilt.
2781         * Makefile.am (convert_source_files): Added new files.
2782         * gnu/gcj/convert/Input_ASCII.java: New file.
2783         * gnu/gcj/convert/Output_ASCII.java: New file.
2784         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
2785         out-of-range characters.
2786         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
2787         (read): Swap bytes if required.  Treat `count' as character count,
2788         not byte count.
2789         (write): Likewise.  Also, handle case where iconv fails on a given
2790         character.
2791         (init): Put encoding into exception.
2792         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
2793         (static): Call iconv_init.  Rebuilt alias list.
2794         (iconv_init): New private method.
2795
2796 2000-11-01  Tom Tromey  <tromey@cygnus.com>
2797
2798         * Makefile.in: Rebuilt.
2799         * Makefile.am (install-exec-hook): Only make a single symlink, and
2800         remove the destination before making the link.
2801         * configure: Rebuilt.
2802         * configure.in: Call AC_PROG_LN_S.
2803
2804 2000-10-31  Warren Levy  <warrenl@cygnus.com>
2805
2806         * jni.cc: Added include of java/lang/ThreadGroup.h.
2807         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
2808         per change of 2000-10-05.
2809
2810 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
2811
2812         * java/util/BitSet.java: Updated @specnote.
2813
2814         * java/io/Reader.java: Merge docs from classpath.
2815         (skip): Synchronize on `lock'.
2816         * java/io/FileReader.java: Import correct implementation from
2817         classpath.
2818         * java/io/StringReader.java: Merge docs from classpath.
2819         (ready): Throw IOException if stream is closed.
2820
2821 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
2822
2823         * java/util/AbstractCollection.java (addAll): Use size() instead of
2824         hasNext() in iterator loop.
2825         (clear): Ditto.
2826         (contains): Ditto. Simplify loop.
2827         (containsAll): Ditto.
2828         (remove): Ditto.
2829         (removeAll): Ditto.
2830         (retainAll): Ditto.
2831         (toArray): Ditto.
2832         (toString): Ditto. Use string concatenation operators, not
2833         StringBuffer.
2834         * java/util/AbstractList.java (addAll): Use size() instead of
2835         hasNext() in iterator loop.
2836         (equals): Ditto.
2837         (hashCode): Ditto.
2838         (indexOf): Ditto. Don't take null check outside of the loop.
2839         (iterator): Return an AbstractListItr instead of anonymous class.
2840         (lastIndexOf): Use a for loop bounded by size() instead of
2841         hasPrevious() in iterator loop.
2842         (listIterator): Return an AbstractListItr.
2843         (removeRange): Remove bounds checking code and docs.
2844         (AbstractListItr): New inner class. Code moved here from
2845         listIterator().
2846         (SubList.iterator): Removed. Use default implementation from
2847         AbstractList instead.
2848         (SubList.listIterator): As above.
2849         * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
2850         instead of hasNext() in iterator loop.
2851         (containsValue): Ditto.
2852         (equals): Ditto.
2853         (get): Ditto.
2854         (put): Ditto.
2855         (putAll): Ditto.
2856         (remove): Ditto.
2857         (toString): Ditto. Use string concatenation operators, not
2858         StringBuffer.
2859         * java/util/AbstractSequentialList.java (addAll): Use a for loop
2860         bounded by size() instead of hasNext() in iterator loop.
2861         * java/util/AbstractSet.java (hashCode): Don't catch exception as
2862         part of normal execution flow. Do an explicit null check instead.
2863         * java/util/ArrayList.java (_iSize): Rename to `size'.
2864         (_arData): Rename to `data'.
2865         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
2866         message.
2867         (remove): Ditto.
2868         (removeRange): Make protected. Don't check bounds.
2869         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
2870         message.
2871         (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
2872         check.
2873         (addAll (int, Collection)): Check lower bounds. Simplify exception
2874         string.
2875         (clone): Clone the data array too.
2876         (indexOf): Inline doesEqual().
2877         (lastIndexOf): Ditto.
2878         (clear): Don't set array data to null.
2879         (set): Check lower bounds. Simplify exception string.
2880         (toArray): Correct comment.
2881         (trimToSize): Don't update modCount, this is not a structural change.
2882         Add comment.
2883
2884         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
2885         implemented.
2886         (toString): Declare `bit' as long, not int.
2887         (data): Made package-private, not private.
2888
2889 2000-10-27  Warren Levy  <warrenl@cygnus.com>
2890
2891         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
2892         array elements to true.
2893
2894 2000-10-27  Warren Levy  <warrenl@cygnus.com>
2895
2896         * Makefile.am: Added locale files from Classpath.
2897         * Makefile.in: Rebuilt.
2898         * gnu/java/locale/Calendar.java: New file.
2899         * gnu/java/locale/Calendar_de.java: New file.
2900         * gnu/java/locale/Calendar_en.java: New file.
2901         * gnu/java/locale/Calendar_nl.java: New file.
2902         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
2903         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
2904         serialization compatibility.
2905         (scale): Made private.
2906         (serialVersionUID): New field.
2907         * java/math/BigInteger.java (ival): Made transient.
2908         (words): Made transient.
2909         (bitCount): New serialization field.
2910         (bitLength): Ditto.
2911         (firstNonzeroByteNum): Ditto.
2912         (lowestSetBit): Ditto.
2913         (magnitude): Ditto.
2914         (signum): Ditto.
2915         (serialVersionUID): New field.
2916         (readObject): New method.
2917         (writeObject): New method.
2918         * java/util/BitSet.java (serialVersionUID): New field.
2919         * java/util/Calendar.java: Replaced with Classpath file.
2920         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
2921         of getDefault() for TimeZone or Locale instead of passing nulls.
2922         * java/util/Locale.java (serialVersionUID): New field.
2923         (writeObject): New method.
2924         (readObject): New method.
2925         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
2926
2927 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
2928
2929         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
2930         (core_java_source_files): Put java.lang, java.io, and java.util here.
2931         (ordinary_java_source_files): Order so that core_java_source_files are
2932         built first.
2933         (java_source_files): Reorder so that special_java_source_files are
2934         built first.
2935         * configure.in: Don't pass -I flag to gcj.
2936         * Makefile.in: Rebuilt.
2937         * configure: Rebuilt.
2938
2939 2000-10-25  Tom Tromey  <tromey@cygnus.com>
2940
2941         * Makefile.in: Rebuilt.
2942         * Makefile.am (install-exec-hook): New target.
2943
2944 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
2945
2946         * java/util/EventObject.java: Merged from classpath.
2947
2948         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
2949         with stack dump.
2950
2951 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2952
2953         * java/util/AbstractSet.java (equals): Re-installed original code.
2954
2955 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
2956
2957         * Makefile.am: Added rules for libgcjx library.
2958         * Makefile.in: Rebuilt.
2959         * configure.in: Added check for X.
2960         * configure: Rebuilt.
2961         * gnu/awt/LightweightRedirector.java: New file.
2962         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
2963         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
2964         * gnu/awt/j2d/Graphics2DImpl.java: New file.
2965         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
2966         * gnu/awt/j2d/MappedRaster.java: New file.
2967         * gnu/awt/xlib/XCanvasPeer.java: New file.
2968         * gnu/awt/xlib/XEventLoop.java: New file.
2969         * gnu/awt/xlib/XEventQueue.java: New file.
2970         * gnu/awt/xlib/XFontMetrics.java: New file.
2971         * gnu/awt/xlib/XFramePeer.java: New file.
2972         * gnu/awt/xlib/XGraphics.java: New file.
2973         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
2974         * gnu/awt/xlib/XPanelPeer.java: New file.
2975         * gnu/awt/xlib/XToolkit.java: New file.
2976         * gnu/gcj/xlib/Clip.java: New file.
2977         * gnu/gcj/xlib/Colormap.java: New file.
2978         * gnu/gcj/xlib/Display.java: New file.
2979         * gnu/gcj/xlib/Drawable.java: New file.
2980         * gnu/gcj/xlib/Font.java: New file.
2981         * gnu/gcj/xlib/GC.java: New file.
2982         * gnu/gcj/xlib/Pixmap.java: New file.
2983         * gnu/gcj/xlib/Screen.java: New file.
2984         * gnu/gcj/xlib/Visual.java: New file.
2985         * gnu/gcj/xlib/WMSizeHints.java: New file.
2986         * gnu/gcj/xlib/Window.java: New file.
2987         * gnu/gcj/xlib/WindowAttributes.java: New file.
2988         * gnu/gcj/xlib/XAnyEvent.java: New file.
2989         * gnu/gcj/xlib/XButtonEvent.java: New file.
2990         * gnu/gcj/xlib/XColor.java: New file.
2991         * gnu/gcj/xlib/XConfigureEvent.java: New file.
2992         * gnu/gcj/xlib/XConnectException.java: New file.
2993         * gnu/gcj/xlib/XEvent.java: New file.
2994         * gnu/gcj/xlib/XException.java: New file.
2995         * gnu/gcj/xlib/XExposeEvent.java: New file.
2996         * gnu/gcj/xlib/XID.java: New file.
2997         * gnu/gcj/xlib/XImage.java: New file.
2998         * gnu/gcj/xlib/XUnmapEvent.java: New file.
2999         * gnu/gcj/xlib/natClip.cc: New file.
3000         * gnu/gcj/xlib/natColormap.cc: New file.
3001         * gnu/gcj/xlib/natDisplay.cc: New file.
3002         * gnu/gcj/xlib/natDrawable.cc: New file.
3003         * gnu/gcj/xlib/natFont.cc: New file.
3004         * gnu/gcj/xlib/natGC.cc: New file.
3005         * gnu/gcj/xlib/natPixmap.cc: New file.
3006         * gnu/gcj/xlib/natScreen.cc: New file.
3007         * gnu/gcj/xlib/natVisual.cc: New file.
3008         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3009         * gnu/gcj/xlib/natWindow.cc: New file.
3010         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3011         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3012         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3013         * gnu/gcj/xlib/natXColor.cc: New file.
3014         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3015         * gnu/gcj/xlib/natXException.cc: New file.
3016         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3017         * gnu/gcj/xlib/natXImage.cc: New file.
3018         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3019         * java/awt/EventDispatchThread.java: Start thead on creation.
3020
3021 2000-10-20  Tom Tromey  <tromey@cygnus.com>
3022
3023         From Arno J. Klaassen:
3024         * interpret.cc: Include <stdlib.h> for alloca.
3025         * defineclass.cc: Include <stdlib.h> for alloca.
3026
3027         * Makefile.in: Rebuilt.
3028         * Makefile.am: Include deps.mk.
3029         (GCJCOMPILE): Added -MD, -MT, and -MF.
3030         ($(javao_files)): Don't depend on libgcj.zip.
3031         (all-recursive): New target.
3032         (%.lo:%.cc): Do dependency tracking.
3033         ($(nat_headers)): Don't depend on libgcj.zip.
3034         * configure: Rebuilt.
3035         * configure.in: Make .d files and deps.mk.
3036
3037 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
3038
3039         * exception.cc: Don't #include "exception".
3040         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3041
3042         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3043         * Makefile.in: Updated.
3044
3045 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
3046
3047         * java/awt/peer/ChoicePeer.java (addItem): Removed.
3048         * java/awt/peer/ComponentPeer.java (disable): Removed.
3049         (enable): Removed.
3050         (hide): Removed.
3051         (minimumSize): Removed.
3052         (preferredSize): Removed.
3053         (reshape): Removed.
3054         (show): Removed.
3055         * java/awt/peer/ListPeer.java (addItem): Removed.
3056         (clear): Removed.
3057         (minimumSize): Removed.
3058         (preferredSize): Removed.
3059         (setMultipleSelections): Removed.
3060         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3061         (remove): Renamed from removeMenu.
3062         * java/awt/peer/MenuItemPeer.java (disable): Removed.
3063         (enable): Removed.
3064         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3065         (remove): Renamed from removeItem.
3066         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3067         (getMinimumSize): Removed.
3068         (getPreferredSize): Removed.
3069         (minimumSize): Removed.
3070         (preferredSize): Removed.
3071         (replaceText): Removed.
3072         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3073         (preferredSize): Removed.
3074         (getMinimumSize): Removed.
3075         (getPreferredSize): Removed.
3076         (setEchoCharacter): Removed.
3077
3078 2000-10-10  Warren Levy  <warrenl@cygnus.com>
3079
3080         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3081         * java/sql/Date.java (serialVersionUID): New field.
3082         * java/sql/Time.java (serialVersionUID): New field.
3083         * java/sql/Timestamp.java (serialVersionUID): New field.
3084         * java/text/ChoiceFormat.java (serialVersionUID): New field.
3085         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3086         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3087         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3088         (readObject): New serialization method.
3089         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3090         (serialVersionOnStream): New field.
3091         (readObject): New serialization method.
3092         (getMonetaryDecimalSeparator): New method.
3093         (setMonetaryDecimalSeparator): New method.
3094         * java/text/NumberFormat.java (maxFractionDigits): New field.
3095         (maxIntegerDigits): New field.
3096         (minFractionDigits): New field.
3097         (minIntegerDigits): New field.
3098         (serialVersionOnStream): New field.
3099         (serialVersionUID): New field.
3100         (readObject): New serialization method.
3101         (writeObject): New serialization method.
3102         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3103         (serialVersionOnStream): New field.
3104         (serialVersionUID): New field.
3105         (readObject): New serialization method.
3106
3107 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
3108
3109         * configure.in (GCJ): Avoid bogus error message when looking for
3110         (and not finding) gcj in the build tree.
3111         * configure: Rebuilt.
3112
3113 2000-10-09  Tom Tromey  <tromey@cygnus.com>
3114
3115         * configure: Rebuilt.
3116         * configure.in: Include sys/types.h when checking for socklen_t.
3117         From Arno J. Klaassen.
3118
3119 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
3120
3121         * include/jvm.h: Enable __builtin_expect().
3122
3123         * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3124         the main program. Fix for PR libgcj/341.
3125
3126 2000-10-07  Tom Tromey  <tromey@cygnus.com>
3127
3128         * java/util/Properties.java: Merged with Classpath version.
3129
3130 2000-10-05  Tom Tromey  <tromey@cygnus.com>
3131
3132         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3133         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3134         * java/lang/Class.h (Object): Added `class$' field.
3135         * java/lang/Object.h (Object): Added `class$' field.
3136         * defineclass.cc (ClassClass): Use `class$' form.
3137         (ClassObject): Likewise.
3138         * resolve.cc (ClassObject): Use `class$' form.
3139         (ObjectClass): Likewise.
3140         * interpret.cc (ClassError): Removed.
3141         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3142         `class$' form.
3143         (IntegerClass): Likewise.
3144         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3145         form.
3146         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3147         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3148         SerializableClass): Likewise.
3149         Include Serializable.h, Cloneable.h.
3150         * java/lang/natSystem.cc (SystemClass): Removed.
3151         (init_properties): Use `class$' form.
3152         * java/lang/natObject.cc (CloneableClass): Removed.
3153         (clone): Use `class$' form.
3154         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3155         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3156         ConstructorClass): Likewise.
3157         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3158         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3159         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3160         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3161         form.
3162         (ClassClass): Likewise.
3163         * include/jvm.h (StringClass): Use `class$' form.
3164         * prims.cc (ObjectClass): Removed.
3165         (_Jv_RunMain): Use `class$' form.
3166         (_Jv_AllocObject): Likewise.
3167         * jni.cc (ClassClass): Use `class$' form.
3168         (ThrowableClass): Likewise.
3169         (ObjectClass): Likewise.
3170         (MethodClass): Likewise.
3171         (ThreadGroupClass): Likewise.
3172         (NativeThreadClass): Likewise.
3173         * boehm.cc (ObjectClass): Removed.
3174         (ClassClass): Removed.
3175         (_Jv_MarkObj): Use `class$' form.
3176         * gcj/field.h (JvFieldIsRef): Use `class$' form.
3177         Include RawData.h.
3178
3179 2000-10-05  Warren Levy  <warrenl@cygnus.com>
3180
3181         * Makefile.am: Removed java/io/Replaceable.java and
3182         java/io/Resolvable.java.
3183         * Makefile.in: Rebuilt.
3184         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3185         namespace.
3186         * java/io/ObjectInputStream.java (processResolution): Fixed typo
3187         in method name.
3188         (processResolution): Handle readResolve method via reflection with
3189         removal of Resolvable interface.
3190         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3191         method via reflection with removal of Replaceable interface.
3192         * java/io/Replaceable.java: Removed.
3193         * java/io/Resolvable.java: Removed.
3194         * java/security/Key.java (serialVersionUID): New field.
3195         * java/security/Provider.java (serialVersionUID): New field.
3196         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3197         New field.
3198         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3199         New field.
3200         * java/sql/DataTruncation.java (serialVersionUID): New field.
3201         * java/sql/SQLException.java (serialVersionUID): New field.
3202         * java/sql/SQLWarning.java (serialVersionUID): New field.
3203         * java/util/Date.java (serialVersionUID): New field.
3204         (millis): Made transient.
3205         (readObject): New method.
3206         (writeObject): New method.
3207
3208 2000-10-05  Tom Tromey  <tromey@cygnus.com>
3209
3210         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3211
3212 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
3213
3214         * prims.cc (_Jv_argv, _Jv_argc): New fields.
3215         (JvRunMain): Set _Jv_argv and _Jv_argc.
3216         * java/awt/Component.java: Minor fixes.
3217         * java/awt/Image.java (UndefinedProperty): Initialize final field.
3218         * java/awt/Toolkit.java (systemEventQueue): Removed.
3219         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3220         * java/awt/Window.java (getToolkit): Don't call super.
3221         * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3222         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3223         * gnu/awt/gtk/GtkComponentPeer.java: New file.
3224         * gnu/awt/gtk/GtkContainerPeer.java: New file.
3225         * gnu/awt/gtk/GtkFramePeer.java: New file.
3226         * gnu/awt/gtk/GtkMainThread.java: New file.
3227         * gnu/awt/gtk/GtkToolkit.java: New file.
3228         * gnu/awt/gtk/GtkWindowPeer.java: New file.
3229         * gnu/awt/gtk/gtkcommon.cc: New file.
3230         * gnu/awt/gtk/gtkcommon.h: New file.
3231         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3232         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3233         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3234         * gnu/awt/gtk/natGtkMainThread.cc: New file.
3235         * gnu/awt/gtk/natGtkToolkit.cc: New file.
3236         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3237
3238 2000-09-30  Tom Tromey  <tromey@cygnus.com>
3239
3240         * posix-threads.cc (_Jv_CondWait): Check to see if we are
3241         interrupted before modifying the cv's wait set.
3242         From Corey Minyard.
3243
3244 2000-09-30  Hans Boehm  <boehm@acm.org>
3245             Bryce McKinlay  <bryce@albatross.co.nz>
3246
3247         Implement bitmap descriptor based marking for Boehm GC.
3248
3249         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3250         * configure: Rebuilt.
3251         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3252         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3253         method get_finalizer().
3254         (struct _Jv_ArrayVTable): Ditto. Declare method array with
3255         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3256         (_Jv_AllocObj): Add new jclass parameter.
3257         (_Jv_AllocArray): Ditto.
3258         (_Jv_BuildGCDescr): New prototype.
3259         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3260         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3261         get_finalizer() instead of direct finalizer vtable offset.
3262         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3263         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3264         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3265         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3266         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3267         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3268         (_Jv_DetermineVTableIndex): Ditto.
3269         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3270         calculations to account for new gc_descr field.
3271         * boehm.cc: #include gc_gcj.h.
3272         (obj_kind_x, obj_free_list): `#if 0'-ed away.
3273         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3274         New commentary from HB. Mark the classes vtable.
3275         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3276         (GC_DEFAULT_DESCR): New #define.
3277         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3278         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3279         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3280         scan conservativly if size is less than min_heap_addr. Set vtable
3281         pointer of new object before returning.
3282         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3283         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3284         allocation for obj_kind_x.
3285         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3286         (_Jv_AllocObj): Set vtable on returned object.
3287         (_Jv_AllocArray): Ditto.
3288         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3289         (_Jv_NewPrimArray): Ditto.
3290         (_Jv_AllocObj): Declare as a friend.
3291         (_Jv_AllocArray): Ditto.
3292         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3293         from &ObjectClass into new array class. Remove offset-by-one
3294         adjustments from `method' size calculations to account for gc_descr
3295         field.
3296
3297 2000-09-26  Tom Tromey  <tromey@cygnus.com>
3298
3299         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3300         `remove', not `add'.
3301
3302 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3303
3304         * java/lang/natSystem.cc (file_encoding): Added return statement.
3305
3306 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
3307
3308         * Makefile.am: Re-work shell commands that exceeded command-line
3309         length limits.
3310         * Makefile.in: Rebuilt.
3311
3312         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3313
3314         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3315         * java/lang/natDouble.cc: Likewise.
3316         * java/lang/reflect/natMethod.cc: Likewise.
3317         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
3318
3319 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
3320
3321         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3322         libgcjdata.a.
3323         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
3324         * acinclude.m4: Arrange for automake to not bring in a new
3325         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
3326         * Makefile.am: Leave it up to automake to subst GCJ.
3327         * aclocal.m4, configure, Makefile.in: Rebuilt.
3328
3329 2000-09-13  Tom Tromey  <tromey@cygnus.com>
3330
3331         * java/lang/reflect/natArray.cc (BooleanClass): New define.
3332         (get): Ensure Boolean class is initialized.
3333         * java/lang/reflect/natField.cc (BooleanClass): New define.
3334         (get): Ensure Boolean class is initialized.
3335
3336 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
3337
3338         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3339         Initialize with anonymous class.
3340         (compareToIgnoreCase): New method.
3341
3342         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3343         (uncaughtException): Set had_uncaught_exception.
3344         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3345         exit with error status if set.
3346         (_Jv_RunMain): Ditto.
3347
3348 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
3349
3350         * configure: Rebuilt with new ../libtool.m4.
3351
3352 2000-09-11  Tom Tromey  <tromey@cygnus.com>
3353
3354         * java/lang/reflect/Field.java (toString): Don't rely on
3355         Class.toString.
3356
3357 2000-09-08  Tom Tromey  <tromey@cygnus.com>
3358
3359         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3360         default decoder use iconv.
3361         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3362         Let default encoder use iconv.
3363         * configure: Rebuilt.
3364         * configure.in: Check for nl_langinfo and <langinfo.h>.
3365         * java/lang/natSystem.cc (file_encoding): New function.
3366         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3367
3368 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
3369
3370         * acinclude.m4: Simplify the tests for CC and CXX.
3371         * aclocal.m4, configure: Rebuilt.
3372
3373         * acinclude.m4: Include libtool macros from the source tree.
3374         * aclocal.m4, configure: Rebuilt.
3375
3376 2000-09-08  Warren Levy  <warrenl@cygnus.com>
3377
3378         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3379         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3380         * java/io/File.java (writeObject): Added.
3381         (readObject): Added.
3382         (serialVersionUID): Added.
3383         * java/io/ObjectOutputStream.java (writeObject): Initialized
3384         fieldsAlreadyWritten before recursion rather than after.
3385         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3386         * java/io/OptionalDataException.java (serialVersionUID): Added.
3387         (OptionalDataException): Made package private.
3388         * java/io/SyncFailedException.java (SyncFailedException): Removed
3389         default constructor to match spec.
3390         * java/lang/Boolean.java (serialVersionUID): Added.
3391         * java/lang/Byte.java (serialVersionUID): Added.
3392         * java/lang/Character.java (serialVersionUID): Added.
3393         * java/lang/Double.java (serialVersionUID): Added.
3394         * java/lang/Float.java (serialVersionUID): Added.
3395         * java/lang/Integer.java (serialVersionUID): Added.
3396         * java/lang/Long.java (serialVersionUID): Added.
3397         * java/lang/Number.java (serialVersionUID): Added.
3398         * java/lang/Short.java (serialVersionUID): Added.
3399         * java/lang/String.java (serialVersionUID): Added.
3400         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
3401         to match spec.
3402         * java/lang/reflect/InvocationTargetException.java
3403         (serialVersionUID): Added.
3404         * java/net/URL.java (handler): Made transient.
3405         (hashCode): Added field for serialization, per spec. and use
3406         cached value if available.
3407         (serialVersionUID): Added.
3408         (URL): Initialize hashCode.
3409         (set): Adjust hashCode.