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