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