OSDN Git Service

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