OSDN Git Service

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