OSDN Git Service

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