OSDN Git Service

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