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