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