Add xscale-elf and xscale-coff targets. (Only supported in binutils at the
[official-gcc.git] / libjava / ChangeLog
blob1d7f1791907d780b5aa53d47b4ba83f926eb8ae3
1 2000-11-24  Tom Tromey  <tromey@cygnus.com>
3         * prims.cc (_Jv_NewObjectArray): Use palcement new to create
4         array.
5         (_Jv_NewPrimArray): Likewise.
6         Include <new>.
7         * gcj/array.h (__JArray): `length' field now const.  Added
8         constructor.
9         (class JArray): Added constructor.
11 2000-11-23  Mark Wielaard  <mark@klomp.org>
13         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
14         lookup.
16 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
18         * java/util/Vector.java: Improve exception messages.
19         (Vector): Check initialCapacity for IllegalArgumentException.
20         (tromToSize): Don't check for elementCount == elementData.length
21         case.
22         (toArray): Don't try to set null marker if target array is the same
23         length as the vector.
25 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
27         * Makefile.in: Rebuilt.
28         * Makefile.am (core_java_source_files): Added Collections.java.
29         * java/util/List.java: Merged from classpath.
30         * java/util/Vector.java: Ditto. 
31         * java/util/Collections.java: From classpath.
32         * java/util/ArrayList.java (addAll(Collection)): Call 
33         addAll(int,Collection) instead of duplicating code.
34         (indexOf): Clean up int initialization.
35         (clear): Set cleared array entries to null, to allow garbage 
36         collection.
37         * java/util/List.java: Minor formatting fixes.  
38         * java/util/SimpleTimeZone.java: ditto.
39         
40 2000-11-18  Tom Tromey  <tromey@cygnus.com>
42         * Makefile.in: Rebuilt.
43         * Makefile.am (core_java_source_files): Added new files.
44         * java/lang/reflect/ReflectPermission.java: New class.
45         * java/io/FileFilter.java: From Classpath
46         * java/io/FilePermission.java: From Classpath.
48 2000-11-17  Tom Tromey  <tromey@cygnus.com>
50         * java/lang/reflect/AccessibleObject.java (isAccessible,
51         setAccessible): Now public.
53         * java/lang/natString.cc: Include Locale.h.
54         (toUpperCase): Added `locale' argument.  Handle locale
55         sensitivity.
56         (toLowerCase): Added `locale' argument.  Handle locale
57         sensitivity.
58         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
59         CAPITAL_I): New defines.
60         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
61         final.
62         Import Locale.
63         (toUpperCase, toLowerCase): New methods.  Variants which accept
64         locale now native.
66         * java/lang/ExceptionInInitializerError.java (printStackTrace):
67         New methods.
69         * java/util/PropertyPermission.java: Re-merged from Classpath.
71         * java/text/RuleBasedCollator.java (getCollationElementIterator):
72         New method.
73         * java/text/StringCharacterIterator.java: Reindented.
74         (setText): New method.
76 2000-11-17  Mark Wielaard  <mark@klomp.org>
78         Merge with Classpath (changes by Bryce McKinlay)
79         * java/util/jar/*.java: Reformat all to unofficial standard coding
80         style. No changes of substance.
82 2000-11-17  Mark Wielaard  <mark@klomp.org>
84         * java/util/zip/*.java: Javadoc updates.
86 2000-11-17  Tom Tromey  <tromey@cygnus.com>
88         * java/text/CollationKey.java: Implement Comparable.
89         (compareTo(Object)): New method.
90         * java/text/Collator.java (compare(Object,Object)): New method.
91         Implement Comparator.
93         * java/util/zip/InflaterInputStream.java (available): New method.
94         (close): New method.
95         (read, available, skip, fill): Throw exception if stream closed.
96         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
97         getNextEntry): Throw exception if closed.
99 2000-11-16  Tom Tromey  <tromey@cygnus.com>
101         * java/io/PushbackReader.java: Merged with Classpath.
102         * java/util/Arrays.java: Updated from Classpath.
104         * scripts/blocks.pl: New file.
105         * java/lang/Character.java (Subset): New class.
106         (UnicodeBlock): New class.
108         * java/lang/Math.java (toDegrees, toRadians): New methods.
110         * java/lang/Float.java: Implement Comparable.
111         (compareTo): New methods.
112         * java/lang/Double.java: Implement Comparable.
113         (compareTo): New methods.
115 2000-11-16  Warren Levy  <warrenl@cygnus.com>
117         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
118         transient.
119         (listeners): Made transient.
120         (source): Renamed from 'bean'.
121         (children): New field for serialization.
122         (propertyChangeSupportSerializedDataVersion): Ditto.
123         (serialVersionUID): Ditto.
124         (writeObject): New serialization method.
125         (readObject): New serialization method.
126         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
127         transient.
128         (listeners): Made transient.
129         (source): Renamed from 'bean'.
130         (children): New field for serialization.
131         (vetoableChangeSupportSerializedDataVersion): Ditto.
132         (serialVersionUID): Ditto.
133         (writeObject): New serialization method.
134         (readObject): New serialization method.
135         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
136         to allow constructor to have a return type (i.e. the class that the
137         constructor constructs).
139 2000-11-14  Tom Tromey  <tromey@cygnus.com>
141         * Makefile.in: Rebuilt.
142         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
143         and -k not given.
145 2000-11-02  Warren Levy  <warrenl@cygnus.com>
147         * java/io/ObjectInputStream.java (readObject): Added code to
148         conditionally dump out the serialized data.
149         Handle ENDBLOCKDATA case a bit more gracefully since the current
150         behavior doesn't seem to work as expected.
151         (readStreamHeader): Added code for serialized data dumper.
152         (readNextBlock): Ditto.
153         (readFields): Ditto.
154         (dump): New private static field for turning on/off dumper.
155         (setDump): New native method.
156         (dumpElement): New native method.
157         (dumpElementln): New native method.
158         * java/io/natObjectInputStream.cc (setDump): New method.
159         (dumpElement): New method.
160         (dumpElementln): New method.
162 2000-11-02  Warren Levy  <warrenl@cygnus.com>
164         * java/net/InetAddress.java (addr): Renamed from 'address'.
165         (address): New field to match Serialized Form doc.
166         (hostName): Renamed from 'hostname' to match Serialized Form doc.
167         (family): New serialization field.
168         (serialVersionUID): New field.
169         (readObject): New method.
170         (writeObject): New method.
171         (getFamily): New native method.
172         (InetAddress): Set family.
173         * java/net/natInetAddress.cc (getFamily): New method.
174         (addr): Renamed from 'address'.
175         (hostName): Renamed from 'hostname' to match Serialized Form doc.
176         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
177         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
179 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
181         * java/util/AbstractList.java (SubList): Make it a top-level private
182         class.
183         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
184         (add): Ditto.
185         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
186         * Makefile.in: Rebuilt.
188 2000-11-02  Tom Tromey  <tromey@cygnus.com>
190         * Makefile.in: Rebuilt.
191         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
192         link.
194 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
196         * java/util/AbstractList.java (remove): Comment out modCount increment
197         to work around compiler bug.
198         (add): Ditto.
200 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
202         * java/util/AbstractList.java: Throw messages with 
203         IndexOutOfBoundsExceptions.
204          (listIterator()): Call listIterator(0).
205         (size): New field. Initialize to size().
206         (hasNext): Test position against size, not size().
207         (remove): Increment knownMod by one instead of resetting it from 
208         modCount.
209         (add): Ditto.
210         (SubList.upMod): Removed.
211         (SubList.set): Don't call upMod() or update knownMod.
212         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
213         (SubList.remove): Ditto.
214         (SubList.addAll): Don't call backingList.size(). Increment size from 
215         c.size().
216         (SubList.iterator): New method. Call listIterator(0).
217         (SubList.listIterator): New method. Restore code to return an anonymous
218         listIterator implementation (with some changes).
219         * java/util/AbstractSequentialList.java: Throw messages with 
220         IndexOutOfBoundsExceptions.
221         (addAll): Add a specnote.
222         * java/util/ArrayList.java (removeRange): Get the math right.
223         (addAll): Increment modCount _before_ creating iterator.
224         * java/util/LinkedList.java: Rewritten, mostly.
226 2000-11-01  Tom Tromey  <tromey@cygnus.com>
228         * scripts/encodings.pl: Added `ASCII' alias.
229         * Makefile.in: Rebuilt.
230         * Makefile.am (convert_source_files): Added new files.
231         * gnu/gcj/convert/Input_ASCII.java: New file.
232         * gnu/gcj/convert/Output_ASCII.java: New file.
233         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
234         out-of-range characters.
235         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
236         (read): Swap bytes if required.  Treat `count' as character count,
237         not byte count.
238         (write): Likewise.  Also, handle case where iconv fails on a given
239         character.
240         (init): Put encoding into exception.
241         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
242         (static): Call iconv_init.  Rebuilt alias list.
243         (iconv_init): New private method.
245 2000-11-01  Tom Tromey  <tromey@cygnus.com>
247         * Makefile.in: Rebuilt.
248         * Makefile.am (install-exec-hook): Only make a single symlink, and
249         remove the destination before making the link.
250         * configure: Rebuilt.
251         * configure.in: Call AC_PROG_LN_S.
253 2000-10-31  Warren Levy  <warrenl@cygnus.com>
255         * jni.cc: Added include of java/lang/ThreadGroup.h.
256         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
257         per change of 2000-10-05.
259 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
261         * java/util/BitSet.java: Updated @specnote.
263         * java/io/Reader.java: Merge docs from classpath.
264         (skip): Synchronize on `lock'.
265         * java/io/FileReader.java: Import correct implementation from 
266         classpath.
267         * java/io/StringReader.java: Merge docs from classpath.
268         (ready): Throw IOException if stream is closed.
270 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
272         * java/util/AbstractCollection.java (addAll): Use size() instead of
273         hasNext() in iterator loop.
274         (clear): Ditto.
275         (contains): Ditto. Simplify loop.
276         (containsAll): Ditto.
277         (remove): Ditto.
278         (removeAll): Ditto.
279         (retainAll): Ditto.
280         (toArray): Ditto.
281         (toString): Ditto. Use string concatenation operators, not
282         StringBuffer.
283         * java/util/AbstractList.java (addAll): Use size() instead of
284         hasNext() in iterator loop.
285         (equals): Ditto.
286         (hashCode): Ditto.
287         (indexOf): Ditto. Don't take null check outside of the loop.
288         (iterator): Return an AbstractListItr instead of anonymous class.
289         (lastIndexOf): Use a for loop bounded by size() instead of 
290         hasPrevious() in iterator loop.
291         (listIterator): Return an AbstractListItr.
292         (removeRange): Remove bounds checking code and docs.
293         (AbstractListItr): New inner class. Code moved here from 
294         listIterator().
295         (SubList.iterator): Removed. Use default implementation from 
296         AbstractList instead.
297         (SubList.listIterator): As above.
298         * java/util/AbstractMap.java (clear): Use a for loop bounded by size() 
299         instead of hasNext() in iterator loop.
300         (containsValue): Ditto.
301         (equals): Ditto.
302         (get): Ditto.
303         (put): Ditto.
304         (putAll): Ditto.
305         (remove): Ditto.
306         (toString): Ditto. Use string concatenation operators, not
307         StringBuffer.
308         * java/util/AbstractSequentialList.java (addAll): Use a for loop 
309         bounded by size() instead of hasNext() in iterator loop.
310         * java/util/AbstractSet.java (hashCode): Don't catch exception as
311         part of normal execution flow. Do an explicit null check instead.
312         * java/util/ArrayList.java (_iSize): Rename to `size'.
313         (_arData): Rename to `data'.
314         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
315         message.
316         (remove): Ditto.
317         (removeRange): Make protected. Don't check bounds.
318         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
319         message.
320         (addAll (Collection)): Use a size-bounded for loop instead of hasNext() 
321         check.
322         (addAll (int, Collection)): Check lower bounds. Simplify exception
323         string.
324         (clone): Clone the data array too.
325         (indexOf): Inline doesEqual().
326         (lastIndexOf): Ditto.
327         (clear): Don't set array data to null.
328         (set): Check lower bounds. Simplify exception string.
329         (toArray): Correct comment.
330         (trimToSize): Don't update modCount, this is not a structural change.
331         Add comment.
332         
333         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
334         implemented.
335         (toString): Declare `bit' as long, not int.
336         (data): Made package-private, not private.      
338 2000-10-27  Warren Levy  <warrenl@cygnus.com>
340         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
341         array elements to true.
343 2000-10-27  Warren Levy  <warrenl@cygnus.com>
345         * Makefile.am: Added locale files from Classpath.
346         * Makefile.in: Rebuilt.
347         * gnu/java/locale/Calendar.java: New file.
348         * gnu/java/locale/Calendar_de.java: New file.
349         * gnu/java/locale/Calendar_en.java: New file.
350         * gnu/java/locale/Calendar_nl.java: New file.
351         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
352         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
353         serialization compatibility.
354         (scale): Made private.
355         (serialVersionUID): New field.
356         * java/math/BigInteger.java (ival): Made transient.
357         (words): Made transient.
358         (bitCount): New serialization field.
359         (bitLength): Ditto.
360         (firstNonzeroByteNum): Ditto.
361         (lowestSetBit): Ditto.
362         (magnitude): Ditto.
363         (signum): Ditto.
364         (serialVersionUID): New field.
365         (readObject): New method.
366         (writeObject): New method.
367         * java/util/BitSet.java (serialVersionUID): New field.
368         * java/util/Calendar.java: Replaced with Classpath file.
369         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
370         of getDefault() for TimeZone or Locale instead of passing nulls.
371         * java/util/Locale.java (serialVersionUID): New field.
372         (writeObject): New method.
373         (readObject): New method.
374         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
376 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
378         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
379         (core_java_source_files): Put java.lang, java.io, and java.util here.
380         (ordinary_java_source_files): Order so that core_java_source_files are 
381         built first.
382         (java_source_files): Reorder so that special_java_source_files are 
383         built first.
384         * configure.in: Don't pass -I flag to gcj.
385         * Makefile.in: Rebuilt.
386         * configure: Rebuilt.
388 2000-10-25  Tom Tromey  <tromey@cygnus.com>
390         * Makefile.in: Rebuilt.
391         * Makefile.am (install-exec-hook): New target.
393 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
395         * java/util/EventObject.java: Merged from classpath.
396         
397         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
398         with stack dump.
400 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
402         * java/util/AbstractSet.java (equals): Re-installed original code.
404 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
406         * Makefile.am: Added rules for libgcjx library.
407         * Makefile.in: Rebuilt.
408         * configure.in: Added check for X.
409         * configure: Rebuilt.
410         * gnu/awt/LightweightRedirector.java: New file.
411         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
412         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
413         * gnu/awt/j2d/Graphics2DImpl.java: New file.
414         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
415         * gnu/awt/j2d/MappedRaster.java: New file.
416         * gnu/awt/xlib/XCanvasPeer.java: New file.
417         * gnu/awt/xlib/XEventLoop.java: New file.
418         * gnu/awt/xlib/XEventQueue.java: New file.
419         * gnu/awt/xlib/XFontMetrics.java: New file.
420         * gnu/awt/xlib/XFramePeer.java: New file.
421         * gnu/awt/xlib/XGraphics.java: New file.
422         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
423         * gnu/awt/xlib/XPanelPeer.java: New file.
424         * gnu/awt/xlib/XToolkit.java: New file.
425         * gnu/gcj/xlib/Clip.java: New file.
426         * gnu/gcj/xlib/Colormap.java: New file.
427         * gnu/gcj/xlib/Display.java: New file.
428         * gnu/gcj/xlib/Drawable.java: New file.
429         * gnu/gcj/xlib/Font.java: New file.
430         * gnu/gcj/xlib/GC.java: New file.
431         * gnu/gcj/xlib/Pixmap.java: New file.
432         * gnu/gcj/xlib/Screen.java: New file.
433         * gnu/gcj/xlib/Visual.java: New file.
434         * gnu/gcj/xlib/WMSizeHints.java: New file.
435         * gnu/gcj/xlib/Window.java: New file.
436         * gnu/gcj/xlib/WindowAttributes.java: New file.
437         * gnu/gcj/xlib/XAnyEvent.java: New file.
438         * gnu/gcj/xlib/XButtonEvent.java: New file.
439         * gnu/gcj/xlib/XColor.java: New file.
440         * gnu/gcj/xlib/XConfigureEvent.java: New file.
441         * gnu/gcj/xlib/XConnectException.java: New file.
442         * gnu/gcj/xlib/XEvent.java: New file.
443         * gnu/gcj/xlib/XException.java: New file.
444         * gnu/gcj/xlib/XExposeEvent.java: New file.
445         * gnu/gcj/xlib/XID.java: New file.
446         * gnu/gcj/xlib/XImage.java: New file.
447         * gnu/gcj/xlib/XUnmapEvent.java: New file.
448         * gnu/gcj/xlib/natClip.cc: New file.
449         * gnu/gcj/xlib/natColormap.cc: New file.
450         * gnu/gcj/xlib/natDisplay.cc: New file.
451         * gnu/gcj/xlib/natDrawable.cc: New file.
452         * gnu/gcj/xlib/natFont.cc: New file.
453         * gnu/gcj/xlib/natGC.cc: New file.
454         * gnu/gcj/xlib/natPixmap.cc: New file.
455         * gnu/gcj/xlib/natScreen.cc: New file.
456         * gnu/gcj/xlib/natVisual.cc: New file.
457         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
458         * gnu/gcj/xlib/natWindow.cc: New file.
459         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
460         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
461         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
462         * gnu/gcj/xlib/natXColor.cc: New file.
463         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
464         * gnu/gcj/xlib/natXException.cc: New file.
465         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
466         * gnu/gcj/xlib/natXImage.cc: New file.
467         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
468         * java/awt/EventDispatchThread.java: Start thead on creation.
470 2000-10-20  Tom Tromey  <tromey@cygnus.com>
472         From Arno J. Klaassen:
473         * interpret.cc: Include <stdlib.h> for alloca.
474         * defineclass.cc: Include <stdlib.h> for alloca.
476         * Makefile.in: Rebuilt.
477         * Makefile.am: Include deps.mk.
478         (GCJCOMPILE): Added -MD, -MT, and -MF.
479         ($(javao_files)): Don't depend on libgcj.zip.
480         (all-recursive): New target.
481         (%.lo:%.cc): Do dependency tracking.
482         ($(nat_headers)): Don't depend on libgcj.zip.
483         * configure: Rebuilt.
484         * configure.in: Make .d files and deps.mk.
486 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
488         * exception.cc: Don't #include "exception".
489         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
491         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
492         * Makefile.in: Updated.
494 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
496         * java/awt/peer/ChoicePeer.java (addItem): Removed.
497         * java/awt/peer/ComponentPeer.java (disable): Removed.
498         (enable): Removed.
499         (hide): Removed.
500         (minimumSize): Removed.
501         (preferredSize): Removed.
502         (reshape): Removed.
503         (show): Removed.
504         * java/awt/peer/ListPeer.java (addItem): Removed.
505         (clear): Removed.
506         (minimumSize): Removed.
507         (preferredSize): Removed.
508         (setMultipleSelections): Removed.
509         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
510         (remove): Renamed from removeMenu.
511         * java/awt/peer/MenuItemPeer.java (disable): Removed.
512         (enable): Removed.
513         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
514         (remove): Renamed from removeItem.
515         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
516         (getMinimumSize): Removed.
517         (getPreferredSize): Removed.
518         (minimumSize): Removed.
519         (preferredSize): Removed.
520         (replaceText): Removed.
521         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
522         (preferredSize): Removed.
523         (getMinimumSize): Removed.
524         (getPreferredSize): Removed.
525         (setEchoCharacter): Removed.
527 2000-10-10  Warren Levy  <warrenl@cygnus.com>
529         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
530         * java/sql/Date.java (serialVersionUID): New field.
531         * java/sql/Time.java (serialVersionUID): New field.
532         * java/sql/Timestamp.java (serialVersionUID): New field.
533         * java/text/ChoiceFormat.java (serialVersionUID): New field.
534         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
535         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
536         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
537         (readObject): New serialization method.
538         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
539         (serialVersionOnStream): New field.
540         (readObject): New serialization method.
541         (getMonetaryDecimalSeparator): New method.
542         (setMonetaryDecimalSeparator): New method.
543         * java/text/NumberFormat.java (maxFractionDigits): New field.
544         (maxIntegerDigits): New field.
545         (minFractionDigits): New field.
546         (minIntegerDigits): New field.
547         (serialVersionOnStream): New field.
548         (serialVersionUID): New field.
549         (readObject): New serialization method.
550         (writeObject): New serialization method.
551         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
552         (serialVersionOnStream): New field.
553         (serialVersionUID): New field.
554         (readObject): New serialization method.
556 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
558         * configure.in (GCJ): Avoid bogus error message when looking for
559         (and not finding) gcj in the build tree.
560         * configure: Rebuilt.
562 2000-10-09  Tom Tromey  <tromey@cygnus.com>
564         * configure: Rebuilt.
565         * configure.in: Include sys/types.h when checking for socklen_t.
566         From Arno J. Klaassen.
568 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
570         * include/jvm.h: Enable __builtin_expect().
572         * name-finder.cc (lookup): Don't trust dladdr() if the address is from 
573         the main program. Fix for PR libgcj/341.
575 2000-10-07  Tom Tromey  <tromey@cygnus.com>
577         * java/util/Properties.java: Merged with Classpath version.
579 2000-10-05  Tom Tromey  <tromey@cygnus.com>
581         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
582         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
583         * java/lang/Class.h (Object): Added `class$' field.
584         * java/lang/Object.h (Object): Added `class$' field.
585         * defineclass.cc (ClassClass): Use `class$' form.
586         (ClassObject): Likewise.
587         * resolve.cc (ClassObject): Use `class$' form.
588         (ObjectClass): Likewise.
589         * interpret.cc (ClassError): Removed.
590         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
591         `class$' form.
592         (IntegerClass): Likewise.
593         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
594         form.
595         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
596         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
597         SerializableClass): Likewise.
598         Include Serializable.h, Cloneable.h.
599         * java/lang/natSystem.cc (SystemClass): Removed.
600         (init_properties): Use `class$' form.
601         * java/lang/natObject.cc (CloneableClass): Removed.
602         (clone): Use `class$' form.
603         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
604         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
605         ConstructorClass): Likewise.
606         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
607         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
608         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
609         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
610         form.
611         (ClassClass): Likewise.
612         * include/jvm.h (StringClass): Use `class$' form.
613         * prims.cc (ObjectClass): Removed.
614         (_Jv_RunMain): Use `class$' form.
615         (_Jv_AllocObject): Likewise.
616         * jni.cc (ClassClass): Use `class$' form.
617         (ThrowableClass): Likewise.
618         (ObjectClass): Likewise.
619         (MethodClass): Likewise.
620         (ThreadGroupClass): Likewise.
621         (NativeThreadClass): Likewise.
622         * boehm.cc (ObjectClass): Removed.
623         (ClassClass): Removed.
624         (_Jv_MarkObj): Use `class$' form.
625         * gcj/field.h (JvFieldIsRef): Use `class$' form.
626         Include RawData.h.
628 2000-10-05  Warren Levy  <warrenl@cygnus.com>
630         * Makefile.am: Removed java/io/Replaceable.java and
631         java/io/Resolvable.java.
632         * Makefile.in: Rebuilt.
633         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
634         namespace.
635         * java/io/ObjectInputStream.java (processResolution): Fixed typo
636         in method name.
637         (processResolution): Handle readResolve method via reflection with
638         removal of Resolvable interface.
639         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
640         method via reflection with removal of Replaceable interface.
641         * java/io/Replaceable.java: Removed.
642         * java/io/Resolvable.java: Removed.
643         * java/security/Key.java (serialVersionUID): New field.
644         * java/security/Provider.java (serialVersionUID): New field.
645         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
646         New field.
647         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
648         New field.
649         * java/sql/DataTruncation.java (serialVersionUID): New field.
650         * java/sql/SQLException.java (serialVersionUID): New field.
651         * java/sql/SQLWarning.java (serialVersionUID): New field.
652         * java/util/Date.java (serialVersionUID): New field.
653         (millis): Made transient.
654         (readObject): New method.
655         (writeObject): New method.
657 2000-10-05  Tom Tromey  <tromey@cygnus.com>
659         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
661 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
663         * prims.cc (_Jv_argv, _Jv_argc): New fields.
664         (JvRunMain): Set _Jv_argv and _Jv_argc.
665         * java/awt/Component.java: Minor fixes.
666         * java/awt/Image.java (UndefinedProperty): Initialize final field.
667         * java/awt/Toolkit.java (systemEventQueue): Removed.
668         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
669         * java/awt/Window.java (getToolkit): Don't call super.
670         * java/awt/image/BufferedImage.java: Fix definate assignment errors.
671         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
672         * gnu/awt/gtk/GtkComponentPeer.java: New file.
673         * gnu/awt/gtk/GtkContainerPeer.java: New file.
674         * gnu/awt/gtk/GtkFramePeer.java: New file.
675         * gnu/awt/gtk/GtkMainThread.java: New file.
676         * gnu/awt/gtk/GtkToolkit.java: New file.
677         * gnu/awt/gtk/GtkWindowPeer.java: New file.
678         * gnu/awt/gtk/gtkcommon.cc: New file.
679         * gnu/awt/gtk/gtkcommon.h: New file.
680         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
681         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
682         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
683         * gnu/awt/gtk/natGtkMainThread.cc: New file.
684         * gnu/awt/gtk/natGtkToolkit.cc: New file.
685         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
687 2000-09-30  Tom Tromey  <tromey@cygnus.com>
689         * posix-threads.cc (_Jv_CondWait): Check to see if we are
690         interrupted before modifying the cv's wait set.
691         From Corey Minyard.
693 2000-09-30  Hans Boehm  <boehm@acm.org>
694             Bryce McKinlay  <bryce@albatross.co.nz>
695             
696         Implement bitmap descriptor based marking for Boehm GC.
698         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
699         * configure: Rebuilt.
700         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
701         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
702         method get_finalizer().
703         (struct _Jv_ArrayVTable): Ditto. Declare method array with 
704         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
705         (_Jv_AllocObj): Add new jclass parameter.
706         (_Jv_AllocArray): Ditto.
707         (_Jv_BuildGCDescr): New prototype.
708         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
709         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
710         get_finalizer() instead of direct finalizer vtable offset.
711         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
712         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
713         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
714         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
715         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
716         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
717         (_Jv_DetermineVTableIndex): Ditto.
718         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable 
719         calculations to account for new gc_descr field.
720         * boehm.cc: #include gc_gcj.h.
721         (obj_kind_x, obj_free_list): `#if 0'-ed away.
722         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
723         New commentary from HB. Mark the classes vtable.
724         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
725         (GC_DEFAULT_DESCR): New #define.
726         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.        
727         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
728         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
729         scan conservativly if size is less than min_heap_addr. Set vtable 
730         pointer of new object before returning.
731         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
732         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
733         allocation for obj_kind_x.
734         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
735         (_Jv_AllocObj): Set vtable on returned object.
736         (_Jv_AllocArray): Ditto.
737         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
738         (_Jv_NewPrimArray): Ditto.
739         (_Jv_AllocObj): Declare as a friend.
740         (_Jv_AllocArray): Ditto.        
741         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
742         from &ObjectClass into new array class. Remove offset-by-one 
743         adjustments from `method' size calculations to account for gc_descr 
744         field.
746 2000-09-26  Tom Tromey  <tromey@cygnus.com>
748         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
749         `remove', not `add'.
751 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
753         * java/lang/natSystem.cc (file_encoding): Added return statement.
755 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
757         * Makefile.am: Re-work shell commands that exceeded command-line
758         length limits.
759         * Makefile.in: Rebuilt.
761         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
763         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
764         * java/lang/natDouble.cc: Likewise.
765         * java/lang/reflect/natMethod.cc: Likewise.
766         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
768 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
770         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
771         libgcjdata.a.
772         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
773         * acinclude.m4: Arrange for automake to not bring in a new
774         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
775         * Makefile.am: Leave it up to automake to subst GCJ.
776         * aclocal.m4, configure, Makefile.in: Rebuilt.
778 2000-09-13  Tom Tromey  <tromey@cygnus.com>
780         * java/lang/reflect/natArray.cc (BooleanClass): New define.
781         (get): Ensure Boolean class is initialized.
782         * java/lang/reflect/natField.cc (BooleanClass): New define.
783         (get): Ensure Boolean class is initialized.
785 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
787         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
788         Initialize with anonymous class.
789         (compareToIgnoreCase): New method.
790         
791         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
792         (uncaughtException): Set had_uncaught_exception.
793         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
794         exit with error status if set.
795         (_Jv_RunMain): Ditto.
797 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
799         * configure: Rebuilt with new ../libtool.m4.
801 2000-09-11  Tom Tromey  <tromey@cygnus.com>
803         * java/lang/reflect/Field.java (toString): Don't rely on
804         Class.toString.
806 2000-09-08  Tom Tromey  <tromey@cygnus.com>
808         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
809         default decoder use iconv.
810         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
811         Let default encoder use iconv.
812         * configure: Rebuilt.
813         * configure.in: Check for nl_langinfo and <langinfo.h>.
814         * java/lang/natSystem.cc (file_encoding): New function.
815         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
817 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
819         * acinclude.m4: Simplify the tests for CC and CXX.
820         * aclocal.m4, configure: Rebuilt.
822         * acinclude.m4: Include libtool macros from the source tree.
823         * aclocal.m4, configure: Rebuilt.
825 2000-09-08  Warren Levy  <warrenl@cygnus.com>
827         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
828         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
829         * java/io/File.java (writeObject): Added.
830         (readObject): Added.
831         (serialVersionUID): Added.
832         * java/io/ObjectOutputStream.java (writeObject): Initialized
833         fieldsAlreadyWritten before recursion rather than after.
834         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
835         * java/io/OptionalDataException.java (serialVersionUID): Added.
836         (OptionalDataException): Made package private.
837         * java/io/SyncFailedException.java (SyncFailedException): Removed
838         default constructor to match spec.
839         * java/lang/Boolean.java (serialVersionUID): Added.
840         * java/lang/Byte.java (serialVersionUID): Added.
841         * java/lang/Character.java (serialVersionUID): Added.
842         * java/lang/Double.java (serialVersionUID): Added.
843         * java/lang/Float.java (serialVersionUID): Added.
844         * java/lang/Integer.java (serialVersionUID): Added.
845         * java/lang/Long.java (serialVersionUID): Added.
846         * java/lang/Number.java (serialVersionUID): Added.
847         * java/lang/Short.java (serialVersionUID): Added.
848         * java/lang/String.java (serialVersionUID): Added.
849         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
850         to match spec.
851         * java/lang/reflect/InvocationTargetException.java
852         (serialVersionUID): Added.
853         * java/net/URL.java (handler): Made transient.
854         (hashCode): Added field for serialization, per spec. and use
855         cached value if available.
856         (serialVersionUID): Added.
857         (URL): Initialize hashCode.
858         (set): Adjust hashCode.
859         (readObject): New Method to initialize the protocol handler when
860         deserializing.
861         (writeObject): New method.
862         * java/text/BreakIterator.java: Removed 'implements Serializable'.
863         * java/text/Collator.java: Removed 'implements Serializable'.
864         * java/util/GregorianCalendar.java (serialVersionUID): Added.
865         * java/util/Properties.java (serialVersionUID): Added.
866         * java/util/Random.java (serialVersionUID): Added.
867         (seed): Made private.
868         (nextNextGaussian): Made private.
869         (haveNextNextGaussian): Made private.
870         * java/util/Stack.java (serialVersionUID): Added.
871         * java/util/TimeZone.java (serialVersionUID): Added.
872         * java/util/Vector.java (serialVersionUID): Added.
874 2000-09-07  Bryce McKinlay  <bryce@albatross.co.nz>
876         * Makefile.am (Thread.h): Don't be friends with native threads 
877         functions.
878         * Makefile.in: Rebuilt.
879         * java/lang/Thread.java (interrupt_flag): Make package-private.
881 2000-09-06  Jeff Sturm  <jeff.sturm@appnet.com>
883         * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
884         to avoid long long division.
886 2000-09-06  Tom Tromey  <tromey@cygnus.com>
888         * java/lang/reflect/Constructor.java (toString): Use `getName' for
889         parameter types.
890         * java/lang/reflect/Method.java (toString): Use `getName' for
891         return type.
893         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
894         `args' if method takes no parameters.
896         Fix for PR java.lang/339:
897         * java/lang/natPosixProcess.cc (fail): New function.
898         (cleanup): New function.
899         (startProcess): Use them.  Create pipe so child can communicate
900         exec failure back to parent.
902 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
904         * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
905         calls to `throw'.
906         (send): Undo last patch. Remove the label only.
907         (mcastGrp): Ditto.
908         * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to 
909         `throw'.
910         * java/net/natInetAdress.cc: Ditto.
912         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
914 2000-09-05  Tom Tromey  <tromey@cygnus.com>
916         * doc/cni.sgml: Updated from master copy.
918 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
920         * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
921         (write): Ditto.
922         * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
923         stack. Synchronize.
924         * java/lang/fdlibm.h: #undef __P if previously defined.
925         * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
926         * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable 
927         block.
928         (mcastGrp): Ditto.
930 2000-09-04  Tom Tromey  <tromey@cygnus.com>
932         * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
933         DELETE mode.
935 2000-09-04  Anthony Green  <green@redhat.com>
937         Fix for PR java.io/203:
938         * java/io/File.java (createTempFile): Obey directory argument.
939         Use java.io.tmpdir if needed.  Don't leave FileDescripators open.
940         * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
941         variable to set java.io.tmpdir on non-WIN32 systems.
943 2000-09-04  Anthony Green  <green@redhat.com>
945         * java/io/File.java (deleteOnExit): New method.
946         * gnu/gcj/runtime/FileDeleter.java: New class.
947         * java/lang/natRuntime.cc (exit): Call
948         FileDeleter.deleteOnExitNow()
949         * Makefile.am: Add FileDeleter.java.
950         * Makefile.in: Rebuilt.
952 2000-09-02  Tom Tromey  <tromey@cygnus.com>
954         * Makefile.in: Rebuilt.
955         * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
956         environment variable.
958 2000-09-01  Andrew Haley  <aph@redhat.com>
960         * java/io/StreamTokenizer.java: Don't throw a
961         NumberFormatException if a field is numeric as far as the
962         StreamTokenizer is concerned but not as far as Double.valueOf() is
963         concerned: return a zero instead.       
965 2000-08-30  Tom Tromey  <tromey@cygnus.com>
967         * Makefile.in: Rebuilt.
968         * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
970 2000-08-28  Tom Tromey  <tromey@cygnus.com>
972         * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
973         gnu/gcj/awt/ComponentDataBlitOp.java,
974         gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
975         java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
976         java/awt/color/ICC_ColorSpace.java,
977         java/awt/color/ICC_Profile.java,
978         java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
979         java/awt/image/ComponentColorModel.java,
980         java/awt/image/ComponentSampleModel.java,
981         java/awt/image/DataBuffer.java,
982         java/awt/image/DataBufferByte.java,
983         java/awt/image/DataBufferInt.java,
984         java/awt/image/DataBufferUShort.java,
985         java/awt/image/DirectColorModel.java,
986         java/awt/image/IndexColorModel.java,
987         java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
988         java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
989         java/awt/image/SinglePixelPackedSampleModel.java,
990         java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
991         Removed Latin-1 copyright symbols.
992         * java/util/zip/ZipFile.java: Indentation fixes.
994 2000-08-27  Mark Wielaard  <mark@klomp.org>
996         * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
997         constructor, close can delete the file, finalize calls close.
998         * java/util/jar/JarFile.java: Constructor that takes mode now
999         calls super.
1001 2000-08-27  Anthony Green  <green@redhat.com>
1003         * java/util/ArrayList.java, java/util/Timer.java,
1004         java/util/LinkedList.java, java/util/TimerTask.java,
1005         java/util/HashMap.java, java/util/AbstractMap.java,
1006         java/util/SortedMap.java, java/util/AbstractSequentialList.java,
1007         java/util/SortedSet.java: Imported from GNU Classpath.
1008         * Makefile.in: Rebuilt.
1009         * Makefile.am: Added new files.
1010         
1011 2000-08-26  Anthony Green  <green@redhat.com>
1013         * Makefile.in: Rebuilt.
1014         * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
1015         friend.
1017         * prims.cc: Include ClassLoader.h.
1018         (_Jv_RunMain): When executing jar files, classpath must be the jar
1019         file only.  Lose our reference to the system ClassLoader in order
1020         to get a new one with the correct classpath.
1021         * java/lang/natSystem.cc (init_properties): When executing a jar
1022         file, only use the jar file for java.class.path.
1024         * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
1025         for bytecode archives.
1027         * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
1028         exists, but not Main-Class.
1030 2000-08-23  Mark Wielaard  <mark@klomp.org>
1032         * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
1033         return -1 when fill() has no more data for the Inflater.
1035 2000-08-23  Mark Wielaard  <mark@klomp.org>
1037         * java/io/PrintWriter.java (print(String)): Don't catch IOException,
1038         write(String) already does.
1040 2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1042         * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
1043         to `alive_flag', call `init'.
1044         (init): New native method.
1045         * gnu/gcj/jni/natNativeThread.cc (init): New native method
1046         implementation.
1048 2000-08-21  Mark Wielaard  <mark@klomp.org>
1050         * Makefile.in: Rebuilt.
1051         * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
1052         a `friend class'.
1053         (java/lang/reflect/Field.h): Likewise.
1054         (java/lang/reflect/Method.h): Likewise.
1055         (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
1056         `friend class'.
1058 2000-08-21  Tom Tromey  <tromey@cygnus.com>
1060         * java/util/ResourceBundle.java (trySomeGetBundle): Removed
1061         debugging prints.
1063 Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>
1065         * java/lang/natSystem.cc (init_properties): Change sourceware
1066         reference to sources.redhat.com.
1068         * include/java-props.h: Add _Jv_Jar_Class_Path.
1069         * prims.cc: Ditto.  Set it from `gij -jar file' option.
1071         * java/lang/natSystem.cc (init_properties): Set java.class.path
1072         from
1073         {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
1075         * java/util/PropertyPermission.java: Import from GNU Classpath.
1076         * Makefile.in: Rebuilt.
1077         * Makefile.am: Add java/util/PropertyPermission.java.
1078         * java/lang/System.java: Add setProperty method.
1080         * gij.cc (main): Add -jar option to execute jar files.
1081         (help): Describe -jar option.
1082         * prims.cc (_Jv_RunMain): Add support for jar execution mode.
1083         * include/jvm.h: Add is_jar argument to _Jv_RunMain.
1084         * gnu/gcj/runtime/FirstThread.java (main): New method.
1086         * java/util/jar/Attributes.java: Correct comment spelling.
1088 2000-08-20  Mark Wielaard  <mark@klomp.org>
1090         * java/util/zip/Adler32.java: Make private variables really private
1091         * java/util/zip/CRC32.java: Make private variables really private
1092         * java/util/zip/CheckedInputStream.java: skip() could skip to much
1093         bytes
1094         * java/util/zip/InflaterInputStream.java: skip() could skip to
1095         much bytes
1096         * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
1097         * java/util/zip/ZipFile.java: size() new 1.2 method
1098         * java/util/zip/ZipInputStream.java: Use createZipEntry not new
1099         ZipEntry.  since 1.2 available() always returns just 1 or 0 when
1100         closed
1102 Sun Aug 20 12:33:43 2000  Anthony Green  <green@redhat.com>
1104         * java/util/jar/JarFile.java: Don't call
1105         java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
1106         <mark@klomp.org>.
1107         
1108 Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>
1110         * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
1111         Read the entire contents of the class file, not just what is
1112         available().
1114         * java/net/JarURLConnection.java: getEntry doesn't take any
1115         arguments.  Return null if element is null.
1117         * java/util/zip/ZipFile.java (getInputStream): Read the compressed
1118         size from the archive, not the inflated size.
1120         * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
1121         java.util.zip.ZipFile.getEntry.
1123         * gij.cc (help): Change sourceware reference to
1124         sources.redhat.com.
1126 2000-08-19  Tom Tromey  <tromey@cygnus.com>
1128         * java/util/zip/ZipInputStream.java (createZipEntry):
1129         Implemented.
1131 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
1133         * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
1134         java/util/jar/JarException.java, java/util/jar/JarFile.java,
1135         java/util/jar/JarInputStream.java,
1136         java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
1137         java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
1138         java/util/AbstractSet.java, java/util/BasicMapEntry.java,
1139         java/security/cert/CRL.java, java/security/cert/CRLException.java,
1140         java/security/cert/Certificate.java,
1141         java/security/cert/CertificateEncodingException.java,
1142         java/security/cert/CertificateException.java,
1143         java/security/cert/CertificateExpiredException.java,
1144         java/security/cert/CertificateFactory.java,
1145         java/security/cert/CertificateFactorySpi.java,
1146         java/security/cert/CertificateNotYetValidException.java,
1147         java/security/cert/CertificateParsingException.java,
1148         java/security/cert/X509CRL.java,
1149         java/security/cert/X509CRLEntry.java,
1150         java/security/cert/X509Certificate.java,
1151         java/security/cert/X509Extension.java: Imported from Classpath.
1152         * java/util/Hashtable.java: Imported from Classpath.
1154         * java/util/zip/ZipInputStream.java: Create stub for
1155         createZipEntry.
1157         * gcj/javaprims.h: Updated class list.
1159         * Makefile.in, gcj/Makefile.in: Rebuilt.
1160         * Makefile.am (ordinary_java_source_files): Add these new classes.
1161         
1162 2000-08-16  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
1164         * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
1165         * gnu/gcj/awt/GLightweightPeer.java: New file.
1166         * java/awt/BorderLayout.java: Implemented all methods.
1167         * java/awt/Button.java (actionListener, actionCommand): Renamed
1168         and modifier change.
1169         (addNotify): Call super.
1170         (dispatchEventImpl): New method.
1171         (getListeners): New method.
1172         (label): Made package-private, not private.
1173         * java/awt/Canvas.java: Implemented class body.
1174         * java/awt/Color.java (brighter): New method.
1175         (darker): New method.
1176         (hashCode): New method.
1177         * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
1178         (getGraphicsConfiguration): Delegate to
1179         getGraphicsConfigurationImpl().
1180         (getGraphicsConfigurationImpl): New method.
1181         (getToolkit): Only return value from peer if not null.
1182         (isDisplayable): Check with parent.
1183         (isShowing): No parent implies not showing.
1184         (getForeground): Check parent property if local is null.
1185         (getBackground): Likewise.
1186         (getFont): Likewise.
1187         (setForeground): Inform peer.
1188         (setBackground): Likewise
1189         (setLocale): Invalidate component.
1190         (getColorModel): Implemented.
1191         (setLocation): Invalidate, or ignore if no change.
1192         (setSize): Invalidate, or ignore if no change.
1193         (setBounds): Invalidate, or ignore if no change.
1194         (isOpaque): By default, heavyweight implies opaque.
1195         (isLightweight): Implemented.
1196         (getMaximumSize): Implemented.
1197         (doLayout): Implemented, NOP.
1198         (validate): Implemented, NOP.
1199         (invalidate): Only propagate to parent if parent was valid.
1200         (getGraphics): Implemented.
1201         (getFontMetrics): Implemented.
1202         (update): Implemented.
1203         (paintAll): Implemented.
1204         (repaint): Implemented all repaint methods.
1205         (print): Implemented.
1206         (printAll): Implemented.
1207         (createImage): Implemented.
1208         (dispatchEvent): Give the peer a chance to handle the event.
1209         (dispatchEventImpl): Dispatch paint events.
1210         (enableEvents): Lightweights enable events on parent component.
1211         (coalesceEvents): Coalesce paint events, and select event type
1212         using a switch.
1213         (coalescePaintEvents): New method.
1214         (processEvent): Fix unfortunate ordering of statements, and call
1215         correct method for MOUSE_CLICKED.
1216         (processPaintEvent): New method.
1217         (addNotify): Allow container to notify children before event
1218         mask is set in peer.
1219         (addNotifyContainerChildren): New method.
1220         (removeNotify): Visibility should not change on removeNotify.
1221         (paramString): Implemented.
1222         (list): Implemented two of the list methods.
1223         * Container (myInsets): Removed, insets are managed by peer.
1224         (getInsets): Query peer.
1225         (addImpl): Fix reparenting, enable events for lightweights,
1226         initialize component array.
1227         (validate): Call doLayout in validateTree() instead.
1228         (validateTree): Do nothing if already valid. Call beginValidate(),
1229         endValidate() on peer. Call validateTree() instead of validate()
1230         for children that are containers. Mark valid after validation of
1231         children.
1232         (setFont): Partial implementation.
1233         (paint): Implemented.
1234         (visitChildren): New method.
1235         (visitChild): New method.
1236         (update): Implemented.
1237         (print): Implemented.
1238         (paintComponents): Implemented.
1239         (printComponents): Consider translation and clipping.
1240         (getComponentAt): Ignore invisible children. Return this if no
1241         child match.
1242         (addNotify): Call super.
1243         (addNotifyContainerChildren): New method.
1244         (paramString): Implemented.
1245         (list): Implemented.
1246         * java/awt/EventQueue (invokeAndWait): Get system event queue the
1247         right way.
1248         (invokeLater): Likewise.
1249         (isDispatchThread): Likewise.
1250         * java/awt/FontMetrics (getLeading): Formula change.
1251         (getDescent): Consider leading also.
1252         (getMaxAscent): Default to getAscent().
1253         (getMaxDescent): Default to getDescent.
1254         (getMaxAdvance): Return value signifying unknown.
1255         (charWidth): Both methods implemented.
1256         (charsWidth): Implemented.
1257         (bytesWidth): Implemented.
1258         (getWidths): Implemented.
1259         * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
1260         state): New fields.
1261         (Frame): Rearragend constuctor chaining to disallow null being
1262         passed as a graphics configuration.
1263         (getTitle): Return empty string if null.
1264         (dispose): Removed.
1265         (getIconImage): New method.
1266         (setIconImage): New method.
1267         (finalize): New method.
1268         (setMenuBar): Notify peer.
1269         (isResizable): New method.
1270         (setResizable): New method.
1271         (getState): New method.
1272         (getFont): Removed.
1273         (remove): Implemented.
1274         (removeNotify): New method.
1275         (getFrames): New method.
1276         * java/awt/Graphics.java: Implemented body of class.
1277         * java/awt/Graphics2D.java: New file.
1278         * java/awt/GraphicsConfiguration.java: Enabled part of the API.
1279         * java/awt/Image.java: Implemented body of class.
1280         * java/awt/Panel.java (Panel): Call correct super constructor.
1281         (addNotify): Implemented.
1282         * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
1283         * java/awt/RenderingHints.java: New file.
1284         * java/awt/Toolkit.java (createComponent): Implemented.
1285         (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
1286         * java/awt/Window.java (Window): Two new constructors. Reordered
1287         constructor chaining.
1288         (getGraphicsConfigurationImpl): New method.
1289         (finalize): Call super.
1290         (addNotify): Call super.
1291         (pack): Do layout stuff.
1292         (show): Ensure that peer exists and that component is valid.
1293         (dispose): Dispose owned children.
1294         (getOwner): Simplify code, casting null pointers is valid.
1295         (getGraphicsConfiguration): Ask peer if local value is null.
1296         * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
1297         getcmd().
1298         * java/awt/image/BufferedImage.java: New file.
1299         * java/awt/image/RasterOp.java: New file.
1300         * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
1301         More powerfull replacement for getColorModel().
1302         (getColorModel) Removed.
1303         (setEventMask) New method.
1304         * Makefile.am: Added new files.
1305         * Makefile.in: Rebuilt.
1307 2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1309         * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
1310         (finit_leg_name): New global.
1311         (java::lang::Class::getDeclaredMethods): Test for `finit$' or
1312         `$finit$'. This is a backward compatibility hack.
1313         (java::lang::Class::_getMethods): Likewise.
1315 2000-08-15  Andrew Haley  <aph@cygnus.com>
1317         * include/jvm.h (_Jv_HashCode): New hash code.
1319 2000-08-15  Tom Tromey  <tromey@cygnus.com>
1321         * java/io/ByteArrayOutputStream.java: Merged with Classpath.
1323 Sun Aug 13 19:53:01 2000  Anthony Green  <green@redhat.com>
1325         * THANKS: More thanks.
1327 2000-08-10  Tom Tromey  <tromey@cygnus.com>
1329         * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
1330         when errno not set.
1331         (connect): Likewise.
1332         (accept): Likewise.
1333         (getOption): Likewise.
1334         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
1335         case when errno not set.
1336         (peek): Likewise.
1337         (send): Likewise.
1338         (receive): Likewise.
1339         (mcastGrp): Likewise.
1340         (setOption): Likewise.
1341         (getOption): Likewise.
1343 2000-08-10  Bryce McKinlay  <bryce@albatross.co.nz>
1344             John Stracke <francis@ecal.com>
1346         * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
1347         (connect): Don't falsely claim HTTP/1.1 compliance. Call 
1348         getHttpHeaders().
1349         (disconnect): Don't unset connected flag.
1350         (getHeaderField (String)): Call connect() if not connected.
1351         (getHeaderField (int)): Ditto.
1352         (getHeaderFieldKey): Ditto.
1353         (getHttpHeaders): Don't call connect(). 
1354         * java/net/HttpURLConnection.java (instanceFollowRedirects,
1355         gotResponseVals): New fields.
1356         (getResponseCode): Call getResponseVals() conditionally.
1357         (getResponseMessage): Ditto.
1358         (getResponseVals): Call connect(). Don't throw FileNotFoundException.   
1360 2000-08-09  Bryce McKinlay  <bryce@albatross.co.nz>
1362         * Makefile.am: Move beans and applet classes to awt_java_source_files.
1363         * Makefile.in: Rebuilt.
1364         * java/awt/Color.java (getTransparency): New method.
1365         * java/awt/Component.java: Various updates.
1366         * java/awt/Container.java (removeNotify): Call super.removeNotify()
1367         after dealing with children.
1368         * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
1369         * java/awt/Window.java: Various new methods and updates.
1370         * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
1371         to int for switch.
1372         * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
1373         * java/awt/event/WindowEvent.java (paramString): Ditto.
1374         * java/awt/geom/Dimension2D.java (clone): Wrap super call with
1375         try/catch block.
1376         * java/awt/geom/Point2D.java (clone): Ditto.
1377         * java/awt/geom/RectangularShape.java (clone): Ditto.
1378         * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
1379         isAlphaPremultiplied): Make package-private, not private.       
1380         
1381 2000-08-08  Tom Tromey  <tromey@cygnus.com>
1383         * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
1384         surrogate characters.
1385         * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
1386         true.
1387         (write): Correct handling of surrogate characters.
1389 2000-08-07  Tom Tromey  <tromey@cygnus.com>
1391         * java/lang/reflect/Method.java (hashCode): Use getName().
1392         (toString): Likewise.
1393         * java/lang/reflect/natMethod.cc (getType): Initialize
1394         exception_types.
1396         * java/lang/reflect/Method.java (toString): Use Class.getName, not
1397         Class.toString.
1398         * java/lang/reflect/Field.java (toString): Correct formatting.
1399         From Corey Minyard.
1401         * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
1402         rewrote.
1403         (receive): Streamlined.
1405 2000-08-05  Tom Tromey  <tromey@cygnus.com>
1407         * java/io/PrintWriter.java: Merged comments from Classpath.
1408         (printlnUnsynchronized): Removed.
1409         (println()): Print the separator.
1410         (println): Call println(), not printlnUnsynchronized.
1411         (out): Now protected, to match spec.
1413 2000-08-04  Tom Tromey  <tromey@cygnus.com>
1415         * java/io/StreamTokenizer.java (TT_NONE): Now private.
1416         (nextToken): Handle backslashed newline.  From Oskar Liljeblad.
1417         For PR java.io/301.
1419 2000-08-03  Warren Levy  <warrenl@cygnus.com>
1421         * java/io/ObjectInputStream.java (readFields): Turn off
1422         readDataFromBlock while reading via GetField.
1423         (GetField$1.get(String, Object)): Pass Class of default value to
1424         getField.
1425         (getField): Allow for null default values.
1427         * java/io/ObjectOutputStream.java: Fixed typo in comment.
1428         (PutField$1.put): Fixed calls of checkType in most of the put
1429         methods to pass the correct parameter.
1430         (PutField$1.put(String, Object)): Allow for null value arg.
1431         (PutField$1.write): Turn off writeDataAsBlocks while writing via
1432         PutField.
1434         * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
1435         typo in spec'ed field name.
1436         (getSerialPersistentFields): Changed spelling of method to match
1437         the correct spelling of the spec'ed field name.
1439 2000-08-03  Tom Tromey  <tromey@cygnus.com>
1441         * Makefile.in: Rebuilt.
1442         * Makefile.am (awt_java_source_files): Added new files.
1444 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
1446         * Makefile.am: Add new AWT stubs.
1447         * java/awt/Canvas.java: New placeholder class.
1448         * java/awt/Checkbox.java: Ditto.
1449         * java/awt/CheckboxMenuItem.java: Ditto.
1450         * java/awt/Choice.java: Ditto.
1451         * java/awt/Dialog.java: Ditto.
1452         * java/awt/FileDialog.java: Ditto.
1453         * java/awt/List.java: Ditto.
1454         * java/awt/ScrollPane.java: Ditto.
1455         * java/awt/TextField.java: Ditto.
1456         * java/awt/datatransfer/Clipboard.java: Ditto.
1457         * java/awt/Component.java (treeLock): Now a static String. Add comment.
1458         * java/awt/MenuItem.java (MenuItem): Add default constructor.
1459         * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs. 
1460         Some commented out. Partially implemented.
1461         * java/awt/natToolkit.cc: Removed file.
1463 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
1465         * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
1466         Fixes "make -j" builds.
1467         * Makefile.in: Rebuild.
1469 2000-08-02  Tom Tromey  <tromey@cygnus.com>
1471         * Makefile.in: Rebuilt.
1472         * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
1473         * java/net/natPlainSocketImpl.cc: Include posix.h.
1474         (accept): Use _Jv_select.
1475         * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
1476         (receive): Use _Jv_select.
1477         * java/io/natFileDescriptorPosix.cc: Include posix.h.
1478         (available): Use _Jv_select.
1479         * java/lang/natSystem.cc: Include posix.h.
1480         (currentTimeMillis): Use _Jv_gettimeofday.
1481         * include/posix.h: New file.
1482         * posix.cc: New file.
1484         * scripts/encodings.pl: New file.
1485         * Makefile.in: Rebuilt.
1486         * Makefile.am (convert_source_files): Added IOConverter.java.
1487         * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
1488         IOConverter.
1489         (getDefaultDecodingClass): Canonicalize default encoding name.
1490         (getEncoder): Likewise.
1491         * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
1492         IOConverter.
1493         (getDefaultDecodingClass): Canonicalize default encoding name.
1494         (getDecoder): Likewise.
1495         * gnu/gcj/convert/IOConverter.java: New file.
1497 2000-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
1499         * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
1500         to match C declaration in ffi.h.
1501         * Makefile.am: Add java/awt/Button.java.
1502         * Makefile.in: Rebuilt.
1504 2000-07-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1506         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
1507         cast of the second argument to `ffi_raw_call' changed to match
1508         prototype.
1510 2000-07-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1512         * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
1513         argument to `ffi_raw_call' changed to match prototype.
1515 2000-07-31  Bryce McKinlay  <bryce@albatross.co.nz>
1517         * java/awt/Component.java (toString): Implemented.
1518         * java/awt/Container.java (addImpl): Remove FIXME. Only call 
1519         dispatchEvent() to dispatch the event.
1520         (removeImpl): Ditto.
1522 2000-07-30  Anthony Green  <green@redhat.com>
1524         * java/awt/Component.java: Add treeLock object.
1525         (getTreeLock): Implement.
1526         (isShowing): Implement.
1528 2000-07-30  Tom Tromey  <tromey@cygnus.com>
1530         * java/awt/BorderLayout.java (BorderLayout()): New constructor.
1532         * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
1534         * java/awt/Window.java (addNotify): Wrote.
1535         (addWindowListener): Wrote.
1536         (getLocale): Wrote.
1537         (getWarningString): Wrote.
1538         (processEvent): Wrote.
1539         (processWindowEvent): Wrote.
1540         (removeWindowListener): Wrote.
1541         (show): Call validate(), setVisible().
1542         (toBack): Wrote.
1543         (toFront): Wrote.
1545         * java/awt/Toolkit.java (createWindow): Declare.
1547         * java/awt/Frame.java (addNotify): Use getToolkit to find
1548         toolkit.
1550         * java/awt/Component.java (invalidate): Wrote.
1551         (isValid): Wrote.
1552         (getToolkit): Wrote.
1554         * java/awt/Container.java (addContainerListener): Removed
1555         unnecessary cast.
1556         (removeContainerListener): Likewise.
1557         (addImpl): Wrote.
1558         (add(Component)): Use it.
1559         (add(String,Component)): Likewise.
1560         (add(Component,int)): Likewise.
1561         (add(Component,Object)): Likewise.
1562         (add(Component,Object,int)): Likewise.
1563         (doLayout): Wrote.
1564         (getAlignmentX): Wrote.
1565         (getAlignmentY): Wrote.
1566         (getComponentAt): Wrote.
1567         (getMaximumSize): Wrote.
1568         (invalidate): Wrote.
1569         (list(PrintStream,int)): Wrote.
1570         (list(PrintWriter,int)): Wrote.
1571         (getMinimumSize): Wrote.
1572         (getPreferredSize): Wrote.
1573         (printComponents): Wrote.
1574         (processContainerEvent): Look at containerListener, not
1575         componentListener.
1576         (remove): Added event processing and peer destruction.
1577         (removeAll): Use remove.
1578         (removeNotify): Wrote.
1579         (validate): Wrote.
1580         (validateTree): Wrote.
1582         * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
1583         * java/awt/Label.java (addNotify): Do nothing if peer exists.
1584         * java/awt/Container.java (addNotify): Don't create Container
1585         peer.
1586         * java/awt/Button.java (addNotify): Do nothing if peer exists.
1588 2000-07-30  Tom Tromey  <tromey@cygnus.com>
1590         * java/awt/Container.java (remove(int)): Wrote.
1591         (remove(Component)): Wrote.
1592         (add(Component)): Wrote.
1593         (add(Component,int)): Wrote.
1594         (removeAll): Wrote.
1595         (addNotify): Set our own peer.
1596         * java/awt/Scrollbar.java (listeners): Changed type.
1597         (Scrollbar): Don't initialize listeners.
1598         (addNotify): Wrote.
1599         (setValue): Call setValues.
1600         (setMinimum): Likewise.
1601         (setMaxPriority): Likewise.
1602         (setVisibleAmount): Likewise.
1603         (setValues): Wrote.
1604         (setUnitIncrement): Forward to peer.
1605         (setLineIncrement): Call setUnitIncrement.
1606         (setPageIncrement): Call setBlockIncrement.
1607         (setBlockIncrement): Forward to peer.
1608         (addAdjustmentListener): Rewrote.
1609         (removeAdjustmentListener): Rewrote.
1610         (processAdjustmentEvent): Rewrote.
1611         (paramString): Wrote.
1612         * Makefile.in: Rebuilt.
1613         * Makefile.am (awt_java_source_files): Added Button.java.
1614         * java/awt/Button.java: New file.
1615         * java/awt/Toolkit.java (createLabel): Declare.
1616         (createButton): Likewise.
1617         (createScrollbar): Likewise.
1618         (createContainer): Likewise.
1619         * java/awt/Label.java (addNotify): Wrote.
1620         (setAlignment): Call setAlignment in the peer.
1621         (setText): Call setText in the peer.
1623 2000-07-28  Warren Levy  <warrenl@cygnus.com>
1625         * java/io/ObjectOutputStream.java (writeObject): Per spec, call
1626         NotSerializableException with just the class name.
1628 2000-07-26  Andrew Haley  <aph@cygnus.com>
1630         * interpret.cc (continue1): Insert missing break into switch.
1632 2000-07-28  Warren Levy  <warrenl@cygnus.com>
1634         * java/io/ObjectStreamException.java: Made constructors protected.
1636 2000-07-27  Tom Tromey  <tromey@cygnus.com>
1638         * java/io/OutputStreamWriter.java (close): Only flush if not
1639         closed.
1641 2000-07-27  Warren Levy  <warrenl@cygnus.com>
1643         * mauve-libgcj: Activated serialization tests.
1644         * gcj/field.h (getModifiers): Mask off unknown flags.
1645         * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
1646         spurious bits don't cause discrepancies.
1647         * java/io/ObjectOutputStream.java: Fixed typo in comment.
1648         * java/io/ObjectStreamClass.java: Fixed typos in comments.
1649         (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
1650         (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
1651         * java/lang/Throwable.java (serialVersionUID): New field.
1652         * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
1653         * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
1654         unknown flags.
1655         * java/lang/reflect/natMethod.cc: Ditto.
1656         * java/security/Key.java (serialVersionUID): Removed field for now.
1657         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
1658         * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
1660 2000-07-22  Tom Tromey  <tromey@cygnus.com>
1662         * java/awt/geom/RectangularShape.java (getPathIterator):
1663         Wrote.
1665 2000-07-23  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
1667         * libjava/java/awt/image/ColorModel.java: New file, replaces the
1668         stub libjava/java/awt/ColorModel.java which was located in the
1669         wrong package.
1670         * libjava/java/awt/image/ComponentColorModel.java: New file.
1671         * libjava/java/awt/image/ComponentSampleModel.java: New file.
1672         * libjava/java/awt/image/DataBuffer.java: New file.
1673         * libjava/java/awt/image/DataBufferByte.java: New file.
1674         * libjava/java/awt/image/DataBufferInt.java: New file.
1675         * libjava/java/awt/image/DataBufferUShort.java: New file.
1676         * libjava/java/awt/image/DirectColorModel.java: New file.
1677         * libjava/java/awt/image/PackedColorModel.java: New file.
1678         * libjava/java/awt/image/Raster.java: New file.
1679         * libjava/java/awt/image/SampleModel.java: New file.
1680         * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
1681         file.
1682         * libjava/java/awt/image/IndexColorModel.java: New file.
1683         * libjava/java/awt/image/ImageConsumer.java: Removed import of
1684         java.awt.ColorModel stub.
1686         * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
1687         * gnu/gcj/util/Buffers.java: New file, utility class.
1689         * libjava/Makefile.am: Updated to include new files.
1690         * libjava/Makefile.in: Rebuilt.
1692 2000-07-23  Oskar Liljeblad <osk@hem.passagen.se>
1694         * java/io/StreamTokenizer.java: Merged with classpath.
1696 2000-07-20  Tom Tromey  <tromey@cygnus.com>
1698         * Makefile.in: Rebuilt.
1699         * Makefile.am (awt_java_source_files): Updated for new files.
1700         * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
1701         * java/awt/Label.java: New file.
1702         * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
1703         (createIntersection, createUnion, getBounds2D): New methods.
1704         * java/awt/Scrollbar.java: New file.
1705         * java/awt/Shape.java: Updated to 1.2.
1706         * java/awt/geom/AffineTransform.java: New file.
1707         * java/awt/geom/Ellipse2D.java: New file.
1708         * java/awt/geom/NoninvertibleTransformException.java: New file.
1709         * java/awt/geom/PathIterator.java: New file.
1710         * java/awt/geom/Rectangle2D.java: New file.
1711         * java/awt/geom/RectangularShape.java: New file.
1712         * java/awt/geom/Point2D.java (Double, Float): New inner classes.
1713         * java/awt/geom/IllegalPathStateException.java: New file.
1714         
1715         * scripts/showval.java: New file.
1717         * scripts/classes.pl (scan): Print inner classes properly.
1718         * gcj/javaprims.h: Updated class list.
1720         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
1721         initialize String fields for interpreted classes.  Fixes bug
1722         reported by Hans Boehm.
1724         * java/io/File.java (getParentFile): New method, from Classpath
1725         via Oskar Liljeblad.
1727         * java/util/Vector.java (remove(Object)): Implemented.
1729 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
1731         * java/lang/natThrowable.cc (fillInStackTrace): Check for
1732         zero return from backtrace().
1734 2000-07-15  Bryce McKinlay  <bryce@albatross.co.nz>
1736         * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
1737         synchronized block.
1738         * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
1739         before calling notifyAll().
1741 2000-07-13  Bryce McKinlay  <bryce@albatross.co.nz>
1743         Add missing files from last check-in:
1744         * java/awt/image/ImageConsumer.java: New file.
1745         * java/awt/image/ImageProducer.java: New file.
1746         * java/awt/image/ImageObserver.java: New file.
1748 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
1750         Merged implementation of java.applet from classpath:
1751         * java/applet/Applet.java: New file.
1752         * java/applet/AppletContext.java: New file.
1753         * java/applet/AppletStub.java: New file.
1754         * java/applet/AudioClip.java: New file.
1756         * Makefile.am: Added new java.applet classes.
1757         * Makefile.in: Rebuilt.
1759 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
1761         AWT Stuff:
1762         * java/util/ResourceBundle.java (getLocale): stub.
1763         * Makefile.am: Added new AWT classes.
1764         * Makefile.in: Rebuilt.
1765         * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed, 
1766         constructors. Fix toString() and paramString().
1767         * java/awt/AWTEventMulticaster.java: New class. Implemented.
1768         * java/awt/CheckboxGroup.java: New class.
1769         * java/awt/ColorModel.java: New class.
1770         * java/awt/Component.java: Added stubs for most methods. Implemented 
1771         event dispatch.
1772         * java/awt/Container.java: ditto.
1773         * java/awt/ComponentOrientation.java: New class. Partly implemented.
1774         * java/awt/Cursor.java: ditto.
1775         * java/awt/Event.java: Fix paramString().
1776         * java/awt/EventQueue.java: New class. Implemented.
1777         * java/awt/Font.java: Added additional stub methods. Implemented 
1778         toString().
1779         * java/awt/FontMetrics.java: New class. Stubbed.
1780         * java/awt/GraphicsConfiguration.java: New class. Complete, except for 
1781         Java2D parts.
1782         * java/awt/Insets.java: New class. Implemented.
1783         * java/awt/Menu.java: Add new methods. Partially implemented.
1784         * java/awt/MenuItem.java: Add new methods and fields. Partially 
1785         implemented.
1786         * java/awt/MenuShortcut.java: New class. Implemented.
1787         * java/awt/Panel.java: New class. Placeholder.
1788         * java/awt/PopupMenu.java: New class. Stubbed.
1789         * java/awt/Rectangle.java: New class. Implemented.
1790         * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
1791         * java/awt/event/ActionEvent.java: Implement paramString().
1792         * java/awt/event/AdjustmentEvent.java: Implement paramString().
1793         * java/awt/event/ComponentEvent.java: Implement paramString().
1794         * java/awt/event/ContainerEvent.java: Implement paramString().
1795         * java/awt/event/FocusEvent.java: Implement paramString().
1796         * java/awt/event/HierarchyBoundsAdapter.java: New class.
1797         * java/awt/event/HierarchyBoundsListener.java: New class.
1798         * java/awt/event/HierarchyEvent.java: New class.
1799         * java/awt/event/HierarchyListener.java: New class.
1800         * java/awt/event/InputMethodEvent.java: Implement paramString().
1801         * java/awt/event/InvocationEvent.java: Implement paramString(). Throw 
1802         exception if !catchExceptions.
1803         * java/awt/event/ItemEvent.java: Implement paramString().
1804         * java/awt/event/KeyEvent.java: Implement paramString().
1805         * java/awt/event/MouseEvent.java: Implement paramString().
1806         * java/awt/event/PaintEvent.java: Implement paramString().
1807         * java/awt/event/TextEvent.java: Implement paramString().
1808         * java/awt/event/WindowEvent.java: Implement paramString().
1809         
1810         AWT Peer interfaces:
1811         * java/awt/peer/ButtonPeer.java: New file.
1812         * java/awt/peer/ListPeer.java: New file.
1813         * java/awt/peer/CanvasPeer.java: New file.
1814         * java/awt/peer/MenuBarPeer.java: New file.
1815         * java/awt/peer/CheckboxMenuItemPeer.java: New file.
1816         * java/awt/peer/MenuComponentPeer.java: New file.
1817         * java/awt/peer/CheckboxPeer.java: New file.
1818         * java/awt/peer/MenuItemPeer.java: New file.
1819         * java/awt/peer/ChoicePeer.java: New file.
1820         * java/awt/peer/MenuPeer.java: New file.
1821         * java/awt/peer/ComponentPeer.java: Implemented.
1822         * java/awt/peer/PanelPeer.java: New file.
1823         * java/awt/peer/ContainerPeer.java: Implemented.
1824         * java/awt/peer/PopupMenuPeer.java: New file.
1825         * java/awt/peer/DialogPeer.java: New file.
1826         * java/awt/peer/ScrollPanePeer.java: New file.
1827         * java/awt/peer/FileDialogPeer.java: New file.
1828         * java/awt/peer/ScrollbarPeer.java: New file.
1829         * java/awt/peer/FontPeer.java: New file.
1830         * java/awt/peer/TextAreaPeer.java: New file.
1831         * java/awt/peer/FramePeer.java: Implemented.
1832         * java/awt/peer/TextComponentPeer.java: New file.
1833         * java/awt/peer/LabelPeer.java: New file.
1834         * java/awt/peer/TextFieldPeer.java: New file.
1835         * java/awt/peer/LightweightPeer.java: New file.
1836         * java/awt/peer/WindowPeer.java: Implemented.
1838 2000-07-06  Tom Tromey  <tromey@cygnus.com>
1840         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
1841         Initialize static final String fields.
1843 2000-07-03  Tom Tromey  <tromey@cygnus.com>
1845         * java/io/PrintWriter.java (print): Call write(String), not
1846         print(String).  See PR libgcj/277.
1847         (print(String)): Use write, not out.write.
1849 2000-06-30  Tom Tromey  <tromey@cygnus.com>
1851         * include/jni.h: Include <gcj/array.h>.  Fixes PR libgcj/270.
1853 2000-06-27  Andrew Haley  <aph@cygnus.com>
1855        * java/io/File.java (createTempFile): Close the FileDescriptor
1856        used to create a temp file.  Fixes some of PR 203.
1857        * java/io/natFileDescriptorPosix.cc (open): Call garbage
1858        collection if we run out of file handles.
1860 2000-06-28  Warren Levy  <warrenl@cygnus.com>
1862         * gnu/java/security/provider/Gnu.java: New file.
1863         * gnu/java/security/provider/SHA.java: New file.
1864         * gnu/java/security/provider/SHA1PRNG.java: New file.
1865         * Makefile.am: Added the above files.
1866         * Makefile.in: Rebuilt.
1868         * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
1870 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
1872         * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
1873         (destroyed_flag): Removed.
1874         (isDestroyed, removeGroup, removeThread): Test for parent == null.      
1875         (activeCount): Added spec note.
1877 2000-06-27  Warren Levy  <warrenl@cygnus.com>
1879         * java/security/Principal.java: New file.
1880         * Makefile.am: Added Principal.java.
1881         * Makefile.in: Rebuilt.
1883 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
1885         * java/awt/event/MouseEvent.java: Fixed coordinate space
1886         confusion.
1888 2000-06-27  Tom Tromey  <tromey@cygnus.com>
1890         * java/io/PushbackInputStream.java (read): If there are characters
1891         in the buffer, don't also call super.read().
1892         * java/io/PushbackReader.java (read): If there are characters in
1893         the buffer, don't also call super.read().
1895         * java/lang/Double.java (valueOf): Call parseDouble().
1897 2000-06-26  Warren Levy  <warrenl@cygnus.com>
1899         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
1900         (newVal): Renamed to newValue.
1901         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
1902         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
1903         (revokeNow): Renamed to invalidateRefs.
1904         * java/io/OptionalDataException.java: Updated FIXME.
1905         (eof): New placeholder field.
1906         (length); Ditto.
1907         * java/io/WriteAbortedException.java (message): Made transient.
1908         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
1909         * java/lang/Throwable.java (stackTrace): Made transient.
1910         * java/net/InetAddress.java: Made Serializable.
1911         * java/security/KeyPair.java: Made Serializable.
1912         * java/security/Provider.java: Replaced with Classpath version that
1913         implements serialization and proper methods.
1914         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
1915         (limits): Renamed to choiceLimits.
1917 2000-06-24  Tom Tromey  <tromey@cygnus.com>
1919         * java/lang/natDouble.cc (parseDouble): Renamed from
1920         doubleValueOf.
1921         * java/lang/Double.java (parseDouble): Renamed from
1922         doubleValueOf.  Now public.
1924 2000-06-23  Andrew Haley  <aph@cygnus.com>
1926         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
1927         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
1929 2000-06-23  Tom Tromey  <tromey@cygnus.com>
1931         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
1932         * java/lang/natDouble.cc: Always include <alloca.h>.
1933         Fix for PR libgcj/267.
1935 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
1937         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
1938         comply with classpath VM spec.
1939         (add(Group)): Rename to addGroup().
1940         * java/lang/Thread.java (Thread): Use addThread().
1941         * java/lang/natThread.cc (finish_): Use removeThread().
1943 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
1945         * java/lang/ThreadGroup.java: Merged with classpath.
1946         * prims.cc (_Jv_RunMain): Don't use `main_group'.
1947         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
1948         argument.
1949         * java/lang/Thread.java (Thread): Bootstrap initial thread from 
1950         ThreadGroup.root if Thread.currentThread is null. Honour the 
1951         ThreadGroup's max priority setting.
1953 2000-06-18  Tom Tromey  <tromey@cygnus.com>
1955         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
1956         returned class.  For PR gcj/260.
1958 2000-06-16  Tom Tromey  <tromey@cygnus.com>
1960         Fix for PR libgcj/261:
1961         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
1962         argument.
1963         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
1964         argument.  (This is a patch from long ago that somehow went
1965         missing.)
1967 2000-06-15  Tom Tromey  <tromey@cygnus.com>
1969         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
1970         (read): Use it.
1971         (write): Likewise.
1973 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
1975         Fix for PR java.lang/258:
1976         * prims.cc (_Jv_PrimClass): Set state of primitive class to 
1977         JV_STATE_DONE, to prevent accidental initialization.
1978         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call 
1979         _Jv_InterfaceAssignableFrom if target is an interface and source is an
1980         interface or an abstract class. Remove redundant initializeClass calls. 
1981         Remove duplicate if_idt test.
1982         (_Jv_InterfaceAssignableFrom): New function.
1983         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
1985 2000-05-31  Tom Tromey  <tromey@cygnus.com>
1987         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
1988         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
1989         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
1990         (NUM_OBJECT_METHODS): New define.
1991         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1992         `array_vtable' parameter.  Added assertion.
1993         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
1994         parameter.
1996 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
1998         * gcj/cni.h: Include <string.h>.
1999         * defineclass.cc: Include <alloca.h>.
2000         * interpret.cc: Ditto.
2001         * gij.cc: Include <stdlib.h>.
2003 2000-05-30  Tom Tromey  <tromey@cygnus.com>
2005         * include/name-finder.h: Include <sys/wait.h>.
2006         (_Jv_name_finder::pid): Now of type `pid_t'.
2007         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
2008         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
2009         `proc.waitFor()'.
2011 2000-05-24  Warren Levy  <warrenl@cygnus.com>
2013         * java/io/ObjectOutputStream.java (writeObject): Use component type
2014         when writing arrays.
2015         Fixed typo.
2017 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
2019         Fix for PR libgcj/226:
2020         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
2021         since this is an installed header.
2022         
2023         Fix for PR libgcj/228:
2024         * java/util/zip/ZipFile (getInputStream): Create inflater with 
2025         nowrapper option.
2026         
2027         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
2028         with DataFormatException.       
2030 2000-05-20  Tom Tromey  <tromey@cygnus.com>
2032         * Makefile.in: Rebuilt.
2033         * Makefile.am (hack1): Removed.
2034         (awto_files): Likewise.
2035         (libgcjawt_la_SOURCES): Likewise.
2036         (EXTRA_libgcjawt_la_SOURCES): Likewise.
2037         (libgcjawt_la_DEPENDENCIES): Likewise.
2038         (libgcjawt_la_LIBADD): Likewise.
2039         (libgcjawt_la_LDFLAGS): Likewise.
2040         (libgcjawt_la_LINK): Likewise.
2041         ($(awt_java_source_files:.java=.class)): Likewise.
2042         (libgcj.zip): Don't depend on AWT files.
2043         (MOSTLYCLEANFILES): Don't include AWT files.
2044         ($(awto_files)): Removed.
2045         (nat_headers): Removed AWT files.
2046         (cond_awt_java_source_files): Removed.
2047         (ordinary_java_source_files): Added awt_java_source_files.
2048         * libgcj.spec.in (*lib): Removed -lgcjawt.
2049         * configure: Rebuilt.
2050         * configure.in: Removed --enable-java-awt option.
2052 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
2054         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
2055         (ZipEntry): Copy the `name' field.
2056         (clone): Implement JDK1.2 method.
2057         (setCompressedSize): ditto.
2058         (hashCode): ditto.
2060 2000-05-19  Tom Tromey  <tromey@cygnus.com>
2062         * java/io/BufferedWriter.java: Merged with Classpath.
2063         * java/io/BufferedOutputStream.java: Merged with Classpath.
2065 2000-05-16  Andrew Haley  <aph@cygnus.com>
2067         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
2068         build_ia64_frame_state.
2069         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
2070         defintion in gcc.
2072 2000-05-15  Warren Levy  <warrenl@cygnus.com>
2074         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
2075         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
2076         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
2077         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
2078         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
2079         * gnu/gcj/beans/editors/FontEditor.java: Removed.
2080         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
2081         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
2082         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
2083         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
2084         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
2085         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
2086         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
2087         * gnu/gcj/beans/editors/StringEditor.java: Removed.
2088         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
2089         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
2090         * gnu/gcj/io/NullOutputStream.java: Removed.
2091         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
2092         * gnu/gcj/lang/ArrayHelper.java: Removed.
2093         * gnu/gcj/lang/ClassHelper.java: Removed.
2094         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
2096         * gnu/java/beans/BeanInfoEmbryo.java: New file.
2097         * gnu/java/beans/EmptyBeanInfo.java: New file.
2098         * gnu/java/beans/ExplicitBeanInfo.java: New file.
2099         * gnu/java/beans/IntrospectionIncubator.java: New file.
2100         * gnu/java/beans/editors/ColorEditor.java: New file.
2101         * gnu/java/beans/editors/FontEditor.java: New file.
2102         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
2103         * gnu/java/beans/editors/NativeByteEditor.java: New file.
2104         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
2105         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
2106         * gnu/java/beans/editors/NativeIntEditor.java: New file.
2107         * gnu/java/beans/editors/NativeLongEditor.java: New file.
2108         * gnu/java/beans/editors/NativeShortEditor.java: New file.
2109         * gnu/java/beans/editors/StringEditor.java: New file.
2110         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
2111         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
2112         * gnu/java/io/NullOutputStream.java: New file.
2113         * gnu/java/io/ObjectIdentityWrapper.java: New file.
2114         * gnu/java/lang/ArrayHelper.java: New file.
2115         * gnu/java/lang/ClassHelper.java: New file.
2116         * gnu/java/lang/reflect/TypeSignature.java: New file.
2118         * Makefile.am: Updated for moving Classpath files from gnu/gcj
2119         namespace back to the original Classpath gnu/java namespace.
2120         * Makefile.in: Rebuilt.
2122         * java/beans/Beans.java: Namespace change.
2123         * java/beans/EventSetDescriptor.java: Namespace change.
2124         * java/beans/Introspector.java: Namespace change.
2125         * java/beans/PropertyEditorManager.java: Namespace change.
2126         * java/io/ObjectInputStream.java: Namespace change.
2127         * java/io/ObjectOutputStream.java: Namespace change.
2128         * java/io/ObjectStreamClass.java: Namespace change.
2129         * java/io/ObjectStreamField.java: Namespace change.
2131 2000-04-21  Warren Levy  <warrenl@cygnus.com>
2133         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
2134         now that compiler patch is available.
2135         Removed unneeded System.loadLibrary.
2136         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
2137         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
2139 2000-04-19  Andrew Haley  <aph@cygnus.com>
2141         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
2142         and target classes have been initialized.
2144 2000-04-19  Andrew Haley  <aph@cygnus.com>
2146         * java/lang/String.java: implement Serializable, Comparable.
2147         (compareTo (Object)): New method.
2149 2000-04-19  Warren Levy  <warrenl@cygnus.com>
2151         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
2152         instead of getField to retrieve non-public field.
2153         (getSerialPersistantFields): Ditto.
2155 2000-04-18  Warren Levy  <warrenl@cygnus.com>
2157         * mauve-libgcj: Turned off object serialization tests temporarily
2158         due to compiler error.
2160 2000-04-17  Warren Levy  <warrenl@cygnus.com>
2162         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
2163         to avoid build problem.
2164         (DEBUGln): Ditto.
2165         * mauve-libgcj: Turned on object serialization tests.
2167 2000-04-17  Tom Tromey  <tromey@cygnus.com>
2169         * libgcj.spec.in (*lib): Added -lgcjawt.
2171 2000-04-17  Andrew Haley  <aph@cygnus.com>
2173         * Makefile.am: Add new files: 
2174         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
2175         gnu/gcj/io/shs.cc.
2176         * Makefile.in: Rebuilt.
2178         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
2179         interface that has no implementations.
2180         Check for an attempt to assign an abstract class to an interface.
2182         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
2183         if we fail to find MessageDigest.getInstance ("SHA").
2185         * gnu/gcj/io/SimpleSHSStream.java: New file.
2186         * gnu/gcj/io/natSimpleSHSStream.java: New file.
2187         * gnu/gcj/io/shs.cc: New file.
2188         * gnu/gcj/io/shs.h: new file.
2190         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
2191         serializable.
2193         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
2194         punctuation from the classname of an array element.
2196         * gcj/javaprims.h: Add SimpleDigestStream.
2197         
2198 2000-04-17  Andrew Haley  <aph@cygnus.com>
2200         * java/lang/natClass.cc (getPrivateField): Make recursive calls
2201         to getPrivateField for superclasses.
2203 2000-04-14  Andrew Haley  <aph@cygnus.com>
2205         * Makefile.am: Add new files:
2206         java/io/ObjectOutputStream$PutField.h,
2207         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
2208         java/io/natObjectOutputStream.cc
2209         * Makefile.in: Rebuilt.
2210         * gcj/Makefile.in: Rebuilt.
2211         * include/Makefile.in: Rebuilt.
2212         * java/lang/Class.h (getPrivateField): New method.
2213         (getPrivateMethod): Ditto.
2214         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
2215         and java::io::ObjectStreamClass our friends.
2216         * java/lang/natClass.cc (getPrivateField): New method.
2217         (getPrivateMethod): Ditto.
2218         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
2219         * gcj/javaprims.h: Add serialization classes.   
2220         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
2221         (setByteField): Ditto.
2222         (setCharField): Ditto.
2223         (setDoubleField): Ditto.
2224         (setFloatField): Ditto.
2225         (setIntField): Ditto.
2226         (setLongField): Ditto.
2227         (setShortField): Ditto.
2228         (setObjectField): Ditto.
2229         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
2230         Java.
2231         (getByteField): Ditto.
2232         (getCharField): Ditto.
2233         (getDoubleField): Ditto.
2234         (getFloatField): Ditto.
2235         (getIntField): Ditto.
2236         (getLongField): Ditto.
2237         (getShortField): Ditto.
2238         (getObjectField): Ditto.
2239         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
2240         Java.
2241         (getSerialPersistantFields): Ditto.
2242         (getDefinedSUID): Ditto.
2243         * java/io/natObjectOutputStream.cc: New file.
2244         * java/io/natObjectInputStream.cc: New file.
2245         
2246 2000-04-13  Warren Levy  <warrenl@cygnus.com>
2248         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
2249         problems.  Revert to previous version to reproduce and when fixed.
2251 2000-04-13  Warren Levy  <warrenl@cygnus.com>
2253         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
2254         * gnu/gcj/io/NullOutputStream.java: New file.
2255         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
2256         * java/io/BlockDataException.java: New file.
2257         * java/io/Externalizable.java: New file.
2258         * java/io/InvalidClassException.java: New file.
2259         * java/io/InvalidObjectException.java: New file.
2260         * java/io/NotActiveException.java: New file.
2261         * java/io/NotSerializableException.java: New file.
2262         * java/io/ObjectInput.java: New file.
2263         * java/io/ObjectInputStream.java: New file.
2264         * java/io/ObjectInputValidation.java: New file.
2265         * java/io/ObjectOutput.java: New file.
2266         * java/io/ObjectOutputStream.java: New file.
2267         * java/io/ObjectStreamClass.java: New file.
2268         * java/io/ObjectStreamConstants.java: New file.
2269         * java/io/ObjectStreamField.java: New file.
2270         * java/io/Replaceable.java: New file.
2271         * java/io/Resolvable.java: New file.
2272         * java/io/SerializablePermission.java: New file.
2273         * java/io/WriteAbortedException.java: New file.
2274         * java/security/BasicPermission.java: New file.
2275         * java/security/DigestOutputStream.java: New file.
2276         * java/security/Guard.java: New file.
2277         * java/security/Permission.java: New file.
2278         * java/security/PermissionCollection.java: New file.
2279         * Makefile.am: Added above files.
2280         * Makefile.in: Rebuilt.
2282         * java/beans/Beans.java (instantiate): Activated serialization code.
2283         * java/lang/SecurityManager.java (checkPermission): New method.
2285 2000-04-12  Warren Levy  <warrenl@cygnus.com>
2287         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
2288         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
2289         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
2290         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
2291         * gnu/gcj/beans/editors/ColorEditor.java: New file.
2292         * gnu/gcj/beans/editors/FontEditor.java: New file.
2293         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
2294         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
2295         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
2296         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
2297         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
2298         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
2299         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
2300         * gnu/gcj/beans/editors/StringEditor.java: New file.
2301         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
2302         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
2303         * gnu/gcj/lang/ArrayHelper.java: New file.
2304         * gnu/gcj/lang/ClassHelper.java: New file.
2305         * java/beans/BeanDescriptor.java: New file.
2306         * java/beans/BeanInfo.java: New file.
2307         * java/beans/Beans.java: New file.
2308         * java/beans/Customizer.java: New file.
2309         * java/beans/DesignMode.java: New file.
2310         * java/beans/EventSetDescriptor.java: New file.
2311         * java/beans/FeatureDescriptor.java: New file.
2312         * java/beans/IndexedPropertyDescriptor.java: New file.
2313         * java/beans/IntrospectionException.java: New file.
2314         * java/beans/Introspector.java: New file.
2315         * java/beans/MethodDescriptor.java: New file.
2316         * java/beans/ParameterDescriptor.java: New file.
2317         * java/beans/PropertyChangeEvent.java: New file.
2318         * java/beans/PropertyChangeListener.java: New file.
2319         * java/beans/PropertyChangeSupport.java: New file.
2320         * java/beans/PropertyDescriptor.java: New file.
2321         * java/beans/PropertyEditor.java: New file.
2322         * java/beans/PropertyEditorManager.java: New file.
2323         * java/beans/PropertyEditorSupport.java: New file.
2324         * java/beans/PropertyVetoException.java: New file.
2325         * java/beans/SimpleBeanInfo.java: New file.
2326         * java/beans/VetoableChangeListener.java: New file.
2327         * java/beans/VetoableChangeSupport.java: New file.
2328         * java/beans/Visibility.java: New file.
2329         * java/beans/beancontext/BeanContext.java: New file.
2330         * java/beans/beancontext/BeanContextChild.java: New file.
2331         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
2332         * java/beans/beancontext/BeanContextChildSupport.java: New file.
2333         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
2334         * java/beans/beancontext/BeanContextEvent.java: New file.
2335         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
2336         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
2337         * java/beans/beancontext/BeanContextProxy.java: New file.
2338         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
2339         New file.
2340         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
2341         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
2342         New file.
2343         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
2344         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
2345         New file.
2346         * java/beans/beancontext/BeanContextServices.java: New file.
2347         * java/beans/beancontext/BeanContextServicesListener.java: New file.
2348         * java/util/AbstractCollection.java: New file.
2349         * java/util/AbstractList.java: New file.
2350         * java/util/Arrays.java: New file.
2351         * Makefile.am: Added above files.
2352         * Makefile.in: Rebuilt.
2354 2000-04-11  Warren Levy  <warrenl@cygnus.com>
2356         * java/awt/AWTError.java: New file.
2357         * java/awt/AWTEvent.java: New file.
2358         * java/awt/AWTException.java: New file.
2359         * java/awt/ActiveEvent.java: New file.
2360         * java/awt/Adjustable.java: New file.
2361         * java/awt/BorderLayout.java: New file.
2362         * java/awt/Color.java: New file.
2363         * java/awt/Component.java: New file.
2364         * java/awt/Container.java: New file.
2365         * java/awt/Dimension.java: New file.
2366         * java/awt/Event.java: New file.
2367         * java/awt/Font.java: New file.
2368         * java/awt/Frame.java: New file.
2369         * java/awt/Graphics.java: New file.
2370         * java/awt/IllegalComponentStateException.java: New file.
2371         * java/awt/Image.java: New file.
2372         * java/awt/ItemSelectable.java: New file.
2373         * java/awt/LayoutManager.java: New file.
2374         * java/awt/LayoutManager2.java: New file.
2375         * java/awt/Menu.java: New file.
2376         * java/awt/MenuBar.java: New file.
2377         * java/awt/MenuComponent.java: New file.
2378         * java/awt/MenuContainer.java: New file.
2379         * java/awt/MenuItem.java: New file.
2380         * java/awt/Paint.java: New file.
2381         * java/awt/PaintContext.java: New file.
2382         * java/awt/Point.java: New file.
2383         * java/awt/Rectangle.java: New file.
2384         * java/awt/Shape.java: New file.
2385         * java/awt/TextArea.java: New file.
2386         * java/awt/TextComponent.java: New file.
2387         * java/awt/Toolkit.java: New file.
2388         * java/awt/Transparency.java: New file.
2389         * java/awt/Window.java: New file.
2390         * java/awt/natToolkit.cc: New file.
2391         * java/awt/event/AWTEventListener.java: New file.
2392         * java/awt/event/ActionEvent.java: New file.
2393         * java/awt/event/ActionListener.java: New file.
2394         * java/awt/event/AdjustmentEvent.java: New file.
2395         * java/awt/event/AdjustmentListener.java: New file.
2396         * java/awt/event/ComponentAdapter.java: New file.
2397         * java/awt/event/ComponentEvent.java: New file.
2398         * java/awt/event/ComponentListener.java: New file.
2399         * java/awt/event/ContainerAdapter.java: New file.
2400         * java/awt/event/ContainerEvent.java: New file.
2401         * java/awt/event/ContainerListener.java: New file.
2402         * java/awt/event/FocusAdapter.java: New file.
2403         * java/awt/event/FocusEvent.java: New file.
2404         * java/awt/event/FocusListener.java: New file.
2405         * java/awt/event/InputEvent.java: New file.
2406         * java/awt/event/InputMethodEvent.java: New file.
2407         * java/awt/event/InputMethodListener.java: New file.
2408         * java/awt/event/InvocationEvent.java: New file.
2409         * java/awt/event/ItemEvent.java: New file.
2410         * java/awt/event/ItemListener.java: New file.
2411         * java/awt/event/KeyAdapter.java: New file.
2412         * java/awt/event/KeyEvent.java: New file.
2413         * java/awt/event/KeyListener.java: New file.
2414         * java/awt/event/MouseAdapter.java: New file.
2415         * java/awt/event/MouseEvent.java: New file.
2416         * java/awt/event/MouseListener.java: New file.
2417         * java/awt/event/MouseMotionAdapter.java: New file.
2418         * java/awt/event/MouseMotionListener.java: New file.
2419         * java/awt/event/PaintEvent.java: New file.
2420         * java/awt/event/TextEvent.java: New file.
2421         * java/awt/event/TextListener.java: New file.
2422         * java/awt/event/WindowAdapter.java: New file.
2423         * java/awt/event/WindowEvent.java: New file.
2424         * java/awt/event/WindowListener.java: New file.
2425         * java/awt/geom/Dimension2D.java: New file.
2426         * java/awt/geom/Point2D.java: New file.
2427         * java/awt/peer/ComponentPeer.java: New file.
2428         * java/awt/peer/ContainerPeer.java: New file.
2429         * java/awt/peer/FramePeer.java: New file.
2430         * java/awt/peer/WindowPeer.java: New file.
2431         * java/util/Collection.java: New file.
2432         * java/util/Comparator.java: New file.
2433         * java/util/Iterator.java: New file.
2434         * java/util/List.java: New file.
2435         * java/util/ListIterator.java: New file.
2436         * Makefile.am: Added above files.
2437         * Makefile.in: Rebuilt.
2439 2000-04-10  Warren Levy  <warrenl@cygnus.com>
2441         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
2442         * java/lang/FirstThread.java: Ditto.
2443         * java/lang/StringBuffer.java: Ditto.
2444         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
2446         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
2447         Special case handled in java.math.BigInteger.
2448         * java/math/BigInteger.java (divide): Handle the special case when
2449         dividing by 1 and the high bit of the dividend is set.
2450         (setShiftRight): Handle case when count == 0.
2452 2000-04-05  Andrew Haley  <aph@cygnus.com>
2454         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
2455         special case.
2457 2000-04-05  Andrew Haley  <aph@cygnus.com>
2459         * sysdep/ia64.c (rse_address_add): Delete.
2460         (IS_NaT_COLLECTION_ADDR): Delete.
2461         (ia64_backtrace_helper): check for null unwind_info.
2462         
2463         * sysdep/ia64-frame.h: add calc_caller_bsp.
2465         * java/lang/natThrowable.cc (printRawStackTrace): Flush
2466         PrintWriter.
2468         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
2469         (_Jv_remI): Likewise.
2470         (_Jv_divJ): Likewise.
2471         (_Jv_remJ): Likewise.
2472         
2473         * interpret.cc (continue1): Use divide subroutines to guarantee
2474         correct Java standard behaviour.
2475         Floating-point division should not abort; make it so.
2477 2000-03-29  Tom Tromey  <tromey@cygnus.com>
2479         * configure: Rebuilt.
2480         * configure.in: Test against `libgcj_sjlj', not
2481         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
2482         to be set even when using sjlj.
2484 2000-03-24  Andrew Haley  <aph@cygnus.com>
2486         * Makefile.am: Add file addr2name.awk.
2487         * Makefile.in: Rebuilt.
2488         * addr2name.awk: New file.
2489         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
2490         lookups on ia64.
2491         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
2492         blank line.
2493         
2494 2000-03-22  Andrew Haley  <aph@cygnus.com>
2496         * configure.host: Add -funwind-tables for IA64.
2497         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
2498         * Makefile.in: Rebuilt.
2499         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
2500         * sysdep/ia64.c: New file.
2501         * sysdep/ia64-frame.h: New file.
2502         * configure.in: Add sysdep/ia64.c for ia64.
2503         * configure: Rebuilt.
2504         
2505 2000-03-17  Andrew Haley  <aph@cygnus.com>
2507         * java/lang/natString.cc: Remove `register' keyword.
2508         interpret.cc: ditto.
2510 2000-03-16  Andrew Haley  <aph@cygnus.com>
2512         * configure.host (ia64): Enable interpreter.
2514 2000-03-14  Hans Boehm  <boehm@acm.org>
2516         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
2518 2000-03-14  Andrew Haley  <aph@cygnus.com>
2520         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
2521         `_exception'.
2523 2000-03-10  Andrew Haley  <aph@cygnus.com>
2525         * java/lang/ieeefp.h: Import latest version from fdlibm.
2527 2000-03-14  Andrew Haley  <aph@cygnus.com>
2529         * prims.cc (_Jv_ThrowSignal): New function.
2530         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
2531         (catch_fpe): Ditto.
2532         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
2533         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
2534         * include/ppc-signal.h: New file.
2536 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
2538         * java/lang/Thread.java: Declare `data' as Object, not RawData.
2539         * java/lang/natThread.java (initialize_native): Cast `data' to
2540         jobject.
2541         * gnu/gcj/RawData.java: Clarify documentation.
2543         From Gregory R. Warnes <warnes@biostat.washington.edu>:
2544         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
2545         `jarFile', not `jarFileURL'.
2547 2000-05-15  Andrew Haley  <aph@cygnus.com>
2549         * include/ppc-signal.h: New file.
2551 2000-05-11  Tom Tromey  <tromey@cygnus.com>
2553         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
2554         file headers, don't include `size' in the skip call.
2556 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
2558         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
2559         Avoid arrayCopy() call where possible. Update `count' _after_ calling
2560         arrayCopy().
2561         (replace): Reimplemented. Fix javadoc.
2562         (reverse): Call ensureCapacity_unsynchronized().
2563         (StringBuffer (String)): Use DEFAULT_CAPACITY.
2565         (replace): Calculate length for arraycopy() correctly.
2566         
2567 2000-05-09  Tom Tromey  <tromey@cygnus.com>
2569         * java/lang/StringBuffer.java (toString): Don't mark buffer as
2570         shared.
2571         (insert(int,char[],int,int): New method.
2572         (delete): New method from Classpath.
2573         (deleteCharAt): Likewise.
2574         (substring): Likewise.
2575         (shared): No longer private.
2576         Added JavaDoc comments from Classpath.
2577         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
2578         shared.
2580 2000-05-07  Tom Tromey  <tromey@cygnus.com>
2582         * Makefile.in: Rebuilt.
2583         * Makefile.am (LIBLINK): New macro.
2584         (libgcj_la_LINK): Use it.
2585         (libgcjawt_la_LINK): Likewise.
2587 2000-05-06  Tom Tromey  <tromey@cygnus.com>
2589         * Makefile.in: Rebuilt.
2590         * Makefile.am (libgcj.zip): Don't pass -L to javac.
2592 2000-05-05  Tom Tromey  <tromey@cygnus.com>
2594         Fix for PR libgcj/220:
2595         * Makefile.in: Rebuilt.
2596         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
2597         (jv_convert_LDFLAGS): Likewise.
2598         (libgcj_la_LDFLAGS): Likewise.
2599         (GCJLINK): New macro.
2600         (jv_convert_LINK): Use it.
2601         (gij_LINK): Likewise.
2602         (libgcj_la_LINK): New macro.
2603         (libgcjawt_la_LINK): Likewise.
2605 2000-05-04  Tom Tromey  <tromey@cygnus.com>
2607         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
2608         field.
2609         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
2610         `0x0008'.
2611         Include Modifier.h.
2613 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
2615         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
2616         (_Jv_IsAssignableFrom): Ditto.
2617         (_Jv_IsInstanceOf): Ditto.
2618         (_Jv_CheckCast): Ditto.
2619         (_Jv_CheckArrayStore): Ditto.
2620         * java/lang/Class.h (_Jv_InitClass): Ditto.     
2621         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
2622         not `0'.
2623         (notify): Ditto.
2624         (notifyAll): Ditto.
2625         (wait): Ditto.
2626         (_Jv_MonitorExit): Ditto.
2627         * boehm.cc (_Jv_MarkObj): Ditto.
2628         (_Jv_MarkObj): Ditto.
2629         (_Jv_MarkArray): Ditto.
2630         * prims.cc (_Jv_AllocObject): Ditto.
2631         (_Jv_NewObjectArray): Ditto.
2632         (_Jv_NewPrimArray): Ditto.
2633         (_Jv_Malloc): Ditto.
2634         (_Jv_Realloc): Ditto.
2635         (_Jv_MallocUnchecked): Ditto.
2636         (_Jv_divI): Ditto.
2637         (_Jv_remI): Ditto.
2638         (_Jv_divJ): Ditto.
2639         (_Jv_remJ): Ditto.
2641 2000-05-04  Tom Tromey  <tromey@cygnus.com>
2643         * java/util/Locale.java (Locale): Don't explicitly check for
2644         null.
2645         * java/util/Hashtable.java (containsKey): Don't explicitly check
2646         for null.
2647         (get): Likewise.
2648         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
2649         null.
2650         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
2651         for null.
2652         * java/text/StringCharacterIterator.java
2653         (StringCharacterIterator): Don't check for null.
2654         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
2655         for null pointer.
2656         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
2657         check for null pointer.
2658         (leaveGroup): Likewise.
2659         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
2660         comment.
2661         (setData): Likewise.
2662         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
2663         for `p==null'.
2665 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
2667         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
2668         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
2669         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
2670         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
2671         -rpath for in-gcc builds.
2672         * Makefile.in: Rebuilt.
2674 2000-04-28  Tom Tromey  <tromey@cygnus.com>
2676         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
2677         Fix for PR gcj/218.
2679 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
2681         * libjava/java/lang/String.java (toString): Remove `final' hack.
2683 2000-04-05  Tom Tromey  <tromey@cygnus.com>
2685         Runtime support for PR gcj/2:
2686         * prims.cc (_Jv_ThrowNullPointerException): New function.
2687         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
2689 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
2691         * prims.cc (_Jv_NewObjectArray): Fix typo.
2693 2000-04-26  Tom Tromey  <tromey@cygnus.com>
2695         * Makefile.in: Rebuilt.
2696         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
2698 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
2700         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
2701         calling main.
2703 2000-04-22  Anthony Green  <green@cygnus.com>
2705         * include/jvm.h (__builtin_expect): Define as unused for now.
2706         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
2707         (notify): Ditto.
2708         (notifyAll): Ditto.
2709         (wait): Ditto.
2710         (_Jv_MonitorExit): Ditto.
2711         * boehm.cc (_Jv_MarkObj): Ditto.
2712         (_Jv_MarkObj): Ditto.
2713         (_Jv_MarkArray): Ditto.
2714         (_Jv_AllocBytes): Ditto.
2715         * prims.cc (_Jv_AllocObject): Ditto.
2716         (_Jv_NewObjectArray): Ditto.
2717         (_Jv_NewPrimArray): Ditto.
2718         (_Jv_Malloc): Ditto.
2719         (_Jv_Realloc): Ditto.
2720         (_Jv_MallocUnchecked): Ditto.
2721         (_Jv_divI): Ditto.
2722         (_Jv_remI): Ditto.
2723         (_Jv_divJ): Ditto.
2724         (_Jv_remJ): Ditto.
2726         * include/Makefile.in: Rebuilt.
2727         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
2729 2000-04-21  Tom Tromey  <tromey@cygnus.com>
2731         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
2732         Yet another new version from Classpath.
2734         Fix for PR libgcj/15:
2735         * java/util/natGregorianCalendar.cc (_REENTRANT,
2736         _POSIX_PTHREAD_SEMANTICS): Don't define.
2737         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
2738         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
2739         Don't define.
2740         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
2741         define.
2742         * configure: Rebuilt.
2743         * configure.in: If using POSIX threads, define _REENTRANT if
2744         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
2745         GETHOSTBYNAME_R_NEEDS_REENTRANT.
2747         * java/io/PipedInputStream.java, java/io/PipedReader.java,
2748         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
2749         version from Classpath.
2751         Fix for PR libgcj/213:
2752         * Makefile.in: Rebuilt.
2753         * Makefile.am (gij_SOURCES): Added gij.cc.
2754         (EXTRA_gij_SOURCES): Removed.
2755         (gij_LDADD): Removed gij.lo.
2756         (gij_DEPENDENCIES): Likewise.
2757         ($(gij_OBJECTS)): Depend on nat_headers.
2759         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
2760         `setURL', not `url.set'.
2762 2000-04-20  Tom Tromey  <tromey@cygnus.com>
2764         Fix for PR java.io/204:
2765         * java/io/PipedInputStream.java, java/io/PipedReader.java,
2766         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
2767         from Classpath.
2769         Fix for PR libgcj/212:
2770         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
2771         * include/jvm.h (_Jv_word, _Jv_word2): Define.
2772         * java/lang/Class.h (_Jv_word): Declare.
2774         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
2776 2000-04-19  Tom Tromey  <tromey@cygnus.com>
2778         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
2779         doesn't have a loader.
2781 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
2783         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
2784         MAYBE_MARK to ptr_t, for compatibility with new GC version.
2786 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
2788         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
2789         libgcj/202.
2790         (available): Initialize `where' to prevent bogus compiler warning.
2792 2000-04-12  Tom Tromey  <tromey@cygnus.com>
2794         * java/lang/natString.cc (intern): Temporarily disable finalizer
2795         registration.
2797         * java/lang/natString.cc (unintern): Added `obj' argument.
2798         (intern): Register finalizer for string.
2799         * java/lang/String.java (unintern): Now static; added obj
2800         argument.
2802 2000-04-11  Tom Tromey  <tromey@cygnus.com>
2804         * java/util/Vector.java (VectorEnumeration): Now `final'.
2805         * java/util/Hashtable.java (HashtableEntry): Now `final'.
2806         (HashtableEnumeration): Likewise.
2807         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
2808         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
2810 2000-04-10  Warren Levy  <warrenl@cygnus.com>
2812         * java/io/ObjectStreamException.java: New file.
2813         * java/io/OptionalDataException.java: New file.
2814         * java/io/StreamCorruptedException.java: New file.
2815         * java/math/BigDecimal.java: New file.
2816         * java/sql/CallableStatement.java: New file.
2817         * java/sql/Connection.java: New file.
2818         * java/sql/DataTruncation.java: New file.
2819         * java/sql/DatabaseMetaData.java: New file.
2820         * java/sql/Date.java: New file.
2821         * java/sql/Driver.java: New file.
2822         * java/sql/DriverManager.java: New file.
2823         * java/sql/DriverPropertyInfo.java: New file.
2824         * java/sql/PreparedStatement.java: New file.
2825         * java/sql/ResultSet.java: New file.
2826         * java/sql/ResultSetMetaData.java: New file.
2827         * java/sql/SQLException.java: New file.
2828         * java/sql/SQLWarning.java: New file.
2829         * java/sql/Statement.java: New file.
2830         * java/sql/Time.java: New file.
2831         * java/sql/Timestamp.java: New file.
2832         * java/sql/Types.java: New file.
2833         * Makefile.am: Added above new files.
2834         * Makefile.in: Rebuilt.
2836         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
2837         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
2838         DatagramSocket constructor instead of null.
2840 2000-04-08  Anthony Green  <green@cygnus.com>
2842         * include/posix-threads.h (_Jv_MutexUnlock): Replace
2843         _JV_NOT_OWNER.
2844         
2845 2000-04-08  Anthony Green  <green@cygnus.com>
2847         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
2848         (_Jv_MutexUnlock): Ditto.
2849         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
2850         (_Jv_MutexUnlock): Ditto.
2852 2000-04-08  Anthony Green  <green@cygnus.com>
2854         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
2855         (ensureCapacity_unsynchronized): New private method.
2856         (append): Use ensureCapacity_unsynchronized.
2858 2000-04-08  Tom Tromey  <tromey@cygnus.com>
2860         * Makefile.in: Rebuilt.
2861         * Makefile.am (awt_java_source_files): Added new files.
2862         * java/awt/IllegalComponentStateException.java: New file.
2863         * java/awt/ItemSelectable.java: New file.
2864         * java/awt/event/WindowEvent.java: Finished.
2865         * java/awt/event/TextEvent.java: Finished.
2866         * java/awt/event/ContainerEvent.java: New file.
2867         * java/awt/Component.java (getX, getY): New methods.
2868         * java/awt/event/PaintEvent.java: New file.
2869         * java/awt/event/MouseEvent.java: New file.
2870         * java/awt/ActiveEvent.java: New file.
2871         * java/awt/event/KeyEvent.java: Finished.
2872         * java/awt/event/ItemEvent.java: New file.
2873         * java/awt/Adjustable.java: New file.
2874         * java/awt/event/InputMethodEvent.java: New file.
2875         * java/awt/event/InputEvent.java: Finished.
2876         * java/awt/event/FocusEvent.java: New file.
2877         * java/awt/event/MouseMotionAdapter.java: New file.
2878         * java/awt/event/MouseAdapter.java: New file.
2879         * java/awt/event/KeyAdapter.java: New file.
2880         * java/awt/event/FocusAdapter.java: New file.
2881         * java/awt/event/ContainerAdapter.java: New file.
2882         * java/awt/event/ComponentEvent.java: Finished.
2883         * java/awt/event/AdjustmentEvent.java: New file.
2884         * java/awt/event/ComponentAdapter.java: New file.
2885         * java/awt/event/ActionEvent.java: Finished.
2886         * java/awt/event/MouseMotionListener.java: New file.
2887         * java/awt/event/MouseListener.java: New file.
2888         * java/awt/event/ItemListener.java: New file.
2889         * java/awt/event/InputMethodListener.java: New file.
2890         * java/awt/event/ContainerListener.java: New file.
2891         * java/awt/event/FocusListener.java: New file.
2892         * java/awt/event/ComponentListener.java: New file.
2893         * java/awt/event/AWTEventListener.java: New file.
2894         * java/awt/event/AdjustmentListener.java: New file.
2896 2000-04-08  Anthony Green  <green@cygnus.com>
2898         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
2899         check when we have to.
2901         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
2902         x) as `inline'.
2904         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
2905         one method call.
2907         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
2908         inline hasMoreElements.
2910 2000-04-05  Tom Tromey  <tromey@cygnus.com>
2912         * configure: Rebuilt.
2913         * configure.in: Recognize --enable-java-awt.
2914         (AWT): New conditional.
2915         * Makefile.in: Rebuilt.
2916         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
2917         requested.
2918         (libgcjawt_la_SOURCES): New macro.
2919         (EXTRA_libgcjawt_la_SOURCES): Likewise.
2920         (libgcjawt_la_DEPENDENCIES): Likewise.
2921         (libgcjawt_la_LIBADD): Likewise.
2922         (libgcjawt_la_LDFLAGS): Likewise.
2923         (libgcj.zip): Depend on cond_java_awt_source_files
2924         (cond_awt_java_source_files): New macro.
2925         (MOSTLYCLEANFILES): Added awto_files.
2926         (awto_files): New macro.  Use where javao_files used.
2927         (nat_headers): Use cond_awt_java_source_files.
2929 2000-04-04  Tom Tromey  <tromey@cygnus.com>
2931         * Makefile.in: Rebuilt.
2932         * Makefile.am (awt_java_source_files): Added AWTException.java.
2933         * java/awt/AWTException.java: New file.
2935 2000-04-03  Tom Tromey  <tromey@cygnus.com>
2937         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
2938         commentary from Alex.
2940         * Makefile.in: Rebuilt.
2941         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
2942         From H.J. Lu.
2944 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
2946         * configure: Rebuilt.
2947         * configure.in: Add --disable-jvmpi.
2948         * include/config.h.in: Rebuilt.
2949         * acconfig.h: Add ENABLE_JVMPI.
2950          
2951         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
2952         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
2953         (_Jv_JVMPI_Notify_THREAD_END): New define.
2954         (_Jv_JVMPI_Notify_THREAD_END): New define.
2955         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
2956         (_Jv_JVMPI_Notify_THREAD_END): Declare.
2957         (_Jv_JVMPI_Notify_THREAD_END): Declare.
2959         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
2960         events.
2962         * java/lang/natThread.cc: Include JVMPI headers if necessary.
2963         (finish_): Generate JVMPI thread end events.
2964         (run_): Generate JVMPI thread start events.
2965         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
2966         preloaded JNI library.
2967         Include JVMPI headers if necessary.
2968         (run): Generate JVMPI thread start events.
2970         * boehm.cc: Define GC_disable and GC_enable.
2971         (_Jv_DisableGC): New function.
2972         (_Jv_EnableGC): New function.
2973         (disable_gc_mutex): Declare.
2974         * nogc.cc (_Jv_DisableGC): New function.
2975         (_Jv_EnableGC): New function.
2976           
2977         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
2978         (_Jv_JVMPI_Interface): Define.
2979         (jvmpiEnableEvent): New function.
2980         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
2981           
2982         * include/jvmpi.h: New file.
2984 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
2986         * Makefile.in: New #defines and friends for Thread.h.
2987         * Makefile.am: Ditto.
2988         * posix-threads.cc: (struct starter): Remove `object'.
2989         (_Jv_CondWait): Use interruptable condition variables and new
2990         recursive mutexes. New return codes on interrupt or non-ownership
2991         of mutex.
2992         (_Jv_CondNotify): Ditto.
2993         (_Jv_CondNotifyAll): Ditto.
2994         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
2995         the target thread by signaling its wait condition.
2996         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
2997         not the starter struct. Initialize wait_mutex and wait_cond.
2998         (_Jv_MutexLock): New recursive mutex implementation. Moved from 
2999         posix-threads.h.
3000         (_Jv_MutexUnlock): Ditto.
3001         (really_start): Set info->data->thread from pthread_self() to work 
3002         around a race condition. Destroy wait_mutex and wait_cond when run()
3003         returns.
3004         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
3005         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
3006         set.
3007         startable_flag: New private field.
3008         (Thread): Initialize `startable_flag'.
3009         (toString): Check for null thread group.
3010         * java/lang/natThread.cc: (struct natThread): New fields 
3011         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
3012         (class locker): Removed.
3013         (initialize_native): Initialize `join_cond' and `join_mutex'.
3014         (interrupt): Now just calls _Jv_ThreadInterrupt().
3015         (join): Simplified. Just wait on the target thread's join condition.
3016         (finish_): Remove join list code. Unset thread group. Signal
3017         potential joiners by notifying the dying threads join_cond.
3018         (start): Check for illegal restarts.
3019         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
3020         act appropriatly.
3021         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
3022         #defines and #ifdefs.
3023         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
3024         `wait_mutex', `next'.
3025         (struct _Jv_ConditionVariable_t): Define as a struct instead of 
3026         directly mapping to pthread_cond_t.
3027         (struct _Jv_Mutex_t): New recursive implementation.
3028         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
3029         _Jv_HaveCondDestroy: Never define this for posix-threads.
3030         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
3031         (_Jv_CondNotifyAll): Ditto.
3032         (_Jv_MutexLock): Ditto.
3033         (_Jv_MutexUnlock): Ditto.
3034         (_Jv_MutexInit): Changed to reflect new mutex implementation.
3035         (_Jv_MutexDestroy): Ditto.
3036         (_Jv_CondDestroy): Removed.
3037         (_Jv_PthreadGetMutex): Removed.
3038         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an 
3039         error. Add a FIXME about this.
3040         (_Jv_CondNotifyAll): Ditto.
3041         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess 
3042         _JV_NOT_OWNER on other errors. Add FIXME.
3044 2000-03-26  Tom Tromey  <tromey@cygnus.com>
3046         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
3047         set, throw it.
3048         (call): Don't throw exception here.
3050 2000-03-26  Tom Tromey  <tromey@cygnus.com>
3052         * java/lang/mprec.h: Use SIZEOF_VOID_P.
3053         * interpret.cc: Use SIZEOF_VOID_P.
3054         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
3055         (_Jv_loadLong): Likewise.
3056         (_Jv_storeDouble): Likewise.
3057         * configure: Rebuilt.
3058         * configure.in: Check size of void*.
3060         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
3062 2000-03-26  Hans Boehm  <boehm@acm.org>
3064         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
3065         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
3066         machine.
3067         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
3068         __IEEE_LITTLE_ENDIAN appropriately on IA64.
3069         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
3070         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
3071         case.
3072         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
3073         (FFI_RAW_SIZE): Likewise.
3074         (_Jv_InterpMethod::ncode): Use them.
3075         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
3076         STORED): Define differently on a 64 bit machine.
3077         (continue1): Use ffi_java_raw_call when appropriate.
3079 2000-03-24  Warren Levy  <warrenl@cygnus.com>
3081         * java/math/BigInteger.java(divide): Handle the special case when
3082         dividing by 1 and the high bit of the dividend is set.
3083         (setShiftRight): Handle case when count == 0.
3085 2000-03-24  Warren Levy  <warrenl@cygnus.com>
3087         * java/awt/Font.java(isBold): Fix syntax error.
3088         (isItalic): ditto.
3089         * java/awt/Frame.java(postEvent): ditto.
3090         * java/awt/Menu.java(postEvent): ditto.
3091         * java/awt/MenuBar.java(postEvent): ditto.
3092         * java/awt/Toolkit.java(init): Included a stub.
3094 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
3096         * java/awt/Event.java: Add all the event type constants.
3097         (Event): Implemented constructors.
3098         (controlDown): Implemented.
3099         (metaDown): Implemented.
3100         (paramString): Stubbed.
3101         (shiftDown): Implemented.
3102         (toString): Implemented.
3103         (translate): Implemented.
3105 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
3107         * java/lang/natClass.cc (isInstance): Initialize `this'.
3108         (isAssignableFrom): Initialize `this' and `klass'.
3109         (_Jv_IsAssignableFrom): If an interface has no idt, it is not 
3110         implemented by any loaded class, so return false.
3111         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), 
3112         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
3114 2000-03-19  Warren Levy  <warrenl@cygnus.com>
3116         * java/awt/Color.java: Specified java.io for Serializable.
3117         * java/awt/Toolkit.java: Imported java.net.URL.
3119 2000-03-19  Warren Levy  <warrenl@cygnus.com>
3121         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
3123 2000-03-16  Warren Levy  <warrenl@cygnus.com>
3125         * java/awt/Color.java: New file.
3126         * java/awt/Graphics.java: New file.
3127         * java/awt/Image.java: New file.
3128         * java/awt/Paint.java: New file.
3129         * java/awt/PaintContext.java: New file.
3130         * java/awt/Transparency.java: New file.
3131         * java/util/Collection.java: New file.
3132         * java/util/Comparator.java: New file.
3133         * java/util/Iterator.java: New file.
3134         * java/util/List.java: New file.
3135         * java/util/ListIterator.java: New file.
3136         * Makefile.am: Added above new files.
3137         * Makefile.in: Rebuilt.
3139         * java/awt/Font.java (PLAIN): New field.
3140         (BOLD): New field.
3141         (ITALIC): New field.
3142         (ROMAN_BASELINE): New field.
3143         (CENTER_BASELINE): New field.
3144         (HANGING_BASELINE): New field.
3145         (name): New field.
3146         (style): New field.
3147         (size): New field.
3148         (pointSize): New field.
3149         (Font): Implemented constructor.
3150         (isPlain): Implemented method.
3151         (isBold): Implemented method.
3152         (isItalic): Implemented method.
3153         (getName): Implemented method.
3154         (getStyle): Implemented method.
3155         (getSize): Implemented method.
3156         (getSize2D): Implemented method.
3157         (decode): Stubbed.
3158         * java/awt/Frame.java (getFont): Stubbed.
3159         (postEvent): Stubbed.
3160         (remove): Stubbed.
3161         * java/awt/Menu.java (postEvent): Stubbed.
3162         * java/awt/MenuBar.java (getFont): Stubbed.
3163         (postEvent): Stubbed.
3164         * java/awt/Toolkit.java (getImage): Added abstract method.
3166 2000-03-15  Tom Tromey  <tromey@cygnus.com>
3168         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
3170         * prims.cc (win32_exception_handler): Reformatted.
3172         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
3173         (_Jv_HaveMutexDestroy): Likewise.
3175 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
3177         * java/io/natFileDescriptorWin32.cc: New file.
3178         * java/io/natFileWin32.cc: New file.
3179         * java/net/natInetAddress.cc: Added conditional inclusion of
3180         Windows / Winsock headers.
3181         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
3182         inclusion of Windows / Winsock headers.
3183         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
3184         Windows / Winsock headers.
3185         * include/win32-signal.h: New file.
3186         * include/win32-threads.h: New file.
3187         * win32-threads.cc: New file.
3188         * exception.cc (win32_get_restart_frame): New function.
3189         * prims.cc (win32_exception_handler): New function.
3190         (main_init) Performs Winsock initialisation.
3191         (main_init) Installs exeception handler.
3193 2000-03-14  Tom Tromey  <tromey@cygnus.com>
3195         * jni.cc (mangled_name): Fixed assertion.
3196         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
3197         turned assert into actual failure.
3199 2000-03-09  Warren Levy  <warrenl@cygnus.com>
3201         * java/security/Key.java(serialVersionUID): Set to 0 for now.
3202         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
3203         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
3205 2000-03-09  Warren Levy  <warrenl@cygnus.com>
3207         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
3208         * java/security/DigestException.java: New file.
3209         * java/security/GeneralSecurityException.java: New file.
3210         * java/security/InvalidAlgorithmParameterException.java: New file.
3211         * java/security/InvalidKeyException.java: New file.
3212         * java/security/InvalidParameterException.java: New file.
3213         * java/security/Key.java: New file.
3214         * java/security/KeyException.java: New file.
3215         * java/security/KeyPair.java: New file.
3216         * java/security/KeyPairGenerator.java: New file.
3217         * java/security/KeyPairGeneratorSpi.java: New file.
3218         * java/security/NoSuchProviderException.java: New file.
3219         * java/security/PrivateKey.java: New file.
3220         * java/security/Provider.java: New file.
3221         * java/security/PublicKey.java: New file.
3222         * java/security/SecureRandom.java: New file.
3223         * java/security/Security.java: New file.
3224         * java/security/Signature.java: New file.
3225         * java/security/SignatureException.java: New file.
3226         * java/security/interfaces/DSAKey.java: New file.
3227         * java/security/interfaces/DSAParams.java: New file.
3228         * java/security/interfaces/DSAPrivateKey.java: New file.
3229         * java/security/interfaces/DSAPublicKey.java: New file.
3230         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
3231         * java/security/interfaces/RSAPrivateKey.java: New file.
3232         * java/security/interfaces/RSAPublicKey.java: New file.
3233         * java/security/spec/AlgorithmParameterSpec.java: New file.
3234         * java/security/spec/InvalidKeySpecException.java: New file.
3235         * java/security/spec/InvalidParameterSpecException.java: New file.
3236         * java/security/spec/KeySpec.java: New file.
3237         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
3238         * java/security/spec/RSAPrivateKeySpec.java: New file.
3239         * java/security/spec/RSAPublicKeySpec.java: New file.
3240         * Makefile.am: Added above java.security files.
3241         * Makefile.in: Rebuilt.
3243         * java/security/MessageDigest.java: Rewritten.
3244         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
3246 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
3248         * README: Updated.
3250 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
3252         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
3253         _Jv_PrepareConstantTimeTables.
3254         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
3255         classes should have an IDT, so don't return if klass is an array
3256         class.
3258 2000-03-08  Tom Tromey  <tromey@cygnus.com>
3260         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
3261         of `void' to be created.
3263 2000-03-08  Warren Levy  <warrenl@cygnus.com>
3265         * java/math/BigInteger.java(signum): Handle zero properly.
3267 2000-03-07  Tom Tromey  <tromey@cygnus.com>
3269         * All files: Updated copyright information.
3270         * COPYING: New file.
3271         * COPYING.LIB: Removed.
3272         * LIBGCJ_LICENSE: We now use GPL + special exception.
3274 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
3276         * resolve.cc (_Jv_SearchMethodInClass): New function.
3277         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
3278         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
3280 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
3282         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
3283         (struct _Jv_ifaces): New declaration.
3284         JV_CLASS: New macro definition.
3285         (getComponentType): Relocate below isArray() for inlining.
3286         (getModifiers): Declare `inline'.
3287         (getSuperclass): Ditto.
3288         (isArray): Ditto.
3289         (isPrimitive): Ditto.
3290         (_Jv_IsAssignableFrom): New prototype.
3291         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
3292         linkage.
3293         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
3294         Check for JV_STATE_DONE before invoking initializeClass().
3295         (_Jv_PrepareConstantTimeTables): New prototype.
3296         (_Jv_GetInterfaces): Ditto.
3297         (_Jv_GenerateITable): Ditto.
3298         (_Jv_GetMethodString): Ditto.
3299         (_Jv_AppendPartialITable): Ditto.
3300         (_Jv_FindIIndex): Ditto.
3301         depth, ancestors, idt: New class fields.
3303         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
3304         inline function `_Jv_IsAssignableFrom'. Use that function.
3305         (isInstance): Declare `inline'.
3306         (initializeClass): Get lock on class before checking `state'. Unlock 
3307         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with 
3308         the lock held.
3309         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
3310         (_Jv_IsAssignableFrom): New inline function. Test assignability using 
3311         class->depth and ancestor table.
3312         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
3313         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
3314         _Jv_IsAssignableFrom.
3315         (_Jv_CheckArrayStore): Ditto.
3316         (_Jv_LookupInterfaceMethodIdx): New function. 
3317         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
3318         (_Jv_PrepareConstantTimeTables): New function.
3319         (_Jv_IndexOf): Ditto.
3320         (_Jv_GetInterfaces): Ditto.
3321         (_Jv_GenerateITable): Ditto.
3322         (_Jv_GetMethodString): Ditto.
3323         (_Jv_AppendPartialITable): Ditto.
3324         iindex_mutex, iindex_mutex_initialized: New static fields.
3325         (_Jv_FindIIndex): New function.
3327         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
3329         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
3330         (_Jv_CheckArrayStore): Ditto.
3331         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
3332         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
3333         Moved to gcj/array.h.
3334         (_Jv_Realloc): New function.
3336         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
3338         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
3339         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
3340         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
3341         JvNewDoubleArray): Implementations moved from prims.cc and
3342         declared `inline'.
3344         * gcj/javaprims.h (_Jv_Realloc): Prototype.
3346         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
3348 2000-03-06  Tom Tromey  <tromey@cygnus.com>
3350         * jni.cc (MARK_NONE): New define.
3351         (MARK_USER): Likewise.
3352         (MARK_SYSTEM): Likewise.
3353         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
3354         smaller.
3355         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
3356         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
3357         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
3358         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
3359         argument.
3360         (call): Use MARK_SYSTEM.
3361         (_Jv_GetJNIEnvNewFrame): New function.
3362         (_Jv_LookupJNIMethod): New function.
3363         (_Jv_JNI_PopSystemFrame): New function.
3364         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
3366 2000-03-05  Tom Tromey  <tromey@cygnus.com>
3368         Fix for PR libgcj/43:
3369         * include/Makefile.in: Rebuilt.
3370         * include/Makefile.am (include_HEADERS): New define.
3372 2000-03-05  Anthony Green  <green@redhat.com>
3374         * gcj/javaprims.h ("Java"): Remove FirstThread.
3376         * configure.host: Fix __NO_MATH_INLNES botch.
3378         * Makefile.in: Rebuilt.
3379         * Makefile.am (nat_source_files): Move natFirstThread.cc.
3380         (gnu/gcj/runtime/FirstThread.h): Moved.
3381         (ordinary_java_source_files): Move FirstThread.java.
3382         * prims.cc: Deal with FirstThread movement.
3383         (JvRunMain): Ditto.
3384         (_Jv_RunMain): Ditto.
3386         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
3387         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
3389 2000-03-05  Warren Levy  <warrenl@cygnus.com>
3391         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
3392           Handle null addresses.
3394 2000-03-04  Anthony Green  <green@redhat.com>
3396         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
3397         See PR gcj/151.
3399 2000-03-04  Anthony Green  <green@redhat.com>
3401         * configure: Rebuilt.
3402         * configure.in (ZLIBTESTSPEC): New macro.
3403         (GCTESTSPEC): New macro.
3404         (LIBGCJTESTSPEC): New macro.
3405         * libgcj-test.spec.in: New file.
3407 2000-03-02  Tom Tromey  <tromey@cygnus.com>
3409         * include/java-interp.h: Don't include MethodInvocation.h.
3410         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
3411         * Makefile.in: Rebuilt.
3412         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
3413         (ordinary_java_source_files): Don't mention
3414         MethodInvocation.java.
3415         * gnu/gcj/runtime/MethodInvocation.java: Removed.
3416         * interpret.cc (MethodInvocation::continue1): Removed.
3417         (run): Handle exceptions here.
3418         * java/lang/ClassLoader.java (defineClass1, defineClass2):
3419         Removed.
3420         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
3421         here.
3422         (defineClass2): Removed.
3424         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
3425         Removed.
3426         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
3427         exceptions here.
3428         (hack_call): Removed.
3430         * java/lang/Class.h (Class): Removed hackRunInitializers,
3431         hackTrampoline.
3432         * java/lang/natClass.cc (hackRunInitializers): Removed.
3433         (initializeClass): Catch exceptions here.
3434         Include ExceptionInInitializerError.h.
3435         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
3436         Removed.
3438         * java/lang/Object.h (Object): Don't mention hack12_6.
3439         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
3440         here.
3441         * java/lang/Object.java (hack12_6): Removed.
3443         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
3444         (start): Use run_, not run__.
3445         * java/lang/Thread.java (run_): Renamed from run__; old run_
3446         removed.
3448         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
3449         (_Jv_JNI_EnsureLocalCapacity): Likewise.
3450         (_Jv_JNI_DefineClass): Likewise.
3451         (_Jv_JNI_ThrowNew): Likewise.
3452         (_Jv_JNI_AllocObject): Likewise.
3453         (_Jv_JNI_GetAnyMethodID): Likewise.
3454         (_Jv_JNI_CallAnyMethodV): Likewise.
3455         (_Jv_JNI_CallAnyMethodA): Likewise.
3456         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
3457         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
3458         (_Jv_JNI_GetAnyFieldID): Likewise.
3459         (_Jv_JNI_NewString): Likewise.
3460         (_Jv_JNI_NewStringUTF): Likewise.
3461         (_Jv_JNI_GetStringUTFChars): Likewise.
3462         (_Jv_JNI_NewObjectArray): Likewise.
3463         (_Jv_JNI_NewPrimitiveArray): Likewise.
3464         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
3465         (_Jv_JNI_GetStringRegion): Likewise.
3466         (_Jv_JNI_GetStringUTFRegion): Likewise.
3467         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
3468         (_Jv_JNI_MonitorEnter): Likewise.
3469         (_Jv_JNI_MonitorExit): Likewise.
3470         (_Jv_JNI_ToReflectedField): Likewise.
3471         (_Jv_JNI_ToReflectedMethod): Likewise.
3472         (_Jv_JNI_RegisterNatives): Likewise.
3473         (_Jv_JNI_AttachCurrentThread): Likewise.
3474         (_Jv_JNI_DestroyJavaVM): Likewise.
3476 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
3478         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
3479         error caused by the incorrect casting of a long to an int.
3481 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
3483         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
3484         SIGSEV caused by use of the wrong instance variable.
3486 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
3488         * java/io/File.java (File(String, String)): For dirPath, treat an
3489         empty String the same as `null'.
3491 2000-02-26  Anthony Green  <green@cygnus.com>
3493         * gnu/gcj/io/MimeTypes.java: Test for null.
3495         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
3496         (JNI_GetCreatedJavaVMs): Remove compiler warning.
3498         * java/net/URLConnection.java: Update copyright notice.
3500 2000-02-25  Tom Tromey  <tromey@cygnus.com>
3502         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
3503         `INTERPRETER'.
3505 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
3507         * java/net/URLConnection.java (initializeDateFormats): New
3508         private method.
3509         (getHeaderFieldDate): Call initializeDateFormats if required.
3510         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
3511         these.
3512         Fix for PR libgcj/38.
3514 2000-02-24  Warren Levy  <warrenl@cygnus.com>
3516         * java/math/BigInteger.java(ival): Made private.
3517         (words): Ditto.
3518         (neg): Ditto.
3520 2000-02-20  Anthony Green  <green@cygnus.com>
3522         * Makefile.in: Rebuilt.
3523         * Makefile.am (ordinary_java_source_files): Add
3524         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
3526         * scripts/MakeDefaultMimeTypes.java: New file.
3527         * scripts/mime.types: New file.
3528         * scripts/classes.pl: Moved from top level.
3529         * classes.pl: Moved to scripts directory.
3531         * java/net/URLConnection.java: Implement guessContentTypeFromName.
3533         * gnu/gcj/io/MimeTypes.java: New file.
3534         * gnu/gcj/io/DefaultMimeTypes.java: New file.
3536 2000-02-20  Tom Tromey  <tromey@cygnus.com>
3538         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
3540 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
3542         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
3543         (setSize): ditto.
3545 2000-02-18  Tom Tromey  <tromey@cygnus.com>
3547         * include/jvm.h (_Jv_GetJavaVM): Declare.
3548         * include/java-interp.h (_Jv_GetFirstMethod): New function.
3549         (_Jv_MethodBase::get_method): New method.
3550         (_Jv_JNIMethod::set_function): New method.
3551         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
3552         (_Jv_JNI_RegisterNatives): New function.
3553         (_Jv_JNIFunctions): Updated for new functions.
3554         (_Jv_GetJavaVM): New function.
3555         (_Jv_JNI_GetJavaVM): Use it.  Now static.
3556         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
3557         is already a Java thread but does not have a JNIEnv yet.
3559         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
3560         function.
3562 2000-02-17  Tom Tromey  <tromey@cygnus.com>
3564         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
3565         Fixes PR gcj/152.
3567 2000-02-16  Tom Tromey  <tromey@cygnus.com>
3569         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
3571         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
3572         (_Jv_JNI_NewObject): Likewise.
3573         (_Jv_JNI_NewObjectA): Likewise.
3574         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
3575         as "return" type to _Jv_CallAnyMethodA.
3576         (_Jv_JNI_CallAnyMethodA): Likewise.
3577         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
3579         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
3580         findClass.
3582 2000-02-15  Tom Tromey  <tromey@cygnus.com>
3584         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
3585         jni_arg_types.
3586         (init_cif): Added `rtype_p' argument.
3587         * include/java-interp.h (class _Jv_MethodBase): Added
3588         args_raw_size.
3589         (class _Jv_InterpMethod): Removed args_raw_size.
3590         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
3591         * jni.cc (call): Pass JNIEnv and (for static methods only) the
3592         class pointer as well as the ordinary arguments.
3594         * jni.cc (mangled_name): Skip leading `(' in signature.
3596         * jni.cc (add_char): Added missing `else'.
3598         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
3599         fails.
3601 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
3603         * NEWS: Updated.
3605         * java/lang/natRuntime.cc (_load): Include library path with
3606         exception message.
3608         * java/lang/natSystem.cc (init_properties): set java.lang.classpath 
3609         property.
3611         * java/lang/natThread.cc (dumpStack): Removed.
3612         * java/lang/Thread.java (dumpStack): Implemented.
3614 2000-02-15  Tom Tromey  <tromey@cygnus.com>
3616         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
3617         with `lib' for loadLibrary.  Fixes PR gcj/150.
3619 2000-02-14  Warren Levy  <warrenl@cygnus.com>
3621         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
3623         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
3624           New constructor.
3625         (min): Implemented.
3626         (max): Implemented.
3627         (modPow): Rewritten to not use the naive, slow, brute force approach.
3628         (isProbablePrime): Implemented.
3629         (testBit): Implemented.
3630         (flipBit): Implemented.
3631         (getLowestSetBit): Implemented.
3633 2000-02-16  Anthony Green  <green@redhat.com>
3635         * configure.host: Use the same options for i386 and i486 as we do
3636         for i586 and i686.
3638 2000-02-12  Tom Tromey  <tromey@cygnus.com>
3640         * java/io/File.java (createTempFile): Use low bits from counter,
3641         not high bits.
3643 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
3645         * THANKS: More thanks.
3647 2000-02-11  Tom Tromey  <tromey@cygnus.com>
3649         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
3650         astore instruction.  From Hans Boehm.
3652 2000-02-11  Warren Levy  <warrenl@cygnus.com>
3654         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
3655         (BigInteger(String)): New constructor.
3656         (not): Rewritten using version from Kawa's BitOps class.
3657         (valueOf): New private methods from Kawa's BitOps class.
3658         (swappedOp): ditto.
3659         (bitOp): ditto.
3660         (setBitOp): ditto.
3661         (and): Implemented.
3662         (or): Implemented.
3663         (xor): Implemented.
3664         (andNot): Implemented.
3665         (clearBit): Implemented.
3666         (setBit): Implemented.
3667         (bitCount): Implemented.
3668         (toByteArray): Implemented.
3670 2000-02-11  Tom Tromey  <tromey@cygnus.com>
3672         * java/io/File.java (nextValue): Now synchronized.
3674 2000-02-10  Tom Tromey  <tromey@cygnus.com>
3676         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
3677         * java/io/FileDescriptor.java (EXCL): New static field.
3678         * java/io/File.java (tmpdir): New static field.
3679         (createTempFile): New method.
3680         (nextValue): New method.
3681         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
3682         property.
3684         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
3685         (jboolean): Declare as an attributed int, not a bool.
3686         (_Jv_func): Declare differently for C.
3688         * gnu/gcj/jni/natNativeThread.cc: New file.
3689         * gnu/gcj/jni/NativeThread.java: New file.
3690         * java/lang/Thread.java (data): Now a RawData.
3691         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
3692         Declare.
3693         * Makefile.in: Rebuilt.
3694         * Makefile.am (java/lang/Thread.h): New target.
3695         (ordinary_java_source_files): Added NativeThread.java.
3696         (nat_source_files): Added natNativeThread.cc.
3697         * java/lang/natThread.cc: Include <jni.h>
3698         (struct natThread): Added `jni_env' field.
3699         (_Jv_GetCurrentJNIEnv): New function.
3700         (_Jv_SetCurrentJNIEnv): Likewise.
3701         (initialize_native): Initialize jni_env.
3702         Include RawData.h.
3703         * jni.cc (ThreadGroupClass): New define.
3704         (_Jv_JNI_InvokeFunctions): New structure.
3705         (JNI_GetCreatedJavaVMs): New function.
3706         (the_vm): New global.
3707         (JNI_GetDefaultJavaVMInitArgs): New function.
3708         Include NativeThread.h.
3709         (NativeThreadClass): New define.
3710         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
3711         (_Jv_JNI_DestroyJavaVM): New function.
3712         (_Jv_JNI_AttachCurrentThread): New function.
3713         (_Jv_JNI_DetachCurrentThread): New function.
3714         (_Jv_JNI_GetEnv): New function.
3715         (JNI_CreateJavaVM): New function.
3716         (_Jv_JNI_GetJavaVM): New function.
3717         (_Jv_JNIFunctions): Added entry for GetJavaVM.
3718         * include/jni.h (JavaVMAttachArgs): New structure.
3719         (JNI_EDETACHED): New define.
3720         (JNI_EVERSION): Likewise.
3721         (JavaVM): Define properly.
3722         (struct JNIInvokeInterface): New structure.
3723         (class _Jv_JavaVM): New class.
3724         (JNI_OnLoad, JNI_OnUnload): Declare.
3725         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
3726         JNI_GetCreatedJavaVMs): Declare.
3727         (JavaVMInitArgs): New typedef.
3728         (JavaVMOption): Likewise.
3729         (JNI_ERR): New define.
3730         (JNI_OK): Likewise.
3732 2000-02-10  Andrew Haley  <aph@cygnus.com>
3734         * interpret.cc: Don't include fdlibm.h.
3735         Replace #if with #ifdef throughout.
3736         Declare extern __ieee754_fmod.
3737         (continue1): Remove op_getfield, op_getstatic, op_putfield,
3738         op_putstatic insns.
3739         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
3740         Search class hierarchy for superclass vtable.
3742         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
3743         off the end of a pointer list.
3745         * java/lang/natThread.cc (stop): Don't abort, throw an exception
3746         instead.
3747         (suspend): Ditto.
3748         
3749 2000-02-09  Tom Tromey  <tromey@cygnus.com>
3751         * java/lang/natRuntime.cc (_load): Call add_library.
3752         (loadLibraryInternal): Likewise.
3754         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
3755         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
3756         (Output_iconv::finalize): Likewise.
3758 2000-02-08  Tom Tromey  <tromey@cygnus.com>
3760         * java/util/Properties.java (setProperty): New method.
3761         (store): New method.
3763 2000-02-07  Tom Tromey  <tromey@cygnus.com>
3765         * java/lang/Runtime.java (_load): Declare.
3766         (load, loadLibrary): Wrote in terms of _load.
3767         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
3768         library.
3769         (loadLibrary): Likewise.
3770         Include <jni.h>.
3771         (_load): New method.
3772         (loadLibrary, load): Removed.
3774         * jni.cc (ThrowableClass): New define.
3775         (_Jv_JNI_Throw): Check argument.
3776         (_Jv_JNI_ThrowNew): Likewise.
3777         (wrap_value): Don't wrap object if it is NULL.
3778         (_Jv_JNI_DefineClass): Use wrap_value.
3779         (_Jv_JNI_FindClass): Likewise.
3780         (_Jv_JNI_GetSuperclass): Likewise.
3781         (_Jv_JNI_ExceptionOccurred): Likewise.
3782         (_Jv_JNI_AllocObject): Likewise.
3783         (_Jv_JNI_GetObjectClass): Likewise.
3784         (_Jv_JNI_NewString): Likewise.
3785         (_Jv_JNI_NewStringUTF): Likewise.
3786         (_Jv_JNI_NewObjectArray): Likewise.
3787         (_Jv_JNI_GetObjectArrayElement): Likewise.
3788         (_Jv_JNI_NewPrimitiveArray): Likewise.
3789         (_Jv_JNI_ToReflectedField): Likewise.
3790         (_Jv_JNI_ToReflectedMethod): Likewise.
3791         (_Jv_JNI_AllocObject): Check argument.
3792         (_Jv_JNI_NewObjectV): Likewise.
3793         (_Jv_JNI_NewObject): Likewise.
3794         (_Jv_JNI_NewObjectA): Likewise.
3795         (_Jv_JNI_GetObjectClass): Likewise.
3796         (_Jv_JNI_GetField): Likewise.
3797         (_Jv_JNI_SetField): Likewise.
3799         * interpret.cc (PUSHL): Don't use expression statement.
3800         (PUSHD): Likewise.
3801         (LOADL): Likewise.
3802         (STOREL): Likewise.
3804         * jni.cc (add_char): Conditional on INTERPRETER.
3805         (mangled_name): Likewise.
3806         (call): Likewise.
3807         * include/java-interp.h (class _Jv_MethodBase): Conditional on
3808         INTERPRETER.
3809         (class _Jv_JNIMethod): Likewise.
3811 2000-02-04  Warren Levy  <warrenl@cygnus.com>
3813         * Makefile.am: Added MPN.java and BigInteger.java.
3814         * Makefile.in: Rebuilt.
3815         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
3816         <per@bothner.com>.
3817         * java/math/BigInteger.java: New file.  Based primarily on
3818         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
3820 2000-02-04  Tom Tromey  <tromey@cygnus.com>
3822         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
3823         pointers.
3824         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
3825         if the method is native.
3826         * resolve.cc (ncode): Don't handle native methods.
3827         (_Jv_JNIMethod::ncode): New method.
3828         (_Jv_PrepareClass): Handle native methods.
3829         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
3830         Include AbstractMethodError.h.
3831         (add_char): New function.
3832         (mangled_name): Likewise.
3833         * include/java-interp.h (class _Jv_JNIMethod): New class.
3834         (class _Jv_MethodBase): New class.
3835         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
3836         (_Jv_InterpClass): Changed `interpreted_methods' field to type
3837         `_Jv_MethodBase'.
3839         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
3840         * java/lang/natRuntime.cc (libraries_size, libraries_count,
3841         libraries): New globals.
3842         (add_library): New function.
3843         (_Jv_FindSymbolInExecutable): New function.
3845         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
3846         Now static.
3848 2000-02-04  Andrew Haley  <aph@cygnus.com>
3850         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
3851         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
3852         * java/lang/natThrowable.cc (printRawStackTrace): Rename
3853         printStackTrace to printRawStackTrace.
3855 2000-02-03  Tom Tromey  <tromey@cygnus.com>
3857         * java/util/Calendar.java (toString): New method.
3858         * java/util/SimpleTimeZone.java (clone): New method.
3859         (toString): New method.
3860         * java/util/TimeZone.java (clone): New method.
3861         * java/text/SimpleDateFormat.java (clone): New method.
3862         * java/text/NumberFormat.java (clone): New method.
3863         (equals): New method.
3864         * java/text/Format.java (clone): New method.
3865         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
3866         constructor.
3867         (clone): New method.
3868         * java/text/DateFormat.java (clone): New method.
3869         * java/text/Collator.java (clone): New method.
3871 2000-02-03  Tom Tromey  <tromey@cygnus.com>
3873         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
3874         method.
3876 2000-02-01  Tom Tromey  <tromey@cygnus.com>
3878         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
3879         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
3880         constructing the closure if the function is native.
3881         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
3882         a template function, #if'd out, or static.
3883         Include <java-interp.h>.
3885         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
3887         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
3889         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
3890         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
3891         `locals == NULL'.
3892         (wrap_value): New function.
3893         (_Jv_JNI_CallAnyMethodV): Use it.
3894         (_Jv_JNI_CallAnyMethodA): Likewise.
3895         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
3896         (_Jv_JNI_GetStaticField): Likewise.
3898         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
3899         (_Jv_JNI_GetStaticField): Likewise.
3901 2000-01-31  Tom Tromey  <tromey@cygnus.com>
3903         * prims.cc (_Jv_MallocUnchecked): New function.
3904         (main_init): Call _Jv_JNI_Init.
3905         * include/jvm.h (_Jv_MallocUnchecked): Declare.
3906         (_Jv_JNI_Init): Declare.
3907         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
3908         <string.h>.
3909         (_Jv_JNI_NewGlobalRef): New function.
3910         (_Jv_JNI_DeleteGlobalRef): New function.
3911         (_Jv_JNI_DeleteLocalRef): New function.
3912         (_Jv_JNI_conversion_call): Initialize and clear local reference
3913         frame.
3914         (_Jv_JNI_NewLocalRef): New function.
3915         (struct _Jv_JNI_LocalFrame): New structure.
3916         (_Jv_JNI_PushLocalFrame): New function.
3917         (_Jv_JNI_EnsureLocalCapacity): New function.
3918         (FRAME_SIZE): New define.
3919         (_Jv_JNI_GetStringChars): Mark string, not characters.
3920         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
3921         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
3922         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
3923         elements.
3924         (_Jv_JNI_DefineClass): Make return value a local ref.
3925         (_Jv_JNI_FindClass): Likewise.
3926         (_Jv_JNI_GetSuperclass): Likewise.
3927         (_Jv_JNI_ExceptionOccurred): Likewise.
3928         (_Jv_JNI_AllocObject): Likewise.
3929         (_Jv_JNI_GetObjectClass): Likewise.
3930         (_Jv_JNI_CallAnyMethodV): Likewise.
3931         (_Jv_JNI_NewString): Likewise.
3932         (_Jv_JNI_NewStringUTF): Likewise.
3933         (_Jv_JNI_NewObjectArray): Likewise.
3934         (_Jv_JNI_GetObjectArrayElement): Likewise.
3935         (_Jv_JNI_ToReflectedField): Likewise.
3936         (_Jv_JNI_ToReflectedMethod): Likewise.
3937         (_Jv_JNIFunctions): Updated table for new functions.
3938         (_Jv_JNI_Init): New function.
3939         (mark_for_gc): Wrote.
3940         (unmark_for_gc): Wrote.
3941         * include/jni.h (struct JNINativeInterface): Removed name from
3942         PopLocalFrame parameter.
3943         (class _Jv_JNIEnv): Added `locals' field.
3945 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
3947         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
3948         (write): Ditto.
3950 2000-01-30  Tom Tromey  <tromey@cygnus.com>
3952         * include/config.h.in: Rebuilt.
3953         * acconfig.h (HAVE_ICONV): Define.
3954         * configure: Rebuilt.
3955         * configure.in: Check for `iconv' function.
3956         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
3957         no specific encoder exists.
3958         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
3959         no specific encoder exists.
3960         * Makefile.in: Rebuilt.
3961         * Makefile.am (convert_source_files): Mention Input_iconv.java and
3962         Output_iconv.java.
3963         (nat_source_files): Added natIconv.cc.
3964         * gnu/gcj/convert/natIconv.cc: New file.
3965         * gnu/gcj/convert/Input_iconv.java: New file.
3966         * gnu/gcj/convert/Output_iconv.java: New file.
3968 2000-01-28  Tom Tromey  <tromey@cygnus.com>
3970         * Makefile.in: Rebuilt.
3971         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
3973 2000-01-26  Tom Tromey  <tromey@cygnus.com>
3975         * gcj/method.h (JvNumMethods): Moved from Class.h.
3976         (JvGetFirstMethod): Likewise.
3977         * java/lang/Class.h (Object): Updated decl of
3978         _Jv_JNI_ToReflectedField.
3979         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
3980         * Makefile.in: Rebuilt.
3981         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
3982         argument of _Jv_JNI_ToReflectedField.
3983         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
3984         as a friend.
3985         (java/lang/reflect/Method.h): Likewise.
3986         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
3987         __GCJ_JNI_IMPL__.
3988         (jweak): New typedef.
3989         (struct JNINativeInterface): Correctly declare remaining entries.
3990         * jni.cc: Include Class.h, ClassLoader.h.
3991         (_Jv_JNI_FindClass): New function.
3992         (_Jv_JNI_DefineClass): New function.
3993         (_Jv_JNI_conversion_call): New function.
3994         (_Jv_JNI_FindClass): Use current class loader to find class.
3995         (_Jv_JNI_ExceptionCheck): New function.
3996         (_Jv_JNI_FromReflectedField): Now static.
3997         (MethodClass): New define.
3998         (_Jv_JNI_FromReflectedMethod): New function.
3999         (_Jv_JNI_ToReflectedMethod): Likewise.
4000         Include Method.h.
4001         (_Jv_JNI_IsAssignableFrom): Renamed.
4002         (_Jv_JNI_GetStringRegion): New function.
4003         Include StringIndexOutOfBoundsException.h.
4004         (_Jv_JNI_GetStringUTFRegion): New function.
4005         (_Jv_JNIFunctions): Updated for new functions.
4006         (_Jv_JNI_GetPrimitiveArrayCritical): New function
4007         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
4008         (_Jv_JNI_GetStringCritical): New function.
4009         (_Jv_JNI_ReleaseStringCritical): Likewise.
4010         (get_throwable): Removed.
4011         (GCJ_JV_JNIENV_FRIEND): Removed.
4012         (__GCJ_JNI_IMPL__): Define.
4013         Include method.h.
4015         * resolve.cc (get_ffi_type_from_signature): Handle case where
4016         boolean is an int.
4018 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
4020         * interpret.cc (run): Don't call println.
4021         Don't include PrintStream.h.
4023         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
4024         nameIndex.  Use "jint" as type for boffset.
4025         * java/lang/Class.h (struct _Jv_Method): Made accflags a
4026         _Jv_ushort.
4027         (Class): Likewise.  Also changed type of method_count,
4028         vtable_method_count, size_in_bytes, field_count,
4029         static_field_count, interface_count.
4030         * gcj/array.h (__JArray): Made `length' a const jsize, not an
4031         int.
4033 2000-01-21  Tom Tromey  <tromey@cygnus.com>
4035         * java/lang/reflect/natConstructor.cc (newInstance): Use
4036         _Jv_CallAnyMethodA.
4037         * include/jvm.h: Declare _Jv_CallAnyMethodA.
4038         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
4039         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
4040         Include <jni.h>.
4041         (COPY): Removed.
4042         (invoke): Use _Jv_CallAnyMethodA.
4043         (VAL): Redefined.
4044         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
4045         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
4046         functions.
4047         (struct _Jv_Method): Added getNextMethod method.
4048         (JvNumMethods): New function.
4049         (JvGetFirstMethod): Likewise.
4050         * gcj/field.h (JvGetFirstStaticField): New function.
4051         (JvNumStaticFields): Likewise.
4052         (getNextField): Renamed from getNextInstanceField.
4053         (struct _Jv_Field): New method getClass.
4054         * jni.cc: Wrote many new functions.
4055         * include/jni.h (JNI_TRUE): Define.
4056         (JNI_FALSE): Likewise.
4057         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
4058         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
4059         jcharArray, jfloatArray, jdoubleArray): New typedefs.
4060         (jfieldID, jmethodID): Likewise.
4061         (JNI_COMMIT, JNI_ABORT): New defines.
4062         (JNINativeMethod): New struct.
4063         (struct JNINativeInterface): Correctly declared more entries.
4064         (class _Jv_JNIEnv): Added `ex' member.
4065         (JNI_VERSION_1_1): New define.
4066         (JNI_VERSION_1_2): Likewise.
4068         * boehm.cc (_Jv_MarkObj): Use getNextField, not
4069         getNextInstanceField.
4071 2000-01-20  Tom Tromey  <tromey@cygnus.com>
4073         * resolve.cc (StringClass): Removed.
4074         * defineclass.cc (StringClass): Removed.
4076 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
4078         * NEWS: updated.
4080 2000-01-19  Tom Tromey  <tromey@cygnus.com>
4082         * interpret.cc (PC_REGISTER_ASM): Removed.
4084         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
4085         From Bryce McKinlay.
4087         * All files: Updated copyright to reflect Cygnus purchase.
4089 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
4091         * configure: Rebuilt.
4092         * configure.in: Recognize --disable-interpreter.
4094 2000-01-18  Andrew Haley  <aph@cygnus.com>
4096         * name-finder.cc (lookup): Check for dladdr function.
4097         acconfig.h (HAVE_DLADDR): Add.
4098         configure.in: Check for HAVE_DLADDR
4099         configure: Rebuilt.
4100         include/config.h.in:  Rebuilt.
4102 2000-01-17  Andrew Haley  <aph@cygnus.com>
4104         * prims.cc (_Jv_RunMain): Set the name of this executable.
4106 2000-01-17  Tom Tromey  <tromey@cygnus.com>
4108         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
4109         when backtrace can't be computed.
4111         * configure: Rebuilt.
4112         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
4114         * java/lang/Runtime.java (loadLibraryInternal): Declare.
4115         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
4116         (_Jv_FindClassInCache): Likewise.
4117         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
4118         (findSystemClass): Try to load class from compiled module.
4119         Include Runtime.h.
4120         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
4121         (loadLibrary): Likewise.
4122         (lt_preloaded_symbols): Define.
4123         (loadLibraryInternal): New method.
4124         * include/config.h.in: Rebuilt.
4125         * acconfig.h (USE_LTDL): Added.
4126         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
4127         (INCLUDES): Added $(INCLTDL).
4128         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
4129         (libgcj_la_LIBADD): Likewise.
4130         * aclocal.m4, configure: Rebuilt.
4131         * configure.in: Added libltdl support.
4133 2000-01-15  Tom Tromey  <tromey@cygnus.com>
4135         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
4137 2000-01-14  Andrew Haley  <aph@cygnus.com>
4139         * java/lang/natThrowable.cc: New file.
4141         * java/lang/Throwable.java (fillInStackTrace): Make native.
4142         (printStackTrace): Call native method to do this.
4143         (Throwable): Call fillInStackTrace.
4144         (stackTrace): New variable.
4145         
4146         * include/jvm.h: Add _Jv_ThisExecutable functions.
4147         
4148         * prims.cc: (_Jv_execName): New variable.
4149         (catch_segv): Call fillInStackTrace.
4150         (catch_fpe): Ditto.
4151         (_Jv_ThisExecutable): New functions.
4152         (JvRunMain): Set the name of this executable.
4154         * Makefile.am: Add java/lang/natThrowable.cc.
4155         Add name-finder.cc.
4156         * Makefile.in: Rebuilt.
4158         * acconfig.h: Add HAVE_PROC_SELF_EXE.
4160         * configure.in: Force link with __frame_state_for in
4161         FORCELIBGCCSPEC.  Add new checks for backtrace.
4162         * include/config.h.in: Rebuilt.
4164         * name-finder.cc: New file.
4165         * include/name-finder.h: New file.
4167 2000-01-16  Anthony Green  <green@cygnus.com>
4169         * java/lang/StringBuffer.java (StringBuffer): Don't special case
4170         null argument.
4172 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
4174         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
4176 2000-01-13  Tom Tromey  <tromey@cygnus.com>
4178         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
4179         not system loader, as initiating loader.
4181 2000-01-11  Tom Tromey  <tromey@cygnus.com>
4183         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
4184         HP/UX.  From David Scott Urban.
4186 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
4188         * java/lang/natMath.cc (pow): Cast args to `double', not
4189         `jdouble'.
4190         (atan2): Likewise.
4191         (IEEEremainder): Likewise.
4192         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
4193         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
4195 2000-01-09  Anthony Green  <green@cygnus.com>
4197         * java/lang/natString.cc (init): Test for overflow condition
4198         during out of bounds check.
4199         (getChars): Throw StringIndexOutOfBoundsException, not
4200         ArrayIndexOutOfBoundsException.
4201         (getBytes): Ditto.
4202         (regionMatches): Obey case option during string comparison.
4204         * configure.host (ligcj_interpreter): New variable.  Enable
4205         interpreter by default on IA-32.
4206         * configure.in:  Examine libgcj_interpreter.
4207         * configure: Rebuilt.
4209 2000-01-07  Tom Tromey  <tromey@cygnus.com>
4211         * mauve-libgcj: Don't disable ClassTest.
4213         * java/lang/natClass.cc (getClasses): Wrote.
4215 2000-01-06  Tom Tromey  <tromey@cygnus.com>
4217         * java/lang/natClass.cc (_getConstructors): Correctly check
4218         whether method name is the init name.
4219         (getMethod): Look at accflags on method in `klass', not `this'.
4221 2000-01-05  Tom Tromey  <tromey@cygnus.com>
4223         * java/lang/natClass.cc (getMethod): Compute offset relative to
4224         `klass's methods table, not `this's table.
4226         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
4227         In unwrapping/widening case, check whether `k' is null, not
4228         whether it is primitive.  Initialize `num' from `argelts', not
4229         `paramelts'.  Correct create and pass arguments to ffi_call.
4230         Don't let presence of `this' argument affect index used to look in
4231         argument arrays.
4232         (COPY): Set appropriate element in `values' vector.
4234         * java/lang/natClass.cc: Include <gcj/method.h>.
4236         * java/lang/Class.h (_getMethods): Correctly declare as private,
4237         not public.
4239         * java/lang/Class.h (_getMethods): Declare.
4240         * java/lang/Class.java (_getMethods): Declare.
4241         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
4242         (getDeclaredClasses): Always return empty array.
4243         (_getMethods): New method.
4244         (getMethods): Wrote.
4245         (getDeclaredMethod): Return `rmethod'.
4246         (finit_name): New global.
4247         (getDeclaredMethods): Check for finit_name.
4248         (_getMethods): Likewise.
4249         (getMethod): Only return public methods.
4251         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
4252         jboolean and select correct ffi type on that basis.
4253         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
4254         Constructor call always has `void' return type.
4256 2000-01-04  Tom Tromey  <tromey@cygnus.com>
4258         * java/lang/Class.h (getSignature): Updated.
4259         * java/lang/Class.java (getSignature): Updated.
4260         * java/lang/natClass.cc (getSignature): Added `is_constructor'
4261         argument.
4262         (getConstructor): Ensure constructor is public.
4263         (_getConstructors): Check for public-ness of constructor when
4264         `declared' is false, not when it is true.
4266 2000-01-04  Warren Levy  <warrenl@cygnus.com>
4268         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
4269         comment.
4270         (receive): Set the sender's address in the DatagramPacket.
4272 2000-01-04  Tom Tromey  <tromey@cygnus.com>
4274         * java/lang/reflect/natConstructor.cc (newInstance): Pass
4275         declaring class as return_type argument to
4276         _Jv_CallNonvirtualMethodA.
4277         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
4278         constructor case, create object and use it as `this' argument.
4279         * java/lang/Class.h (_getConstructors): Declare.
4280         (_getFields): Declare.
4281         * java/lang/Class.java (getConstructors): Wrote.
4282         (_getConstructors): New native method.
4283         (getDeclaredConstructors): Wrote.
4284         (_getFields): Declare new native method.
4285         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
4286         incorrect comment.
4287         (getMethod): Work correctly when class is primitive.
4288         (getDeclaredMethods): Likewise.  Compute offset using `method',
4289         not `mptr'.
4290         (getDeclaredMethod): Likewise.
4291         (getConstructor): Wrote.
4292         (ConstructorClass): New define.
4293         (getDeclaredConstructor): Wrote.
4294         (_getConstructors): New method.
4295         (_getFields): New method.
4296         (getFields): Wrote.
4298         * Makefile.in: Rebuilt.
4299         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
4301         * prims.cc: Remove `#pragma implementation'.
4302         * gcj/array.h: Remove `#pragma interface'.
4304         * prims.cc (_Jv_equaln): New function.
4305         * java/lang/Class.java (getSignature): Declare.
4306         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
4307         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
4308         resolve.cc.
4309         (getSignature): New method.
4310         (getDeclaredMethod): Wrote.
4311         (getMethod): Wrote.
4312         Include StringBuffer.h.
4313         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
4314         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
4315         a friend.
4316         (getSignature): Declare.
4317         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
4318         (_Jv_equaln): Declare.
4319         (_Jv_CallNonvirtualMethodA): Declare.
4320         * Makefile.in: Rebuilt.
4321         * Makefile.am (nat_source_files): Added natConstructor.cc.
4322         (java/lang/reflect/Constructor.h): New target.
4323         * java/lang/reflect/natConstructor.cc: New file.
4324         * java/lang/reflect/Constructor.java (newInstance): Now native.
4325         (declaringClass): Renamed from decl_class.
4326         (offset): Renamed from index.
4327         (getType): New native method.
4328         (getModifiers): Now native.
4329         (getParameterTypes): Call getType if required.
4330         (hashCode): Include hash code from declaring class.
4331         (modifiers): Removed.
4332         (toString): Call getType if required.
4333         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
4334         * java/lang/reflect/natMethod.cc (hack_call): New method.
4335         Removed `#if 0' around FFI code.
4336         Include <gnu/gcj/RawData.h>.
4337         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
4338         IllegalArgumentException when argument object and class disagree.
4339         (_Jv_GetTypesFromSignature): New function.
4340         (getType): Use it.
4341         (ObjectClass): New define.
4342         (_Jv_CallNonvirtualMethodA): New function.
4343         * java/lang/reflect/Method.java (hack_trampoline): New method.
4344         (hack_call): New native method.