OSDN Git Service

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