OSDN Git Service

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