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