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