OSDN Git Service

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