configure.in: Only use `lang_requires' for languages athat are actually enabled.
[official-gcc.git] / libjava / ChangeLog
blobce7250e71cb4271e1de0613f6e58c189d1820463
1 2001-03-08  Tom Tromey  <tromey@redhat.com>
3         * java/io/ObjectStreamClass.java (setUID): Don't write interface
4         info for array classes.
5         Fixes PR libgcj/1971.
7 2001-03-06  Bryce McKinlay  <bryce@albatross.co.nz>
9         * java/util/TreeSet.java (writeObject): Use a for-loop instead of
10         Iterator.hasNext().
12 2001-03-05  Jochen Hoenicke  <jochen@gnu.org>
14         * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
15         instead of the new JDK1.2 API.  This is simpler and makes 
16         back-porting the classes to JDK1.1 trivial.
17         (readObject): likewise.
18         
19 2001-03-01  Per Bothner  <per@bothner.com>
21         Changes merged from Kawa's gnu.math.
22         * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
23         (rshift(int[],int[],int,int):  Removed - not needed.
24         (gcd):  Use rshift0 rather than rshift.
25         * java/math/BigInteger.java (setShiftRight):  Likewise.
26         (divide):  Simplify by using rshift0.
27         (divide):  Zero-extend results if high-order bit set.
29 2001-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
31         * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
32         linking.
34 2001-02-23  Per Bothner  <per@bothner.com>
36         Change to sometimes include class name in ClassFormatError message.
37         * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
38         _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)):  Return
39         boolean instead of throwing ClassFormatError on failure.
40         (throw_class_format_error):  Change static function to method.
41         (_Jv_ClassReader):  New inline methods verify_identifier,
42         two overloads of verify_classname, verify_field_signature, and
43         verify_method_signature
44         * include/java-interp.h:  Update declarations to return bool.
45         * java/lang/natClassLoader.cc (defineClass0):  Explicitly throw
46         ClassFormatError since _Jv_VerifyClassName now returns bool.
48 2001-02-23  Per Bothner  <per@bothner.com>
50         * java/lang/Throwable.java (CPlusPlusDemangler):  Pass -s java to
51         c++filt to select java-style output.
53 2001-02-22  Bryce McKinlay  <bryce@albatross.co.nz>
55         Fix for PR java/2040:
56         * java/util/HashMap.java (HashMap): Don't throw exception for 
57         loadFactor > 1. Add exception messages.
58         * java/util/Hashtable.java (Hashtable): Likewise.
60 2001-02-21  Bryce McKinlay  <bryce@albatross.co.nz>
62         Disable libgcjx by default.
63         * configure.in: Add support for --enable-java-awt configure option. 
64         Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
65         * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
66         * Makefile.in: Rebuilt.
67         * configure: Rebuilt.
69 2001-02-20  Tom Tromey  <tromey@redhat.com>
71         * java/io/PipedWriter.java (flush): Throw exception if stream
72         closed.
73         * java/io/OutputStreamWriter.java (write): Throw exception if
74         stream closed.
75         (writeChars): Don't throw exception if stream closed.
76         * java/io/CharArrayWriter.java (closed): New field.
77         (close): Set it.
78         (flush): Throw exception if stream closed.
79         (reset): Synchronize on correct lock.  Allow stream to be
80         reopened.
81         (toCharArray, toString, writeTo): Synchronize.
82         (write): Throwe exception if stream closed.
83         * java/io/BufferedWriter.java (close): Clear `buffer'.
84         (flush): Throw IOException if stream is closed.
85         (write): Likewise.
87 2001-02-16  Tom Tromey  <tromey@cygnus.com>
89         * java/lang/ThreadGroup.java (activeCount): Only include threads
90         which are alive.
91         (enumerate): Likewise.
93 2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
95         * java/lang/Integer.java (getInteger): Return default argument if
96         property is not set. Don't call decode with null argument.
97         * java/lang/Long.java (getLong): Likewise.
99         * java/io/CharArrayReader.java (CharArrayReader): Throw 
100         IllegalArgumentException if constructor arguments are illegal.
101         (ready): Return false if no more characters can be read.
102         * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
104 2001-02-17  Mark Wielaard <mark@klomp.org>
106         * java/util/TimerTask.java: New version from Classpath.
108 2001-02-17  Mark Wielaard <mark@klomp.org>
110         Remerge with Classpath
111         (changes by Bryce McKinlay  <bryce@albatross.co.nz>)
112         * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
113         (readByte): Use convertToByte().
114         (readChar): Use convertToChar().
115         (readInt): Use convertToInt().
116         (readLong): Use convertToLong().
117         (readShort): Use convertToShort().
118         (readUnsignedByte): Use convertToUnsignedByte().
119         (readUnsignedShort): Use convertToUnsignedShort().
120         (readUTF): Use convertToUTF().
122         (convertToBoolean): Resurrected.
123         (convertToByte): Ditto.
124         (convertToChar): Ditto.
125         (convertToInt): Ditto.
126         (convertToLong): Ditto.
127         (convertToShort): Ditto.
128         (convertToUnsignedByte): Ditto.
129         (convertToUnsignedShort): Ditto.
130         (convertToUTF): Ditto.
132 2001-02-17  Mark Wielaard <mark@klomp.org>
134         * HACKING: new file
136 2001-02-17  Mark Wielaard <mark@klomp.org>
138         * java/io/DataInputStream.java: update copyright notice
139         * java/io/PrintWriter.java: idem
140         * java/io/Reader.java: idem
141         * java/io/StreamTokenizer.java: idem
142         * java/io/StringReader.java: idem
143         * java/lang/reflect/ReflectPermission.java: idem
145 2001-02-16  Bryce McKinlay  <bryce@albatross.co.nz>
147         * java/util/TreeSet.java (clone): Made subclass safe, use 
148         super.clone(), not new.
149         * java/util/TreeMap.java (clone): Likewise.
150         
151         * java/util/TreeMap.java (nil): Made non-final.
152         (clone): Create new nil node for copy.
153         
154         * java/util/HashSet.java (clone): Made subclass safe, use 
155         super.clone(), not new.
157 2001-02-14  Andrew Haley  <aph@redhat.com>
159         * include/i386-signal.h (INIT_SEGV): Use a direct system call to
160         set the handler.
162 2001-02-15  Anthony Green  <green@redhat.com>
164         * defineclass.cc: Don't include alloca.h.
165         (prepare_pool_entry): Convert alloca to __builtin_alloca.
166         * interpret.cc (run_normal): Ditto.
167         (continue1): Ditto.
168         * java/lang/natDouble.cc (parseDouble): Ditto.
170 2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
172         * java/util/TreeSet.java (clone): Call TreeMap.clone(), not 
173         Object.clone().
174         * java/util/Collections.java (ReverseComparator): New static class.
175         (reverseOrder): Return static instance of ReverseComparator.
176         
177         * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
178         * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call 
179         Rectangle.clone(), not Object.clone().
181         * java/util/HashSet.java (clone): Remove try/catch.
182         
183         * java/util/AbstractSequentialList.java: Synchronize with Classpath.
184         * java/util/Collection.java: Likewise.
185         * java/util/Comparator.java: Likewise.
186         * java/util/Dictionary.java: Likewise.
187         * java/util/Iterator.java: Likewise.
188         * java/util/ListIterator.java: Likewise.
189         * java/util/Map.java: Likewise.
190         * java/util/Set.java: Likewise.
192 2001-02-14  Bryce McKinlay  <bryce@albatross.co.nz>
194         * java/util/TreeMap.java: New file.
195         * java/util/TreeSet.java: New file.
196         * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
197         * Makefile.in: Rebuilt.
198         * java/util/HashSet.java (clone): Use constructor instead of calling
199         clone on itself.
200         * java/util/SortedSet.java: Sync with classpath.
201         * java/util/HashMap.java (hash): Use if statement instead of ternary,
202         for clarity.
203         
204         * java/lang/natClass.cc (getSignature): Don't try to dereference 
205         param_types if it is null. Instead, take this to mean "no parameters".
206         * java/lang/TreeMap.java (TreeIterator.next): Throw 
207         NoSuchElementException in preference to ConcurrentModificationException.
208         (TreeIterator.remove): Throw IllegalStateException in preference to 
209         ConcurrentModificationException.
210         (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
211         throw a NoSuchElementException.
212         (SubMap.lastKey): Likewise.
214 2001-02-13  Tom Tromey  <tromey@redhat.com>
216         * java/io/PipedReader.java (ready): Throw IOException if pipe
217         closed.
218         * java/io/FilterReader.java (close): Don't clear `in'.
219         * java/io/CharArrayReader.java (mark): Throw IOException if stream
220         closed.
221         (read, ready, reset, skip): Added exception message.
222         * java/io/BufferedReader.java (mark, reset, ready, read, skip):
223         Perform checkStatus check inside synchronized block.
225 2001-02-13  Tom Tromey  <tromey@redhat.com>
227         * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
229 2001-02-13  Tom Tromey  <tromey@redhat.com>
231         Fix for PR libgcj/1351:
232         * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
233         interrupted.
234         Include Thread.h and InterruptedIOException.h.
236 2001-02-13  Bryce McKinlay  <bryce@albatross.co.nz>
238         * java/io/BlockDataException.java: Removed.
239         * java/io/ObjectInputStream.java (readObject): Throw 
240         StreamCorruptedException, not BlockDataException.
241         * Makefile.am: Remove BlockDataException.
242         * Makefile.in: Rebuild.
244 2001-02-12  Jeff Sturm  <jeff.sturm@commerceone.com>
245             Tom Tromey  <tromey@redhat.com>
247         * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
248         null pointer check.
250 2001-02-09  Tom Tromey  <tromey@redhat.com>
252         * java/util/Timer.java: New version from Classpath.
254 2001-02-09  Bryce McKinlay  <bryce@albatross.co.nz>
256         * java/lang/Double.java (doubleToRawLongBits): Now native.
257         * java/lang/Float.java (floatToRawIntBits): Likewise.
258         * java/lang/natDouble.cc (doubleToRawLongBits): New method.
259         * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
261 2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>
263         * java/io/File.java (java.net): Imported.
264         (getAbsoluteFile): Added.
265         (getCanonicalPath): Likewise.
266         (toURL): Likewise.
268 2001-02-08  Bryce McKinlay  <bryce@albatross.co.nz>
270         * java/lang/Byte.java: Remove redundant instanceof and null checks.
271         * java/lang/Integer.java: Likewise.
272         * java/lang/Long.java: Likewise.
273         * java/lang/Short.java: Likewise.
274         * java/lang/Double.java: Likewise.
275         (doubleToRawLongBits): New method.
276         * java/lang/Float.java: As above.
277         (floatToRawIntBits): New method.
279         * java/io/OutputStreamWriter.java: (flush, writeChars): Throw 
280         IOException if stream closed.
282 2001-02-08  Tom Tromey  <tromey@redhat.com>
284         * java/lang/Float.java (parseFloat): New method.
286 2001-02-08  Tom Tromey  <tromey@redhat.com>
288         From paul@dawa.demon.co.uk.  Fix for PR libgcj/1913:
289         * java/io/InputStreamReader.java (ready, read): Throw IOException
290         if stream has been closed.
292 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
294         * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
295         Change sources.redhat.com and sourceware.cygnus.com references to
296         gcc.gnu.org.
298 2001-02-07  Tom Tromey  <tromey@redhat.com>
300         Fix for PR libgcj/1906:
301         * java/text/MessageFormat.java (setLocale): Use named class
302         literals.
303         (forName): Removed.
304         (format(Object,StringBuffer,FieldPosition)): Special case if
305         argument is an Object[].
307 2001-02-07  Bryce McKinlay  <bryce@albatross.co.nz>
309         * java/util/Arrays.java: Removed "cmp" methods.
310         (qsort): Don't use "cmp".
311         (med3): Likewise.
313 2001-02-07  Mark Benvenuto  <mcb54@columbia.edu>
315         * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
316         sort. Fix for PR java/1895.
318 2001-02-03  Jeff Sturm  <jeff.sturm@commerceone.com>
320         * configure.host: Use sjlj-exceptions for Alpha.
322 2001-02-03  Bryce McKinlay  <bryce@albatross.co.nz>
324         * libgcj.spec.in: Don't force static libgcc into the executable.
325         * configure.in (FORCELIBGCCSPEC): Removed.
326         * configure: Rebuilt.
328 2001-01-31  Tom Tromey  <tromey@redhat.com>
330         * Makefile.in: Rebuilt.
331         * Makefile.am (LTCXXCOMPILE): New macro.
333 2001-01-26  Andrew Haley  <aph@redhat.com>
335         (INIT_FPE): Use a direct system call to set the handler.
336         
337 2001-01-27  Richard Henderson  <rth@redhat.com>
339         * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
341 2001-01-27  Tom Tromey  <tromey@redhat.com>
343         * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
344         native interface structure.
346 2001-01-27  Bryce McKinlay  <bryce@albatross.co.nz>
348         * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
349         result unsigned.
350         (read (byte[], int, int)): Only call readNextBlock() if the block 
351         buffer would actually be overrun. Increment blockDataPosition.
352         (callReadMethod): Propagate exceptions from invocation target.
353         * java/io/ObjectOutputStream.java (callWriteMethod): Propagate 
354         exceptions from invocation target.
356 2001-01-26  Tom Tromey  <tromey@redhat.com>
358         * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
359         to internal representation.
360         (_Jv_JNI_GetAnyFieldID): Likewise.  Also, only use
361         _Jv_FindClassFromSignature.
363 2001-01-26  Warren Levy  <warrenl@redhat.com>
365         * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
366         and timezone if they are available on the system.
368 2001-01-24  Tom Tromey  <tromey@redhat.com>
370         * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
372 2001-01-24  Tom Tromey  <tromey@redhat.com>
374         * Makefile.in: Rebuilt.
375         * Makefile.am (c_source_files): Added sf_fabs.c.
376         * java/lang/sf_fabs.c: New file.
378 2001-01-19  Warren Levy  <warrenl@redhat.com>
380         * java/text/SimpleDateFormat.java (format): Compute hour for cases
381         HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
382         correctly.  Adjust properly from 0-23 clock hour.
384 2001-01-17  Mark Wielaard  <mark@klomp.org>
386         * java/bean/Beans.java (instantiate): enable Applet code from Classpath
388 2001-01-17  Bryce McKinlay  <bryce@albatross.co.nz>
390         * java/lang/Class.h (isInterface): Move implementation from 
391         natClass.cc. Declare inline.
392         (Class): Add default constructor.
393         * java/lang/Object.h: Update comments.
394         * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
395         initialize superclass, saving a call if super is already initialized.
397 2001-01-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>
399         * prims.cc (init_prim_class): Deleted.
400         (DECLARE_PRIM_TYPE): Rewritten.
401         * java/lang/Class.h (stdio.h): Include removed.
402         (stddef.h): Included.
403         (java/lang/reflect/Modifier.h): Likewise.
404         (Class): Contructor now takes arguments, initializes fields.
405         (initializePrim): Prototype deleted.
406         * java/lang/natClass.cc (initializePrim): Deleted.
408 2001-01-16  Warren Levy  <warrenl@redhat.com>
410         * java/math/BigInteger.java: Update Copyright year.
412 2001-01-16  Hans Boehm  <hans_boehm@hp.com>
414         * java/math/BigInteger.java (setShiftRight): Only do negative shift
415         if count != 0.
417 2001-01-14  Mark Wielaard  <mark@klomp.org>
418         * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
419         (decode): Merge comments with Classpath, don't throw Exception
421 2001-01-12  Tom Tromey  <tromey@redhat.com>
423         * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
424         Wrote.
425         (setCursor): Wrote.
426         Include Cursor.h.
427         * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
428         * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
429         * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
430         * gnu/awt/gtk/GtkLabelPeer.java: New file.
431         * gnu/awt/gtk/GtkButtonPeer.java: New file.
433         * java/lang/natSystem.cc: Include locale.h if it exists.
434         * configure: Rebuilt.
435         * configure.in: Check for locale.h.
437 2001-01-11  Tom Tromey  <tromey@redhat.com>
439         * java/awt/Cursor.java (Cursor(String)): Set type to custom.
440         (Cursor(int), getPredefinedCursor): Throw exception if argument
441         invalid.
443 2001-01-03  Tom Tromey  <tromey@redhat.com>
445         * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
446         (getLocationOnScreen): Wrote.
448 2001-01-11  Bryce McKinlay  <bryce@albatross.co.nz>
450         * Makefile.am: Re-enable dependencies.
451         * Makefile.in: Rebuilt.
453 2001-01-10  Warren Levy  <warrenl@redhat.com>
455         * java/math/BigDecimal.java (divide): Fixed comment.
457 2001-01-10  Warren Levy  <warrenl@redhat.com>
459         Fix for PR libgcj/1596:
460         * java/math/BigDecimal.java (divide): Check newScale for validity.
461         Ensure that BigInteger.pow() is called with a non-negative value.
462         (setScale (int)): New public method.
463         (setScale (int,int)): New public method.
465 2001-01-09  Oskar Liljeblad <osk@hem.passagen.se>
467         Fix for PR libgcj/1338:
468         * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
469         commentChar.  Fixed typos in comments.
471 2001-01-08  Warren Levy  <warrenl@redhat.com>
473         Fix for PR libgcj/1411:
474         * Makefile.am: Removed java/util/natTimeZone.cc.
475         * Makefile.in: Rebuilt.
476         * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
477         missing localized timezone names.
478         * java/lang/System.java (getDefaultTimeZoneId): New private method.
479         * java/lang/natSystem.cc (getSystemTimeZone): New private method.
480         (init_properties): Set user.timezone property.
481         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
482         default timezone names; removed non-standard ones.  Use standard
483         ID names per JCL.
484         * java/util/Date.java (toGMTString): Removed zoneGMT variable.
485         (UTC): Ditto.
486         * java/util/TimeZone.java: Add standard ID names per JCL; removed
487         non-standard ones.
488         (getDefaultTimeZoneId): Removed.
489         (zoneGMT): Removed.
490         * java/util/natTimeZone.cc: Removed.
492 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
494         * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
495         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
496         (_Jv_GetArrayClass): New inline function.
497         (arrayclass): New field.
498         * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
499         _Jv_GetArrayElementFromElementType. 
500         (_Jv_NewPrimArray): Ditto.
501         (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
502         "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
503         Set Modifier::ABSTRACT.
504         * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
505         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void. 
506         Now synchronized. Array classes are now referenced from
507         elementClass->arrayclass. Don't use _Jv_FindClassInCache.
508         Set array classes' accessibility flags correctly. Optimize so that
509         all array classes share the same IDT.
510         * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
511         * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
512         * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
513         in superclasses from overwriting classes own fields.
514         (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
515         Modifier::isAbstract().
516         (null_idt): New static field.
517         (_Jv_PrepareConstantTimeTables): Optimize case where class implements
518         no interfaces.
519         (_Jv_IndexOf): Made inline.
520         * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
522 2001-01-08  Tom Tromey  <tromey@redhat.com>
524         Fix for PR java/1586:
525         * Makefile.in: Rebuilt.
526         * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
528 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
530         * Makefile.am: Use the new "-M -MF" option for generating dependencies
531         from the c++ compiler.
532         * Makefile.in: Rebuilt.
534 2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
536         All files with updated copyright.
537         * prims.cc (class _Jv_PrimClass): Removed.
538         (init_prim_class): New function.
539         (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
540         `_Jv_PrimClass' in primitive type declarations. Assign to the
541         value returned by `init_prim_class.'
542         * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
543         primitive type declarations.
544         (JvPrimClass): Cast to `jclass' removed.
545         * java/lang/Class.h (Class): New constructor.
546         (Class): New copy constructor.
547         (initializePrim): New prototype.
548         (_Jv_PrimClass): Field removed.
549         * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
550         nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
551         (class java::lang::Object): `finalize' moved up front.
552         * java/lang/natClass.cc 
553         (isAssignableFrom): Turned outline.
554         (isInstance): Likewise.
555         (isInterface): Likewise, fixed indentation.
556         (initializePrim): New function.
558 2001-01-07  Anthony Green  <green@redhat.com>
560         * Makefile.am (texinfo): Add texinfo target for generating texinfo
561         documentation.
562         * Makefile.in: Rebuilt.
564         * scripts/TexinfoDoclet.java: New file.
566         * doc/java-applet.texi, doc/java-lang-reflect.texi,
567         doc/java-awt-color.texi, doc/java-lang.texi,
568         doc/java-awt-datatransfer.texi, doc/java-math.texi,
569         doc/java-awt-event.texi, doc/java-net.texi,
570         doc/java-awt-geom.texi, doc/java-security-spec.texi,
571         doc/java-awt-image.texi, doc/java-security.texi,
572         doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
573         doc/java-text.texi, doc/java-beans-beancontext.texi,
574         doc/java-util-jar.texi, doc/java-beans.texi,
575         doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
576         doc/java-lang-ref.texi: New files.
578 2001-01-07  Anthony Green  <green@redhat.com>
580         * java/net/URLConnection.java (setDoOutput): URLConnection's may
581         be used for both input and output, so don't clear doInput.
583         * java/lang/StringBuffer.java: Fix comments.
585 2001-01-06  Anthony Green  <green@redhat.com>
587         * java/beans/PropertyDescriptor.java: Fix comment.
588         * java/io/PushbackReader.java: Fix comment.
589         * java/io/ObjectStreamClass.java: Fix comment.
590         * java/io/DataInputStream.java: Fix comment.
591         * java/io/PipedInputStream.java: Fix comments.
592         * java/io/PipedReader.java: Fix comments.
593         * java/sql/DatabaseMetaData.java: Fix comments.
595 2001-01-06  Bryce McKinlay  <bryce@albatross.co.nz>
597         * java/io/PipedReader: Synchronize on "lock" instead of this.
599 2001-01-05  Bryce McKinlay  <bryce@albatross.co.nz>
601         * java/lang/Thread.java: Update comment.
603         * java/io/PipedInputStream: Rewrote to be simpler and more correct.
604         * java/io/PipedOutputStream: Updated to match new PipedInputStream.
605         * java/io/PipedReader: New implementation based on new 
606         PipedInputStream.
607         * java/io/PipedWriter: Updated to match new PipedReader.
609 2001-01-03  Tom Tromey  <tromey@redhat.com>
611         * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
612         (getViewportSize): Insets include scrollbar size.
613         (doLayout): Finished.
614         (getScrollPosition): Wrote.
615         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
617 2001-01-02  Tom Tromey  <tromey@redhat.com>
619         * java/awt/ScrollPane.java: Wrote.
620         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
621         method.
623         * java/awt/Panel.java (Panel()): Fixed.
625         * java/awt/Component.java (isShowing): Return false if no peer
626         exists, and true if component is visible and no parent exists.
627         (getLocationOnScreen): Wrote.
628         (getPreferredSize): Removed FIXME comment.
629         (getMinimumSize): Likewise.
630         (getAlignmentX, getAlignmentY): Wrote.
631         (list): Wrote.
632         (requestFocus): Wrote.
633         (transferFocus): Wrote.
634         (findNextFocusComponent): New method.
635         (hasFocus()): Wrote.
636         (checkImage): Wrote.
637         (enableEvents): Call setEventMask on the peer.
639         * java/awt/Container.java (list): Use super.list() to print self.
640         (findNextFocusComponent): New method.
641         (setLayout): Call invalidate.
642         (findComponentAt): Wrote.
644 2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>
646         * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
647         the correct versions of various linuxthreads functions get linked.
648         * Makefile.in: Rebuilt.
649         * java/lang/natThread.cc (finalize_native): New static function. Call
650         _Jv_ThreadDestroyData.
651         (initialize_native): Register finalizer for "data".
652         * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
653         (_Jv_ThreadDestroyData): New prototype.
654         * include/win32-threads.h: Ditto.
655         * include/no-threads.h: Ditto.
656         * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
657         (_Jv_ThreadDestroyData): New function. Free native thread "data" and 
658         move mutex and condition variable destroy code from:
659         (really_start): ...here.
660         (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
661         * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
662         (_Jv_ThreadDestroyData): Implemented.
663         * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
664         (_Jv_AllocArray): Ditto.        
665         
666 2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>
668         * java/sql/DriverManager.java (getConnection): Don't set user/password
669         properties if null.
671 2000-12-27  Warren Levy  <warrenl@redhat.com>
673         Fix for PR libgcj/1358:
674         * java/lang/System.java: Update Copyright date properly.
675         * java/util/Calendar.java: Fix typo in comment.
676         (set): Set 24-hour clock hour instead of 12-hour clock hour.
677         * java/util/GregorianCalendar.java (GregorianCalendar): Properly
678         initialize times.  Spec says to set H:M:S values to zero only if
679         a date is given.
680         * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
681         needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
682         * java/util/natGregorianCalendar.cc (computeTime): Properly handle
683         timezones and GMT offsets, being careful to account for units of
684         milliseconds vs. seconds.
686 2000-12-28  Bryce McKinlay  <bryce@albatross.co.nz>
688         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
689         not be assigned to Object.
691         Fix for PR libgcj/1516:
692         * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
693         Add boolean entry.
694         (can_widen): Declared inline. Remove redundant checks for void 
695         arguments and char->short conversion. Add special case for boolean 
696         conversions.
697         (ffi_type): Declared inline.
698         (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
700 2000-12-26  Petter Reinholdtsen  <pere@hungry.com>
702         * java/sql/SQLWarning.java: Fixed typo in comment.
704 2000-12-26  Tom Tromey  <tromey@redhat.com>
706         * java/awt/MenuItem.java (paramString): Now protected.
708         * java/awt/MenuShortcut.java: Implements Serializable.
710         * java/awt/MenuBar.java: Rewrote from scratch.
712         * java/awt/MenuComponent.java (removeNotify): Wrote.
713         Implements Serializable.
715         * java/awt/GridBagConstraints.java (GridBagConstraints): New
716         constructor.
718         * java/awt/CheckboxMenuItem.java: Wrote.
720 2000-12-25  Tom Tromey  <tromey@redhat.com>
722         * java/awt/MenuContainer.java: Fixed typo.
724         * Makefile.in: Rebuilt.
725         * Makefile.am (awt_java_source_files): Added SystemColor.java.
726         * java/awt/SystemColor.java: New file.
728         * java/awt/Color.java (rgba): Now package-private.
730         * java/awt/event/InputEvent.java (isAltGraphDown): New method.
732         * java/awt/event/ContainerEvent.java (getContainer): Renamed from
733         getComponent.
735         * java/awt/MenuItem.java (addNotify): New method.
736         (MenuItem(String,MenuShortcut)): New constructor.
737         (setLabel): Notify peer of change.
738         (setEnabled): Likewise.
740         * java/awt/GridLayout.java (toString): New method.
742         * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
743         (FlowLayout): Check for LEADING and TRAILING.
744         (setAlignment): Likewise.
745         (layoutContainer): Handle component orientation.
747         * java/awt/Component.java (orientatin): New field.
748         (setComponentOrientation): Wrote.
749         (getComponentOrientation): Wrote.
751         * java/awt/Event.java (Event): Implements Serializable.
752         (consumed): New field for serialization.
753         * java/awt/Dimension.java (Dimension): Implements Serializable.
754         * java/awt/Cursor.java (Cursor): Implements Serializable.
755         * java/awt/Container.java (Container): No longer abstract.
757         * java/awt/Choice.java: Wrote.
758         * java/awt/Checkbox.java: Wrote.
759         * java/awt/ItemSelectable.java: Documented.
760         * java/awt/CheckboxGroup.java: Wrote.
762         * java/awt/CardLayout.java (layoutContainer): Directly use fields
763         in other classes.
764         (getSize): Likewise.
766 2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>
768         * java/io/FileDescriptor.java: Initialize fd to -1.
769         Remove default constructor.
771 2000-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
773         * java/lang/mprec.h: Change C9X reference to refer to C99.
775 2000-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
777         * java/lang/Throwable.java (trace_enabled): New static field.
778         * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
779         trace_enabled not set.
780         * prims.cc (main_init): Turn off trace_enabled while creating
781         default exception objects.
783 2000-12-21  Tom Tromey  <tromey@redhat.com>
785         * java/beans/PropertyChangeListener.java: Extends EventListener.
786         * java/beans/VetoableChangeListener.java: Extends EventListener.
788         * java/util/zip/Deflater.java (update, init): Now private.
790 2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
792         * java/util/BasicMapEntry.java: Re-added.
793         * java/util/HashMap.java (Entry): Extend BasicMapEntry.
794         (putAll): Test for BasicMapEntry.
795         * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
796         (putAll): Test for BasicMapEntry.
797         Change references from `HashMap.Entry' to `Entry' in various places.
798         * Makefile.am: Add BasicMapEntry.java.
799         * Makefile.in: Rebuilt.
801 2000-12-18  Warren Levy  <warrenl@redhat.com>
803         * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
804         need to set timezone to a valid non-null value.  Partial fix for
805         PR 331.
807 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
809         * java/awt/Window.java (addNotify): Remove peer casting hack now that 
810         gcj/312 is fixed.
811         * java/awt/Button.java (addNotify): Likewise.
812         * java/awt/Label.java (addNotify): Likewise.
813         * java/awt/Panel.java (addNotify): Likewise.
814         * java/awt/Scrollbar.java (addNotify): Likewise.
815         * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
816         Remove redundant null checks.
818 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
820         * COPYING: Update to current
821         ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
822         to 19yy as example year in copyright notice).
824 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
826         * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as 
827         end-of-stream if avail_in is 0.
829 2000-12-17  Bryce McKinlay  <bryce@albatross.co.nz>
831         * java/util/ArrayList.java (data): Declare transient.
832         (serialPersistantFields): Removed.
833         (readObject): Use defaultReadObject(), not readFields().
834         (writeObject): Use defaultWriteObject(), not writeFields().
836 2000-12-17  Jeff Sturm  <jeff.sturm@commerceone.com>
838         * java/util/Hashtable.java (put): Remove `last' variable.
839         Link new entry to head of list.
840         * java/util/HashMap.java (put): Ditto.
842 2000-12-15  Tom Tromey  <tromey@redhat.com>
844         * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
845         loader to Class.forName.
847 2000-12-14  Tom Tromey  <tromey@redhat.com>
849         * java/util/ResourceBundle.java
850         (getBundle(String,Locale,ClassLoader)): New method.
851         (trySomeGetBundle): Added `loader' argument.
852         (partialGetBundle): Likewise.
854         * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
855         maximumFractionDigits, maximumIntegerDigits,
856         minimumFractionDigits, minimumIntegerDigits): Now
857         package-private.
859         * java/lang/Thread.java (checkAccess): Now final.
861         * java/lang/RuntimePermission.java: Class now final.
863         * java/io/StringWriter.java (StringWriter(int)): Now public.
865         * java/io/SerializablePermission.java (legal_names): Now private.
867         * java/lang/Character.java: Updated UnicodeBlock constants.
868         * scripts/blocks.pl: Special case private use and surrogate
869         areas.  Updated URL.
871 2000-12-12  Tom Tromey  <tromey@redhat.com>
873         * Makefile.in: Rebuilt.
874         * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
875         option.
876         (GCJCOMPILE): Use it.
877         (JAVAC): Likewise.
879 2000-12-11  Tom Tromey  <tromey@redhat.com>
881         * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
882         New static final fields.
884         * scripts/classes.pl (scan): Skip lines with leading `*'.
885         Fix for PR libgcj/378.
887 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
889         * configure.in: Remove check for -fuse-divide-subroutine.
890         * configure: Rebuilt.
891         
892         * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
894         * gcj/javaprims.h: Rebuilt CNI namespace declarations.
895         
896 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
898         * Makefile.am: Add HashSet.java and java/lang/ref classes.
899         Remove BasicMapEntry.java and Bucket.java.
900         * Makefile.in: Rebuilt.
901         * java/util/HashMap.java: Rewritten.
902         * java/util/HashSet.java: Imported from classpath.
903         * java/util/WeakHashMap.java: Imported from classpath.
904         * java/util/Hashtable.java: Rewritten based on new HashMap code.
905         * java/util/Bucket.java: Deleted.
906         * java/util/BasicMapEntry.java: Deleted.
907         * java/util/Collections.java (search): Use a for-loop, not iterator
908         hasNext().
909         (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out 
910         of elements in source.
911         (max): Use a for-loop.
912         (min): Ditto.
913         (reverse): Keep track of positions instead of using Iterator's 
914         nextIndex() and previousIndex().
915         (shuffle(List)): Initialize defaultRandom if required using 
916         double-check thread safety idiom. Call two-argument shuffle method 
917         using defaultRandom.
918         (defaultRandom): New field.
919         (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
920         using previousIndex() and nextIndex().
921         (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
922         * java/util/AbstractCollection.java (toString): Use a StringBuffer.
923         * java/util/AbstractMap.java (toString): Use StringBuffer.
924         * java/lang/ref/PhantomReference.java: Imported from classpath.
925         * java/lang/ref/SoftReference.java: Ditto.
926         * java/lang/ref/Reference.java: Ditto.
927         * java/lang/ref/WeakReference.java: Ditto.
928         * java/lang/ref/ReferenceQueue.java: Ditto.
930 2000-12-10  Richard Henderson <rth@redhat.com>
931         
932         * configure.host: Recognize alpha*-*, not alphaev6-*.
934 2000-12-09  Anthony Green  <green@redhat.com>
936         * configure.host: Enable interpreter for Alpha.
938 2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>
940         * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
941         (ZIP): Points at fastjar instead of zip.
942         (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
943         (libgcj_la_LDFLAGS): Correctly point at libsupc++.
944         (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
945         (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
946         ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
947         ($(x_java_source_files:.java=.class):): Likewise.
948         (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
949         fastar's flags.
950         (CLEANFILES): libgcj.jar replaces libgcj.zip.
951         (java/lang/ClassLoader.h:): Depends on libgcj.jar.
952         (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
953         java/lang/String.h:, java/lang/reflect/Constructor.h:,
954         java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
955         gnu/gcj/runtime/VMClassLoader.h:,
956         java/io/ObjectInputStream$$GetField.h:, 
957         java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
958         (Makefile.in): Rebuilt.
959         
960 2000-12-08  Tom Tromey  <tromey@redhat.com>
962         From Phil Edwards:
963         * configure: Rebuilt.
964         * configure.in: Use echo, not `:', to create .d files.
966 2000-12-08  Warren Levy  <warrenl@redhat.com>
968         * java/lang/StringBuffer.java (insert(int,char[])): Avoid
969         NullPointerException so proper check of offset can be done.
971 2000-12-08  Warren Levy  <warrenl@redhat.com>
973         * java/io/FileInputStream.java (close): Check if the fd is valid.
974         * java/io/RandomAccessFile.java (close): Ditto.
975         * java/net/PlainDatagramSocketImpl.java (close): Ditto.
976         * java/net/PlainSocketImpl.java (close): Ditto.
978 2000-12-06  Tom Tromey  <tromey@redhat.com>
980         * java/awt/GridBagConstraints.java: Filled in values for static
981         final fields.
983         * java/util/BitSet.java: Updated copyright notice.
985         * Makefile.in: Rebuilt.
986         * Makefile.am (awt_java_source_files): Added new file.
987         * java/awt/GridBagConstraints.java: New file.
989 2000-12-05  Tom Tromey  <tromey@redhat.com>
991         * java/text/Collator.java (decomposeCharacter, decmp, strength):
992         Now package-private, not protected.
993         * java/text/DateFormatSymbols.java (equals): Now private.
994         * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
995         * java/util/BitSet.java: Class no longer final.
997 2000-12-04  Warren Levy  <warrenl@redhat.com>
999         * java/util/TimeZone.java (getAvailableIDs): Activated commented
1000         out code dependent on compiler and library changes.
1002 2000-12-04  Warren Levy  <warrenl@redhat.com>
1004         * java/io/FilePermission.java: Made class final per spec.
1005         * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1006         method name to match spec (fixed typo).
1007         * java/util/LinkedList.java: Implements List.
1009 2000-12-04  Bryce McKinlay  <bryce@albatross.co.nz>
1011         * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From 
1012         Edgar Villanueva <edgarvil@home.com>.
1014 2000-12-03  Tom Tromey  <tromey@redhat.com>
1016         * java/awt/geom/Point2D.java: Added protected constructor.
1017         (equals): New method.
1018         (Float.setLocation(float,float)): New method.
1019         * java/awt/geom/Dimension2D.java: Added protected constructor.
1020         * java/awt/geom/AffineTransform.java: Made all constants public.
1021         (concatenate): Fixed typo in name.
1022         * java/awt/event/WindowAdapter.java: Class now abstract.
1023         * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1024         * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1025         AWTEvent.
1027         * java/awt/AWTError.java: Extend Error, not
1028         IllegalStateException.
1030         * Makefile.in: Rebuilt.
1031         * Makefile.am (awt_java_source_files): Added new file.
1032         * java/awt/geom/RoundRectangle2D.java: New file.
1034         * Makefile.in: Rebuilt.
1035         * Makefile.am (awt_java_source_files): Added new file.
1036         * java/awt/FlowLayout.java: New file.
1038         * Makefile.in: Rebuilt.
1039         * Makefile.am (awt_java_source_files): Added new file.
1040         * java/awt/GridLayout.java: New file.
1042 2000-12-02  Tom Tromey  <tromey@redhat.com>
1044         * Makefile.in: Rebuilt.
1045         * Makefile.am (awt_java_source_files): Added new files.
1046         * java/awt/CardLayout.java: New file.
1047         * java/awt/AWTPermission.java: New file.
1049 2000-12-01  Tom Tromey  <tromey@redhat.com>
1051         * java/util/Vector.java (insertElementAt): Unconditionally
1052         increment elementCount.
1053         (removeRange): Clear unused slots in vector.
1055 2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
1057         * java/lang/natMath.cc: Declare fabsf() function.
1058         * java/lang/mprec.h: Don't include math.h.
1059         * java/lang/dtoa.c: Include string.h.
1060         * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1061         compiler warning.
1062         
1063         From Adam Welc <welc@cs.purdue.edu>:
1064         * java/util/LinkedList.java (removeFirst): Update `first' field.
1065         Handle the last == first case.
1066         (removeLast): Update `last' field. Handle the last == first case.
1068 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1070         * Makefile.am: Added entries for new java.sql modules.
1071         * Makefile.in: Rebuilt.
1073 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1075         * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1076         that aren't quite 1.2 compatible yet.
1078 2000-11-30  Warren Levy  <warrenl@cygnus.com>
1080         * java/sql/Array.java: New file from classpath.
1081         * java/sql/BatchUpdateException.java: Ditto.
1082         * java/sql/Blob.java: Ditto.
1083         * java/sql/Clob.java: Ditto.
1084         * java/sql/Ref.java: Ditto.
1085         * java/sql/SQLData.java: Ditto.
1086         * java/sql/SQLInput.java: Ditto.
1087         * java/sql/SQLOutput.java: Ditto.
1088         * java/sql/Struct.java: Ditto.
1089         * java/sql/CallableStatement.java: Merged file from claspath.
1090         * java/sql/Connection.java: Ditto.
1091         * java/sql/DataTruncation.java: Ditto.
1092         * java/sql/DatabaseMetaData.java: Ditto.
1093         * java/sql/DriverManager.java: Ditto.
1094         * java/sql/PreparedStatement.java: Ditto.
1095         * java/sql/ResultSet.java: Ditto.
1096         * java/sql/ResultSetMetaData.java: Ditto.
1097         * java/sql/SQLException.java: Ditto.
1098         * java/sql/SQLWarning.java: Ditto.
1099         * java/sql/Statement.java: Ditto.
1100         * java/sql/Types.java: Ditto.
1102 2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>
1104         * java/lang/natSystem.cc (init_properties): Set user.language and
1105         user.region.
1106         * configure.in: Check for setlocale.
1107         * configure: Rebuilt.
1108         * include/config.h.in: Rebuilt.
1109         
1110         * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1111         the infate() call didn't deliver any output. Throw a ZipException if
1112         the needsDictionary() call returns true.
1113         * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1114         * java/io/InputStreamReader: Use the default buffer size for the
1115         contained BufferedInputStream.
1117 2000-11-28  Warren Levy  <warrenl@cygnus.com>
1119         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1120         more time zone entries.
1121         * java/text/SimpleDateFormat.java (format): Added case for
1122         TIMEZONE_FIELD.
1124 2000-11-28  Bryce McKinlay  <bryce@albatross.co.nz>
1126         * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1127         directly rather than read() in all cases. Make primitive read 
1128         implementations more efficient, as defined in JDK online docs.
1129         (skipBytes): Behave like the JDK's implementation.
1130         * java/io/BufferedReader.java: Merge classpath docs. Check for a 
1131         closed stream with checkStatus() whenever an IOException can be 
1132         thrown.
1133         (checkStatus): New private method.
1135 2000-11-27  Warren Levy  <warrenl@cygnus.com>
1137         * Makefile.am: Added natTimeZone.cc.
1138         * Makefile.in: Rebuilt.
1139         * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1140         * java/text/DateFormatSymbols.java (ampms): Made package private.
1141         (eras): Made package private.
1142         (months): Made package private.
1143         (shortMonths): Made package private.
1144         (shortWeekdays): Made package private.
1145         (weekdays): Made package private.
1146         (formatPrefixes): New private field.
1147         (localPatternCharsDefault): Made private.
1148         (dateFormats): New package private field.
1149         (timeFormats): New package private field.
1150         (formatsForKey): New private method.
1151         (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1152         (DateFormatSymbols(DateFormatSymbols)): Ditto.
1153         * java/text/SimpleDateFormat.java: Merged with Classpath.
1154         * java/util/TimeZone.java: Merged with Classpath.
1155         * java/util/natTimeZone.cc: New file.
1157 2000-11-27  Bryce McKinlay  <bryce@albatross.co.nz>
1159         * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1160         (addElement): Don't increment elementCount twice. Doh.
1161         * java/util/ArrayList.java (add): Only call ensureCapacity if the
1162         array needs to be expanded.
1163         (addAll): Ditto.
1164         * java/util/Collections.java (UnmodifiableCollection): Implement
1165         toString().
1166         (UnmodifiableList): Throw UnsupportedOperationException from 
1167         modification methods. Set `l' from the one-parameter constructor.
1168         (UnmodifiableMap): Implement toString().
1169         (SynchronizedCollection): Ditto.
1170         (SynchronizedList): Set `l' from the one-parameter constructor.
1171         (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1172         (SynchronizedMap): Implement toString().
1174 Sun Nov 26 23:59:55 2000  Anthony Green  <green@redhat.com>
1176         * javax/naming/NameParser.java,
1177         javax/naming/directory/AttributeInUseException.java,
1178         javax/naming/directory/AttributeModificationException.java,
1179         javax/naming/directory/InvalidAttributeIdentifierException.java,
1180         javax/naming/directory/InvalidAttributesException.java,
1181         javax/naming/directory/InvalidAttributeValueException.java,
1182         javax/naming/directory/InvalidSearchControlsException.java,
1183         javax/naming/directory/InvalidSearchFilterException.java,
1184         javax/naming/directory/NoSuchAttributeException.java,
1185         javax/naming/directory/SchemaViolationException.java: New files.
1186         
1187 Sun Nov 26 22:35:53 2000  Anthony Green  <green@redhat.com>
1189         * javax/naming/InitialContext.java (rebind): Implement.
1190         (unbind): Implement.
1191         (rename): Implement.
1192         (list): Implement.
1193         (listBindings): Implement.
1194         (destroySubcontext): Implement.
1195         (createSubcontext): Implement.
1196         (lookupLink): Implement.
1197         (getNameParser): Implement.
1198         (composeName): Implement.
1199         (addToEnvironment): Implement.
1201 Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
1203         * javax/naming/AuthenticationException.java,
1204         javax/naming/AuthenticationNotSupportedException.java,
1205         javax/naming/CannotProceedException.java,
1206         javax/naming/CommunicationException.java,
1207         javax/naming/ConfigurationException.java,
1208         javax/naming/ContextNotEmptyException.java,
1209         javax/naming/InsufficientResourcesException.java,
1210         javax/naming/InterruptedNamingException.java,
1211         javax/naming/InvalidNameException.java,
1212         javax/naming/LimitExceededException.java,
1213         javax/naming/LinkException.java,
1214         javax/naming/LinkLoopException.java,
1215         javax/naming/MalformedLinkException.java,
1216         javax/naming/NameAlreadyBoundException.java,
1217         javax/naming/NameNotFoundException.java,
1218         javax/naming/NamingSecurityException.java,
1219         javax/naming/NoPermissionException.java,
1220         javax/naming/NotContextException.java,
1221         javax/naming/PartialResultException.java,
1222         javax/naming/ReferralException.java,
1223         javax/naming/ServiceUnavailableException.java,
1224         javax/naming/SizeLimitExceededException.java,
1225         javax/naming/TimeLimitExceededException.java: New files.
1227         * javax/naming/Name.java (clone): New method.
1228         (compareTo): New method.
1229         (isEmpty): New method.
1230         (getAll): New method.
1231         (getPrefix): New method.
1232         (getSuffix): New method.
1233         (startsWith): New method.
1234         (endsWith): New method.
1235         (addAll): New method.
1236         (addAll): New method.
1237         (add): New method.
1238         (add): New method.
1239         (remove): New method.
1241         * javax/naming/Context.java (lookup): New method.
1242         (rebind): New method.
1243         (unbind): New method.
1244         (rename): New method.
1245         (list): New method.
1246         (listBindings): New method.
1247         (destroySubcontext): New method.
1248         (createSubcontext): New method.
1249         (lookupLink): New method.
1250         (getNameParser): New method.
1251         (composeName): New method.
1252         (addToEnvironment): New method.
1253         (removeFromEnvironment): New method.
1254         (getEnvironment): New method.
1255         (close): New method.
1256         (getNameInNamespace): New method.
1258         * javax/naming/InitialContext.java (lookup): New method.
1259         (rebind): New method.
1260         (unbind): New method.
1261         (rename): New method.
1262         (list): New method.
1263         (listBindings): New method.
1264         (destroySubcontext): New method.
1265         (createSubcontext): New method.
1266         (lookupLink): New method.
1267         (getNameParser): New method.
1268         (composeName): New method.
1269         (addToEnvironment): New method.
1270         (removeFromEnvironment): New method.
1271         (getEnvironment): New method.
1272         (close): New method.
1273         (getNameInNamespace): New method.
1275 2000-11-26  Tom Tromey  <tromey@cygnus.com>
1277         * Makefile.in: Rebuilt.
1278         * Makefile.am (core_java_source_files): Added
1279         RuntimePermission.java.
1280         * java/lang/RuntimePermission.java: Imported from Classpath.
1281         * java/lang/Thread.java (getContextClassLoader): Now
1282         synchronized.  Added security code.
1283         (setContextClassLoader): Likewise.
1285         * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1286         length field of array.
1287         (_Jv_NewPrimArray): Likewise.
1288         * gcj/array.h (__JArray): `length' field now const.  Added
1289         constructor.
1291 2000-11-26  Anthony Green  <green@redhat.com>
1293         * javax/naming/spi/NamingManager.java,
1294         javax/naming/spi/ObjectFactory.java,
1295         javax/naming/spi/InitialContextFactory.java,
1296         javax/naming/spi/InitialContextFactoryBuilder.java,
1297         javax/naming/RefAddr.java, javax/naming/Reference.java,
1298         javax/naming/NamingException.java, javax/naming/Context.java,
1299         javax/naming/Referenceable.java,
1300         javax/naming/directory/InitialDirContext.java,
1301         javax/naming/directory/DirContext.java,
1302         javax/naming/directory/Attributes.java,
1303         javax/naming/directory/Attribute.java,
1304         javax/naming/StringRefAddr.java,
1305         javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1306         javax/naming/InitialContext.java,
1307         javax/naming/NoInitialContextException.java: New files.
1308         
1309 2000-11-25  Anthony Green  <green@redhat.com>
1311         * prims.cc (_Jv_NewObjectArray): Undo placement change.
1312         (_Jv_NewPrimArray): Likewise.
1313         * gcj/array.h (__JArray): Undo const change.  Removed constructor.
1314         (class JArray): Removed constructor.
1316         * java/lang/Thread.java (context_class_loader): New private data.
1317         (getContextClassLoader): New method.
1318         (setContextClassLoader): New method.
1319         (Thread): Initialize context_class_loader.
1321         * java/net/URLClassLoader.java: Import java.util.Enumeration.
1322         (getResource): Rename to findResource.
1323         (findResource): New method.  Used to be getResource.
1324         (getResourceAsStream): Deleted.
1325         (jarFileize): Extracted logic from URLClassLoader constructor into
1326         this new private method.
1327         (addURL): New protected method.
1328         (URLClassLoader): Call jarFileize.  Use addElement instead of
1329         insertElementAt.
1330         (findResources): New method.
1331         
1332         * java/lang/ClassLoader.java: Import java.util.Enumeration.
1333         (getResource): Implement correct logic.
1334         (findResource): New method.
1335         (getResources): New method.
1336         (findClass): Create a ClassNotFoundException with the name of the
1337         class rather than nothing at all.
1338         (defineClass) Only throw ClassFormatError.
1339         
1340         * java/lang/Class.java (forName): New method.
1341         * java/lang/Class.h (forName): New method.
1342         * java/lang/natClass.cc (forName): New method.
1344 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
1346         * java/lang/System.java (setProperties): Only call init_properties()
1347         if properties is null.  
1348         (getProperties): Ditto.
1349         (getProperty): Ditto.
1350         (setProperty): Call init_properties if properties are null.
1351         (prop_init): Remove field.
1352         * java/lang/natSystem.cc (init_properties): Synchronize the entire
1353         method. Check for null properties after synchronizing instead of 
1354         prop_init flag. Set the properties field last for thread safety.
1356         * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1357         test for gcj.dumpobjects property and enable object stream dumping
1358         if it is set.
1359         (dumpElement): No longer native.
1360         (dumpElementln): Ditto.
1361         (setDump): Do not define.
1362         * java/io/natObjectInputStream.cc (dumpElement): Removed.
1363         (dumpElementln): Removed.
1364         (setDump): Removed.
1366 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
1368         * configure: Rebuilt.
1369         * Makefile.in: Rebuilt.
1370         * Makefile.am (built_java_source_files): Add Configuration.java.
1371         * configure.in: Add Configuration.java to CONFIG_FILES. Set 
1372         LIBGCJDEBUG substitution if --enable-libgcj-debug is specified. 
1373         Create `gnu' directory in the build tree.
1374         * gnu/classpath/Configuration.java.in: New file.
1376 2000-11-24  Tom Tromey  <tromey@cygnus.com>
1378         * prims.cc (_Jv_NewObjectArray): Use placement new to create
1379         array.
1380         (_Jv_NewPrimArray): Likewise.
1381         Include <new>.
1382         * gcj/array.h (__JArray): `length' field now const.  Added
1383         constructor.
1384         (class JArray): Added constructor.
1386 2000-11-23  Mark Wielaard  <mark@klomp.org>
1388         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1389         lookup.
1391 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
1393         * java/util/Vector.java: Improve exception messages.
1394         (Vector): Check initialCapacity for IllegalArgumentException.
1395         (tromToSize): Don't check for elementCount == elementData.length
1396         case.
1397         (toArray): Don't try to set null marker if target array is the same
1398         length as the vector.
1400 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
1402         * Makefile.in: Rebuilt.
1403         * Makefile.am (core_java_source_files): Added Collections.java.
1404         * java/util/List.java: Merged from classpath.
1405         * java/util/Vector.java: Ditto. 
1406         * java/util/Collections.java: From classpath.
1407         * java/util/ArrayList.java (addAll(Collection)): Call 
1408         addAll(int,Collection) instead of duplicating code.
1409         (indexOf): Clean up int initialization.
1410         (clear): Set cleared array entries to null, to allow garbage 
1411         collection.
1412         * java/util/List.java: Minor formatting fixes.  
1413         * java/util/SimpleTimeZone.java: ditto.
1414         
1415 2000-11-18  Tom Tromey  <tromey@cygnus.com>
1417         * Makefile.in: Rebuilt.
1418         * Makefile.am (core_java_source_files): Added new files.
1419         * java/lang/reflect/ReflectPermission.java: New class.
1420         * java/io/FileFilter.java: From Classpath
1421         * java/io/FilePermission.java: From Classpath.
1423 2000-11-17  Tom Tromey  <tromey@cygnus.com>
1425         * java/lang/reflect/AccessibleObject.java (isAccessible,
1426         setAccessible): Now public.
1428         * java/lang/natString.cc: Include Locale.h.
1429         (toUpperCase): Added `locale' argument.  Handle locale
1430         sensitivity.
1431         (toLowerCase): Added `locale' argument.  Handle locale
1432         sensitivity.
1433         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1434         CAPITAL_I): New defines.
1435         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1436         final.
1437         Import Locale.
1438         (toUpperCase, toLowerCase): New methods.  Variants which accept
1439         locale now native.
1441         * java/lang/ExceptionInInitializerError.java (printStackTrace):
1442         New methods.
1444         * java/util/PropertyPermission.java: Re-merged from Classpath.
1446         * java/text/RuleBasedCollator.java (getCollationElementIterator):
1447         New method.
1448         * java/text/StringCharacterIterator.java: Reindented.
1449         (setText): New method.
1451 2000-11-17  Mark Wielaard  <mark@klomp.org>
1453         Merge with Classpath (changes by Bryce McKinlay)
1454         * java/util/jar/*.java: Reformat all to unofficial standard coding
1455         style. No changes of substance.
1457 2000-11-17  Mark Wielaard  <mark@klomp.org>
1459         * java/util/zip/*.java: Javadoc updates.
1461 2000-11-17  Tom Tromey  <tromey@cygnus.com>
1463         * java/text/CollationKey.java: Implement Comparable.
1464         (compareTo(Object)): New method.
1465         * java/text/Collator.java (compare(Object,Object)): New method.
1466         Implement Comparator.
1468         * java/util/zip/InflaterInputStream.java (available): New method.
1469         (close): New method.
1470         (read, available, skip, fill): Throw exception if stream closed.
1471         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1472         getNextEntry): Throw exception if closed.
1474 2000-11-16  Tom Tromey  <tromey@cygnus.com>
1476         * java/io/PushbackReader.java: Merged with Classpath.
1477         * java/util/Arrays.java: Updated from Classpath.
1479         * scripts/blocks.pl: New file.
1480         * java/lang/Character.java (Subset): New class.
1481         (UnicodeBlock): New class.
1483         * java/lang/Math.java (toDegrees, toRadians): New methods.
1485         * java/lang/Float.java: Implement Comparable.
1486         (compareTo): New methods.
1487         * java/lang/Double.java: Implement Comparable.
1488         (compareTo): New methods.
1490 2000-11-16  Warren Levy  <warrenl@cygnus.com>
1492         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1493         transient.
1494         (listeners): Made transient.
1495         (source): Renamed from 'bean'.
1496         (children): New field for serialization.
1497         (propertyChangeSupportSerializedDataVersion): Ditto.
1498         (serialVersionUID): Ditto.
1499         (writeObject): New serialization method.
1500         (readObject): New serialization method.
1501         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1502         transient.
1503         (listeners): Made transient.
1504         (source): Renamed from 'bean'.
1505         (children): New field for serialization.
1506         (vetoableChangeSupportSerializedDataVersion): Ditto.
1507         (serialVersionUID): Ditto.
1508         (writeObject): New serialization method.
1509         (readObject): New serialization method.
1510         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1511         to allow constructor to have a return type (i.e. the class that the
1512         constructor constructs).
1514 2000-11-14  Tom Tromey  <tromey@cygnus.com>
1516         * Makefile.in: Rebuilt.
1517         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1518         and -k not given.
1520 2000-11-02  Warren Levy  <warrenl@cygnus.com>
1522         * java/io/ObjectInputStream.java (readObject): Added code to
1523         conditionally dump out the serialized data.
1524         Handle ENDBLOCKDATA case a bit more gracefully since the current
1525         behavior doesn't seem to work as expected.
1526         (readStreamHeader): Added code for serialized data dumper.
1527         (readNextBlock): Ditto.
1528         (readFields): Ditto.
1529         (dump): New private static field for turning on/off dumper.
1530         (setDump): New native method.
1531         (dumpElement): New native method.
1532         (dumpElementln): New native method.
1533         * java/io/natObjectInputStream.cc (setDump): New method.
1534         (dumpElement): New method.
1535         (dumpElementln): New method.
1537 2000-11-02  Warren Levy  <warrenl@cygnus.com>
1539         * java/net/InetAddress.java (addr): Renamed from 'address'.
1540         (address): New field to match Serialized Form doc.
1541         (hostName): Renamed from 'hostname' to match Serialized Form doc.
1542         (family): New serialization field.
1543         (serialVersionUID): New field.
1544         (readObject): New method.
1545         (writeObject): New method.
1546         (getFamily): New native method.
1547         (InetAddress): Set family.
1548         * java/net/natInetAddress.cc (getFamily): New method.
1549         (addr): Renamed from 'address'.
1550         (hostName): Renamed from 'hostname' to match Serialized Form doc.
1551         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1552         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1554 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
1556         * java/util/AbstractList.java (SubList): Make it a top-level private
1557         class.
1558         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1559         (add): Ditto.
1560         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1561         * Makefile.in: Rebuilt.
1563 2000-11-02  Tom Tromey  <tromey@cygnus.com>
1565         * Makefile.in: Rebuilt.
1566         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1567         link.
1569 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
1571         * java/util/AbstractList.java (remove): Comment out modCount increment
1572         to work around compiler bug.
1573         (add): Ditto.
1575 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
1577         * java/util/AbstractList.java: Throw messages with 
1578         IndexOutOfBoundsExceptions.
1579          (listIterator()): Call listIterator(0).
1580         (size): New field. Initialize to size().
1581         (hasNext): Test position against size, not size().
1582         (remove): Increment knownMod by one instead of resetting it from 
1583         modCount.
1584         (add): Ditto.
1585         (SubList.upMod): Removed.
1586         (SubList.set): Don't call upMod() or update knownMod.
1587         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1588         (SubList.remove): Ditto.
1589         (SubList.addAll): Don't call backingList.size(). Increment size from 
1590         c.size().
1591         (SubList.iterator): New method. Call listIterator(0).
1592         (SubList.listIterator): New method. Restore code to return an anonymous
1593         listIterator implementation (with some changes).
1594         * java/util/AbstractSequentialList.java: Throw messages with 
1595         IndexOutOfBoundsExceptions.
1596         (addAll): Add a specnote.
1597         * java/util/ArrayList.java (removeRange): Get the math right.
1598         (addAll): Increment modCount _before_ creating iterator.
1599         * java/util/LinkedList.java: Rewritten, mostly.
1601 2000-11-01  Tom Tromey  <tromey@cygnus.com>
1603         * scripts/encodings.pl: Added `ASCII' alias.
1604         * Makefile.in: Rebuilt.
1605         * Makefile.am (convert_source_files): Added new files.
1606         * gnu/gcj/convert/Input_ASCII.java: New file.
1607         * gnu/gcj/convert/Output_ASCII.java: New file.
1608         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1609         out-of-range characters.
1610         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1611         (read): Swap bytes if required.  Treat `count' as character count,
1612         not byte count.
1613         (write): Likewise.  Also, handle case where iconv fails on a given
1614         character.
1615         (init): Put encoding into exception.
1616         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1617         (static): Call iconv_init.  Rebuilt alias list.
1618         (iconv_init): New private method.
1620 2000-11-01  Tom Tromey  <tromey@cygnus.com>
1622         * Makefile.in: Rebuilt.
1623         * Makefile.am (install-exec-hook): Only make a single symlink, and
1624         remove the destination before making the link.
1625         * configure: Rebuilt.
1626         * configure.in: Call AC_PROG_LN_S.
1628 2000-10-31  Warren Levy  <warrenl@cygnus.com>
1630         * jni.cc: Added include of java/lang/ThreadGroup.h.
1631         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1632         per change of 2000-10-05.
1634 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
1636         * java/util/BitSet.java: Updated @specnote.
1638         * java/io/Reader.java: Merge docs from classpath.
1639         (skip): Synchronize on `lock'.
1640         * java/io/FileReader.java: Import correct implementation from 
1641         classpath.
1642         * java/io/StringReader.java: Merge docs from classpath.
1643         (ready): Throw IOException if stream is closed.
1645 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
1647         * java/util/AbstractCollection.java (addAll): Use size() instead of
1648         hasNext() in iterator loop.
1649         (clear): Ditto.
1650         (contains): Ditto. Simplify loop.
1651         (containsAll): Ditto.
1652         (remove): Ditto.
1653         (removeAll): Ditto.
1654         (retainAll): Ditto.
1655         (toArray): Ditto.
1656         (toString): Ditto. Use string concatenation operators, not
1657         StringBuffer.
1658         * java/util/AbstractList.java (addAll): Use size() instead of
1659         hasNext() in iterator loop.
1660         (equals): Ditto.
1661         (hashCode): Ditto.
1662         (indexOf): Ditto. Don't take null check outside of the loop.
1663         (iterator): Return an AbstractListItr instead of anonymous class.
1664         (lastIndexOf): Use a for loop bounded by size() instead of 
1665         hasPrevious() in iterator loop.
1666         (listIterator): Return an AbstractListItr.
1667         (removeRange): Remove bounds checking code and docs.
1668         (AbstractListItr): New inner class. Code moved here from 
1669         listIterator().
1670         (SubList.iterator): Removed. Use default implementation from 
1671         AbstractList instead.
1672         (SubList.listIterator): As above.
1673         * java/util/AbstractMap.java (clear): Use a for loop bounded by size() 
1674         instead of hasNext() in iterator loop.
1675         (containsValue): Ditto.
1676         (equals): Ditto.
1677         (get): Ditto.
1678         (put): Ditto.
1679         (putAll): Ditto.
1680         (remove): Ditto.
1681         (toString): Ditto. Use string concatenation operators, not
1682         StringBuffer.
1683         * java/util/AbstractSequentialList.java (addAll): Use a for loop 
1684         bounded by size() instead of hasNext() in iterator loop.
1685         * java/util/AbstractSet.java (hashCode): Don't catch exception as
1686         part of normal execution flow. Do an explicit null check instead.
1687         * java/util/ArrayList.java (_iSize): Rename to `size'.
1688         (_arData): Rename to `data'.
1689         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1690         message.
1691         (remove): Ditto.
1692         (removeRange): Make protected. Don't check bounds.
1693         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1694         message.
1695         (addAll (Collection)): Use a size-bounded for loop instead of hasNext() 
1696         check.
1697         (addAll (int, Collection)): Check lower bounds. Simplify exception
1698         string.
1699         (clone): Clone the data array too.
1700         (indexOf): Inline doesEqual().
1701         (lastIndexOf): Ditto.
1702         (clear): Don't set array data to null.
1703         (set): Check lower bounds. Simplify exception string.
1704         (toArray): Correct comment.
1705         (trimToSize): Don't update modCount, this is not a structural change.
1706         Add comment.
1707         
1708         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1709         implemented.
1710         (toString): Declare `bit' as long, not int.
1711         (data): Made package-private, not private.      
1713 2000-10-27  Warren Levy  <warrenl@cygnus.com>
1715         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1716         array elements to true.
1718 2000-10-27  Warren Levy  <warrenl@cygnus.com>
1720         * Makefile.am: Added locale files from Classpath.
1721         * Makefile.in: Rebuilt.
1722         * gnu/java/locale/Calendar.java: New file.
1723         * gnu/java/locale/Calendar_de.java: New file.
1724         * gnu/java/locale/Calendar_en.java: New file.
1725         * gnu/java/locale/Calendar_nl.java: New file.
1726         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1727         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1728         serialization compatibility.
1729         (scale): Made private.
1730         (serialVersionUID): New field.
1731         * java/math/BigInteger.java (ival): Made transient.
1732         (words): Made transient.
1733         (bitCount): New serialization field.
1734         (bitLength): Ditto.
1735         (firstNonzeroByteNum): Ditto.
1736         (lowestSetBit): Ditto.
1737         (magnitude): Ditto.
1738         (signum): Ditto.
1739         (serialVersionUID): New field.
1740         (readObject): New method.
1741         (writeObject): New method.
1742         * java/util/BitSet.java (serialVersionUID): New field.
1743         * java/util/Calendar.java: Replaced with Classpath file.
1744         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1745         of getDefault() for TimeZone or Locale instead of passing nulls.
1746         * java/util/Locale.java (serialVersionUID): New field.
1747         (writeObject): New method.
1748         (readObject): New method.
1749         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1751 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
1753         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1754         (core_java_source_files): Put java.lang, java.io, and java.util here.
1755         (ordinary_java_source_files): Order so that core_java_source_files are 
1756         built first.
1757         (java_source_files): Reorder so that special_java_source_files are 
1758         built first.
1759         * configure.in: Don't pass -I flag to gcj.
1760         * Makefile.in: Rebuilt.
1761         * configure: Rebuilt.
1763 2000-10-25  Tom Tromey  <tromey@cygnus.com>
1765         * Makefile.in: Rebuilt.
1766         * Makefile.am (install-exec-hook): New target.
1768 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
1770         * java/util/EventObject.java: Merged from classpath.
1771         
1772         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1773         with stack dump.
1775 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1777         * java/util/AbstractSet.java (equals): Re-installed original code.
1779 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
1781         * Makefile.am: Added rules for libgcjx library.
1782         * Makefile.in: Rebuilt.
1783         * configure.in: Added check for X.
1784         * configure: Rebuilt.
1785         * gnu/awt/LightweightRedirector.java: New file.
1786         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1787         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1788         * gnu/awt/j2d/Graphics2DImpl.java: New file.
1789         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1790         * gnu/awt/j2d/MappedRaster.java: New file.
1791         * gnu/awt/xlib/XCanvasPeer.java: New file.
1792         * gnu/awt/xlib/XEventLoop.java: New file.
1793         * gnu/awt/xlib/XEventQueue.java: New file.
1794         * gnu/awt/xlib/XFontMetrics.java: New file.
1795         * gnu/awt/xlib/XFramePeer.java: New file.
1796         * gnu/awt/xlib/XGraphics.java: New file.
1797         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1798         * gnu/awt/xlib/XPanelPeer.java: New file.
1799         * gnu/awt/xlib/XToolkit.java: New file.
1800         * gnu/gcj/xlib/Clip.java: New file.
1801         * gnu/gcj/xlib/Colormap.java: New file.
1802         * gnu/gcj/xlib/Display.java: New file.
1803         * gnu/gcj/xlib/Drawable.java: New file.
1804         * gnu/gcj/xlib/Font.java: New file.
1805         * gnu/gcj/xlib/GC.java: New file.
1806         * gnu/gcj/xlib/Pixmap.java: New file.
1807         * gnu/gcj/xlib/Screen.java: New file.
1808         * gnu/gcj/xlib/Visual.java: New file.
1809         * gnu/gcj/xlib/WMSizeHints.java: New file.
1810         * gnu/gcj/xlib/Window.java: New file.
1811         * gnu/gcj/xlib/WindowAttributes.java: New file.
1812         * gnu/gcj/xlib/XAnyEvent.java: New file.
1813         * gnu/gcj/xlib/XButtonEvent.java: New file.
1814         * gnu/gcj/xlib/XColor.java: New file.
1815         * gnu/gcj/xlib/XConfigureEvent.java: New file.
1816         * gnu/gcj/xlib/XConnectException.java: New file.
1817         * gnu/gcj/xlib/XEvent.java: New file.
1818         * gnu/gcj/xlib/XException.java: New file.
1819         * gnu/gcj/xlib/XExposeEvent.java: New file.
1820         * gnu/gcj/xlib/XID.java: New file.
1821         * gnu/gcj/xlib/XImage.java: New file.
1822         * gnu/gcj/xlib/XUnmapEvent.java: New file.
1823         * gnu/gcj/xlib/natClip.cc: New file.
1824         * gnu/gcj/xlib/natColormap.cc: New file.
1825         * gnu/gcj/xlib/natDisplay.cc: New file.
1826         * gnu/gcj/xlib/natDrawable.cc: New file.
1827         * gnu/gcj/xlib/natFont.cc: New file.
1828         * gnu/gcj/xlib/natGC.cc: New file.
1829         * gnu/gcj/xlib/natPixmap.cc: New file.
1830         * gnu/gcj/xlib/natScreen.cc: New file.
1831         * gnu/gcj/xlib/natVisual.cc: New file.
1832         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1833         * gnu/gcj/xlib/natWindow.cc: New file.
1834         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1835         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1836         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1837         * gnu/gcj/xlib/natXColor.cc: New file.
1838         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1839         * gnu/gcj/xlib/natXException.cc: New file.
1840         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1841         * gnu/gcj/xlib/natXImage.cc: New file.
1842         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1843         * java/awt/EventDispatchThread.java: Start thead on creation.
1845 2000-10-20  Tom Tromey  <tromey@cygnus.com>
1847         From Arno J. Klaassen:
1848         * interpret.cc: Include <stdlib.h> for alloca.
1849         * defineclass.cc: Include <stdlib.h> for alloca.
1851         * Makefile.in: Rebuilt.
1852         * Makefile.am: Include deps.mk.
1853         (GCJCOMPILE): Added -MD, -MT, and -MF.
1854         ($(javao_files)): Don't depend on libgcj.zip.
1855         (all-recursive): New target.
1856         (%.lo:%.cc): Do dependency tracking.
1857         ($(nat_headers)): Don't depend on libgcj.zip.
1858         * configure: Rebuilt.
1859         * configure.in: Make .d files and deps.mk.
1861 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
1863         * exception.cc: Don't #include "exception".
1864         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1866         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1867         * Makefile.in: Updated.
1869 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
1871         * java/awt/peer/ChoicePeer.java (addItem): Removed.
1872         * java/awt/peer/ComponentPeer.java (disable): Removed.
1873         (enable): Removed.
1874         (hide): Removed.
1875         (minimumSize): Removed.
1876         (preferredSize): Removed.
1877         (reshape): Removed.
1878         (show): Removed.
1879         * java/awt/peer/ListPeer.java (addItem): Removed.
1880         (clear): Removed.
1881         (minimumSize): Removed.
1882         (preferredSize): Removed.
1883         (setMultipleSelections): Removed.
1884         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1885         (remove): Renamed from removeMenu.
1886         * java/awt/peer/MenuItemPeer.java (disable): Removed.
1887         (enable): Removed.
1888         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1889         (remove): Renamed from removeItem.
1890         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1891         (getMinimumSize): Removed.
1892         (getPreferredSize): Removed.
1893         (minimumSize): Removed.
1894         (preferredSize): Removed.
1895         (replaceText): Removed.
1896         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1897         (preferredSize): Removed.
1898         (getMinimumSize): Removed.
1899         (getPreferredSize): Removed.
1900         (setEchoCharacter): Removed.
1902 2000-10-10  Warren Levy  <warrenl@cygnus.com>
1904         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1905         * java/sql/Date.java (serialVersionUID): New field.
1906         * java/sql/Time.java (serialVersionUID): New field.
1907         * java/sql/Timestamp.java (serialVersionUID): New field.
1908         * java/text/ChoiceFormat.java (serialVersionUID): New field.
1909         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1910         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1911         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1912         (readObject): New serialization method.
1913         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1914         (serialVersionOnStream): New field.
1915         (readObject): New serialization method.
1916         (getMonetaryDecimalSeparator): New method.
1917         (setMonetaryDecimalSeparator): New method.
1918         * java/text/NumberFormat.java (maxFractionDigits): New field.
1919         (maxIntegerDigits): New field.
1920         (minFractionDigits): New field.
1921         (minIntegerDigits): New field.
1922         (serialVersionOnStream): New field.
1923         (serialVersionUID): New field.
1924         (readObject): New serialization method.
1925         (writeObject): New serialization method.
1926         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
1927         (serialVersionOnStream): New field.
1928         (serialVersionUID): New field.
1929         (readObject): New serialization method.
1931 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
1933         * configure.in (GCJ): Avoid bogus error message when looking for
1934         (and not finding) gcj in the build tree.
1935         * configure: Rebuilt.
1937 2000-10-09  Tom Tromey  <tromey@cygnus.com>
1939         * configure: Rebuilt.
1940         * configure.in: Include sys/types.h when checking for socklen_t.
1941         From Arno J. Klaassen.
1943 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
1945         * include/jvm.h: Enable __builtin_expect().
1947         * name-finder.cc (lookup): Don't trust dladdr() if the address is from 
1948         the main program. Fix for PR libgcj/341.
1950 2000-10-07  Tom Tromey  <tromey@cygnus.com>
1952         * java/util/Properties.java: Merged with Classpath version.
1954 2000-10-05  Tom Tromey  <tromey@cygnus.com>
1956         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
1957         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
1958         * java/lang/Class.h (Object): Added `class$' field.
1959         * java/lang/Object.h (Object): Added `class$' field.
1960         * defineclass.cc (ClassClass): Use `class$' form.
1961         (ClassObject): Likewise.
1962         * resolve.cc (ClassObject): Use `class$' form.
1963         (ObjectClass): Likewise.
1964         * interpret.cc (ClassError): Removed.
1965         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
1966         `class$' form.
1967         (IntegerClass): Likewise.
1968         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
1969         form.
1970         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
1971         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
1972         SerializableClass): Likewise.
1973         Include Serializable.h, Cloneable.h.
1974         * java/lang/natSystem.cc (SystemClass): Removed.
1975         (init_properties): Use `class$' form.
1976         * java/lang/natObject.cc (CloneableClass): Removed.
1977         (clone): Use `class$' form.
1978         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
1979         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
1980         ConstructorClass): Likewise.
1981         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
1982         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
1983         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
1984         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
1985         form.
1986         (ClassClass): Likewise.
1987         * include/jvm.h (StringClass): Use `class$' form.
1988         * prims.cc (ObjectClass): Removed.
1989         (_Jv_RunMain): Use `class$' form.
1990         (_Jv_AllocObject): Likewise.
1991         * jni.cc (ClassClass): Use `class$' form.
1992         (ThrowableClass): Likewise.
1993         (ObjectClass): Likewise.
1994         (MethodClass): Likewise.
1995         (ThreadGroupClass): Likewise.
1996         (NativeThreadClass): Likewise.
1997         * boehm.cc (ObjectClass): Removed.
1998         (ClassClass): Removed.
1999         (_Jv_MarkObj): Use `class$' form.
2000         * gcj/field.h (JvFieldIsRef): Use `class$' form.
2001         Include RawData.h.
2003 2000-10-05  Warren Levy  <warrenl@cygnus.com>
2005         * Makefile.am: Removed java/io/Replaceable.java and
2006         java/io/Resolvable.java.
2007         * Makefile.in: Rebuilt.
2008         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2009         namespace.
2010         * java/io/ObjectInputStream.java (processResolution): Fixed typo
2011         in method name.
2012         (processResolution): Handle readResolve method via reflection with
2013         removal of Resolvable interface.
2014         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2015         method via reflection with removal of Replaceable interface.
2016         * java/io/Replaceable.java: Removed.
2017         * java/io/Resolvable.java: Removed.
2018         * java/security/Key.java (serialVersionUID): New field.
2019         * java/security/Provider.java (serialVersionUID): New field.
2020         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2021         New field.
2022         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2023         New field.
2024         * java/sql/DataTruncation.java (serialVersionUID): New field.
2025         * java/sql/SQLException.java (serialVersionUID): New field.
2026         * java/sql/SQLWarning.java (serialVersionUID): New field.
2027         * java/util/Date.java (serialVersionUID): New field.
2028         (millis): Made transient.
2029         (readObject): New method.
2030         (writeObject): New method.
2032 2000-10-05  Tom Tromey  <tromey@cygnus.com>
2034         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2036 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
2038         * prims.cc (_Jv_argv, _Jv_argc): New fields.
2039         (JvRunMain): Set _Jv_argv and _Jv_argc.
2040         * java/awt/Component.java: Minor fixes.
2041         * java/awt/Image.java (UndefinedProperty): Initialize final field.
2042         * java/awt/Toolkit.java (systemEventQueue): Removed.
2043         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2044         * java/awt/Window.java (getToolkit): Don't call super.
2045         * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2046         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2047         * gnu/awt/gtk/GtkComponentPeer.java: New file.
2048         * gnu/awt/gtk/GtkContainerPeer.java: New file.
2049         * gnu/awt/gtk/GtkFramePeer.java: New file.
2050         * gnu/awt/gtk/GtkMainThread.java: New file.
2051         * gnu/awt/gtk/GtkToolkit.java: New file.
2052         * gnu/awt/gtk/GtkWindowPeer.java: New file.
2053         * gnu/awt/gtk/gtkcommon.cc: New file.
2054         * gnu/awt/gtk/gtkcommon.h: New file.
2055         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2056         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2057         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2058         * gnu/awt/gtk/natGtkMainThread.cc: New file.
2059         * gnu/awt/gtk/natGtkToolkit.cc: New file.
2060         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2062 2000-09-30  Tom Tromey  <tromey@cygnus.com>
2064         * posix-threads.cc (_Jv_CondWait): Check to see if we are
2065         interrupted before modifying the cv's wait set.
2066         From Corey Minyard.
2068 2000-09-30  Hans Boehm  <boehm@acm.org>
2069             Bryce McKinlay  <bryce@albatross.co.nz>
2070             
2071         Implement bitmap descriptor based marking for Boehm GC.
2073         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2074         * configure: Rebuilt.
2075         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2076         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2077         method get_finalizer().
2078         (struct _Jv_ArrayVTable): Ditto. Declare method array with 
2079         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2080         (_Jv_AllocObj): Add new jclass parameter.
2081         (_Jv_AllocArray): Ditto.
2082         (_Jv_BuildGCDescr): New prototype.
2083         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2084         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2085         get_finalizer() instead of direct finalizer vtable offset.
2086         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2087         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2088         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2089         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2090         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2091         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2092         (_Jv_DetermineVTableIndex): Ditto.
2093         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable 
2094         calculations to account for new gc_descr field.
2095         * boehm.cc: #include gc_gcj.h.
2096         (obj_kind_x, obj_free_list): `#if 0'-ed away.
2097         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2098         New commentary from HB. Mark the classes vtable.
2099         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2100         (GC_DEFAULT_DESCR): New #define.
2101         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.        
2102         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2103         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2104         scan conservativly if size is less than min_heap_addr. Set vtable 
2105         pointer of new object before returning.
2106         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2107         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2108         allocation for obj_kind_x.
2109         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2110         (_Jv_AllocObj): Set vtable on returned object.
2111         (_Jv_AllocArray): Ditto.
2112         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2113         (_Jv_NewPrimArray): Ditto.
2114         (_Jv_AllocObj): Declare as a friend.
2115         (_Jv_AllocArray): Ditto.        
2116         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2117         from &ObjectClass into new array class. Remove offset-by-one 
2118         adjustments from `method' size calculations to account for gc_descr 
2119         field.
2121 2000-09-26  Tom Tromey  <tromey@cygnus.com>
2123         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2124         `remove', not `add'.
2126 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2128         * java/lang/natSystem.cc (file_encoding): Added return statement.
2130 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
2132         * Makefile.am: Re-work shell commands that exceeded command-line
2133         length limits.
2134         * Makefile.in: Rebuilt.
2136         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2138         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2139         * java/lang/natDouble.cc: Likewise.
2140         * java/lang/reflect/natMethod.cc: Likewise.
2141         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
2143 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
2145         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2146         libgcjdata.a.
2147         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
2148         * acinclude.m4: Arrange for automake to not bring in a new
2149         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
2150         * Makefile.am: Leave it up to automake to subst GCJ.
2151         * aclocal.m4, configure, Makefile.in: Rebuilt.
2153 2000-09-13  Tom Tromey  <tromey@cygnus.com>
2155         * java/lang/reflect/natArray.cc (BooleanClass): New define.
2156         (get): Ensure Boolean class is initialized.
2157         * java/lang/reflect/natField.cc (BooleanClass): New define.
2158         (get): Ensure Boolean class is initialized.
2160 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
2162         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2163         Initialize with anonymous class.
2164         (compareToIgnoreCase): New method.
2165         
2166         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2167         (uncaughtException): Set had_uncaught_exception.
2168         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2169         exit with error status if set.
2170         (_Jv_RunMain): Ditto.
2172 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
2174         * configure: Rebuilt with new ../libtool.m4.
2176 2000-09-11  Tom Tromey  <tromey@cygnus.com>
2178         * java/lang/reflect/Field.java (toString): Don't rely on
2179         Class.toString.
2181 2000-09-08  Tom Tromey  <tromey@cygnus.com>
2183         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2184         default decoder use iconv.
2185         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2186         Let default encoder use iconv.
2187         * configure: Rebuilt.
2188         * configure.in: Check for nl_langinfo and <langinfo.h>.
2189         * java/lang/natSystem.cc (file_encoding): New function.
2190         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2192 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
2194         * acinclude.m4: Simplify the tests for CC and CXX.
2195         * aclocal.m4, configure: Rebuilt.
2197         * acinclude.m4: Include libtool macros from the source tree.
2198         * aclocal.m4, configure: Rebuilt.
2200 2000-09-08  Warren Levy  <warrenl@cygnus.com>
2202         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2203         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2204         * java/io/File.java (writeObject): Added.
2205         (readObject): Added.
2206         (serialVersionUID): Added.
2207         * java/io/ObjectOutputStream.java (writeObject): Initialized
2208         fieldsAlreadyWritten before recursion rather than after.
2209         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2210         * java/io/OptionalDataException.java (serialVersionUID): Added.
2211         (OptionalDataException): Made package private.
2212         * java/io/SyncFailedException.java (SyncFailedException): Removed
2213         default constructor to match spec.
2214         * java/lang/Boolean.java (serialVersionUID): Added.
2215         * java/lang/Byte.java (serialVersionUID): Added.
2216         * java/lang/Character.java (serialVersionUID): Added.
2217         * java/lang/Double.java (serialVersionUID): Added.
2218         * java/lang/Float.java (serialVersionUID): Added.
2219         * java/lang/Integer.java (serialVersionUID): Added.
2220         * java/lang/Long.java (serialVersionUID): Added.
2221         * java/lang/Number.java (serialVersionUID): Added.
2222         * java/lang/Short.java (serialVersionUID): Added.
2223         * java/lang/String.java (serialVersionUID): Added.
2224         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2225         to match spec.
2226         * java/lang/reflect/InvocationTargetException.java
2227         (serialVersionUID): Added.
2228         * java/net/URL.java (handler): Made transient.
2229         (hashCode): Added field for serialization, per spec. and use
2230         cached value if available.
2231         (serialVersionUID): Added.
2232         (URL): Initialize hashCode.
2233         (set): Adjust hashCode.
2234         (readObject): New Method to initialize the protocol handler when
2235         deserializing.
2236         (writeObject): New method.
2237         * java/text/BreakIterator.java: Removed 'implements Serializable'.
2238         * java/text/Collator.java: Removed 'implements Serializable'.
2239         * java/util/GregorianCalendar.java (serialVersionUID): Added.
2240         * java/util/Properties.java (serialVersionUID): Added.
2241         * java/util/Random.java (serialVersionUID): Added.
2242         (seed): Made private.
2243         (nextNextGaussian): Made private.
2244         (haveNextNextGaussian): Made private.
2245         * java/util/Stack.java (serialVersionUID): Added.
2246         * java/util/TimeZone.java (serialVersionUID): Added.
2247         * java/util/Vector.java (serialVersionUID): Added.
2249 2000-09-07  Bryce McKinlay  <bryce@albatross.co.nz>
2251         * Makefile.am (Thread.h): Don't be friends with native threads 
2252         functions.
2253         * Makefile.in: Rebuilt.
2254         * java/lang/Thread.java (interrupt_flag): Make package-private.
2256 2000-09-06  Jeff Sturm  <jeff.sturm@appnet.com>
2258         * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2259         to avoid long long division.
2261 2000-09-06  Tom Tromey  <tromey@cygnus.com>
2263         * java/lang/reflect/Constructor.java (toString): Use `getName' for
2264         parameter types.
2265         * java/lang/reflect/Method.java (toString): Use `getName' for
2266         return type.
2268         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2269         `args' if method takes no parameters.
2271         Fix for PR java.lang/339:
2272         * java/lang/natPosixProcess.cc (fail): New function.
2273         (cleanup): New function.
2274         (startProcess): Use them.  Create pipe so child can communicate
2275         exec failure back to parent.
2277 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
2279         * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2280         calls to `throw'.
2281         (send): Undo last patch. Remove the label only.
2282         (mcastGrp): Ditto.
2283         * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to 
2284         `throw'.
2285         * java/net/natInetAdress.cc: Ditto.
2287         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2289 2000-09-05  Tom Tromey  <tromey@cygnus.com>
2291         * doc/cni.sgml: Updated from master copy.
2293 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
2295         * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2296         (write): Ditto.
2297         * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2298         stack. Synchronize.
2299         * java/lang/fdlibm.h: #undef __P if previously defined.
2300         * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2301         * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable 
2302         block.
2303         (mcastGrp): Ditto.
2305 2000-09-04  Tom Tromey  <tromey@cygnus.com>
2307         * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2308         DELETE mode.
2310 2000-09-04  Anthony Green  <green@redhat.com>
2312         Fix for PR java.io/203:
2313         * java/io/File.java (createTempFile): Obey directory argument.
2314         Use java.io.tmpdir if needed.  Don't leave FileDescripators open.
2315         * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2316         variable to set java.io.tmpdir on non-WIN32 systems.
2318 2000-09-04  Anthony Green  <green@redhat.com>
2320         * java/io/File.java (deleteOnExit): New method.
2321         * gnu/gcj/runtime/FileDeleter.java: New class.
2322         * java/lang/natRuntime.cc (exit): Call
2323         FileDeleter.deleteOnExitNow()
2324         * Makefile.am: Add FileDeleter.java.
2325         * Makefile.in: Rebuilt.
2327 2000-09-02  Tom Tromey  <tromey@cygnus.com>
2329         * Makefile.in: Rebuilt.
2330         * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2331         environment variable.
2333 2000-09-01  Andrew Haley  <aph@redhat.com>
2335         * java/io/StreamTokenizer.java: Don't throw a
2336         NumberFormatException if a field is numeric as far as the
2337         StreamTokenizer is concerned but not as far as Double.valueOf() is
2338         concerned: return a zero instead.       
2340 2000-08-30  Tom Tromey  <tromey@cygnus.com>
2342         * Makefile.in: Rebuilt.
2343         * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2345 2000-08-28  Tom Tromey  <tromey@cygnus.com>
2347         * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2348         gnu/gcj/awt/ComponentDataBlitOp.java,
2349         gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2350         java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2351         java/awt/color/ICC_ColorSpace.java,
2352         java/awt/color/ICC_Profile.java,
2353         java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2354         java/awt/image/ComponentColorModel.java,
2355         java/awt/image/ComponentSampleModel.java,
2356         java/awt/image/DataBuffer.java,
2357         java/awt/image/DataBufferByte.java,
2358         java/awt/image/DataBufferInt.java,
2359         java/awt/image/DataBufferUShort.java,
2360         java/awt/image/DirectColorModel.java,
2361         java/awt/image/IndexColorModel.java,
2362         java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2363         java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2364         java/awt/image/SinglePixelPackedSampleModel.java,
2365         java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2366         Removed Latin-1 copyright symbols.
2367         * java/util/zip/ZipFile.java: Indentation fixes.
2369 2000-08-27  Mark Wielaard  <mark@klomp.org>
2371         * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2372         constructor, close can delete the file, finalize calls close.
2373         * java/util/jar/JarFile.java: Constructor that takes mode now
2374         calls super.
2376 2000-08-27  Anthony Green  <green@redhat.com>
2378         * java/util/ArrayList.java, java/util/Timer.java,
2379         java/util/LinkedList.java, java/util/TimerTask.java,
2380         java/util/HashMap.java, java/util/AbstractMap.java,
2381         java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2382         java/util/SortedSet.java: Imported from GNU Classpath.
2383         * Makefile.in: Rebuilt.
2384         * Makefile.am: Added new files.
2385         
2386 2000-08-26  Anthony Green  <green@redhat.com>
2388         * Makefile.in: Rebuilt.
2389         * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2390         friend.
2392         * prims.cc: Include ClassLoader.h.
2393         (_Jv_RunMain): When executing jar files, classpath must be the jar
2394         file only.  Lose our reference to the system ClassLoader in order
2395         to get a new one with the correct classpath.
2396         * java/lang/natSystem.cc (init_properties): When executing a jar
2397         file, only use the jar file for java.class.path.
2399         * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2400         for bytecode archives.
2402         * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2403         exists, but not Main-Class.
2405 2000-08-23  Mark Wielaard  <mark@klomp.org>
2407         * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2408         return -1 when fill() has no more data for the Inflater.
2410 2000-08-23  Mark Wielaard  <mark@klomp.org>
2412         * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2413         write(String) already does.
2415 2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2417         * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2418         to `alive_flag', call `init'.
2419         (init): New native method.
2420         * gnu/gcj/jni/natNativeThread.cc (init): New native method
2421         implementation.
2423 2000-08-21  Mark Wielaard  <mark@klomp.org>
2425         * Makefile.in: Rebuilt.
2426         * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2427         a `friend class'.
2428         (java/lang/reflect/Field.h): Likewise.
2429         (java/lang/reflect/Method.h): Likewise.
2430         (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2431         `friend class'.
2433 2000-08-21  Tom Tromey  <tromey@cygnus.com>
2435         * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2436         debugging prints.
2438 Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>
2440         * java/lang/natSystem.cc (init_properties): Change sourceware
2441         reference to sources.redhat.com.
2443         * include/java-props.h: Add _Jv_Jar_Class_Path.
2444         * prims.cc: Ditto.  Set it from `gij -jar file' option.
2446         * java/lang/natSystem.cc (init_properties): Set java.class.path
2447         from
2448         {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2450         * java/util/PropertyPermission.java: Import from GNU Classpath.
2451         * Makefile.in: Rebuilt.
2452         * Makefile.am: Add java/util/PropertyPermission.java.
2453         * java/lang/System.java: Add setProperty method.
2455         * gij.cc (main): Add -jar option to execute jar files.
2456         (help): Describe -jar option.
2457         * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2458         * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2459         * gnu/gcj/runtime/FirstThread.java (main): New method.
2461         * java/util/jar/Attributes.java: Correct comment spelling.
2463 2000-08-20  Mark Wielaard  <mark@klomp.org>
2465         * java/util/zip/Adler32.java: Make private variables really private
2466         * java/util/zip/CRC32.java: Make private variables really private
2467         * java/util/zip/CheckedInputStream.java: skip() could skip to much
2468         bytes
2469         * java/util/zip/InflaterInputStream.java: skip() could skip to
2470         much bytes
2471         * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2472         * java/util/zip/ZipFile.java: size() new 1.2 method
2473         * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2474         ZipEntry.  since 1.2 available() always returns just 1 or 0 when
2475         closed
2477 Sun Aug 20 12:33:43 2000  Anthony Green  <green@redhat.com>
2479         * java/util/jar/JarFile.java: Don't call
2480         java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
2481         <mark@klomp.org>.
2482         
2483 Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>
2485         * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2486         Read the entire contents of the class file, not just what is
2487         available().
2489         * java/net/JarURLConnection.java: getEntry doesn't take any
2490         arguments.  Return null if element is null.
2492         * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2493         size from the archive, not the inflated size.
2495         * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
2496         java.util.zip.ZipFile.getEntry.
2498         * gij.cc (help): Change sourceware reference to
2499         sources.redhat.com.
2501 2000-08-19  Tom Tromey  <tromey@cygnus.com>
2503         * java/util/zip/ZipInputStream.java (createZipEntry):
2504         Implemented.
2506 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
2508         * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2509         java/util/jar/JarException.java, java/util/jar/JarFile.java,
2510         java/util/jar/JarInputStream.java,
2511         java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2512         java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2513         java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2514         java/security/cert/CRL.java, java/security/cert/CRLException.java,
2515         java/security/cert/Certificate.java,
2516         java/security/cert/CertificateEncodingException.java,
2517         java/security/cert/CertificateException.java,
2518         java/security/cert/CertificateExpiredException.java,
2519         java/security/cert/CertificateFactory.java,
2520         java/security/cert/CertificateFactorySpi.java,
2521         java/security/cert/CertificateNotYetValidException.java,
2522         java/security/cert/CertificateParsingException.java,
2523         java/security/cert/X509CRL.java,
2524         java/security/cert/X509CRLEntry.java,
2525         java/security/cert/X509Certificate.java,
2526         java/security/cert/X509Extension.java: Imported from Classpath.
2527         * java/util/Hashtable.java: Imported from Classpath.
2529         * java/util/zip/ZipInputStream.java: Create stub for
2530         createZipEntry.
2532         * gcj/javaprims.h: Updated class list.
2534         * Makefile.in, gcj/Makefile.in: Rebuilt.
2535         * Makefile.am (ordinary_java_source_files): Add these new classes.
2536         
2537 2000-08-16  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
2539         * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2540         * gnu/gcj/awt/GLightweightPeer.java: New file.
2541         * java/awt/BorderLayout.java: Implemented all methods.
2542         * java/awt/Button.java (actionListener, actionCommand): Renamed
2543         and modifier change.
2544         (addNotify): Call super.
2545         (dispatchEventImpl): New method.
2546         (getListeners): New method.
2547         (label): Made package-private, not private.
2548         * java/awt/Canvas.java: Implemented class body.
2549         * java/awt/Color.java (brighter): New method.
2550         (darker): New method.
2551         (hashCode): New method.
2552         * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2553         (getGraphicsConfiguration): Delegate to
2554         getGraphicsConfigurationImpl().
2555         (getGraphicsConfigurationImpl): New method.
2556         (getToolkit): Only return value from peer if not null.
2557         (isDisplayable): Check with parent.
2558         (isShowing): No parent implies not showing.
2559         (getForeground): Check parent property if local is null.
2560         (getBackground): Likewise.
2561         (getFont): Likewise.
2562         (setForeground): Inform peer.
2563         (setBackground): Likewise
2564         (setLocale): Invalidate component.
2565         (getColorModel): Implemented.
2566         (setLocation): Invalidate, or ignore if no change.
2567         (setSize): Invalidate, or ignore if no change.
2568         (setBounds): Invalidate, or ignore if no change.
2569         (isOpaque): By default, heavyweight implies opaque.
2570         (isLightweight): Implemented.
2571         (getMaximumSize): Implemented.
2572         (doLayout): Implemented, NOP.
2573         (validate): Implemented, NOP.
2574         (invalidate): Only propagate to parent if parent was valid.
2575         (getGraphics): Implemented.
2576         (getFontMetrics): Implemented.
2577         (update): Implemented.
2578         (paintAll): Implemented.
2579         (repaint): Implemented all repaint methods.
2580         (print): Implemented.
2581         (printAll): Implemented.
2582         (createImage): Implemented.
2583         (dispatchEvent): Give the peer a chance to handle the event.
2584         (dispatchEventImpl): Dispatch paint events.
2585         (enableEvents): Lightweights enable events on parent component.
2586         (coalesceEvents): Coalesce paint events, and select event type
2587         using a switch.
2588         (coalescePaintEvents): New method.
2589         (processEvent): Fix unfortunate ordering of statements, and call
2590         correct method for MOUSE_CLICKED.
2591         (processPaintEvent): New method.
2592         (addNotify): Allow container to notify children before event
2593         mask is set in peer.
2594         (addNotifyContainerChildren): New method.
2595         (removeNotify): Visibility should not change on removeNotify.
2596         (paramString): Implemented.
2597         (list): Implemented two of the list methods.
2598         * Container (myInsets): Removed, insets are managed by peer.
2599         (getInsets): Query peer.
2600         (addImpl): Fix reparenting, enable events for lightweights,
2601         initialize component array.
2602         (validate): Call doLayout in validateTree() instead.
2603         (validateTree): Do nothing if already valid. Call beginValidate(),
2604         endValidate() on peer. Call validateTree() instead of validate()
2605         for children that are containers. Mark valid after validation of
2606         children.
2607         (setFont): Partial implementation.
2608         (paint): Implemented.
2609         (visitChildren): New method.
2610         (visitChild): New method.
2611         (update): Implemented.
2612         (print): Implemented.
2613         (paintComponents): Implemented.
2614         (printComponents): Consider translation and clipping.
2615         (getComponentAt): Ignore invisible children. Return this if no
2616         child match.
2617         (addNotify): Call super.
2618         (addNotifyContainerChildren): New method.
2619         (paramString): Implemented.
2620         (list): Implemented.
2621         * java/awt/EventQueue (invokeAndWait): Get system event queue the
2622         right way.
2623         (invokeLater): Likewise.
2624         (isDispatchThread): Likewise.
2625         * java/awt/FontMetrics (getLeading): Formula change.
2626         (getDescent): Consider leading also.
2627         (getMaxAscent): Default to getAscent().
2628         (getMaxDescent): Default to getDescent.
2629         (getMaxAdvance): Return value signifying unknown.
2630         (charWidth): Both methods implemented.
2631         (charsWidth): Implemented.
2632         (bytesWidth): Implemented.
2633         (getWidths): Implemented.
2634         * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2635         state): New fields.
2636         (Frame): Rearragend constuctor chaining to disallow null being
2637         passed as a graphics configuration.
2638         (getTitle): Return empty string if null.
2639         (dispose): Removed.
2640         (getIconImage): New method.
2641         (setIconImage): New method.
2642         (finalize): New method.
2643         (setMenuBar): Notify peer.
2644         (isResizable): New method.
2645         (setResizable): New method.
2646         (getState): New method.
2647         (getFont): Removed.
2648         (remove): Implemented.
2649         (removeNotify): New method.
2650         (getFrames): New method.
2651         * java/awt/Graphics.java: Implemented body of class.
2652         * java/awt/Graphics2D.java: New file.
2653         * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2654         * java/awt/Image.java: Implemented body of class.
2655         * java/awt/Panel.java (Panel): Call correct super constructor.
2656         (addNotify): Implemented.
2657         * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2658         * java/awt/RenderingHints.java: New file.
2659         * java/awt/Toolkit.java (createComponent): Implemented.
2660         (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2661         * java/awt/Window.java (Window): Two new constructors. Reordered
2662         constructor chaining.
2663         (getGraphicsConfigurationImpl): New method.
2664         (finalize): Call super.
2665         (addNotify): Call super.
2666         (pack): Do layout stuff.
2667         (show): Ensure that peer exists and that component is valid.
2668         (dispose): Dispose owned children.
2669         (getOwner): Simplify code, casting null pointers is valid.
2670         (getGraphicsConfiguration): Ask peer if local value is null.
2671         * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2672         getcmd().
2673         * java/awt/image/BufferedImage.java: New file.
2674         * java/awt/image/RasterOp.java: New file.
2675         * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2676         More powerfull replacement for getColorModel().
2677         (getColorModel) Removed.
2678         (setEventMask) New method.
2679         * Makefile.am: Added new files.
2680         * Makefile.in: Rebuilt.
2682 2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2684         * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2685         (finit_leg_name): New global.
2686         (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2687         `$finit$'. This is a backward compatibility hack.
2688         (java::lang::Class::_getMethods): Likewise.
2690 2000-08-15  Andrew Haley  <aph@cygnus.com>
2692         * include/jvm.h (_Jv_HashCode): New hash code.
2694 2000-08-15  Tom Tromey  <tromey@cygnus.com>
2696         * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2698 Sun Aug 13 19:53:01 2000  Anthony Green  <green@redhat.com>
2700         * THANKS: More thanks.
2702 2000-08-10  Tom Tromey  <tromey@cygnus.com>
2704         * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2705         when errno not set.
2706         (connect): Likewise.
2707         (accept): Likewise.
2708         (getOption): Likewise.
2709         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2710         case when errno not set.
2711         (peek): Likewise.
2712         (send): Likewise.
2713         (receive): Likewise.
2714         (mcastGrp): Likewise.
2715         (setOption): Likewise.
2716         (getOption): Likewise.
2718 2000-08-10  Bryce McKinlay  <bryce@albatross.co.nz>
2719             John Stracke <francis@ecal.com>
2721         * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2722         (connect): Don't falsely claim HTTP/1.1 compliance. Call 
2723         getHttpHeaders().
2724         (disconnect): Don't unset connected flag.
2725         (getHeaderField (String)): Call connect() if not connected.
2726         (getHeaderField (int)): Ditto.
2727         (getHeaderFieldKey): Ditto.
2728         (getHttpHeaders): Don't call connect(). 
2729         * java/net/HttpURLConnection.java (instanceFollowRedirects,
2730         gotResponseVals): New fields.
2731         (getResponseCode): Call getResponseVals() conditionally.
2732         (getResponseMessage): Ditto.
2733         (getResponseVals): Call connect(). Don't throw FileNotFoundException.   
2735 2000-08-09  Bryce McKinlay  <bryce@albatross.co.nz>
2737         * Makefile.am: Move beans and applet classes to awt_java_source_files.
2738         * Makefile.in: Rebuilt.
2739         * java/awt/Color.java (getTransparency): New method.
2740         * java/awt/Component.java: Various updates.
2741         * java/awt/Container.java (removeNotify): Call super.removeNotify()
2742         after dealing with children.
2743         * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2744         * java/awt/Window.java: Various new methods and updates.
2745         * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2746         to int for switch.
2747         * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2748         * java/awt/event/WindowEvent.java (paramString): Ditto.
2749         * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2750         try/catch block.
2751         * java/awt/geom/Point2D.java (clone): Ditto.
2752         * java/awt/geom/RectangularShape.java (clone): Ditto.
2753         * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2754         isAlphaPremultiplied): Make package-private, not private.       
2755         
2756 2000-08-08  Tom Tromey  <tromey@cygnus.com>
2758         * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2759         surrogate characters.
2760         * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2761         true.
2762         (write): Correct handling of surrogate characters.
2764 2000-08-07  Tom Tromey  <tromey@cygnus.com>
2766         * java/lang/reflect/Method.java (hashCode): Use getName().
2767         (toString): Likewise.
2768         * java/lang/reflect/natMethod.cc (getType): Initialize
2769         exception_types.
2771         * java/lang/reflect/Method.java (toString): Use Class.getName, not
2772         Class.toString.
2773         * java/lang/reflect/Field.java (toString): Correct formatting.
2774         From Corey Minyard.
2776         * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2777         rewrote.
2778         (receive): Streamlined.
2780 2000-08-05  Tom Tromey  <tromey@cygnus.com>
2782         * java/io/PrintWriter.java: Merged comments from Classpath.
2783         (printlnUnsynchronized): Removed.
2784         (println()): Print the separator.
2785         (println): Call println(), not printlnUnsynchronized.
2786         (out): Now protected, to match spec.
2788 2000-08-04  Tom Tromey  <tromey@cygnus.com>
2790         * java/io/StreamTokenizer.java (TT_NONE): Now private.
2791         (nextToken): Handle backslashed newline.  From Oskar Liljeblad.
2792         For PR java.io/301.
2794 2000-08-03  Warren Levy  <warrenl@cygnus.com>
2796         * java/io/ObjectInputStream.java (readFields): Turn off
2797         readDataFromBlock while reading via GetField.
2798         (GetField$1.get(String, Object)): Pass Class of default value to
2799         getField.
2800         (getField): Allow for null default values.
2802         * java/io/ObjectOutputStream.java: Fixed typo in comment.
2803         (PutField$1.put): Fixed calls of checkType in most of the put
2804         methods to pass the correct parameter.
2805         (PutField$1.put(String, Object)): Allow for null value arg.
2806         (PutField$1.write): Turn off writeDataAsBlocks while writing via
2807         PutField.
2809         * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2810         typo in spec'ed field name.
2811         (getSerialPersistentFields): Changed spelling of method to match
2812         the correct spelling of the spec'ed field name.
2814 2000-08-03  Tom Tromey  <tromey@cygnus.com>
2816         * Makefile.in: Rebuilt.
2817         * Makefile.am (awt_java_source_files): Added new files.
2819 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
2821         * Makefile.am: Add new AWT stubs.
2822         * java/awt/Canvas.java: New placeholder class.
2823         * java/awt/Checkbox.java: Ditto.
2824         * java/awt/CheckboxMenuItem.java: Ditto.
2825         * java/awt/Choice.java: Ditto.
2826         * java/awt/Dialog.java: Ditto.
2827         * java/awt/FileDialog.java: Ditto.
2828         * java/awt/List.java: Ditto.
2829         * java/awt/ScrollPane.java: Ditto.
2830         * java/awt/TextField.java: Ditto.
2831         * java/awt/datatransfer/Clipboard.java: Ditto.
2832         * java/awt/Component.java (treeLock): Now a static String. Add comment.
2833         * java/awt/MenuItem.java (MenuItem): Add default constructor.
2834         * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs. 
2835         Some commented out. Partially implemented.
2836         * java/awt/natToolkit.cc: Removed file.
2838 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
2840         * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2841         Fixes "make -j" builds.
2842         * Makefile.in: Rebuild.
2844 2000-08-02  Tom Tromey  <tromey@cygnus.com>
2846         * Makefile.in: Rebuilt.
2847         * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2848         * java/net/natPlainSocketImpl.cc: Include posix.h.
2849         (accept): Use _Jv_select.
2850         * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2851         (receive): Use _Jv_select.
2852         * java/io/natFileDescriptorPosix.cc: Include posix.h.
2853         (available): Use _Jv_select.
2854         * java/lang/natSystem.cc: Include posix.h.
2855         (currentTimeMillis): Use _Jv_gettimeofday.
2856         * include/posix.h: New file.
2857         * posix.cc: New file.
2859         * scripts/encodings.pl: New file.
2860         * Makefile.in: Rebuilt.
2861         * Makefile.am (convert_source_files): Added IOConverter.java.
2862         * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2863         IOConverter.
2864         (getDefaultDecodingClass): Canonicalize default encoding name.
2865         (getEncoder): Likewise.
2866         * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2867         IOConverter.
2868         (getDefaultDecodingClass): Canonicalize default encoding name.
2869         (getDecoder): Likewise.
2870         * gnu/gcj/convert/IOConverter.java: New file.
2872 2000-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
2874         * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2875         to match C declaration in ffi.h.
2876         * Makefile.am: Add java/awt/Button.java.
2877         * Makefile.in: Rebuilt.
2879 2000-07-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2881         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2882         cast of the second argument to `ffi_raw_call' changed to match
2883         prototype.
2885 2000-07-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2887         * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2888         argument to `ffi_raw_call' changed to match prototype.
2890 2000-07-31  Bryce McKinlay  <bryce@albatross.co.nz>
2892         * java/awt/Component.java (toString): Implemented.
2893         * java/awt/Container.java (addImpl): Remove FIXME. Only call 
2894         dispatchEvent() to dispatch the event.
2895         (removeImpl): Ditto.
2897 2000-07-30  Anthony Green  <green@redhat.com>
2899         * java/awt/Component.java: Add treeLock object.
2900         (getTreeLock): Implement.
2901         (isShowing): Implement.
2903 2000-07-30  Tom Tromey  <tromey@cygnus.com>
2905         * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2907         * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2909         * java/awt/Window.java (addNotify): Wrote.
2910         (addWindowListener): Wrote.
2911         (getLocale): Wrote.
2912         (getWarningString): Wrote.
2913         (processEvent): Wrote.
2914         (processWindowEvent): Wrote.
2915         (removeWindowListener): Wrote.
2916         (show): Call validate(), setVisible().
2917         (toBack): Wrote.
2918         (toFront): Wrote.
2920         * java/awt/Toolkit.java (createWindow): Declare.
2922         * java/awt/Frame.java (addNotify): Use getToolkit to find
2923         toolkit.
2925         * java/awt/Component.java (invalidate): Wrote.
2926         (isValid): Wrote.
2927         (getToolkit): Wrote.
2929         * java/awt/Container.java (addContainerListener): Removed
2930         unnecessary cast.
2931         (removeContainerListener): Likewise.
2932         (addImpl): Wrote.
2933         (add(Component)): Use it.
2934         (add(String,Component)): Likewise.
2935         (add(Component,int)): Likewise.
2936         (add(Component,Object)): Likewise.
2937         (add(Component,Object,int)): Likewise.
2938         (doLayout): Wrote.
2939         (getAlignmentX): Wrote.
2940         (getAlignmentY): Wrote.
2941         (getComponentAt): Wrote.
2942         (getMaximumSize): Wrote.
2943         (invalidate): Wrote.
2944         (list(PrintStream,int)): Wrote.
2945         (list(PrintWriter,int)): Wrote.
2946         (getMinimumSize): Wrote.
2947         (getPreferredSize): Wrote.
2948         (printComponents): Wrote.
2949         (processContainerEvent): Look at containerListener, not
2950         componentListener.
2951         (remove): Added event processing and peer destruction.
2952         (removeAll): Use remove.
2953         (removeNotify): Wrote.
2954         (validate): Wrote.
2955         (validateTree): Wrote.
2957         * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
2958         * java/awt/Label.java (addNotify): Do nothing if peer exists.
2959         * java/awt/Container.java (addNotify): Don't create Container
2960         peer.
2961         * java/awt/Button.java (addNotify): Do nothing if peer exists.
2963 2000-07-30  Tom Tromey  <tromey@cygnus.com>
2965         * java/awt/Container.java (remove(int)): Wrote.
2966         (remove(Component)): Wrote.
2967         (add(Component)): Wrote.
2968         (add(Component,int)): Wrote.
2969         (removeAll): Wrote.
2970         (addNotify): Set our own peer.
2971         * java/awt/Scrollbar.java (listeners): Changed type.
2972         (Scrollbar): Don't initialize listeners.
2973         (addNotify): Wrote.
2974         (setValue): Call setValues.
2975         (setMinimum): Likewise.
2976         (setMaxPriority): Likewise.
2977         (setVisibleAmount): Likewise.
2978         (setValues): Wrote.
2979         (setUnitIncrement): Forward to peer.
2980         (setLineIncrement): Call setUnitIncrement.
2981         (setPageIncrement): Call setBlockIncrement.
2982         (setBlockIncrement): Forward to peer.
2983         (addAdjustmentListener): Rewrote.
2984         (removeAdjustmentListener): Rewrote.
2985         (processAdjustmentEvent): Rewrote.
2986         (paramString): Wrote.
2987         * Makefile.in: Rebuilt.
2988         * Makefile.am (awt_java_source_files): Added Button.java.
2989         * java/awt/Button.java: New file.
2990         * java/awt/Toolkit.java (createLabel): Declare.
2991         (createButton): Likewise.
2992         (createScrollbar): Likewise.
2993         (createContainer): Likewise.
2994         * java/awt/Label.java (addNotify): Wrote.
2995         (setAlignment): Call setAlignment in the peer.
2996         (setText): Call setText in the peer.
2998 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3000         * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3001         NotSerializableException with just the class name.
3003 2000-07-26  Andrew Haley  <aph@cygnus.com>
3005         * interpret.cc (continue1): Insert missing break into switch.
3007 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3009         * java/io/ObjectStreamException.java: Made constructors protected.
3011 2000-07-27  Tom Tromey  <tromey@cygnus.com>
3013         * java/io/OutputStreamWriter.java (close): Only flush if not
3014         closed.
3016 2000-07-27  Warren Levy  <warrenl@cygnus.com>
3018         * mauve-libgcj: Activated serialization tests.
3019         * gcj/field.h (getModifiers): Mask off unknown flags.
3020         * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3021         spurious bits don't cause discrepancies.
3022         * java/io/ObjectOutputStream.java: Fixed typo in comment.
3023         * java/io/ObjectStreamClass.java: Fixed typos in comments.
3024         (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3025         (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3026         * java/lang/Throwable.java (serialVersionUID): New field.
3027         * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3028         * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3029         unknown flags.
3030         * java/lang/reflect/natMethod.cc: Ditto.
3031         * java/security/Key.java (serialVersionUID): Removed field for now.
3032         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3033         * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3035 2000-07-22  Tom Tromey  <tromey@cygnus.com>
3037         * java/awt/geom/RectangularShape.java (getPathIterator):
3038         Wrote.
3040 2000-07-23  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3042         * libjava/java/awt/image/ColorModel.java: New file, replaces the
3043         stub libjava/java/awt/ColorModel.java which was located in the
3044         wrong package.
3045         * libjava/java/awt/image/ComponentColorModel.java: New file.
3046         * libjava/java/awt/image/ComponentSampleModel.java: New file.
3047         * libjava/java/awt/image/DataBuffer.java: New file.
3048         * libjava/java/awt/image/DataBufferByte.java: New file.
3049         * libjava/java/awt/image/DataBufferInt.java: New file.
3050         * libjava/java/awt/image/DataBufferUShort.java: New file.
3051         * libjava/java/awt/image/DirectColorModel.java: New file.
3052         * libjava/java/awt/image/PackedColorModel.java: New file.
3053         * libjava/java/awt/image/Raster.java: New file.
3054         * libjava/java/awt/image/SampleModel.java: New file.
3055         * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3056         file.
3057         * libjava/java/awt/image/IndexColorModel.java: New file.
3058         * libjava/java/awt/image/ImageConsumer.java: Removed import of
3059         java.awt.ColorModel stub.
3061         * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3062         * gnu/gcj/util/Buffers.java: New file, utility class.
3064         * libjava/Makefile.am: Updated to include new files.
3065         * libjava/Makefile.in: Rebuilt.
3067 2000-07-23  Oskar Liljeblad <osk@hem.passagen.se>
3069         * java/io/StreamTokenizer.java: Merged with classpath.
3071 2000-07-20  Tom Tromey  <tromey@cygnus.com>
3073         * Makefile.in: Rebuilt.
3074         * Makefile.am (awt_java_source_files): Updated for new files.
3075         * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3076         * java/awt/Label.java: New file.
3077         * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3078         (createIntersection, createUnion, getBounds2D): New methods.
3079         * java/awt/Scrollbar.java: New file.
3080         * java/awt/Shape.java: Updated to 1.2.
3081         * java/awt/geom/AffineTransform.java: New file.
3082         * java/awt/geom/Ellipse2D.java: New file.
3083         * java/awt/geom/NoninvertibleTransformException.java: New file.
3084         * java/awt/geom/PathIterator.java: New file.
3085         * java/awt/geom/Rectangle2D.java: New file.
3086         * java/awt/geom/RectangularShape.java: New file.
3087         * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3088         * java/awt/geom/IllegalPathStateException.java: New file.
3089         
3090         * scripts/showval.java: New file.
3092         * scripts/classes.pl (scan): Print inner classes properly.
3093         * gcj/javaprims.h: Updated class list.
3095         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3096         initialize String fields for interpreted classes.  Fixes bug
3097         reported by Hans Boehm.
3099         * java/io/File.java (getParentFile): New method, from Classpath
3100         via Oskar Liljeblad.
3102         * java/util/Vector.java (remove(Object)): Implemented.
3104 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
3106         * java/lang/natThrowable.cc (fillInStackTrace): Check for
3107         zero return from backtrace().
3109 2000-07-15  Bryce McKinlay  <bryce@albatross.co.nz>
3111         * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3112         synchronized block.
3113         * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3114         before calling notifyAll().
3116 2000-07-13  Bryce McKinlay  <bryce@albatross.co.nz>
3118         Add missing files from last check-in:
3119         * java/awt/image/ImageConsumer.java: New file.
3120         * java/awt/image/ImageProducer.java: New file.
3121         * java/awt/image/ImageObserver.java: New file.
3123 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3125         Merged implementation of java.applet from classpath:
3126         * java/applet/Applet.java: New file.
3127         * java/applet/AppletContext.java: New file.
3128         * java/applet/AppletStub.java: New file.
3129         * java/applet/AudioClip.java: New file.
3131         * Makefile.am: Added new java.applet classes.
3132         * Makefile.in: Rebuilt.
3134 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3136         AWT Stuff:
3137         * java/util/ResourceBundle.java (getLocale): stub.
3138         * Makefile.am: Added new AWT classes.
3139         * Makefile.in: Rebuilt.
3140         * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed, 
3141         constructors. Fix toString() and paramString().
3142         * java/awt/AWTEventMulticaster.java: New class. Implemented.
3143         * java/awt/CheckboxGroup.java: New class.
3144         * java/awt/ColorModel.java: New class.
3145         * java/awt/Component.java: Added stubs for most methods. Implemented 
3146         event dispatch.
3147         * java/awt/Container.java: ditto.
3148         * java/awt/ComponentOrientation.java: New class. Partly implemented.
3149         * java/awt/Cursor.java: ditto.
3150         * java/awt/Event.java: Fix paramString().
3151         * java/awt/EventQueue.java: New class. Implemented.
3152         * java/awt/Font.java: Added additional stub methods. Implemented 
3153         toString().
3154         * java/awt/FontMetrics.java: New class. Stubbed.
3155         * java/awt/GraphicsConfiguration.java: New class. Complete, except for 
3156         Java2D parts.
3157         * java/awt/Insets.java: New class. Implemented.
3158         * java/awt/Menu.java: Add new methods. Partially implemented.
3159         * java/awt/MenuItem.java: Add new methods and fields. Partially 
3160         implemented.
3161         * java/awt/MenuShortcut.java: New class. Implemented.
3162         * java/awt/Panel.java: New class. Placeholder.
3163         * java/awt/PopupMenu.java: New class. Stubbed.
3164         * java/awt/Rectangle.java: New class. Implemented.
3165         * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3166         * java/awt/event/ActionEvent.java: Implement paramString().
3167         * java/awt/event/AdjustmentEvent.java: Implement paramString().
3168         * java/awt/event/ComponentEvent.java: Implement paramString().
3169         * java/awt/event/ContainerEvent.java: Implement paramString().
3170         * java/awt/event/FocusEvent.java: Implement paramString().
3171         * java/awt/event/HierarchyBoundsAdapter.java: New class.
3172         * java/awt/event/HierarchyBoundsListener.java: New class.
3173         * java/awt/event/HierarchyEvent.java: New class.
3174         * java/awt/event/HierarchyListener.java: New class.
3175         * java/awt/event/InputMethodEvent.java: Implement paramString().
3176         * java/awt/event/InvocationEvent.java: Implement paramString(). Throw 
3177         exception if !catchExceptions.
3178         * java/awt/event/ItemEvent.java: Implement paramString().
3179         * java/awt/event/KeyEvent.java: Implement paramString().
3180         * java/awt/event/MouseEvent.java: Implement paramString().
3181         * java/awt/event/PaintEvent.java: Implement paramString().
3182         * java/awt/event/TextEvent.java: Implement paramString().
3183         * java/awt/event/WindowEvent.java: Implement paramString().
3184         
3185         AWT Peer interfaces:
3186         * java/awt/peer/ButtonPeer.java: New file.
3187         * java/awt/peer/ListPeer.java: New file.
3188         * java/awt/peer/CanvasPeer.java: New file.
3189         * java/awt/peer/MenuBarPeer.java: New file.
3190         * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3191         * java/awt/peer/MenuComponentPeer.java: New file.
3192         * java/awt/peer/CheckboxPeer.java: New file.
3193         * java/awt/peer/MenuItemPeer.java: New file.
3194         * java/awt/peer/ChoicePeer.java: New file.
3195         * java/awt/peer/MenuPeer.java: New file.
3196         * java/awt/peer/ComponentPeer.java: Implemented.
3197         * java/awt/peer/PanelPeer.java: New file.
3198         * java/awt/peer/ContainerPeer.java: Implemented.
3199         * java/awt/peer/PopupMenuPeer.java: New file.
3200         * java/awt/peer/DialogPeer.java: New file.
3201         * java/awt/peer/ScrollPanePeer.java: New file.
3202         * java/awt/peer/FileDialogPeer.java: New file.
3203         * java/awt/peer/ScrollbarPeer.java: New file.
3204         * java/awt/peer/FontPeer.java: New file.
3205         * java/awt/peer/TextAreaPeer.java: New file.
3206         * java/awt/peer/FramePeer.java: Implemented.
3207         * java/awt/peer/TextComponentPeer.java: New file.
3208         * java/awt/peer/LabelPeer.java: New file.
3209         * java/awt/peer/TextFieldPeer.java: New file.
3210         * java/awt/peer/LightweightPeer.java: New file.
3211         * java/awt/peer/WindowPeer.java: Implemented.
3213 2000-07-06  Tom Tromey  <tromey@cygnus.com>
3215         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3216         Initialize static final String fields.
3218 2000-07-03  Tom Tromey  <tromey@cygnus.com>
3220         * java/io/PrintWriter.java (print): Call write(String), not
3221         print(String).  See PR libgcj/277.
3222         (print(String)): Use write, not out.write.
3224 2000-06-30  Tom Tromey  <tromey@cygnus.com>
3226         * include/jni.h: Include <gcj/array.h>.  Fixes PR libgcj/270.
3228 2000-06-27  Andrew Haley  <aph@cygnus.com>
3230        * java/io/File.java (createTempFile): Close the FileDescriptor
3231        used to create a temp file.  Fixes some of PR 203.
3232        * java/io/natFileDescriptorPosix.cc (open): Call garbage
3233        collection if we run out of file handles.
3235 2000-06-28  Warren Levy  <warrenl@cygnus.com>
3237         * gnu/java/security/provider/Gnu.java: New file.
3238         * gnu/java/security/provider/SHA.java: New file.
3239         * gnu/java/security/provider/SHA1PRNG.java: New file.
3240         * Makefile.am: Added the above files.
3241         * Makefile.in: Rebuilt.
3243         * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3245 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
3247         * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3248         (destroyed_flag): Removed.
3249         (isDestroyed, removeGroup, removeThread): Test for parent == null.      
3250         (activeCount): Added spec note.
3252 2000-06-27  Warren Levy  <warrenl@cygnus.com>
3254         * java/security/Principal.java: New file.
3255         * Makefile.am: Added Principal.java.
3256         * Makefile.in: Rebuilt.
3258 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3260         * java/awt/event/MouseEvent.java: Fixed coordinate space
3261         confusion.
3263 2000-06-27  Tom Tromey  <tromey@cygnus.com>
3265         * java/io/PushbackInputStream.java (read): If there are characters
3266         in the buffer, don't also call super.read().
3267         * java/io/PushbackReader.java (read): If there are characters in
3268         the buffer, don't also call super.read().
3270         * java/lang/Double.java (valueOf): Call parseDouble().
3272 2000-06-26  Warren Levy  <warrenl@cygnus.com>
3274         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3275         (newVal): Renamed to newValue.
3276         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3277         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3278         (revokeNow): Renamed to invalidateRefs.
3279         * java/io/OptionalDataException.java: Updated FIXME.
3280         (eof): New placeholder field.
3281         (length); Ditto.
3282         * java/io/WriteAbortedException.java (message): Made transient.
3283         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3284         * java/lang/Throwable.java (stackTrace): Made transient.
3285         * java/net/InetAddress.java: Made Serializable.
3286         * java/security/KeyPair.java: Made Serializable.
3287         * java/security/Provider.java: Replaced with Classpath version that
3288         implements serialization and proper methods.
3289         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3290         (limits): Renamed to choiceLimits.
3292 2000-06-24  Tom Tromey  <tromey@cygnus.com>
3294         * java/lang/natDouble.cc (parseDouble): Renamed from
3295         doubleValueOf.
3296         * java/lang/Double.java (parseDouble): Renamed from
3297         doubleValueOf.  Now public.
3299 2000-06-23  Andrew Haley  <aph@cygnus.com>
3301         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3302         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3304 2000-06-23  Tom Tromey  <tromey@cygnus.com>
3306         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3307         * java/lang/natDouble.cc: Always include <alloca.h>.
3308         Fix for PR libgcj/267.
3310 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
3312         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3313         comply with classpath VM spec.
3314         (add(Group)): Rename to addGroup().
3315         * java/lang/Thread.java (Thread): Use addThread().
3316         * java/lang/natThread.cc (finish_): Use removeThread().
3318 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
3320         * java/lang/ThreadGroup.java: Merged with classpath.
3321         * prims.cc (_Jv_RunMain): Don't use `main_group'.
3322         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3323         argument.
3324         * java/lang/Thread.java (Thread): Bootstrap initial thread from 
3325         ThreadGroup.root if Thread.currentThread is null. Honour the 
3326         ThreadGroup's max priority setting.
3328 2000-06-18  Tom Tromey  <tromey@cygnus.com>
3330         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
3331         returned class.  For PR gcj/260.
3333 2000-06-16  Tom Tromey  <tromey@cygnus.com>
3335         Fix for PR libgcj/261:
3336         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3337         argument.
3338         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3339         argument.  (This is a patch from long ago that somehow went
3340         missing.)
3342 2000-06-15  Tom Tromey  <tromey@cygnus.com>
3344         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3345         (read): Use it.
3346         (write): Likewise.
3348 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
3350         Fix for PR java.lang/258:
3351         * prims.cc (_Jv_PrimClass): Set state of primitive class to 
3352         JV_STATE_DONE, to prevent accidental initialization.
3353         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call 
3354         _Jv_InterfaceAssignableFrom if target is an interface and source is an
3355         interface or an abstract class. Remove redundant initializeClass calls. 
3356         Remove duplicate if_idt test.
3357         (_Jv_InterfaceAssignableFrom): New function.
3358         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3360 2000-05-31  Tom Tromey  <tromey@cygnus.com>
3362         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3363         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3364         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3365         (NUM_OBJECT_METHODS): New define.
3366         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3367         `array_vtable' parameter.  Added assertion.
3368         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3369         parameter.
3371 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
3373         * gcj/cni.h: Include <string.h>.
3374         * defineclass.cc: Include <alloca.h>.
3375         * interpret.cc: Ditto.
3376         * gij.cc: Include <stdlib.h>.
3378 2000-05-30  Tom Tromey  <tromey@cygnus.com>
3380         * include/name-finder.h: Include <sys/wait.h>.
3381         (_Jv_name_finder::pid): Now of type `pid_t'.
3382         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3383         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3384         `proc.waitFor()'.
3386 2000-05-24  Warren Levy  <warrenl@cygnus.com>
3388         * java/io/ObjectOutputStream.java (writeObject): Use component type
3389         when writing arrays.
3390         Fixed typo.
3392 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
3394         Fix for PR libgcj/226:
3395         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3396         since this is an installed header.
3397         
3398         Fix for PR libgcj/228:
3399         * java/util/zip/ZipFile (getInputStream): Create inflater with 
3400         nowrapper option.
3401         
3402         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3403         with DataFormatException.       
3405 2000-05-20  Tom Tromey  <tromey@cygnus.com>
3407         * Makefile.in: Rebuilt.
3408         * Makefile.am (hack1): Removed.
3409         (awto_files): Likewise.
3410         (libgcjawt_la_SOURCES): Likewise.
3411         (EXTRA_libgcjawt_la_SOURCES): Likewise.
3412         (libgcjawt_la_DEPENDENCIES): Likewise.
3413         (libgcjawt_la_LIBADD): Likewise.
3414         (libgcjawt_la_LDFLAGS): Likewise.
3415         (libgcjawt_la_LINK): Likewise.
3416         ($(awt_java_source_files:.java=.class)): Likewise.
3417         (libgcj.zip): Don't depend on AWT files.
3418         (MOSTLYCLEANFILES): Don't include AWT files.
3419         ($(awto_files)): Removed.
3420         (nat_headers): Removed AWT files.
3421         (cond_awt_java_source_files): Removed.
3422         (ordinary_java_source_files): Added awt_java_source_files.
3423         * libgcj.spec.in (*lib): Removed -lgcjawt.
3424         * configure: Rebuilt.
3425         * configure.in: Removed --enable-java-awt option.
3427 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
3429         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3430         (ZipEntry): Copy the `name' field.
3431         (clone): Implement JDK1.2 method.
3432         (setCompressedSize): ditto.
3433         (hashCode): ditto.
3435 2000-05-19  Tom Tromey  <tromey@cygnus.com>
3437         * java/io/BufferedWriter.java: Merged with Classpath.
3438         * java/io/BufferedOutputStream.java: Merged with Classpath.
3440 2000-05-16  Andrew Haley  <aph@cygnus.com>
3442         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3443         build_ia64_frame_state.
3444         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3445         defintion in gcc.
3447 2000-05-15  Warren Levy  <warrenl@cygnus.com>
3449         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3450         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3451         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3452         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3453         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3454         * gnu/gcj/beans/editors/FontEditor.java: Removed.
3455         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3456         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3457         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3458         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3459         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3460         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3461         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3462         * gnu/gcj/beans/editors/StringEditor.java: Removed.
3463         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3464         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3465         * gnu/gcj/io/NullOutputStream.java: Removed.
3466         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3467         * gnu/gcj/lang/ArrayHelper.java: Removed.
3468         * gnu/gcj/lang/ClassHelper.java: Removed.
3469         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3471         * gnu/java/beans/BeanInfoEmbryo.java: New file.
3472         * gnu/java/beans/EmptyBeanInfo.java: New file.
3473         * gnu/java/beans/ExplicitBeanInfo.java: New file.
3474         * gnu/java/beans/IntrospectionIncubator.java: New file.
3475         * gnu/java/beans/editors/ColorEditor.java: New file.
3476         * gnu/java/beans/editors/FontEditor.java: New file.
3477         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3478         * gnu/java/beans/editors/NativeByteEditor.java: New file.
3479         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3480         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3481         * gnu/java/beans/editors/NativeIntEditor.java: New file.
3482         * gnu/java/beans/editors/NativeLongEditor.java: New file.
3483         * gnu/java/beans/editors/NativeShortEditor.java: New file.
3484         * gnu/java/beans/editors/StringEditor.java: New file.
3485         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3486         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3487         * gnu/java/io/NullOutputStream.java: New file.
3488         * gnu/java/io/ObjectIdentityWrapper.java: New file.
3489         * gnu/java/lang/ArrayHelper.java: New file.
3490         * gnu/java/lang/ClassHelper.java: New file.
3491         * gnu/java/lang/reflect/TypeSignature.java: New file.
3493         * Makefile.am: Updated for moving Classpath files from gnu/gcj
3494         namespace back to the original Classpath gnu/java namespace.
3495         * Makefile.in: Rebuilt.
3497         * java/beans/Beans.java: Namespace change.
3498         * java/beans/EventSetDescriptor.java: Namespace change.
3499         * java/beans/Introspector.java: Namespace change.
3500         * java/beans/PropertyEditorManager.java: Namespace change.
3501         * java/io/ObjectInputStream.java: Namespace change.
3502         * java/io/ObjectOutputStream.java: Namespace change.
3503         * java/io/ObjectStreamClass.java: Namespace change.
3504         * java/io/ObjectStreamField.java: Namespace change.
3506 2000-04-21  Warren Levy  <warrenl@cygnus.com>
3508         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3509         now that compiler patch is available.
3510         Removed unneeded System.loadLibrary.
3511         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3512         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3514 2000-04-19  Andrew Haley  <aph@cygnus.com>
3516         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3517         and target classes have been initialized.
3519 2000-04-19  Andrew Haley  <aph@cygnus.com>
3521         * java/lang/String.java: implement Serializable, Comparable.
3522         (compareTo (Object)): New method.
3524 2000-04-19  Warren Levy  <warrenl@cygnus.com>
3526         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3527         instead of getField to retrieve non-public field.
3528         (getSerialPersistantFields): Ditto.
3530 2000-04-18  Warren Levy  <warrenl@cygnus.com>
3532         * mauve-libgcj: Turned off object serialization tests temporarily
3533         due to compiler error.
3535 2000-04-17  Warren Levy  <warrenl@cygnus.com>
3537         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3538         to avoid build problem.
3539         (DEBUGln): Ditto.
3540         * mauve-libgcj: Turned on object serialization tests.
3542 2000-04-17  Tom Tromey  <tromey@cygnus.com>
3544         * libgcj.spec.in (*lib): Added -lgcjawt.
3546 2000-04-17  Andrew Haley  <aph@cygnus.com>
3548         * Makefile.am: Add new files: 
3549         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3550         gnu/gcj/io/shs.cc.
3551         * Makefile.in: Rebuilt.
3553         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3554         interface that has no implementations.
3555         Check for an attempt to assign an abstract class to an interface.
3557         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3558         if we fail to find MessageDigest.getInstance ("SHA").
3560         * gnu/gcj/io/SimpleSHSStream.java: New file.
3561         * gnu/gcj/io/natSimpleSHSStream.java: New file.
3562         * gnu/gcj/io/shs.cc: New file.
3563         * gnu/gcj/io/shs.h: new file.
3565         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3566         serializable.
3568         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3569         punctuation from the classname of an array element.
3571         * gcj/javaprims.h: Add SimpleDigestStream.
3572         
3573 2000-04-17  Andrew Haley  <aph@cygnus.com>
3575         * java/lang/natClass.cc (getPrivateField): Make recursive calls
3576         to getPrivateField for superclasses.
3578 2000-04-14  Andrew Haley  <aph@cygnus.com>
3580         * Makefile.am: Add new files:
3581         java/io/ObjectOutputStream$PutField.h,
3582         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3583         java/io/natObjectOutputStream.cc
3584         * Makefile.in: Rebuilt.
3585         * gcj/Makefile.in: Rebuilt.
3586         * include/Makefile.in: Rebuilt.
3587         * java/lang/Class.h (getPrivateField): New method.
3588         (getPrivateMethod): Ditto.
3589         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3590         and java::io::ObjectStreamClass our friends.
3591         * java/lang/natClass.cc (getPrivateField): New method.
3592         (getPrivateMethod): Ditto.
3593         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3594         * gcj/javaprims.h: Add serialization classes.   
3595         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3596         (setByteField): Ditto.
3597         (setCharField): Ditto.
3598         (setDoubleField): Ditto.
3599         (setFloatField): Ditto.
3600         (setIntField): Ditto.
3601         (setLongField): Ditto.
3602         (setShortField): Ditto.
3603         (setObjectField): Ditto.
3604         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3605         Java.
3606         (getByteField): Ditto.
3607         (getCharField): Ditto.
3608         (getDoubleField): Ditto.
3609         (getFloatField): Ditto.
3610         (getIntField): Ditto.
3611         (getLongField): Ditto.
3612         (getShortField): Ditto.
3613         (getObjectField): Ditto.
3614         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3615         Java.
3616         (getSerialPersistantFields): Ditto.
3617         (getDefinedSUID): Ditto.
3618         * java/io/natObjectOutputStream.cc: New file.
3619         * java/io/natObjectInputStream.cc: New file.
3620         
3621 2000-04-13  Warren Levy  <warrenl@cygnus.com>
3623         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3624         problems.  Revert to previous version to reproduce and when fixed.
3626 2000-04-13  Warren Levy  <warrenl@cygnus.com>
3628         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3629         * gnu/gcj/io/NullOutputStream.java: New file.
3630         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3631         * java/io/BlockDataException.java: New file.
3632         * java/io/Externalizable.java: New file.
3633         * java/io/InvalidClassException.java: New file.
3634         * java/io/InvalidObjectException.java: New file.
3635         * java/io/NotActiveException.java: New file.
3636         * java/io/NotSerializableException.java: New file.
3637         * java/io/ObjectInput.java: New file.
3638         * java/io/ObjectInputStream.java: New file.
3639         * java/io/ObjectInputValidation.java: New file.
3640         * java/io/ObjectOutput.java: New file.
3641         * java/io/ObjectOutputStream.java: New file.
3642         * java/io/ObjectStreamClass.java: New file.
3643         * java/io/ObjectStreamConstants.java: New file.
3644         * java/io/ObjectStreamField.java: New file.
3645         * java/io/Replaceable.java: New file.
3646         * java/io/Resolvable.java: New file.
3647         * java/io/SerializablePermission.java: New file.
3648         * java/io/WriteAbortedException.java: New file.
3649         * java/security/BasicPermission.java: New file.
3650         * java/security/DigestOutputStream.java: New file.
3651         * java/security/Guard.java: New file.
3652         * java/security/Permission.java: New file.
3653         * java/security/PermissionCollection.java: New file.
3654         * Makefile.am: Added above files.
3655         * Makefile.in: Rebuilt.
3657         * java/beans/Beans.java (instantiate): Activated serialization code.
3658         * java/lang/SecurityManager.java (checkPermission): New method.
3660 2000-04-12  Warren Levy  <warrenl@cygnus.com>
3662         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3663         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3664         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3665         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3666         * gnu/gcj/beans/editors/ColorEditor.java: New file.
3667         * gnu/gcj/beans/editors/FontEditor.java: New file.
3668         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3669         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3670         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3671         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3672         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3673         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3674         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3675         * gnu/gcj/beans/editors/StringEditor.java: New file.
3676         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3677         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3678         * gnu/gcj/lang/ArrayHelper.java: New file.
3679         * gnu/gcj/lang/ClassHelper.java: New file.
3680         * java/beans/BeanDescriptor.java: New file.
3681         * java/beans/BeanInfo.java: New file.
3682         * java/beans/Beans.java: New file.
3683         * java/beans/Customizer.java: New file.
3684         * java/beans/DesignMode.java: New file.
3685         * java/beans/EventSetDescriptor.java: New file.
3686         * java/beans/FeatureDescriptor.java: New file.
3687         * java/beans/IndexedPropertyDescriptor.java: New file.
3688         * java/beans/IntrospectionException.java: New file.
3689         * java/beans/Introspector.java: New file.
3690         * java/beans/MethodDescriptor.java: New file.
3691         * java/beans/ParameterDescriptor.java: New file.
3692         * java/beans/PropertyChangeEvent.java: New file.
3693         * java/beans/PropertyChangeListener.java: New file.
3694         * java/beans/PropertyChangeSupport.java: New file.
3695         * java/beans/PropertyDescriptor.java: New file.
3696         * java/beans/PropertyEditor.java: New file.
3697         * java/beans/PropertyEditorManager.java: New file.
3698         * java/beans/PropertyEditorSupport.java: New file.
3699         * java/beans/PropertyVetoException.java: New file.
3700         * java/beans/SimpleBeanInfo.java: New file.
3701         * java/beans/VetoableChangeListener.java: New file.
3702         * java/beans/VetoableChangeSupport.java: New file.
3703         * java/beans/Visibility.java: New file.
3704         * java/beans/beancontext/BeanContext.java: New file.
3705         * java/beans/beancontext/BeanContextChild.java: New file.
3706         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3707         * java/beans/beancontext/BeanContextChildSupport.java: New file.
3708         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3709         * java/beans/beancontext/BeanContextEvent.java: New file.
3710         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3711         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3712         * java/beans/beancontext/BeanContextProxy.java: New file.
3713         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3714         New file.
3715         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3716         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3717         New file.
3718         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3719         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3720         New file.
3721         * java/beans/beancontext/BeanContextServices.java: New file.
3722         * java/beans/beancontext/BeanContextServicesListener.java: New file.
3723         * java/util/AbstractCollection.java: New file.
3724         * java/util/AbstractList.java: New file.
3725         * java/util/Arrays.java: New file.
3726         * Makefile.am: Added above files.
3727         * Makefile.in: Rebuilt.
3729 2000-04-11  Warren Levy  <warrenl@cygnus.com>
3731         * java/awt/AWTError.java: New file.
3732         * java/awt/AWTEvent.java: New file.
3733         * java/awt/AWTException.java: New file.
3734         * java/awt/ActiveEvent.java: New file.
3735         * java/awt/Adjustable.java: New file.
3736         * java/awt/BorderLayout.java: New file.
3737         * java/awt/Color.java: New file.
3738         * java/awt/Component.java: New file.
3739         * java/awt/Container.java: New file.
3740         * java/awt/Dimension.java: New file.
3741         * java/awt/Event.java: New file.
3742         * java/awt/Font.java: New file.
3743         * java/awt/Frame.java: New file.
3744         * java/awt/Graphics.java: New file.
3745         * java/awt/IllegalComponentStateException.java: New file.
3746         * java/awt/Image.java: New file.
3747         * java/awt/ItemSelectable.java: New file.
3748         * java/awt/LayoutManager.java: New file.
3749         * java/awt/LayoutManager2.java: New file.
3750         * java/awt/Menu.java: New file.
3751         * java/awt/MenuBar.java: New file.
3752         * java/awt/MenuComponent.java: New file.
3753         * java/awt/MenuContainer.java: New file.
3754         * java/awt/MenuItem.java: New file.
3755         * java/awt/Paint.java: New file.
3756         * java/awt/PaintContext.java: New file.
3757         * java/awt/Point.java: New file.
3758         * java/awt/Rectangle.java: New file.
3759         * java/awt/Shape.java: New file.
3760         * java/awt/TextArea.java: New file.
3761         * java/awt/TextComponent.java: New file.
3762         * java/awt/Toolkit.java: New file.
3763         * java/awt/Transparency.java: New file.
3764         * java/awt/Window.java: New file.
3765         * java/awt/natToolkit.cc: New file.
3766         * java/awt/event/AWTEventListener.java: New file.
3767         * java/awt/event/ActionEvent.java: New file.
3768         * java/awt/event/ActionListener.java: New file.
3769         * java/awt/event/AdjustmentEvent.java: New file.
3770         * java/awt/event/AdjustmentListener.java: New file.
3771         * java/awt/event/ComponentAdapter.java: New file.
3772         * java/awt/event/ComponentEvent.java: New file.
3773         * java/awt/event/ComponentListener.java: New file.
3774         * java/awt/event/ContainerAdapter.java: New file.
3775         * java/awt/event/ContainerEvent.java: New file.
3776         * java/awt/event/ContainerListener.java: New file.
3777         * java/awt/event/FocusAdapter.java: New file.
3778         * java/awt/event/FocusEvent.java: New file.
3779         * java/awt/event/FocusListener.java: New file.
3780         * java/awt/event/InputEvent.java: New file.
3781         * java/awt/event/InputMethodEvent.java: New file.
3782         * java/awt/event/InputMethodListener.java: New file.
3783         * java/awt/event/InvocationEvent.java: New file.
3784         * java/awt/event/ItemEvent.java: New file.
3785         * java/awt/event/ItemListener.java: New file.
3786         * java/awt/event/KeyAdapter.java: New file.
3787         * java/awt/event/KeyEvent.java: New file.
3788         * java/awt/event/KeyListener.java: New file.
3789         * java/awt/event/MouseAdapter.java: New file.
3790         * java/awt/event/MouseEvent.java: New file.
3791         * java/awt/event/MouseListener.java: New file.
3792         * java/awt/event/MouseMotionAdapter.java: New file.
3793         * java/awt/event/MouseMotionListener.java: New file.
3794         * java/awt/event/PaintEvent.java: New file.
3795         * java/awt/event/TextEvent.java: New file.
3796         * java/awt/event/TextListener.java: New file.
3797         * java/awt/event/WindowAdapter.java: New file.
3798         * java/awt/event/WindowEvent.java: New file.
3799         * java/awt/event/WindowListener.java: New file.
3800         * java/awt/geom/Dimension2D.java: New file.
3801         * java/awt/geom/Point2D.java: New file.
3802         * java/awt/peer/ComponentPeer.java: New file.
3803         * java/awt/peer/ContainerPeer.java: New file.
3804         * java/awt/peer/FramePeer.java: New file.
3805         * java/awt/peer/WindowPeer.java: New file.
3806         * java/util/Collection.java: New file.
3807         * java/util/Comparator.java: New file.
3808         * java/util/Iterator.java: New file.
3809         * java/util/List.java: New file.
3810         * java/util/ListIterator.java: New file.
3811         * Makefile.am: Added above files.
3812         * Makefile.in: Rebuilt.
3814 2000-04-10  Warren Levy  <warrenl@cygnus.com>
3816         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3817         * java/lang/FirstThread.java: Ditto.
3818         * java/lang/StringBuffer.java: Ditto.
3819         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3821         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3822         Special case handled in java.math.BigInteger.
3823         * java/math/BigInteger.java (divide): Handle the special case when
3824         dividing by 1 and the high bit of the dividend is set.
3825         (setShiftRight): Handle case when count == 0.
3827 2000-04-05  Andrew Haley  <aph@cygnus.com>
3829         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3830         special case.
3832 2000-04-05  Andrew Haley  <aph@cygnus.com>
3834         * sysdep/ia64.c (rse_address_add): Delete.
3835         (IS_NaT_COLLECTION_ADDR): Delete.
3836         (ia64_backtrace_helper): check for null unwind_info.
3837         
3838         * sysdep/ia64-frame.h: add calc_caller_bsp.
3840         * java/lang/natThrowable.cc (printRawStackTrace): Flush
3841         PrintWriter.
3843         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3844         (_Jv_remI): Likewise.
3845         (_Jv_divJ): Likewise.
3846         (_Jv_remJ): Likewise.
3847         
3848         * interpret.cc (continue1): Use divide subroutines to guarantee
3849         correct Java standard behaviour.
3850         Floating-point division should not abort; make it so.
3852 2000-03-29  Tom Tromey  <tromey@cygnus.com>
3854         * configure: Rebuilt.
3855         * configure.in: Test against `libgcj_sjlj', not
3856         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
3857         to be set even when using sjlj.
3859 2000-03-24  Andrew Haley  <aph@cygnus.com>
3861         * Makefile.am: Add file addr2name.awk.
3862         * Makefile.in: Rebuilt.
3863         * addr2name.awk: New file.
3864         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3865         lookups on ia64.
3866         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3867         blank line.
3868         
3869 2000-03-22  Andrew Haley  <aph@cygnus.com>
3871         * configure.host: Add -funwind-tables for IA64.
3872         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3873         * Makefile.in: Rebuilt.
3874         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3875         * sysdep/ia64.c: New file.
3876         * sysdep/ia64-frame.h: New file.
3877         * configure.in: Add sysdep/ia64.c for ia64.
3878         * configure: Rebuilt.
3879         
3880 2000-03-17  Andrew Haley  <aph@cygnus.com>
3882         * java/lang/natString.cc: Remove `register' keyword.
3883         interpret.cc: ditto.
3885 2000-03-16  Andrew Haley  <aph@cygnus.com>
3887         * configure.host (ia64): Enable interpreter.
3889 2000-03-14  Hans Boehm  <boehm@acm.org>
3891         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3893 2000-03-14  Andrew Haley  <aph@cygnus.com>
3895         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3896         `_exception'.
3898 2000-03-10  Andrew Haley  <aph@cygnus.com>
3900         * java/lang/ieeefp.h: Import latest version from fdlibm.
3902 2000-03-14  Andrew Haley  <aph@cygnus.com>
3904         * prims.cc (_Jv_ThrowSignal): New function.
3905         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3906         (catch_fpe): Ditto.
3907         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3908         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3909         * include/ppc-signal.h: New file.
3911 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
3913         * java/lang/Thread.java: Declare `data' as Object, not RawData.
3914         * java/lang/natThread.java (initialize_native): Cast `data' to
3915         jobject.
3916         * gnu/gcj/RawData.java: Clarify documentation.
3918         From Gregory R. Warnes <warnes@biostat.washington.edu>:
3919         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
3920         `jarFile', not `jarFileURL'.
3922 2000-05-15  Andrew Haley  <aph@cygnus.com>
3924         * include/ppc-signal.h: New file.
3926 2000-05-11  Tom Tromey  <tromey@cygnus.com>
3928         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
3929         file headers, don't include `size' in the skip call.
3931 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
3933         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
3934         Avoid arrayCopy() call where possible. Update `count' _after_ calling
3935         arrayCopy().
3936         (replace): Reimplemented. Fix javadoc.
3937         (reverse): Call ensureCapacity_unsynchronized().
3938         (StringBuffer (String)): Use DEFAULT_CAPACITY.
3940         (replace): Calculate length for arraycopy() correctly.
3941         
3942 2000-05-09  Tom Tromey  <tromey@cygnus.com>
3944         * java/lang/StringBuffer.java (toString): Don't mark buffer as
3945         shared.
3946         (insert(int,char[],int,int): New method.
3947         (delete): New method from Classpath.
3948         (deleteCharAt): Likewise.
3949         (substring): Likewise.
3950         (shared): No longer private.
3951         Added JavaDoc comments from Classpath.
3952         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
3953         shared.
3955 2000-05-07  Tom Tromey  <tromey@cygnus.com>
3957         * Makefile.in: Rebuilt.
3958         * Makefile.am (LIBLINK): New macro.
3959         (libgcj_la_LINK): Use it.
3960         (libgcjawt_la_LINK): Likewise.
3962 2000-05-06  Tom Tromey  <tromey@cygnus.com>
3964         * Makefile.in: Rebuilt.
3965         * Makefile.am (libgcj.zip): Don't pass -L to javac.
3967 2000-05-05  Tom Tromey  <tromey@cygnus.com>
3969         Fix for PR libgcj/220:
3970         * Makefile.in: Rebuilt.
3971         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
3972         (jv_convert_LDFLAGS): Likewise.
3973         (libgcj_la_LDFLAGS): Likewise.
3974         (GCJLINK): New macro.
3975         (jv_convert_LINK): Use it.
3976         (gij_LINK): Likewise.
3977         (libgcj_la_LINK): New macro.
3978         (libgcjawt_la_LINK): Likewise.
3980 2000-05-04  Tom Tromey  <tromey@cygnus.com>
3982         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
3983         field.
3984         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
3985         `0x0008'.
3986         Include Modifier.h.
3988 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
3990         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
3991         (_Jv_IsAssignableFrom): Ditto.
3992         (_Jv_IsInstanceOf): Ditto.
3993         (_Jv_CheckCast): Ditto.
3994         (_Jv_CheckArrayStore): Ditto.
3995         * java/lang/Class.h (_Jv_InitClass): Ditto.     
3996         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
3997         not `0'.
3998         (notify): Ditto.
3999         (notifyAll): Ditto.
4000         (wait): Ditto.
4001         (_Jv_MonitorExit): Ditto.
4002         * boehm.cc (_Jv_MarkObj): Ditto.
4003         (_Jv_MarkObj): Ditto.
4004         (_Jv_MarkArray): Ditto.
4005         * prims.cc (_Jv_AllocObject): Ditto.
4006         (_Jv_NewObjectArray): Ditto.
4007         (_Jv_NewPrimArray): Ditto.
4008         (_Jv_Malloc): Ditto.
4009         (_Jv_Realloc): Ditto.
4010         (_Jv_MallocUnchecked): Ditto.
4011         (_Jv_divI): Ditto.
4012         (_Jv_remI): Ditto.
4013         (_Jv_divJ): Ditto.
4014         (_Jv_remJ): Ditto.
4016 2000-05-04  Tom Tromey  <tromey@cygnus.com>
4018         * java/util/Locale.java (Locale): Don't explicitly check for
4019         null.
4020         * java/util/Hashtable.java (containsKey): Don't explicitly check
4021         for null.
4022         (get): Likewise.
4023         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4024         null.
4025         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4026         for null.
4027         * java/text/StringCharacterIterator.java
4028         (StringCharacterIterator): Don't check for null.
4029         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4030         for null pointer.
4031         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4032         check for null pointer.
4033         (leaveGroup): Likewise.
4034         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4035         comment.
4036         (setData): Likewise.
4037         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4038         for `p==null'.
4040 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
4042         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4043         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4044         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4045         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4046         -rpath for in-gcc builds.
4047         * Makefile.in: Rebuilt.
4049 2000-04-28  Tom Tromey  <tromey@cygnus.com>
4051         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4052         Fix for PR gcj/218.
4054 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
4056         * libjava/java/lang/String.java (toString): Remove `final' hack.
4058 2000-04-05  Tom Tromey  <tromey@cygnus.com>
4060         Runtime support for PR gcj/2:
4061         * prims.cc (_Jv_ThrowNullPointerException): New function.
4062         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4064 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
4066         * prims.cc (_Jv_NewObjectArray): Fix typo.
4068 2000-04-26  Tom Tromey  <tromey@cygnus.com>
4070         * Makefile.in: Rebuilt.
4071         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4073 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
4075         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4076         calling main.
4078 2000-04-22  Anthony Green  <green@cygnus.com>
4080         * include/jvm.h (__builtin_expect): Define as unused for now.
4081         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4082         (notify): Ditto.
4083         (notifyAll): Ditto.
4084         (wait): Ditto.
4085         (_Jv_MonitorExit): Ditto.
4086         * boehm.cc (_Jv_MarkObj): Ditto.
4087         (_Jv_MarkObj): Ditto.
4088         (_Jv_MarkArray): Ditto.
4089         (_Jv_AllocBytes): Ditto.
4090         * prims.cc (_Jv_AllocObject): Ditto.
4091         (_Jv_NewObjectArray): Ditto.
4092         (_Jv_NewPrimArray): Ditto.
4093         (_Jv_Malloc): Ditto.
4094         (_Jv_Realloc): Ditto.
4095         (_Jv_MallocUnchecked): Ditto.
4096         (_Jv_divI): Ditto.
4097         (_Jv_remI): Ditto.
4098         (_Jv_divJ): Ditto.
4099         (_Jv_remJ): Ditto.
4101         * include/Makefile.in: Rebuilt.
4102         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4104 2000-04-21  Tom Tromey  <tromey@cygnus.com>
4106         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4107         Yet another new version from Classpath.
4109         Fix for PR libgcj/15:
4110         * java/util/natGregorianCalendar.cc (_REENTRANT,
4111         _POSIX_PTHREAD_SEMANTICS): Don't define.
4112         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4113         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4114         Don't define.
4115         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4116         define.
4117         * configure: Rebuilt.
4118         * configure.in: If using POSIX threads, define _REENTRANT if
4119         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
4120         GETHOSTBYNAME_R_NEEDS_REENTRANT.
4122         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4123         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4124         version from Classpath.
4126         Fix for PR libgcj/213:
4127         * Makefile.in: Rebuilt.
4128         * Makefile.am (gij_SOURCES): Added gij.cc.
4129         (EXTRA_gij_SOURCES): Removed.
4130         (gij_LDADD): Removed gij.lo.
4131         (gij_DEPENDENCIES): Likewise.
4132         ($(gij_OBJECTS)): Depend on nat_headers.
4134         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4135         `setURL', not `url.set'.
4137 2000-04-20  Tom Tromey  <tromey@cygnus.com>
4139         Fix for PR java.io/204:
4140         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4141         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4142         from Classpath.
4144         Fix for PR libgcj/212:
4145         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4146         * include/jvm.h (_Jv_word, _Jv_word2): Define.
4147         * java/lang/Class.h (_Jv_word): Declare.
4149         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4151 2000-04-19  Tom Tromey  <tromey@cygnus.com>
4153         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4154         doesn't have a loader.
4156 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
4158         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4159         MAYBE_MARK to ptr_t, for compatibility with new GC version.
4161 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
4163         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4164         libgcj/202.
4165         (available): Initialize `where' to prevent bogus compiler warning.
4167 2000-04-12  Tom Tromey  <tromey@cygnus.com>
4169         * java/lang/natString.cc (intern): Temporarily disable finalizer
4170         registration.
4172         * java/lang/natString.cc (unintern): Added `obj' argument.
4173         (intern): Register finalizer for string.
4174         * java/lang/String.java (unintern): Now static; added obj
4175         argument.
4177 2000-04-11  Tom Tromey  <tromey@cygnus.com>
4179         * java/util/Vector.java (VectorEnumeration): Now `final'.
4180         * java/util/Hashtable.java (HashtableEntry): Now `final'.
4181         (HashtableEnumeration): Likewise.
4182         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4183         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4185 2000-04-10  Warren Levy  <warrenl@cygnus.com>
4187         * java/io/ObjectStreamException.java: New file.
4188         * java/io/OptionalDataException.java: New file.
4189         * java/io/StreamCorruptedException.java: New file.
4190         * java/math/BigDecimal.java: New file.
4191         * java/sql/CallableStatement.java: New file.
4192         * java/sql/Connection.java: New file.
4193         * java/sql/DataTruncation.java: New file.
4194         * java/sql/DatabaseMetaData.java: New file.
4195         * java/sql/Date.java: New file.
4196         * java/sql/Driver.java: New file.
4197         * java/sql/DriverManager.java: New file.
4198         * java/sql/DriverPropertyInfo.java: New file.
4199         * java/sql/PreparedStatement.java: New file.
4200         * java/sql/ResultSet.java: New file.
4201         * java/sql/ResultSetMetaData.java: New file.
4202         * java/sql/SQLException.java: New file.
4203         * java/sql/SQLWarning.java: New file.
4204         * java/sql/Statement.java: New file.
4205         * java/sql/Time.java: New file.
4206         * java/sql/Timestamp.java: New file.
4207         * java/sql/Types.java: New file.
4208         * Makefile.am: Added above new files.
4209         * Makefile.in: Rebuilt.
4211         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4212         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4213         DatagramSocket constructor instead of null.
4215 2000-04-08  Anthony Green  <green@cygnus.com>
4217         * include/posix-threads.h (_Jv_MutexUnlock): Replace
4218         _JV_NOT_OWNER.
4219         
4220 2000-04-08  Anthony Green  <green@cygnus.com>
4222         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4223         (_Jv_MutexUnlock): Ditto.
4224         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4225         (_Jv_MutexUnlock): Ditto.
4227 2000-04-08  Anthony Green  <green@cygnus.com>
4229         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4230         (ensureCapacity_unsynchronized): New private method.
4231         (append): Use ensureCapacity_unsynchronized.
4233 2000-04-08  Tom Tromey  <tromey@cygnus.com>
4235         * Makefile.in: Rebuilt.
4236         * Makefile.am (awt_java_source_files): Added new files.
4237         * java/awt/IllegalComponentStateException.java: New file.
4238         * java/awt/ItemSelectable.java: New file.
4239         * java/awt/event/WindowEvent.java: Finished.
4240         * java/awt/event/TextEvent.java: Finished.
4241         * java/awt/event/ContainerEvent.java: New file.
4242         * java/awt/Component.java (getX, getY): New methods.
4243         * java/awt/event/PaintEvent.java: New file.
4244         * java/awt/event/MouseEvent.java: New file.
4245         * java/awt/ActiveEvent.java: New file.
4246         * java/awt/event/KeyEvent.java: Finished.
4247         * java/awt/event/ItemEvent.java: New file.
4248         * java/awt/Adjustable.java: New file.
4249         * java/awt/event/InputMethodEvent.java: New file.
4250         * java/awt/event/InputEvent.java: Finished.
4251         * java/awt/event/FocusEvent.java: New file.
4252         * java/awt/event/MouseMotionAdapter.java: New file.
4253         * java/awt/event/MouseAdapter.java: New file.
4254         * java/awt/event/KeyAdapter.java: New file.
4255         * java/awt/event/FocusAdapter.java: New file.
4256         * java/awt/event/ContainerAdapter.java: New file.
4257         * java/awt/event/ComponentEvent.java: Finished.
4258         * java/awt/event/AdjustmentEvent.java: New file.
4259         * java/awt/event/ComponentAdapter.java: New file.
4260         * java/awt/event/ActionEvent.java: Finished.
4261         * java/awt/event/MouseMotionListener.java: New file.
4262         * java/awt/event/MouseListener.java: New file.
4263         * java/awt/event/ItemListener.java: New file.
4264         * java/awt/event/InputMethodListener.java: New file.
4265         * java/awt/event/ContainerListener.java: New file.
4266         * java/awt/event/FocusListener.java: New file.
4267         * java/awt/event/ComponentListener.java: New file.
4268         * java/awt/event/AWTEventListener.java: New file.
4269         * java/awt/event/AdjustmentListener.java: New file.
4271 2000-04-08  Anthony Green  <green@cygnus.com>
4273         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4274         check when we have to.
4276         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4277         x) as `inline'.
4279         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
4280         one method call.
4282         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4283         inline hasMoreElements.
4285 2000-04-05  Tom Tromey  <tromey@cygnus.com>
4287         * configure: Rebuilt.
4288         * configure.in: Recognize --enable-java-awt.
4289         (AWT): New conditional.
4290         * Makefile.in: Rebuilt.
4291         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4292         requested.
4293         (libgcjawt_la_SOURCES): New macro.
4294         (EXTRA_libgcjawt_la_SOURCES): Likewise.
4295         (libgcjawt_la_DEPENDENCIES): Likewise.
4296         (libgcjawt_la_LIBADD): Likewise.
4297         (libgcjawt_la_LDFLAGS): Likewise.
4298         (libgcj.zip): Depend on cond_java_awt_source_files
4299         (cond_awt_java_source_files): New macro.
4300         (MOSTLYCLEANFILES): Added awto_files.
4301         (awto_files): New macro.  Use where javao_files used.
4302         (nat_headers): Use cond_awt_java_source_files.
4304 2000-04-04  Tom Tromey  <tromey@cygnus.com>
4306         * Makefile.in: Rebuilt.
4307         * Makefile.am (awt_java_source_files): Added AWTException.java.
4308         * java/awt/AWTException.java: New file.
4310 2000-04-03  Tom Tromey  <tromey@cygnus.com>
4312         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4313         commentary from Alex.
4315         * Makefile.in: Rebuilt.
4316         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4317         From H.J. Lu.
4319 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
4321         * configure: Rebuilt.
4322         * configure.in: Add --disable-jvmpi.
4323         * include/config.h.in: Rebuilt.
4324         * acconfig.h: Add ENABLE_JVMPI.
4325          
4326         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4327         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4328         (_Jv_JVMPI_Notify_THREAD_END): New define.
4329         (_Jv_JVMPI_Notify_THREAD_END): New define.
4330         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4331         (_Jv_JVMPI_Notify_THREAD_END): Declare.
4332         (_Jv_JVMPI_Notify_THREAD_END): Declare.
4334         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4335         events.
4337         * java/lang/natThread.cc: Include JVMPI headers if necessary.
4338         (finish_): Generate JVMPI thread end events.
4339         (run_): Generate JVMPI thread start events.
4340         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4341         preloaded JNI library.
4342         Include JVMPI headers if necessary.
4343         (run): Generate JVMPI thread start events.
4345         * boehm.cc: Define GC_disable and GC_enable.
4346         (_Jv_DisableGC): New function.
4347         (_Jv_EnableGC): New function.
4348         (disable_gc_mutex): Declare.
4349         * nogc.cc (_Jv_DisableGC): New function.
4350         (_Jv_EnableGC): New function.
4351           
4352         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4353         (_Jv_JVMPI_Interface): Define.
4354         (jvmpiEnableEvent): New function.
4355         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4356           
4357         * include/jvmpi.h: New file.
4359 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
4361         * Makefile.in: New #defines and friends for Thread.h.
4362         * Makefile.am: Ditto.
4363         * posix-threads.cc: (struct starter): Remove `object'.
4364         (_Jv_CondWait): Use interruptable condition variables and new
4365         recursive mutexes. New return codes on interrupt or non-ownership
4366         of mutex.
4367         (_Jv_CondNotify): Ditto.
4368         (_Jv_CondNotifyAll): Ditto.
4369         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4370         the target thread by signaling its wait condition.
4371         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4372         not the starter struct. Initialize wait_mutex and wait_cond.
4373         (_Jv_MutexLock): New recursive mutex implementation. Moved from 
4374         posix-threads.h.
4375         (_Jv_MutexUnlock): Ditto.
4376         (really_start): Set info->data->thread from pthread_self() to work 
4377         around a race condition. Destroy wait_mutex and wait_cond when run()
4378         returns.
4379         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4380         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4381         set.
4382         startable_flag: New private field.
4383         (Thread): Initialize `startable_flag'.
4384         (toString): Check for null thread group.
4385         * java/lang/natThread.cc: (struct natThread): New fields 
4386         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4387         (class locker): Removed.
4388         (initialize_native): Initialize `join_cond' and `join_mutex'.
4389         (interrupt): Now just calls _Jv_ThreadInterrupt().
4390         (join): Simplified. Just wait on the target thread's join condition.
4391         (finish_): Remove join list code. Unset thread group. Signal
4392         potential joiners by notifying the dying threads join_cond.
4393         (start): Check for illegal restarts.
4394         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4395         act appropriatly.
4396         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4397         #defines and #ifdefs.
4398         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4399         `wait_mutex', `next'.
4400         (struct _Jv_ConditionVariable_t): Define as a struct instead of 
4401         directly mapping to pthread_cond_t.
4402         (struct _Jv_Mutex_t): New recursive implementation.
4403         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4404         _Jv_HaveCondDestroy: Never define this for posix-threads.
4405         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4406         (_Jv_CondNotifyAll): Ditto.
4407         (_Jv_MutexLock): Ditto.
4408         (_Jv_MutexUnlock): Ditto.
4409         (_Jv_MutexInit): Changed to reflect new mutex implementation.
4410         (_Jv_MutexDestroy): Ditto.
4411         (_Jv_CondDestroy): Removed.
4412         (_Jv_PthreadGetMutex): Removed.
4413         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an 
4414         error. Add a FIXME about this.
4415         (_Jv_CondNotifyAll): Ditto.
4416         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess 
4417         _JV_NOT_OWNER on other errors. Add FIXME.
4419 2000-03-26  Tom Tromey  <tromey@cygnus.com>
4421         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4422         set, throw it.
4423         (call): Don't throw exception here.
4425 2000-03-26  Tom Tromey  <tromey@cygnus.com>
4427         * java/lang/mprec.h: Use SIZEOF_VOID_P.
4428         * interpret.cc: Use SIZEOF_VOID_P.
4429         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4430         (_Jv_loadLong): Likewise.
4431         (_Jv_storeDouble): Likewise.
4432         * configure: Rebuilt.
4433         * configure.in: Check size of void*.
4435         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4437 2000-03-26  Hans Boehm  <boehm@acm.org>
4439         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4440         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4441         machine.
4442         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4443         __IEEE_LITTLE_ENDIAN appropriately on IA64.
4444         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4445         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4446         case.
4447         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4448         (FFI_RAW_SIZE): Likewise.
4449         (_Jv_InterpMethod::ncode): Use them.
4450         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4451         STORED): Define differently on a 64 bit machine.
4452         (continue1): Use ffi_java_raw_call when appropriate.
4454 2000-03-24  Warren Levy  <warrenl@cygnus.com>
4456         * java/math/BigInteger.java(divide): Handle the special case when
4457         dividing by 1 and the high bit of the dividend is set.
4458         (setShiftRight): Handle case when count == 0.
4460 2000-03-24  Warren Levy  <warrenl@cygnus.com>
4462         * java/awt/Font.java(isBold): Fix syntax error.
4463         (isItalic): ditto.
4464         * java/awt/Frame.java(postEvent): ditto.
4465         * java/awt/Menu.java(postEvent): ditto.
4466         * java/awt/MenuBar.java(postEvent): ditto.
4467         * java/awt/Toolkit.java(init): Included a stub.
4469 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
4471         * java/awt/Event.java: Add all the event type constants.
4472         (Event): Implemented constructors.
4473         (controlDown): Implemented.
4474         (metaDown): Implemented.
4475         (paramString): Stubbed.
4476         (shiftDown): Implemented.
4477         (toString): Implemented.
4478         (translate): Implemented.
4480 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
4482         * java/lang/natClass.cc (isInstance): Initialize `this'.
4483         (isAssignableFrom): Initialize `this' and `klass'.
4484         (_Jv_IsAssignableFrom): If an interface has no idt, it is not 
4485         implemented by any loaded class, so return false.
4486         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), 
4487         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4489 2000-03-19  Warren Levy  <warrenl@cygnus.com>
4491         * java/awt/Color.java: Specified java.io for Serializable.
4492         * java/awt/Toolkit.java: Imported java.net.URL.
4494 2000-03-19  Warren Levy  <warrenl@cygnus.com>
4496         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4498 2000-03-16  Warren Levy  <warrenl@cygnus.com>
4500         * java/awt/Color.java: New file.
4501         * java/awt/Graphics.java: New file.
4502         * java/awt/Image.java: New file.
4503         * java/awt/Paint.java: New file.
4504         * java/awt/PaintContext.java: New file.
4505         * java/awt/Transparency.java: New file.
4506         * java/util/Collection.java: New file.
4507         * java/util/Comparator.java: New file.
4508         * java/util/Iterator.java: New file.
4509         * java/util/List.java: New file.
4510         * java/util/ListIterator.java: New file.
4511         * Makefile.am: Added above new files.
4512         * Makefile.in: Rebuilt.
4514         * java/awt/Font.java (PLAIN): New field.
4515         (BOLD): New field.
4516         (ITALIC): New field.
4517         (ROMAN_BASELINE): New field.
4518         (CENTER_BASELINE): New field.
4519         (HANGING_BASELINE): New field.
4520         (name): New field.
4521         (style): New field.
4522         (size): New field.
4523         (pointSize): New field.
4524         (Font): Implemented constructor.
4525         (isPlain): Implemented method.
4526         (isBold): Implemented method.
4527         (isItalic): Implemented method.
4528         (getName): Implemented method.
4529         (getStyle): Implemented method.
4530         (getSize): Implemented method.
4531         (getSize2D): Implemented method.
4532         (decode): Stubbed.
4533         * java/awt/Frame.java (getFont): Stubbed.
4534         (postEvent): Stubbed.
4535         (remove): Stubbed.
4536         * java/awt/Menu.java (postEvent): Stubbed.
4537         * java/awt/MenuBar.java (getFont): Stubbed.
4538         (postEvent): Stubbed.
4539         * java/awt/Toolkit.java (getImage): Added abstract method.
4541 2000-03-15  Tom Tromey  <tromey@cygnus.com>
4543         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4545         * prims.cc (win32_exception_handler): Reformatted.
4547         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4548         (_Jv_HaveMutexDestroy): Likewise.
4550 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4552         * java/io/natFileDescriptorWin32.cc: New file.
4553         * java/io/natFileWin32.cc: New file.
4554         * java/net/natInetAddress.cc: Added conditional inclusion of
4555         Windows / Winsock headers.
4556         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4557         inclusion of Windows / Winsock headers.
4558         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4559         Windows / Winsock headers.
4560         * include/win32-signal.h: New file.
4561         * include/win32-threads.h: New file.
4562         * win32-threads.cc: New file.
4563         * exception.cc (win32_get_restart_frame): New function.
4564         * prims.cc (win32_exception_handler): New function.
4565         (main_init) Performs Winsock initialisation.
4566         (main_init) Installs exeception handler.
4568 2000-03-14  Tom Tromey  <tromey@cygnus.com>
4570         * jni.cc (mangled_name): Fixed assertion.
4571         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4572         turned assert into actual failure.
4574 2000-03-09  Warren Levy  <warrenl@cygnus.com>
4576         * java/security/Key.java(serialVersionUID): Set to 0 for now.
4577         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4578         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4580 2000-03-09  Warren Levy  <warrenl@cygnus.com>
4582         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4583         * java/security/DigestException.java: New file.
4584         * java/security/GeneralSecurityException.java: New file.
4585         * java/security/InvalidAlgorithmParameterException.java: New file.
4586         * java/security/InvalidKeyException.java: New file.
4587         * java/security/InvalidParameterException.java: New file.
4588         * java/security/Key.java: New file.
4589         * java/security/KeyException.java: New file.
4590         * java/security/KeyPair.java: New file.
4591         * java/security/KeyPairGenerator.java: New file.
4592         * java/security/KeyPairGeneratorSpi.java: New file.
4593         * java/security/NoSuchProviderException.java: New file.
4594         * java/security/PrivateKey.java: New file.
4595         * java/security/Provider.java: New file.
4596         * java/security/PublicKey.java: New file.
4597         * java/security/SecureRandom.java: New file.
4598         * java/security/Security.java: New file.
4599         * java/security/Signature.java: New file.
4600         * java/security/SignatureException.java: New file.
4601         * java/security/interfaces/DSAKey.java: New file.
4602         * java/security/interfaces/DSAParams.java: New file.
4603         * java/security/interfaces/DSAPrivateKey.java: New file.
4604         * java/security/interfaces/DSAPublicKey.java: New file.
4605         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4606         * java/security/interfaces/RSAPrivateKey.java: New file.
4607         * java/security/interfaces/RSAPublicKey.java: New file.
4608         * java/security/spec/AlgorithmParameterSpec.java: New file.
4609         * java/security/spec/InvalidKeySpecException.java: New file.
4610         * java/security/spec/InvalidParameterSpecException.java: New file.
4611         * java/security/spec/KeySpec.java: New file.
4612         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4613         * java/security/spec/RSAPrivateKeySpec.java: New file.
4614         * java/security/spec/RSAPublicKeySpec.java: New file.
4615         * Makefile.am: Added above java.security files.
4616         * Makefile.in: Rebuilt.
4618         * java/security/MessageDigest.java: Rewritten.
4619         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4621 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
4623         * README: Updated.
4625 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
4627         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4628         _Jv_PrepareConstantTimeTables.
4629         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4630         classes should have an IDT, so don't return if klass is an array
4631         class.
4633 2000-03-08  Tom Tromey  <tromey@cygnus.com>
4635         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4636         of `void' to be created.
4638 2000-03-08  Warren Levy  <warrenl@cygnus.com>
4640         * java/math/BigInteger.java(signum): Handle zero properly.
4642 2000-03-07  Tom Tromey  <tromey@cygnus.com>
4644         * All files: Updated copyright information.
4645         * COPYING: New file.
4646         * COPYING.LIB: Removed.
4647         * LIBGCJ_LICENSE: We now use GPL + special exception.
4649 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
4651         * resolve.cc (_Jv_SearchMethodInClass): New function.
4652         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4653         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4655 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
4657         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4658         (struct _Jv_ifaces): New declaration.
4659         JV_CLASS: New macro definition.
4660         (getComponentType): Relocate below isArray() for inlining.
4661         (getModifiers): Declare `inline'.
4662         (getSuperclass): Ditto.
4663         (isArray): Ditto.
4664         (isPrimitive): Ditto.
4665         (_Jv_IsAssignableFrom): New prototype.
4666         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4667         linkage.
4668         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4669         Check for JV_STATE_DONE before invoking initializeClass().
4670         (_Jv_PrepareConstantTimeTables): New prototype.
4671         (_Jv_GetInterfaces): Ditto.
4672         (_Jv_GenerateITable): Ditto.
4673         (_Jv_GetMethodString): Ditto.
4674         (_Jv_AppendPartialITable): Ditto.
4675         (_Jv_FindIIndex): Ditto.
4676         depth, ancestors, idt: New class fields.
4678         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4679         inline function `_Jv_IsAssignableFrom'. Use that function.
4680         (isInstance): Declare `inline'.
4681         (initializeClass): Get lock on class before checking `state'. Unlock 
4682         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with 
4683         the lock held.
4684         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4685         (_Jv_IsAssignableFrom): New inline function. Test assignability using 
4686         class->depth and ancestor table.
4687         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4688         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4689         _Jv_IsAssignableFrom.
4690         (_Jv_CheckArrayStore): Ditto.
4691         (_Jv_LookupInterfaceMethodIdx): New function. 
4692         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4693         (_Jv_PrepareConstantTimeTables): New function.
4694         (_Jv_IndexOf): Ditto.
4695         (_Jv_GetInterfaces): Ditto.
4696         (_Jv_GenerateITable): Ditto.
4697         (_Jv_GetMethodString): Ditto.
4698         (_Jv_AppendPartialITable): Ditto.
4699         iindex_mutex, iindex_mutex_initialized: New static fields.
4700         (_Jv_FindIIndex): New function.
4702         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4704         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4705         (_Jv_CheckArrayStore): Ditto.
4706         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4707         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4708         Moved to gcj/array.h.
4709         (_Jv_Realloc): New function.
4711         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4713         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4714         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4715         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4716         JvNewDoubleArray): Implementations moved from prims.cc and
4717         declared `inline'.
4719         * gcj/javaprims.h (_Jv_Realloc): Prototype.
4721         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4723 2000-03-06  Tom Tromey  <tromey@cygnus.com>
4725         * jni.cc (MARK_NONE): New define.
4726         (MARK_USER): Likewise.
4727         (MARK_SYSTEM): Likewise.
4728         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4729         smaller.
4730         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4731         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4732         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4733         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4734         argument.
4735         (call): Use MARK_SYSTEM.
4736         (_Jv_GetJNIEnvNewFrame): New function.
4737         (_Jv_LookupJNIMethod): New function.
4738         (_Jv_JNI_PopSystemFrame): New function.
4739         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4741 2000-03-05  Tom Tromey  <tromey@cygnus.com>
4743         Fix for PR libgcj/43:
4744         * include/Makefile.in: Rebuilt.
4745         * include/Makefile.am (include_HEADERS): New define.
4747 2000-03-05  Anthony Green  <green@redhat.com>
4749         * gcj/javaprims.h ("Java"): Remove FirstThread.
4751         * configure.host: Fix __NO_MATH_INLNES botch.
4753         * Makefile.in: Rebuilt.
4754         * Makefile.am (nat_source_files): Move natFirstThread.cc.
4755         (gnu/gcj/runtime/FirstThread.h): Moved.
4756         (ordinary_java_source_files): Move FirstThread.java.
4757         * prims.cc: Deal with FirstThread movement.
4758         (JvRunMain): Ditto.
4759         (_Jv_RunMain): Ditto.
4761         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4762         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4764 2000-03-05  Warren Levy  <warrenl@cygnus.com>
4766         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4767           Handle null addresses.
4769 2000-03-04  Anthony Green  <green@redhat.com>
4771         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4772         See PR gcj/151.
4774 2000-03-04  Anthony Green  <green@redhat.com>
4776         * configure: Rebuilt.
4777         * configure.in (ZLIBTESTSPEC): New macro.
4778         (GCTESTSPEC): New macro.
4779         (LIBGCJTESTSPEC): New macro.
4780         * libgcj-test.spec.in: New file.
4782 2000-03-02  Tom Tromey  <tromey@cygnus.com>
4784         * include/java-interp.h: Don't include MethodInvocation.h.
4785         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4786         * Makefile.in: Rebuilt.
4787         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4788         (ordinary_java_source_files): Don't mention
4789         MethodInvocation.java.
4790         * gnu/gcj/runtime/MethodInvocation.java: Removed.
4791         * interpret.cc (MethodInvocation::continue1): Removed.
4792         (run): Handle exceptions here.
4793         * java/lang/ClassLoader.java (defineClass1, defineClass2):
4794         Removed.
4795         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4796         here.
4797         (defineClass2): Removed.
4799         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4800         Removed.
4801         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4802         exceptions here.
4803         (hack_call): Removed.
4805         * java/lang/Class.h (Class): Removed hackRunInitializers,
4806         hackTrampoline.
4807         * java/lang/natClass.cc (hackRunInitializers): Removed.
4808         (initializeClass): Catch exceptions here.
4809         Include ExceptionInInitializerError.h.
4810         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4811         Removed.
4813         * java/lang/Object.h (Object): Don't mention hack12_6.
4814         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4815         here.
4816         * java/lang/Object.java (hack12_6): Removed.
4818         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
4819         (start): Use run_, not run__.
4820         * java/lang/Thread.java (run_): Renamed from run__; old run_
4821         removed.
4823         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4824         (_Jv_JNI_EnsureLocalCapacity): Likewise.
4825         (_Jv_JNI_DefineClass): Likewise.
4826         (_Jv_JNI_ThrowNew): Likewise.
4827         (_Jv_JNI_AllocObject): Likewise.
4828         (_Jv_JNI_GetAnyMethodID): Likewise.
4829         (_Jv_JNI_CallAnyMethodV): Likewise.
4830         (_Jv_JNI_CallAnyMethodA): Likewise.
4831         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4832         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4833         (_Jv_JNI_GetAnyFieldID): Likewise.
4834         (_Jv_JNI_NewString): Likewise.
4835         (_Jv_JNI_NewStringUTF): Likewise.
4836         (_Jv_JNI_GetStringUTFChars): Likewise.
4837         (_Jv_JNI_NewObjectArray): Likewise.
4838         (_Jv_JNI_NewPrimitiveArray): Likewise.
4839         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4840         (_Jv_JNI_GetStringRegion): Likewise.
4841         (_Jv_JNI_GetStringUTFRegion): Likewise.
4842         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4843         (_Jv_JNI_MonitorEnter): Likewise.
4844         (_Jv_JNI_MonitorExit): Likewise.
4845         (_Jv_JNI_ToReflectedField): Likewise.
4846         (_Jv_JNI_ToReflectedMethod): Likewise.
4847         (_Jv_JNI_RegisterNatives): Likewise.
4848         (_Jv_JNI_AttachCurrentThread): Likewise.
4849         (_Jv_JNI_DestroyJavaVM): Likewise.
4851 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
4853         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4854         error caused by the incorrect casting of a long to an int.
4856 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
4858         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4859         SIGSEV caused by use of the wrong instance variable.
4861 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
4863         * java/io/File.java (File(String, String)): For dirPath, treat an
4864         empty String the same as `null'.
4866 2000-02-26  Anthony Green  <green@cygnus.com>
4868         * gnu/gcj/io/MimeTypes.java: Test for null.
4870         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4871         (JNI_GetCreatedJavaVMs): Remove compiler warning.
4873         * java/net/URLConnection.java: Update copyright notice.
4875 2000-02-25  Tom Tromey  <tromey@cygnus.com>
4877         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4878         `INTERPRETER'.
4880 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
4882         * java/net/URLConnection.java (initializeDateFormats): New
4883         private method.
4884         (getHeaderFieldDate): Call initializeDateFormats if required.
4885         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4886         these.
4887         Fix for PR libgcj/38.
4889 2000-02-24  Warren Levy  <warrenl@cygnus.com>
4891         * java/math/BigInteger.java(ival): Made private.
4892         (words): Ditto.
4893         (neg): Ditto.
4895 2000-02-20  Anthony Green  <green@cygnus.com>
4897         * Makefile.in: Rebuilt.
4898         * Makefile.am (ordinary_java_source_files): Add
4899         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4901         * scripts/MakeDefaultMimeTypes.java: New file.
4902         * scripts/mime.types: New file.
4903         * scripts/classes.pl: Moved from top level.
4904         * classes.pl: Moved to scripts directory.
4906         * java/net/URLConnection.java: Implement guessContentTypeFromName.
4908         * gnu/gcj/io/MimeTypes.java: New file.
4909         * gnu/gcj/io/DefaultMimeTypes.java: New file.
4911 2000-02-20  Tom Tromey  <tromey@cygnus.com>
4913         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4915 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
4917         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4918         (setSize): ditto.
4920 2000-02-18  Tom Tromey  <tromey@cygnus.com>
4922         * include/jvm.h (_Jv_GetJavaVM): Declare.
4923         * include/java-interp.h (_Jv_GetFirstMethod): New function.
4924         (_Jv_MethodBase::get_method): New method.
4925         (_Jv_JNIMethod::set_function): New method.
4926         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
4927         (_Jv_JNI_RegisterNatives): New function.
4928         (_Jv_JNIFunctions): Updated for new functions.
4929         (_Jv_GetJavaVM): New function.
4930         (_Jv_JNI_GetJavaVM): Use it.  Now static.
4931         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
4932         is already a Java thread but does not have a JNIEnv yet.
4934         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
4935         function.
4937 2000-02-17  Tom Tromey  <tromey@cygnus.com>
4939         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
4940         Fixes PR gcj/152.
4942 2000-02-16  Tom Tromey  <tromey@cygnus.com>
4944         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
4946         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
4947         (_Jv_JNI_NewObject): Likewise.
4948         (_Jv_JNI_NewObjectA): Likewise.
4949         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
4950         as "return" type to _Jv_CallAnyMethodA.
4951         (_Jv_JNI_CallAnyMethodA): Likewise.
4952         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4954         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
4955         findClass.
4957 2000-02-15  Tom Tromey  <tromey@cygnus.com>
4959         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
4960         jni_arg_types.
4961         (init_cif): Added `rtype_p' argument.
4962         * include/java-interp.h (class _Jv_MethodBase): Added
4963         args_raw_size.
4964         (class _Jv_InterpMethod): Removed args_raw_size.
4965         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
4966         * jni.cc (call): Pass JNIEnv and (for static methods only) the
4967         class pointer as well as the ordinary arguments.
4969         * jni.cc (mangled_name): Skip leading `(' in signature.
4971         * jni.cc (add_char): Added missing `else'.
4973         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
4974         fails.
4976 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
4978         * NEWS: Updated.
4980         * java/lang/natRuntime.cc (_load): Include library path with
4981         exception message.
4983         * java/lang/natSystem.cc (init_properties): set java.lang.classpath 
4984         property.
4986         * java/lang/natThread.cc (dumpStack): Removed.
4987         * java/lang/Thread.java (dumpStack): Implemented.
4989 2000-02-15  Tom Tromey  <tromey@cygnus.com>
4991         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
4992         with `lib' for loadLibrary.  Fixes PR gcj/150.
4994 2000-02-14  Warren Levy  <warrenl@cygnus.com>
4996         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
4998         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
4999           New constructor.
5000         (min): Implemented.
5001         (max): Implemented.
5002         (modPow): Rewritten to not use the naive, slow, brute force approach.
5003         (isProbablePrime): Implemented.
5004         (testBit): Implemented.
5005         (flipBit): Implemented.
5006         (getLowestSetBit): Implemented.
5008 2000-02-16  Anthony Green  <green@redhat.com>
5010         * configure.host: Use the same options for i386 and i486 as we do
5011         for i586 and i686.
5013 2000-02-12  Tom Tromey  <tromey@cygnus.com>
5015         * java/io/File.java (createTempFile): Use low bits from counter,
5016         not high bits.
5018 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
5020         * THANKS: More thanks.
5022 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5024         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5025         astore instruction.  From Hans Boehm.
5027 2000-02-11  Warren Levy  <warrenl@cygnus.com>
5029         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5030         (BigInteger(String)): New constructor.
5031         (not): Rewritten using version from Kawa's BitOps class.
5032         (valueOf): New private methods from Kawa's BitOps class.
5033         (swappedOp): ditto.
5034         (bitOp): ditto.
5035         (setBitOp): ditto.
5036         (and): Implemented.
5037         (or): Implemented.
5038         (xor): Implemented.
5039         (andNot): Implemented.
5040         (clearBit): Implemented.
5041         (setBit): Implemented.
5042         (bitCount): Implemented.
5043         (toByteArray): Implemented.
5045 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5047         * java/io/File.java (nextValue): Now synchronized.
5049 2000-02-10  Tom Tromey  <tromey@cygnus.com>
5051         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5052         * java/io/FileDescriptor.java (EXCL): New static field.
5053         * java/io/File.java (tmpdir): New static field.
5054         (createTempFile): New method.
5055         (nextValue): New method.
5056         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5057         property.
5059         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5060         (jboolean): Declare as an attributed int, not a bool.
5061         (_Jv_func): Declare differently for C.
5063         * gnu/gcj/jni/natNativeThread.cc: New file.
5064         * gnu/gcj/jni/NativeThread.java: New file.
5065         * java/lang/Thread.java (data): Now a RawData.
5066         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5067         Declare.
5068         * Makefile.in: Rebuilt.
5069         * Makefile.am (java/lang/Thread.h): New target.
5070         (ordinary_java_source_files): Added NativeThread.java.
5071         (nat_source_files): Added natNativeThread.cc.
5072         * java/lang/natThread.cc: Include <jni.h>
5073         (struct natThread): Added `jni_env' field.
5074         (_Jv_GetCurrentJNIEnv): New function.
5075         (_Jv_SetCurrentJNIEnv): Likewise.
5076         (initialize_native): Initialize jni_env.
5077         Include RawData.h.
5078         * jni.cc (ThreadGroupClass): New define.
5079         (_Jv_JNI_InvokeFunctions): New structure.
5080         (JNI_GetCreatedJavaVMs): New function.
5081         (the_vm): New global.
5082         (JNI_GetDefaultJavaVMInitArgs): New function.
5083         Include NativeThread.h.
5084         (NativeThreadClass): New define.
5085         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5086         (_Jv_JNI_DestroyJavaVM): New function.
5087         (_Jv_JNI_AttachCurrentThread): New function.
5088         (_Jv_JNI_DetachCurrentThread): New function.
5089         (_Jv_JNI_GetEnv): New function.
5090         (JNI_CreateJavaVM): New function.
5091         (_Jv_JNI_GetJavaVM): New function.
5092         (_Jv_JNIFunctions): Added entry for GetJavaVM.
5093         * include/jni.h (JavaVMAttachArgs): New structure.
5094         (JNI_EDETACHED): New define.
5095         (JNI_EVERSION): Likewise.
5096         (JavaVM): Define properly.
5097         (struct JNIInvokeInterface): New structure.
5098         (class _Jv_JavaVM): New class.
5099         (JNI_OnLoad, JNI_OnUnload): Declare.
5100         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5101         JNI_GetCreatedJavaVMs): Declare.
5102         (JavaVMInitArgs): New typedef.
5103         (JavaVMOption): Likewise.
5104         (JNI_ERR): New define.
5105         (JNI_OK): Likewise.
5107 2000-02-10  Andrew Haley  <aph@cygnus.com>
5109         * interpret.cc: Don't include fdlibm.h.
5110         Replace #if with #ifdef throughout.
5111         Declare extern __ieee754_fmod.
5112         (continue1): Remove op_getfield, op_getstatic, op_putfield,
5113         op_putstatic insns.
5114         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5115         Search class hierarchy for superclass vtable.
5117         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5118         off the end of a pointer list.
5120         * java/lang/natThread.cc (stop): Don't abort, throw an exception
5121         instead.
5122         (suspend): Ditto.
5123         
5124 2000-02-09  Tom Tromey  <tromey@cygnus.com>
5126         * java/lang/natRuntime.cc (_load): Call add_library.
5127         (loadLibraryInternal): Likewise.
5129         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5130         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
5131         (Output_iconv::finalize): Likewise.
5133 2000-02-08  Tom Tromey  <tromey@cygnus.com>
5135         * java/util/Properties.java (setProperty): New method.
5136         (store): New method.
5138 2000-02-07  Tom Tromey  <tromey@cygnus.com>
5140         * java/lang/Runtime.java (_load): Declare.
5141         (load, loadLibrary): Wrote in terms of _load.
5142         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5143         library.
5144         (loadLibrary): Likewise.
5145         Include <jni.h>.
5146         (_load): New method.
5147         (loadLibrary, load): Removed.
5149         * jni.cc (ThrowableClass): New define.
5150         (_Jv_JNI_Throw): Check argument.
5151         (_Jv_JNI_ThrowNew): Likewise.
5152         (wrap_value): Don't wrap object if it is NULL.
5153         (_Jv_JNI_DefineClass): Use wrap_value.
5154         (_Jv_JNI_FindClass): Likewise.
5155         (_Jv_JNI_GetSuperclass): Likewise.
5156         (_Jv_JNI_ExceptionOccurred): Likewise.
5157         (_Jv_JNI_AllocObject): Likewise.
5158         (_Jv_JNI_GetObjectClass): Likewise.
5159         (_Jv_JNI_NewString): Likewise.
5160         (_Jv_JNI_NewStringUTF): Likewise.
5161         (_Jv_JNI_NewObjectArray): Likewise.
5162         (_Jv_JNI_GetObjectArrayElement): Likewise.
5163         (_Jv_JNI_NewPrimitiveArray): Likewise.
5164         (_Jv_JNI_ToReflectedField): Likewise.
5165         (_Jv_JNI_ToReflectedMethod): Likewise.
5166         (_Jv_JNI_AllocObject): Check argument.
5167         (_Jv_JNI_NewObjectV): Likewise.
5168         (_Jv_JNI_NewObject): Likewise.
5169         (_Jv_JNI_NewObjectA): Likewise.
5170         (_Jv_JNI_GetObjectClass): Likewise.
5171         (_Jv_JNI_GetField): Likewise.
5172         (_Jv_JNI_SetField): Likewise.
5174         * interpret.cc (PUSHL): Don't use expression statement.
5175         (PUSHD): Likewise.
5176         (LOADL): Likewise.
5177         (STOREL): Likewise.
5179         * jni.cc (add_char): Conditional on INTERPRETER.
5180         (mangled_name): Likewise.
5181         (call): Likewise.
5182         * include/java-interp.h (class _Jv_MethodBase): Conditional on
5183         INTERPRETER.
5184         (class _Jv_JNIMethod): Likewise.
5186 2000-02-04  Warren Levy  <warrenl@cygnus.com>
5188         * Makefile.am: Added MPN.java and BigInteger.java.
5189         * Makefile.in: Rebuilt.
5190         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
5191         <per@bothner.com>.
5192         * java/math/BigInteger.java: New file.  Based primarily on
5193         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5195 2000-02-04  Tom Tromey  <tromey@cygnus.com>
5197         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5198         pointers.
5199         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
5200         if the method is native.
5201         * resolve.cc (ncode): Don't handle native methods.
5202         (_Jv_JNIMethod::ncode): New method.
5203         (_Jv_PrepareClass): Handle native methods.
5204         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5205         Include AbstractMethodError.h.
5206         (add_char): New function.
5207         (mangled_name): Likewise.
5208         * include/java-interp.h (class _Jv_JNIMethod): New class.
5209         (class _Jv_MethodBase): New class.
5210         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5211         (_Jv_InterpClass): Changed `interpreted_methods' field to type
5212         `_Jv_MethodBase'.
5214         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5215         * java/lang/natRuntime.cc (libraries_size, libraries_count,
5216         libraries): New globals.
5217         (add_library): New function.
5218         (_Jv_FindSymbolInExecutable): New function.
5220         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5221         Now static.
5223 2000-02-04  Andrew Haley  <aph@cygnus.com>
5225         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5226         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5227         * java/lang/natThrowable.cc (printRawStackTrace): Rename
5228         printStackTrace to printRawStackTrace.
5230 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5232         * java/util/Calendar.java (toString): New method.
5233         * java/util/SimpleTimeZone.java (clone): New method.
5234         (toString): New method.
5235         * java/util/TimeZone.java (clone): New method.
5236         * java/text/SimpleDateFormat.java (clone): New method.
5237         * java/text/NumberFormat.java (clone): New method.
5238         (equals): New method.
5239         * java/text/Format.java (clone): New method.
5240         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5241         constructor.
5242         (clone): New method.
5243         * java/text/DateFormat.java (clone): New method.
5244         * java/text/Collator.java (clone): New method.
5246 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5248         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5249         method.
5251 2000-02-01  Tom Tromey  <tromey@cygnus.com>
5253         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5254         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5255         constructing the closure if the function is native.
5256         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
5257         a template function, #if'd out, or static.
5258         Include <java-interp.h>.
5260         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5262         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5264         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5265         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5266         `locals == NULL'.
5267         (wrap_value): New function.
5268         (_Jv_JNI_CallAnyMethodV): Use it.
5269         (_Jv_JNI_CallAnyMethodA): Likewise.
5270         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5271         (_Jv_JNI_GetStaticField): Likewise.
5273         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5274         (_Jv_JNI_GetStaticField): Likewise.
5276 2000-01-31  Tom Tromey  <tromey@cygnus.com>
5278         * prims.cc (_Jv_MallocUnchecked): New function.
5279         (main_init): Call _Jv_JNI_Init.
5280         * include/jvm.h (_Jv_MallocUnchecked): Declare.
5281         (_Jv_JNI_Init): Declare.
5282         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5283         <string.h>.
5284         (_Jv_JNI_NewGlobalRef): New function.
5285         (_Jv_JNI_DeleteGlobalRef): New function.
5286         (_Jv_JNI_DeleteLocalRef): New function.
5287         (_Jv_JNI_conversion_call): Initialize and clear local reference
5288         frame.
5289         (_Jv_JNI_NewLocalRef): New function.
5290         (struct _Jv_JNI_LocalFrame): New structure.
5291         (_Jv_JNI_PushLocalFrame): New function.
5292         (_Jv_JNI_EnsureLocalCapacity): New function.
5293         (FRAME_SIZE): New define.
5294         (_Jv_JNI_GetStringChars): Mark string, not characters.
5295         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5296         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5297         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5298         elements.
5299         (_Jv_JNI_DefineClass): Make return value a local ref.
5300         (_Jv_JNI_FindClass): Likewise.
5301         (_Jv_JNI_GetSuperclass): Likewise.
5302         (_Jv_JNI_ExceptionOccurred): Likewise.
5303         (_Jv_JNI_AllocObject): Likewise.
5304         (_Jv_JNI_GetObjectClass): Likewise.
5305         (_Jv_JNI_CallAnyMethodV): Likewise.
5306         (_Jv_JNI_NewString): Likewise.
5307         (_Jv_JNI_NewStringUTF): Likewise.
5308         (_Jv_JNI_NewObjectArray): Likewise.
5309         (_Jv_JNI_GetObjectArrayElement): Likewise.
5310         (_Jv_JNI_ToReflectedField): Likewise.
5311         (_Jv_JNI_ToReflectedMethod): Likewise.
5312         (_Jv_JNIFunctions): Updated table for new functions.
5313         (_Jv_JNI_Init): New function.
5314         (mark_for_gc): Wrote.
5315         (unmark_for_gc): Wrote.
5316         * include/jni.h (struct JNINativeInterface): Removed name from
5317         PopLocalFrame parameter.
5318         (class _Jv_JNIEnv): Added `locals' field.
5320 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
5322         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5323         (write): Ditto.
5325 2000-01-30  Tom Tromey  <tromey@cygnus.com>
5327         * include/config.h.in: Rebuilt.
5328         * acconfig.h (HAVE_ICONV): Define.
5329         * configure: Rebuilt.
5330         * configure.in: Check for `iconv' function.
5331         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5332         no specific encoder exists.
5333         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5334         no specific encoder exists.
5335         * Makefile.in: Rebuilt.
5336         * Makefile.am (convert_source_files): Mention Input_iconv.java and
5337         Output_iconv.java.
5338         (nat_source_files): Added natIconv.cc.
5339         * gnu/gcj/convert/natIconv.cc: New file.
5340         * gnu/gcj/convert/Input_iconv.java: New file.
5341         * gnu/gcj/convert/Output_iconv.java: New file.
5343 2000-01-28  Tom Tromey  <tromey@cygnus.com>
5345         * Makefile.in: Rebuilt.
5346         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5348 2000-01-26  Tom Tromey  <tromey@cygnus.com>
5350         * gcj/method.h (JvNumMethods): Moved from Class.h.
5351         (JvGetFirstMethod): Likewise.
5352         * java/lang/Class.h (Object): Updated decl of
5353         _Jv_JNI_ToReflectedField.
5354         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5355         * Makefile.in: Rebuilt.
5356         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5357         argument of _Jv_JNI_ToReflectedField.
5358         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5359         as a friend.
5360         (java/lang/reflect/Method.h): Likewise.
5361         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
5362         __GCJ_JNI_IMPL__.
5363         (jweak): New typedef.
5364         (struct JNINativeInterface): Correctly declare remaining entries.
5365         * jni.cc: Include Class.h, ClassLoader.h.
5366         (_Jv_JNI_FindClass): New function.
5367         (_Jv_JNI_DefineClass): New function.
5368         (_Jv_JNI_conversion_call): New function.
5369         (_Jv_JNI_FindClass): Use current class loader to find class.
5370         (_Jv_JNI_ExceptionCheck): New function.
5371         (_Jv_JNI_FromReflectedField): Now static.
5372         (MethodClass): New define.
5373         (_Jv_JNI_FromReflectedMethod): New function.
5374         (_Jv_JNI_ToReflectedMethod): Likewise.
5375         Include Method.h.
5376         (_Jv_JNI_IsAssignableFrom): Renamed.
5377         (_Jv_JNI_GetStringRegion): New function.
5378         Include StringIndexOutOfBoundsException.h.
5379         (_Jv_JNI_GetStringUTFRegion): New function.
5380         (_Jv_JNIFunctions): Updated for new functions.
5381         (_Jv_JNI_GetPrimitiveArrayCritical): New function
5382         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5383         (_Jv_JNI_GetStringCritical): New function.
5384         (_Jv_JNI_ReleaseStringCritical): Likewise.
5385         (get_throwable): Removed.
5386         (GCJ_JV_JNIENV_FRIEND): Removed.
5387         (__GCJ_JNI_IMPL__): Define.
5388         Include method.h.
5390         * resolve.cc (get_ffi_type_from_signature): Handle case where
5391         boolean is an int.
5393 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
5395         * interpret.cc (run): Don't call println.
5396         Don't include PrintStream.h.
5398         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5399         nameIndex.  Use "jint" as type for boffset.
5400         * java/lang/Class.h (struct _Jv_Method): Made accflags a
5401         _Jv_ushort.
5402         (Class): Likewise.  Also changed type of method_count,
5403         vtable_method_count, size_in_bytes, field_count,
5404         static_field_count, interface_count.
5405         * gcj/array.h (__JArray): Made `length' a const jsize, not an
5406         int.
5408 2000-01-21  Tom Tromey  <tromey@cygnus.com>
5410         * java/lang/reflect/natConstructor.cc (newInstance): Use
5411         _Jv_CallAnyMethodA.
5412         * include/jvm.h: Declare _Jv_CallAnyMethodA.
5413         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5414         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
5415         Include <jni.h>.
5416         (COPY): Removed.
5417         (invoke): Use _Jv_CallAnyMethodA.
5418         (VAL): Redefined.
5419         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5420         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5421         functions.
5422         (struct _Jv_Method): Added getNextMethod method.
5423         (JvNumMethods): New function.
5424         (JvGetFirstMethod): Likewise.
5425         * gcj/field.h (JvGetFirstStaticField): New function.
5426         (JvNumStaticFields): Likewise.
5427         (getNextField): Renamed from getNextInstanceField.
5428         (struct _Jv_Field): New method getClass.
5429         * jni.cc: Wrote many new functions.
5430         * include/jni.h (JNI_TRUE): Define.
5431         (JNI_FALSE): Likewise.
5432         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5433         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5434         jcharArray, jfloatArray, jdoubleArray): New typedefs.
5435         (jfieldID, jmethodID): Likewise.
5436         (JNI_COMMIT, JNI_ABORT): New defines.
5437         (JNINativeMethod): New struct.
5438         (struct JNINativeInterface): Correctly declared more entries.
5439         (class _Jv_JNIEnv): Added `ex' member.
5440         (JNI_VERSION_1_1): New define.
5441         (JNI_VERSION_1_2): Likewise.
5443         * boehm.cc (_Jv_MarkObj): Use getNextField, not
5444         getNextInstanceField.
5446 2000-01-20  Tom Tromey  <tromey@cygnus.com>
5448         * resolve.cc (StringClass): Removed.
5449         * defineclass.cc (StringClass): Removed.
5451 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
5453         * NEWS: updated.
5455 2000-01-19  Tom Tromey  <tromey@cygnus.com>
5457         * interpret.cc (PC_REGISTER_ASM): Removed.
5459         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5460         From Bryce McKinlay.
5462         * All files: Updated copyright to reflect Cygnus purchase.
5464 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
5466         * configure: Rebuilt.
5467         * configure.in: Recognize --disable-interpreter.
5469 2000-01-18  Andrew Haley  <aph@cygnus.com>
5471         * name-finder.cc (lookup): Check for dladdr function.
5472         acconfig.h (HAVE_DLADDR): Add.
5473         configure.in: Check for HAVE_DLADDR
5474         configure: Rebuilt.
5475         include/config.h.in:  Rebuilt.
5477 2000-01-17  Andrew Haley  <aph@cygnus.com>
5479         * prims.cc (_Jv_RunMain): Set the name of this executable.
5481 2000-01-17  Tom Tromey  <tromey@cygnus.com>
5483         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5484         when backtrace can't be computed.
5486         * configure: Rebuilt.
5487         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5489         * java/lang/Runtime.java (loadLibraryInternal): Declare.
5490         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5491         (_Jv_FindClassInCache): Likewise.
5492         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5493         (findSystemClass): Try to load class from compiled module.
5494         Include Runtime.h.
5495         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5496         (loadLibrary): Likewise.
5497         (lt_preloaded_symbols): Define.
5498         (loadLibraryInternal): New method.
5499         * include/config.h.in: Rebuilt.
5500         * acconfig.h (USE_LTDL): Added.
5501         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5502         (INCLUDES): Added $(INCLTDL).
5503         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5504         (libgcj_la_LIBADD): Likewise.
5505         * aclocal.m4, configure: Rebuilt.
5506         * configure.in: Added libltdl support.
5508 2000-01-15  Tom Tromey  <tromey@cygnus.com>
5510         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5512 2000-01-14  Andrew Haley  <aph@cygnus.com>
5514         * java/lang/natThrowable.cc: New file.
5516         * java/lang/Throwable.java (fillInStackTrace): Make native.
5517         (printStackTrace): Call native method to do this.
5518         (Throwable): Call fillInStackTrace.
5519         (stackTrace): New variable.
5520         
5521         * include/jvm.h: Add _Jv_ThisExecutable functions.
5522         
5523         * prims.cc: (_Jv_execName): New variable.
5524         (catch_segv): Call fillInStackTrace.
5525         (catch_fpe): Ditto.
5526         (_Jv_ThisExecutable): New functions.
5527         (JvRunMain): Set the name of this executable.
5529         * Makefile.am: Add java/lang/natThrowable.cc.
5530         Add name-finder.cc.
5531         * Makefile.in: Rebuilt.
5533         * acconfig.h: Add HAVE_PROC_SELF_EXE.
5535         * configure.in: Force link with __frame_state_for in
5536         FORCELIBGCCSPEC.  Add new checks for backtrace.
5537         * include/config.h.in: Rebuilt.
5539         * name-finder.cc: New file.
5540         * include/name-finder.h: New file.
5542 2000-01-16  Anthony Green  <green@cygnus.com>
5544         * java/lang/StringBuffer.java (StringBuffer): Don't special case
5545         null argument.
5547 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
5549         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5551 2000-01-13  Tom Tromey  <tromey@cygnus.com>
5553         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5554         not system loader, as initiating loader.
5556 2000-01-11  Tom Tromey  <tromey@cygnus.com>
5558         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5559         HP/UX.  From David Scott Urban.
5561 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
5563         * java/lang/natMath.cc (pow): Cast args to `double', not
5564         `jdouble'.
5565         (atan2): Likewise.
5566         (IEEEremainder): Likewise.
5567         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5568         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5570 2000-01-09  Anthony Green  <green@cygnus.com>
5572         * java/lang/natString.cc (init): Test for overflow condition
5573         during out of bounds check.
5574         (getChars): Throw StringIndexOutOfBoundsException, not
5575         ArrayIndexOutOfBoundsException.
5576         (getBytes): Ditto.
5577         (regionMatches): Obey case option during string comparison.
5579         * configure.host (ligcj_interpreter): New variable.  Enable
5580         interpreter by default on IA-32.
5581         * configure.in:  Examine libgcj_interpreter.
5582         * configure: Rebuilt.
5584 2000-01-07  Tom Tromey  <tromey@cygnus.com>
5586         * mauve-libgcj: Don't disable ClassTest.
5588         * java/lang/natClass.cc (getClasses): Wrote.
5590 2000-01-06  Tom Tromey  <tromey@cygnus.com>
5592         * java/lang/natClass.cc (_getConstructors): Correctly check
5593         whether method name is the init name.
5594         (getMethod): Look at accflags on method in `klass', not `this'.
5596 2000-01-05  Tom Tromey  <tromey@cygnus.com>
5598         * java/lang/natClass.cc (getMethod): Compute offset relative to
5599         `klass's methods table, not `this's table.
5601         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5602         In unwrapping/widening case, check whether `k' is null, not
5603         whether it is primitive.  Initialize `num' from `argelts', not
5604         `paramelts'.  Correct create and pass arguments to ffi_call.
5605         Don't let presence of `this' argument affect index used to look in
5606         argument arrays.
5607         (COPY): Set appropriate element in `values' vector.
5609         * java/lang/natClass.cc: Include <gcj/method.h>.
5611         * java/lang/Class.h (_getMethods): Correctly declare as private,
5612         not public.
5614         * java/lang/Class.h (_getMethods): Declare.
5615         * java/lang/Class.java (_getMethods): Declare.
5616         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5617         (getDeclaredClasses): Always return empty array.
5618         (_getMethods): New method.
5619         (getMethods): Wrote.
5620         (getDeclaredMethod): Return `rmethod'.
5621         (finit_name): New global.
5622         (getDeclaredMethods): Check for finit_name.
5623         (_getMethods): Likewise.
5624         (getMethod): Only return public methods.
5626         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5627         jboolean and select correct ffi type on that basis.
5628         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5629         Constructor call always has `void' return type.
5631 2000-01-04  Tom Tromey  <tromey@cygnus.com>
5633         * java/lang/Class.h (getSignature): Updated.
5634         * java/lang/Class.java (getSignature): Updated.
5635         * java/lang/natClass.cc (getSignature): Added `is_constructor'
5636         argument.
5637         (getConstructor): Ensure constructor is public.
5638         (_getConstructors): Check for public-ness of constructor when
5639         `declared' is false, not when it is true.
5641 2000-01-04  Warren Levy  <warrenl@cygnus.com>
5643         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5644         comment.
5645         (receive): Set the sender's address in the DatagramPacket.
5647 2000-01-04  Tom Tromey  <tromey@cygnus.com>
5649         * java/lang/reflect/natConstructor.cc (newInstance): Pass
5650         declaring class as return_type argument to
5651         _Jv_CallNonvirtualMethodA.
5652         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5653         constructor case, create object and use it as `this' argument.
5654         * java/lang/Class.h (_getConstructors): Declare.
5655         (_getFields): Declare.
5656         * java/lang/Class.java (getConstructors): Wrote.
5657         (_getConstructors): New native method.
5658         (getDeclaredConstructors): Wrote.
5659         (_getFields): Declare new native method.
5660         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5661         incorrect comment.
5662         (getMethod): Work correctly when class is primitive.
5663         (getDeclaredMethods): Likewise.  Compute offset using `method',
5664         not `mptr'.
5665         (getDeclaredMethod): Likewise.
5666         (getConstructor): Wrote.
5667         (ConstructorClass): New define.
5668         (getDeclaredConstructor): Wrote.
5669         (_getConstructors): New method.
5670         (_getFields): New method.
5671         (getFields): Wrote.
5673         * Makefile.in: Rebuilt.
5674         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5676         * prims.cc: Remove `#pragma implementation'.
5677         * gcj/array.h: Remove `#pragma interface'.
5679         * prims.cc (_Jv_equaln): New function.
5680         * java/lang/Class.java (getSignature): Declare.
5681         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5682         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5683         resolve.cc.
5684         (getSignature): New method.
5685         (getDeclaredMethod): Wrote.
5686         (getMethod): Wrote.
5687         Include StringBuffer.h.
5688         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5689         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
5690         a friend.
5691         (getSignature): Declare.
5692         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5693         (_Jv_equaln): Declare.
5694         (_Jv_CallNonvirtualMethodA): Declare.
5695         * Makefile.in: Rebuilt.
5696         * Makefile.am (nat_source_files): Added natConstructor.cc.
5697         (java/lang/reflect/Constructor.h): New target.
5698         * java/lang/reflect/natConstructor.cc: New file.
5699         * java/lang/reflect/Constructor.java (newInstance): Now native.
5700         (declaringClass): Renamed from decl_class.
5701         (offset): Renamed from index.
5702         (getType): New native method.
5703         (getModifiers): Now native.
5704         (getParameterTypes): Call getType if required.
5705         (hashCode): Include hash code from declaring class.
5706         (modifiers): Removed.
5707         (toString): Call getType if required.
5708         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5709         * java/lang/reflect/natMethod.cc (hack_call): New method.
5710         Removed `#if 0' around FFI code.
5711         Include <gnu/gcj/RawData.h>.
5712         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
5713         IllegalArgumentException when argument object and class disagree.
5714         (_Jv_GetTypesFromSignature): New function.
5715         (getType): Use it.
5716         (ObjectClass): New define.
5717         (_Jv_CallNonvirtualMethodA): New function.
5718         * java/lang/reflect/Method.java (hack_trampoline): New method.
5719         (hack_call): New native method.