OSDN Git Service

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