OSDN Git Service

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