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