OSDN Git Service

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