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