OSDN Git Service

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