OSDN Git Service

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