OSDN Git Service

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