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