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