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