OSDN Git Service

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