OSDN Git Service

* ThreadGroup.java: Added synchronized flag to many methods.
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
2
3         * ThreadGroup.java: Added synchronized flag to many methods.
4         (destroyed_flag): Removed.
5         (isDestroyed, removeGroup, removeThread): Test for parent == null.      
6         (activeCount): Added spec note.
7
8 2000-06-27  Warren Levy  <warrenl@cygnus.com>
9
10         * java/security/Principal.java: New file.
11         * Makefile.am: Added Principal.java.
12         * Makefile.in: Rebuilt.
13
14 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
15
16         * java/awt/event/MouseEvent.java: Fixed coordinate space
17         confusion.
18
19 2000-06-27  Tom Tromey  <tromey@cygnus.com>
20
21         * java/io/PushbackInputStream.java (read): If there are characters
22         in the buffer, don't also call super.read().
23         * java/io/PushbackReader.java (read): If there are characters in
24         the buffer, don't also call super.read().
25
26         * java/lang/Double.java (valueOf): Call parseDouble().
27
28 2000-06-26  Warren Levy  <warrenl@cygnus.com>
29
30         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
31         (newVal): Renamed to newValue.
32         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
33         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
34         (revokeNow): Renamed to invalidateRefs.
35         * java/io/OptionalDataException.java: Updated FIXME.
36         (eof): New placeholder field.
37         (length); Ditto.
38         * java/io/WriteAbortedException.java (message): Made transient.
39         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
40         * java/lang/Throwable.java (stackTrace): Made transient.
41         * java/net/InetAddress.java: Made Serializable.
42         * java/security/KeyPair.java: Made Serializable.
43         * java/security/Provider.java: Replaced with Classpath version that
44         implements serialization and proper methods.
45         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
46         (limits): Renamed to choiceLimits.
47
48 2000-06-24  Tom Tromey  <tromey@cygnus.com>
49
50         * java/lang/natDouble.cc (parseDouble): Renamed from
51         doubleValueOf.
52         * java/lang/Double.java (parseDouble): Renamed from
53         doubleValueOf.  Now public.
54
55 2000-06-23  Andrew Haley  <aph@cygnus.com>
56
57         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
58         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
59
60 2000-06-23  Tom Tromey  <tromey@cygnus.com>
61
62         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
63         * java/lang/natDouble.cc: Always include <alloca.h>.
64         Fix for PR libgcj/267.
65
66 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
67
68         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
69         comply with classpath VM spec.
70         (add(Group)): Rename to addGroup().
71         * java/lang/Thread.java (Thread): Use addThread().
72         * java/lang/natThread.cc (finish_): Use removeThread().
73
74 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
75
76         * java/lang/ThreadGroup.java: Merged with classpath.
77         * prims.cc (_Jv_RunMain): Don't use `main_group'.
78         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
79         argument.
80         * java/lang/Thread.java (Thread): Bootstrap initial thread from 
81         ThreadGroup.root if Thread.currentThread is null. Honour the 
82         ThreadGroup's max priority setting.
83
84 2000-06-18  Tom Tromey  <tromey@cygnus.com>
85
86         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
87         returned class.  For PR gcj/260.
88
89 2000-06-16  Tom Tromey  <tromey@cygnus.com>
90
91         Fix for PR libgcj/261:
92         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
93         argument.
94         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
95         argument.  (This is a patch from long ago that somehow went
96         missing.)
97
98 2000-06-15  Tom Tromey  <tromey@cygnus.com>
99
100         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
101         (read): Use it.
102         (write): Likewise.
103
104 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
105
106         Fix for PR java.lang/258:
107         * prims.cc (_Jv_PrimClass): Set state of primitive class to 
108         JV_STATE_DONE, to prevent accidental initialization.
109         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call 
110         _Jv_InterfaceAssignableFrom if target is an interface and source is an
111         interface or an abstract class. Remove redundant initializeClass calls. 
112         Remove duplicate if_idt test.
113         (_Jv_InterfaceAssignableFrom): New function.
114         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
115
116 2000-05-31  Tom Tromey  <tromey@cygnus.com>
117
118         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
119         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
120         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
121         (NUM_OBJECT_METHODS): New define.
122         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
123         `array_vtable' parameter.  Added assertion.
124         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
125         parameter.
126
127 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
128
129         * gcj/cni.h: Include <string.h>.
130         * defineclass.cc: Include <alloca.h>.
131         * interpret.cc: Ditto.
132         * gij.cc: Include <stdlib.h>.
133
134 2000-05-30  Tom Tromey  <tromey@cygnus.com>
135
136         * include/name-finder.h: Include <sys/wait.h>.
137         (_Jv_name_finder::pid): Now of type `pid_t'.
138         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
139         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
140         `proc.waitFor()'.
141
142 2000-05-24  Warren Levy  <warrenl@cygnus.com>
143
144         * java/io/ObjectOutputStream.java (writeObject): Use component type
145         when writing arrays.
146         Fixed typo.
147
148 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
149
150         Fix for PR libgcj/226:
151         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
152         since this is an installed header.
153         
154         Fix for PR libgcj/228:
155         * java/util/zip/ZipFile (getInputStream): Create inflater with 
156         nowrapper option.
157         
158         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
159         with DataFormatException.       
160
161 2000-05-20  Tom Tromey  <tromey@cygnus.com>
162
163         * Makefile.in: Rebuilt.
164         * Makefile.am (hack1): Removed.
165         (awto_files): Likewise.
166         (libgcjawt_la_SOURCES): Likewise.
167         (EXTRA_libgcjawt_la_SOURCES): Likewise.
168         (libgcjawt_la_DEPENDENCIES): Likewise.
169         (libgcjawt_la_LIBADD): Likewise.
170         (libgcjawt_la_LDFLAGS): Likewise.
171         (libgcjawt_la_LINK): Likewise.
172         ($(awt_java_source_files:.java=.class)): Likewise.
173         (libgcj.zip): Don't depend on AWT files.
174         (MOSTLYCLEANFILES): Don't include AWT files.
175         ($(awto_files)): Removed.
176         (nat_headers): Removed AWT files.
177         (cond_awt_java_source_files): Removed.
178         (ordinary_java_source_files): Added awt_java_source_files.
179         * libgcj.spec.in (*lib): Removed -lgcjawt.
180         * configure: Rebuilt.
181         * configure.in: Removed --enable-java-awt option.
182
183 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
184
185         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
186         (ZipEntry): Copy the `name' field.
187         (clone): Implement JDK1.2 method.
188         (setCompressedSize): ditto.
189         (hashCode): ditto.
190
191 2000-05-19  Tom Tromey  <tromey@cygnus.com>
192
193         * java/io/BufferedWriter.java: Merged with Classpath.
194         * java/io/BufferedOutputStream.java: Merged with Classpath.
195
196 2000-05-16  Andrew Haley  <aph@cygnus.com>
197
198         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
199         build_ia64_frame_state.
200         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
201         defintion in gcc.
202
203 2000-05-15  Warren Levy  <warrenl@cygnus.com>
204
205         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
206         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
207         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
208         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
209         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
210         * gnu/gcj/beans/editors/FontEditor.java: Removed.
211         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
212         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
213         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
214         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
215         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
216         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
217         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
218         * gnu/gcj/beans/editors/StringEditor.java: Removed.
219         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
220         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
221         * gnu/gcj/io/NullOutputStream.java: Removed.
222         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
223         * gnu/gcj/lang/ArrayHelper.java: Removed.
224         * gnu/gcj/lang/ClassHelper.java: Removed.
225         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
226
227         * gnu/java/beans/BeanInfoEmbryo.java: New file.
228         * gnu/java/beans/EmptyBeanInfo.java: New file.
229         * gnu/java/beans/ExplicitBeanInfo.java: New file.
230         * gnu/java/beans/IntrospectionIncubator.java: New file.
231         * gnu/java/beans/editors/ColorEditor.java: New file.
232         * gnu/java/beans/editors/FontEditor.java: New file.
233         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
234         * gnu/java/beans/editors/NativeByteEditor.java: New file.
235         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
236         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
237         * gnu/java/beans/editors/NativeIntEditor.java: New file.
238         * gnu/java/beans/editors/NativeLongEditor.java: New file.
239         * gnu/java/beans/editors/NativeShortEditor.java: New file.
240         * gnu/java/beans/editors/StringEditor.java: New file.
241         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
242         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
243         * gnu/java/io/NullOutputStream.java: New file.
244         * gnu/java/io/ObjectIdentityWrapper.java: New file.
245         * gnu/java/lang/ArrayHelper.java: New file.
246         * gnu/java/lang/ClassHelper.java: New file.
247         * gnu/java/lang/reflect/TypeSignature.java: New file.
248
249         * Makefile.am: Updated for moving Classpath files from gnu/gcj
250         namespace back to the original Classpath gnu/java namespace.
251         * Makefile.in: Rebuilt.
252
253         * java/beans/Beans.java: Namespace change.
254         * java/beans/EventSetDescriptor.java: Namespace change.
255         * java/beans/Introspector.java: Namespace change.
256         * java/beans/PropertyEditorManager.java: Namespace change.
257         * java/io/ObjectInputStream.java: Namespace change.
258         * java/io/ObjectOutputStream.java: Namespace change.
259         * java/io/ObjectStreamClass.java: Namespace change.
260         * java/io/ObjectStreamField.java: Namespace change.
261
262 2000-04-21  Warren Levy  <warrenl@cygnus.com>
263
264         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
265         now that compiler patch is available.
266         Removed unneeded System.loadLibrary.
267         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
268         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
269
270 2000-04-19  Andrew Haley  <aph@cygnus.com>
271
272         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
273         and target classes have been initialized.
274
275 2000-04-19  Andrew Haley  <aph@cygnus.com>
276
277         * java/lang/String.java: implement Serializable, Comparable.
278         (compareTo (Object)): New method.
279
280 2000-04-19  Warren Levy  <warrenl@cygnus.com>
281
282         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
283         instead of getField to retrieve non-public field.
284         (getSerialPersistantFields): Ditto.
285
286 2000-04-18  Warren Levy  <warrenl@cygnus.com>
287
288         * mauve-libgcj: Turned off object serialization tests temporarily
289         due to compiler error.
290
291 2000-04-17  Warren Levy  <warrenl@cygnus.com>
292
293         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
294         to avoid build problem.
295         (DEBUGln): Ditto.
296         * mauve-libgcj: Turned on object serialization tests.
297
298 2000-04-17  Tom Tromey  <tromey@cygnus.com>
299
300         * libgcj.spec.in (*lib): Added -lgcjawt.
301
302 2000-04-17  Andrew Haley  <aph@cygnus.com>
303
304         * Makefile.am: Add new files: 
305         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
306         gnu/gcj/io/shs.cc.
307         * Makefile.in: Rebuilt.
308
309         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
310         interface that has no implementations.
311         Check for an attempt to assign an abstract class to an interface.
312
313         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
314         if we fail to find MessageDigest.getInstance ("SHA").
315
316         * gnu/gcj/io/SimpleSHSStream.java: New file.
317         * gnu/gcj/io/natSimpleSHSStream.java: New file.
318         * gnu/gcj/io/shs.cc: New file.
319         * gnu/gcj/io/shs.h: new file.
320
321         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
322         serializable.
323
324         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
325         punctuation from the classname of an array element.
326
327         * gcj/javaprims.h: Add SimpleDigestStream.
328         
329 2000-04-17  Andrew Haley  <aph@cygnus.com>
330
331         * java/lang/natClass.cc (getPrivateField): Make recursive calls
332         to getPrivateField for superclasses.
333  
334 2000-04-14  Andrew Haley  <aph@cygnus.com>
335
336         * Makefile.am: Add new files:
337         java/io/ObjectOutputStream$PutField.h,
338         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
339         java/io/natObjectOutputStream.cc
340         * Makefile.in: Rebuilt.
341         * gcj/Makefile.in: Rebuilt.
342         * include/Makefile.in: Rebuilt.
343         * java/lang/Class.h (getPrivateField): New method.
344         (getPrivateMethod): Ditto.
345         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
346         and java::io::ObjectStreamClass our friends.
347         * java/lang/natClass.cc (getPrivateField): New method.
348         (getPrivateMethod): Ditto.
349         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
350         * gcj/javaprims.h: Add serialization classes.   
351         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
352         (setByteField): Ditto.
353         (setCharField): Ditto.
354         (setDoubleField): Ditto.
355         (setFloatField): Ditto.
356         (setIntField): Ditto.
357         (setLongField): Ditto.
358         (setShortField): Ditto.
359         (setObjectField): Ditto.
360         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
361         Java.
362         (getByteField): Ditto.
363         (getCharField): Ditto.
364         (getDoubleField): Ditto.
365         (getFloatField): Ditto.
366         (getIntField): Ditto.
367         (getLongField): Ditto.
368         (getShortField): Ditto.
369         (getObjectField): Ditto.
370         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
371         Java.
372         (getSerialPersistantFields): Ditto.
373         (getDefinedSUID): Ditto.
374         * java/io/natObjectOutputStream.cc: New file.
375         * java/io/natObjectInputStream.cc: New file.
376         
377 2000-04-13  Warren Levy  <warrenl@cygnus.com>
378
379         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
380         problems.  Revert to previous version to reproduce and when fixed.
381
382 2000-04-13  Warren Levy  <warrenl@cygnus.com>
383
384         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
385         * gnu/gcj/io/NullOutputStream.java: New file.
386         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
387         * java/io/BlockDataException.java: New file.
388         * java/io/Externalizable.java: New file.
389         * java/io/InvalidClassException.java: New file.
390         * java/io/InvalidObjectException.java: New file.
391         * java/io/NotActiveException.java: New file.
392         * java/io/NotSerializableException.java: New file.
393         * java/io/ObjectInput.java: New file.
394         * java/io/ObjectInputStream.java: New file.
395         * java/io/ObjectInputValidation.java: New file.
396         * java/io/ObjectOutput.java: New file.
397         * java/io/ObjectOutputStream.java: New file.
398         * java/io/ObjectStreamClass.java: New file.
399         * java/io/ObjectStreamConstants.java: New file.
400         * java/io/ObjectStreamField.java: New file.
401         * java/io/Replaceable.java: New file.
402         * java/io/Resolvable.java: New file.
403         * java/io/SerializablePermission.java: New file.
404         * java/io/WriteAbortedException.java: New file.
405         * java/security/BasicPermission.java: New file.
406         * java/security/DigestOutputStream.java: New file.
407         * java/security/Guard.java: New file.
408         * java/security/Permission.java: New file.
409         * java/security/PermissionCollection.java: New file.
410         * Makefile.am: Added above files.
411         * Makefile.in: Rebuilt.
412
413         * java/beans/Beans.java (instantiate): Activated serialization code.
414         * java/lang/SecurityManager.java (checkPermission): New method.
415
416 2000-04-12  Warren Levy  <warrenl@cygnus.com>
417
418         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
419         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
420         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
421         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
422         * gnu/gcj/beans/editors/ColorEditor.java: New file.
423         * gnu/gcj/beans/editors/FontEditor.java: New file.
424         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
425         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
426         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
427         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
428         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
429         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
430         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
431         * gnu/gcj/beans/editors/StringEditor.java: New file.
432         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
433         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
434         * gnu/gcj/lang/ArrayHelper.java: New file.
435         * gnu/gcj/lang/ClassHelper.java: New file.
436         * java/beans/BeanDescriptor.java: New file.
437         * java/beans/BeanInfo.java: New file.
438         * java/beans/Beans.java: New file.
439         * java/beans/Customizer.java: New file.
440         * java/beans/DesignMode.java: New file.
441         * java/beans/EventSetDescriptor.java: New file.
442         * java/beans/FeatureDescriptor.java: New file.
443         * java/beans/IndexedPropertyDescriptor.java: New file.
444         * java/beans/IntrospectionException.java: New file.
445         * java/beans/Introspector.java: New file.
446         * java/beans/MethodDescriptor.java: New file.
447         * java/beans/ParameterDescriptor.java: New file.
448         * java/beans/PropertyChangeEvent.java: New file.
449         * java/beans/PropertyChangeListener.java: New file.
450         * java/beans/PropertyChangeSupport.java: New file.
451         * java/beans/PropertyDescriptor.java: New file.
452         * java/beans/PropertyEditor.java: New file.
453         * java/beans/PropertyEditorManager.java: New file.
454         * java/beans/PropertyEditorSupport.java: New file.
455         * java/beans/PropertyVetoException.java: New file.
456         * java/beans/SimpleBeanInfo.java: New file.
457         * java/beans/VetoableChangeListener.java: New file.
458         * java/beans/VetoableChangeSupport.java: New file.
459         * java/beans/Visibility.java: New file.
460         * java/beans/beancontext/BeanContext.java: New file.
461         * java/beans/beancontext/BeanContextChild.java: New file.
462         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
463         * java/beans/beancontext/BeanContextChildSupport.java: New file.
464         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
465         * java/beans/beancontext/BeanContextEvent.java: New file.
466         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
467         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
468         * java/beans/beancontext/BeanContextProxy.java: New file.
469         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
470         New file.
471         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
472         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
473         New file.
474         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
475         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
476         New file.
477         * java/beans/beancontext/BeanContextServices.java: New file.
478         * java/beans/beancontext/BeanContextServicesListener.java: New file.
479         * java/util/AbstractCollection.java: New file.
480         * java/util/AbstractList.java: New file.
481         * java/util/Arrays.java: New file.
482         * Makefile.am: Added above files.
483         * Makefile.in: Rebuilt.
484
485 2000-04-11  Warren Levy  <warrenl@cygnus.com>
486
487         * java/awt/AWTError.java: New file.
488         * java/awt/AWTEvent.java: New file.
489         * java/awt/AWTException.java: New file.
490         * java/awt/ActiveEvent.java: New file.
491         * java/awt/Adjustable.java: New file.
492         * java/awt/BorderLayout.java: New file.
493         * java/awt/Color.java: New file.
494         * java/awt/Component.java: New file.
495         * java/awt/Container.java: New file.
496         * java/awt/Dimension.java: New file.
497         * java/awt/Event.java: New file.
498         * java/awt/Font.java: New file.
499         * java/awt/Frame.java: New file.
500         * java/awt/Graphics.java: New file.
501         * java/awt/IllegalComponentStateException.java: New file.
502         * java/awt/Image.java: New file.
503         * java/awt/ItemSelectable.java: New file.
504         * java/awt/LayoutManager.java: New file.
505         * java/awt/LayoutManager2.java: New file.
506         * java/awt/Menu.java: New file.
507         * java/awt/MenuBar.java: New file.
508         * java/awt/MenuComponent.java: New file.
509         * java/awt/MenuContainer.java: New file.
510         * java/awt/MenuItem.java: New file.
511         * java/awt/Paint.java: New file.
512         * java/awt/PaintContext.java: New file.
513         * java/awt/Point.java: New file.
514         * java/awt/Rectangle.java: New file.
515         * java/awt/Shape.java: New file.
516         * java/awt/TextArea.java: New file.
517         * java/awt/TextComponent.java: New file.
518         * java/awt/Toolkit.java: New file.
519         * java/awt/Transparency.java: New file.
520         * java/awt/Window.java: New file.
521         * java/awt/natToolkit.cc: New file.
522         * java/awt/event/AWTEventListener.java: New file.
523         * java/awt/event/ActionEvent.java: New file.
524         * java/awt/event/ActionListener.java: New file.
525         * java/awt/event/AdjustmentEvent.java: New file.
526         * java/awt/event/AdjustmentListener.java: New file.
527         * java/awt/event/ComponentAdapter.java: New file.
528         * java/awt/event/ComponentEvent.java: New file.
529         * java/awt/event/ComponentListener.java: New file.
530         * java/awt/event/ContainerAdapter.java: New file.
531         * java/awt/event/ContainerEvent.java: New file.
532         * java/awt/event/ContainerListener.java: New file.
533         * java/awt/event/FocusAdapter.java: New file.
534         * java/awt/event/FocusEvent.java: New file.
535         * java/awt/event/FocusListener.java: New file.
536         * java/awt/event/InputEvent.java: New file.
537         * java/awt/event/InputMethodEvent.java: New file.
538         * java/awt/event/InputMethodListener.java: New file.
539         * java/awt/event/InvocationEvent.java: New file.
540         * java/awt/event/ItemEvent.java: New file.
541         * java/awt/event/ItemListener.java: New file.
542         * java/awt/event/KeyAdapter.java: New file.
543         * java/awt/event/KeyEvent.java: New file.
544         * java/awt/event/KeyListener.java: New file.
545         * java/awt/event/MouseAdapter.java: New file.
546         * java/awt/event/MouseEvent.java: New file.
547         * java/awt/event/MouseListener.java: New file.
548         * java/awt/event/MouseMotionAdapter.java: New file.
549         * java/awt/event/MouseMotionListener.java: New file.
550         * java/awt/event/PaintEvent.java: New file.
551         * java/awt/event/TextEvent.java: New file.
552         * java/awt/event/TextListener.java: New file.
553         * java/awt/event/WindowAdapter.java: New file.
554         * java/awt/event/WindowEvent.java: New file.
555         * java/awt/event/WindowListener.java: New file.
556         * java/awt/geom/Dimension2D.java: New file.
557         * java/awt/geom/Point2D.java: New file.
558         * java/awt/peer/ComponentPeer.java: New file.
559         * java/awt/peer/ContainerPeer.java: New file.
560         * java/awt/peer/FramePeer.java: New file.
561         * java/awt/peer/WindowPeer.java: New file.
562         * java/util/Collection.java: New file.
563         * java/util/Comparator.java: New file.
564         * java/util/Iterator.java: New file.
565         * java/util/List.java: New file.
566         * java/util/ListIterator.java: New file.
567         * Makefile.am: Added above files.
568         * Makefile.in: Rebuilt.
569
570 2000-04-10  Warren Levy  <warrenl@cygnus.com>
571
572         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
573         * java/lang/FirstThread.java: Ditto.
574         * java/lang/StringBuffer.java: Ditto.
575         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
576
577         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
578         Special case handled in java.math.BigInteger.
579         * java/math/BigInteger.java (divide): Handle the special case when
580         dividing by 1 and the high bit of the dividend is set.
581         (setShiftRight): Handle case when count == 0.
582
583 2000-04-05  Andrew Haley  <aph@cygnus.com>
584
585         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
586         special case.
587
588 2000-04-05  Andrew Haley  <aph@cygnus.com>
589
590         * sysdep/ia64.c (rse_address_add): Delete.
591         (IS_NaT_COLLECTION_ADDR): Delete.
592         (ia64_backtrace_helper): check for null unwind_info.
593         
594         * sysdep/ia64-frame.h: add calc_caller_bsp.
595
596         * java/lang/natThrowable.cc (printRawStackTrace): Flush
597         PrintWriter.
598
599         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
600         (_Jv_remI): Likewise.
601         (_Jv_divJ): Likewise.
602         (_Jv_remJ): Likewise.
603         
604         * interpret.cc (continue1): Use divide subroutines to guarantee
605         correct Java standard behaviour.
606         Floating-point division should not abort; make it so.
607
608 2000-03-29  Tom Tromey  <tromey@cygnus.com>
609
610         * configure: Rebuilt.
611         * configure.in: Test against `libgcj_sjlj', not
612         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
613         to be set even when using sjlj.
614
615 2000-03-24  Andrew Haley  <aph@cygnus.com>
616
617         * Makefile.am: Add file addr2name.awk.
618         * Makefile.in: Rebuilt.
619         * addr2name.awk: New file.
620         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
621         lookups on ia64.
622         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
623         blank line.
624         
625 2000-03-22  Andrew Haley  <aph@cygnus.com>
626
627         * configure.host: Add -funwind-tables for IA64.
628         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
629         * Makefile.in: Rebuilt.
630         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
631         * sysdep/ia64.c: New file.
632         * sysdep/ia64-frame.h: New file.
633         * configure.in: Add sysdep/ia64.c for ia64.
634         * configure: Rebuilt.
635         
636 2000-03-17  Andrew Haley  <aph@cygnus.com>
637
638         * java/lang/natString.cc: Remove `register' keyword.
639         interpret.cc: ditto.
640
641 2000-03-16  Andrew Haley  <aph@cygnus.com>
642
643         * configure.host (ia64): Enable interpreter.
644
645 2000-03-14  Hans Boehm  <boehm@acm.org>
646
647         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
648
649 2000-03-14  Andrew Haley  <aph@cygnus.com>
650
651         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
652         `_exception'.
653
654 2000-03-10  Andrew Haley  <aph@cygnus.com>
655
656         * java/lang/ieeefp.h: Import latest version from fdlibm.
657
658 2000-03-14  Andrew Haley  <aph@cygnus.com>
659
660         * prims.cc (_Jv_ThrowSignal): New function.
661         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
662         (catch_fpe): Ditto.
663         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
664         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
665         * include/ppc-signal.h: New file.
666
667 >>>>>>> 1.385
668 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
669
670         * java/lang/Thread.java: Declare `data' as Object, not RawData.
671         * java/lang/natThread.java (initialize_native): Cast `data' to
672         jobject.
673         * gnu/gcj/RawData.java: Clarify documentation.
674
675         From Gregory R. Warnes <warnes@biostat.washington.edu>:
676         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
677         `jarFile', not `jarFileURL'.
678
679 2000-05-15  Andrew Haley  <aph@cygnus.com>
680
681         * include/ppc-signal.h: New file.
682
683 2000-05-11  Tom Tromey  <tromey@cygnus.com>
684
685         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
686         file headers, don't include `size' in the skip call.
687
688 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
689
690         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
691         Avoid arrayCopy() call where possible. Update `count' _after_ calling
692         arrayCopy().
693         (replace): Reimplemented. Fix javadoc.
694         (reverse): Call ensureCapacity_unsynchronized().
695         (StringBuffer (String)): Use DEFAULT_CAPACITY.
696
697         (replace): Calculate length for arraycopy() correctly.
698         
699 2000-05-09  Tom Tromey  <tromey@cygnus.com>
700
701         * java/lang/StringBuffer.java (toString): Don't mark buffer as
702         shared.
703         (insert(int,char[],int,int): New method.
704         (delete): New method from Classpath.
705         (deleteCharAt): Likewise.
706         (substring): Likewise.
707         (shared): No longer private.
708         Added JavaDoc comments from Classpath.
709         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
710         shared.
711
712 2000-05-07  Tom Tromey  <tromey@cygnus.com>
713
714         * Makefile.in: Rebuilt.
715         * Makefile.am (LIBLINK): New macro.
716         (libgcj_la_LINK): Use it.
717         (libgcjawt_la_LINK): Likewise.
718
719 2000-05-06  Tom Tromey  <tromey@cygnus.com>
720
721         * Makefile.in: Rebuilt.
722         * Makefile.am (libgcj.zip): Don't pass -L to javac.
723
724 2000-05-05  Tom Tromey  <tromey@cygnus.com>
725
726         Fix for PR libgcj/220:
727         * Makefile.in: Rebuilt.
728         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
729         (jv_convert_LDFLAGS): Likewise.
730         (libgcj_la_LDFLAGS): Likewise.
731         (GCJLINK): New macro.
732         (jv_convert_LINK): Use it.
733         (gij_LINK): Likewise.
734         (libgcj_la_LINK): New macro.
735         (libgcjawt_la_LINK): Likewise.
736
737 2000-05-04  Tom Tromey  <tromey@cygnus.com>
738
739         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
740         field.
741         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
742         `0x0008'.
743         Include Modifier.h.
744
745 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
746
747         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
748         (_Jv_IsAssignableFrom): Ditto.
749         (_Jv_IsInstanceOf): Ditto.
750         (_Jv_CheckCast): Ditto.
751         (_Jv_CheckArrayStore): Ditto.
752         * java/lang/Class.h (_Jv_InitClass): Ditto.     
753         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
754         not `0'.
755         (notify): Ditto.
756         (notifyAll): Ditto.
757         (wait): Ditto.
758         (_Jv_MonitorExit): Ditto.
759         * boehm.cc (_Jv_MarkObj): Ditto.
760         (_Jv_MarkObj): Ditto.
761         (_Jv_MarkArray): Ditto.
762         * prims.cc (_Jv_AllocObject): Ditto.
763         (_Jv_NewObjectArray): Ditto.
764         (_Jv_NewPrimArray): Ditto.
765         (_Jv_Malloc): Ditto.
766         (_Jv_Realloc): Ditto.
767         (_Jv_MallocUnchecked): Ditto.
768         (_Jv_divI): Ditto.
769         (_Jv_remI): Ditto.
770         (_Jv_divJ): Ditto.
771         (_Jv_remJ): Ditto.
772
773 2000-05-04  Tom Tromey  <tromey@cygnus.com>
774
775         * java/util/Locale.java (Locale): Don't explicitly check for
776         null.
777         * java/util/Hashtable.java (containsKey): Don't explicitly check
778         for null.
779         (get): Likewise.
780         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
781         null.
782         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
783         for null.
784         * java/text/StringCharacterIterator.java
785         (StringCharacterIterator): Don't check for null.
786         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
787         for null pointer.
788         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
789         check for null pointer.
790         (leaveGroup): Likewise.
791         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
792         comment.
793         (setData): Likewise.
794         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
795         for `p==null'.
796
797 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
798
799         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
800         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
801         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
802         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
803         -rpath for in-gcc builds.
804         * Makefile.in: Rebuilt.
805
806 2000-04-28  Tom Tromey  <tromey@cygnus.com>
807
808         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
809         Fix for PR gcj/218.
810
811 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
812
813         * libjava/java/lang/String.java (toString): Remove `final' hack.
814
815 2000-04-05  Tom Tromey  <tromey@cygnus.com>
816
817         Runtime support for PR gcj/2:
818         * prims.cc (_Jv_ThrowNullPointerException): New function.
819         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
820
821 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
822
823         * prims.cc (_Jv_NewObjectArray): Fix typo.
824
825 2000-04-26  Tom Tromey  <tromey@cygnus.com>
826
827         * Makefile.in: Rebuilt.
828         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
829
830 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
831
832         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
833         calling main.
834
835 2000-04-22  Anthony Green  <green@cygnus.com>
836
837         * include/jvm.h (__builtin_expect): Define as unused for now.
838         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
839         (notify): Ditto.
840         (notifyAll): Ditto.
841         (wait): Ditto.
842         (_Jv_MonitorExit): Ditto.
843         * boehm.cc (_Jv_MarkObj): Ditto.
844         (_Jv_MarkObj): Ditto.
845         (_Jv_MarkArray): Ditto.
846         (_Jv_AllocBytes): Ditto.
847         * prims.cc (_Jv_AllocObject): Ditto.
848         (_Jv_NewObjectArray): Ditto.
849         (_Jv_NewPrimArray): Ditto.
850         (_Jv_Malloc): Ditto.
851         (_Jv_Realloc): Ditto.
852         (_Jv_MallocUnchecked): Ditto.
853         (_Jv_divI): Ditto.
854         (_Jv_remI): Ditto.
855         (_Jv_divJ): Ditto.
856         (_Jv_remJ): Ditto.
857
858         * include/Makefile.in: Rebuilt.
859         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
860
861 2000-04-21  Tom Tromey  <tromey@cygnus.com>
862
863         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
864         Yet another new version from Classpath.
865
866         Fix for PR libgcj/15:
867         * java/util/natGregorianCalendar.cc (_REENTRANT,
868         _POSIX_PTHREAD_SEMANTICS): Don't define.
869         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
870         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
871         Don't define.
872         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
873         define.
874         * configure: Rebuilt.
875         * configure.in: If using POSIX threads, define _REENTRANT if
876         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
877         GETHOSTBYNAME_R_NEEDS_REENTRANT.
878
879         * java/io/PipedInputStream.java, java/io/PipedReader.java,
880         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
881         version from Classpath.
882
883         Fix for PR libgcj/213:
884         * Makefile.in: Rebuilt.
885         * Makefile.am (gij_SOURCES): Added gij.cc.
886         (EXTRA_gij_SOURCES): Removed.
887         (gij_LDADD): Removed gij.lo.
888         (gij_DEPENDENCIES): Likewise.
889         ($(gij_OBJECTS)): Depend on nat_headers.
890
891         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
892         `setURL', not `url.set'.
893
894 2000-04-20  Tom Tromey  <tromey@cygnus.com>
895
896         Fix for PR java.io/204:
897         * java/io/PipedInputStream.java, java/io/PipedReader.java,
898         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
899         from Classpath.
900
901         Fix for PR libgcj/212:
902         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
903         * include/jvm.h (_Jv_word, _Jv_word2): Define.
904         * java/lang/Class.h (_Jv_word): Declare.
905
906         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
907
908 2000-04-19  Tom Tromey  <tromey@cygnus.com>
909
910         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
911         doesn't have a loader.
912
913 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
914
915         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
916         MAYBE_MARK to ptr_t, for compatibility with new GC version.
917
918 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
919
920         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
921         libgcj/202.
922         (available): Initialize `where' to prevent bogus compiler warning.
923
924 2000-04-12  Tom Tromey  <tromey@cygnus.com>
925
926         * java/lang/natString.cc (intern): Temporarily disable finalizer
927         registration.
928
929         * java/lang/natString.cc (unintern): Added `obj' argument.
930         (intern): Register finalizer for string.
931         * java/lang/String.java (unintern): Now static; added obj
932         argument.
933
934 2000-04-11  Tom Tromey  <tromey@cygnus.com>
935
936         * java/util/Vector.java (VectorEnumeration): Now `final'.
937         * java/util/Hashtable.java (HashtableEntry): Now `final'.
938         (HashtableEnumeration): Likewise.
939         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
940         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
941
942 2000-04-10  Warren Levy  <warrenl@cygnus.com>
943
944         * java/io/ObjectStreamException.java: New file.
945         * java/io/OptionalDataException.java: New file.
946         * java/io/StreamCorruptedException.java: New file.
947         * java/math/BigDecimal.java: New file.
948         * java/sql/CallableStatement.java: New file.
949         * java/sql/Connection.java: New file.
950         * java/sql/DataTruncation.java: New file.
951         * java/sql/DatabaseMetaData.java: New file.
952         * java/sql/Date.java: New file.
953         * java/sql/Driver.java: New file.
954         * java/sql/DriverManager.java: New file.
955         * java/sql/DriverPropertyInfo.java: New file.
956         * java/sql/PreparedStatement.java: New file.
957         * java/sql/ResultSet.java: New file.
958         * java/sql/ResultSetMetaData.java: New file.
959         * java/sql/SQLException.java: New file.
960         * java/sql/SQLWarning.java: New file.
961         * java/sql/Statement.java: New file.
962         * java/sql/Time.java: New file.
963         * java/sql/Timestamp.java: New file.
964         * java/sql/Types.java: New file.
965         * Makefile.am: Added above new files.
966         * Makefile.in: Rebuilt.
967
968         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
969         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
970         DatagramSocket constructor instead of null.
971
972 2000-04-08  Anthony Green  <green@cygnus.com>
973
974         * include/posix-threads.h (_Jv_MutexUnlock): Replace
975         _JV_NOT_OWNER.
976         
977 2000-04-08  Anthony Green  <green@cygnus.com>
978
979         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
980         (_Jv_MutexUnlock): Ditto.
981         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
982         (_Jv_MutexUnlock): Ditto.
983
984 2000-04-08  Anthony Green  <green@cygnus.com>
985
986         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
987         (ensureCapacity_unsynchronized): New private method.
988         (append): Use ensureCapacity_unsynchronized.
989
990 2000-04-08  Tom Tromey  <tromey@cygnus.com>
991
992         * Makefile.in: Rebuilt.
993         * Makefile.am (awt_java_source_files): Added new files.
994         * java/awt/IllegalComponentStateException.java: New file.
995         * java/awt/ItemSelectable.java: New file.
996         * java/awt/event/WindowEvent.java: Finished.
997         * java/awt/event/TextEvent.java: Finished.
998         * java/awt/event/ContainerEvent.java: New file.
999         * java/awt/Component.java (getX, getY): New methods.
1000         * java/awt/event/PaintEvent.java: New file.
1001         * java/awt/event/MouseEvent.java: New file.
1002         * java/awt/ActiveEvent.java: New file.
1003         * java/awt/event/KeyEvent.java: Finished.
1004         * java/awt/event/ItemEvent.java: New file.
1005         * java/awt/Adjustable.java: New file.
1006         * java/awt/event/InputMethodEvent.java: New file.
1007         * java/awt/event/InputEvent.java: Finished.
1008         * java/awt/event/FocusEvent.java: New file.
1009         * java/awt/event/MouseMotionAdapter.java: New file.
1010         * java/awt/event/MouseAdapter.java: New file.
1011         * java/awt/event/KeyAdapter.java: New file.
1012         * java/awt/event/FocusAdapter.java: New file.
1013         * java/awt/event/ContainerAdapter.java: New file.
1014         * java/awt/event/ComponentEvent.java: Finished.
1015         * java/awt/event/AdjustmentEvent.java: New file.
1016         * java/awt/event/ComponentAdapter.java: New file.
1017         * java/awt/event/ActionEvent.java: Finished.
1018         * java/awt/event/MouseMotionListener.java: New file.
1019         * java/awt/event/MouseListener.java: New file.
1020         * java/awt/event/ItemListener.java: New file.
1021         * java/awt/event/InputMethodListener.java: New file.
1022         * java/awt/event/ContainerListener.java: New file.
1023         * java/awt/event/FocusListener.java: New file.
1024         * java/awt/event/ComponentListener.java: New file.
1025         * java/awt/event/AWTEventListener.java: New file.
1026         * java/awt/event/AdjustmentListener.java: New file.
1027
1028 2000-04-08  Anthony Green  <green@cygnus.com>
1029
1030         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
1031         check when we have to.
1032
1033         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
1034         x) as `inline'.
1035
1036         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
1037         one method call.
1038
1039         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
1040         inline hasMoreElements.
1041
1042 2000-04-05  Tom Tromey  <tromey@cygnus.com>
1043
1044         * configure: Rebuilt.
1045         * configure.in: Recognize --enable-java-awt.
1046         (AWT): New conditional.
1047         * Makefile.in: Rebuilt.
1048         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
1049         requested.
1050         (libgcjawt_la_SOURCES): New macro.
1051         (EXTRA_libgcjawt_la_SOURCES): Likewise.
1052         (libgcjawt_la_DEPENDENCIES): Likewise.
1053         (libgcjawt_la_LIBADD): Likewise.
1054         (libgcjawt_la_LDFLAGS): Likewise.
1055         (libgcj.zip): Depend on cond_java_awt_source_files
1056         (cond_awt_java_source_files): New macro.
1057         (MOSTLYCLEANFILES): Added awto_files.
1058         (awto_files): New macro.  Use where javao_files used.
1059         (nat_headers): Use cond_awt_java_source_files.
1060
1061 2000-04-04  Tom Tromey  <tromey@cygnus.com>
1062
1063         * Makefile.in: Rebuilt.
1064         * Makefile.am (awt_java_source_files): Added AWTException.java.
1065         * java/awt/AWTException.java: New file.
1066
1067 2000-04-03  Tom Tromey  <tromey@cygnus.com>
1068
1069         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
1070         commentary from Alex.
1071
1072         * Makefile.in: Rebuilt.
1073         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
1074         From H.J. Lu.
1075
1076 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
1077
1078         * configure: Rebuilt.
1079         * configure.in: Add --disable-jvmpi.
1080         * include/config.h.in: Rebuilt.
1081         * acconfig.h: Add ENABLE_JVMPI.
1082          
1083         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
1084         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
1085         (_Jv_JVMPI_Notify_THREAD_END): New define.
1086         (_Jv_JVMPI_Notify_THREAD_END): New define.
1087         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
1088         (_Jv_JVMPI_Notify_THREAD_END): Declare.
1089         (_Jv_JVMPI_Notify_THREAD_END): Declare.
1090
1091         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
1092         events.
1093
1094         * java/lang/natThread.cc: Include JVMPI headers if necessary.
1095         (finish_): Generate JVMPI thread end events.
1096         (run_): Generate JVMPI thread start events.
1097         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
1098         preloaded JNI library.
1099         Include JVMPI headers if necessary.
1100         (run): Generate JVMPI thread start events.
1101
1102         * boehm.cc: Define GC_disable and GC_enable.
1103         (_Jv_DisableGC): New function.
1104         (_Jv_EnableGC): New function.
1105         (disable_gc_mutex): Declare.
1106         * nogc.cc (_Jv_DisableGC): New function.
1107         (_Jv_EnableGC): New function.
1108           
1109         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
1110         (_Jv_JVMPI_Interface): Define.
1111         (jvmpiEnableEvent): New function.
1112         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
1113           
1114         * include/jvmpi.h: New file.
1115
1116 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
1117
1118         * Makefile.in: New #defines and friends for Thread.h.
1119         * Makefile.am: Ditto.
1120         * posix-threads.cc: (struct starter): Remove `object'.
1121         (_Jv_CondWait): Use interruptable condition variables and new
1122         recursive mutexes. New return codes on interrupt or non-ownership
1123         of mutex.
1124         (_Jv_CondNotify): Ditto.
1125         (_Jv_CondNotifyAll): Ditto.
1126         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
1127         the target thread by signaling its wait condition.
1128         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
1129         not the starter struct. Initialize wait_mutex and wait_cond.
1130         (_Jv_MutexLock): New recursive mutex implementation. Moved from 
1131         posix-threads.h.
1132         (_Jv_MutexUnlock): Ditto.
1133         (really_start): Set info->data->thread from pthread_self() to work 
1134         around a race condition. Destroy wait_mutex and wait_cond when run()
1135         returns.
1136         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
1137         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
1138         set.
1139         startable_flag: New private field.
1140         (Thread): Initialize `startable_flag'.
1141         (toString): Check for null thread group.
1142         * java/lang/natThread.cc: (struct natThread): New fields 
1143         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
1144         (class locker): Removed.
1145         (initialize_native): Initialize `join_cond' and `join_mutex'.
1146         (interrupt): Now just calls _Jv_ThreadInterrupt().
1147         (join): Simplified. Just wait on the target thread's join condition.
1148         (finish_): Remove join list code. Unset thread group. Signal
1149         potential joiners by notifying the dying threads join_cond.
1150         (start): Check for illegal restarts.
1151         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
1152         act appropriatly.
1153         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
1154         #defines and #ifdefs.
1155         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
1156         `wait_mutex', `next'.
1157         (struct _Jv_ConditionVariable_t): Define as a struct instead of 
1158         directly mapping to pthread_cond_t.
1159         (struct _Jv_Mutex_t): New recursive implementation.
1160         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
1161         _Jv_HaveCondDestroy: Never define this for posix-threads.
1162         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
1163         (_Jv_CondNotifyAll): Ditto.
1164         (_Jv_MutexLock): Ditto.
1165         (_Jv_MutexUnlock): Ditto.
1166         (_Jv_MutexInit): Changed to reflect new mutex implementation.
1167         (_Jv_MutexDestroy): Ditto.
1168         (_Jv_CondDestroy): Removed.
1169         (_Jv_PthreadGetMutex): Removed.
1170         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an 
1171         error. Add a FIXME about this.
1172         (_Jv_CondNotifyAll): Ditto.
1173         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess 
1174         _JV_NOT_OWNER on other errors. Add FIXME.
1175
1176 2000-03-26  Tom Tromey  <tromey@cygnus.com>
1177
1178         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
1179         set, throw it.
1180         (call): Don't throw exception here.
1181
1182 2000-03-26  Tom Tromey  <tromey@cygnus.com>
1183
1184         * java/lang/mprec.h: Use SIZEOF_VOID_P.
1185         * interpret.cc: Use SIZEOF_VOID_P.
1186         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
1187         (_Jv_loadLong): Likewise.
1188         (_Jv_storeDouble): Likewise.
1189         * configure: Rebuilt.
1190         * configure.in: Check size of void*.
1191
1192         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
1193
1194 2000-03-26  Hans Boehm  <boehm@acm.org>
1195
1196         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
1197         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
1198         machine.
1199         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
1200         __IEEE_LITTLE_ENDIAN appropriately on IA64.
1201         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
1202         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
1203         case.
1204         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
1205         (FFI_RAW_SIZE): Likewise.
1206         (_Jv_InterpMethod::ncode): Use them.
1207         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
1208         STORED): Define differently on a 64 bit machine.
1209         (continue1): Use ffi_java_raw_call when appropriate.
1210  
1211 2000-03-24  Warren Levy  <warrenl@cygnus.com>
1212
1213         * java/math/BigInteger.java(divide): Handle the special case when
1214         dividing by 1 and the high bit of the dividend is set.
1215         (setShiftRight): Handle case when count == 0.
1216
1217 2000-03-24  Warren Levy  <warrenl@cygnus.com>
1218
1219         * java/awt/Font.java(isBold): Fix syntax error.
1220         (isItalic): ditto.
1221         * java/awt/Frame.java(postEvent): ditto.
1222         * java/awt/Menu.java(postEvent): ditto.
1223         * java/awt/MenuBar.java(postEvent): ditto.
1224         * java/awt/Toolkit.java(init): Included a stub.
1225
1226 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
1227
1228         * java/awt/Event.java: Add all the event type constants.
1229         (Event): Implemented constructors.
1230         (controlDown): Implemented.
1231         (metaDown): Implemented.
1232         (paramString): Stubbed.
1233         (shiftDown): Implemented.
1234         (toString): Implemented.
1235         (translate): Implemented.
1236
1237 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
1238
1239         * java/lang/natClass.cc (isInstance): Initialize `this'.
1240         (isAssignableFrom): Initialize `this' and `klass'.
1241         (_Jv_IsAssignableFrom): If an interface has no idt, it is not 
1242         implemented by any loaded class, so return false.
1243         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), 
1244         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
1245
1246 2000-03-19  Warren Levy  <warrenl@cygnus.com>
1247
1248         * java/awt/Color.java: Specified java.io for Serializable.
1249         * java/awt/Toolkit.java: Imported java.net.URL.
1250
1251 2000-03-19  Warren Levy  <warrenl@cygnus.com>
1252
1253         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
1254
1255 2000-03-16  Warren Levy  <warrenl@cygnus.com>
1256
1257         * java/awt/Color.java: New file.
1258         * java/awt/Graphics.java: New file.
1259         * java/awt/Image.java: New file.
1260         * java/awt/Paint.java: New file.
1261         * java/awt/PaintContext.java: New file.
1262         * java/awt/Transparency.java: New file.
1263         * java/util/Collection.java: New file.
1264         * java/util/Comparator.java: New file.
1265         * java/util/Iterator.java: New file.
1266         * java/util/List.java: New file.
1267         * java/util/ListIterator.java: New file.
1268         * Makefile.am: Added above new files.
1269         * Makefile.in: Rebuilt.
1270
1271         * java/awt/Font.java (PLAIN): New field.
1272         (BOLD): New field.
1273         (ITALIC): New field.
1274         (ROMAN_BASELINE): New field.
1275         (CENTER_BASELINE): New field.
1276         (HANGING_BASELINE): New field.
1277         (name): New field.
1278         (style): New field.
1279         (size): New field.
1280         (pointSize): New field.
1281         (Font): Implemented constructor.
1282         (isPlain): Implemented method.
1283         (isBold): Implemented method.
1284         (isItalic): Implemented method.
1285         (getName): Implemented method.
1286         (getStyle): Implemented method.
1287         (getSize): Implemented method.
1288         (getSize2D): Implemented method.
1289         (decode): Stubbed.
1290         * java/awt/Frame.java (getFont): Stubbed.
1291         (postEvent): Stubbed.
1292         (remove): Stubbed.
1293         * java/awt/Menu.java (postEvent): Stubbed.
1294         * java/awt/MenuBar.java (getFont): Stubbed.
1295         (postEvent): Stubbed.
1296         * java/awt/Toolkit.java (getImage): Added abstract method.
1297
1298 2000-03-15  Tom Tromey  <tromey@cygnus.com>
1299
1300         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
1301
1302         * prims.cc (win32_exception_handler): Reformatted.
1303
1304         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
1305         (_Jv_HaveMutexDestroy): Likewise.
1306
1307 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
1308
1309         * java/io/natFileDescriptorWin32.cc: New file.
1310         * java/io/natFileWin32.cc: New file.
1311         * java/net/natInetAddress.cc: Added conditional inclusion of
1312         Windows / Winsock headers.
1313         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
1314         inclusion of Windows / Winsock headers.
1315         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
1316         Windows / Winsock headers.
1317         * include/win32-signal.h: New file.
1318         * include/win32-threads.h: New file.
1319         * win32-threads.cc: New file.
1320         * exception.cc (win32_get_restart_frame): New function.
1321         * prims.cc (win32_exception_handler): New function.
1322         (main_init) Performs Winsock initialisation.
1323         (main_init) Installs exeception handler.
1324
1325 2000-03-14  Tom Tromey  <tromey@cygnus.com>
1326
1327         * jni.cc (mangled_name): Fixed assertion.
1328         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
1329         turned assert into actual failure.
1330
1331 2000-03-09  Warren Levy  <warrenl@cygnus.com>
1332
1333         * java/security/Key.java(serialVersionUID): Set to 0 for now.
1334         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
1335         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
1336
1337 2000-03-09  Warren Levy  <warrenl@cygnus.com>
1338
1339         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
1340         * java/security/DigestException.java: New file.
1341         * java/security/GeneralSecurityException.java: New file.
1342         * java/security/InvalidAlgorithmParameterException.java: New file.
1343         * java/security/InvalidKeyException.java: New file.
1344         * java/security/InvalidParameterException.java: New file.
1345         * java/security/Key.java: New file.
1346         * java/security/KeyException.java: New file.
1347         * java/security/KeyPair.java: New file.
1348         * java/security/KeyPairGenerator.java: New file.
1349         * java/security/KeyPairGeneratorSpi.java: New file.
1350         * java/security/NoSuchProviderException.java: New file.
1351         * java/security/PrivateKey.java: New file.
1352         * java/security/Provider.java: New file.
1353         * java/security/PublicKey.java: New file.
1354         * java/security/SecureRandom.java: New file.
1355         * java/security/Security.java: New file.
1356         * java/security/Signature.java: New file.
1357         * java/security/SignatureException.java: New file.
1358         * java/security/interfaces/DSAKey.java: New file.
1359         * java/security/interfaces/DSAParams.java: New file.
1360         * java/security/interfaces/DSAPrivateKey.java: New file.
1361         * java/security/interfaces/DSAPublicKey.java: New file.
1362         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
1363         * java/security/interfaces/RSAPrivateKey.java: New file.
1364         * java/security/interfaces/RSAPublicKey.java: New file.
1365         * java/security/spec/AlgorithmParameterSpec.java: New file.
1366         * java/security/spec/InvalidKeySpecException.java: New file.
1367         * java/security/spec/InvalidParameterSpecException.java: New file.
1368         * java/security/spec/KeySpec.java: New file.
1369         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
1370         * java/security/spec/RSAPrivateKeySpec.java: New file.
1371         * java/security/spec/RSAPublicKeySpec.java: New file.
1372         * Makefile.am: Added above java.security files.
1373         * Makefile.in: Rebuilt.
1374
1375         * java/security/MessageDigest.java: Rewritten.
1376         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
1377
1378 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
1379
1380         * README: Updated.
1381
1382 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
1383
1384         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
1385         _Jv_PrepareConstantTimeTables.
1386         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
1387         classes should have an IDT, so don't return if klass is an array
1388         class.
1389
1390 2000-03-08  Tom Tromey  <tromey@cygnus.com>
1391
1392         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
1393         of `void' to be created.
1394
1395 2000-03-08  Warren Levy  <warrenl@cygnus.com>
1396
1397         * java/math/BigInteger.java(signum): Handle zero properly.
1398
1399 2000-03-07  Tom Tromey  <tromey@cygnus.com>
1400
1401         * All files: Updated copyright information.
1402         * COPYING: New file.
1403         * COPYING.LIB: Removed.
1404         * LIBGCJ_LICENSE: We now use GPL + special exception.
1405
1406 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
1407
1408         * resolve.cc (_Jv_SearchMethodInClass): New function.
1409         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
1410         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
1411
1412 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
1413
1414         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
1415         (struct _Jv_ifaces): New declaration.
1416         JV_CLASS: New macro definition.
1417         (getComponentType): Relocate below isArray() for inlining.
1418         (getModifiers): Declare `inline'.
1419         (getSuperclass): Ditto.
1420         (isArray): Ditto.
1421         (isPrimitive): Ditto.
1422         (_Jv_IsAssignableFrom): New prototype.
1423         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
1424         linkage.
1425         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
1426         Check for JV_STATE_DONE before invoking initializeClass().
1427         (_Jv_PrepareConstantTimeTables): New prototype.
1428         (_Jv_GetInterfaces): Ditto.
1429         (_Jv_GenerateITable): Ditto.
1430         (_Jv_GetMethodString): Ditto.
1431         (_Jv_AppendPartialITable): Ditto.
1432         (_Jv_FindIIndex): Ditto.
1433         depth, ancestors, idt: New class fields.
1434
1435         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
1436         inline function `_Jv_IsAssignableFrom'. Use that function.
1437         (isInstance): Declare `inline'.
1438         (initializeClass): Get lock on class before checking `state'. Unlock 
1439         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with 
1440         the lock held.
1441         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
1442         (_Jv_IsAssignableFrom): New inline function. Test assignability using 
1443         class->depth and ancestor table.
1444         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
1445         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
1446         _Jv_IsAssignableFrom.
1447         (_Jv_CheckArrayStore): Ditto.
1448         (_Jv_LookupInterfaceMethodIdx): New function. 
1449         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
1450         (_Jv_PrepareConstantTimeTables): New function.
1451         (_Jv_IndexOf): Ditto.
1452         (_Jv_GetInterfaces): Ditto.
1453         (_Jv_GenerateITable): Ditto.
1454         (_Jv_GetMethodString): Ditto.
1455         (_Jv_AppendPartialITable): Ditto.
1456         iindex_mutex, iindex_mutex_initialized: New static fields.
1457         (_Jv_FindIIndex): New function.
1458
1459         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
1460
1461         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
1462         (_Jv_CheckArrayStore): Ditto.
1463         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
1464         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
1465         Moved to gcj/array.h.
1466         (_Jv_Realloc): New function.
1467
1468         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
1469
1470         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
1471         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
1472         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
1473         JvNewDoubleArray): Implementations moved from prims.cc and
1474         declared `inline'.
1475
1476         * gcj/javaprims.h (_Jv_Realloc): Prototype.
1477
1478         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
1479
1480 2000-03-06  Tom Tromey  <tromey@cygnus.com>
1481
1482         * jni.cc (MARK_NONE): New define.
1483         (MARK_USER): Likewise.
1484         (MARK_SYSTEM): Likewise.
1485         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
1486         smaller.
1487         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
1488         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
1489         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
1490         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
1491         argument.
1492         (call): Use MARK_SYSTEM.
1493         (_Jv_GetJNIEnvNewFrame): New function.
1494         (_Jv_LookupJNIMethod): New function.
1495         (_Jv_JNI_PopSystemFrame): New function.
1496         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
1497
1498 2000-03-05  Tom Tromey  <tromey@cygnus.com>
1499
1500         Fix for PR libgcj/43:
1501         * include/Makefile.in: Rebuilt.
1502         * include/Makefile.am (include_HEADERS): New define.
1503
1504 2000-03-05  Anthony Green  <green@redhat.com>
1505
1506         * gcj/javaprims.h ("Java"): Remove FirstThread.
1507
1508         * configure.host: Fix __NO_MATH_INLNES botch.
1509
1510         * Makefile.in: Rebuilt.
1511         * Makefile.am (nat_source_files): Move natFirstThread.cc.
1512         (gnu/gcj/runtime/FirstThread.h): Moved.
1513         (ordinary_java_source_files): Move FirstThread.java.
1514         * prims.cc: Deal with FirstThread movement.
1515         (JvRunMain): Ditto.
1516         (_Jv_RunMain): Ditto.
1517
1518         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
1519         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
1520
1521 2000-03-05  Warren Levy  <warrenl@cygnus.com>
1522
1523         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
1524           Handle null addresses.
1525
1526 2000-03-04  Anthony Green  <green@redhat.com>
1527
1528         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
1529         See PR gcj/151.
1530
1531 2000-03-04  Anthony Green  <green@redhat.com>
1532
1533         * configure: Rebuilt.
1534         * configure.in (ZLIBTESTSPEC): New macro.
1535         (GCTESTSPEC): New macro.
1536         (LIBGCJTESTSPEC): New macro.
1537         * libgcj-test.spec.in: New file.
1538
1539 2000-03-02  Tom Tromey  <tromey@cygnus.com>
1540
1541         * include/java-interp.h: Don't include MethodInvocation.h.
1542         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
1543         * Makefile.in: Rebuilt.
1544         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
1545         (ordinary_java_source_files): Don't mention
1546         MethodInvocation.java.
1547         * gnu/gcj/runtime/MethodInvocation.java: Removed.
1548         * interpret.cc (MethodInvocation::continue1): Removed.
1549         (run): Handle exceptions here.
1550         * java/lang/ClassLoader.java (defineClass1, defineClass2):
1551         Removed.
1552         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
1553         here.
1554         (defineClass2): Removed.
1555
1556         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
1557         Removed.
1558         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
1559         exceptions here.
1560         (hack_call): Removed.
1561
1562         * java/lang/Class.h (Class): Removed hackRunInitializers,
1563         hackTrampoline.
1564         * java/lang/natClass.cc (hackRunInitializers): Removed.
1565         (initializeClass): Catch exceptions here.
1566         Include ExceptionInInitializerError.h.
1567         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
1568         Removed.
1569
1570         * java/lang/Object.h (Object): Don't mention hack12_6.
1571         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
1572         here.
1573         * java/lang/Object.java (hack12_6): Removed.
1574
1575         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
1576         (start): Use run_, not run__.
1577         * java/lang/Thread.java (run_): Renamed from run__; old run_
1578         removed.
1579
1580         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
1581         (_Jv_JNI_EnsureLocalCapacity): Likewise.
1582         (_Jv_JNI_DefineClass): Likewise.
1583         (_Jv_JNI_ThrowNew): Likewise.
1584         (_Jv_JNI_AllocObject): Likewise.
1585         (_Jv_JNI_GetAnyMethodID): Likewise.
1586         (_Jv_JNI_CallAnyMethodV): Likewise.
1587         (_Jv_JNI_CallAnyMethodA): Likewise.
1588         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
1589         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
1590         (_Jv_JNI_GetAnyFieldID): Likewise.
1591         (_Jv_JNI_NewString): Likewise.
1592         (_Jv_JNI_NewStringUTF): Likewise.
1593         (_Jv_JNI_GetStringUTFChars): Likewise.
1594         (_Jv_JNI_NewObjectArray): Likewise.
1595         (_Jv_JNI_NewPrimitiveArray): Likewise.
1596         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
1597         (_Jv_JNI_GetStringRegion): Likewise.
1598         (_Jv_JNI_GetStringUTFRegion): Likewise.
1599         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1600         (_Jv_JNI_MonitorEnter): Likewise.
1601         (_Jv_JNI_MonitorExit): Likewise.
1602         (_Jv_JNI_ToReflectedField): Likewise.
1603         (_Jv_JNI_ToReflectedMethod): Likewise.
1604         (_Jv_JNI_RegisterNatives): Likewise.
1605         (_Jv_JNI_AttachCurrentThread): Likewise.
1606         (_Jv_JNI_DestroyJavaVM): Likewise.
1607
1608 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
1609
1610         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
1611         error caused by the incorrect casting of a long to an int.
1612
1613 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
1614
1615         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
1616         SIGSEV caused by use of the wrong instance variable.
1617
1618 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
1619
1620         * java/io/File.java (File(String, String)): For dirPath, treat an
1621         empty String the same as `null'.
1622
1623 2000-02-26  Anthony Green  <green@cygnus.com>
1624
1625         * gnu/gcj/io/MimeTypes.java: Test for null.
1626
1627         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
1628         (JNI_GetCreatedJavaVMs): Remove compiler warning.
1629
1630         * java/net/URLConnection.java: Update copyright notice.
1631
1632 2000-02-25  Tom Tromey  <tromey@cygnus.com>
1633
1634         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
1635         `INTERPRETER'.
1636
1637 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
1638
1639         * java/net/URLConnection.java (initializeDateFormats): New
1640         private method.
1641         (getHeaderFieldDate): Call initializeDateFormats if required.
1642         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
1643         these.
1644         Fix for PR libgcj/38.
1645
1646 2000-02-24  Warren Levy  <warrenl@cygnus.com>
1647
1648         * java/math/BigInteger.java(ival): Made private.
1649         (words): Ditto.
1650         (neg): Ditto.
1651
1652 2000-02-20  Anthony Green  <green@cygnus.com>
1653
1654         * Makefile.in: Rebuilt.
1655         * Makefile.am (ordinary_java_source_files): Add
1656         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
1657
1658         * scripts/MakeDefaultMimeTypes.java: New file.
1659         * scripts/mime.types: New file.
1660         * scripts/classes.pl: Moved from top level.
1661         * classes.pl: Moved to scripts directory.
1662
1663         * java/net/URLConnection.java: Implement guessContentTypeFromName.
1664
1665         * gnu/gcj/io/MimeTypes.java: New file.
1666         * gnu/gcj/io/DefaultMimeTypes.java: New file.
1667
1668 2000-02-20  Tom Tromey  <tromey@cygnus.com>
1669
1670         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
1671
1672 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
1673
1674         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
1675         (setSize): ditto.
1676
1677 2000-02-18  Tom Tromey  <tromey@cygnus.com>
1678
1679         * include/jvm.h (_Jv_GetJavaVM): Declare.
1680         * include/java-interp.h (_Jv_GetFirstMethod): New function.
1681         (_Jv_MethodBase::get_method): New method.
1682         (_Jv_JNIMethod::set_function): New method.
1683         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
1684         (_Jv_JNI_RegisterNatives): New function.
1685         (_Jv_JNIFunctions): Updated for new functions.
1686         (_Jv_GetJavaVM): New function.
1687         (_Jv_JNI_GetJavaVM): Use it.  Now static.
1688         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
1689         is already a Java thread but does not have a JNIEnv yet.
1690
1691         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
1692         function.
1693
1694 2000-02-17  Tom Tromey  <tromey@cygnus.com>
1695
1696         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
1697         Fixes PR gcj/152.
1698
1699 2000-02-16  Tom Tromey  <tromey@cygnus.com>
1700
1701         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
1702
1703         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
1704         (_Jv_JNI_NewObject): Likewise.
1705         (_Jv_JNI_NewObjectA): Likewise.
1706         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
1707         as "return" type to _Jv_CallAnyMethodA.
1708         (_Jv_JNI_CallAnyMethodA): Likewise.
1709         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
1710
1711         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
1712         findClass.
1713
1714 2000-02-15  Tom Tromey  <tromey@cygnus.com>
1715
1716         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
1717         jni_arg_types.
1718         (init_cif): Added `rtype_p' argument.
1719         * include/java-interp.h (class _Jv_MethodBase): Added
1720         args_raw_size.
1721         (class _Jv_InterpMethod): Removed args_raw_size.
1722         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
1723         * jni.cc (call): Pass JNIEnv and (for static methods only) the
1724         class pointer as well as the ordinary arguments.
1725
1726         * jni.cc (mangled_name): Skip leading `(' in signature.
1727
1728         * jni.cc (add_char): Added missing `else'.
1729
1730         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
1731         fails.
1732
1733 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
1734
1735         * NEWS: Updated.
1736
1737         * java/lang/natRuntime.cc (_load): Include library path with
1738         exception message.
1739
1740         * java/lang/natSystem.cc (init_properties): set java.lang.classpath 
1741         property.
1742
1743         * java/lang/natThread.cc (dumpStack): Removed.
1744         * java/lang/Thread.java (dumpStack): Implemented.
1745
1746 2000-02-15  Tom Tromey  <tromey@cygnus.com>
1747
1748         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
1749         with `lib' for loadLibrary.  Fixes PR gcj/150.
1750
1751 2000-02-14  Warren Levy  <warrenl@cygnus.com>
1752
1753         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
1754
1755         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
1756           New constructor.
1757         (min): Implemented.
1758         (max): Implemented.
1759         (modPow): Rewritten to not use the naive, slow, brute force approach.
1760         (isProbablePrime): Implemented.
1761         (testBit): Implemented.
1762         (flipBit): Implemented.
1763         (getLowestSetBit): Implemented.
1764
1765 2000-02-16  Anthony Green  <green@redhat.com>
1766
1767         * configure.host: Use the same options for i386 and i486 as we do
1768         for i586 and i686.
1769
1770 2000-02-12  Tom Tromey  <tromey@cygnus.com>
1771
1772         * java/io/File.java (createTempFile): Use low bits from counter,
1773         not high bits.
1774
1775 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
1776
1777         * THANKS: More thanks.
1778
1779 2000-02-11  Tom Tromey  <tromey@cygnus.com>
1780
1781         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
1782         astore instruction.  From Hans Boehm.
1783
1784 2000-02-11  Warren Levy  <warrenl@cygnus.com>
1785
1786         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
1787         (BigInteger(String)): New constructor.
1788         (not): Rewritten using version from Kawa's BitOps class.
1789         (valueOf): New private methods from Kawa's BitOps class.
1790         (swappedOp): ditto.
1791         (bitOp): ditto.
1792         (setBitOp): ditto.
1793         (and): Implemented.
1794         (or): Implemented.
1795         (xor): Implemented.
1796         (andNot): Implemented.
1797         (clearBit): Implemented.
1798         (setBit): Implemented.
1799         (bitCount): Implemented.
1800         (toByteArray): Implemented.
1801
1802 2000-02-11  Tom Tromey  <tromey@cygnus.com>
1803
1804         * java/io/File.java (nextValue): Now synchronized.
1805
1806 2000-02-10  Tom Tromey  <tromey@cygnus.com>
1807
1808         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
1809         * java/io/FileDescriptor.java (EXCL): New static field.
1810         * java/io/File.java (tmpdir): New static field.
1811         (createTempFile): New method.
1812         (nextValue): New method.
1813         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
1814         property.
1815
1816         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
1817         (jboolean): Declare as an attributed int, not a bool.
1818         (_Jv_func): Declare differently for C.
1819
1820         * gnu/gcj/jni/natNativeThread.cc: New file.
1821         * gnu/gcj/jni/NativeThread.java: New file.
1822         * java/lang/Thread.java (data): Now a RawData.
1823         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
1824         Declare.
1825         * Makefile.in: Rebuilt.
1826         * Makefile.am (java/lang/Thread.h): New target.
1827         (ordinary_java_source_files): Added NativeThread.java.
1828         (nat_source_files): Added natNativeThread.cc.
1829         * java/lang/natThread.cc: Include <jni.h>
1830         (struct natThread): Added `jni_env' field.
1831         (_Jv_GetCurrentJNIEnv): New function.
1832         (_Jv_SetCurrentJNIEnv): Likewise.
1833         (initialize_native): Initialize jni_env.
1834         Include RawData.h.
1835         * jni.cc (ThreadGroupClass): New define.
1836         (_Jv_JNI_InvokeFunctions): New structure.
1837         (JNI_GetCreatedJavaVMs): New function.
1838         (the_vm): New global.
1839         (JNI_GetDefaultJavaVMInitArgs): New function.
1840         Include NativeThread.h.
1841         (NativeThreadClass): New define.
1842         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
1843         (_Jv_JNI_DestroyJavaVM): New function.
1844         (_Jv_JNI_AttachCurrentThread): New function.
1845         (_Jv_JNI_DetachCurrentThread): New function.
1846         (_Jv_JNI_GetEnv): New function.
1847         (JNI_CreateJavaVM): New function.
1848         (_Jv_JNI_GetJavaVM): New function.
1849         (_Jv_JNIFunctions): Added entry for GetJavaVM.
1850         * include/jni.h (JavaVMAttachArgs): New structure.
1851         (JNI_EDETACHED): New define.
1852         (JNI_EVERSION): Likewise.
1853         (JavaVM): Define properly.
1854         (struct JNIInvokeInterface): New structure.
1855         (class _Jv_JavaVM): New class.
1856         (JNI_OnLoad, JNI_OnUnload): Declare.
1857         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
1858         JNI_GetCreatedJavaVMs): Declare.
1859         (JavaVMInitArgs): New typedef.
1860         (JavaVMOption): Likewise.
1861         (JNI_ERR): New define.
1862         (JNI_OK): Likewise.
1863
1864 2000-02-10  Andrew Haley  <aph@cygnus.com>
1865
1866         * interpret.cc: Don't include fdlibm.h.
1867         Replace #if with #ifdef throughout.
1868         Declare extern __ieee754_fmod.
1869         (continue1): Remove op_getfield, op_getstatic, op_putfield,
1870         op_putstatic insns.
1871         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
1872         Search class hierarchy for superclass vtable.
1873
1874         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
1875         off the end of a pointer list.
1876
1877         * java/lang/natThread.cc (stop): Don't abort, throw an exception
1878         instead.
1879         (suspend): Ditto.
1880         
1881 2000-02-09  Tom Tromey  <tromey@cygnus.com>
1882
1883         * java/lang/natRuntime.cc (_load): Call add_library.
1884         (loadLibraryInternal): Likewise.
1885
1886         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
1887         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
1888         (Output_iconv::finalize): Likewise.
1889
1890 2000-02-08  Tom Tromey  <tromey@cygnus.com>
1891
1892         * java/util/Properties.java (setProperty): New method.
1893         (store): New method.
1894
1895 2000-02-07  Tom Tromey  <tromey@cygnus.com>
1896
1897         * java/lang/Runtime.java (_load): Declare.
1898         (load, loadLibrary): Wrote in terms of _load.
1899         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
1900         library.
1901         (loadLibrary): Likewise.
1902         Include <jni.h>.
1903         (_load): New method.
1904         (loadLibrary, load): Removed.
1905
1906         * jni.cc (ThrowableClass): New define.
1907         (_Jv_JNI_Throw): Check argument.
1908         (_Jv_JNI_ThrowNew): Likewise.
1909         (wrap_value): Don't wrap object if it is NULL.
1910         (_Jv_JNI_DefineClass): Use wrap_value.
1911         (_Jv_JNI_FindClass): Likewise.
1912         (_Jv_JNI_GetSuperclass): Likewise.
1913         (_Jv_JNI_ExceptionOccurred): Likewise.
1914         (_Jv_JNI_AllocObject): Likewise.
1915         (_Jv_JNI_GetObjectClass): Likewise.
1916         (_Jv_JNI_NewString): Likewise.
1917         (_Jv_JNI_NewStringUTF): Likewise.
1918         (_Jv_JNI_NewObjectArray): Likewise.
1919         (_Jv_JNI_GetObjectArrayElement): Likewise.
1920         (_Jv_JNI_NewPrimitiveArray): Likewise.
1921         (_Jv_JNI_ToReflectedField): Likewise.
1922         (_Jv_JNI_ToReflectedMethod): Likewise.
1923         (_Jv_JNI_AllocObject): Check argument.
1924         (_Jv_JNI_NewObjectV): Likewise.
1925         (_Jv_JNI_NewObject): Likewise.
1926         (_Jv_JNI_NewObjectA): Likewise.
1927         (_Jv_JNI_GetObjectClass): Likewise.
1928         (_Jv_JNI_GetField): Likewise.
1929         (_Jv_JNI_SetField): Likewise.
1930
1931         * interpret.cc (PUSHL): Don't use expression statement.
1932         (PUSHD): Likewise.
1933         (LOADL): Likewise.
1934         (STOREL): Likewise.
1935
1936         * jni.cc (add_char): Conditional on INTERPRETER.
1937         (mangled_name): Likewise.
1938         (call): Likewise.
1939         * include/java-interp.h (class _Jv_MethodBase): Conditional on
1940         INTERPRETER.
1941         (class _Jv_JNIMethod): Likewise.
1942
1943 2000-02-04  Warren Levy  <warrenl@cygnus.com>
1944
1945         * Makefile.am: Added MPN.java and BigInteger.java.
1946         * Makefile.in: Rebuilt.
1947         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
1948         <per@bothner.com>.
1949         * java/math/BigInteger.java: New file.  Based primarily on
1950         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
1951
1952 2000-02-04  Tom Tromey  <tromey@cygnus.com>
1953
1954         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
1955         pointers.
1956         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
1957         if the method is native.
1958         * resolve.cc (ncode): Don't handle native methods.
1959         (_Jv_JNIMethod::ncode): New method.
1960         (_Jv_PrepareClass): Handle native methods.
1961         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
1962         Include AbstractMethodError.h.
1963         (add_char): New function.
1964         (mangled_name): Likewise.
1965         * include/java-interp.h (class _Jv_JNIMethod): New class.
1966         (class _Jv_MethodBase): New class.
1967         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
1968         (_Jv_InterpClass): Changed `interpreted_methods' field to type
1969         `_Jv_MethodBase'.
1970
1971         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
1972         * java/lang/natRuntime.cc (libraries_size, libraries_count,
1973         libraries): New globals.
1974         (add_library): New function.
1975         (_Jv_FindSymbolInExecutable): New function.
1976
1977         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
1978         Now static.
1979
1980 2000-02-04  Andrew Haley  <aph@cygnus.com>
1981
1982         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
1983         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
1984         * java/lang/natThrowable.cc (printRawStackTrace): Rename
1985         printStackTrace to printRawStackTrace.
1986
1987 2000-02-03  Tom Tromey  <tromey@cygnus.com>
1988
1989         * java/util/Calendar.java (toString): New method.
1990         * java/util/SimpleTimeZone.java (clone): New method.
1991         (toString): New method.
1992         * java/util/TimeZone.java (clone): New method.
1993         * java/text/SimpleDateFormat.java (clone): New method.
1994         * java/text/NumberFormat.java (clone): New method.
1995         (equals): New method.
1996         * java/text/Format.java (clone): New method.
1997         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
1998         constructor.
1999         (clone): New method.
2000         * java/text/DateFormat.java (clone): New method.
2001         * java/text/Collator.java (clone): New method.
2002
2003 2000-02-03  Tom Tromey  <tromey@cygnus.com>
2004
2005         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
2006         method.
2007
2008 2000-02-01  Tom Tromey  <tromey@cygnus.com>
2009
2010         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
2011         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
2012         constructing the closure if the function is native.
2013         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
2014         a template function, #if'd out, or static.
2015         Include <java-interp.h>.
2016
2017         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
2018
2019         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
2020
2021         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
2022         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
2023         `locals == NULL'.
2024         (wrap_value): New function.
2025         (_Jv_JNI_CallAnyMethodV): Use it.
2026         (_Jv_JNI_CallAnyMethodA): Likewise.
2027         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
2028         (_Jv_JNI_GetStaticField): Likewise.
2029
2030         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
2031         (_Jv_JNI_GetStaticField): Likewise.
2032
2033 2000-01-31  Tom Tromey  <tromey@cygnus.com>
2034
2035         * prims.cc (_Jv_MallocUnchecked): New function.
2036         (main_init): Call _Jv_JNI_Init.
2037         * include/jvm.h (_Jv_MallocUnchecked): Declare.
2038         (_Jv_JNI_Init): Declare.
2039         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
2040         <string.h>.
2041         (_Jv_JNI_NewGlobalRef): New function.
2042         (_Jv_JNI_DeleteGlobalRef): New function.
2043         (_Jv_JNI_DeleteLocalRef): New function.
2044         (_Jv_JNI_conversion_call): Initialize and clear local reference
2045         frame.
2046         (_Jv_JNI_NewLocalRef): New function.
2047         (struct _Jv_JNI_LocalFrame): New structure.
2048         (_Jv_JNI_PushLocalFrame): New function.
2049         (_Jv_JNI_EnsureLocalCapacity): New function.
2050         (FRAME_SIZE): New define.
2051         (_Jv_JNI_GetStringChars): Mark string, not characters.
2052         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
2053         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
2054         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
2055         elements.
2056         (_Jv_JNI_DefineClass): Make return value a local ref.
2057         (_Jv_JNI_FindClass): Likewise.
2058         (_Jv_JNI_GetSuperclass): Likewise.
2059         (_Jv_JNI_ExceptionOccurred): Likewise.
2060         (_Jv_JNI_AllocObject): Likewise.
2061         (_Jv_JNI_GetObjectClass): Likewise.
2062         (_Jv_JNI_CallAnyMethodV): Likewise.
2063         (_Jv_JNI_NewString): Likewise.
2064         (_Jv_JNI_NewStringUTF): Likewise.
2065         (_Jv_JNI_NewObjectArray): Likewise.
2066         (_Jv_JNI_GetObjectArrayElement): Likewise.
2067         (_Jv_JNI_ToReflectedField): Likewise.
2068         (_Jv_JNI_ToReflectedMethod): Likewise.
2069         (_Jv_JNIFunctions): Updated table for new functions.
2070         (_Jv_JNI_Init): New function.
2071         (mark_for_gc): Wrote.
2072         (unmark_for_gc): Wrote.
2073         * include/jni.h (struct JNINativeInterface): Removed name from
2074         PopLocalFrame parameter.
2075         (class _Jv_JNIEnv): Added `locals' field.
2076
2077 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
2078
2079         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
2080         (write): Ditto.
2081
2082 2000-01-30  Tom Tromey  <tromey@cygnus.com>
2083
2084         * include/config.h.in: Rebuilt.
2085         * acconfig.h (HAVE_ICONV): Define.
2086         * configure: Rebuilt.
2087         * configure.in: Check for `iconv' function.
2088         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
2089         no specific encoder exists.
2090         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
2091         no specific encoder exists.
2092         * Makefile.in: Rebuilt.
2093         * Makefile.am (convert_source_files): Mention Input_iconv.java and
2094         Output_iconv.java.
2095         (nat_source_files): Added natIconv.cc.
2096         * gnu/gcj/convert/natIconv.cc: New file.
2097         * gnu/gcj/convert/Input_iconv.java: New file.
2098         * gnu/gcj/convert/Output_iconv.java: New file.
2099
2100 2000-01-28  Tom Tromey  <tromey@cygnus.com>
2101
2102         * Makefile.in: Rebuilt.
2103         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
2104
2105 2000-01-26  Tom Tromey  <tromey@cygnus.com>
2106
2107         * gcj/method.h (JvNumMethods): Moved from Class.h.
2108         (JvGetFirstMethod): Likewise.
2109         * java/lang/Class.h (Object): Updated decl of
2110         _Jv_JNI_ToReflectedField.
2111         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
2112         * Makefile.in: Rebuilt.
2113         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
2114         argument of _Jv_JNI_ToReflectedField.
2115         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
2116         as a friend.
2117         (java/lang/reflect/Method.h): Likewise.
2118         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
2119         __GCJ_JNI_IMPL__.
2120         (jweak): New typedef.
2121         (struct JNINativeInterface): Correctly declare remaining entries.
2122         * jni.cc: Include Class.h, ClassLoader.h.
2123         (_Jv_JNI_FindClass): New function.
2124         (_Jv_JNI_DefineClass): New function.
2125         (_Jv_JNI_conversion_call): New function.
2126         (_Jv_JNI_FindClass): Use current class loader to find class.
2127         (_Jv_JNI_ExceptionCheck): New function.
2128         (_Jv_JNI_FromReflectedField): Now static.
2129         (MethodClass): New define.
2130         (_Jv_JNI_FromReflectedMethod): New function.
2131         (_Jv_JNI_ToReflectedMethod): Likewise.
2132         Include Method.h.
2133         (_Jv_JNI_IsAssignableFrom): Renamed.
2134         (_Jv_JNI_GetStringRegion): New function.
2135         Include StringIndexOutOfBoundsException.h.
2136         (_Jv_JNI_GetStringUTFRegion): New function.
2137         (_Jv_JNIFunctions): Updated for new functions.
2138         (_Jv_JNI_GetPrimitiveArrayCritical): New function
2139         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
2140         (_Jv_JNI_GetStringCritical): New function.
2141         (_Jv_JNI_ReleaseStringCritical): Likewise.
2142         (get_throwable): Removed.
2143         (GCJ_JV_JNIENV_FRIEND): Removed.
2144         (__GCJ_JNI_IMPL__): Define.
2145         Include method.h.
2146
2147         * resolve.cc (get_ffi_type_from_signature): Handle case where
2148         boolean is an int.
2149
2150 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
2151
2152         * interpret.cc (run): Don't call println.
2153         Don't include PrintStream.h.
2154
2155         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
2156         nameIndex.  Use "jint" as type for boffset.
2157         * java/lang/Class.h (struct _Jv_Method): Made accflags a
2158         _Jv_ushort.
2159         (Class): Likewise.  Also changed type of method_count,
2160         vtable_method_count, size_in_bytes, field_count,
2161         static_field_count, interface_count.
2162         * gcj/array.h (__JArray): Made `length' a const jsize, not an
2163         int.
2164
2165 2000-01-21  Tom Tromey  <tromey@cygnus.com>
2166
2167         * java/lang/reflect/natConstructor.cc (newInstance): Use
2168         _Jv_CallAnyMethodA.
2169         * include/jvm.h: Declare _Jv_CallAnyMethodA.
2170         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
2171         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
2172         Include <jni.h>.
2173         (COPY): Removed.
2174         (invoke): Use _Jv_CallAnyMethodA.
2175         (VAL): Redefined.
2176         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
2177         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
2178         functions.
2179         (struct _Jv_Method): Added getNextMethod method.
2180         (JvNumMethods): New function.
2181         (JvGetFirstMethod): Likewise.
2182         * gcj/field.h (JvGetFirstStaticField): New function.
2183         (JvNumStaticFields): Likewise.
2184         (getNextField): Renamed from getNextInstanceField.
2185         (struct _Jv_Field): New method getClass.
2186         * jni.cc: Wrote many new functions.
2187         * include/jni.h (JNI_TRUE): Define.
2188         (JNI_FALSE): Likewise.
2189         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
2190         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
2191         jcharArray, jfloatArray, jdoubleArray): New typedefs.
2192         (jfieldID, jmethodID): Likewise.
2193         (JNI_COMMIT, JNI_ABORT): New defines.
2194         (JNINativeMethod): New struct.
2195         (struct JNINativeInterface): Correctly declared more entries.
2196         (class _Jv_JNIEnv): Added `ex' member.
2197         (JNI_VERSION_1_1): New define.
2198         (JNI_VERSION_1_2): Likewise.
2199
2200         * boehm.cc (_Jv_MarkObj): Use getNextField, not
2201         getNextInstanceField.
2202
2203 2000-01-20  Tom Tromey  <tromey@cygnus.com>
2204
2205         * resolve.cc (StringClass): Removed.
2206         * defineclass.cc (StringClass): Removed.
2207
2208 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
2209
2210         * NEWS: updated.
2211
2212 2000-01-19  Tom Tromey  <tromey@cygnus.com>
2213
2214         * interpret.cc (PC_REGISTER_ASM): Removed.
2215
2216         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
2217         From Bryce McKinlay.
2218
2219         * All files: Updated copyright to reflect Cygnus purchase.
2220
2221 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
2222
2223         * configure: Rebuilt.
2224         * configure.in: Recognize --disable-interpreter.
2225
2226 2000-01-18  Andrew Haley  <aph@cygnus.com>
2227
2228         * name-finder.cc (lookup): Check for dladdr function.
2229         acconfig.h (HAVE_DLADDR): Add.
2230         configure.in: Check for HAVE_DLADDR
2231         configure: Rebuilt.
2232         include/config.h.in:  Rebuilt.
2233
2234 2000-01-17  Andrew Haley  <aph@cygnus.com>
2235
2236         * prims.cc (_Jv_RunMain): Set the name of this executable.
2237
2238 2000-01-17  Tom Tromey  <tromey@cygnus.com>
2239
2240         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
2241         when backtrace can't be computed.
2242
2243         * configure: Rebuilt.
2244         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
2245
2246         * java/lang/Runtime.java (loadLibraryInternal): Declare.
2247         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
2248         (_Jv_FindClassInCache): Likewise.
2249         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
2250         (findSystemClass): Try to load class from compiled module.
2251         Include Runtime.h.
2252         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
2253         (loadLibrary): Likewise.
2254         (lt_preloaded_symbols): Define.
2255         (loadLibraryInternal): New method.
2256         * include/config.h.in: Rebuilt.
2257         * acconfig.h (USE_LTDL): Added.
2258         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
2259         (INCLUDES): Added $(INCLTDL).
2260         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
2261         (libgcj_la_LIBADD): Likewise.
2262         * aclocal.m4, configure: Rebuilt.
2263         * configure.in: Added libltdl support.
2264
2265 2000-01-15  Tom Tromey  <tromey@cygnus.com>
2266
2267         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
2268
2269 2000-01-14  Andrew Haley  <aph@cygnus.com>
2270
2271         * java/lang/natThrowable.cc: New file.
2272
2273         * java/lang/Throwable.java (fillInStackTrace): Make native.
2274         (printStackTrace): Call native method to do this.
2275         (Throwable): Call fillInStackTrace.
2276         (stackTrace): New variable.
2277         
2278         * include/jvm.h: Add _Jv_ThisExecutable functions.
2279         
2280         * prims.cc: (_Jv_execName): New variable.
2281         (catch_segv): Call fillInStackTrace.
2282         (catch_fpe): Ditto.
2283         (_Jv_ThisExecutable): New functions.
2284         (JvRunMain): Set the name of this executable.
2285
2286         * Makefile.am: Add java/lang/natThrowable.cc.
2287         Add name-finder.cc.
2288         * Makefile.in: Rebuilt.
2289
2290         * acconfig.h: Add HAVE_PROC_SELF_EXE.
2291
2292         * configure.in: Force link with __frame_state_for in
2293         FORCELIBGCCSPEC.  Add new checks for backtrace.
2294         * include/config.h.in: Rebuilt.
2295
2296         * name-finder.cc: New file.
2297         * include/name-finder.h: New file.
2298
2299 2000-01-16  Anthony Green  <green@cygnus.com>
2300
2301         * java/lang/StringBuffer.java (StringBuffer): Don't special case
2302         null argument.
2303
2304 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
2305
2306         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
2307
2308 2000-01-13  Tom Tromey  <tromey@cygnus.com>
2309
2310         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
2311         not system loader, as initiating loader.
2312
2313 2000-01-11  Tom Tromey  <tromey@cygnus.com>
2314
2315         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
2316         HP/UX.  From David Scott Urban.
2317
2318 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
2319
2320         * java/lang/natMath.cc (pow): Cast args to `double', not
2321         `jdouble'.
2322         (atan2): Likewise.
2323         (IEEEremainder): Likewise.
2324         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
2325         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
2326
2327 2000-01-09  Anthony Green  <green@cygnus.com>
2328
2329         * java/lang/natString.cc (init): Test for overflow condition
2330         during out of bounds check.
2331         (getChars): Throw StringIndexOutOfBoundsException, not
2332         ArrayIndexOutOfBoundsException.
2333         (getBytes): Ditto.
2334         (regionMatches): Obey case option during string comparison.
2335
2336         * configure.host (ligcj_interpreter): New variable.  Enable
2337         interpreter by default on IA-32.
2338         * configure.in:  Examine libgcj_interpreter.
2339         * configure: Rebuilt.
2340
2341 2000-01-07  Tom Tromey  <tromey@cygnus.com>
2342
2343         * mauve-libgcj: Don't disable ClassTest.
2344
2345         * java/lang/natClass.cc (getClasses): Wrote.
2346
2347 2000-01-06  Tom Tromey  <tromey@cygnus.com>
2348
2349         * java/lang/natClass.cc (_getConstructors): Correctly check
2350         whether method name is the init name.
2351         (getMethod): Look at accflags on method in `klass', not `this'.
2352
2353 2000-01-05  Tom Tromey  <tromey@cygnus.com>
2354
2355         * java/lang/natClass.cc (getMethod): Compute offset relative to
2356         `klass's methods table, not `this's table.
2357
2358         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
2359         In unwrapping/widening case, check whether `k' is null, not
2360         whether it is primitive.  Initialize `num' from `argelts', not
2361         `paramelts'.  Correct create and pass arguments to ffi_call.
2362         Don't let presence of `this' argument affect index used to look in
2363         argument arrays.
2364         (COPY): Set appropriate element in `values' vector.
2365
2366         * java/lang/natClass.cc: Include <gcj/method.h>.
2367
2368         * java/lang/Class.h (_getMethods): Correctly declare as private,
2369         not public.
2370
2371         * java/lang/Class.h (_getMethods): Declare.
2372         * java/lang/Class.java (_getMethods): Declare.
2373         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
2374         (getDeclaredClasses): Always return empty array.
2375         (_getMethods): New method.
2376         (getMethods): Wrote.
2377         (getDeclaredMethod): Return `rmethod'.
2378         (finit_name): New global.
2379         (getDeclaredMethods): Check for finit_name.
2380         (_getMethods): Likewise.
2381         (getMethod): Only return public methods.
2382
2383         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
2384         jboolean and select correct ffi type on that basis.
2385         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
2386         Constructor call always has `void' return type.
2387
2388 2000-01-04  Tom Tromey  <tromey@cygnus.com>
2389
2390         * java/lang/Class.h (getSignature): Updated.
2391         * java/lang/Class.java (getSignature): Updated.
2392         * java/lang/natClass.cc (getSignature): Added `is_constructor'
2393         argument.
2394         (getConstructor): Ensure constructor is public.
2395         (_getConstructors): Check for public-ness of constructor when
2396         `declared' is false, not when it is true.
2397
2398 2000-01-04  Warren Levy  <warrenl@cygnus.com>
2399
2400         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
2401         comment.
2402         (receive): Set the sender's address in the DatagramPacket.
2403
2404 2000-01-04  Tom Tromey  <tromey@cygnus.com>
2405
2406         * java/lang/reflect/natConstructor.cc (newInstance): Pass
2407         declaring class as return_type argument to
2408         _Jv_CallNonvirtualMethodA.
2409         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
2410         constructor case, create object and use it as `this' argument.
2411         * java/lang/Class.h (_getConstructors): Declare.
2412         (_getFields): Declare.
2413         * java/lang/Class.java (getConstructors): Wrote.
2414         (_getConstructors): New native method.
2415         (getDeclaredConstructors): Wrote.
2416         (_getFields): Declare new native method.
2417         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
2418         incorrect comment.
2419         (getMethod): Work correctly when class is primitive.
2420         (getDeclaredMethods): Likewise.  Compute offset using `method',
2421         not `mptr'.
2422         (getDeclaredMethod): Likewise.
2423         (getConstructor): Wrote.
2424         (ConstructorClass): New define.
2425         (getDeclaredConstructor): Wrote.
2426         (_getConstructors): New method.
2427         (_getFields): New method.
2428         (getFields): Wrote.
2429
2430         * Makefile.in: Rebuilt.
2431         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
2432
2433         * prims.cc: Remove `#pragma implementation'.
2434         * gcj/array.h: Remove `#pragma interface'.
2435
2436         * prims.cc (_Jv_equaln): New function.
2437         * java/lang/Class.java (getSignature): Declare.
2438         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
2439         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
2440         resolve.cc.
2441         (getSignature): New method.
2442         (getDeclaredMethod): Wrote.
2443         (getMethod): Wrote.
2444         Include StringBuffer.h.
2445         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
2446         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
2447         a friend.
2448         (getSignature): Declare.
2449         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
2450         (_Jv_equaln): Declare.
2451         (_Jv_CallNonvirtualMethodA): Declare.
2452         * Makefile.in: Rebuilt.
2453         * Makefile.am (nat_source_files): Added natConstructor.cc.
2454         (java/lang/reflect/Constructor.h): New target.
2455         * java/lang/reflect/natConstructor.cc: New file.
2456         * java/lang/reflect/Constructor.java (newInstance): Now native.
2457         (declaringClass): Renamed from decl_class.
2458         (offset): Renamed from index.
2459         (getType): New native method.
2460         (getModifiers): Now native.
2461         (getParameterTypes): Call getType if required.
2462         (hashCode): Include hash code from declaring class.
2463         (modifiers): Removed.
2464         (toString): Call getType if required.
2465         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
2466         * java/lang/reflect/natMethod.cc (hack_call): New method.
2467         Removed `#if 0' around FFI code.
2468         Include <gnu/gcj/RawData.h>.
2469         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
2470         IllegalArgumentException when argument object and class disagree.
2471         (_Jv_GetTypesFromSignature): New function.
2472         (getType): Use it.
2473         (ObjectClass): New define.
2474         (_Jv_CallNonvirtualMethodA): New function.
2475         * java/lang/reflect/Method.java (hack_trampoline): New method.
2476         (hack_call): New native method.