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