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