OSDN Git Service

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