OSDN Git Service

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