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