OSDN Git Service

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