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