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