* Makefile.in (SYSTEM_H): Define.
[official-gcc.git] / libjava / ChangeLog
blob776cbf3e2e6de6f0011f9779e335a229963d6c68
1 2001-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
3         * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
4         objects in subdirectories.
5         * Makefile.in: Rebuilt.
7 2001-03-25  Richard Henderson  <rth@redhat.com>
9         * exception.cc (java_eh_info): Make value type jthrowable.
10         (_Jv_type_matcher): Remove now unneeded cast.
11         (_Jv_Throw): Make argument type jthrowable.  Munge name
12         for SJLJ_EXCEPTIONS here ...
13         * gcj/cni.h: ... not here.
14         (JvThrow): Remove.
15         * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
17         * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
18         prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
19         gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
20         gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
21         gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc, 
22         java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
23         java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
24         java/lang/natClass.cc, java/lang/natClassLoader.cc,
25         java/lang/natDouble.cc, java/lang/natObject.cc, 
26         java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
27         java/lang/natString.cc, java/lang/natSystem.cc,
28         java/lang/natThread.cc, java/lang/reflect/natArray.cc,
29         java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
30         java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
31         java/util/zip/natInflater.cc:
32         Use throw, not JvThrow or _Jv_Throw.
34 2001-03-24  Bryce McKinlay  <bryce@albatross.co.nz>
36         * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity 
37         paramater, bump it to 1.
38         * java/util/Hashtable.java (Hashtable): Likewise.
40 2001-03-23  Per Bothner  <per@bothner.com>
42         * java/lang/natDouble.cc (parseDouble):  Cannot use errno to
43         check for errors, since we don't want to throw exception on
44         overflow/underflow.  Instead, trim whitespace, and then check that
45         _strtod_r uses up all the rest of the string.
47         * java/lang/natClass.cc (_Jv_IsAssignableFrom):  Checking the
48         ancestors array is invalid for interfaces, so do that *after*
49         check that the target type is not an interface.
51 2000-03-23  Jeff Sturm  <jsturm@one-point.com>
53         * prims.cc (_Jv_FindClassFromSignature): Check return of
54         recursive call.  Do not abort on invalid signature; return NULL
55         instead.
57 2001-03-22  Tom Tromey  <tromey@redhat.com>
59         * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
60         * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
61         unconditionally.
62         * include/jvm.h (_Jv_ResolveField): Declare.
63         * include/java-interp.h (_Jv_ResolveField): Don't declare.
64         * resolve.cc (_Jv_ResolveField): No longer conditional on
65         INTERPRETER.
67 2001-03-23  Bryce McKinlay  <bryce@albatross.co.nz>
69         Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
70         for libtool hacking.
71         * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
72         to a temporary file, then invoke libtool with the -objectlist 
73         paramater.
74         (libgcjx.la): Likewise.
75         * Makefile.in: Rebuilt.
77 2001-03-22  Joerg Brunsmann <joerg_brunsmann@yahoo.de>
79         * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
81 2001-03-22  Marcus G. Daniels  <mgd@swarm.org>
83         * jni.cc (add_char): Handle `.' like `/'.
85 2001-03-22  Bryce McKinlay  <bryce@albatross.co.nz>
87         * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
88         initialize if exception_types is null.
89         * java/lang/reflect/Constructor.java: Likewise.
90         * java/lang/reflect/natConstructor.cc (getType): Initialize 
91         exception_types to an empty Object array.
93 2001-03-21  Tom Tromey  <tromey@redhat.com>
95         * configure: Rebuilt.
96         * configure.in (GCJFLAGS): Subst.
97         * Makefile.in: Rebuilt.
98         * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
99         (gij_LDFLAGS): Likewise.
100         (JC1FLAGS): Added GCJFLAGS and removed -g.
102         * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
103         read/write case.  Fixes PR libgcj/2338.
105 2001-03-20  Warren Levy  <warrenl@redhat.com>
107         * java/util/TimeZone.java: Sync up with Classpath.  Includes new
108         and corrected SimpleTimeZone's for the timezones hash table.
110 2001-03-19  Per Bothner  <per@bothner.com>
112         * java/net/URLStreamHandler.java (parseURL):  Fix bug which would
113         "canonicalize" "../../xxx" to "/xxx".
115 2001-03-19  Mark Wielaard <mark@klomp.org>
117         * java/util/ArrayList.java: Remove RCS keywords from comments
118         * java/util/BasicMapEntry.java: idem
119         * java/util/Dictionary.java: idem
120         * java/util/HashSet.java: idem
122         * java/util/EventObject.java: reindent
123         * java/util/Properties.java: idem
124         * java/util/SortedMap.java: idem
126         * java/util/Enumeration.java: Merge with Classpath
127         * java/util/EventListener.java: idem
128         * java/util/Observable.java: idem
129         * java/util/Observer.java: idem
130         * java/util/Stack.java: idem
132 2001-03-17  Tom Tromey  <tromey@redhat.com>
134         * java/lang/natString.cc (rehash): Don't bother with memset;
135         _Jv_AllocBytes returns zero'd memory.  Use _Jv_AllocBytesChecked.
136         Use UNMASK_PTR.
137         (UNMASK_PTR): New macro.
138         (intern): Unmask pointer before returning it.  Register finalizer
139         for the string.
140         (unintern): Handle case where 
141         (MASK_PTR): New macro.
142         (PTR_MAKSED): Likewise.
143         (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
145 2001-03-01  Andrew Haley  <aph@redhat.com>
147         * java/lang/natThrowable.cc (printRawStackTrace): Copy the
148         stackTrace buffer to a correctly aligned pointer array.
150 2001-03-12  Bryce McKinlay  <bryce@albatross.co.nz>
152         * java/lang/Runtime.java (_exit): Declare new package-private native.
153         * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
154         without a security manager check.
155         (exit): Call _exit after security check.
156         * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
157         "naturally".
158         * java/lang/System.java (setSecurityManager): If a security manager
159         is already in place, call checkPermission. 
160         * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
161         throws an exception, try to deal with it gracefully.
162         * java/lang/ExceptionInInitializerError.java (printStackTrace):
163         Only try to print the subordinate stack trace if "exception" is set.
164         Print our class name first.
166 2001-03-08  Tom Tromey  <tromey@redhat.com>
168         * java/io/ObjectStreamClass.java (setUID): Don't write interface
169         info for array classes.
170         Fixes PR libgcj/1971.
172 2001-03-06  Bryce McKinlay  <bryce@albatross.co.nz>
174         * java/util/TreeSet.java (writeObject): Use a for-loop instead of
175         Iterator.hasNext().
177 2001-03-05  Jochen Hoenicke  <jochen@gnu.org>
179         * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
180         instead of the new JDK1.2 API.  This is simpler and makes 
181         back-porting the classes to JDK1.1 trivial.
182         (readObject): likewise.
183         
184 2001-03-01  Per Bothner  <per@bothner.com>
186         Changes merged from Kawa's gnu.math.
187         * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
188         (rshift(int[],int[],int,int):  Removed - not needed.
189         (gcd):  Use rshift0 rather than rshift.
190         * java/math/BigInteger.java (setShiftRight):  Likewise.
191         (divide):  Simplify by using rshift0.
192         (divide):  Zero-extend results if high-order bit set.
194 2001-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
196         * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
197         linking.
199 2001-02-23  Per Bothner  <per@bothner.com>
201         Change to sometimes include class name in ClassFormatError message.
202         * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
203         _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)):  Return
204         boolean instead of throwing ClassFormatError on failure.
205         (throw_class_format_error):  Change static function to method.
206         (_Jv_ClassReader):  New inline methods verify_identifier,
207         two overloads of verify_classname, verify_field_signature, and
208         verify_method_signature
209         * include/java-interp.h:  Update declarations to return bool.
210         * java/lang/natClassLoader.cc (defineClass0):  Explicitly throw
211         ClassFormatError since _Jv_VerifyClassName now returns bool.
213 2001-02-23  Per Bothner  <per@bothner.com>
215         * java/lang/Throwable.java (CPlusPlusDemangler):  Pass -s java to
216         c++filt to select java-style output.
218 2001-02-22  Bryce McKinlay  <bryce@albatross.co.nz>
220         Fix for PR java/2040:
221         * java/util/HashMap.java (HashMap): Don't throw exception for 
222         loadFactor > 1. Add exception messages.
223         * java/util/Hashtable.java (Hashtable): Likewise.
225 2001-02-21  Bryce McKinlay  <bryce@albatross.co.nz>
227         Disable libgcjx by default.
228         * configure.in: Add support for --enable-java-awt configure option. 
229         Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
230         * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
231         * Makefile.in: Rebuilt.
232         * configure: Rebuilt.
234 2001-02-20  Tom Tromey  <tromey@redhat.com>
236         * java/io/PipedWriter.java (flush): Throw exception if stream
237         closed.
238         * java/io/OutputStreamWriter.java (write): Throw exception if
239         stream closed.
240         (writeChars): Don't throw exception if stream closed.
241         * java/io/CharArrayWriter.java (closed): New field.
242         (close): Set it.
243         (flush): Throw exception if stream closed.
244         (reset): Synchronize on correct lock.  Allow stream to be
245         reopened.
246         (toCharArray, toString, writeTo): Synchronize.
247         (write): Throwe exception if stream closed.
248         * java/io/BufferedWriter.java (close): Clear `buffer'.
249         (flush): Throw IOException if stream is closed.
250         (write): Likewise.
252 2001-02-16  Tom Tromey  <tromey@cygnus.com>
254         * java/lang/ThreadGroup.java (activeCount): Only include threads
255         which are alive.
256         (enumerate): Likewise.
258 2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
260         * java/lang/Integer.java (getInteger): Return default argument if
261         property is not set. Don't call decode with null argument.
262         * java/lang/Long.java (getLong): Likewise.
264         * java/io/CharArrayReader.java (CharArrayReader): Throw 
265         IllegalArgumentException if constructor arguments are illegal.
266         (ready): Return false if no more characters can be read.
267         * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
269 2001-02-17  Mark Wielaard <mark@klomp.org>
271         * java/util/TimerTask.java: New version from Classpath.
273 2001-02-17  Mark Wielaard <mark@klomp.org>
275         Remerge with Classpath
276         (changes by Bryce McKinlay  <bryce@albatross.co.nz>)
277         * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
278         (readByte): Use convertToByte().
279         (readChar): Use convertToChar().
280         (readInt): Use convertToInt().
281         (readLong): Use convertToLong().
282         (readShort): Use convertToShort().
283         (readUnsignedByte): Use convertToUnsignedByte().
284         (readUnsignedShort): Use convertToUnsignedShort().
285         (readUTF): Use convertToUTF().
287         (convertToBoolean): Resurrected.
288         (convertToByte): Ditto.
289         (convertToChar): Ditto.
290         (convertToInt): Ditto.
291         (convertToLong): Ditto.
292         (convertToShort): Ditto.
293         (convertToUnsignedByte): Ditto.
294         (convertToUnsignedShort): Ditto.
295         (convertToUTF): Ditto.
297 2001-02-17  Mark Wielaard <mark@klomp.org>
299         * HACKING: new file
301 2001-02-17  Mark Wielaard <mark@klomp.org>
303         * java/io/DataInputStream.java: update copyright notice
304         * java/io/PrintWriter.java: idem
305         * java/io/Reader.java: idem
306         * java/io/StreamTokenizer.java: idem
307         * java/io/StringReader.java: idem
308         * java/lang/reflect/ReflectPermission.java: idem
310 2001-02-16  Bryce McKinlay  <bryce@albatross.co.nz>
312         * java/util/TreeSet.java (clone): Made subclass safe, use 
313         super.clone(), not new.
314         * java/util/TreeMap.java (clone): Likewise.
315         
316         * java/util/TreeMap.java (nil): Made non-final.
317         (clone): Create new nil node for copy.
318         
319         * java/util/HashSet.java (clone): Made subclass safe, use 
320         super.clone(), not new.
322 2001-02-14  Andrew Haley  <aph@redhat.com>
324         * include/i386-signal.h (INIT_SEGV): Use a direct system call to
325         set the handler.
327 2001-02-15  Anthony Green  <green@redhat.com>
329         * defineclass.cc: Don't include alloca.h.
330         (prepare_pool_entry): Convert alloca to __builtin_alloca.
331         * interpret.cc (run_normal): Ditto.
332         (continue1): Ditto.
333         * java/lang/natDouble.cc (parseDouble): Ditto.
335 2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
337         * java/util/TreeSet.java (clone): Call TreeMap.clone(), not 
338         Object.clone().
339         * java/util/Collections.java (ReverseComparator): New static class.
340         (reverseOrder): Return static instance of ReverseComparator.
341         
342         * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
343         * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call 
344         Rectangle.clone(), not Object.clone().
346         * java/util/HashSet.java (clone): Remove try/catch.
347         
348         * java/util/AbstractSequentialList.java: Synchronize with Classpath.
349         * java/util/Collection.java: Likewise.
350         * java/util/Comparator.java: Likewise.
351         * java/util/Dictionary.java: Likewise.
352         * java/util/Iterator.java: Likewise.
353         * java/util/ListIterator.java: Likewise.
354         * java/util/Map.java: Likewise.
355         * java/util/Set.java: Likewise.
357 2001-02-14  Bryce McKinlay  <bryce@albatross.co.nz>
359         * java/util/TreeMap.java: New file.
360         * java/util/TreeSet.java: New file.
361         * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
362         * Makefile.in: Rebuilt.
363         * java/util/HashSet.java (clone): Use constructor instead of calling
364         clone on itself.
365         * java/util/SortedSet.java: Sync with classpath.
366         * java/util/HashMap.java (hash): Use if statement instead of ternary,
367         for clarity.
368         
369         * java/lang/natClass.cc (getSignature): Don't try to dereference 
370         param_types if it is null. Instead, take this to mean "no parameters".
371         * java/lang/TreeMap.java (TreeIterator.next): Throw 
372         NoSuchElementException in preference to ConcurrentModificationException.
373         (TreeIterator.remove): Throw IllegalStateException in preference to 
374         ConcurrentModificationException.
375         (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
376         throw a NoSuchElementException.
377         (SubMap.lastKey): Likewise.
379 2001-02-13  Tom Tromey  <tromey@redhat.com>
381         * java/io/PipedReader.java (ready): Throw IOException if pipe
382         closed.
383         * java/io/FilterReader.java (close): Don't clear `in'.
384         * java/io/CharArrayReader.java (mark): Throw IOException if stream
385         closed.
386         (read, ready, reset, skip): Added exception message.
387         * java/io/BufferedReader.java (mark, reset, ready, read, skip):
388         Perform checkStatus check inside synchronized block.
390 2001-02-13  Tom Tromey  <tromey@redhat.com>
392         * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
394 2001-02-13  Tom Tromey  <tromey@redhat.com>
396         Fix for PR libgcj/1351:
397         * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
398         interrupted.
399         Include Thread.h and InterruptedIOException.h.
401 2001-02-13  Bryce McKinlay  <bryce@albatross.co.nz>
403         * java/io/BlockDataException.java: Removed.
404         * java/io/ObjectInputStream.java (readObject): Throw 
405         StreamCorruptedException, not BlockDataException.
406         * Makefile.am: Remove BlockDataException.
407         * Makefile.in: Rebuild.
409 2001-02-12  Jeff Sturm  <jeff.sturm@commerceone.com>
410             Tom Tromey  <tromey@redhat.com>
412         * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
413         null pointer check.
415 2001-02-09  Tom Tromey  <tromey@redhat.com>
417         * java/util/Timer.java: New version from Classpath.
419 2001-02-09  Bryce McKinlay  <bryce@albatross.co.nz>
421         * java/lang/Double.java (doubleToRawLongBits): Now native.
422         * java/lang/Float.java (floatToRawIntBits): Likewise.
423         * java/lang/natDouble.cc (doubleToRawLongBits): New method.
424         * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
426 2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>
428         * java/io/File.java (java.net): Imported.
429         (getAbsoluteFile): Added.
430         (getCanonicalPath): Likewise.
431         (toURL): Likewise.
433 2001-02-08  Bryce McKinlay  <bryce@albatross.co.nz>
435         * java/lang/Byte.java: Remove redundant instanceof and null checks.
436         * java/lang/Integer.java: Likewise.
437         * java/lang/Long.java: Likewise.
438         * java/lang/Short.java: Likewise.
439         * java/lang/Double.java: Likewise.
440         (doubleToRawLongBits): New method.
441         * java/lang/Float.java: As above.
442         (floatToRawIntBits): New method.
444         * java/io/OutputStreamWriter.java: (flush, writeChars): Throw 
445         IOException if stream closed.
447 2001-02-08  Tom Tromey  <tromey@redhat.com>
449         * java/lang/Float.java (parseFloat): New method.
451 2001-02-08  Tom Tromey  <tromey@redhat.com>
453         From paul@dawa.demon.co.uk.  Fix for PR libgcj/1913:
454         * java/io/InputStreamReader.java (ready, read): Throw IOException
455         if stream has been closed.
457 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
459         * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
460         Change sources.redhat.com and sourceware.cygnus.com references to
461         gcc.gnu.org.
463 2001-02-07  Tom Tromey  <tromey@redhat.com>
465         Fix for PR libgcj/1906:
466         * java/text/MessageFormat.java (setLocale): Use named class
467         literals.
468         (forName): Removed.
469         (format(Object,StringBuffer,FieldPosition)): Special case if
470         argument is an Object[].
472 2001-02-07  Bryce McKinlay  <bryce@albatross.co.nz>
474         * java/util/Arrays.java: Removed "cmp" methods.
475         (qsort): Don't use "cmp".
476         (med3): Likewise.
478 2001-02-07  Mark Benvenuto  <mcb54@columbia.edu>
480         * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
481         sort. Fix for PR java/1895.
483 2001-02-03  Jeff Sturm  <jeff.sturm@commerceone.com>
485         * configure.host: Use sjlj-exceptions for Alpha.
487 2001-02-03  Bryce McKinlay  <bryce@albatross.co.nz>
489         * libgcj.spec.in: Don't force static libgcc into the executable.
490         * configure.in (FORCELIBGCCSPEC): Removed.
491         * configure: Rebuilt.
493 2001-01-31  Tom Tromey  <tromey@redhat.com>
495         * Makefile.in: Rebuilt.
496         * Makefile.am (LTCXXCOMPILE): New macro.
498 2001-01-26  Andrew Haley  <aph@redhat.com>
500         (INIT_FPE): Use a direct system call to set the handler.
501         
502 2001-01-27  Richard Henderson  <rth@redhat.com>
504         * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
506 2001-01-27  Tom Tromey  <tromey@redhat.com>
508         * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
509         native interface structure.
511 2001-01-27  Bryce McKinlay  <bryce@albatross.co.nz>
513         * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
514         result unsigned.
515         (read (byte[], int, int)): Only call readNextBlock() if the block 
516         buffer would actually be overrun. Increment blockDataPosition.
517         (callReadMethod): Propagate exceptions from invocation target.
518         * java/io/ObjectOutputStream.java (callWriteMethod): Propagate 
519         exceptions from invocation target.
521 2001-01-26  Tom Tromey  <tromey@redhat.com>
523         * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
524         to internal representation.
525         (_Jv_JNI_GetAnyFieldID): Likewise.  Also, only use
526         _Jv_FindClassFromSignature.
528 2001-01-26  Warren Levy  <warrenl@redhat.com>
530         * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
531         and timezone if they are available on the system.
533 2001-01-24  Tom Tromey  <tromey@redhat.com>
535         * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
537 2001-01-24  Tom Tromey  <tromey@redhat.com>
539         * Makefile.in: Rebuilt.
540         * Makefile.am (c_source_files): Added sf_fabs.c.
541         * java/lang/sf_fabs.c: New file.
543 2001-01-19  Warren Levy  <warrenl@redhat.com>
545         * java/text/SimpleDateFormat.java (format): Compute hour for cases
546         HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
547         correctly.  Adjust properly from 0-23 clock hour.
549 2001-01-17  Mark Wielaard  <mark@klomp.org>
551         * java/bean/Beans.java (instantiate): enable Applet code from Classpath
553 2001-01-17  Bryce McKinlay  <bryce@albatross.co.nz>
555         * java/lang/Class.h (isInterface): Move implementation from 
556         natClass.cc. Declare inline.
557         (Class): Add default constructor.
558         * java/lang/Object.h: Update comments.
559         * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
560         initialize superclass, saving a call if super is already initialized.
562 2001-01-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>
564         * prims.cc (init_prim_class): Deleted.
565         (DECLARE_PRIM_TYPE): Rewritten.
566         * java/lang/Class.h (stdio.h): Include removed.
567         (stddef.h): Included.
568         (java/lang/reflect/Modifier.h): Likewise.
569         (Class): Contructor now takes arguments, initializes fields.
570         (initializePrim): Prototype deleted.
571         * java/lang/natClass.cc (initializePrim): Deleted.
573 2001-01-16  Warren Levy  <warrenl@redhat.com>
575         * java/math/BigInteger.java: Update Copyright year.
577 2001-01-16  Hans Boehm  <hans_boehm@hp.com>
579         * java/math/BigInteger.java (setShiftRight): Only do negative shift
580         if count != 0.
582 2001-01-14  Mark Wielaard  <mark@klomp.org>
583         * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
584         (decode): Merge comments with Classpath, don't throw Exception
586 2001-01-12  Tom Tromey  <tromey@redhat.com>
588         * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
589         Wrote.
590         (setCursor): Wrote.
591         Include Cursor.h.
592         * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
593         * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
594         * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
595         * gnu/awt/gtk/GtkLabelPeer.java: New file.
596         * gnu/awt/gtk/GtkButtonPeer.java: New file.
598         * java/lang/natSystem.cc: Include locale.h if it exists.
599         * configure: Rebuilt.
600         * configure.in: Check for locale.h.
602 2001-01-11  Tom Tromey  <tromey@redhat.com>
604         * java/awt/Cursor.java (Cursor(String)): Set type to custom.
605         (Cursor(int), getPredefinedCursor): Throw exception if argument
606         invalid.
608 2001-01-03  Tom Tromey  <tromey@redhat.com>
610         * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
611         (getLocationOnScreen): Wrote.
613 2001-01-11  Bryce McKinlay  <bryce@albatross.co.nz>
615         * Makefile.am: Re-enable dependencies.
616         * Makefile.in: Rebuilt.
618 2001-01-10  Warren Levy  <warrenl@redhat.com>
620         * java/math/BigDecimal.java (divide): Fixed comment.
622 2001-01-10  Warren Levy  <warrenl@redhat.com>
624         Fix for PR libgcj/1596:
625         * java/math/BigDecimal.java (divide): Check newScale for validity.
626         Ensure that BigInteger.pow() is called with a non-negative value.
627         (setScale (int)): New public method.
628         (setScale (int,int)): New public method.
630 2001-01-09  Oskar Liljeblad <osk@hem.passagen.se>
632         Fix for PR libgcj/1338:
633         * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
634         commentChar.  Fixed typos in comments.
636 2001-01-08  Warren Levy  <warrenl@redhat.com>
638         Fix for PR libgcj/1411:
639         * Makefile.am: Removed java/util/natTimeZone.cc.
640         * Makefile.in: Rebuilt.
641         * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
642         missing localized timezone names.
643         * java/lang/System.java (getDefaultTimeZoneId): New private method.
644         * java/lang/natSystem.cc (getSystemTimeZone): New private method.
645         (init_properties): Set user.timezone property.
646         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
647         default timezone names; removed non-standard ones.  Use standard
648         ID names per JCL.
649         * java/util/Date.java (toGMTString): Removed zoneGMT variable.
650         (UTC): Ditto.
651         * java/util/TimeZone.java: Add standard ID names per JCL; removed
652         non-standard ones.
653         (getDefaultTimeZoneId): Removed.
654         (zoneGMT): Removed.
655         * java/util/natTimeZone.cc: Removed.
657 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
659         * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
660         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
661         (_Jv_GetArrayClass): New inline function.
662         (arrayclass): New field.
663         * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
664         _Jv_GetArrayElementFromElementType. 
665         (_Jv_NewPrimArray): Ditto.
666         (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
667         "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
668         Set Modifier::ABSTRACT.
669         * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
670         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void. 
671         Now synchronized. Array classes are now referenced from
672         elementClass->arrayclass. Don't use _Jv_FindClassInCache.
673         Set array classes' accessibility flags correctly. Optimize so that
674         all array classes share the same IDT.
675         * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
676         * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
677         * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
678         in superclasses from overwriting classes own fields.
679         (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
680         Modifier::isAbstract().
681         (null_idt): New static field.
682         (_Jv_PrepareConstantTimeTables): Optimize case where class implements
683         no interfaces.
684         (_Jv_IndexOf): Made inline.
685         * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
687 2001-01-08  Tom Tromey  <tromey@redhat.com>
689         Fix for PR java/1586:
690         * Makefile.in: Rebuilt.
691         * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
693 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
695         * Makefile.am: Use the new "-M -MF" option for generating dependencies
696         from the c++ compiler.
697         * Makefile.in: Rebuilt.
699 2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
701         All files with updated copyright.
702         * prims.cc (class _Jv_PrimClass): Removed.
703         (init_prim_class): New function.
704         (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
705         `_Jv_PrimClass' in primitive type declarations. Assign to the
706         value returned by `init_prim_class.'
707         * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
708         primitive type declarations.
709         (JvPrimClass): Cast to `jclass' removed.
710         * java/lang/Class.h (Class): New constructor.
711         (Class): New copy constructor.
712         (initializePrim): New prototype.
713         (_Jv_PrimClass): Field removed.
714         * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
715         nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
716         (class java::lang::Object): `finalize' moved up front.
717         * java/lang/natClass.cc 
718         (isAssignableFrom): Turned outline.
719         (isInstance): Likewise.
720         (isInterface): Likewise, fixed indentation.
721         (initializePrim): New function.
723 2001-01-07  Anthony Green  <green@redhat.com>
725         * Makefile.am (texinfo): Add texinfo target for generating texinfo
726         documentation.
727         * Makefile.in: Rebuilt.
729         * scripts/TexinfoDoclet.java: New file.
731         * doc/java-applet.texi, doc/java-lang-reflect.texi,
732         doc/java-awt-color.texi, doc/java-lang.texi,
733         doc/java-awt-datatransfer.texi, doc/java-math.texi,
734         doc/java-awt-event.texi, doc/java-net.texi,
735         doc/java-awt-geom.texi, doc/java-security-spec.texi,
736         doc/java-awt-image.texi, doc/java-security.texi,
737         doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
738         doc/java-text.texi, doc/java-beans-beancontext.texi,
739         doc/java-util-jar.texi, doc/java-beans.texi,
740         doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
741         doc/java-lang-ref.texi: New files.
743 2001-01-07  Anthony Green  <green@redhat.com>
745         * java/net/URLConnection.java (setDoOutput): URLConnection's may
746         be used for both input and output, so don't clear doInput.
748         * java/lang/StringBuffer.java: Fix comments.
750 2001-01-06  Anthony Green  <green@redhat.com>
752         * java/beans/PropertyDescriptor.java: Fix comment.
753         * java/io/PushbackReader.java: Fix comment.
754         * java/io/ObjectStreamClass.java: Fix comment.
755         * java/io/DataInputStream.java: Fix comment.
756         * java/io/PipedInputStream.java: Fix comments.
757         * java/io/PipedReader.java: Fix comments.
758         * java/sql/DatabaseMetaData.java: Fix comments.
760 2001-01-06  Bryce McKinlay  <bryce@albatross.co.nz>
762         * java/io/PipedReader: Synchronize on "lock" instead of this.
764 2001-01-05  Bryce McKinlay  <bryce@albatross.co.nz>
766         * java/lang/Thread.java: Update comment.
768         * java/io/PipedInputStream: Rewrote to be simpler and more correct.
769         * java/io/PipedOutputStream: Updated to match new PipedInputStream.
770         * java/io/PipedReader: New implementation based on new 
771         PipedInputStream.
772         * java/io/PipedWriter: Updated to match new PipedReader.
774 2001-01-03  Tom Tromey  <tromey@redhat.com>
776         * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
777         (getViewportSize): Insets include scrollbar size.
778         (doLayout): Finished.
779         (getScrollPosition): Wrote.
780         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
782 2001-01-02  Tom Tromey  <tromey@redhat.com>
784         * java/awt/ScrollPane.java: Wrote.
785         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
786         method.
788         * java/awt/Panel.java (Panel()): Fixed.
790         * java/awt/Component.java (isShowing): Return false if no peer
791         exists, and true if component is visible and no parent exists.
792         (getLocationOnScreen): Wrote.
793         (getPreferredSize): Removed FIXME comment.
794         (getMinimumSize): Likewise.
795         (getAlignmentX, getAlignmentY): Wrote.
796         (list): Wrote.
797         (requestFocus): Wrote.
798         (transferFocus): Wrote.
799         (findNextFocusComponent): New method.
800         (hasFocus()): Wrote.
801         (checkImage): Wrote.
802         (enableEvents): Call setEventMask on the peer.
804         * java/awt/Container.java (list): Use super.list() to print self.
805         (findNextFocusComponent): New method.
806         (setLayout): Call invalidate.
807         (findComponentAt): Wrote.
809 2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>
811         * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
812         the correct versions of various linuxthreads functions get linked.
813         * Makefile.in: Rebuilt.
814         * java/lang/natThread.cc (finalize_native): New static function. Call
815         _Jv_ThreadDestroyData.
816         (initialize_native): Register finalizer for "data".
817         * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
818         (_Jv_ThreadDestroyData): New prototype.
819         * include/win32-threads.h: Ditto.
820         * include/no-threads.h: Ditto.
821         * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
822         (_Jv_ThreadDestroyData): New function. Free native thread "data" and 
823         move mutex and condition variable destroy code from:
824         (really_start): ...here.
825         (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
826         * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
827         (_Jv_ThreadDestroyData): Implemented.
828         * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
829         (_Jv_AllocArray): Ditto.        
830         
831 2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>
833         * java/sql/DriverManager.java (getConnection): Don't set user/password
834         properties if null.
836 2000-12-27  Warren Levy  <warrenl@redhat.com>
838         Fix for PR libgcj/1358:
839         * java/lang/System.java: Update Copyright date properly.
840         * java/util/Calendar.java: Fix typo in comment.
841         (set): Set 24-hour clock hour instead of 12-hour clock hour.
842         * java/util/GregorianCalendar.java (GregorianCalendar): Properly
843         initialize times.  Spec says to set H:M:S values to zero only if
844         a date is given.
845         * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
846         needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
847         * java/util/natGregorianCalendar.cc (computeTime): Properly handle
848         timezones and GMT offsets, being careful to account for units of
849         milliseconds vs. seconds.
851 2000-12-28  Bryce McKinlay  <bryce@albatross.co.nz>
853         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
854         not be assigned to Object.
856         Fix for PR libgcj/1516:
857         * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
858         Add boolean entry.
859         (can_widen): Declared inline. Remove redundant checks for void 
860         arguments and char->short conversion. Add special case for boolean 
861         conversions.
862         (ffi_type): Declared inline.
863         (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
865 2000-12-26  Petter Reinholdtsen  <pere@hungry.com>
867         * java/sql/SQLWarning.java: Fixed typo in comment.
869 2000-12-26  Tom Tromey  <tromey@redhat.com>
871         * java/awt/MenuItem.java (paramString): Now protected.
873         * java/awt/MenuShortcut.java: Implements Serializable.
875         * java/awt/MenuBar.java: Rewrote from scratch.
877         * java/awt/MenuComponent.java (removeNotify): Wrote.
878         Implements Serializable.
880         * java/awt/GridBagConstraints.java (GridBagConstraints): New
881         constructor.
883         * java/awt/CheckboxMenuItem.java: Wrote.
885 2000-12-25  Tom Tromey  <tromey@redhat.com>
887         * java/awt/MenuContainer.java: Fixed typo.
889         * Makefile.in: Rebuilt.
890         * Makefile.am (awt_java_source_files): Added SystemColor.java.
891         * java/awt/SystemColor.java: New file.
893         * java/awt/Color.java (rgba): Now package-private.
895         * java/awt/event/InputEvent.java (isAltGraphDown): New method.
897         * java/awt/event/ContainerEvent.java (getContainer): Renamed from
898         getComponent.
900         * java/awt/MenuItem.java (addNotify): New method.
901         (MenuItem(String,MenuShortcut)): New constructor.
902         (setLabel): Notify peer of change.
903         (setEnabled): Likewise.
905         * java/awt/GridLayout.java (toString): New method.
907         * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
908         (FlowLayout): Check for LEADING and TRAILING.
909         (setAlignment): Likewise.
910         (layoutContainer): Handle component orientation.
912         * java/awt/Component.java (orientatin): New field.
913         (setComponentOrientation): Wrote.
914         (getComponentOrientation): Wrote.
916         * java/awt/Event.java (Event): Implements Serializable.
917         (consumed): New field for serialization.
918         * java/awt/Dimension.java (Dimension): Implements Serializable.
919         * java/awt/Cursor.java (Cursor): Implements Serializable.
920         * java/awt/Container.java (Container): No longer abstract.
922         * java/awt/Choice.java: Wrote.
923         * java/awt/Checkbox.java: Wrote.
924         * java/awt/ItemSelectable.java: Documented.
925         * java/awt/CheckboxGroup.java: Wrote.
927         * java/awt/CardLayout.java (layoutContainer): Directly use fields
928         in other classes.
929         (getSize): Likewise.
931 2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>
933         * java/io/FileDescriptor.java: Initialize fd to -1.
934         Remove default constructor.
936 2000-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
938         * java/lang/mprec.h: Change C9X reference to refer to C99.
940 2000-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
942         * java/lang/Throwable.java (trace_enabled): New static field.
943         * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
944         trace_enabled not set.
945         * prims.cc (main_init): Turn off trace_enabled while creating
946         default exception objects.
948 2000-12-21  Tom Tromey  <tromey@redhat.com>
950         * java/beans/PropertyChangeListener.java: Extends EventListener.
951         * java/beans/VetoableChangeListener.java: Extends EventListener.
953         * java/util/zip/Deflater.java (update, init): Now private.
955 2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
957         * java/util/BasicMapEntry.java: Re-added.
958         * java/util/HashMap.java (Entry): Extend BasicMapEntry.
959         (putAll): Test for BasicMapEntry.
960         * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
961         (putAll): Test for BasicMapEntry.
962         Change references from `HashMap.Entry' to `Entry' in various places.
963         * Makefile.am: Add BasicMapEntry.java.
964         * Makefile.in: Rebuilt.
966 2000-12-18  Warren Levy  <warrenl@redhat.com>
968         * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
969         need to set timezone to a valid non-null value.  Partial fix for
970         PR 331.
972 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
974         * java/awt/Window.java (addNotify): Remove peer casting hack now that 
975         gcj/312 is fixed.
976         * java/awt/Button.java (addNotify): Likewise.
977         * java/awt/Label.java (addNotify): Likewise.
978         * java/awt/Panel.java (addNotify): Likewise.
979         * java/awt/Scrollbar.java (addNotify): Likewise.
980         * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
981         Remove redundant null checks.
983 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
985         * COPYING: Update to current
986         ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
987         to 19yy as example year in copyright notice).
989 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
991         * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as 
992         end-of-stream if avail_in is 0.
994 2000-12-17  Bryce McKinlay  <bryce@albatross.co.nz>
996         * java/util/ArrayList.java (data): Declare transient.
997         (serialPersistantFields): Removed.
998         (readObject): Use defaultReadObject(), not readFields().
999         (writeObject): Use defaultWriteObject(), not writeFields().
1001 2000-12-17  Jeff Sturm  <jeff.sturm@commerceone.com>
1003         * java/util/Hashtable.java (put): Remove `last' variable.
1004         Link new entry to head of list.
1005         * java/util/HashMap.java (put): Ditto.
1007 2000-12-15  Tom Tromey  <tromey@redhat.com>
1009         * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
1010         loader to Class.forName.
1012 2000-12-14  Tom Tromey  <tromey@redhat.com>
1014         * java/util/ResourceBundle.java
1015         (getBundle(String,Locale,ClassLoader)): New method.
1016         (trySomeGetBundle): Added `loader' argument.
1017         (partialGetBundle): Likewise.
1019         * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
1020         maximumFractionDigits, maximumIntegerDigits,
1021         minimumFractionDigits, minimumIntegerDigits): Now
1022         package-private.
1024         * java/lang/Thread.java (checkAccess): Now final.
1026         * java/lang/RuntimePermission.java: Class now final.
1028         * java/io/StringWriter.java (StringWriter(int)): Now public.
1030         * java/io/SerializablePermission.java (legal_names): Now private.
1032         * java/lang/Character.java: Updated UnicodeBlock constants.
1033         * scripts/blocks.pl: Special case private use and surrogate
1034         areas.  Updated URL.
1036 2000-12-12  Tom Tromey  <tromey@redhat.com>
1038         * Makefile.in: Rebuilt.
1039         * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
1040         option.
1041         (GCJCOMPILE): Use it.
1042         (JAVAC): Likewise.
1044 2000-12-11  Tom Tromey  <tromey@redhat.com>
1046         * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
1047         New static final fields.
1049         * scripts/classes.pl (scan): Skip lines with leading `*'.
1050         Fix for PR libgcj/378.
1052 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
1054         * configure.in: Remove check for -fuse-divide-subroutine.
1055         * configure: Rebuilt.
1056         
1057         * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
1059         * gcj/javaprims.h: Rebuilt CNI namespace declarations.
1060         
1061 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
1063         * Makefile.am: Add HashSet.java and java/lang/ref classes.
1064         Remove BasicMapEntry.java and Bucket.java.
1065         * Makefile.in: Rebuilt.
1066         * java/util/HashMap.java: Rewritten.
1067         * java/util/HashSet.java: Imported from classpath.
1068         * java/util/WeakHashMap.java: Imported from classpath.
1069         * java/util/Hashtable.java: Rewritten based on new HashMap code.
1070         * java/util/Bucket.java: Deleted.
1071         * java/util/BasicMapEntry.java: Deleted.
1072         * java/util/Collections.java (search): Use a for-loop, not iterator
1073         hasNext().
1074         (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out 
1075         of elements in source.
1076         (max): Use a for-loop.
1077         (min): Ditto.
1078         (reverse): Keep track of positions instead of using Iterator's 
1079         nextIndex() and previousIndex().
1080         (shuffle(List)): Initialize defaultRandom if required using 
1081         double-check thread safety idiom. Call two-argument shuffle method 
1082         using defaultRandom.
1083         (defaultRandom): New field.
1084         (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1085         using previousIndex() and nextIndex().
1086         (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1087         * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1088         * java/util/AbstractMap.java (toString): Use StringBuffer.
1089         * java/lang/ref/PhantomReference.java: Imported from classpath.
1090         * java/lang/ref/SoftReference.java: Ditto.
1091         * java/lang/ref/Reference.java: Ditto.
1092         * java/lang/ref/WeakReference.java: Ditto.
1093         * java/lang/ref/ReferenceQueue.java: Ditto.
1095 2000-12-10  Richard Henderson <rth@redhat.com>
1096         
1097         * configure.host: Recognize alpha*-*, not alphaev6-*.
1099 2000-12-09  Anthony Green  <green@redhat.com>
1101         * configure.host: Enable interpreter for Alpha.
1103 2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1105         * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1106         (ZIP): Points at fastjar instead of zip.
1107         (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1108         (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1109         (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1110         (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1111         ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1112         ($(x_java_source_files:.java=.class):): Likewise.
1113         (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1114         fastar's flags.
1115         (CLEANFILES): libgcj.jar replaces libgcj.zip.
1116         (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1117         (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1118         java/lang/String.h:, java/lang/reflect/Constructor.h:,
1119         java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1120         gnu/gcj/runtime/VMClassLoader.h:,
1121         java/io/ObjectInputStream$$GetField.h:, 
1122         java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1123         (Makefile.in): Rebuilt.
1124         
1125 2000-12-08  Tom Tromey  <tromey@redhat.com>
1127         From Phil Edwards:
1128         * configure: Rebuilt.
1129         * configure.in: Use echo, not `:', to create .d files.
1131 2000-12-08  Warren Levy  <warrenl@redhat.com>
1133         * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1134         NullPointerException so proper check of offset can be done.
1136 2000-12-08  Warren Levy  <warrenl@redhat.com>
1138         * java/io/FileInputStream.java (close): Check if the fd is valid.
1139         * java/io/RandomAccessFile.java (close): Ditto.
1140         * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1141         * java/net/PlainSocketImpl.java (close): Ditto.
1143 2000-12-06  Tom Tromey  <tromey@redhat.com>
1145         * java/awt/GridBagConstraints.java: Filled in values for static
1146         final fields.
1148         * java/util/BitSet.java: Updated copyright notice.
1150         * Makefile.in: Rebuilt.
1151         * Makefile.am (awt_java_source_files): Added new file.
1152         * java/awt/GridBagConstraints.java: New file.
1154 2000-12-05  Tom Tromey  <tromey@redhat.com>
1156         * java/text/Collator.java (decomposeCharacter, decmp, strength):
1157         Now package-private, not protected.
1158         * java/text/DateFormatSymbols.java (equals): Now private.
1159         * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1160         * java/util/BitSet.java: Class no longer final.
1162 2000-12-04  Warren Levy  <warrenl@redhat.com>
1164         * java/util/TimeZone.java (getAvailableIDs): Activated commented
1165         out code dependent on compiler and library changes.
1167 2000-12-04  Warren Levy  <warrenl@redhat.com>
1169         * java/io/FilePermission.java: Made class final per spec.
1170         * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1171         method name to match spec (fixed typo).
1172         * java/util/LinkedList.java: Implements List.
1174 2000-12-04  Bryce McKinlay  <bryce@albatross.co.nz>
1176         * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From 
1177         Edgar Villanueva <edgarvil@home.com>.
1179 2000-12-03  Tom Tromey  <tromey@redhat.com>
1181         * java/awt/geom/Point2D.java: Added protected constructor.
1182         (equals): New method.
1183         (Float.setLocation(float,float)): New method.
1184         * java/awt/geom/Dimension2D.java: Added protected constructor.
1185         * java/awt/geom/AffineTransform.java: Made all constants public.
1186         (concatenate): Fixed typo in name.
1187         * java/awt/event/WindowAdapter.java: Class now abstract.
1188         * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1189         * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1190         AWTEvent.
1192         * java/awt/AWTError.java: Extend Error, not
1193         IllegalStateException.
1195         * Makefile.in: Rebuilt.
1196         * Makefile.am (awt_java_source_files): Added new file.
1197         * java/awt/geom/RoundRectangle2D.java: New file.
1199         * Makefile.in: Rebuilt.
1200         * Makefile.am (awt_java_source_files): Added new file.
1201         * java/awt/FlowLayout.java: New file.
1203         * Makefile.in: Rebuilt.
1204         * Makefile.am (awt_java_source_files): Added new file.
1205         * java/awt/GridLayout.java: New file.
1207 2000-12-02  Tom Tromey  <tromey@redhat.com>
1209         * Makefile.in: Rebuilt.
1210         * Makefile.am (awt_java_source_files): Added new files.
1211         * java/awt/CardLayout.java: New file.
1212         * java/awt/AWTPermission.java: New file.
1214 2000-12-01  Tom Tromey  <tromey@redhat.com>
1216         * java/util/Vector.java (insertElementAt): Unconditionally
1217         increment elementCount.
1218         (removeRange): Clear unused slots in vector.
1220 2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
1222         * java/lang/natMath.cc: Declare fabsf() function.
1223         * java/lang/mprec.h: Don't include math.h.
1224         * java/lang/dtoa.c: Include string.h.
1225         * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1226         compiler warning.
1227         
1228         From Adam Welc <welc@cs.purdue.edu>:
1229         * java/util/LinkedList.java (removeFirst): Update `first' field.
1230         Handle the last == first case.
1231         (removeLast): Update `last' field. Handle the last == first case.
1233 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1235         * Makefile.am: Added entries for new java.sql modules.
1236         * Makefile.in: Rebuilt.
1238 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1240         * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1241         that aren't quite 1.2 compatible yet.
1243 2000-11-30  Warren Levy  <warrenl@cygnus.com>
1245         * java/sql/Array.java: New file from classpath.
1246         * java/sql/BatchUpdateException.java: Ditto.
1247         * java/sql/Blob.java: Ditto.
1248         * java/sql/Clob.java: Ditto.
1249         * java/sql/Ref.java: Ditto.
1250         * java/sql/SQLData.java: Ditto.
1251         * java/sql/SQLInput.java: Ditto.
1252         * java/sql/SQLOutput.java: Ditto.
1253         * java/sql/Struct.java: Ditto.
1254         * java/sql/CallableStatement.java: Merged file from claspath.
1255         * java/sql/Connection.java: Ditto.
1256         * java/sql/DataTruncation.java: Ditto.
1257         * java/sql/DatabaseMetaData.java: Ditto.
1258         * java/sql/DriverManager.java: Ditto.
1259         * java/sql/PreparedStatement.java: Ditto.
1260         * java/sql/ResultSet.java: Ditto.
1261         * java/sql/ResultSetMetaData.java: Ditto.
1262         * java/sql/SQLException.java: Ditto.
1263         * java/sql/SQLWarning.java: Ditto.
1264         * java/sql/Statement.java: Ditto.
1265         * java/sql/Types.java: Ditto.
1267 2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>
1269         * java/lang/natSystem.cc (init_properties): Set user.language and
1270         user.region.
1271         * configure.in: Check for setlocale.
1272         * configure: Rebuilt.
1273         * include/config.h.in: Rebuilt.
1274         
1275         * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1276         the infate() call didn't deliver any output. Throw a ZipException if
1277         the needsDictionary() call returns true.
1278         * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1279         * java/io/InputStreamReader: Use the default buffer size for the
1280         contained BufferedInputStream.
1282 2000-11-28  Warren Levy  <warrenl@cygnus.com>
1284         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1285         more time zone entries.
1286         * java/text/SimpleDateFormat.java (format): Added case for
1287         TIMEZONE_FIELD.
1289 2000-11-28  Bryce McKinlay  <bryce@albatross.co.nz>
1291         * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1292         directly rather than read() in all cases. Make primitive read 
1293         implementations more efficient, as defined in JDK online docs.
1294         (skipBytes): Behave like the JDK's implementation.
1295         * java/io/BufferedReader.java: Merge classpath docs. Check for a 
1296         closed stream with checkStatus() whenever an IOException can be 
1297         thrown.
1298         (checkStatus): New private method.
1300 2000-11-27  Warren Levy  <warrenl@cygnus.com>
1302         * Makefile.am: Added natTimeZone.cc.
1303         * Makefile.in: Rebuilt.
1304         * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1305         * java/text/DateFormatSymbols.java (ampms): Made package private.
1306         (eras): Made package private.
1307         (months): Made package private.
1308         (shortMonths): Made package private.
1309         (shortWeekdays): Made package private.
1310         (weekdays): Made package private.
1311         (formatPrefixes): New private field.
1312         (localPatternCharsDefault): Made private.
1313         (dateFormats): New package private field.
1314         (timeFormats): New package private field.
1315         (formatsForKey): New private method.
1316         (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1317         (DateFormatSymbols(DateFormatSymbols)): Ditto.
1318         * java/text/SimpleDateFormat.java: Merged with Classpath.
1319         * java/util/TimeZone.java: Merged with Classpath.
1320         * java/util/natTimeZone.cc: New file.
1322 2000-11-27  Bryce McKinlay  <bryce@albatross.co.nz>
1324         * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1325         (addElement): Don't increment elementCount twice. Doh.
1326         * java/util/ArrayList.java (add): Only call ensureCapacity if the
1327         array needs to be expanded.
1328         (addAll): Ditto.
1329         * java/util/Collections.java (UnmodifiableCollection): Implement
1330         toString().
1331         (UnmodifiableList): Throw UnsupportedOperationException from 
1332         modification methods. Set `l' from the one-parameter constructor.
1333         (UnmodifiableMap): Implement toString().
1334         (SynchronizedCollection): Ditto.
1335         (SynchronizedList): Set `l' from the one-parameter constructor.
1336         (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1337         (SynchronizedMap): Implement toString().
1339 Sun Nov 26 23:59:55 2000  Anthony Green  <green@redhat.com>
1341         * javax/naming/NameParser.java,
1342         javax/naming/directory/AttributeInUseException.java,
1343         javax/naming/directory/AttributeModificationException.java,
1344         javax/naming/directory/InvalidAttributeIdentifierException.java,
1345         javax/naming/directory/InvalidAttributesException.java,
1346         javax/naming/directory/InvalidAttributeValueException.java,
1347         javax/naming/directory/InvalidSearchControlsException.java,
1348         javax/naming/directory/InvalidSearchFilterException.java,
1349         javax/naming/directory/NoSuchAttributeException.java,
1350         javax/naming/directory/SchemaViolationException.java: New files.
1351         
1352 Sun Nov 26 22:35:53 2000  Anthony Green  <green@redhat.com>
1354         * javax/naming/InitialContext.java (rebind): Implement.
1355         (unbind): Implement.
1356         (rename): Implement.
1357         (list): Implement.
1358         (listBindings): Implement.
1359         (destroySubcontext): Implement.
1360         (createSubcontext): Implement.
1361         (lookupLink): Implement.
1362         (getNameParser): Implement.
1363         (composeName): Implement.
1364         (addToEnvironment): Implement.
1366 Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
1368         * javax/naming/AuthenticationException.java,
1369         javax/naming/AuthenticationNotSupportedException.java,
1370         javax/naming/CannotProceedException.java,
1371         javax/naming/CommunicationException.java,
1372         javax/naming/ConfigurationException.java,
1373         javax/naming/ContextNotEmptyException.java,
1374         javax/naming/InsufficientResourcesException.java,
1375         javax/naming/InterruptedNamingException.java,
1376         javax/naming/InvalidNameException.java,
1377         javax/naming/LimitExceededException.java,
1378         javax/naming/LinkException.java,
1379         javax/naming/LinkLoopException.java,
1380         javax/naming/MalformedLinkException.java,
1381         javax/naming/NameAlreadyBoundException.java,
1382         javax/naming/NameNotFoundException.java,
1383         javax/naming/NamingSecurityException.java,
1384         javax/naming/NoPermissionException.java,
1385         javax/naming/NotContextException.java,
1386         javax/naming/PartialResultException.java,
1387         javax/naming/ReferralException.java,
1388         javax/naming/ServiceUnavailableException.java,
1389         javax/naming/SizeLimitExceededException.java,
1390         javax/naming/TimeLimitExceededException.java: New files.
1392         * javax/naming/Name.java (clone): New method.
1393         (compareTo): New method.
1394         (isEmpty): New method.
1395         (getAll): New method.
1396         (getPrefix): New method.
1397         (getSuffix): New method.
1398         (startsWith): New method.
1399         (endsWith): New method.
1400         (addAll): New method.
1401         (addAll): New method.
1402         (add): New method.
1403         (add): New method.
1404         (remove): New method.
1406         * javax/naming/Context.java (lookup): New method.
1407         (rebind): New method.
1408         (unbind): New method.
1409         (rename): New method.
1410         (list): New method.
1411         (listBindings): New method.
1412         (destroySubcontext): New method.
1413         (createSubcontext): New method.
1414         (lookupLink): New method.
1415         (getNameParser): New method.
1416         (composeName): New method.
1417         (addToEnvironment): New method.
1418         (removeFromEnvironment): New method.
1419         (getEnvironment): New method.
1420         (close): New method.
1421         (getNameInNamespace): New method.
1423         * javax/naming/InitialContext.java (lookup): New method.
1424         (rebind): New method.
1425         (unbind): New method.
1426         (rename): New method.
1427         (list): New method.
1428         (listBindings): New method.
1429         (destroySubcontext): New method.
1430         (createSubcontext): New method.
1431         (lookupLink): New method.
1432         (getNameParser): New method.
1433         (composeName): New method.
1434         (addToEnvironment): New method.
1435         (removeFromEnvironment): New method.
1436         (getEnvironment): New method.
1437         (close): New method.
1438         (getNameInNamespace): New method.
1440 2000-11-26  Tom Tromey  <tromey@cygnus.com>
1442         * Makefile.in: Rebuilt.
1443         * Makefile.am (core_java_source_files): Added
1444         RuntimePermission.java.
1445         * java/lang/RuntimePermission.java: Imported from Classpath.
1446         * java/lang/Thread.java (getContextClassLoader): Now
1447         synchronized.  Added security code.
1448         (setContextClassLoader): Likewise.
1450         * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1451         length field of array.
1452         (_Jv_NewPrimArray): Likewise.
1453         * gcj/array.h (__JArray): `length' field now const.  Added
1454         constructor.
1456 2000-11-26  Anthony Green  <green@redhat.com>
1458         * javax/naming/spi/NamingManager.java,
1459         javax/naming/spi/ObjectFactory.java,
1460         javax/naming/spi/InitialContextFactory.java,
1461         javax/naming/spi/InitialContextFactoryBuilder.java,
1462         javax/naming/RefAddr.java, javax/naming/Reference.java,
1463         javax/naming/NamingException.java, javax/naming/Context.java,
1464         javax/naming/Referenceable.java,
1465         javax/naming/directory/InitialDirContext.java,
1466         javax/naming/directory/DirContext.java,
1467         javax/naming/directory/Attributes.java,
1468         javax/naming/directory/Attribute.java,
1469         javax/naming/StringRefAddr.java,
1470         javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1471         javax/naming/InitialContext.java,
1472         javax/naming/NoInitialContextException.java: New files.
1473         
1474 2000-11-25  Anthony Green  <green@redhat.com>
1476         * prims.cc (_Jv_NewObjectArray): Undo placement change.
1477         (_Jv_NewPrimArray): Likewise.
1478         * gcj/array.h (__JArray): Undo const change.  Removed constructor.
1479         (class JArray): Removed constructor.
1481         * java/lang/Thread.java (context_class_loader): New private data.
1482         (getContextClassLoader): New method.
1483         (setContextClassLoader): New method.
1484         (Thread): Initialize context_class_loader.
1486         * java/net/URLClassLoader.java: Import java.util.Enumeration.
1487         (getResource): Rename to findResource.
1488         (findResource): New method.  Used to be getResource.
1489         (getResourceAsStream): Deleted.
1490         (jarFileize): Extracted logic from URLClassLoader constructor into
1491         this new private method.
1492         (addURL): New protected method.
1493         (URLClassLoader): Call jarFileize.  Use addElement instead of
1494         insertElementAt.
1495         (findResources): New method.
1496         
1497         * java/lang/ClassLoader.java: Import java.util.Enumeration.
1498         (getResource): Implement correct logic.
1499         (findResource): New method.
1500         (getResources): New method.
1501         (findClass): Create a ClassNotFoundException with the name of the
1502         class rather than nothing at all.
1503         (defineClass) Only throw ClassFormatError.
1504         
1505         * java/lang/Class.java (forName): New method.
1506         * java/lang/Class.h (forName): New method.
1507         * java/lang/natClass.cc (forName): New method.
1509 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
1511         * java/lang/System.java (setProperties): Only call init_properties()
1512         if properties is null.  
1513         (getProperties): Ditto.
1514         (getProperty): Ditto.
1515         (setProperty): Call init_properties if properties are null.
1516         (prop_init): Remove field.
1517         * java/lang/natSystem.cc (init_properties): Synchronize the entire
1518         method. Check for null properties after synchronizing instead of 
1519         prop_init flag. Set the properties field last for thread safety.
1521         * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1522         test for gcj.dumpobjects property and enable object stream dumping
1523         if it is set.
1524         (dumpElement): No longer native.
1525         (dumpElementln): Ditto.
1526         (setDump): Do not define.
1527         * java/io/natObjectInputStream.cc (dumpElement): Removed.
1528         (dumpElementln): Removed.
1529         (setDump): Removed.
1531 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
1533         * configure: Rebuilt.
1534         * Makefile.in: Rebuilt.
1535         * Makefile.am (built_java_source_files): Add Configuration.java.
1536         * configure.in: Add Configuration.java to CONFIG_FILES. Set 
1537         LIBGCJDEBUG substitution if --enable-libgcj-debug is specified. 
1538         Create `gnu' directory in the build tree.
1539         * gnu/classpath/Configuration.java.in: New file.
1541 2000-11-24  Tom Tromey  <tromey@cygnus.com>
1543         * prims.cc (_Jv_NewObjectArray): Use placement new to create
1544         array.
1545         (_Jv_NewPrimArray): Likewise.
1546         Include <new>.
1547         * gcj/array.h (__JArray): `length' field now const.  Added
1548         constructor.
1549         (class JArray): Added constructor.
1551 2000-11-23  Mark Wielaard  <mark@klomp.org>
1553         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1554         lookup.
1556 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
1558         * java/util/Vector.java: Improve exception messages.
1559         (Vector): Check initialCapacity for IllegalArgumentException.
1560         (tromToSize): Don't check for elementCount == elementData.length
1561         case.
1562         (toArray): Don't try to set null marker if target array is the same
1563         length as the vector.
1565 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
1567         * Makefile.in: Rebuilt.
1568         * Makefile.am (core_java_source_files): Added Collections.java.
1569         * java/util/List.java: Merged from classpath.
1570         * java/util/Vector.java: Ditto. 
1571         * java/util/Collections.java: From classpath.
1572         * java/util/ArrayList.java (addAll(Collection)): Call 
1573         addAll(int,Collection) instead of duplicating code.
1574         (indexOf): Clean up int initialization.
1575         (clear): Set cleared array entries to null, to allow garbage 
1576         collection.
1577         * java/util/List.java: Minor formatting fixes.  
1578         * java/util/SimpleTimeZone.java: ditto.
1579         
1580 2000-11-18  Tom Tromey  <tromey@cygnus.com>
1582         * Makefile.in: Rebuilt.
1583         * Makefile.am (core_java_source_files): Added new files.
1584         * java/lang/reflect/ReflectPermission.java: New class.
1585         * java/io/FileFilter.java: From Classpath
1586         * java/io/FilePermission.java: From Classpath.
1588 2000-11-17  Tom Tromey  <tromey@cygnus.com>
1590         * java/lang/reflect/AccessibleObject.java (isAccessible,
1591         setAccessible): Now public.
1593         * java/lang/natString.cc: Include Locale.h.
1594         (toUpperCase): Added `locale' argument.  Handle locale
1595         sensitivity.
1596         (toLowerCase): Added `locale' argument.  Handle locale
1597         sensitivity.
1598         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1599         CAPITAL_I): New defines.
1600         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1601         final.
1602         Import Locale.
1603         (toUpperCase, toLowerCase): New methods.  Variants which accept
1604         locale now native.
1606         * java/lang/ExceptionInInitializerError.java (printStackTrace):
1607         New methods.
1609         * java/util/PropertyPermission.java: Re-merged from Classpath.
1611         * java/text/RuleBasedCollator.java (getCollationElementIterator):
1612         New method.
1613         * java/text/StringCharacterIterator.java: Reindented.
1614         (setText): New method.
1616 2000-11-17  Mark Wielaard  <mark@klomp.org>
1618         Merge with Classpath (changes by Bryce McKinlay)
1619         * java/util/jar/*.java: Reformat all to unofficial standard coding
1620         style. No changes of substance.
1622 2000-11-17  Mark Wielaard  <mark@klomp.org>
1624         * java/util/zip/*.java: Javadoc updates.
1626 2000-11-17  Tom Tromey  <tromey@cygnus.com>
1628         * java/text/CollationKey.java: Implement Comparable.
1629         (compareTo(Object)): New method.
1630         * java/text/Collator.java (compare(Object,Object)): New method.
1631         Implement Comparator.
1633         * java/util/zip/InflaterInputStream.java (available): New method.
1634         (close): New method.
1635         (read, available, skip, fill): Throw exception if stream closed.
1636         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1637         getNextEntry): Throw exception if closed.
1639 2000-11-16  Tom Tromey  <tromey@cygnus.com>
1641         * java/io/PushbackReader.java: Merged with Classpath.
1642         * java/util/Arrays.java: Updated from Classpath.
1644         * scripts/blocks.pl: New file.
1645         * java/lang/Character.java (Subset): New class.
1646         (UnicodeBlock): New class.
1648         * java/lang/Math.java (toDegrees, toRadians): New methods.
1650         * java/lang/Float.java: Implement Comparable.
1651         (compareTo): New methods.
1652         * java/lang/Double.java: Implement Comparable.
1653         (compareTo): New methods.
1655 2000-11-16  Warren Levy  <warrenl@cygnus.com>
1657         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1658         transient.
1659         (listeners): Made transient.
1660         (source): Renamed from 'bean'.
1661         (children): New field for serialization.
1662         (propertyChangeSupportSerializedDataVersion): Ditto.
1663         (serialVersionUID): Ditto.
1664         (writeObject): New serialization method.
1665         (readObject): New serialization method.
1666         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1667         transient.
1668         (listeners): Made transient.
1669         (source): Renamed from 'bean'.
1670         (children): New field for serialization.
1671         (vetoableChangeSupportSerializedDataVersion): Ditto.
1672         (serialVersionUID): Ditto.
1673         (writeObject): New serialization method.
1674         (readObject): New serialization method.
1675         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1676         to allow constructor to have a return type (i.e. the class that the
1677         constructor constructs).
1679 2000-11-14  Tom Tromey  <tromey@cygnus.com>
1681         * Makefile.in: Rebuilt.
1682         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1683         and -k not given.
1685 2000-11-02  Warren Levy  <warrenl@cygnus.com>
1687         * java/io/ObjectInputStream.java (readObject): Added code to
1688         conditionally dump out the serialized data.
1689         Handle ENDBLOCKDATA case a bit more gracefully since the current
1690         behavior doesn't seem to work as expected.
1691         (readStreamHeader): Added code for serialized data dumper.
1692         (readNextBlock): Ditto.
1693         (readFields): Ditto.
1694         (dump): New private static field for turning on/off dumper.
1695         (setDump): New native method.
1696         (dumpElement): New native method.
1697         (dumpElementln): New native method.
1698         * java/io/natObjectInputStream.cc (setDump): New method.
1699         (dumpElement): New method.
1700         (dumpElementln): New method.
1702 2000-11-02  Warren Levy  <warrenl@cygnus.com>
1704         * java/net/InetAddress.java (addr): Renamed from 'address'.
1705         (address): New field to match Serialized Form doc.
1706         (hostName): Renamed from 'hostname' to match Serialized Form doc.
1707         (family): New serialization field.
1708         (serialVersionUID): New field.
1709         (readObject): New method.
1710         (writeObject): New method.
1711         (getFamily): New native method.
1712         (InetAddress): Set family.
1713         * java/net/natInetAddress.cc (getFamily): New method.
1714         (addr): Renamed from 'address'.
1715         (hostName): Renamed from 'hostname' to match Serialized Form doc.
1716         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1717         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1719 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
1721         * java/util/AbstractList.java (SubList): Make it a top-level private
1722         class.
1723         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1724         (add): Ditto.
1725         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1726         * Makefile.in: Rebuilt.
1728 2000-11-02  Tom Tromey  <tromey@cygnus.com>
1730         * Makefile.in: Rebuilt.
1731         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1732         link.
1734 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
1736         * java/util/AbstractList.java (remove): Comment out modCount increment
1737         to work around compiler bug.
1738         (add): Ditto.
1740 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
1742         * java/util/AbstractList.java: Throw messages with 
1743         IndexOutOfBoundsExceptions.
1744          (listIterator()): Call listIterator(0).
1745         (size): New field. Initialize to size().
1746         (hasNext): Test position against size, not size().
1747         (remove): Increment knownMod by one instead of resetting it from 
1748         modCount.
1749         (add): Ditto.
1750         (SubList.upMod): Removed.
1751         (SubList.set): Don't call upMod() or update knownMod.
1752         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1753         (SubList.remove): Ditto.
1754         (SubList.addAll): Don't call backingList.size(). Increment size from 
1755         c.size().
1756         (SubList.iterator): New method. Call listIterator(0).
1757         (SubList.listIterator): New method. Restore code to return an anonymous
1758         listIterator implementation (with some changes).
1759         * java/util/AbstractSequentialList.java: Throw messages with 
1760         IndexOutOfBoundsExceptions.
1761         (addAll): Add a specnote.
1762         * java/util/ArrayList.java (removeRange): Get the math right.
1763         (addAll): Increment modCount _before_ creating iterator.
1764         * java/util/LinkedList.java: Rewritten, mostly.
1766 2000-11-01  Tom Tromey  <tromey@cygnus.com>
1768         * scripts/encodings.pl: Added `ASCII' alias.
1769         * Makefile.in: Rebuilt.
1770         * Makefile.am (convert_source_files): Added new files.
1771         * gnu/gcj/convert/Input_ASCII.java: New file.
1772         * gnu/gcj/convert/Output_ASCII.java: New file.
1773         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1774         out-of-range characters.
1775         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1776         (read): Swap bytes if required.  Treat `count' as character count,
1777         not byte count.
1778         (write): Likewise.  Also, handle case where iconv fails on a given
1779         character.
1780         (init): Put encoding into exception.
1781         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1782         (static): Call iconv_init.  Rebuilt alias list.
1783         (iconv_init): New private method.
1785 2000-11-01  Tom Tromey  <tromey@cygnus.com>
1787         * Makefile.in: Rebuilt.
1788         * Makefile.am (install-exec-hook): Only make a single symlink, and
1789         remove the destination before making the link.
1790         * configure: Rebuilt.
1791         * configure.in: Call AC_PROG_LN_S.
1793 2000-10-31  Warren Levy  <warrenl@cygnus.com>
1795         * jni.cc: Added include of java/lang/ThreadGroup.h.
1796         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1797         per change of 2000-10-05.
1799 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
1801         * java/util/BitSet.java: Updated @specnote.
1803         * java/io/Reader.java: Merge docs from classpath.
1804         (skip): Synchronize on `lock'.
1805         * java/io/FileReader.java: Import correct implementation from 
1806         classpath.
1807         * java/io/StringReader.java: Merge docs from classpath.
1808         (ready): Throw IOException if stream is closed.
1810 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
1812         * java/util/AbstractCollection.java (addAll): Use size() instead of
1813         hasNext() in iterator loop.
1814         (clear): Ditto.
1815         (contains): Ditto. Simplify loop.
1816         (containsAll): Ditto.
1817         (remove): Ditto.
1818         (removeAll): Ditto.
1819         (retainAll): Ditto.
1820         (toArray): Ditto.
1821         (toString): Ditto. Use string concatenation operators, not
1822         StringBuffer.
1823         * java/util/AbstractList.java (addAll): Use size() instead of
1824         hasNext() in iterator loop.
1825         (equals): Ditto.
1826         (hashCode): Ditto.
1827         (indexOf): Ditto. Don't take null check outside of the loop.
1828         (iterator): Return an AbstractListItr instead of anonymous class.
1829         (lastIndexOf): Use a for loop bounded by size() instead of 
1830         hasPrevious() in iterator loop.
1831         (listIterator): Return an AbstractListItr.
1832         (removeRange): Remove bounds checking code and docs.
1833         (AbstractListItr): New inner class. Code moved here from 
1834         listIterator().
1835         (SubList.iterator): Removed. Use default implementation from 
1836         AbstractList instead.
1837         (SubList.listIterator): As above.
1838         * java/util/AbstractMap.java (clear): Use a for loop bounded by size() 
1839         instead of hasNext() in iterator loop.
1840         (containsValue): Ditto.
1841         (equals): Ditto.
1842         (get): Ditto.
1843         (put): Ditto.
1844         (putAll): Ditto.
1845         (remove): Ditto.
1846         (toString): Ditto. Use string concatenation operators, not
1847         StringBuffer.
1848         * java/util/AbstractSequentialList.java (addAll): Use a for loop 
1849         bounded by size() instead of hasNext() in iterator loop.
1850         * java/util/AbstractSet.java (hashCode): Don't catch exception as
1851         part of normal execution flow. Do an explicit null check instead.
1852         * java/util/ArrayList.java (_iSize): Rename to `size'.
1853         (_arData): Rename to `data'.
1854         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1855         message.
1856         (remove): Ditto.
1857         (removeRange): Make protected. Don't check bounds.
1858         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1859         message.
1860         (addAll (Collection)): Use a size-bounded for loop instead of hasNext() 
1861         check.
1862         (addAll (int, Collection)): Check lower bounds. Simplify exception
1863         string.
1864         (clone): Clone the data array too.
1865         (indexOf): Inline doesEqual().
1866         (lastIndexOf): Ditto.
1867         (clear): Don't set array data to null.
1868         (set): Check lower bounds. Simplify exception string.
1869         (toArray): Correct comment.
1870         (trimToSize): Don't update modCount, this is not a structural change.
1871         Add comment.
1872         
1873         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1874         implemented.
1875         (toString): Declare `bit' as long, not int.
1876         (data): Made package-private, not private.      
1878 2000-10-27  Warren Levy  <warrenl@cygnus.com>
1880         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1881         array elements to true.
1883 2000-10-27  Warren Levy  <warrenl@cygnus.com>
1885         * Makefile.am: Added locale files from Classpath.
1886         * Makefile.in: Rebuilt.
1887         * gnu/java/locale/Calendar.java: New file.
1888         * gnu/java/locale/Calendar_de.java: New file.
1889         * gnu/java/locale/Calendar_en.java: New file.
1890         * gnu/java/locale/Calendar_nl.java: New file.
1891         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1892         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1893         serialization compatibility.
1894         (scale): Made private.
1895         (serialVersionUID): New field.
1896         * java/math/BigInteger.java (ival): Made transient.
1897         (words): Made transient.
1898         (bitCount): New serialization field.
1899         (bitLength): Ditto.
1900         (firstNonzeroByteNum): Ditto.
1901         (lowestSetBit): Ditto.
1902         (magnitude): Ditto.
1903         (signum): Ditto.
1904         (serialVersionUID): New field.
1905         (readObject): New method.
1906         (writeObject): New method.
1907         * java/util/BitSet.java (serialVersionUID): New field.
1908         * java/util/Calendar.java: Replaced with Classpath file.
1909         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1910         of getDefault() for TimeZone or Locale instead of passing nulls.
1911         * java/util/Locale.java (serialVersionUID): New field.
1912         (writeObject): New method.
1913         (readObject): New method.
1914         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1916 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
1918         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1919         (core_java_source_files): Put java.lang, java.io, and java.util here.
1920         (ordinary_java_source_files): Order so that core_java_source_files are 
1921         built first.
1922         (java_source_files): Reorder so that special_java_source_files are 
1923         built first.
1924         * configure.in: Don't pass -I flag to gcj.
1925         * Makefile.in: Rebuilt.
1926         * configure: Rebuilt.
1928 2000-10-25  Tom Tromey  <tromey@cygnus.com>
1930         * Makefile.in: Rebuilt.
1931         * Makefile.am (install-exec-hook): New target.
1933 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
1935         * java/util/EventObject.java: Merged from classpath.
1936         
1937         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1938         with stack dump.
1940 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1942         * java/util/AbstractSet.java (equals): Re-installed original code.
1944 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
1946         * Makefile.am: Added rules for libgcjx library.
1947         * Makefile.in: Rebuilt.
1948         * configure.in: Added check for X.
1949         * configure: Rebuilt.
1950         * gnu/awt/LightweightRedirector.java: New file.
1951         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1952         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1953         * gnu/awt/j2d/Graphics2DImpl.java: New file.
1954         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1955         * gnu/awt/j2d/MappedRaster.java: New file.
1956         * gnu/awt/xlib/XCanvasPeer.java: New file.
1957         * gnu/awt/xlib/XEventLoop.java: New file.
1958         * gnu/awt/xlib/XEventQueue.java: New file.
1959         * gnu/awt/xlib/XFontMetrics.java: New file.
1960         * gnu/awt/xlib/XFramePeer.java: New file.
1961         * gnu/awt/xlib/XGraphics.java: New file.
1962         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1963         * gnu/awt/xlib/XPanelPeer.java: New file.
1964         * gnu/awt/xlib/XToolkit.java: New file.
1965         * gnu/gcj/xlib/Clip.java: New file.
1966         * gnu/gcj/xlib/Colormap.java: New file.
1967         * gnu/gcj/xlib/Display.java: New file.
1968         * gnu/gcj/xlib/Drawable.java: New file.
1969         * gnu/gcj/xlib/Font.java: New file.
1970         * gnu/gcj/xlib/GC.java: New file.
1971         * gnu/gcj/xlib/Pixmap.java: New file.
1972         * gnu/gcj/xlib/Screen.java: New file.
1973         * gnu/gcj/xlib/Visual.java: New file.
1974         * gnu/gcj/xlib/WMSizeHints.java: New file.
1975         * gnu/gcj/xlib/Window.java: New file.
1976         * gnu/gcj/xlib/WindowAttributes.java: New file.
1977         * gnu/gcj/xlib/XAnyEvent.java: New file.
1978         * gnu/gcj/xlib/XButtonEvent.java: New file.
1979         * gnu/gcj/xlib/XColor.java: New file.
1980         * gnu/gcj/xlib/XConfigureEvent.java: New file.
1981         * gnu/gcj/xlib/XConnectException.java: New file.
1982         * gnu/gcj/xlib/XEvent.java: New file.
1983         * gnu/gcj/xlib/XException.java: New file.
1984         * gnu/gcj/xlib/XExposeEvent.java: New file.
1985         * gnu/gcj/xlib/XID.java: New file.
1986         * gnu/gcj/xlib/XImage.java: New file.
1987         * gnu/gcj/xlib/XUnmapEvent.java: New file.
1988         * gnu/gcj/xlib/natClip.cc: New file.
1989         * gnu/gcj/xlib/natColormap.cc: New file.
1990         * gnu/gcj/xlib/natDisplay.cc: New file.
1991         * gnu/gcj/xlib/natDrawable.cc: New file.
1992         * gnu/gcj/xlib/natFont.cc: New file.
1993         * gnu/gcj/xlib/natGC.cc: New file.
1994         * gnu/gcj/xlib/natPixmap.cc: New file.
1995         * gnu/gcj/xlib/natScreen.cc: New file.
1996         * gnu/gcj/xlib/natVisual.cc: New file.
1997         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1998         * gnu/gcj/xlib/natWindow.cc: New file.
1999         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
2000         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
2001         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
2002         * gnu/gcj/xlib/natXColor.cc: New file.
2003         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
2004         * gnu/gcj/xlib/natXException.cc: New file.
2005         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
2006         * gnu/gcj/xlib/natXImage.cc: New file.
2007         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
2008         * java/awt/EventDispatchThread.java: Start thead on creation.
2010 2000-10-20  Tom Tromey  <tromey@cygnus.com>
2012         From Arno J. Klaassen:
2013         * interpret.cc: Include <stdlib.h> for alloca.
2014         * defineclass.cc: Include <stdlib.h> for alloca.
2016         * Makefile.in: Rebuilt.
2017         * Makefile.am: Include deps.mk.
2018         (GCJCOMPILE): Added -MD, -MT, and -MF.
2019         ($(javao_files)): Don't depend on libgcj.zip.
2020         (all-recursive): New target.
2021         (%.lo:%.cc): Do dependency tracking.
2022         ($(nat_headers)): Don't depend on libgcj.zip.
2023         * configure: Rebuilt.
2024         * configure.in: Make .d files and deps.mk.
2026 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
2028         * exception.cc: Don't #include "exception".
2029         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
2031         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
2032         * Makefile.in: Updated.
2034 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
2036         * java/awt/peer/ChoicePeer.java (addItem): Removed.
2037         * java/awt/peer/ComponentPeer.java (disable): Removed.
2038         (enable): Removed.
2039         (hide): Removed.
2040         (minimumSize): Removed.
2041         (preferredSize): Removed.
2042         (reshape): Removed.
2043         (show): Removed.
2044         * java/awt/peer/ListPeer.java (addItem): Removed.
2045         (clear): Removed.
2046         (minimumSize): Removed.
2047         (preferredSize): Removed.
2048         (setMultipleSelections): Removed.
2049         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
2050         (remove): Renamed from removeMenu.
2051         * java/awt/peer/MenuItemPeer.java (disable): Removed.
2052         (enable): Removed.
2053         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
2054         (remove): Renamed from removeItem.
2055         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
2056         (getMinimumSize): Removed.
2057         (getPreferredSize): Removed.
2058         (minimumSize): Removed.
2059         (preferredSize): Removed.
2060         (replaceText): Removed.
2061         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
2062         (preferredSize): Removed.
2063         (getMinimumSize): Removed.
2064         (getPreferredSize): Removed.
2065         (setEchoCharacter): Removed.
2067 2000-10-10  Warren Levy  <warrenl@cygnus.com>
2069         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
2070         * java/sql/Date.java (serialVersionUID): New field.
2071         * java/sql/Time.java (serialVersionUID): New field.
2072         * java/sql/Timestamp.java (serialVersionUID): New field.
2073         * java/text/ChoiceFormat.java (serialVersionUID): New field.
2074         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
2075         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
2076         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
2077         (readObject): New serialization method.
2078         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
2079         (serialVersionOnStream): New field.
2080         (readObject): New serialization method.
2081         (getMonetaryDecimalSeparator): New method.
2082         (setMonetaryDecimalSeparator): New method.
2083         * java/text/NumberFormat.java (maxFractionDigits): New field.
2084         (maxIntegerDigits): New field.
2085         (minFractionDigits): New field.
2086         (minIntegerDigits): New field.
2087         (serialVersionOnStream): New field.
2088         (serialVersionUID): New field.
2089         (readObject): New serialization method.
2090         (writeObject): New serialization method.
2091         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2092         (serialVersionOnStream): New field.
2093         (serialVersionUID): New field.
2094         (readObject): New serialization method.
2096 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
2098         * configure.in (GCJ): Avoid bogus error message when looking for
2099         (and not finding) gcj in the build tree.
2100         * configure: Rebuilt.
2102 2000-10-09  Tom Tromey  <tromey@cygnus.com>
2104         * configure: Rebuilt.
2105         * configure.in: Include sys/types.h when checking for socklen_t.
2106         From Arno J. Klaassen.
2108 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
2110         * include/jvm.h: Enable __builtin_expect().
2112         * name-finder.cc (lookup): Don't trust dladdr() if the address is from 
2113         the main program. Fix for PR libgcj/341.
2115 2000-10-07  Tom Tromey  <tromey@cygnus.com>
2117         * java/util/Properties.java: Merged with Classpath version.
2119 2000-10-05  Tom Tromey  <tromey@cygnus.com>
2121         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2122         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2123         * java/lang/Class.h (Object): Added `class$' field.
2124         * java/lang/Object.h (Object): Added `class$' field.
2125         * defineclass.cc (ClassClass): Use `class$' form.
2126         (ClassObject): Likewise.
2127         * resolve.cc (ClassObject): Use `class$' form.
2128         (ObjectClass): Likewise.
2129         * interpret.cc (ClassError): Removed.
2130         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2131         `class$' form.
2132         (IntegerClass): Likewise.
2133         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2134         form.
2135         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2136         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2137         SerializableClass): Likewise.
2138         Include Serializable.h, Cloneable.h.
2139         * java/lang/natSystem.cc (SystemClass): Removed.
2140         (init_properties): Use `class$' form.
2141         * java/lang/natObject.cc (CloneableClass): Removed.
2142         (clone): Use `class$' form.
2143         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2144         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2145         ConstructorClass): Likewise.
2146         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2147         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2148         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2149         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2150         form.
2151         (ClassClass): Likewise.
2152         * include/jvm.h (StringClass): Use `class$' form.
2153         * prims.cc (ObjectClass): Removed.
2154         (_Jv_RunMain): Use `class$' form.
2155         (_Jv_AllocObject): Likewise.
2156         * jni.cc (ClassClass): Use `class$' form.
2157         (ThrowableClass): Likewise.
2158         (ObjectClass): Likewise.
2159         (MethodClass): Likewise.
2160         (ThreadGroupClass): Likewise.
2161         (NativeThreadClass): Likewise.
2162         * boehm.cc (ObjectClass): Removed.
2163         (ClassClass): Removed.
2164         (_Jv_MarkObj): Use `class$' form.
2165         * gcj/field.h (JvFieldIsRef): Use `class$' form.
2166         Include RawData.h.
2168 2000-10-05  Warren Levy  <warrenl@cygnus.com>
2170         * Makefile.am: Removed java/io/Replaceable.java and
2171         java/io/Resolvable.java.
2172         * Makefile.in: Rebuilt.
2173         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2174         namespace.
2175         * java/io/ObjectInputStream.java (processResolution): Fixed typo
2176         in method name.
2177         (processResolution): Handle readResolve method via reflection with
2178         removal of Resolvable interface.
2179         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2180         method via reflection with removal of Replaceable interface.
2181         * java/io/Replaceable.java: Removed.
2182         * java/io/Resolvable.java: Removed.
2183         * java/security/Key.java (serialVersionUID): New field.
2184         * java/security/Provider.java (serialVersionUID): New field.
2185         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2186         New field.
2187         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2188         New field.
2189         * java/sql/DataTruncation.java (serialVersionUID): New field.
2190         * java/sql/SQLException.java (serialVersionUID): New field.
2191         * java/sql/SQLWarning.java (serialVersionUID): New field.
2192         * java/util/Date.java (serialVersionUID): New field.
2193         (millis): Made transient.
2194         (readObject): New method.
2195         (writeObject): New method.
2197 2000-10-05  Tom Tromey  <tromey@cygnus.com>
2199         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2201 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
2203         * prims.cc (_Jv_argv, _Jv_argc): New fields.
2204         (JvRunMain): Set _Jv_argv and _Jv_argc.
2205         * java/awt/Component.java: Minor fixes.
2206         * java/awt/Image.java (UndefinedProperty): Initialize final field.
2207         * java/awt/Toolkit.java (systemEventQueue): Removed.
2208         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2209         * java/awt/Window.java (getToolkit): Don't call super.
2210         * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2211         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2212         * gnu/awt/gtk/GtkComponentPeer.java: New file.
2213         * gnu/awt/gtk/GtkContainerPeer.java: New file.
2214         * gnu/awt/gtk/GtkFramePeer.java: New file.
2215         * gnu/awt/gtk/GtkMainThread.java: New file.
2216         * gnu/awt/gtk/GtkToolkit.java: New file.
2217         * gnu/awt/gtk/GtkWindowPeer.java: New file.
2218         * gnu/awt/gtk/gtkcommon.cc: New file.
2219         * gnu/awt/gtk/gtkcommon.h: New file.
2220         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2221         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2222         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2223         * gnu/awt/gtk/natGtkMainThread.cc: New file.
2224         * gnu/awt/gtk/natGtkToolkit.cc: New file.
2225         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2227 2000-09-30  Tom Tromey  <tromey@cygnus.com>
2229         * posix-threads.cc (_Jv_CondWait): Check to see if we are
2230         interrupted before modifying the cv's wait set.
2231         From Corey Minyard.
2233 2000-09-30  Hans Boehm  <boehm@acm.org>
2234             Bryce McKinlay  <bryce@albatross.co.nz>
2235             
2236         Implement bitmap descriptor based marking for Boehm GC.
2238         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2239         * configure: Rebuilt.
2240         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2241         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2242         method get_finalizer().
2243         (struct _Jv_ArrayVTable): Ditto. Declare method array with 
2244         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2245         (_Jv_AllocObj): Add new jclass parameter.
2246         (_Jv_AllocArray): Ditto.
2247         (_Jv_BuildGCDescr): New prototype.
2248         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2249         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2250         get_finalizer() instead of direct finalizer vtable offset.
2251         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2252         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2253         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2254         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2255         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2256         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2257         (_Jv_DetermineVTableIndex): Ditto.
2258         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable 
2259         calculations to account for new gc_descr field.
2260         * boehm.cc: #include gc_gcj.h.
2261         (obj_kind_x, obj_free_list): `#if 0'-ed away.
2262         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2263         New commentary from HB. Mark the classes vtable.
2264         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2265         (GC_DEFAULT_DESCR): New #define.
2266         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.        
2267         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2268         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2269         scan conservativly if size is less than min_heap_addr. Set vtable 
2270         pointer of new object before returning.
2271         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2272         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2273         allocation for obj_kind_x.
2274         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2275         (_Jv_AllocObj): Set vtable on returned object.
2276         (_Jv_AllocArray): Ditto.
2277         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2278         (_Jv_NewPrimArray): Ditto.
2279         (_Jv_AllocObj): Declare as a friend.
2280         (_Jv_AllocArray): Ditto.        
2281         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2282         from &ObjectClass into new array class. Remove offset-by-one 
2283         adjustments from `method' size calculations to account for gc_descr 
2284         field.
2286 2000-09-26  Tom Tromey  <tromey@cygnus.com>
2288         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2289         `remove', not `add'.
2291 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2293         * java/lang/natSystem.cc (file_encoding): Added return statement.
2295 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
2297         * Makefile.am: Re-work shell commands that exceeded command-line
2298         length limits.
2299         * Makefile.in: Rebuilt.
2301         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2303         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2304         * java/lang/natDouble.cc: Likewise.
2305         * java/lang/reflect/natMethod.cc: Likewise.
2306         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
2308 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
2310         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2311         libgcjdata.a.
2312         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
2313         * acinclude.m4: Arrange for automake to not bring in a new
2314         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
2315         * Makefile.am: Leave it up to automake to subst GCJ.
2316         * aclocal.m4, configure, Makefile.in: Rebuilt.
2318 2000-09-13  Tom Tromey  <tromey@cygnus.com>
2320         * java/lang/reflect/natArray.cc (BooleanClass): New define.
2321         (get): Ensure Boolean class is initialized.
2322         * java/lang/reflect/natField.cc (BooleanClass): New define.
2323         (get): Ensure Boolean class is initialized.
2325 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
2327         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2328         Initialize with anonymous class.
2329         (compareToIgnoreCase): New method.
2330         
2331         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2332         (uncaughtException): Set had_uncaught_exception.
2333         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2334         exit with error status if set.
2335         (_Jv_RunMain): Ditto.
2337 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
2339         * configure: Rebuilt with new ../libtool.m4.
2341 2000-09-11  Tom Tromey  <tromey@cygnus.com>
2343         * java/lang/reflect/Field.java (toString): Don't rely on
2344         Class.toString.
2346 2000-09-08  Tom Tromey  <tromey@cygnus.com>
2348         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2349         default decoder use iconv.
2350         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2351         Let default encoder use iconv.
2352         * configure: Rebuilt.
2353         * configure.in: Check for nl_langinfo and <langinfo.h>.
2354         * java/lang/natSystem.cc (file_encoding): New function.
2355         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2357 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
2359         * acinclude.m4: Simplify the tests for CC and CXX.
2360         * aclocal.m4, configure: Rebuilt.
2362         * acinclude.m4: Include libtool macros from the source tree.
2363         * aclocal.m4, configure: Rebuilt.
2365 2000-09-08  Warren Levy  <warrenl@cygnus.com>
2367         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2368         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2369         * java/io/File.java (writeObject): Added.
2370         (readObject): Added.
2371         (serialVersionUID): Added.
2372         * java/io/ObjectOutputStream.java (writeObject): Initialized
2373         fieldsAlreadyWritten before recursion rather than after.
2374         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2375         * java/io/OptionalDataException.java (serialVersionUID): Added.
2376         (OptionalDataException): Made package private.
2377         * java/io/SyncFailedException.java (SyncFailedException): Removed
2378         default constructor to match spec.
2379         * java/lang/Boolean.java (serialVersionUID): Added.
2380         * java/lang/Byte.java (serialVersionUID): Added.
2381         * java/lang/Character.java (serialVersionUID): Added.
2382         * java/lang/Double.java (serialVersionUID): Added.
2383         * java/lang/Float.java (serialVersionUID): Added.
2384         * java/lang/Integer.java (serialVersionUID): Added.
2385         * java/lang/Long.java (serialVersionUID): Added.
2386         * java/lang/Number.java (serialVersionUID): Added.
2387         * java/lang/Short.java (serialVersionUID): Added.
2388         * java/lang/String.java (serialVersionUID): Added.
2389         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2390         to match spec.
2391         * java/lang/reflect/InvocationTargetException.java
2392         (serialVersionUID): Added.
2393         * java/net/URL.java (handler): Made transient.
2394         (hashCode): Added field for serialization, per spec. and use
2395         cached value if available.
2396         (serialVersionUID): Added.
2397         (URL): Initialize hashCode.
2398         (set): Adjust hashCode.
2399         (readObject): New Method to initialize the protocol handler when
2400         deserializing.
2401         (writeObject): New method.
2402         * java/text/BreakIterator.java: Removed 'implements Serializable'.
2403         * java/text/Collator.java: Removed 'implements Serializable'.
2404         * java/util/GregorianCalendar.java (serialVersionUID): Added.
2405         * java/util/Properties.java (serialVersionUID): Added.
2406         * java/util/Random.java (serialVersionUID): Added.
2407         (seed): Made private.
2408         (nextNextGaussian): Made private.
2409         (haveNextNextGaussian): Made private.
2410         * java/util/Stack.java (serialVersionUID): Added.
2411         * java/util/TimeZone.java (serialVersionUID): Added.
2412         * java/util/Vector.java (serialVersionUID): Added.
2414 2000-09-07  Bryce McKinlay  <bryce@albatross.co.nz>
2416         * Makefile.am (Thread.h): Don't be friends with native threads 
2417         functions.
2418         * Makefile.in: Rebuilt.
2419         * java/lang/Thread.java (interrupt_flag): Make package-private.
2421 2000-09-06  Jeff Sturm  <jeff.sturm@appnet.com>
2423         * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2424         to avoid long long division.
2426 2000-09-06  Tom Tromey  <tromey@cygnus.com>
2428         * java/lang/reflect/Constructor.java (toString): Use `getName' for
2429         parameter types.
2430         * java/lang/reflect/Method.java (toString): Use `getName' for
2431         return type.
2433         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2434         `args' if method takes no parameters.
2436         Fix for PR java.lang/339:
2437         * java/lang/natPosixProcess.cc (fail): New function.
2438         (cleanup): New function.
2439         (startProcess): Use them.  Create pipe so child can communicate
2440         exec failure back to parent.
2442 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
2444         * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2445         calls to `throw'.
2446         (send): Undo last patch. Remove the label only.
2447         (mcastGrp): Ditto.
2448         * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to 
2449         `throw'.
2450         * java/net/natInetAdress.cc: Ditto.
2452         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2454 2000-09-05  Tom Tromey  <tromey@cygnus.com>
2456         * doc/cni.sgml: Updated from master copy.
2458 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
2460         * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2461         (write): Ditto.
2462         * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2463         stack. Synchronize.
2464         * java/lang/fdlibm.h: #undef __P if previously defined.
2465         * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2466         * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable 
2467         block.
2468         (mcastGrp): Ditto.
2470 2000-09-04  Tom Tromey  <tromey@cygnus.com>
2472         * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2473         DELETE mode.
2475 2000-09-04  Anthony Green  <green@redhat.com>
2477         Fix for PR java.io/203:
2478         * java/io/File.java (createTempFile): Obey directory argument.
2479         Use java.io.tmpdir if needed.  Don't leave FileDescripators open.
2480         * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2481         variable to set java.io.tmpdir on non-WIN32 systems.
2483 2000-09-04  Anthony Green  <green@redhat.com>
2485         * java/io/File.java (deleteOnExit): New method.
2486         * gnu/gcj/runtime/FileDeleter.java: New class.
2487         * java/lang/natRuntime.cc (exit): Call
2488         FileDeleter.deleteOnExitNow()
2489         * Makefile.am: Add FileDeleter.java.
2490         * Makefile.in: Rebuilt.
2492 2000-09-02  Tom Tromey  <tromey@cygnus.com>
2494         * Makefile.in: Rebuilt.
2495         * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2496         environment variable.
2498 2000-09-01  Andrew Haley  <aph@redhat.com>
2500         * java/io/StreamTokenizer.java: Don't throw a
2501         NumberFormatException if a field is numeric as far as the
2502         StreamTokenizer is concerned but not as far as Double.valueOf() is
2503         concerned: return a zero instead.       
2505 2000-08-30  Tom Tromey  <tromey@cygnus.com>
2507         * Makefile.in: Rebuilt.
2508         * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2510 2000-08-28  Tom Tromey  <tromey@cygnus.com>
2512         * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2513         gnu/gcj/awt/ComponentDataBlitOp.java,
2514         gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2515         java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2516         java/awt/color/ICC_ColorSpace.java,
2517         java/awt/color/ICC_Profile.java,
2518         java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2519         java/awt/image/ComponentColorModel.java,
2520         java/awt/image/ComponentSampleModel.java,
2521         java/awt/image/DataBuffer.java,
2522         java/awt/image/DataBufferByte.java,
2523         java/awt/image/DataBufferInt.java,
2524         java/awt/image/DataBufferUShort.java,
2525         java/awt/image/DirectColorModel.java,
2526         java/awt/image/IndexColorModel.java,
2527         java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2528         java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2529         java/awt/image/SinglePixelPackedSampleModel.java,
2530         java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2531         Removed Latin-1 copyright symbols.
2532         * java/util/zip/ZipFile.java: Indentation fixes.
2534 2000-08-27  Mark Wielaard  <mark@klomp.org>
2536         * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2537         constructor, close can delete the file, finalize calls close.
2538         * java/util/jar/JarFile.java: Constructor that takes mode now
2539         calls super.
2541 2000-08-27  Anthony Green  <green@redhat.com>
2543         * java/util/ArrayList.java, java/util/Timer.java,
2544         java/util/LinkedList.java, java/util/TimerTask.java,
2545         java/util/HashMap.java, java/util/AbstractMap.java,
2546         java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2547         java/util/SortedSet.java: Imported from GNU Classpath.
2548         * Makefile.in: Rebuilt.
2549         * Makefile.am: Added new files.
2550         
2551 2000-08-26  Anthony Green  <green@redhat.com>
2553         * Makefile.in: Rebuilt.
2554         * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2555         friend.
2557         * prims.cc: Include ClassLoader.h.
2558         (_Jv_RunMain): When executing jar files, classpath must be the jar
2559         file only.  Lose our reference to the system ClassLoader in order
2560         to get a new one with the correct classpath.
2561         * java/lang/natSystem.cc (init_properties): When executing a jar
2562         file, only use the jar file for java.class.path.
2564         * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2565         for bytecode archives.
2567         * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2568         exists, but not Main-Class.
2570 2000-08-23  Mark Wielaard  <mark@klomp.org>
2572         * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2573         return -1 when fill() has no more data for the Inflater.
2575 2000-08-23  Mark Wielaard  <mark@klomp.org>
2577         * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2578         write(String) already does.
2580 2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2582         * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2583         to `alive_flag', call `init'.
2584         (init): New native method.
2585         * gnu/gcj/jni/natNativeThread.cc (init): New native method
2586         implementation.
2588 2000-08-21  Mark Wielaard  <mark@klomp.org>
2590         * Makefile.in: Rebuilt.
2591         * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2592         a `friend class'.
2593         (java/lang/reflect/Field.h): Likewise.
2594         (java/lang/reflect/Method.h): Likewise.
2595         (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2596         `friend class'.
2598 2000-08-21  Tom Tromey  <tromey@cygnus.com>
2600         * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2601         debugging prints.
2603 Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>
2605         * java/lang/natSystem.cc (init_properties): Change sourceware
2606         reference to sources.redhat.com.
2608         * include/java-props.h: Add _Jv_Jar_Class_Path.
2609         * prims.cc: Ditto.  Set it from `gij -jar file' option.
2611         * java/lang/natSystem.cc (init_properties): Set java.class.path
2612         from
2613         {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2615         * java/util/PropertyPermission.java: Import from GNU Classpath.
2616         * Makefile.in: Rebuilt.
2617         * Makefile.am: Add java/util/PropertyPermission.java.
2618         * java/lang/System.java: Add setProperty method.
2620         * gij.cc (main): Add -jar option to execute jar files.
2621         (help): Describe -jar option.
2622         * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2623         * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2624         * gnu/gcj/runtime/FirstThread.java (main): New method.
2626         * java/util/jar/Attributes.java: Correct comment spelling.
2628 2000-08-20  Mark Wielaard  <mark@klomp.org>
2630         * java/util/zip/Adler32.java: Make private variables really private
2631         * java/util/zip/CRC32.java: Make private variables really private
2632         * java/util/zip/CheckedInputStream.java: skip() could skip to much
2633         bytes
2634         * java/util/zip/InflaterInputStream.java: skip() could skip to
2635         much bytes
2636         * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2637         * java/util/zip/ZipFile.java: size() new 1.2 method
2638         * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2639         ZipEntry.  since 1.2 available() always returns just 1 or 0 when
2640         closed
2642 Sun Aug 20 12:33:43 2000  Anthony Green  <green@redhat.com>
2644         * java/util/jar/JarFile.java: Don't call
2645         java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
2646         <mark@klomp.org>.
2647         
2648 Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>
2650         * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2651         Read the entire contents of the class file, not just what is
2652         available().
2654         * java/net/JarURLConnection.java: getEntry doesn't take any
2655         arguments.  Return null if element is null.
2657         * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2658         size from the archive, not the inflated size.
2660         * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
2661         java.util.zip.ZipFile.getEntry.
2663         * gij.cc (help): Change sourceware reference to
2664         sources.redhat.com.
2666 2000-08-19  Tom Tromey  <tromey@cygnus.com>
2668         * java/util/zip/ZipInputStream.java (createZipEntry):
2669         Implemented.
2671 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
2673         * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2674         java/util/jar/JarException.java, java/util/jar/JarFile.java,
2675         java/util/jar/JarInputStream.java,
2676         java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2677         java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2678         java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2679         java/security/cert/CRL.java, java/security/cert/CRLException.java,
2680         java/security/cert/Certificate.java,
2681         java/security/cert/CertificateEncodingException.java,
2682         java/security/cert/CertificateException.java,
2683         java/security/cert/CertificateExpiredException.java,
2684         java/security/cert/CertificateFactory.java,
2685         java/security/cert/CertificateFactorySpi.java,
2686         java/security/cert/CertificateNotYetValidException.java,
2687         java/security/cert/CertificateParsingException.java,
2688         java/security/cert/X509CRL.java,
2689         java/security/cert/X509CRLEntry.java,
2690         java/security/cert/X509Certificate.java,
2691         java/security/cert/X509Extension.java: Imported from Classpath.
2692         * java/util/Hashtable.java: Imported from Classpath.
2694         * java/util/zip/ZipInputStream.java: Create stub for
2695         createZipEntry.
2697         * gcj/javaprims.h: Updated class list.
2699         * Makefile.in, gcj/Makefile.in: Rebuilt.
2700         * Makefile.am (ordinary_java_source_files): Add these new classes.
2701         
2702 2000-08-16  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
2704         * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2705         * gnu/gcj/awt/GLightweightPeer.java: New file.
2706         * java/awt/BorderLayout.java: Implemented all methods.
2707         * java/awt/Button.java (actionListener, actionCommand): Renamed
2708         and modifier change.
2709         (addNotify): Call super.
2710         (dispatchEventImpl): New method.
2711         (getListeners): New method.
2712         (label): Made package-private, not private.
2713         * java/awt/Canvas.java: Implemented class body.
2714         * java/awt/Color.java (brighter): New method.
2715         (darker): New method.
2716         (hashCode): New method.
2717         * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2718         (getGraphicsConfiguration): Delegate to
2719         getGraphicsConfigurationImpl().
2720         (getGraphicsConfigurationImpl): New method.
2721         (getToolkit): Only return value from peer if not null.
2722         (isDisplayable): Check with parent.
2723         (isShowing): No parent implies not showing.
2724         (getForeground): Check parent property if local is null.
2725         (getBackground): Likewise.
2726         (getFont): Likewise.
2727         (setForeground): Inform peer.
2728         (setBackground): Likewise
2729         (setLocale): Invalidate component.
2730         (getColorModel): Implemented.
2731         (setLocation): Invalidate, or ignore if no change.
2732         (setSize): Invalidate, or ignore if no change.
2733         (setBounds): Invalidate, or ignore if no change.
2734         (isOpaque): By default, heavyweight implies opaque.
2735         (isLightweight): Implemented.
2736         (getMaximumSize): Implemented.
2737         (doLayout): Implemented, NOP.
2738         (validate): Implemented, NOP.
2739         (invalidate): Only propagate to parent if parent was valid.
2740         (getGraphics): Implemented.
2741         (getFontMetrics): Implemented.
2742         (update): Implemented.
2743         (paintAll): Implemented.
2744         (repaint): Implemented all repaint methods.
2745         (print): Implemented.
2746         (printAll): Implemented.
2747         (createImage): Implemented.
2748         (dispatchEvent): Give the peer a chance to handle the event.
2749         (dispatchEventImpl): Dispatch paint events.
2750         (enableEvents): Lightweights enable events on parent component.
2751         (coalesceEvents): Coalesce paint events, and select event type
2752         using a switch.
2753         (coalescePaintEvents): New method.
2754         (processEvent): Fix unfortunate ordering of statements, and call
2755         correct method for MOUSE_CLICKED.
2756         (processPaintEvent): New method.
2757         (addNotify): Allow container to notify children before event
2758         mask is set in peer.
2759         (addNotifyContainerChildren): New method.
2760         (removeNotify): Visibility should not change on removeNotify.
2761         (paramString): Implemented.
2762         (list): Implemented two of the list methods.
2763         * Container (myInsets): Removed, insets are managed by peer.
2764         (getInsets): Query peer.
2765         (addImpl): Fix reparenting, enable events for lightweights,
2766         initialize component array.
2767         (validate): Call doLayout in validateTree() instead.
2768         (validateTree): Do nothing if already valid. Call beginValidate(),
2769         endValidate() on peer. Call validateTree() instead of validate()
2770         for children that are containers. Mark valid after validation of
2771         children.
2772         (setFont): Partial implementation.
2773         (paint): Implemented.
2774         (visitChildren): New method.
2775         (visitChild): New method.
2776         (update): Implemented.
2777         (print): Implemented.
2778         (paintComponents): Implemented.
2779         (printComponents): Consider translation and clipping.
2780         (getComponentAt): Ignore invisible children. Return this if no
2781         child match.
2782         (addNotify): Call super.
2783         (addNotifyContainerChildren): New method.
2784         (paramString): Implemented.
2785         (list): Implemented.
2786         * java/awt/EventQueue (invokeAndWait): Get system event queue the
2787         right way.
2788         (invokeLater): Likewise.
2789         (isDispatchThread): Likewise.
2790         * java/awt/FontMetrics (getLeading): Formula change.
2791         (getDescent): Consider leading also.
2792         (getMaxAscent): Default to getAscent().
2793         (getMaxDescent): Default to getDescent.
2794         (getMaxAdvance): Return value signifying unknown.
2795         (charWidth): Both methods implemented.
2796         (charsWidth): Implemented.
2797         (bytesWidth): Implemented.
2798         (getWidths): Implemented.
2799         * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2800         state): New fields.
2801         (Frame): Rearragend constuctor chaining to disallow null being
2802         passed as a graphics configuration.
2803         (getTitle): Return empty string if null.
2804         (dispose): Removed.
2805         (getIconImage): New method.
2806         (setIconImage): New method.
2807         (finalize): New method.
2808         (setMenuBar): Notify peer.
2809         (isResizable): New method.
2810         (setResizable): New method.
2811         (getState): New method.
2812         (getFont): Removed.
2813         (remove): Implemented.
2814         (removeNotify): New method.
2815         (getFrames): New method.
2816         * java/awt/Graphics.java: Implemented body of class.
2817         * java/awt/Graphics2D.java: New file.
2818         * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2819         * java/awt/Image.java: Implemented body of class.
2820         * java/awt/Panel.java (Panel): Call correct super constructor.
2821         (addNotify): Implemented.
2822         * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2823         * java/awt/RenderingHints.java: New file.
2824         * java/awt/Toolkit.java (createComponent): Implemented.
2825         (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2826         * java/awt/Window.java (Window): Two new constructors. Reordered
2827         constructor chaining.
2828         (getGraphicsConfigurationImpl): New method.
2829         (finalize): Call super.
2830         (addNotify): Call super.
2831         (pack): Do layout stuff.
2832         (show): Ensure that peer exists and that component is valid.
2833         (dispose): Dispose owned children.
2834         (getOwner): Simplify code, casting null pointers is valid.
2835         (getGraphicsConfiguration): Ask peer if local value is null.
2836         * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2837         getcmd().
2838         * java/awt/image/BufferedImage.java: New file.
2839         * java/awt/image/RasterOp.java: New file.
2840         * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2841         More powerfull replacement for getColorModel().
2842         (getColorModel) Removed.
2843         (setEventMask) New method.
2844         * Makefile.am: Added new files.
2845         * Makefile.in: Rebuilt.
2847 2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2849         * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2850         (finit_leg_name): New global.
2851         (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2852         `$finit$'. This is a backward compatibility hack.
2853         (java::lang::Class::_getMethods): Likewise.
2855 2000-08-15  Andrew Haley  <aph@cygnus.com>
2857         * include/jvm.h (_Jv_HashCode): New hash code.
2859 2000-08-15  Tom Tromey  <tromey@cygnus.com>
2861         * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2863 Sun Aug 13 19:53:01 2000  Anthony Green  <green@redhat.com>
2865         * THANKS: More thanks.
2867 2000-08-10  Tom Tromey  <tromey@cygnus.com>
2869         * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2870         when errno not set.
2871         (connect): Likewise.
2872         (accept): Likewise.
2873         (getOption): Likewise.
2874         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2875         case when errno not set.
2876         (peek): Likewise.
2877         (send): Likewise.
2878         (receive): Likewise.
2879         (mcastGrp): Likewise.
2880         (setOption): Likewise.
2881         (getOption): Likewise.
2883 2000-08-10  Bryce McKinlay  <bryce@albatross.co.nz>
2884             John Stracke <francis@ecal.com>
2886         * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2887         (connect): Don't falsely claim HTTP/1.1 compliance. Call 
2888         getHttpHeaders().
2889         (disconnect): Don't unset connected flag.
2890         (getHeaderField (String)): Call connect() if not connected.
2891         (getHeaderField (int)): Ditto.
2892         (getHeaderFieldKey): Ditto.
2893         (getHttpHeaders): Don't call connect(). 
2894         * java/net/HttpURLConnection.java (instanceFollowRedirects,
2895         gotResponseVals): New fields.
2896         (getResponseCode): Call getResponseVals() conditionally.
2897         (getResponseMessage): Ditto.
2898         (getResponseVals): Call connect(). Don't throw FileNotFoundException.   
2900 2000-08-09  Bryce McKinlay  <bryce@albatross.co.nz>
2902         * Makefile.am: Move beans and applet classes to awt_java_source_files.
2903         * Makefile.in: Rebuilt.
2904         * java/awt/Color.java (getTransparency): New method.
2905         * java/awt/Component.java: Various updates.
2906         * java/awt/Container.java (removeNotify): Call super.removeNotify()
2907         after dealing with children.
2908         * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2909         * java/awt/Window.java: Various new methods and updates.
2910         * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2911         to int for switch.
2912         * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2913         * java/awt/event/WindowEvent.java (paramString): Ditto.
2914         * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2915         try/catch block.
2916         * java/awt/geom/Point2D.java (clone): Ditto.
2917         * java/awt/geom/RectangularShape.java (clone): Ditto.
2918         * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2919         isAlphaPremultiplied): Make package-private, not private.       
2920         
2921 2000-08-08  Tom Tromey  <tromey@cygnus.com>
2923         * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2924         surrogate characters.
2925         * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2926         true.
2927         (write): Correct handling of surrogate characters.
2929 2000-08-07  Tom Tromey  <tromey@cygnus.com>
2931         * java/lang/reflect/Method.java (hashCode): Use getName().
2932         (toString): Likewise.
2933         * java/lang/reflect/natMethod.cc (getType): Initialize
2934         exception_types.
2936         * java/lang/reflect/Method.java (toString): Use Class.getName, not
2937         Class.toString.
2938         * java/lang/reflect/Field.java (toString): Correct formatting.
2939         From Corey Minyard.
2941         * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2942         rewrote.
2943         (receive): Streamlined.
2945 2000-08-05  Tom Tromey  <tromey@cygnus.com>
2947         * java/io/PrintWriter.java: Merged comments from Classpath.
2948         (printlnUnsynchronized): Removed.
2949         (println()): Print the separator.
2950         (println): Call println(), not printlnUnsynchronized.
2951         (out): Now protected, to match spec.
2953 2000-08-04  Tom Tromey  <tromey@cygnus.com>
2955         * java/io/StreamTokenizer.java (TT_NONE): Now private.
2956         (nextToken): Handle backslashed newline.  From Oskar Liljeblad.
2957         For PR java.io/301.
2959 2000-08-03  Warren Levy  <warrenl@cygnus.com>
2961         * java/io/ObjectInputStream.java (readFields): Turn off
2962         readDataFromBlock while reading via GetField.
2963         (GetField$1.get(String, Object)): Pass Class of default value to
2964         getField.
2965         (getField): Allow for null default values.
2967         * java/io/ObjectOutputStream.java: Fixed typo in comment.
2968         (PutField$1.put): Fixed calls of checkType in most of the put
2969         methods to pass the correct parameter.
2970         (PutField$1.put(String, Object)): Allow for null value arg.
2971         (PutField$1.write): Turn off writeDataAsBlocks while writing via
2972         PutField.
2974         * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2975         typo in spec'ed field name.
2976         (getSerialPersistentFields): Changed spelling of method to match
2977         the correct spelling of the spec'ed field name.
2979 2000-08-03  Tom Tromey  <tromey@cygnus.com>
2981         * Makefile.in: Rebuilt.
2982         * Makefile.am (awt_java_source_files): Added new files.
2984 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
2986         * Makefile.am: Add new AWT stubs.
2987         * java/awt/Canvas.java: New placeholder class.
2988         * java/awt/Checkbox.java: Ditto.
2989         * java/awt/CheckboxMenuItem.java: Ditto.
2990         * java/awt/Choice.java: Ditto.
2991         * java/awt/Dialog.java: Ditto.
2992         * java/awt/FileDialog.java: Ditto.
2993         * java/awt/List.java: Ditto.
2994         * java/awt/ScrollPane.java: Ditto.
2995         * java/awt/TextField.java: Ditto.
2996         * java/awt/datatransfer/Clipboard.java: Ditto.
2997         * java/awt/Component.java (treeLock): Now a static String. Add comment.
2998         * java/awt/MenuItem.java (MenuItem): Add default constructor.
2999         * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs. 
3000         Some commented out. Partially implemented.
3001         * java/awt/natToolkit.cc: Removed file.
3003 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
3005         * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
3006         Fixes "make -j" builds.
3007         * Makefile.in: Rebuild.
3009 2000-08-02  Tom Tromey  <tromey@cygnus.com>
3011         * Makefile.in: Rebuilt.
3012         * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
3013         * java/net/natPlainSocketImpl.cc: Include posix.h.
3014         (accept): Use _Jv_select.
3015         * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
3016         (receive): Use _Jv_select.
3017         * java/io/natFileDescriptorPosix.cc: Include posix.h.
3018         (available): Use _Jv_select.
3019         * java/lang/natSystem.cc: Include posix.h.
3020         (currentTimeMillis): Use _Jv_gettimeofday.
3021         * include/posix.h: New file.
3022         * posix.cc: New file.
3024         * scripts/encodings.pl: New file.
3025         * Makefile.in: Rebuilt.
3026         * Makefile.am (convert_source_files): Added IOConverter.java.
3027         * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
3028         IOConverter.
3029         (getDefaultDecodingClass): Canonicalize default encoding name.
3030         (getEncoder): Likewise.
3031         * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
3032         IOConverter.
3033         (getDefaultDecodingClass): Canonicalize default encoding name.
3034         (getDecoder): Likewise.
3035         * gnu/gcj/convert/IOConverter.java: New file.
3037 2000-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
3039         * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
3040         to match C declaration in ffi.h.
3041         * Makefile.am: Add java/awt/Button.java.
3042         * Makefile.in: Rebuilt.
3044 2000-07-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3046         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
3047         cast of the second argument to `ffi_raw_call' changed to match
3048         prototype.
3050 2000-07-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3052         * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
3053         argument to `ffi_raw_call' changed to match prototype.
3055 2000-07-31  Bryce McKinlay  <bryce@albatross.co.nz>
3057         * java/awt/Component.java (toString): Implemented.
3058         * java/awt/Container.java (addImpl): Remove FIXME. Only call 
3059         dispatchEvent() to dispatch the event.
3060         (removeImpl): Ditto.
3062 2000-07-30  Anthony Green  <green@redhat.com>
3064         * java/awt/Component.java: Add treeLock object.
3065         (getTreeLock): Implement.
3066         (isShowing): Implement.
3068 2000-07-30  Tom Tromey  <tromey@cygnus.com>
3070         * java/awt/BorderLayout.java (BorderLayout()): New constructor.
3072         * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
3074         * java/awt/Window.java (addNotify): Wrote.
3075         (addWindowListener): Wrote.
3076         (getLocale): Wrote.
3077         (getWarningString): Wrote.
3078         (processEvent): Wrote.
3079         (processWindowEvent): Wrote.
3080         (removeWindowListener): Wrote.
3081         (show): Call validate(), setVisible().
3082         (toBack): Wrote.
3083         (toFront): Wrote.
3085         * java/awt/Toolkit.java (createWindow): Declare.
3087         * java/awt/Frame.java (addNotify): Use getToolkit to find
3088         toolkit.
3090         * java/awt/Component.java (invalidate): Wrote.
3091         (isValid): Wrote.
3092         (getToolkit): Wrote.
3094         * java/awt/Container.java (addContainerListener): Removed
3095         unnecessary cast.
3096         (removeContainerListener): Likewise.
3097         (addImpl): Wrote.
3098         (add(Component)): Use it.
3099         (add(String,Component)): Likewise.
3100         (add(Component,int)): Likewise.
3101         (add(Component,Object)): Likewise.
3102         (add(Component,Object,int)): Likewise.
3103         (doLayout): Wrote.
3104         (getAlignmentX): Wrote.
3105         (getAlignmentY): Wrote.
3106         (getComponentAt): Wrote.
3107         (getMaximumSize): Wrote.
3108         (invalidate): Wrote.
3109         (list(PrintStream,int)): Wrote.
3110         (list(PrintWriter,int)): Wrote.
3111         (getMinimumSize): Wrote.
3112         (getPreferredSize): Wrote.
3113         (printComponents): Wrote.
3114         (processContainerEvent): Look at containerListener, not
3115         componentListener.
3116         (remove): Added event processing and peer destruction.
3117         (removeAll): Use remove.
3118         (removeNotify): Wrote.
3119         (validate): Wrote.
3120         (validateTree): Wrote.
3122         * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3123         * java/awt/Label.java (addNotify): Do nothing if peer exists.
3124         * java/awt/Container.java (addNotify): Don't create Container
3125         peer.
3126         * java/awt/Button.java (addNotify): Do nothing if peer exists.
3128 2000-07-30  Tom Tromey  <tromey@cygnus.com>
3130         * java/awt/Container.java (remove(int)): Wrote.
3131         (remove(Component)): Wrote.
3132         (add(Component)): Wrote.
3133         (add(Component,int)): Wrote.
3134         (removeAll): Wrote.
3135         (addNotify): Set our own peer.
3136         * java/awt/Scrollbar.java (listeners): Changed type.
3137         (Scrollbar): Don't initialize listeners.
3138         (addNotify): Wrote.
3139         (setValue): Call setValues.
3140         (setMinimum): Likewise.
3141         (setMaxPriority): Likewise.
3142         (setVisibleAmount): Likewise.
3143         (setValues): Wrote.
3144         (setUnitIncrement): Forward to peer.
3145         (setLineIncrement): Call setUnitIncrement.
3146         (setPageIncrement): Call setBlockIncrement.
3147         (setBlockIncrement): Forward to peer.
3148         (addAdjustmentListener): Rewrote.
3149         (removeAdjustmentListener): Rewrote.
3150         (processAdjustmentEvent): Rewrote.
3151         (paramString): Wrote.
3152         * Makefile.in: Rebuilt.
3153         * Makefile.am (awt_java_source_files): Added Button.java.
3154         * java/awt/Button.java: New file.
3155         * java/awt/Toolkit.java (createLabel): Declare.
3156         (createButton): Likewise.
3157         (createScrollbar): Likewise.
3158         (createContainer): Likewise.
3159         * java/awt/Label.java (addNotify): Wrote.
3160         (setAlignment): Call setAlignment in the peer.
3161         (setText): Call setText in the peer.
3163 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3165         * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3166         NotSerializableException with just the class name.
3168 2000-07-26  Andrew Haley  <aph@cygnus.com>
3170         * interpret.cc (continue1): Insert missing break into switch.
3172 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3174         * java/io/ObjectStreamException.java: Made constructors protected.
3176 2000-07-27  Tom Tromey  <tromey@cygnus.com>
3178         * java/io/OutputStreamWriter.java (close): Only flush if not
3179         closed.
3181 2000-07-27  Warren Levy  <warrenl@cygnus.com>
3183         * mauve-libgcj: Activated serialization tests.
3184         * gcj/field.h (getModifiers): Mask off unknown flags.
3185         * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3186         spurious bits don't cause discrepancies.
3187         * java/io/ObjectOutputStream.java: Fixed typo in comment.
3188         * java/io/ObjectStreamClass.java: Fixed typos in comments.
3189         (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3190         (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3191         * java/lang/Throwable.java (serialVersionUID): New field.
3192         * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3193         * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3194         unknown flags.
3195         * java/lang/reflect/natMethod.cc: Ditto.
3196         * java/security/Key.java (serialVersionUID): Removed field for now.
3197         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3198         * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3200 2000-07-22  Tom Tromey  <tromey@cygnus.com>
3202         * java/awt/geom/RectangularShape.java (getPathIterator):
3203         Wrote.
3205 2000-07-23  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3207         * libjava/java/awt/image/ColorModel.java: New file, replaces the
3208         stub libjava/java/awt/ColorModel.java which was located in the
3209         wrong package.
3210         * libjava/java/awt/image/ComponentColorModel.java: New file.
3211         * libjava/java/awt/image/ComponentSampleModel.java: New file.
3212         * libjava/java/awt/image/DataBuffer.java: New file.
3213         * libjava/java/awt/image/DataBufferByte.java: New file.
3214         * libjava/java/awt/image/DataBufferInt.java: New file.
3215         * libjava/java/awt/image/DataBufferUShort.java: New file.
3216         * libjava/java/awt/image/DirectColorModel.java: New file.
3217         * libjava/java/awt/image/PackedColorModel.java: New file.
3218         * libjava/java/awt/image/Raster.java: New file.
3219         * libjava/java/awt/image/SampleModel.java: New file.
3220         * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3221         file.
3222         * libjava/java/awt/image/IndexColorModel.java: New file.
3223         * libjava/java/awt/image/ImageConsumer.java: Removed import of
3224         java.awt.ColorModel stub.
3226         * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3227         * gnu/gcj/util/Buffers.java: New file, utility class.
3229         * libjava/Makefile.am: Updated to include new files.
3230         * libjava/Makefile.in: Rebuilt.
3232 2000-07-23  Oskar Liljeblad <osk@hem.passagen.se>
3234         * java/io/StreamTokenizer.java: Merged with classpath.
3236 2000-07-20  Tom Tromey  <tromey@cygnus.com>
3238         * Makefile.in: Rebuilt.
3239         * Makefile.am (awt_java_source_files): Updated for new files.
3240         * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3241         * java/awt/Label.java: New file.
3242         * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3243         (createIntersection, createUnion, getBounds2D): New methods.
3244         * java/awt/Scrollbar.java: New file.
3245         * java/awt/Shape.java: Updated to 1.2.
3246         * java/awt/geom/AffineTransform.java: New file.
3247         * java/awt/geom/Ellipse2D.java: New file.
3248         * java/awt/geom/NoninvertibleTransformException.java: New file.
3249         * java/awt/geom/PathIterator.java: New file.
3250         * java/awt/geom/Rectangle2D.java: New file.
3251         * java/awt/geom/RectangularShape.java: New file.
3252         * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3253         * java/awt/geom/IllegalPathStateException.java: New file.
3254         
3255         * scripts/showval.java: New file.
3257         * scripts/classes.pl (scan): Print inner classes properly.
3258         * gcj/javaprims.h: Updated class list.
3260         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3261         initialize String fields for interpreted classes.  Fixes bug
3262         reported by Hans Boehm.
3264         * java/io/File.java (getParentFile): New method, from Classpath
3265         via Oskar Liljeblad.
3267         * java/util/Vector.java (remove(Object)): Implemented.
3269 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
3271         * java/lang/natThrowable.cc (fillInStackTrace): Check for
3272         zero return from backtrace().
3274 2000-07-15  Bryce McKinlay  <bryce@albatross.co.nz>
3276         * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3277         synchronized block.
3278         * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3279         before calling notifyAll().
3281 2000-07-13  Bryce McKinlay  <bryce@albatross.co.nz>
3283         Add missing files from last check-in:
3284         * java/awt/image/ImageConsumer.java: New file.
3285         * java/awt/image/ImageProducer.java: New file.
3286         * java/awt/image/ImageObserver.java: New file.
3288 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3290         Merged implementation of java.applet from classpath:
3291         * java/applet/Applet.java: New file.
3292         * java/applet/AppletContext.java: New file.
3293         * java/applet/AppletStub.java: New file.
3294         * java/applet/AudioClip.java: New file.
3296         * Makefile.am: Added new java.applet classes.
3297         * Makefile.in: Rebuilt.
3299 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3301         AWT Stuff:
3302         * java/util/ResourceBundle.java (getLocale): stub.
3303         * Makefile.am: Added new AWT classes.
3304         * Makefile.in: Rebuilt.
3305         * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed, 
3306         constructors. Fix toString() and paramString().
3307         * java/awt/AWTEventMulticaster.java: New class. Implemented.
3308         * java/awt/CheckboxGroup.java: New class.
3309         * java/awt/ColorModel.java: New class.
3310         * java/awt/Component.java: Added stubs for most methods. Implemented 
3311         event dispatch.
3312         * java/awt/Container.java: ditto.
3313         * java/awt/ComponentOrientation.java: New class. Partly implemented.
3314         * java/awt/Cursor.java: ditto.
3315         * java/awt/Event.java: Fix paramString().
3316         * java/awt/EventQueue.java: New class. Implemented.
3317         * java/awt/Font.java: Added additional stub methods. Implemented 
3318         toString().
3319         * java/awt/FontMetrics.java: New class. Stubbed.
3320         * java/awt/GraphicsConfiguration.java: New class. Complete, except for 
3321         Java2D parts.
3322         * java/awt/Insets.java: New class. Implemented.
3323         * java/awt/Menu.java: Add new methods. Partially implemented.
3324         * java/awt/MenuItem.java: Add new methods and fields. Partially 
3325         implemented.
3326         * java/awt/MenuShortcut.java: New class. Implemented.
3327         * java/awt/Panel.java: New class. Placeholder.
3328         * java/awt/PopupMenu.java: New class. Stubbed.
3329         * java/awt/Rectangle.java: New class. Implemented.
3330         * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3331         * java/awt/event/ActionEvent.java: Implement paramString().
3332         * java/awt/event/AdjustmentEvent.java: Implement paramString().
3333         * java/awt/event/ComponentEvent.java: Implement paramString().
3334         * java/awt/event/ContainerEvent.java: Implement paramString().
3335         * java/awt/event/FocusEvent.java: Implement paramString().
3336         * java/awt/event/HierarchyBoundsAdapter.java: New class.
3337         * java/awt/event/HierarchyBoundsListener.java: New class.
3338         * java/awt/event/HierarchyEvent.java: New class.
3339         * java/awt/event/HierarchyListener.java: New class.
3340         * java/awt/event/InputMethodEvent.java: Implement paramString().
3341         * java/awt/event/InvocationEvent.java: Implement paramString(). Throw 
3342         exception if !catchExceptions.
3343         * java/awt/event/ItemEvent.java: Implement paramString().
3344         * java/awt/event/KeyEvent.java: Implement paramString().
3345         * java/awt/event/MouseEvent.java: Implement paramString().
3346         * java/awt/event/PaintEvent.java: Implement paramString().
3347         * java/awt/event/TextEvent.java: Implement paramString().
3348         * java/awt/event/WindowEvent.java: Implement paramString().
3349         
3350         AWT Peer interfaces:
3351         * java/awt/peer/ButtonPeer.java: New file.
3352         * java/awt/peer/ListPeer.java: New file.
3353         * java/awt/peer/CanvasPeer.java: New file.
3354         * java/awt/peer/MenuBarPeer.java: New file.
3355         * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3356         * java/awt/peer/MenuComponentPeer.java: New file.
3357         * java/awt/peer/CheckboxPeer.java: New file.
3358         * java/awt/peer/MenuItemPeer.java: New file.
3359         * java/awt/peer/ChoicePeer.java: New file.
3360         * java/awt/peer/MenuPeer.java: New file.
3361         * java/awt/peer/ComponentPeer.java: Implemented.
3362         * java/awt/peer/PanelPeer.java: New file.
3363         * java/awt/peer/ContainerPeer.java: Implemented.
3364         * java/awt/peer/PopupMenuPeer.java: New file.
3365         * java/awt/peer/DialogPeer.java: New file.
3366         * java/awt/peer/ScrollPanePeer.java: New file.
3367         * java/awt/peer/FileDialogPeer.java: New file.
3368         * java/awt/peer/ScrollbarPeer.java: New file.
3369         * java/awt/peer/FontPeer.java: New file.
3370         * java/awt/peer/TextAreaPeer.java: New file.
3371         * java/awt/peer/FramePeer.java: Implemented.
3372         * java/awt/peer/TextComponentPeer.java: New file.
3373         * java/awt/peer/LabelPeer.java: New file.
3374         * java/awt/peer/TextFieldPeer.java: New file.
3375         * java/awt/peer/LightweightPeer.java: New file.
3376         * java/awt/peer/WindowPeer.java: Implemented.
3378 2000-07-06  Tom Tromey  <tromey@cygnus.com>
3380         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3381         Initialize static final String fields.
3383 2000-07-03  Tom Tromey  <tromey@cygnus.com>
3385         * java/io/PrintWriter.java (print): Call write(String), not
3386         print(String).  See PR libgcj/277.
3387         (print(String)): Use write, not out.write.
3389 2000-06-30  Tom Tromey  <tromey@cygnus.com>
3391         * include/jni.h: Include <gcj/array.h>.  Fixes PR libgcj/270.
3393 2000-06-27  Andrew Haley  <aph@cygnus.com>
3395        * java/io/File.java (createTempFile): Close the FileDescriptor
3396        used to create a temp file.  Fixes some of PR 203.
3397        * java/io/natFileDescriptorPosix.cc (open): Call garbage
3398        collection if we run out of file handles.
3400 2000-06-28  Warren Levy  <warrenl@cygnus.com>
3402         * gnu/java/security/provider/Gnu.java: New file.
3403         * gnu/java/security/provider/SHA.java: New file.
3404         * gnu/java/security/provider/SHA1PRNG.java: New file.
3405         * Makefile.am: Added the above files.
3406         * Makefile.in: Rebuilt.
3408         * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3410 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
3412         * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3413         (destroyed_flag): Removed.
3414         (isDestroyed, removeGroup, removeThread): Test for parent == null.      
3415         (activeCount): Added spec note.
3417 2000-06-27  Warren Levy  <warrenl@cygnus.com>
3419         * java/security/Principal.java: New file.
3420         * Makefile.am: Added Principal.java.
3421         * Makefile.in: Rebuilt.
3423 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3425         * java/awt/event/MouseEvent.java: Fixed coordinate space
3426         confusion.
3428 2000-06-27  Tom Tromey  <tromey@cygnus.com>
3430         * java/io/PushbackInputStream.java (read): If there are characters
3431         in the buffer, don't also call super.read().
3432         * java/io/PushbackReader.java (read): If there are characters in
3433         the buffer, don't also call super.read().
3435         * java/lang/Double.java (valueOf): Call parseDouble().
3437 2000-06-26  Warren Levy  <warrenl@cygnus.com>
3439         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3440         (newVal): Renamed to newValue.
3441         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3442         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3443         (revokeNow): Renamed to invalidateRefs.
3444         * java/io/OptionalDataException.java: Updated FIXME.
3445         (eof): New placeholder field.
3446         (length); Ditto.
3447         * java/io/WriteAbortedException.java (message): Made transient.
3448         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3449         * java/lang/Throwable.java (stackTrace): Made transient.
3450         * java/net/InetAddress.java: Made Serializable.
3451         * java/security/KeyPair.java: Made Serializable.
3452         * java/security/Provider.java: Replaced with Classpath version that
3453         implements serialization and proper methods.
3454         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3455         (limits): Renamed to choiceLimits.
3457 2000-06-24  Tom Tromey  <tromey@cygnus.com>
3459         * java/lang/natDouble.cc (parseDouble): Renamed from
3460         doubleValueOf.
3461         * java/lang/Double.java (parseDouble): Renamed from
3462         doubleValueOf.  Now public.
3464 2000-06-23  Andrew Haley  <aph@cygnus.com>
3466         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3467         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3469 2000-06-23  Tom Tromey  <tromey@cygnus.com>
3471         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3472         * java/lang/natDouble.cc: Always include <alloca.h>.
3473         Fix for PR libgcj/267.
3475 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
3477         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3478         comply with classpath VM spec.
3479         (add(Group)): Rename to addGroup().
3480         * java/lang/Thread.java (Thread): Use addThread().
3481         * java/lang/natThread.cc (finish_): Use removeThread().
3483 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
3485         * java/lang/ThreadGroup.java: Merged with classpath.
3486         * prims.cc (_Jv_RunMain): Don't use `main_group'.
3487         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3488         argument.
3489         * java/lang/Thread.java (Thread): Bootstrap initial thread from 
3490         ThreadGroup.root if Thread.currentThread is null. Honour the 
3491         ThreadGroup's max priority setting.
3493 2000-06-18  Tom Tromey  <tromey@cygnus.com>
3495         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
3496         returned class.  For PR gcj/260.
3498 2000-06-16  Tom Tromey  <tromey@cygnus.com>
3500         Fix for PR libgcj/261:
3501         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3502         argument.
3503         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3504         argument.  (This is a patch from long ago that somehow went
3505         missing.)
3507 2000-06-15  Tom Tromey  <tromey@cygnus.com>
3509         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3510         (read): Use it.
3511         (write): Likewise.
3513 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
3515         Fix for PR java.lang/258:
3516         * prims.cc (_Jv_PrimClass): Set state of primitive class to 
3517         JV_STATE_DONE, to prevent accidental initialization.
3518         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call 
3519         _Jv_InterfaceAssignableFrom if target is an interface and source is an
3520         interface or an abstract class. Remove redundant initializeClass calls. 
3521         Remove duplicate if_idt test.
3522         (_Jv_InterfaceAssignableFrom): New function.
3523         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3525 2000-05-31  Tom Tromey  <tromey@cygnus.com>
3527         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3528         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3529         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3530         (NUM_OBJECT_METHODS): New define.
3531         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3532         `array_vtable' parameter.  Added assertion.
3533         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3534         parameter.
3536 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
3538         * gcj/cni.h: Include <string.h>.
3539         * defineclass.cc: Include <alloca.h>.
3540         * interpret.cc: Ditto.
3541         * gij.cc: Include <stdlib.h>.
3543 2000-05-30  Tom Tromey  <tromey@cygnus.com>
3545         * include/name-finder.h: Include <sys/wait.h>.
3546         (_Jv_name_finder::pid): Now of type `pid_t'.
3547         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3548         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3549         `proc.waitFor()'.
3551 2000-05-24  Warren Levy  <warrenl@cygnus.com>
3553         * java/io/ObjectOutputStream.java (writeObject): Use component type
3554         when writing arrays.
3555         Fixed typo.
3557 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
3559         Fix for PR libgcj/226:
3560         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3561         since this is an installed header.
3562         
3563         Fix for PR libgcj/228:
3564         * java/util/zip/ZipFile (getInputStream): Create inflater with 
3565         nowrapper option.
3566         
3567         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3568         with DataFormatException.       
3570 2000-05-20  Tom Tromey  <tromey@cygnus.com>
3572         * Makefile.in: Rebuilt.
3573         * Makefile.am (hack1): Removed.
3574         (awto_files): Likewise.
3575         (libgcjawt_la_SOURCES): Likewise.
3576         (EXTRA_libgcjawt_la_SOURCES): Likewise.
3577         (libgcjawt_la_DEPENDENCIES): Likewise.
3578         (libgcjawt_la_LIBADD): Likewise.
3579         (libgcjawt_la_LDFLAGS): Likewise.
3580         (libgcjawt_la_LINK): Likewise.
3581         ($(awt_java_source_files:.java=.class)): Likewise.
3582         (libgcj.zip): Don't depend on AWT files.
3583         (MOSTLYCLEANFILES): Don't include AWT files.
3584         ($(awto_files)): Removed.
3585         (nat_headers): Removed AWT files.
3586         (cond_awt_java_source_files): Removed.
3587         (ordinary_java_source_files): Added awt_java_source_files.
3588         * libgcj.spec.in (*lib): Removed -lgcjawt.
3589         * configure: Rebuilt.
3590         * configure.in: Removed --enable-java-awt option.
3592 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
3594         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3595         (ZipEntry): Copy the `name' field.
3596         (clone): Implement JDK1.2 method.
3597         (setCompressedSize): ditto.
3598         (hashCode): ditto.
3600 2000-05-19  Tom Tromey  <tromey@cygnus.com>
3602         * java/io/BufferedWriter.java: Merged with Classpath.
3603         * java/io/BufferedOutputStream.java: Merged with Classpath.
3605 2000-05-16  Andrew Haley  <aph@cygnus.com>
3607         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3608         build_ia64_frame_state.
3609         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3610         defintion in gcc.
3612 2000-05-15  Warren Levy  <warrenl@cygnus.com>
3614         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3615         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3616         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3617         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3618         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3619         * gnu/gcj/beans/editors/FontEditor.java: Removed.
3620         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3621         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3622         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3623         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3624         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3625         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3626         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3627         * gnu/gcj/beans/editors/StringEditor.java: Removed.
3628         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3629         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3630         * gnu/gcj/io/NullOutputStream.java: Removed.
3631         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3632         * gnu/gcj/lang/ArrayHelper.java: Removed.
3633         * gnu/gcj/lang/ClassHelper.java: Removed.
3634         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3636         * gnu/java/beans/BeanInfoEmbryo.java: New file.
3637         * gnu/java/beans/EmptyBeanInfo.java: New file.
3638         * gnu/java/beans/ExplicitBeanInfo.java: New file.
3639         * gnu/java/beans/IntrospectionIncubator.java: New file.
3640         * gnu/java/beans/editors/ColorEditor.java: New file.
3641         * gnu/java/beans/editors/FontEditor.java: New file.
3642         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3643         * gnu/java/beans/editors/NativeByteEditor.java: New file.
3644         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3645         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3646         * gnu/java/beans/editors/NativeIntEditor.java: New file.
3647         * gnu/java/beans/editors/NativeLongEditor.java: New file.
3648         * gnu/java/beans/editors/NativeShortEditor.java: New file.
3649         * gnu/java/beans/editors/StringEditor.java: New file.
3650         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3651         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3652         * gnu/java/io/NullOutputStream.java: New file.
3653         * gnu/java/io/ObjectIdentityWrapper.java: New file.
3654         * gnu/java/lang/ArrayHelper.java: New file.
3655         * gnu/java/lang/ClassHelper.java: New file.
3656         * gnu/java/lang/reflect/TypeSignature.java: New file.
3658         * Makefile.am: Updated for moving Classpath files from gnu/gcj
3659         namespace back to the original Classpath gnu/java namespace.
3660         * Makefile.in: Rebuilt.
3662         * java/beans/Beans.java: Namespace change.
3663         * java/beans/EventSetDescriptor.java: Namespace change.
3664         * java/beans/Introspector.java: Namespace change.
3665         * java/beans/PropertyEditorManager.java: Namespace change.
3666         * java/io/ObjectInputStream.java: Namespace change.
3667         * java/io/ObjectOutputStream.java: Namespace change.
3668         * java/io/ObjectStreamClass.java: Namespace change.
3669         * java/io/ObjectStreamField.java: Namespace change.
3671 2000-04-21  Warren Levy  <warrenl@cygnus.com>
3673         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3674         now that compiler patch is available.
3675         Removed unneeded System.loadLibrary.
3676         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3677         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3679 2000-04-19  Andrew Haley  <aph@cygnus.com>
3681         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3682         and target classes have been initialized.
3684 2000-04-19  Andrew Haley  <aph@cygnus.com>
3686         * java/lang/String.java: implement Serializable, Comparable.
3687         (compareTo (Object)): New method.
3689 2000-04-19  Warren Levy  <warrenl@cygnus.com>
3691         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3692         instead of getField to retrieve non-public field.
3693         (getSerialPersistantFields): Ditto.
3695 2000-04-18  Warren Levy  <warrenl@cygnus.com>
3697         * mauve-libgcj: Turned off object serialization tests temporarily
3698         due to compiler error.
3700 2000-04-17  Warren Levy  <warrenl@cygnus.com>
3702         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3703         to avoid build problem.
3704         (DEBUGln): Ditto.
3705         * mauve-libgcj: Turned on object serialization tests.
3707 2000-04-17  Tom Tromey  <tromey@cygnus.com>
3709         * libgcj.spec.in (*lib): Added -lgcjawt.
3711 2000-04-17  Andrew Haley  <aph@cygnus.com>
3713         * Makefile.am: Add new files: 
3714         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3715         gnu/gcj/io/shs.cc.
3716         * Makefile.in: Rebuilt.
3718         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3719         interface that has no implementations.
3720         Check for an attempt to assign an abstract class to an interface.
3722         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3723         if we fail to find MessageDigest.getInstance ("SHA").
3725         * gnu/gcj/io/SimpleSHSStream.java: New file.
3726         * gnu/gcj/io/natSimpleSHSStream.java: New file.
3727         * gnu/gcj/io/shs.cc: New file.
3728         * gnu/gcj/io/shs.h: new file.
3730         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3731         serializable.
3733         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3734         punctuation from the classname of an array element.
3736         * gcj/javaprims.h: Add SimpleDigestStream.
3737         
3738 2000-04-17  Andrew Haley  <aph@cygnus.com>
3740         * java/lang/natClass.cc (getPrivateField): Make recursive calls
3741         to getPrivateField for superclasses.
3743 2000-04-14  Andrew Haley  <aph@cygnus.com>
3745         * Makefile.am: Add new files:
3746         java/io/ObjectOutputStream$PutField.h,
3747         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3748         java/io/natObjectOutputStream.cc
3749         * Makefile.in: Rebuilt.
3750         * gcj/Makefile.in: Rebuilt.
3751         * include/Makefile.in: Rebuilt.
3752         * java/lang/Class.h (getPrivateField): New method.
3753         (getPrivateMethod): Ditto.
3754         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3755         and java::io::ObjectStreamClass our friends.
3756         * java/lang/natClass.cc (getPrivateField): New method.
3757         (getPrivateMethod): Ditto.
3758         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3759         * gcj/javaprims.h: Add serialization classes.   
3760         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3761         (setByteField): Ditto.
3762         (setCharField): Ditto.
3763         (setDoubleField): Ditto.
3764         (setFloatField): Ditto.
3765         (setIntField): Ditto.
3766         (setLongField): Ditto.
3767         (setShortField): Ditto.
3768         (setObjectField): Ditto.
3769         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3770         Java.
3771         (getByteField): Ditto.
3772         (getCharField): Ditto.
3773         (getDoubleField): Ditto.
3774         (getFloatField): Ditto.
3775         (getIntField): Ditto.
3776         (getLongField): Ditto.
3777         (getShortField): Ditto.
3778         (getObjectField): Ditto.
3779         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3780         Java.
3781         (getSerialPersistantFields): Ditto.
3782         (getDefinedSUID): Ditto.
3783         * java/io/natObjectOutputStream.cc: New file.
3784         * java/io/natObjectInputStream.cc: New file.
3785         
3786 2000-04-13  Warren Levy  <warrenl@cygnus.com>
3788         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3789         problems.  Revert to previous version to reproduce and when fixed.
3791 2000-04-13  Warren Levy  <warrenl@cygnus.com>
3793         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3794         * gnu/gcj/io/NullOutputStream.java: New file.
3795         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3796         * java/io/BlockDataException.java: New file.
3797         * java/io/Externalizable.java: New file.
3798         * java/io/InvalidClassException.java: New file.
3799         * java/io/InvalidObjectException.java: New file.
3800         * java/io/NotActiveException.java: New file.
3801         * java/io/NotSerializableException.java: New file.
3802         * java/io/ObjectInput.java: New file.
3803         * java/io/ObjectInputStream.java: New file.
3804         * java/io/ObjectInputValidation.java: New file.
3805         * java/io/ObjectOutput.java: New file.
3806         * java/io/ObjectOutputStream.java: New file.
3807         * java/io/ObjectStreamClass.java: New file.
3808         * java/io/ObjectStreamConstants.java: New file.
3809         * java/io/ObjectStreamField.java: New file.
3810         * java/io/Replaceable.java: New file.
3811         * java/io/Resolvable.java: New file.
3812         * java/io/SerializablePermission.java: New file.
3813         * java/io/WriteAbortedException.java: New file.
3814         * java/security/BasicPermission.java: New file.
3815         * java/security/DigestOutputStream.java: New file.
3816         * java/security/Guard.java: New file.
3817         * java/security/Permission.java: New file.
3818         * java/security/PermissionCollection.java: New file.
3819         * Makefile.am: Added above files.
3820         * Makefile.in: Rebuilt.
3822         * java/beans/Beans.java (instantiate): Activated serialization code.
3823         * java/lang/SecurityManager.java (checkPermission): New method.
3825 2000-04-12  Warren Levy  <warrenl@cygnus.com>
3827         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3828         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3829         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3830         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3831         * gnu/gcj/beans/editors/ColorEditor.java: New file.
3832         * gnu/gcj/beans/editors/FontEditor.java: New file.
3833         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3834         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3835         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3836         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3837         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3838         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3839         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3840         * gnu/gcj/beans/editors/StringEditor.java: New file.
3841         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3842         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3843         * gnu/gcj/lang/ArrayHelper.java: New file.
3844         * gnu/gcj/lang/ClassHelper.java: New file.
3845         * java/beans/BeanDescriptor.java: New file.
3846         * java/beans/BeanInfo.java: New file.
3847         * java/beans/Beans.java: New file.
3848         * java/beans/Customizer.java: New file.
3849         * java/beans/DesignMode.java: New file.
3850         * java/beans/EventSetDescriptor.java: New file.
3851         * java/beans/FeatureDescriptor.java: New file.
3852         * java/beans/IndexedPropertyDescriptor.java: New file.
3853         * java/beans/IntrospectionException.java: New file.
3854         * java/beans/Introspector.java: New file.
3855         * java/beans/MethodDescriptor.java: New file.
3856         * java/beans/ParameterDescriptor.java: New file.
3857         * java/beans/PropertyChangeEvent.java: New file.
3858         * java/beans/PropertyChangeListener.java: New file.
3859         * java/beans/PropertyChangeSupport.java: New file.
3860         * java/beans/PropertyDescriptor.java: New file.
3861         * java/beans/PropertyEditor.java: New file.
3862         * java/beans/PropertyEditorManager.java: New file.
3863         * java/beans/PropertyEditorSupport.java: New file.
3864         * java/beans/PropertyVetoException.java: New file.
3865         * java/beans/SimpleBeanInfo.java: New file.
3866         * java/beans/VetoableChangeListener.java: New file.
3867         * java/beans/VetoableChangeSupport.java: New file.
3868         * java/beans/Visibility.java: New file.
3869         * java/beans/beancontext/BeanContext.java: New file.
3870         * java/beans/beancontext/BeanContextChild.java: New file.
3871         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3872         * java/beans/beancontext/BeanContextChildSupport.java: New file.
3873         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3874         * java/beans/beancontext/BeanContextEvent.java: New file.
3875         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3876         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3877         * java/beans/beancontext/BeanContextProxy.java: New file.
3878         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3879         New file.
3880         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3881         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3882         New file.
3883         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3884         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3885         New file.
3886         * java/beans/beancontext/BeanContextServices.java: New file.
3887         * java/beans/beancontext/BeanContextServicesListener.java: New file.
3888         * java/util/AbstractCollection.java: New file.
3889         * java/util/AbstractList.java: New file.
3890         * java/util/Arrays.java: New file.
3891         * Makefile.am: Added above files.
3892         * Makefile.in: Rebuilt.
3894 2000-04-11  Warren Levy  <warrenl@cygnus.com>
3896         * java/awt/AWTError.java: New file.
3897         * java/awt/AWTEvent.java: New file.
3898         * java/awt/AWTException.java: New file.
3899         * java/awt/ActiveEvent.java: New file.
3900         * java/awt/Adjustable.java: New file.
3901         * java/awt/BorderLayout.java: New file.
3902         * java/awt/Color.java: New file.
3903         * java/awt/Component.java: New file.
3904         * java/awt/Container.java: New file.
3905         * java/awt/Dimension.java: New file.
3906         * java/awt/Event.java: New file.
3907         * java/awt/Font.java: New file.
3908         * java/awt/Frame.java: New file.
3909         * java/awt/Graphics.java: New file.
3910         * java/awt/IllegalComponentStateException.java: New file.
3911         * java/awt/Image.java: New file.
3912         * java/awt/ItemSelectable.java: New file.
3913         * java/awt/LayoutManager.java: New file.
3914         * java/awt/LayoutManager2.java: New file.
3915         * java/awt/Menu.java: New file.
3916         * java/awt/MenuBar.java: New file.
3917         * java/awt/MenuComponent.java: New file.
3918         * java/awt/MenuContainer.java: New file.
3919         * java/awt/MenuItem.java: New file.
3920         * java/awt/Paint.java: New file.
3921         * java/awt/PaintContext.java: New file.
3922         * java/awt/Point.java: New file.
3923         * java/awt/Rectangle.java: New file.
3924         * java/awt/Shape.java: New file.
3925         * java/awt/TextArea.java: New file.
3926         * java/awt/TextComponent.java: New file.
3927         * java/awt/Toolkit.java: New file.
3928         * java/awt/Transparency.java: New file.
3929         * java/awt/Window.java: New file.
3930         * java/awt/natToolkit.cc: New file.
3931         * java/awt/event/AWTEventListener.java: New file.
3932         * java/awt/event/ActionEvent.java: New file.
3933         * java/awt/event/ActionListener.java: New file.
3934         * java/awt/event/AdjustmentEvent.java: New file.
3935         * java/awt/event/AdjustmentListener.java: New file.
3936         * java/awt/event/ComponentAdapter.java: New file.
3937         * java/awt/event/ComponentEvent.java: New file.
3938         * java/awt/event/ComponentListener.java: New file.
3939         * java/awt/event/ContainerAdapter.java: New file.
3940         * java/awt/event/ContainerEvent.java: New file.
3941         * java/awt/event/ContainerListener.java: New file.
3942         * java/awt/event/FocusAdapter.java: New file.
3943         * java/awt/event/FocusEvent.java: New file.
3944         * java/awt/event/FocusListener.java: New file.
3945         * java/awt/event/InputEvent.java: New file.
3946         * java/awt/event/InputMethodEvent.java: New file.
3947         * java/awt/event/InputMethodListener.java: New file.
3948         * java/awt/event/InvocationEvent.java: New file.
3949         * java/awt/event/ItemEvent.java: New file.
3950         * java/awt/event/ItemListener.java: New file.
3951         * java/awt/event/KeyAdapter.java: New file.
3952         * java/awt/event/KeyEvent.java: New file.
3953         * java/awt/event/KeyListener.java: New file.
3954         * java/awt/event/MouseAdapter.java: New file.
3955         * java/awt/event/MouseEvent.java: New file.
3956         * java/awt/event/MouseListener.java: New file.
3957         * java/awt/event/MouseMotionAdapter.java: New file.
3958         * java/awt/event/MouseMotionListener.java: New file.
3959         * java/awt/event/PaintEvent.java: New file.
3960         * java/awt/event/TextEvent.java: New file.
3961         * java/awt/event/TextListener.java: New file.
3962         * java/awt/event/WindowAdapter.java: New file.
3963         * java/awt/event/WindowEvent.java: New file.
3964         * java/awt/event/WindowListener.java: New file.
3965         * java/awt/geom/Dimension2D.java: New file.
3966         * java/awt/geom/Point2D.java: New file.
3967         * java/awt/peer/ComponentPeer.java: New file.
3968         * java/awt/peer/ContainerPeer.java: New file.
3969         * java/awt/peer/FramePeer.java: New file.
3970         * java/awt/peer/WindowPeer.java: New file.
3971         * java/util/Collection.java: New file.
3972         * java/util/Comparator.java: New file.
3973         * java/util/Iterator.java: New file.
3974         * java/util/List.java: New file.
3975         * java/util/ListIterator.java: New file.
3976         * Makefile.am: Added above files.
3977         * Makefile.in: Rebuilt.
3979 2000-04-10  Warren Levy  <warrenl@cygnus.com>
3981         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3982         * java/lang/FirstThread.java: Ditto.
3983         * java/lang/StringBuffer.java: Ditto.
3984         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3986         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3987         Special case handled in java.math.BigInteger.
3988         * java/math/BigInteger.java (divide): Handle the special case when
3989         dividing by 1 and the high bit of the dividend is set.
3990         (setShiftRight): Handle case when count == 0.
3992 2000-04-05  Andrew Haley  <aph@cygnus.com>
3994         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3995         special case.
3997 2000-04-05  Andrew Haley  <aph@cygnus.com>
3999         * sysdep/ia64.c (rse_address_add): Delete.
4000         (IS_NaT_COLLECTION_ADDR): Delete.
4001         (ia64_backtrace_helper): check for null unwind_info.
4002         
4003         * sysdep/ia64-frame.h: add calc_caller_bsp.
4005         * java/lang/natThrowable.cc (printRawStackTrace): Flush
4006         PrintWriter.
4008         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
4009         (_Jv_remI): Likewise.
4010         (_Jv_divJ): Likewise.
4011         (_Jv_remJ): Likewise.
4012         
4013         * interpret.cc (continue1): Use divide subroutines to guarantee
4014         correct Java standard behaviour.
4015         Floating-point division should not abort; make it so.
4017 2000-03-29  Tom Tromey  <tromey@cygnus.com>
4019         * configure: Rebuilt.
4020         * configure.in: Test against `libgcj_sjlj', not
4021         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
4022         to be set even when using sjlj.
4024 2000-03-24  Andrew Haley  <aph@cygnus.com>
4026         * Makefile.am: Add file addr2name.awk.
4027         * Makefile.in: Rebuilt.
4028         * addr2name.awk: New file.
4029         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
4030         lookups on ia64.
4031         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
4032         blank line.
4033         
4034 2000-03-22  Andrew Haley  <aph@cygnus.com>
4036         * configure.host: Add -funwind-tables for IA64.
4037         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
4038         * Makefile.in: Rebuilt.
4039         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
4040         * sysdep/ia64.c: New file.
4041         * sysdep/ia64-frame.h: New file.
4042         * configure.in: Add sysdep/ia64.c for ia64.
4043         * configure: Rebuilt.
4044         
4045 2000-03-17  Andrew Haley  <aph@cygnus.com>
4047         * java/lang/natString.cc: Remove `register' keyword.
4048         interpret.cc: ditto.
4050 2000-03-16  Andrew Haley  <aph@cygnus.com>
4052         * configure.host (ia64): Enable interpreter.
4054 2000-03-14  Hans Boehm  <boehm@acm.org>
4056         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
4058 2000-03-14  Andrew Haley  <aph@cygnus.com>
4060         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
4061         `_exception'.
4063 2000-03-10  Andrew Haley  <aph@cygnus.com>
4065         * java/lang/ieeefp.h: Import latest version from fdlibm.
4067 2000-03-14  Andrew Haley  <aph@cygnus.com>
4069         * prims.cc (_Jv_ThrowSignal): New function.
4070         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
4071         (catch_fpe): Ditto.
4072         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
4073         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
4074         * include/ppc-signal.h: New file.
4076 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
4078         * java/lang/Thread.java: Declare `data' as Object, not RawData.
4079         * java/lang/natThread.java (initialize_native): Cast `data' to
4080         jobject.
4081         * gnu/gcj/RawData.java: Clarify documentation.
4083         From Gregory R. Warnes <warnes@biostat.washington.edu>:
4084         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4085         `jarFile', not `jarFileURL'.
4087 2000-05-15  Andrew Haley  <aph@cygnus.com>
4089         * include/ppc-signal.h: New file.
4091 2000-05-11  Tom Tromey  <tromey@cygnus.com>
4093         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4094         file headers, don't include `size' in the skip call.
4096 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
4098         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4099         Avoid arrayCopy() call where possible. Update `count' _after_ calling
4100         arrayCopy().
4101         (replace): Reimplemented. Fix javadoc.
4102         (reverse): Call ensureCapacity_unsynchronized().
4103         (StringBuffer (String)): Use DEFAULT_CAPACITY.
4105         (replace): Calculate length for arraycopy() correctly.
4106         
4107 2000-05-09  Tom Tromey  <tromey@cygnus.com>
4109         * java/lang/StringBuffer.java (toString): Don't mark buffer as
4110         shared.
4111         (insert(int,char[],int,int): New method.
4112         (delete): New method from Classpath.
4113         (deleteCharAt): Likewise.
4114         (substring): Likewise.
4115         (shared): No longer private.
4116         Added JavaDoc comments from Classpath.
4117         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4118         shared.
4120 2000-05-07  Tom Tromey  <tromey@cygnus.com>
4122         * Makefile.in: Rebuilt.
4123         * Makefile.am (LIBLINK): New macro.
4124         (libgcj_la_LINK): Use it.
4125         (libgcjawt_la_LINK): Likewise.
4127 2000-05-06  Tom Tromey  <tromey@cygnus.com>
4129         * Makefile.in: Rebuilt.
4130         * Makefile.am (libgcj.zip): Don't pass -L to javac.
4132 2000-05-05  Tom Tromey  <tromey@cygnus.com>
4134         Fix for PR libgcj/220:
4135         * Makefile.in: Rebuilt.
4136         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4137         (jv_convert_LDFLAGS): Likewise.
4138         (libgcj_la_LDFLAGS): Likewise.
4139         (GCJLINK): New macro.
4140         (jv_convert_LINK): Use it.
4141         (gij_LINK): Likewise.
4142         (libgcj_la_LINK): New macro.
4143         (libgcjawt_la_LINK): Likewise.
4145 2000-05-04  Tom Tromey  <tromey@cygnus.com>
4147         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4148         field.
4149         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
4150         `0x0008'.
4151         Include Modifier.h.
4153 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
4155         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4156         (_Jv_IsAssignableFrom): Ditto.
4157         (_Jv_IsInstanceOf): Ditto.
4158         (_Jv_CheckCast): Ditto.
4159         (_Jv_CheckArrayStore): Ditto.
4160         * java/lang/Class.h (_Jv_InitClass): Ditto.     
4161         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4162         not `0'.
4163         (notify): Ditto.
4164         (notifyAll): Ditto.
4165         (wait): Ditto.
4166         (_Jv_MonitorExit): Ditto.
4167         * boehm.cc (_Jv_MarkObj): Ditto.
4168         (_Jv_MarkObj): Ditto.
4169         (_Jv_MarkArray): Ditto.
4170         * prims.cc (_Jv_AllocObject): Ditto.
4171         (_Jv_NewObjectArray): Ditto.
4172         (_Jv_NewPrimArray): Ditto.
4173         (_Jv_Malloc): Ditto.
4174         (_Jv_Realloc): Ditto.
4175         (_Jv_MallocUnchecked): Ditto.
4176         (_Jv_divI): Ditto.
4177         (_Jv_remI): Ditto.
4178         (_Jv_divJ): Ditto.
4179         (_Jv_remJ): Ditto.
4181 2000-05-04  Tom Tromey  <tromey@cygnus.com>
4183         * java/util/Locale.java (Locale): Don't explicitly check for
4184         null.
4185         * java/util/Hashtable.java (containsKey): Don't explicitly check
4186         for null.
4187         (get): Likewise.
4188         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4189         null.
4190         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4191         for null.
4192         * java/text/StringCharacterIterator.java
4193         (StringCharacterIterator): Don't check for null.
4194         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4195         for null pointer.
4196         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4197         check for null pointer.
4198         (leaveGroup): Likewise.
4199         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4200         comment.
4201         (setData): Likewise.
4202         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4203         for `p==null'.
4205 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
4207         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4208         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4209         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4210         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4211         -rpath for in-gcc builds.
4212         * Makefile.in: Rebuilt.
4214 2000-04-28  Tom Tromey  <tromey@cygnus.com>
4216         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4217         Fix for PR gcj/218.
4219 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
4221         * libjava/java/lang/String.java (toString): Remove `final' hack.
4223 2000-04-05  Tom Tromey  <tromey@cygnus.com>
4225         Runtime support for PR gcj/2:
4226         * prims.cc (_Jv_ThrowNullPointerException): New function.
4227         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4229 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
4231         * prims.cc (_Jv_NewObjectArray): Fix typo.
4233 2000-04-26  Tom Tromey  <tromey@cygnus.com>
4235         * Makefile.in: Rebuilt.
4236         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4238 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
4240         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4241         calling main.
4243 2000-04-22  Anthony Green  <green@cygnus.com>
4245         * include/jvm.h (__builtin_expect): Define as unused for now.
4246         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4247         (notify): Ditto.
4248         (notifyAll): Ditto.
4249         (wait): Ditto.
4250         (_Jv_MonitorExit): Ditto.
4251         * boehm.cc (_Jv_MarkObj): Ditto.
4252         (_Jv_MarkObj): Ditto.
4253         (_Jv_MarkArray): Ditto.
4254         (_Jv_AllocBytes): Ditto.
4255         * prims.cc (_Jv_AllocObject): Ditto.
4256         (_Jv_NewObjectArray): Ditto.
4257         (_Jv_NewPrimArray): Ditto.
4258         (_Jv_Malloc): Ditto.
4259         (_Jv_Realloc): Ditto.
4260         (_Jv_MallocUnchecked): Ditto.
4261         (_Jv_divI): Ditto.
4262         (_Jv_remI): Ditto.
4263         (_Jv_divJ): Ditto.
4264         (_Jv_remJ): Ditto.
4266         * include/Makefile.in: Rebuilt.
4267         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4269 2000-04-21  Tom Tromey  <tromey@cygnus.com>
4271         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4272         Yet another new version from Classpath.
4274         Fix for PR libgcj/15:
4275         * java/util/natGregorianCalendar.cc (_REENTRANT,
4276         _POSIX_PTHREAD_SEMANTICS): Don't define.
4277         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4278         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4279         Don't define.
4280         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4281         define.
4282         * configure: Rebuilt.
4283         * configure.in: If using POSIX threads, define _REENTRANT if
4284         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
4285         GETHOSTBYNAME_R_NEEDS_REENTRANT.
4287         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4288         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4289         version from Classpath.
4291         Fix for PR libgcj/213:
4292         * Makefile.in: Rebuilt.
4293         * Makefile.am (gij_SOURCES): Added gij.cc.
4294         (EXTRA_gij_SOURCES): Removed.
4295         (gij_LDADD): Removed gij.lo.
4296         (gij_DEPENDENCIES): Likewise.
4297         ($(gij_OBJECTS)): Depend on nat_headers.
4299         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4300         `setURL', not `url.set'.
4302 2000-04-20  Tom Tromey  <tromey@cygnus.com>
4304         Fix for PR java.io/204:
4305         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4306         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4307         from Classpath.
4309         Fix for PR libgcj/212:
4310         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4311         * include/jvm.h (_Jv_word, _Jv_word2): Define.
4312         * java/lang/Class.h (_Jv_word): Declare.
4314         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4316 2000-04-19  Tom Tromey  <tromey@cygnus.com>
4318         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4319         doesn't have a loader.
4321 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
4323         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4324         MAYBE_MARK to ptr_t, for compatibility with new GC version.
4326 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
4328         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4329         libgcj/202.
4330         (available): Initialize `where' to prevent bogus compiler warning.
4332 2000-04-12  Tom Tromey  <tromey@cygnus.com>
4334         * java/lang/natString.cc (intern): Temporarily disable finalizer
4335         registration.
4337         * java/lang/natString.cc (unintern): Added `obj' argument.
4338         (intern): Register finalizer for string.
4339         * java/lang/String.java (unintern): Now static; added obj
4340         argument.
4342 2000-04-11  Tom Tromey  <tromey@cygnus.com>
4344         * java/util/Vector.java (VectorEnumeration): Now `final'.
4345         * java/util/Hashtable.java (HashtableEntry): Now `final'.
4346         (HashtableEnumeration): Likewise.
4347         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4348         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4350 2000-04-10  Warren Levy  <warrenl@cygnus.com>
4352         * java/io/ObjectStreamException.java: New file.
4353         * java/io/OptionalDataException.java: New file.
4354         * java/io/StreamCorruptedException.java: New file.
4355         * java/math/BigDecimal.java: New file.
4356         * java/sql/CallableStatement.java: New file.
4357         * java/sql/Connection.java: New file.
4358         * java/sql/DataTruncation.java: New file.
4359         * java/sql/DatabaseMetaData.java: New file.
4360         * java/sql/Date.java: New file.
4361         * java/sql/Driver.java: New file.
4362         * java/sql/DriverManager.java: New file.
4363         * java/sql/DriverPropertyInfo.java: New file.
4364         * java/sql/PreparedStatement.java: New file.
4365         * java/sql/ResultSet.java: New file.
4366         * java/sql/ResultSetMetaData.java: New file.
4367         * java/sql/SQLException.java: New file.
4368         * java/sql/SQLWarning.java: New file.
4369         * java/sql/Statement.java: New file.
4370         * java/sql/Time.java: New file.
4371         * java/sql/Timestamp.java: New file.
4372         * java/sql/Types.java: New file.
4373         * Makefile.am: Added above new files.
4374         * Makefile.in: Rebuilt.
4376         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4377         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4378         DatagramSocket constructor instead of null.
4380 2000-04-08  Anthony Green  <green@cygnus.com>
4382         * include/posix-threads.h (_Jv_MutexUnlock): Replace
4383         _JV_NOT_OWNER.
4384         
4385 2000-04-08  Anthony Green  <green@cygnus.com>
4387         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4388         (_Jv_MutexUnlock): Ditto.
4389         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4390         (_Jv_MutexUnlock): Ditto.
4392 2000-04-08  Anthony Green  <green@cygnus.com>
4394         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4395         (ensureCapacity_unsynchronized): New private method.
4396         (append): Use ensureCapacity_unsynchronized.
4398 2000-04-08  Tom Tromey  <tromey@cygnus.com>
4400         * Makefile.in: Rebuilt.
4401         * Makefile.am (awt_java_source_files): Added new files.
4402         * java/awt/IllegalComponentStateException.java: New file.
4403         * java/awt/ItemSelectable.java: New file.
4404         * java/awt/event/WindowEvent.java: Finished.
4405         * java/awt/event/TextEvent.java: Finished.
4406         * java/awt/event/ContainerEvent.java: New file.
4407         * java/awt/Component.java (getX, getY): New methods.
4408         * java/awt/event/PaintEvent.java: New file.
4409         * java/awt/event/MouseEvent.java: New file.
4410         * java/awt/ActiveEvent.java: New file.
4411         * java/awt/event/KeyEvent.java: Finished.
4412         * java/awt/event/ItemEvent.java: New file.
4413         * java/awt/Adjustable.java: New file.
4414         * java/awt/event/InputMethodEvent.java: New file.
4415         * java/awt/event/InputEvent.java: Finished.
4416         * java/awt/event/FocusEvent.java: New file.
4417         * java/awt/event/MouseMotionAdapter.java: New file.
4418         * java/awt/event/MouseAdapter.java: New file.
4419         * java/awt/event/KeyAdapter.java: New file.
4420         * java/awt/event/FocusAdapter.java: New file.
4421         * java/awt/event/ContainerAdapter.java: New file.
4422         * java/awt/event/ComponentEvent.java: Finished.
4423         * java/awt/event/AdjustmentEvent.java: New file.
4424         * java/awt/event/ComponentAdapter.java: New file.
4425         * java/awt/event/ActionEvent.java: Finished.
4426         * java/awt/event/MouseMotionListener.java: New file.
4427         * java/awt/event/MouseListener.java: New file.
4428         * java/awt/event/ItemListener.java: New file.
4429         * java/awt/event/InputMethodListener.java: New file.
4430         * java/awt/event/ContainerListener.java: New file.
4431         * java/awt/event/FocusListener.java: New file.
4432         * java/awt/event/ComponentListener.java: New file.
4433         * java/awt/event/AWTEventListener.java: New file.
4434         * java/awt/event/AdjustmentListener.java: New file.
4436 2000-04-08  Anthony Green  <green@cygnus.com>
4438         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4439         check when we have to.
4441         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4442         x) as `inline'.
4444         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
4445         one method call.
4447         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4448         inline hasMoreElements.
4450 2000-04-05  Tom Tromey  <tromey@cygnus.com>
4452         * configure: Rebuilt.
4453         * configure.in: Recognize --enable-java-awt.
4454         (AWT): New conditional.
4455         * Makefile.in: Rebuilt.
4456         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4457         requested.
4458         (libgcjawt_la_SOURCES): New macro.
4459         (EXTRA_libgcjawt_la_SOURCES): Likewise.
4460         (libgcjawt_la_DEPENDENCIES): Likewise.
4461         (libgcjawt_la_LIBADD): Likewise.
4462         (libgcjawt_la_LDFLAGS): Likewise.
4463         (libgcj.zip): Depend on cond_java_awt_source_files
4464         (cond_awt_java_source_files): New macro.
4465         (MOSTLYCLEANFILES): Added awto_files.
4466         (awto_files): New macro.  Use where javao_files used.
4467         (nat_headers): Use cond_awt_java_source_files.
4469 2000-04-04  Tom Tromey  <tromey@cygnus.com>
4471         * Makefile.in: Rebuilt.
4472         * Makefile.am (awt_java_source_files): Added AWTException.java.
4473         * java/awt/AWTException.java: New file.
4475 2000-04-03  Tom Tromey  <tromey@cygnus.com>
4477         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4478         commentary from Alex.
4480         * Makefile.in: Rebuilt.
4481         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4482         From H.J. Lu.
4484 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
4486         * configure: Rebuilt.
4487         * configure.in: Add --disable-jvmpi.
4488         * include/config.h.in: Rebuilt.
4489         * acconfig.h: Add ENABLE_JVMPI.
4490          
4491         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4492         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4493         (_Jv_JVMPI_Notify_THREAD_END): New define.
4494         (_Jv_JVMPI_Notify_THREAD_END): New define.
4495         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4496         (_Jv_JVMPI_Notify_THREAD_END): Declare.
4497         (_Jv_JVMPI_Notify_THREAD_END): Declare.
4499         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4500         events.
4502         * java/lang/natThread.cc: Include JVMPI headers if necessary.
4503         (finish_): Generate JVMPI thread end events.
4504         (run_): Generate JVMPI thread start events.
4505         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4506         preloaded JNI library.
4507         Include JVMPI headers if necessary.
4508         (run): Generate JVMPI thread start events.
4510         * boehm.cc: Define GC_disable and GC_enable.
4511         (_Jv_DisableGC): New function.
4512         (_Jv_EnableGC): New function.
4513         (disable_gc_mutex): Declare.
4514         * nogc.cc (_Jv_DisableGC): New function.
4515         (_Jv_EnableGC): New function.
4516           
4517         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4518         (_Jv_JVMPI_Interface): Define.
4519         (jvmpiEnableEvent): New function.
4520         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4521           
4522         * include/jvmpi.h: New file.
4524 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
4526         * Makefile.in: New #defines and friends for Thread.h.
4527         * Makefile.am: Ditto.
4528         * posix-threads.cc: (struct starter): Remove `object'.
4529         (_Jv_CondWait): Use interruptable condition variables and new
4530         recursive mutexes. New return codes on interrupt or non-ownership
4531         of mutex.
4532         (_Jv_CondNotify): Ditto.
4533         (_Jv_CondNotifyAll): Ditto.
4534         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4535         the target thread by signaling its wait condition.
4536         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4537         not the starter struct. Initialize wait_mutex and wait_cond.
4538         (_Jv_MutexLock): New recursive mutex implementation. Moved from 
4539         posix-threads.h.
4540         (_Jv_MutexUnlock): Ditto.
4541         (really_start): Set info->data->thread from pthread_self() to work 
4542         around a race condition. Destroy wait_mutex and wait_cond when run()
4543         returns.
4544         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4545         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4546         set.
4547         startable_flag: New private field.
4548         (Thread): Initialize `startable_flag'.
4549         (toString): Check for null thread group.
4550         * java/lang/natThread.cc: (struct natThread): New fields 
4551         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4552         (class locker): Removed.
4553         (initialize_native): Initialize `join_cond' and `join_mutex'.
4554         (interrupt): Now just calls _Jv_ThreadInterrupt().
4555         (join): Simplified. Just wait on the target thread's join condition.
4556         (finish_): Remove join list code. Unset thread group. Signal
4557         potential joiners by notifying the dying threads join_cond.
4558         (start): Check for illegal restarts.
4559         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4560         act appropriatly.
4561         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4562         #defines and #ifdefs.
4563         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4564         `wait_mutex', `next'.
4565         (struct _Jv_ConditionVariable_t): Define as a struct instead of 
4566         directly mapping to pthread_cond_t.
4567         (struct _Jv_Mutex_t): New recursive implementation.
4568         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4569         _Jv_HaveCondDestroy: Never define this for posix-threads.
4570         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4571         (_Jv_CondNotifyAll): Ditto.
4572         (_Jv_MutexLock): Ditto.
4573         (_Jv_MutexUnlock): Ditto.
4574         (_Jv_MutexInit): Changed to reflect new mutex implementation.
4575         (_Jv_MutexDestroy): Ditto.
4576         (_Jv_CondDestroy): Removed.
4577         (_Jv_PthreadGetMutex): Removed.
4578         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an 
4579         error. Add a FIXME about this.
4580         (_Jv_CondNotifyAll): Ditto.
4581         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess 
4582         _JV_NOT_OWNER on other errors. Add FIXME.
4584 2000-03-26  Tom Tromey  <tromey@cygnus.com>
4586         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4587         set, throw it.
4588         (call): Don't throw exception here.
4590 2000-03-26  Tom Tromey  <tromey@cygnus.com>
4592         * java/lang/mprec.h: Use SIZEOF_VOID_P.
4593         * interpret.cc: Use SIZEOF_VOID_P.
4594         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4595         (_Jv_loadLong): Likewise.
4596         (_Jv_storeDouble): Likewise.
4597         * configure: Rebuilt.
4598         * configure.in: Check size of void*.
4600         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4602 2000-03-26  Hans Boehm  <boehm@acm.org>
4604         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4605         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4606         machine.
4607         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4608         __IEEE_LITTLE_ENDIAN appropriately on IA64.
4609         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4610         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4611         case.
4612         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4613         (FFI_RAW_SIZE): Likewise.
4614         (_Jv_InterpMethod::ncode): Use them.
4615         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4616         STORED): Define differently on a 64 bit machine.
4617         (continue1): Use ffi_java_raw_call when appropriate.
4619 2000-03-24  Warren Levy  <warrenl@cygnus.com>
4621         * java/math/BigInteger.java(divide): Handle the special case when
4622         dividing by 1 and the high bit of the dividend is set.
4623         (setShiftRight): Handle case when count == 0.
4625 2000-03-24  Warren Levy  <warrenl@cygnus.com>
4627         * java/awt/Font.java(isBold): Fix syntax error.
4628         (isItalic): ditto.
4629         * java/awt/Frame.java(postEvent): ditto.
4630         * java/awt/Menu.java(postEvent): ditto.
4631         * java/awt/MenuBar.java(postEvent): ditto.
4632         * java/awt/Toolkit.java(init): Included a stub.
4634 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
4636         * java/awt/Event.java: Add all the event type constants.
4637         (Event): Implemented constructors.
4638         (controlDown): Implemented.
4639         (metaDown): Implemented.
4640         (paramString): Stubbed.
4641         (shiftDown): Implemented.
4642         (toString): Implemented.
4643         (translate): Implemented.
4645 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
4647         * java/lang/natClass.cc (isInstance): Initialize `this'.
4648         (isAssignableFrom): Initialize `this' and `klass'.
4649         (_Jv_IsAssignableFrom): If an interface has no idt, it is not 
4650         implemented by any loaded class, so return false.
4651         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), 
4652         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4654 2000-03-19  Warren Levy  <warrenl@cygnus.com>
4656         * java/awt/Color.java: Specified java.io for Serializable.
4657         * java/awt/Toolkit.java: Imported java.net.URL.
4659 2000-03-19  Warren Levy  <warrenl@cygnus.com>
4661         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4663 2000-03-16  Warren Levy  <warrenl@cygnus.com>
4665         * java/awt/Color.java: New file.
4666         * java/awt/Graphics.java: New file.
4667         * java/awt/Image.java: New file.
4668         * java/awt/Paint.java: New file.
4669         * java/awt/PaintContext.java: New file.
4670         * java/awt/Transparency.java: New file.
4671         * java/util/Collection.java: New file.
4672         * java/util/Comparator.java: New file.
4673         * java/util/Iterator.java: New file.
4674         * java/util/List.java: New file.
4675         * java/util/ListIterator.java: New file.
4676         * Makefile.am: Added above new files.
4677         * Makefile.in: Rebuilt.
4679         * java/awt/Font.java (PLAIN): New field.
4680         (BOLD): New field.
4681         (ITALIC): New field.
4682         (ROMAN_BASELINE): New field.
4683         (CENTER_BASELINE): New field.
4684         (HANGING_BASELINE): New field.
4685         (name): New field.
4686         (style): New field.
4687         (size): New field.
4688         (pointSize): New field.
4689         (Font): Implemented constructor.
4690         (isPlain): Implemented method.
4691         (isBold): Implemented method.
4692         (isItalic): Implemented method.
4693         (getName): Implemented method.
4694         (getStyle): Implemented method.
4695         (getSize): Implemented method.
4696         (getSize2D): Implemented method.
4697         (decode): Stubbed.
4698         * java/awt/Frame.java (getFont): Stubbed.
4699         (postEvent): Stubbed.
4700         (remove): Stubbed.
4701         * java/awt/Menu.java (postEvent): Stubbed.
4702         * java/awt/MenuBar.java (getFont): Stubbed.
4703         (postEvent): Stubbed.
4704         * java/awt/Toolkit.java (getImage): Added abstract method.
4706 2000-03-15  Tom Tromey  <tromey@cygnus.com>
4708         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4710         * prims.cc (win32_exception_handler): Reformatted.
4712         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4713         (_Jv_HaveMutexDestroy): Likewise.
4715 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4717         * java/io/natFileDescriptorWin32.cc: New file.
4718         * java/io/natFileWin32.cc: New file.
4719         * java/net/natInetAddress.cc: Added conditional inclusion of
4720         Windows / Winsock headers.
4721         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4722         inclusion of Windows / Winsock headers.
4723         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4724         Windows / Winsock headers.
4725         * include/win32-signal.h: New file.
4726         * include/win32-threads.h: New file.
4727         * win32-threads.cc: New file.
4728         * exception.cc (win32_get_restart_frame): New function.
4729         * prims.cc (win32_exception_handler): New function.
4730         (main_init) Performs Winsock initialisation.
4731         (main_init) Installs exeception handler.
4733 2000-03-14  Tom Tromey  <tromey@cygnus.com>
4735         * jni.cc (mangled_name): Fixed assertion.
4736         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4737         turned assert into actual failure.
4739 2000-03-09  Warren Levy  <warrenl@cygnus.com>
4741         * java/security/Key.java(serialVersionUID): Set to 0 for now.
4742         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4743         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4745 2000-03-09  Warren Levy  <warrenl@cygnus.com>
4747         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4748         * java/security/DigestException.java: New file.
4749         * java/security/GeneralSecurityException.java: New file.
4750         * java/security/InvalidAlgorithmParameterException.java: New file.
4751         * java/security/InvalidKeyException.java: New file.
4752         * java/security/InvalidParameterException.java: New file.
4753         * java/security/Key.java: New file.
4754         * java/security/KeyException.java: New file.
4755         * java/security/KeyPair.java: New file.
4756         * java/security/KeyPairGenerator.java: New file.
4757         * java/security/KeyPairGeneratorSpi.java: New file.
4758         * java/security/NoSuchProviderException.java: New file.
4759         * java/security/PrivateKey.java: New file.
4760         * java/security/Provider.java: New file.
4761         * java/security/PublicKey.java: New file.
4762         * java/security/SecureRandom.java: New file.
4763         * java/security/Security.java: New file.
4764         * java/security/Signature.java: New file.
4765         * java/security/SignatureException.java: New file.
4766         * java/security/interfaces/DSAKey.java: New file.
4767         * java/security/interfaces/DSAParams.java: New file.
4768         * java/security/interfaces/DSAPrivateKey.java: New file.
4769         * java/security/interfaces/DSAPublicKey.java: New file.
4770         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4771         * java/security/interfaces/RSAPrivateKey.java: New file.
4772         * java/security/interfaces/RSAPublicKey.java: New file.
4773         * java/security/spec/AlgorithmParameterSpec.java: New file.
4774         * java/security/spec/InvalidKeySpecException.java: New file.
4775         * java/security/spec/InvalidParameterSpecException.java: New file.
4776         * java/security/spec/KeySpec.java: New file.
4777         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4778         * java/security/spec/RSAPrivateKeySpec.java: New file.
4779         * java/security/spec/RSAPublicKeySpec.java: New file.
4780         * Makefile.am: Added above java.security files.
4781         * Makefile.in: Rebuilt.
4783         * java/security/MessageDigest.java: Rewritten.
4784         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4786 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
4788         * README: Updated.
4790 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
4792         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4793         _Jv_PrepareConstantTimeTables.
4794         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4795         classes should have an IDT, so don't return if klass is an array
4796         class.
4798 2000-03-08  Tom Tromey  <tromey@cygnus.com>
4800         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4801         of `void' to be created.
4803 2000-03-08  Warren Levy  <warrenl@cygnus.com>
4805         * java/math/BigInteger.java(signum): Handle zero properly.
4807 2000-03-07  Tom Tromey  <tromey@cygnus.com>
4809         * All files: Updated copyright information.
4810         * COPYING: New file.
4811         * COPYING.LIB: Removed.
4812         * LIBGCJ_LICENSE: We now use GPL + special exception.
4814 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
4816         * resolve.cc (_Jv_SearchMethodInClass): New function.
4817         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4818         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4820 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
4822         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4823         (struct _Jv_ifaces): New declaration.
4824         JV_CLASS: New macro definition.
4825         (getComponentType): Relocate below isArray() for inlining.
4826         (getModifiers): Declare `inline'.
4827         (getSuperclass): Ditto.
4828         (isArray): Ditto.
4829         (isPrimitive): Ditto.
4830         (_Jv_IsAssignableFrom): New prototype.
4831         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4832         linkage.
4833         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4834         Check for JV_STATE_DONE before invoking initializeClass().
4835         (_Jv_PrepareConstantTimeTables): New prototype.
4836         (_Jv_GetInterfaces): Ditto.
4837         (_Jv_GenerateITable): Ditto.
4838         (_Jv_GetMethodString): Ditto.
4839         (_Jv_AppendPartialITable): Ditto.
4840         (_Jv_FindIIndex): Ditto.
4841         depth, ancestors, idt: New class fields.
4843         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4844         inline function `_Jv_IsAssignableFrom'. Use that function.
4845         (isInstance): Declare `inline'.
4846         (initializeClass): Get lock on class before checking `state'. Unlock 
4847         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with 
4848         the lock held.
4849         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4850         (_Jv_IsAssignableFrom): New inline function. Test assignability using 
4851         class->depth and ancestor table.
4852         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4853         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4854         _Jv_IsAssignableFrom.
4855         (_Jv_CheckArrayStore): Ditto.
4856         (_Jv_LookupInterfaceMethodIdx): New function. 
4857         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4858         (_Jv_PrepareConstantTimeTables): New function.
4859         (_Jv_IndexOf): Ditto.
4860         (_Jv_GetInterfaces): Ditto.
4861         (_Jv_GenerateITable): Ditto.
4862         (_Jv_GetMethodString): Ditto.
4863         (_Jv_AppendPartialITable): Ditto.
4864         iindex_mutex, iindex_mutex_initialized: New static fields.
4865         (_Jv_FindIIndex): New function.
4867         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4869         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4870         (_Jv_CheckArrayStore): Ditto.
4871         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4872         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4873         Moved to gcj/array.h.
4874         (_Jv_Realloc): New function.
4876         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4878         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4879         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4880         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4881         JvNewDoubleArray): Implementations moved from prims.cc and
4882         declared `inline'.
4884         * gcj/javaprims.h (_Jv_Realloc): Prototype.
4886         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4888 2000-03-06  Tom Tromey  <tromey@cygnus.com>
4890         * jni.cc (MARK_NONE): New define.
4891         (MARK_USER): Likewise.
4892         (MARK_SYSTEM): Likewise.
4893         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4894         smaller.
4895         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4896         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4897         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4898         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4899         argument.
4900         (call): Use MARK_SYSTEM.
4901         (_Jv_GetJNIEnvNewFrame): New function.
4902         (_Jv_LookupJNIMethod): New function.
4903         (_Jv_JNI_PopSystemFrame): New function.
4904         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4906 2000-03-05  Tom Tromey  <tromey@cygnus.com>
4908         Fix for PR libgcj/43:
4909         * include/Makefile.in: Rebuilt.
4910         * include/Makefile.am (include_HEADERS): New define.
4912 2000-03-05  Anthony Green  <green@redhat.com>
4914         * gcj/javaprims.h ("Java"): Remove FirstThread.
4916         * configure.host: Fix __NO_MATH_INLNES botch.
4918         * Makefile.in: Rebuilt.
4919         * Makefile.am (nat_source_files): Move natFirstThread.cc.
4920         (gnu/gcj/runtime/FirstThread.h): Moved.
4921         (ordinary_java_source_files): Move FirstThread.java.
4922         * prims.cc: Deal with FirstThread movement.
4923         (JvRunMain): Ditto.
4924         (_Jv_RunMain): Ditto.
4926         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4927         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4929 2000-03-05  Warren Levy  <warrenl@cygnus.com>
4931         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4932           Handle null addresses.
4934 2000-03-04  Anthony Green  <green@redhat.com>
4936         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4937         See PR gcj/151.
4939 2000-03-04  Anthony Green  <green@redhat.com>
4941         * configure: Rebuilt.
4942         * configure.in (ZLIBTESTSPEC): New macro.
4943         (GCTESTSPEC): New macro.
4944         (LIBGCJTESTSPEC): New macro.
4945         * libgcj-test.spec.in: New file.
4947 2000-03-02  Tom Tromey  <tromey@cygnus.com>
4949         * include/java-interp.h: Don't include MethodInvocation.h.
4950         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4951         * Makefile.in: Rebuilt.
4952         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4953         (ordinary_java_source_files): Don't mention
4954         MethodInvocation.java.
4955         * gnu/gcj/runtime/MethodInvocation.java: Removed.
4956         * interpret.cc (MethodInvocation::continue1): Removed.
4957         (run): Handle exceptions here.
4958         * java/lang/ClassLoader.java (defineClass1, defineClass2):
4959         Removed.
4960         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4961         here.
4962         (defineClass2): Removed.
4964         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4965         Removed.
4966         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4967         exceptions here.
4968         (hack_call): Removed.
4970         * java/lang/Class.h (Class): Removed hackRunInitializers,
4971         hackTrampoline.
4972         * java/lang/natClass.cc (hackRunInitializers): Removed.
4973         (initializeClass): Catch exceptions here.
4974         Include ExceptionInInitializerError.h.
4975         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4976         Removed.
4978         * java/lang/Object.h (Object): Don't mention hack12_6.
4979         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4980         here.
4981         * java/lang/Object.java (hack12_6): Removed.
4983         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
4984         (start): Use run_, not run__.
4985         * java/lang/Thread.java (run_): Renamed from run__; old run_
4986         removed.
4988         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4989         (_Jv_JNI_EnsureLocalCapacity): Likewise.
4990         (_Jv_JNI_DefineClass): Likewise.
4991         (_Jv_JNI_ThrowNew): Likewise.
4992         (_Jv_JNI_AllocObject): Likewise.
4993         (_Jv_JNI_GetAnyMethodID): Likewise.
4994         (_Jv_JNI_CallAnyMethodV): Likewise.
4995         (_Jv_JNI_CallAnyMethodA): Likewise.
4996         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4997         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4998         (_Jv_JNI_GetAnyFieldID): Likewise.
4999         (_Jv_JNI_NewString): Likewise.
5000         (_Jv_JNI_NewStringUTF): Likewise.
5001         (_Jv_JNI_GetStringUTFChars): Likewise.
5002         (_Jv_JNI_NewObjectArray): Likewise.
5003         (_Jv_JNI_NewPrimitiveArray): Likewise.
5004         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
5005         (_Jv_JNI_GetStringRegion): Likewise.
5006         (_Jv_JNI_GetStringUTFRegion): Likewise.
5007         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
5008         (_Jv_JNI_MonitorEnter): Likewise.
5009         (_Jv_JNI_MonitorExit): Likewise.
5010         (_Jv_JNI_ToReflectedField): Likewise.
5011         (_Jv_JNI_ToReflectedMethod): Likewise.
5012         (_Jv_JNI_RegisterNatives): Likewise.
5013         (_Jv_JNI_AttachCurrentThread): Likewise.
5014         (_Jv_JNI_DestroyJavaVM): Likewise.
5016 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
5018         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
5019         error caused by the incorrect casting of a long to an int.
5021 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
5023         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
5024         SIGSEV caused by use of the wrong instance variable.
5026 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
5028         * java/io/File.java (File(String, String)): For dirPath, treat an
5029         empty String the same as `null'.
5031 2000-02-26  Anthony Green  <green@cygnus.com>
5033         * gnu/gcj/io/MimeTypes.java: Test for null.
5035         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
5036         (JNI_GetCreatedJavaVMs): Remove compiler warning.
5038         * java/net/URLConnection.java: Update copyright notice.
5040 2000-02-25  Tom Tromey  <tromey@cygnus.com>
5042         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
5043         `INTERPRETER'.
5045 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
5047         * java/net/URLConnection.java (initializeDateFormats): New
5048         private method.
5049         (getHeaderFieldDate): Call initializeDateFormats if required.
5050         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
5051         these.
5052         Fix for PR libgcj/38.
5054 2000-02-24  Warren Levy  <warrenl@cygnus.com>
5056         * java/math/BigInteger.java(ival): Made private.
5057         (words): Ditto.
5058         (neg): Ditto.
5060 2000-02-20  Anthony Green  <green@cygnus.com>
5062         * Makefile.in: Rebuilt.
5063         * Makefile.am (ordinary_java_source_files): Add
5064         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
5066         * scripts/MakeDefaultMimeTypes.java: New file.
5067         * scripts/mime.types: New file.
5068         * scripts/classes.pl: Moved from top level.
5069         * classes.pl: Moved to scripts directory.
5071         * java/net/URLConnection.java: Implement guessContentTypeFromName.
5073         * gnu/gcj/io/MimeTypes.java: New file.
5074         * gnu/gcj/io/DefaultMimeTypes.java: New file.
5076 2000-02-20  Tom Tromey  <tromey@cygnus.com>
5078         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
5080 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
5082         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
5083         (setSize): ditto.
5085 2000-02-18  Tom Tromey  <tromey@cygnus.com>
5087         * include/jvm.h (_Jv_GetJavaVM): Declare.
5088         * include/java-interp.h (_Jv_GetFirstMethod): New function.
5089         (_Jv_MethodBase::get_method): New method.
5090         (_Jv_JNIMethod::set_function): New method.
5091         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5092         (_Jv_JNI_RegisterNatives): New function.
5093         (_Jv_JNIFunctions): Updated for new functions.
5094         (_Jv_GetJavaVM): New function.
5095         (_Jv_JNI_GetJavaVM): Use it.  Now static.
5096         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5097         is already a Java thread but does not have a JNIEnv yet.
5099         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5100         function.
5102 2000-02-17  Tom Tromey  <tromey@cygnus.com>
5104         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5105         Fixes PR gcj/152.
5107 2000-02-16  Tom Tromey  <tromey@cygnus.com>
5109         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5111         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5112         (_Jv_JNI_NewObject): Likewise.
5113         (_Jv_JNI_NewObjectA): Likewise.
5114         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5115         as "return" type to _Jv_CallAnyMethodA.
5116         (_Jv_JNI_CallAnyMethodA): Likewise.
5117         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5119         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5120         findClass.
5122 2000-02-15  Tom Tromey  <tromey@cygnus.com>
5124         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
5125         jni_arg_types.
5126         (init_cif): Added `rtype_p' argument.
5127         * include/java-interp.h (class _Jv_MethodBase): Added
5128         args_raw_size.
5129         (class _Jv_InterpMethod): Removed args_raw_size.
5130         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5131         * jni.cc (call): Pass JNIEnv and (for static methods only) the
5132         class pointer as well as the ordinary arguments.
5134         * jni.cc (mangled_name): Skip leading `(' in signature.
5136         * jni.cc (add_char): Added missing `else'.
5138         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5139         fails.
5141 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
5143         * NEWS: Updated.
5145         * java/lang/natRuntime.cc (_load): Include library path with
5146         exception message.
5148         * java/lang/natSystem.cc (init_properties): set java.lang.classpath 
5149         property.
5151         * java/lang/natThread.cc (dumpStack): Removed.
5152         * java/lang/Thread.java (dumpStack): Implemented.
5154 2000-02-15  Tom Tromey  <tromey@cygnus.com>
5156         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5157         with `lib' for loadLibrary.  Fixes PR gcj/150.
5159 2000-02-14  Warren Levy  <warrenl@cygnus.com>
5161         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5163         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5164           New constructor.
5165         (min): Implemented.
5166         (max): Implemented.
5167         (modPow): Rewritten to not use the naive, slow, brute force approach.
5168         (isProbablePrime): Implemented.
5169         (testBit): Implemented.
5170         (flipBit): Implemented.
5171         (getLowestSetBit): Implemented.
5173 2000-02-16  Anthony Green  <green@redhat.com>
5175         * configure.host: Use the same options for i386 and i486 as we do
5176         for i586 and i686.
5178 2000-02-12  Tom Tromey  <tromey@cygnus.com>
5180         * java/io/File.java (createTempFile): Use low bits from counter,
5181         not high bits.
5183 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
5185         * THANKS: More thanks.
5187 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5189         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5190         astore instruction.  From Hans Boehm.
5192 2000-02-11  Warren Levy  <warrenl@cygnus.com>
5194         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5195         (BigInteger(String)): New constructor.
5196         (not): Rewritten using version from Kawa's BitOps class.
5197         (valueOf): New private methods from Kawa's BitOps class.
5198         (swappedOp): ditto.
5199         (bitOp): ditto.
5200         (setBitOp): ditto.
5201         (and): Implemented.
5202         (or): Implemented.
5203         (xor): Implemented.
5204         (andNot): Implemented.
5205         (clearBit): Implemented.
5206         (setBit): Implemented.
5207         (bitCount): Implemented.
5208         (toByteArray): Implemented.
5210 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5212         * java/io/File.java (nextValue): Now synchronized.
5214 2000-02-10  Tom Tromey  <tromey@cygnus.com>
5216         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5217         * java/io/FileDescriptor.java (EXCL): New static field.
5218         * java/io/File.java (tmpdir): New static field.
5219         (createTempFile): New method.
5220         (nextValue): New method.
5221         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5222         property.
5224         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5225         (jboolean): Declare as an attributed int, not a bool.
5226         (_Jv_func): Declare differently for C.
5228         * gnu/gcj/jni/natNativeThread.cc: New file.
5229         * gnu/gcj/jni/NativeThread.java: New file.
5230         * java/lang/Thread.java (data): Now a RawData.
5231         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5232         Declare.
5233         * Makefile.in: Rebuilt.
5234         * Makefile.am (java/lang/Thread.h): New target.
5235         (ordinary_java_source_files): Added NativeThread.java.
5236         (nat_source_files): Added natNativeThread.cc.
5237         * java/lang/natThread.cc: Include <jni.h>
5238         (struct natThread): Added `jni_env' field.
5239         (_Jv_GetCurrentJNIEnv): New function.
5240         (_Jv_SetCurrentJNIEnv): Likewise.
5241         (initialize_native): Initialize jni_env.
5242         Include RawData.h.
5243         * jni.cc (ThreadGroupClass): New define.
5244         (_Jv_JNI_InvokeFunctions): New structure.
5245         (JNI_GetCreatedJavaVMs): New function.
5246         (the_vm): New global.
5247         (JNI_GetDefaultJavaVMInitArgs): New function.
5248         Include NativeThread.h.
5249         (NativeThreadClass): New define.
5250         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5251         (_Jv_JNI_DestroyJavaVM): New function.
5252         (_Jv_JNI_AttachCurrentThread): New function.
5253         (_Jv_JNI_DetachCurrentThread): New function.
5254         (_Jv_JNI_GetEnv): New function.
5255         (JNI_CreateJavaVM): New function.
5256         (_Jv_JNI_GetJavaVM): New function.
5257         (_Jv_JNIFunctions): Added entry for GetJavaVM.
5258         * include/jni.h (JavaVMAttachArgs): New structure.
5259         (JNI_EDETACHED): New define.
5260         (JNI_EVERSION): Likewise.
5261         (JavaVM): Define properly.
5262         (struct JNIInvokeInterface): New structure.
5263         (class _Jv_JavaVM): New class.
5264         (JNI_OnLoad, JNI_OnUnload): Declare.
5265         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5266         JNI_GetCreatedJavaVMs): Declare.
5267         (JavaVMInitArgs): New typedef.
5268         (JavaVMOption): Likewise.
5269         (JNI_ERR): New define.
5270         (JNI_OK): Likewise.
5272 2000-02-10  Andrew Haley  <aph@cygnus.com>
5274         * interpret.cc: Don't include fdlibm.h.
5275         Replace #if with #ifdef throughout.
5276         Declare extern __ieee754_fmod.
5277         (continue1): Remove op_getfield, op_getstatic, op_putfield,
5278         op_putstatic insns.
5279         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5280         Search class hierarchy for superclass vtable.
5282         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5283         off the end of a pointer list.
5285         * java/lang/natThread.cc (stop): Don't abort, throw an exception
5286         instead.
5287         (suspend): Ditto.
5288         
5289 2000-02-09  Tom Tromey  <tromey@cygnus.com>
5291         * java/lang/natRuntime.cc (_load): Call add_library.
5292         (loadLibraryInternal): Likewise.
5294         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5295         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
5296         (Output_iconv::finalize): Likewise.
5298 2000-02-08  Tom Tromey  <tromey@cygnus.com>
5300         * java/util/Properties.java (setProperty): New method.
5301         (store): New method.
5303 2000-02-07  Tom Tromey  <tromey@cygnus.com>
5305         * java/lang/Runtime.java (_load): Declare.
5306         (load, loadLibrary): Wrote in terms of _load.
5307         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5308         library.
5309         (loadLibrary): Likewise.
5310         Include <jni.h>.
5311         (_load): New method.
5312         (loadLibrary, load): Removed.
5314         * jni.cc (ThrowableClass): New define.
5315         (_Jv_JNI_Throw): Check argument.
5316         (_Jv_JNI_ThrowNew): Likewise.
5317         (wrap_value): Don't wrap object if it is NULL.
5318         (_Jv_JNI_DefineClass): Use wrap_value.
5319         (_Jv_JNI_FindClass): Likewise.
5320         (_Jv_JNI_GetSuperclass): Likewise.
5321         (_Jv_JNI_ExceptionOccurred): Likewise.
5322         (_Jv_JNI_AllocObject): Likewise.
5323         (_Jv_JNI_GetObjectClass): Likewise.
5324         (_Jv_JNI_NewString): Likewise.
5325         (_Jv_JNI_NewStringUTF): Likewise.
5326         (_Jv_JNI_NewObjectArray): Likewise.
5327         (_Jv_JNI_GetObjectArrayElement): Likewise.
5328         (_Jv_JNI_NewPrimitiveArray): Likewise.
5329         (_Jv_JNI_ToReflectedField): Likewise.
5330         (_Jv_JNI_ToReflectedMethod): Likewise.
5331         (_Jv_JNI_AllocObject): Check argument.
5332         (_Jv_JNI_NewObjectV): Likewise.
5333         (_Jv_JNI_NewObject): Likewise.
5334         (_Jv_JNI_NewObjectA): Likewise.
5335         (_Jv_JNI_GetObjectClass): Likewise.
5336         (_Jv_JNI_GetField): Likewise.
5337         (_Jv_JNI_SetField): Likewise.
5339         * interpret.cc (PUSHL): Don't use expression statement.
5340         (PUSHD): Likewise.
5341         (LOADL): Likewise.
5342         (STOREL): Likewise.
5344         * jni.cc (add_char): Conditional on INTERPRETER.
5345         (mangled_name): Likewise.
5346         (call): Likewise.
5347         * include/java-interp.h (class _Jv_MethodBase): Conditional on
5348         INTERPRETER.
5349         (class _Jv_JNIMethod): Likewise.
5351 2000-02-04  Warren Levy  <warrenl@cygnus.com>
5353         * Makefile.am: Added MPN.java and BigInteger.java.
5354         * Makefile.in: Rebuilt.
5355         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
5356         <per@bothner.com>.
5357         * java/math/BigInteger.java: New file.  Based primarily on
5358         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5360 2000-02-04  Tom Tromey  <tromey@cygnus.com>
5362         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5363         pointers.
5364         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
5365         if the method is native.
5366         * resolve.cc (ncode): Don't handle native methods.
5367         (_Jv_JNIMethod::ncode): New method.
5368         (_Jv_PrepareClass): Handle native methods.
5369         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5370         Include AbstractMethodError.h.
5371         (add_char): New function.
5372         (mangled_name): Likewise.
5373         * include/java-interp.h (class _Jv_JNIMethod): New class.
5374         (class _Jv_MethodBase): New class.
5375         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5376         (_Jv_InterpClass): Changed `interpreted_methods' field to type
5377         `_Jv_MethodBase'.
5379         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5380         * java/lang/natRuntime.cc (libraries_size, libraries_count,
5381         libraries): New globals.
5382         (add_library): New function.
5383         (_Jv_FindSymbolInExecutable): New function.
5385         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5386         Now static.
5388 2000-02-04  Andrew Haley  <aph@cygnus.com>
5390         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5391         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5392         * java/lang/natThrowable.cc (printRawStackTrace): Rename
5393         printStackTrace to printRawStackTrace.
5395 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5397         * java/util/Calendar.java (toString): New method.
5398         * java/util/SimpleTimeZone.java (clone): New method.
5399         (toString): New method.
5400         * java/util/TimeZone.java (clone): New method.
5401         * java/text/SimpleDateFormat.java (clone): New method.
5402         * java/text/NumberFormat.java (clone): New method.
5403         (equals): New method.
5404         * java/text/Format.java (clone): New method.
5405         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5406         constructor.
5407         (clone): New method.
5408         * java/text/DateFormat.java (clone): New method.
5409         * java/text/Collator.java (clone): New method.
5411 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5413         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5414         method.
5416 2000-02-01  Tom Tromey  <tromey@cygnus.com>
5418         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5419         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5420         constructing the closure if the function is native.
5421         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
5422         a template function, #if'd out, or static.
5423         Include <java-interp.h>.
5425         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5427         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5429         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5430         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5431         `locals == NULL'.
5432         (wrap_value): New function.
5433         (_Jv_JNI_CallAnyMethodV): Use it.
5434         (_Jv_JNI_CallAnyMethodA): Likewise.
5435         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5436         (_Jv_JNI_GetStaticField): Likewise.
5438         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5439         (_Jv_JNI_GetStaticField): Likewise.
5441 2000-01-31  Tom Tromey  <tromey@cygnus.com>
5443         * prims.cc (_Jv_MallocUnchecked): New function.
5444         (main_init): Call _Jv_JNI_Init.
5445         * include/jvm.h (_Jv_MallocUnchecked): Declare.
5446         (_Jv_JNI_Init): Declare.
5447         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5448         <string.h>.
5449         (_Jv_JNI_NewGlobalRef): New function.
5450         (_Jv_JNI_DeleteGlobalRef): New function.
5451         (_Jv_JNI_DeleteLocalRef): New function.
5452         (_Jv_JNI_conversion_call): Initialize and clear local reference
5453         frame.
5454         (_Jv_JNI_NewLocalRef): New function.
5455         (struct _Jv_JNI_LocalFrame): New structure.
5456         (_Jv_JNI_PushLocalFrame): New function.
5457         (_Jv_JNI_EnsureLocalCapacity): New function.
5458         (FRAME_SIZE): New define.
5459         (_Jv_JNI_GetStringChars): Mark string, not characters.
5460         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5461         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5462         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5463         elements.
5464         (_Jv_JNI_DefineClass): Make return value a local ref.
5465         (_Jv_JNI_FindClass): Likewise.
5466         (_Jv_JNI_GetSuperclass): Likewise.
5467         (_Jv_JNI_ExceptionOccurred): Likewise.
5468         (_Jv_JNI_AllocObject): Likewise.
5469         (_Jv_JNI_GetObjectClass): Likewise.
5470         (_Jv_JNI_CallAnyMethodV): Likewise.
5471         (_Jv_JNI_NewString): Likewise.
5472         (_Jv_JNI_NewStringUTF): Likewise.
5473         (_Jv_JNI_NewObjectArray): Likewise.
5474         (_Jv_JNI_GetObjectArrayElement): Likewise.
5475         (_Jv_JNI_ToReflectedField): Likewise.
5476         (_Jv_JNI_ToReflectedMethod): Likewise.
5477         (_Jv_JNIFunctions): Updated table for new functions.
5478         (_Jv_JNI_Init): New function.
5479         (mark_for_gc): Wrote.
5480         (unmark_for_gc): Wrote.
5481         * include/jni.h (struct JNINativeInterface): Removed name from
5482         PopLocalFrame parameter.
5483         (class _Jv_JNIEnv): Added `locals' field.
5485 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
5487         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5488         (write): Ditto.
5490 2000-01-30  Tom Tromey  <tromey@cygnus.com>
5492         * include/config.h.in: Rebuilt.
5493         * acconfig.h (HAVE_ICONV): Define.
5494         * configure: Rebuilt.
5495         * configure.in: Check for `iconv' function.
5496         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5497         no specific encoder exists.
5498         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5499         no specific encoder exists.
5500         * Makefile.in: Rebuilt.
5501         * Makefile.am (convert_source_files): Mention Input_iconv.java and
5502         Output_iconv.java.
5503         (nat_source_files): Added natIconv.cc.
5504         * gnu/gcj/convert/natIconv.cc: New file.
5505         * gnu/gcj/convert/Input_iconv.java: New file.
5506         * gnu/gcj/convert/Output_iconv.java: New file.
5508 2000-01-28  Tom Tromey  <tromey@cygnus.com>
5510         * Makefile.in: Rebuilt.
5511         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5513 2000-01-26  Tom Tromey  <tromey@cygnus.com>
5515         * gcj/method.h (JvNumMethods): Moved from Class.h.
5516         (JvGetFirstMethod): Likewise.
5517         * java/lang/Class.h (Object): Updated decl of
5518         _Jv_JNI_ToReflectedField.
5519         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5520         * Makefile.in: Rebuilt.
5521         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5522         argument of _Jv_JNI_ToReflectedField.
5523         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5524         as a friend.
5525         (java/lang/reflect/Method.h): Likewise.
5526         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
5527         __GCJ_JNI_IMPL__.
5528         (jweak): New typedef.
5529         (struct JNINativeInterface): Correctly declare remaining entries.
5530         * jni.cc: Include Class.h, ClassLoader.h.
5531         (_Jv_JNI_FindClass): New function.
5532         (_Jv_JNI_DefineClass): New function.
5533         (_Jv_JNI_conversion_call): New function.
5534         (_Jv_JNI_FindClass): Use current class loader to find class.
5535         (_Jv_JNI_ExceptionCheck): New function.
5536         (_Jv_JNI_FromReflectedField): Now static.
5537         (MethodClass): New define.
5538         (_Jv_JNI_FromReflectedMethod): New function.
5539         (_Jv_JNI_ToReflectedMethod): Likewise.
5540         Include Method.h.
5541         (_Jv_JNI_IsAssignableFrom): Renamed.
5542         (_Jv_JNI_GetStringRegion): New function.
5543         Include StringIndexOutOfBoundsException.h.
5544         (_Jv_JNI_GetStringUTFRegion): New function.
5545         (_Jv_JNIFunctions): Updated for new functions.
5546         (_Jv_JNI_GetPrimitiveArrayCritical): New function
5547         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5548         (_Jv_JNI_GetStringCritical): New function.
5549         (_Jv_JNI_ReleaseStringCritical): Likewise.
5550         (get_throwable): Removed.
5551         (GCJ_JV_JNIENV_FRIEND): Removed.
5552         (__GCJ_JNI_IMPL__): Define.
5553         Include method.h.
5555         * resolve.cc (get_ffi_type_from_signature): Handle case where
5556         boolean is an int.
5558 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
5560         * interpret.cc (run): Don't call println.
5561         Don't include PrintStream.h.
5563         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5564         nameIndex.  Use "jint" as type for boffset.
5565         * java/lang/Class.h (struct _Jv_Method): Made accflags a
5566         _Jv_ushort.
5567         (Class): Likewise.  Also changed type of method_count,
5568         vtable_method_count, size_in_bytes, field_count,
5569         static_field_count, interface_count.
5570         * gcj/array.h (__JArray): Made `length' a const jsize, not an
5571         int.
5573 2000-01-21  Tom Tromey  <tromey@cygnus.com>
5575         * java/lang/reflect/natConstructor.cc (newInstance): Use
5576         _Jv_CallAnyMethodA.
5577         * include/jvm.h: Declare _Jv_CallAnyMethodA.
5578         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5579         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
5580         Include <jni.h>.
5581         (COPY): Removed.
5582         (invoke): Use _Jv_CallAnyMethodA.
5583         (VAL): Redefined.
5584         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5585         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5586         functions.
5587         (struct _Jv_Method): Added getNextMethod method.
5588         (JvNumMethods): New function.
5589         (JvGetFirstMethod): Likewise.
5590         * gcj/field.h (JvGetFirstStaticField): New function.
5591         (JvNumStaticFields): Likewise.
5592         (getNextField): Renamed from getNextInstanceField.
5593         (struct _Jv_Field): New method getClass.
5594         * jni.cc: Wrote many new functions.
5595         * include/jni.h (JNI_TRUE): Define.
5596         (JNI_FALSE): Likewise.
5597         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5598         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5599         jcharArray, jfloatArray, jdoubleArray): New typedefs.
5600         (jfieldID, jmethodID): Likewise.
5601         (JNI_COMMIT, JNI_ABORT): New defines.
5602         (JNINativeMethod): New struct.
5603         (struct JNINativeInterface): Correctly declared more entries.
5604         (class _Jv_JNIEnv): Added `ex' member.
5605         (JNI_VERSION_1_1): New define.
5606         (JNI_VERSION_1_2): Likewise.
5608         * boehm.cc (_Jv_MarkObj): Use getNextField, not
5609         getNextInstanceField.
5611 2000-01-20  Tom Tromey  <tromey@cygnus.com>
5613         * resolve.cc (StringClass): Removed.
5614         * defineclass.cc (StringClass): Removed.
5616 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
5618         * NEWS: updated.
5620 2000-01-19  Tom Tromey  <tromey@cygnus.com>
5622         * interpret.cc (PC_REGISTER_ASM): Removed.
5624         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5625         From Bryce McKinlay.
5627         * All files: Updated copyright to reflect Cygnus purchase.
5629 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
5631         * configure: Rebuilt.
5632         * configure.in: Recognize --disable-interpreter.
5634 2000-01-18  Andrew Haley  <aph@cygnus.com>
5636         * name-finder.cc (lookup): Check for dladdr function.
5637         acconfig.h (HAVE_DLADDR): Add.
5638         configure.in: Check for HAVE_DLADDR
5639         configure: Rebuilt.
5640         include/config.h.in:  Rebuilt.
5642 2000-01-17  Andrew Haley  <aph@cygnus.com>
5644         * prims.cc (_Jv_RunMain): Set the name of this executable.
5646 2000-01-17  Tom Tromey  <tromey@cygnus.com>
5648         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5649         when backtrace can't be computed.
5651         * configure: Rebuilt.
5652         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5654         * java/lang/Runtime.java (loadLibraryInternal): Declare.
5655         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5656         (_Jv_FindClassInCache): Likewise.
5657         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5658         (findSystemClass): Try to load class from compiled module.
5659         Include Runtime.h.
5660         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5661         (loadLibrary): Likewise.
5662         (lt_preloaded_symbols): Define.
5663         (loadLibraryInternal): New method.
5664         * include/config.h.in: Rebuilt.
5665         * acconfig.h (USE_LTDL): Added.
5666         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5667         (INCLUDES): Added $(INCLTDL).
5668         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5669         (libgcj_la_LIBADD): Likewise.
5670         * aclocal.m4, configure: Rebuilt.
5671         * configure.in: Added libltdl support.
5673 2000-01-15  Tom Tromey  <tromey@cygnus.com>
5675         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5677 2000-01-14  Andrew Haley  <aph@cygnus.com>
5679         * java/lang/natThrowable.cc: New file.
5681         * java/lang/Throwable.java (fillInStackTrace): Make native.
5682         (printStackTrace): Call native method to do this.
5683         (Throwable): Call fillInStackTrace.
5684         (stackTrace): New variable.
5685         
5686         * include/jvm.h: Add _Jv_ThisExecutable functions.
5687         
5688         * prims.cc: (_Jv_execName): New variable.
5689         (catch_segv): Call fillInStackTrace.
5690         (catch_fpe): Ditto.
5691         (_Jv_ThisExecutable): New functions.
5692         (JvRunMain): Set the name of this executable.
5694         * Makefile.am: Add java/lang/natThrowable.cc.
5695         Add name-finder.cc.
5696         * Makefile.in: Rebuilt.
5698         * acconfig.h: Add HAVE_PROC_SELF_EXE.
5700         * configure.in: Force link with __frame_state_for in
5701         FORCELIBGCCSPEC.  Add new checks for backtrace.
5702         * include/config.h.in: Rebuilt.
5704         * name-finder.cc: New file.
5705         * include/name-finder.h: New file.
5707 2000-01-16  Anthony Green  <green@cygnus.com>
5709         * java/lang/StringBuffer.java (StringBuffer): Don't special case
5710         null argument.
5712 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
5714         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5716 2000-01-13  Tom Tromey  <tromey@cygnus.com>
5718         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5719         not system loader, as initiating loader.
5721 2000-01-11  Tom Tromey  <tromey@cygnus.com>
5723         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5724         HP/UX.  From David Scott Urban.
5726 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
5728         * java/lang/natMath.cc (pow): Cast args to `double', not
5729         `jdouble'.
5730         (atan2): Likewise.
5731         (IEEEremainder): Likewise.
5732         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5733         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5735 2000-01-09  Anthony Green  <green@cygnus.com>
5737         * java/lang/natString.cc (init): Test for overflow condition
5738         during out of bounds check.
5739         (getChars): Throw StringIndexOutOfBoundsException, not
5740         ArrayIndexOutOfBoundsException.
5741         (getBytes): Ditto.
5742         (regionMatches): Obey case option during string comparison.
5744         * configure.host (ligcj_interpreter): New variable.  Enable
5745         interpreter by default on IA-32.
5746         * configure.in:  Examine libgcj_interpreter.
5747         * configure: Rebuilt.
5749 2000-01-07  Tom Tromey  <tromey@cygnus.com>
5751         * mauve-libgcj: Don't disable ClassTest.
5753         * java/lang/natClass.cc (getClasses): Wrote.
5755 2000-01-06  Tom Tromey  <tromey@cygnus.com>
5757         * java/lang/natClass.cc (_getConstructors): Correctly check
5758         whether method name is the init name.
5759         (getMethod): Look at accflags on method in `klass', not `this'.
5761 2000-01-05  Tom Tromey  <tromey@cygnus.com>
5763         * java/lang/natClass.cc (getMethod): Compute offset relative to
5764         `klass's methods table, not `this's table.
5766         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5767         In unwrapping/widening case, check whether `k' is null, not
5768         whether it is primitive.  Initialize `num' from `argelts', not
5769         `paramelts'.  Correct create and pass arguments to ffi_call.
5770         Don't let presence of `this' argument affect index used to look in
5771         argument arrays.
5772         (COPY): Set appropriate element in `values' vector.
5774         * java/lang/natClass.cc: Include <gcj/method.h>.
5776         * java/lang/Class.h (_getMethods): Correctly declare as private,
5777         not public.
5779         * java/lang/Class.h (_getMethods): Declare.
5780         * java/lang/Class.java (_getMethods): Declare.
5781         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5782         (getDeclaredClasses): Always return empty array.
5783         (_getMethods): New method.
5784         (getMethods): Wrote.
5785         (getDeclaredMethod): Return `rmethod'.
5786         (finit_name): New global.
5787         (getDeclaredMethods): Check for finit_name.
5788         (_getMethods): Likewise.
5789         (getMethod): Only return public methods.
5791         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5792         jboolean and select correct ffi type on that basis.
5793         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5794         Constructor call always has `void' return type.
5796 2000-01-04  Tom Tromey  <tromey@cygnus.com>
5798         * java/lang/Class.h (getSignature): Updated.
5799         * java/lang/Class.java (getSignature): Updated.
5800         * java/lang/natClass.cc (getSignature): Added `is_constructor'
5801         argument.
5802         (getConstructor): Ensure constructor is public.
5803         (_getConstructors): Check for public-ness of constructor when
5804         `declared' is false, not when it is true.
5806 2000-01-04  Warren Levy  <warrenl@cygnus.com>
5808         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5809         comment.
5810         (receive): Set the sender's address in the DatagramPacket.
5812 2000-01-04  Tom Tromey  <tromey@cygnus.com>
5814         * java/lang/reflect/natConstructor.cc (newInstance): Pass
5815         declaring class as return_type argument to
5816         _Jv_CallNonvirtualMethodA.
5817         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5818         constructor case, create object and use it as `this' argument.
5819         * java/lang/Class.h (_getConstructors): Declare.
5820         (_getFields): Declare.
5821         * java/lang/Class.java (getConstructors): Wrote.
5822         (_getConstructors): New native method.
5823         (getDeclaredConstructors): Wrote.
5824         (_getFields): Declare new native method.
5825         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5826         incorrect comment.
5827         (getMethod): Work correctly when class is primitive.
5828         (getDeclaredMethods): Likewise.  Compute offset using `method',
5829         not `mptr'.
5830         (getDeclaredMethod): Likewise.
5831         (getConstructor): Wrote.
5832         (ConstructorClass): New define.
5833         (getDeclaredConstructor): Wrote.
5834         (_getConstructors): New method.
5835         (_getFields): New method.
5836         (getFields): Wrote.
5838         * Makefile.in: Rebuilt.
5839         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5841         * prims.cc: Remove `#pragma implementation'.
5842         * gcj/array.h: Remove `#pragma interface'.
5844         * prims.cc (_Jv_equaln): New function.
5845         * java/lang/Class.java (getSignature): Declare.
5846         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5847         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5848         resolve.cc.
5849         (getSignature): New method.
5850         (getDeclaredMethod): Wrote.
5851         (getMethod): Wrote.
5852         Include StringBuffer.h.
5853         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5854         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
5855         a friend.
5856         (getSignature): Declare.
5857         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5858         (_Jv_equaln): Declare.
5859         (_Jv_CallNonvirtualMethodA): Declare.
5860         * Makefile.in: Rebuilt.
5861         * Makefile.am (nat_source_files): Added natConstructor.cc.
5862         (java/lang/reflect/Constructor.h): New target.
5863         * java/lang/reflect/natConstructor.cc: New file.
5864         * java/lang/reflect/Constructor.java (newInstance): Now native.
5865         (declaringClass): Renamed from decl_class.
5866         (offset): Renamed from index.
5867         (getType): New native method.
5868         (getModifiers): Now native.
5869         (getParameterTypes): Call getType if required.
5870         (hashCode): Include hash code from declaring class.
5871         (modifiers): Removed.
5872         (toString): Call getType if required.
5873         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5874         * java/lang/reflect/natMethod.cc (hack_call): New method.
5875         Removed `#if 0' around FFI code.
5876         Include <gnu/gcj/RawData.h>.
5877         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
5878         IllegalArgumentException when argument object and class disagree.
5879         (_Jv_GetTypesFromSignature): New function.
5880         (getType): Use it.
5881         (ObjectClass): New define.
5882         (_Jv_CallNonvirtualMethodA): New function.
5883         * java/lang/reflect/Method.java (hack_trampoline): New method.
5884         (hack_call): New native method.