OSDN Git Service

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