1 2000-07-20 Tom Tromey <tromey@cygnus.com>
3 * scripts/showval.java: New file.
5 * scripts/classes.pl (scan): Print inner classes properly.
6 * gcj/javaprims.h: Updated class list.
8 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
9 initialize String fields for interpreted classes. Fixes bug
10 reported by Hans Boehm.
12 * java/io/File.java (getParentFile): New method, from Classpath
15 * java/util/Vector.java (remove(Object)): Implemented.
17 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
19 * java/lang/natThrowable.cc (fillInStackTrace): Check for
20 zero return from backtrace().
22 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
24 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
26 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
27 before calling notifyAll().
29 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
31 Add missing files from last check-in:
32 * java/awt/image/ImageConsumer.java: New file.
33 * java/awt/image/ImageProducer.java: New file.
34 * java/awt/image/ImageObserver.java: New file.
36 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
38 Merged implementation of java.applet from classpath:
39 * java/applet/Applet.java: New file.
40 * java/applet/AppletContext.java: New file.
41 * java/applet/AppletStub.java: New file.
42 * java/applet/AudioClip.java: New file.
44 * Makefile.am: Added new java.applet classes.
45 * Makefile.in: Rebuilt.
47 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
50 * java/util/ResourceBundle.java (getLocale): stub.
51 * Makefile.am: Added new AWT classes.
52 * Makefile.in: Rebuilt.
53 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
54 constructors. Fix toString() and paramString().
55 * java/awt/AWTEventMulticaster.java: New class. Implemented.
56 * java/awt/CheckboxGroup.java: New class.
57 * java/awt/ColorModel.java: New class.
58 * java/awt/Component.java: Added stubs for most methods. Implemented
60 * java/awt/Container.java: ditto.
61 * java/awt/ComponentOrientation.java: New class. Partly implemented.
62 * java/awt/Cursor.java: ditto.
63 * java/awt/Event.java: Fix paramString().
64 * java/awt/EventQueue.java: New class. Implemented.
65 * java/awt/Font.java: Added additional stub methods. Implemented
67 * java/awt/FontMetrics.java: New class. Stubbed.
68 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
70 * java/awt/Insets.java: New class. Implemented.
71 * java/awt/Menu.java: Add new methods. Partially implemented.
72 * java/awt/MenuItem.java: Add new methods and fields. Partially
74 * java/awt/MenuShortcut.java: New class. Implemented.
75 * java/awt/Panel.java: New class. Placeholder.
76 * java/awt/PopupMenu.java: New class. Stubbed.
77 * java/awt/Rectangle.java: New class. Implemented.
78 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
79 * java/awt/event/ActionEvent.java: Implement paramString().
80 * java/awt/event/AdjustmentEvent.java: Implement paramString().
81 * java/awt/event/ComponentEvent.java: Implement paramString().
82 * java/awt/event/ContainerEvent.java: Implement paramString().
83 * java/awt/event/FocusEvent.java: Implement paramString().
84 * java/awt/event/HierarchyBoundsAdapter.java: New class.
85 * java/awt/event/HierarchyBoundsListener.java: New class.
86 * java/awt/event/HierarchyEvent.java: New class.
87 * java/awt/event/HierarchyListener.java: New class.
88 * java/awt/event/InputMethodEvent.java: Implement paramString().
89 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
90 exception if !catchExceptions.
91 * java/awt/event/ItemEvent.java: Implement paramString().
92 * java/awt/event/KeyEvent.java: Implement paramString().
93 * java/awt/event/MouseEvent.java: Implement paramString().
94 * java/awt/event/PaintEvent.java: Implement paramString().
95 * java/awt/event/TextEvent.java: Implement paramString().
96 * java/awt/event/WindowEvent.java: Implement paramString().
99 * java/awt/peer/ButtonPeer.java: New file.
100 * java/awt/peer/ListPeer.java: New file.
101 * java/awt/peer/CanvasPeer.java: New file.
102 * java/awt/peer/MenuBarPeer.java: New file.
103 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
104 * java/awt/peer/MenuComponentPeer.java: New file.
105 * java/awt/peer/CheckboxPeer.java: New file.
106 * java/awt/peer/MenuItemPeer.java: New file.
107 * java/awt/peer/ChoicePeer.java: New file.
108 * java/awt/peer/MenuPeer.java: New file.
109 * java/awt/peer/ComponentPeer.java: Implemented.
110 * java/awt/peer/PanelPeer.java: New file.
111 * java/awt/peer/ContainerPeer.java: Implemented.
112 * java/awt/peer/PopupMenuPeer.java: New file.
113 * java/awt/peer/DialogPeer.java: New file.
114 * java/awt/peer/ScrollPanePeer.java: New file.
115 * java/awt/peer/FileDialogPeer.java: New file.
116 * java/awt/peer/ScrollbarPeer.java: New file.
117 * java/awt/peer/FontPeer.java: New file.
118 * java/awt/peer/TextAreaPeer.java: New file.
119 * java/awt/peer/FramePeer.java: Implemented.
120 * java/awt/peer/TextComponentPeer.java: New file.
121 * java/awt/peer/LabelPeer.java: New file.
122 * java/awt/peer/TextFieldPeer.java: New file.
123 * java/awt/peer/LightweightPeer.java: New file.
124 * java/awt/peer/WindowPeer.java: Implemented.
126 2000-07-06 Tom Tromey <tromey@cygnus.com>
128 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
129 Initialize static final String fields.
131 2000-07-03 Tom Tromey <tromey@cygnus.com>
133 * java/io/PrintWriter.java (print): Call write(String), not
134 print(String). See PR libgcj/277.
135 (print(String)): Use write, not out.write.
137 2000-06-30 Tom Tromey <tromey@cygnus.com>
139 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
141 2000-06-27 Andrew Haley <aph@cygnus.com>
143 * java/io/File.java (createTempFile): Close the FileDescriptor
144 used to create a temp file. Fixes some of PR 203.
145 * java/io/natFileDescriptorPosix.cc (open): Call garbage
146 collection if we run out of file handles.
148 2000-06-28 Warren Levy <warrenl@cygnus.com>
150 * gnu/java/security/provider/Gnu.java: New file.
151 * gnu/java/security/provider/SHA.java: New file.
152 * gnu/java/security/provider/SHA1PRNG.java: New file.
153 * Makefile.am: Added the above files.
154 * Makefile.in: Rebuilt.
156 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
158 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
160 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
161 (destroyed_flag): Removed.
162 (isDestroyed, removeGroup, removeThread): Test for parent == null.
163 (activeCount): Added spec note.
165 2000-06-27 Warren Levy <warrenl@cygnus.com>
167 * java/security/Principal.java: New file.
168 * Makefile.am: Added Principal.java.
169 * Makefile.in: Rebuilt.
171 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
173 * java/awt/event/MouseEvent.java: Fixed coordinate space
176 2000-06-27 Tom Tromey <tromey@cygnus.com>
178 * java/io/PushbackInputStream.java (read): If there are characters
179 in the buffer, don't also call super.read().
180 * java/io/PushbackReader.java (read): If there are characters in
181 the buffer, don't also call super.read().
183 * java/lang/Double.java (valueOf): Call parseDouble().
185 2000-06-26 Warren Levy <warrenl@cygnus.com>
187 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
188 (newVal): Renamed to newValue.
189 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
190 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
191 (revokeNow): Renamed to invalidateRefs.
192 * java/io/OptionalDataException.java: Updated FIXME.
193 (eof): New placeholder field.
195 * java/io/WriteAbortedException.java (message): Made transient.
196 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
197 * java/lang/Throwable.java (stackTrace): Made transient.
198 * java/net/InetAddress.java: Made Serializable.
199 * java/security/KeyPair.java: Made Serializable.
200 * java/security/Provider.java: Replaced with Classpath version that
201 implements serialization and proper methods.
202 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
203 (limits): Renamed to choiceLimits.
205 2000-06-24 Tom Tromey <tromey@cygnus.com>
207 * java/lang/natDouble.cc (parseDouble): Renamed from
209 * java/lang/Double.java (parseDouble): Renamed from
210 doubleValueOf. Now public.
212 2000-06-23 Andrew Haley <aph@cygnus.com>
214 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
215 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
217 2000-06-23 Tom Tromey <tromey@cygnus.com>
219 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
220 * java/lang/natDouble.cc: Always include <alloca.h>.
221 Fix for PR libgcj/267.
223 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
225 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
226 comply with classpath VM spec.
227 (add(Group)): Rename to addGroup().
228 * java/lang/Thread.java (Thread): Use addThread().
229 * java/lang/natThread.cc (finish_): Use removeThread().
231 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
233 * java/lang/ThreadGroup.java: Merged with classpath.
234 * prims.cc (_Jv_RunMain): Don't use `main_group'.
235 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
237 * java/lang/Thread.java (Thread): Bootstrap initial thread from
238 ThreadGroup.root if Thread.currentThread is null. Honour the
239 ThreadGroup's max priority setting.
241 2000-06-18 Tom Tromey <tromey@cygnus.com>
243 * java/lang/natClass.cc (forName): Removed dead code. Initialize
244 returned class. For PR gcj/260.
246 2000-06-16 Tom Tromey <tromey@cygnus.com>
248 Fix for PR libgcj/261:
249 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
251 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
252 argument. (This is a patch from long ago that somehow went
255 2000-06-15 Tom Tromey <tromey@cygnus.com>
257 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
261 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
263 Fix for PR java.lang/258:
264 * prims.cc (_Jv_PrimClass): Set state of primitive class to
265 JV_STATE_DONE, to prevent accidental initialization.
266 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
267 _Jv_InterfaceAssignableFrom if target is an interface and source is an
268 interface or an abstract class. Remove redundant initializeClass calls.
269 Remove duplicate if_idt test.
270 (_Jv_InterfaceAssignableFrom): New function.
271 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
273 2000-05-31 Tom Tromey <tromey@cygnus.com>
275 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
276 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
277 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
278 (NUM_OBJECT_METHODS): New define.
279 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
280 `array_vtable' parameter. Added assertion.
281 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
284 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
286 * gcj/cni.h: Include <string.h>.
287 * defineclass.cc: Include <alloca.h>.
288 * interpret.cc: Ditto.
289 * gij.cc: Include <stdlib.h>.
291 2000-05-30 Tom Tromey <tromey@cygnus.com>
293 * include/name-finder.h: Include <sys/wait.h>.
294 (_Jv_name_finder::pid): Now of type `pid_t'.
295 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
296 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
299 2000-05-24 Warren Levy <warrenl@cygnus.com>
301 * java/io/ObjectOutputStream.java (writeObject): Use component type
305 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
307 Fix for PR libgcj/226:
308 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
309 since this is an installed header.
311 Fix for PR libgcj/228:
312 * java/util/zip/ZipFile (getInputStream): Create inflater with
315 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
316 with DataFormatException.
318 2000-05-20 Tom Tromey <tromey@cygnus.com>
320 * Makefile.in: Rebuilt.
321 * Makefile.am (hack1): Removed.
322 (awto_files): Likewise.
323 (libgcjawt_la_SOURCES): Likewise.
324 (EXTRA_libgcjawt_la_SOURCES): Likewise.
325 (libgcjawt_la_DEPENDENCIES): Likewise.
326 (libgcjawt_la_LIBADD): Likewise.
327 (libgcjawt_la_LDFLAGS): Likewise.
328 (libgcjawt_la_LINK): Likewise.
329 ($(awt_java_source_files:.java=.class)): Likewise.
330 (libgcj.zip): Don't depend on AWT files.
331 (MOSTLYCLEANFILES): Don't include AWT files.
332 ($(awto_files)): Removed.
333 (nat_headers): Removed AWT files.
334 (cond_awt_java_source_files): Removed.
335 (ordinary_java_source_files): Added awt_java_source_files.
336 * libgcj.spec.in (*lib): Removed -lgcjawt.
337 * configure: Rebuilt.
338 * configure.in: Removed --enable-java-awt option.
340 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
342 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
343 (ZipEntry): Copy the `name' field.
344 (clone): Implement JDK1.2 method.
345 (setCompressedSize): ditto.
348 2000-05-19 Tom Tromey <tromey@cygnus.com>
350 * java/io/BufferedWriter.java: Merged with Classpath.
351 * java/io/BufferedOutputStream.java: Merged with Classpath.
353 2000-05-16 Andrew Haley <aph@cygnus.com>
355 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
356 build_ia64_frame_state.
357 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
360 2000-05-15 Warren Levy <warrenl@cygnus.com>
362 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
363 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
364 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
365 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
366 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
367 * gnu/gcj/beans/editors/FontEditor.java: Removed.
368 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
369 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
370 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
371 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
372 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
373 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
374 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
375 * gnu/gcj/beans/editors/StringEditor.java: Removed.
376 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
377 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
378 * gnu/gcj/io/NullOutputStream.java: Removed.
379 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
380 * gnu/gcj/lang/ArrayHelper.java: Removed.
381 * gnu/gcj/lang/ClassHelper.java: Removed.
382 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
384 * gnu/java/beans/BeanInfoEmbryo.java: New file.
385 * gnu/java/beans/EmptyBeanInfo.java: New file.
386 * gnu/java/beans/ExplicitBeanInfo.java: New file.
387 * gnu/java/beans/IntrospectionIncubator.java: New file.
388 * gnu/java/beans/editors/ColorEditor.java: New file.
389 * gnu/java/beans/editors/FontEditor.java: New file.
390 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
391 * gnu/java/beans/editors/NativeByteEditor.java: New file.
392 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
393 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
394 * gnu/java/beans/editors/NativeIntEditor.java: New file.
395 * gnu/java/beans/editors/NativeLongEditor.java: New file.
396 * gnu/java/beans/editors/NativeShortEditor.java: New file.
397 * gnu/java/beans/editors/StringEditor.java: New file.
398 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
399 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
400 * gnu/java/io/NullOutputStream.java: New file.
401 * gnu/java/io/ObjectIdentityWrapper.java: New file.
402 * gnu/java/lang/ArrayHelper.java: New file.
403 * gnu/java/lang/ClassHelper.java: New file.
404 * gnu/java/lang/reflect/TypeSignature.java: New file.
406 * Makefile.am: Updated for moving Classpath files from gnu/gcj
407 namespace back to the original Classpath gnu/java namespace.
408 * Makefile.in: Rebuilt.
410 * java/beans/Beans.java: Namespace change.
411 * java/beans/EventSetDescriptor.java: Namespace change.
412 * java/beans/Introspector.java: Namespace change.
413 * java/beans/PropertyEditorManager.java: Namespace change.
414 * java/io/ObjectInputStream.java: Namespace change.
415 * java/io/ObjectOutputStream.java: Namespace change.
416 * java/io/ObjectStreamClass.java: Namespace change.
417 * java/io/ObjectStreamField.java: Namespace change.
419 2000-04-21 Warren Levy <warrenl@cygnus.com>
421 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
422 now that compiler patch is available.
423 Removed unneeded System.loadLibrary.
424 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
425 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
427 2000-04-19 Andrew Haley <aph@cygnus.com>
429 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
430 and target classes have been initialized.
432 2000-04-19 Andrew Haley <aph@cygnus.com>
434 * java/lang/String.java: implement Serializable, Comparable.
435 (compareTo (Object)): New method.
437 2000-04-19 Warren Levy <warrenl@cygnus.com>
439 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
440 instead of getField to retrieve non-public field.
441 (getSerialPersistantFields): Ditto.
443 2000-04-18 Warren Levy <warrenl@cygnus.com>
445 * mauve-libgcj: Turned off object serialization tests temporarily
446 due to compiler error.
448 2000-04-17 Warren Levy <warrenl@cygnus.com>
450 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
451 to avoid build problem.
453 * mauve-libgcj: Turned on object serialization tests.
455 2000-04-17 Tom Tromey <tromey@cygnus.com>
457 * libgcj.spec.in (*lib): Added -lgcjawt.
459 2000-04-17 Andrew Haley <aph@cygnus.com>
461 * Makefile.am: Add new files:
462 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
464 * Makefile.in: Rebuilt.
466 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
467 interface that has no implementations.
468 Check for an attempt to assign an abstract class to an interface.
470 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
471 if we fail to find MessageDigest.getInstance ("SHA").
473 * gnu/gcj/io/SimpleSHSStream.java: New file.
474 * gnu/gcj/io/natSimpleSHSStream.java: New file.
475 * gnu/gcj/io/shs.cc: New file.
476 * gnu/gcj/io/shs.h: new file.
478 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
481 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
482 punctuation from the classname of an array element.
484 * gcj/javaprims.h: Add SimpleDigestStream.
486 2000-04-17 Andrew Haley <aph@cygnus.com>
488 * java/lang/natClass.cc (getPrivateField): Make recursive calls
489 to getPrivateField for superclasses.
491 2000-04-14 Andrew Haley <aph@cygnus.com>
493 * Makefile.am: Add new files:
494 java/io/ObjectOutputStream$PutField.h,
495 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
496 java/io/natObjectOutputStream.cc
497 * Makefile.in: Rebuilt.
498 * gcj/Makefile.in: Rebuilt.
499 * include/Makefile.in: Rebuilt.
500 * java/lang/Class.h (getPrivateField): New method.
501 (getPrivateMethod): Ditto.
502 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
503 and java::io::ObjectStreamClass our friends.
504 * java/lang/natClass.cc (getPrivateField): New method.
505 (getPrivateMethod): Ditto.
506 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
507 * gcj/javaprims.h: Add serialization classes.
508 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
509 (setByteField): Ditto.
510 (setCharField): Ditto.
511 (setDoubleField): Ditto.
512 (setFloatField): Ditto.
513 (setIntField): Ditto.
514 (setLongField): Ditto.
515 (setShortField): Ditto.
516 (setObjectField): Ditto.
517 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
519 (getByteField): Ditto.
520 (getCharField): Ditto.
521 (getDoubleField): Ditto.
522 (getFloatField): Ditto.
523 (getIntField): Ditto.
524 (getLongField): Ditto.
525 (getShortField): Ditto.
526 (getObjectField): Ditto.
527 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
529 (getSerialPersistantFields): Ditto.
530 (getDefinedSUID): Ditto.
531 * java/io/natObjectOutputStream.cc: New file.
532 * java/io/natObjectInputStream.cc: New file.
534 2000-04-13 Warren Levy <warrenl@cygnus.com>
536 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
537 problems. Revert to previous version to reproduce and when fixed.
539 2000-04-13 Warren Levy <warrenl@cygnus.com>
541 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
542 * gnu/gcj/io/NullOutputStream.java: New file.
543 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
544 * java/io/BlockDataException.java: New file.
545 * java/io/Externalizable.java: New file.
546 * java/io/InvalidClassException.java: New file.
547 * java/io/InvalidObjectException.java: New file.
548 * java/io/NotActiveException.java: New file.
549 * java/io/NotSerializableException.java: New file.
550 * java/io/ObjectInput.java: New file.
551 * java/io/ObjectInputStream.java: New file.
552 * java/io/ObjectInputValidation.java: New file.
553 * java/io/ObjectOutput.java: New file.
554 * java/io/ObjectOutputStream.java: New file.
555 * java/io/ObjectStreamClass.java: New file.
556 * java/io/ObjectStreamConstants.java: New file.
557 * java/io/ObjectStreamField.java: New file.
558 * java/io/Replaceable.java: New file.
559 * java/io/Resolvable.java: New file.
560 * java/io/SerializablePermission.java: New file.
561 * java/io/WriteAbortedException.java: New file.
562 * java/security/BasicPermission.java: New file.
563 * java/security/DigestOutputStream.java: New file.
564 * java/security/Guard.java: New file.
565 * java/security/Permission.java: New file.
566 * java/security/PermissionCollection.java: New file.
567 * Makefile.am: Added above files.
568 * Makefile.in: Rebuilt.
570 * java/beans/Beans.java (instantiate): Activated serialization code.
571 * java/lang/SecurityManager.java (checkPermission): New method.
573 2000-04-12 Warren Levy <warrenl@cygnus.com>
575 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
576 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
577 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
578 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
579 * gnu/gcj/beans/editors/ColorEditor.java: New file.
580 * gnu/gcj/beans/editors/FontEditor.java: New file.
581 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
582 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
583 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
584 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
585 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
586 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
587 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
588 * gnu/gcj/beans/editors/StringEditor.java: New file.
589 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
590 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
591 * gnu/gcj/lang/ArrayHelper.java: New file.
592 * gnu/gcj/lang/ClassHelper.java: New file.
593 * java/beans/BeanDescriptor.java: New file.
594 * java/beans/BeanInfo.java: New file.
595 * java/beans/Beans.java: New file.
596 * java/beans/Customizer.java: New file.
597 * java/beans/DesignMode.java: New file.
598 * java/beans/EventSetDescriptor.java: New file.
599 * java/beans/FeatureDescriptor.java: New file.
600 * java/beans/IndexedPropertyDescriptor.java: New file.
601 * java/beans/IntrospectionException.java: New file.
602 * java/beans/Introspector.java: New file.
603 * java/beans/MethodDescriptor.java: New file.
604 * java/beans/ParameterDescriptor.java: New file.
605 * java/beans/PropertyChangeEvent.java: New file.
606 * java/beans/PropertyChangeListener.java: New file.
607 * java/beans/PropertyChangeSupport.java: New file.
608 * java/beans/PropertyDescriptor.java: New file.
609 * java/beans/PropertyEditor.java: New file.
610 * java/beans/PropertyEditorManager.java: New file.
611 * java/beans/PropertyEditorSupport.java: New file.
612 * java/beans/PropertyVetoException.java: New file.
613 * java/beans/SimpleBeanInfo.java: New file.
614 * java/beans/VetoableChangeListener.java: New file.
615 * java/beans/VetoableChangeSupport.java: New file.
616 * java/beans/Visibility.java: New file.
617 * java/beans/beancontext/BeanContext.java: New file.
618 * java/beans/beancontext/BeanContextChild.java: New file.
619 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
620 * java/beans/beancontext/BeanContextChildSupport.java: New file.
621 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
622 * java/beans/beancontext/BeanContextEvent.java: New file.
623 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
624 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
625 * java/beans/beancontext/BeanContextProxy.java: New file.
626 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
628 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
629 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
631 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
632 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
634 * java/beans/beancontext/BeanContextServices.java: New file.
635 * java/beans/beancontext/BeanContextServicesListener.java: New file.
636 * java/util/AbstractCollection.java: New file.
637 * java/util/AbstractList.java: New file.
638 * java/util/Arrays.java: New file.
639 * Makefile.am: Added above files.
640 * Makefile.in: Rebuilt.
642 2000-04-11 Warren Levy <warrenl@cygnus.com>
644 * java/awt/AWTError.java: New file.
645 * java/awt/AWTEvent.java: New file.
646 * java/awt/AWTException.java: New file.
647 * java/awt/ActiveEvent.java: New file.
648 * java/awt/Adjustable.java: New file.
649 * java/awt/BorderLayout.java: New file.
650 * java/awt/Color.java: New file.
651 * java/awt/Component.java: New file.
652 * java/awt/Container.java: New file.
653 * java/awt/Dimension.java: New file.
654 * java/awt/Event.java: New file.
655 * java/awt/Font.java: New file.
656 * java/awt/Frame.java: New file.
657 * java/awt/Graphics.java: New file.
658 * java/awt/IllegalComponentStateException.java: New file.
659 * java/awt/Image.java: New file.
660 * java/awt/ItemSelectable.java: New file.
661 * java/awt/LayoutManager.java: New file.
662 * java/awt/LayoutManager2.java: New file.
663 * java/awt/Menu.java: New file.
664 * java/awt/MenuBar.java: New file.
665 * java/awt/MenuComponent.java: New file.
666 * java/awt/MenuContainer.java: New file.
667 * java/awt/MenuItem.java: New file.
668 * java/awt/Paint.java: New file.
669 * java/awt/PaintContext.java: New file.
670 * java/awt/Point.java: New file.
671 * java/awt/Rectangle.java: New file.
672 * java/awt/Shape.java: New file.
673 * java/awt/TextArea.java: New file.
674 * java/awt/TextComponent.java: New file.
675 * java/awt/Toolkit.java: New file.
676 * java/awt/Transparency.java: New file.
677 * java/awt/Window.java: New file.
678 * java/awt/natToolkit.cc: New file.
679 * java/awt/event/AWTEventListener.java: New file.
680 * java/awt/event/ActionEvent.java: New file.
681 * java/awt/event/ActionListener.java: New file.
682 * java/awt/event/AdjustmentEvent.java: New file.
683 * java/awt/event/AdjustmentListener.java: New file.
684 * java/awt/event/ComponentAdapter.java: New file.
685 * java/awt/event/ComponentEvent.java: New file.
686 * java/awt/event/ComponentListener.java: New file.
687 * java/awt/event/ContainerAdapter.java: New file.
688 * java/awt/event/ContainerEvent.java: New file.
689 * java/awt/event/ContainerListener.java: New file.
690 * java/awt/event/FocusAdapter.java: New file.
691 * java/awt/event/FocusEvent.java: New file.
692 * java/awt/event/FocusListener.java: New file.
693 * java/awt/event/InputEvent.java: New file.
694 * java/awt/event/InputMethodEvent.java: New file.
695 * java/awt/event/InputMethodListener.java: New file.
696 * java/awt/event/InvocationEvent.java: New file.
697 * java/awt/event/ItemEvent.java: New file.
698 * java/awt/event/ItemListener.java: New file.
699 * java/awt/event/KeyAdapter.java: New file.
700 * java/awt/event/KeyEvent.java: New file.
701 * java/awt/event/KeyListener.java: New file.
702 * java/awt/event/MouseAdapter.java: New file.
703 * java/awt/event/MouseEvent.java: New file.
704 * java/awt/event/MouseListener.java: New file.
705 * java/awt/event/MouseMotionAdapter.java: New file.
706 * java/awt/event/MouseMotionListener.java: New file.
707 * java/awt/event/PaintEvent.java: New file.
708 * java/awt/event/TextEvent.java: New file.
709 * java/awt/event/TextListener.java: New file.
710 * java/awt/event/WindowAdapter.java: New file.
711 * java/awt/event/WindowEvent.java: New file.
712 * java/awt/event/WindowListener.java: New file.
713 * java/awt/geom/Dimension2D.java: New file.
714 * java/awt/geom/Point2D.java: New file.
715 * java/awt/peer/ComponentPeer.java: New file.
716 * java/awt/peer/ContainerPeer.java: New file.
717 * java/awt/peer/FramePeer.java: New file.
718 * java/awt/peer/WindowPeer.java: New file.
719 * java/util/Collection.java: New file.
720 * java/util/Comparator.java: New file.
721 * java/util/Iterator.java: New file.
722 * java/util/List.java: New file.
723 * java/util/ListIterator.java: New file.
724 * Makefile.am: Added above files.
725 * Makefile.in: Rebuilt.
727 2000-04-10 Warren Levy <warrenl@cygnus.com>
729 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
730 * java/lang/FirstThread.java: Ditto.
731 * java/lang/StringBuffer.java: Ditto.
732 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
734 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
735 Special case handled in java.math.BigInteger.
736 * java/math/BigInteger.java (divide): Handle the special case when
737 dividing by 1 and the high bit of the dividend is set.
738 (setShiftRight): Handle case when count == 0.
740 2000-04-05 Andrew Haley <aph@cygnus.com>
742 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
745 2000-04-05 Andrew Haley <aph@cygnus.com>
747 * sysdep/ia64.c (rse_address_add): Delete.
748 (IS_NaT_COLLECTION_ADDR): Delete.
749 (ia64_backtrace_helper): check for null unwind_info.
751 * sysdep/ia64-frame.h: add calc_caller_bsp.
753 * java/lang/natThrowable.cc (printRawStackTrace): Flush
756 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
757 (_Jv_remI): Likewise.
758 (_Jv_divJ): Likewise.
759 (_Jv_remJ): Likewise.
761 * interpret.cc (continue1): Use divide subroutines to guarantee
762 correct Java standard behaviour.
763 Floating-point division should not abort; make it so.
765 2000-03-29 Tom Tromey <tromey@cygnus.com>
767 * configure: Rebuilt.
768 * configure.in: Test against `libgcj_sjlj', not
769 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
770 to be set even when using sjlj.
772 2000-03-24 Andrew Haley <aph@cygnus.com>
774 * Makefile.am: Add file addr2name.awk.
775 * Makefile.in: Rebuilt.
776 * addr2name.awk: New file.
777 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
779 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
782 2000-03-22 Andrew Haley <aph@cygnus.com>
784 * configure.host: Add -funwind-tables for IA64.
785 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
786 * Makefile.in: Rebuilt.
787 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
788 * sysdep/ia64.c: New file.
789 * sysdep/ia64-frame.h: New file.
790 * configure.in: Add sysdep/ia64.c for ia64.
791 * configure: Rebuilt.
793 2000-03-17 Andrew Haley <aph@cygnus.com>
795 * java/lang/natString.cc: Remove `register' keyword.
798 2000-03-16 Andrew Haley <aph@cygnus.com>
800 * configure.host (ia64): Enable interpreter.
802 2000-03-14 Hans Boehm <boehm@acm.org>
804 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
806 2000-03-14 Andrew Haley <aph@cygnus.com>
808 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
811 2000-03-10 Andrew Haley <aph@cygnus.com>
813 * java/lang/ieeefp.h: Import latest version from fdlibm.
815 2000-03-14 Andrew Haley <aph@cygnus.com>
817 * prims.cc (_Jv_ThrowSignal): New function.
818 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
820 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
821 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
822 * include/ppc-signal.h: New file.
824 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
826 * java/lang/Thread.java: Declare `data' as Object, not RawData.
827 * java/lang/natThread.java (initialize_native): Cast `data' to
829 * gnu/gcj/RawData.java: Clarify documentation.
831 From Gregory R. Warnes <warnes@biostat.washington.edu>:
832 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
833 `jarFile', not `jarFileURL'.
835 2000-05-15 Andrew Haley <aph@cygnus.com>
837 * include/ppc-signal.h: New file.
839 2000-05-11 Tom Tromey <tromey@cygnus.com>
841 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
842 file headers, don't include `size' in the skip call.
844 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
846 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
847 Avoid arrayCopy() call where possible. Update `count' _after_ calling
849 (replace): Reimplemented. Fix javadoc.
850 (reverse): Call ensureCapacity_unsynchronized().
851 (StringBuffer (String)): Use DEFAULT_CAPACITY.
853 (replace): Calculate length for arraycopy() correctly.
855 2000-05-09 Tom Tromey <tromey@cygnus.com>
857 * java/lang/StringBuffer.java (toString): Don't mark buffer as
859 (insert(int,char[],int,int): New method.
860 (delete): New method from Classpath.
861 (deleteCharAt): Likewise.
862 (substring): Likewise.
863 (shared): No longer private.
864 Added JavaDoc comments from Classpath.
865 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
868 2000-05-07 Tom Tromey <tromey@cygnus.com>
870 * Makefile.in: Rebuilt.
871 * Makefile.am (LIBLINK): New macro.
872 (libgcj_la_LINK): Use it.
873 (libgcjawt_la_LINK): Likewise.
875 2000-05-06 Tom Tromey <tromey@cygnus.com>
877 * Makefile.in: Rebuilt.
878 * Makefile.am (libgcj.zip): Don't pass -L to javac.
880 2000-05-05 Tom Tromey <tromey@cygnus.com>
882 Fix for PR libgcj/220:
883 * Makefile.in: Rebuilt.
884 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
885 (jv_convert_LDFLAGS): Likewise.
886 (libgcj_la_LDFLAGS): Likewise.
887 (GCJLINK): New macro.
888 (jv_convert_LINK): Use it.
889 (gij_LINK): Likewise.
890 (libgcj_la_LINK): New macro.
891 (libgcjawt_la_LINK): Likewise.
893 2000-05-04 Tom Tromey <tromey@cygnus.com>
895 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
897 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
901 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
903 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
904 (_Jv_IsAssignableFrom): Ditto.
905 (_Jv_IsInstanceOf): Ditto.
906 (_Jv_CheckCast): Ditto.
907 (_Jv_CheckArrayStore): Ditto.
908 * java/lang/Class.h (_Jv_InitClass): Ditto.
909 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
914 (_Jv_MonitorExit): Ditto.
915 * boehm.cc (_Jv_MarkObj): Ditto.
916 (_Jv_MarkObj): Ditto.
917 (_Jv_MarkArray): Ditto.
918 * prims.cc (_Jv_AllocObject): Ditto.
919 (_Jv_NewObjectArray): Ditto.
920 (_Jv_NewPrimArray): Ditto.
922 (_Jv_Realloc): Ditto.
923 (_Jv_MallocUnchecked): Ditto.
929 2000-05-04 Tom Tromey <tromey@cygnus.com>
931 * java/util/Locale.java (Locale): Don't explicitly check for
933 * java/util/Hashtable.java (containsKey): Don't explicitly check
936 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
938 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
940 * java/text/StringCharacterIterator.java
941 (StringCharacterIterator): Don't check for null.
942 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
944 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
945 check for null pointer.
946 (leaveGroup): Likewise.
947 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
950 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
953 2000-04-28 Jakub Jelinek <jakub@redhat.com>
955 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
956 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
957 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
958 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
959 -rpath for in-gcc builds.
960 * Makefile.in: Rebuilt.
962 2000-04-28 Tom Tromey <tromey@cygnus.com>
964 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
967 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
969 * libjava/java/lang/String.java (toString): Remove `final' hack.
971 2000-04-05 Tom Tromey <tromey@cygnus.com>
973 Runtime support for PR gcj/2:
974 * prims.cc (_Jv_ThrowNullPointerException): New function.
975 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
977 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
979 * prims.cc (_Jv_NewObjectArray): Fix typo.
981 2000-04-26 Tom Tromey <tromey@cygnus.com>
983 * Makefile.in: Rebuilt.
984 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
986 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
988 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
991 2000-04-22 Anthony Green <green@cygnus.com>
993 * include/jvm.h (__builtin_expect): Define as unused for now.
994 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
998 (_Jv_MonitorExit): Ditto.
999 * boehm.cc (_Jv_MarkObj): Ditto.
1000 (_Jv_MarkObj): Ditto.
1001 (_Jv_MarkArray): Ditto.
1002 (_Jv_AllocBytes): Ditto.
1003 * prims.cc (_Jv_AllocObject): Ditto.
1004 (_Jv_NewObjectArray): Ditto.
1005 (_Jv_NewPrimArray): Ditto.
1006 (_Jv_Malloc): Ditto.
1007 (_Jv_Realloc): Ditto.
1008 (_Jv_MallocUnchecked): Ditto.
1014 * include/Makefile.in: Rebuilt.
1015 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
1017 2000-04-21 Tom Tromey <tromey@cygnus.com>
1019 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
1020 Yet another new version from Classpath.
1022 Fix for PR libgcj/15:
1023 * java/util/natGregorianCalendar.cc (_REENTRANT,
1024 _POSIX_PTHREAD_SEMANTICS): Don't define.
1025 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
1026 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
1028 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
1030 * configure: Rebuilt.
1031 * configure.in: If using POSIX threads, define _REENTRANT if
1032 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
1033 GETHOSTBYNAME_R_NEEDS_REENTRANT.
1035 * java/io/PipedInputStream.java, java/io/PipedReader.java,
1036 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
1037 version from Classpath.
1039 Fix for PR libgcj/213:
1040 * Makefile.in: Rebuilt.
1041 * Makefile.am (gij_SOURCES): Added gij.cc.
1042 (EXTRA_gij_SOURCES): Removed.
1043 (gij_LDADD): Removed gij.lo.
1044 (gij_DEPENDENCIES): Likewise.
1045 ($(gij_OBJECTS)): Depend on nat_headers.
1047 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
1048 `setURL', not `url.set'.
1050 2000-04-20 Tom Tromey <tromey@cygnus.com>
1052 Fix for PR java.io/204:
1053 * java/io/PipedInputStream.java, java/io/PipedReader.java,
1054 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
1057 Fix for PR libgcj/212:
1058 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
1059 * include/jvm.h (_Jv_word, _Jv_word2): Define.
1060 * java/lang/Class.h (_Jv_word): Declare.
1062 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
1064 2000-04-19 Tom Tromey <tromey@cygnus.com>
1066 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
1067 doesn't have a loader.
1069 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
1071 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
1072 MAYBE_MARK to ptr_t, for compatibility with new GC version.
1074 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
1076 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
1078 (available): Initialize `where' to prevent bogus compiler warning.
1080 2000-04-12 Tom Tromey <tromey@cygnus.com>
1082 * java/lang/natString.cc (intern): Temporarily disable finalizer
1085 * java/lang/natString.cc (unintern): Added `obj' argument.
1086 (intern): Register finalizer for string.
1087 * java/lang/String.java (unintern): Now static; added obj
1090 2000-04-11 Tom Tromey <tromey@cygnus.com>
1092 * java/util/Vector.java (VectorEnumeration): Now `final'.
1093 * java/util/Hashtable.java (HashtableEntry): Now `final'.
1094 (HashtableEnumeration): Likewise.
1095 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
1096 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
1098 2000-04-10 Warren Levy <warrenl@cygnus.com>
1100 * java/io/ObjectStreamException.java: New file.
1101 * java/io/OptionalDataException.java: New file.
1102 * java/io/StreamCorruptedException.java: New file.
1103 * java/math/BigDecimal.java: New file.
1104 * java/sql/CallableStatement.java: New file.
1105 * java/sql/Connection.java: New file.
1106 * java/sql/DataTruncation.java: New file.
1107 * java/sql/DatabaseMetaData.java: New file.
1108 * java/sql/Date.java: New file.
1109 * java/sql/Driver.java: New file.
1110 * java/sql/DriverManager.java: New file.
1111 * java/sql/DriverPropertyInfo.java: New file.
1112 * java/sql/PreparedStatement.java: New file.
1113 * java/sql/ResultSet.java: New file.
1114 * java/sql/ResultSetMetaData.java: New file.
1115 * java/sql/SQLException.java: New file.
1116 * java/sql/SQLWarning.java: New file.
1117 * java/sql/Statement.java: New file.
1118 * java/sql/Time.java: New file.
1119 * java/sql/Timestamp.java: New file.
1120 * java/sql/Types.java: New file.
1121 * Makefile.am: Added above new files.
1122 * Makefile.in: Rebuilt.
1124 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
1125 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
1126 DatagramSocket constructor instead of null.
1128 2000-04-08 Anthony Green <green@cygnus.com>
1130 * include/posix-threads.h (_Jv_MutexUnlock): Replace
1133 2000-04-08 Anthony Green <green@cygnus.com>
1135 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
1136 (_Jv_MutexUnlock): Ditto.
1137 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
1138 (_Jv_MutexUnlock): Ditto.
1140 2000-04-08 Anthony Green <green@cygnus.com>
1142 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
1143 (ensureCapacity_unsynchronized): New private method.
1144 (append): Use ensureCapacity_unsynchronized.
1146 2000-04-08 Tom Tromey <tromey@cygnus.com>
1148 * Makefile.in: Rebuilt.
1149 * Makefile.am (awt_java_source_files): Added new files.
1150 * java/awt/IllegalComponentStateException.java: New file.
1151 * java/awt/ItemSelectable.java: New file.
1152 * java/awt/event/WindowEvent.java: Finished.
1153 * java/awt/event/TextEvent.java: Finished.
1154 * java/awt/event/ContainerEvent.java: New file.
1155 * java/awt/Component.java (getX, getY): New methods.
1156 * java/awt/event/PaintEvent.java: New file.
1157 * java/awt/event/MouseEvent.java: New file.
1158 * java/awt/ActiveEvent.java: New file.
1159 * java/awt/event/KeyEvent.java: Finished.
1160 * java/awt/event/ItemEvent.java: New file.
1161 * java/awt/Adjustable.java: New file.
1162 * java/awt/event/InputMethodEvent.java: New file.
1163 * java/awt/event/InputEvent.java: Finished.
1164 * java/awt/event/FocusEvent.java: New file.
1165 * java/awt/event/MouseMotionAdapter.java: New file.
1166 * java/awt/event/MouseAdapter.java: New file.
1167 * java/awt/event/KeyAdapter.java: New file.
1168 * java/awt/event/FocusAdapter.java: New file.
1169 * java/awt/event/ContainerAdapter.java: New file.
1170 * java/awt/event/ComponentEvent.java: Finished.
1171 * java/awt/event/AdjustmentEvent.java: New file.
1172 * java/awt/event/ComponentAdapter.java: New file.
1173 * java/awt/event/ActionEvent.java: Finished.
1174 * java/awt/event/MouseMotionListener.java: New file.
1175 * java/awt/event/MouseListener.java: New file.
1176 * java/awt/event/ItemListener.java: New file.
1177 * java/awt/event/InputMethodListener.java: New file.
1178 * java/awt/event/ContainerListener.java: New file.
1179 * java/awt/event/FocusListener.java: New file.
1180 * java/awt/event/ComponentListener.java: New file.
1181 * java/awt/event/AWTEventListener.java: New file.
1182 * java/awt/event/AdjustmentListener.java: New file.
1184 2000-04-08 Anthony Green <green@cygnus.com>
1186 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
1187 check when we have to.
1189 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
1192 * java/util/StringTokenizer.java: Minor optimization. Eliminates
1195 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
1196 inline hasMoreElements.
1198 2000-04-05 Tom Tromey <tromey@cygnus.com>
1200 * configure: Rebuilt.
1201 * configure.in: Recognize --enable-java-awt.
1202 (AWT): New conditional.
1203 * Makefile.in: Rebuilt.
1204 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
1206 (libgcjawt_la_SOURCES): New macro.
1207 (EXTRA_libgcjawt_la_SOURCES): Likewise.
1208 (libgcjawt_la_DEPENDENCIES): Likewise.
1209 (libgcjawt_la_LIBADD): Likewise.
1210 (libgcjawt_la_LDFLAGS): Likewise.
1211 (libgcj.zip): Depend on cond_java_awt_source_files
1212 (cond_awt_java_source_files): New macro.
1213 (MOSTLYCLEANFILES): Added awto_files.
1214 (awto_files): New macro. Use where javao_files used.
1215 (nat_headers): Use cond_awt_java_source_files.
1217 2000-04-04 Tom Tromey <tromey@cygnus.com>
1219 * Makefile.in: Rebuilt.
1220 * Makefile.am (awt_java_source_files): Added AWTException.java.
1221 * java/awt/AWTException.java: New file.
1223 2000-04-03 Tom Tromey <tromey@cygnus.com>
1225 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
1226 commentary from Alex.
1228 * Makefile.in: Rebuilt.
1229 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
1232 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
1234 * configure: Rebuilt.
1235 * configure.in: Add --disable-jvmpi.
1236 * include/config.h.in: Rebuilt.
1237 * acconfig.h: Add ENABLE_JVMPI.
1239 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
1240 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
1241 (_Jv_JVMPI_Notify_THREAD_END): New define.
1242 (_Jv_JVMPI_Notify_THREAD_END): New define.
1243 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
1244 (_Jv_JVMPI_Notify_THREAD_END): Declare.
1245 (_Jv_JVMPI_Notify_THREAD_END): Declare.
1247 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
1250 * java/lang/natThread.cc: Include JVMPI headers if necessary.
1251 (finish_): Generate JVMPI thread end events.
1252 (run_): Generate JVMPI thread start events.
1253 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
1254 preloaded JNI library.
1255 Include JVMPI headers if necessary.
1256 (run): Generate JVMPI thread start events.
1258 * boehm.cc: Define GC_disable and GC_enable.
1259 (_Jv_DisableGC): New function.
1260 (_Jv_EnableGC): New function.
1261 (disable_gc_mutex): Declare.
1262 * nogc.cc (_Jv_DisableGC): New function.
1263 (_Jv_EnableGC): New function.
1265 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
1266 (_Jv_JVMPI_Interface): Define.
1267 (jvmpiEnableEvent): New function.
1268 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
1270 * include/jvmpi.h: New file.
1272 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
1274 * Makefile.in: New #defines and friends for Thread.h.
1275 * Makefile.am: Ditto.
1276 * posix-threads.cc: (struct starter): Remove `object'.
1277 (_Jv_CondWait): Use interruptable condition variables and new
1278 recursive mutexes. New return codes on interrupt or non-ownership
1280 (_Jv_CondNotify): Ditto.
1281 (_Jv_CondNotifyAll): Ditto.
1282 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
1283 the target thread by signaling its wait condition.
1284 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
1285 not the starter struct. Initialize wait_mutex and wait_cond.
1286 (_Jv_MutexLock): New recursive mutex implementation. Moved from
1288 (_Jv_MutexUnlock): Ditto.
1289 (really_start): Set info->data->thread from pthread_self() to work
1290 around a race condition. Destroy wait_mutex and wait_cond when run()
1292 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
1293 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
1295 startable_flag: New private field.
1296 (Thread): Initialize `startable_flag'.
1297 (toString): Check for null thread group.
1298 * java/lang/natThread.cc: (struct natThread): New fields
1299 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
1300 (class locker): Removed.
1301 (initialize_native): Initialize `join_cond' and `join_mutex'.
1302 (interrupt): Now just calls _Jv_ThreadInterrupt().
1303 (join): Simplified. Just wait on the target thread's join condition.
1304 (finish_): Remove join list code. Unset thread group. Signal
1305 potential joiners by notifying the dying threads join_cond.
1306 (start): Check for illegal restarts.
1307 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
1309 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
1310 #defines and #ifdefs.
1311 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
1312 `wait_mutex', `next'.
1313 (struct _Jv_ConditionVariable_t): Define as a struct instead of
1314 directly mapping to pthread_cond_t.
1315 (struct _Jv_Mutex_t): New recursive implementation.
1316 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
1317 _Jv_HaveCondDestroy: Never define this for posix-threads.
1318 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
1319 (_Jv_CondNotifyAll): Ditto.
1320 (_Jv_MutexLock): Ditto.
1321 (_Jv_MutexUnlock): Ditto.
1322 (_Jv_MutexInit): Changed to reflect new mutex implementation.
1323 (_Jv_MutexDestroy): Ditto.
1324 (_Jv_CondDestroy): Removed.
1325 (_Jv_PthreadGetMutex): Removed.
1326 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
1327 error. Add a FIXME about this.
1328 (_Jv_CondNotifyAll): Ditto.
1329 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
1330 _JV_NOT_OWNER on other errors. Add FIXME.
1332 2000-03-26 Tom Tromey <tromey@cygnus.com>
1334 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
1336 (call): Don't throw exception here.
1338 2000-03-26 Tom Tromey <tromey@cygnus.com>
1340 * java/lang/mprec.h: Use SIZEOF_VOID_P.
1341 * interpret.cc: Use SIZEOF_VOID_P.
1342 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
1343 (_Jv_loadLong): Likewise.
1344 (_Jv_storeDouble): Likewise.
1345 * configure: Rebuilt.
1346 * configure.in: Check size of void*.
1348 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
1350 2000-03-26 Hans Boehm <boehm@acm.org>
1352 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
1353 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
1355 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
1356 __IEEE_LITTLE_ENDIAN appropriately on IA64.
1357 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
1358 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
1360 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
1361 (FFI_RAW_SIZE): Likewise.
1362 (_Jv_InterpMethod::ncode): Use them.
1363 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
1364 STORED): Define differently on a 64 bit machine.
1365 (continue1): Use ffi_java_raw_call when appropriate.
1367 2000-03-24 Warren Levy <warrenl@cygnus.com>
1369 * java/math/BigInteger.java(divide): Handle the special case when
1370 dividing by 1 and the high bit of the dividend is set.
1371 (setShiftRight): Handle case when count == 0.
1373 2000-03-24 Warren Levy <warrenl@cygnus.com>
1375 * java/awt/Font.java(isBold): Fix syntax error.
1377 * java/awt/Frame.java(postEvent): ditto.
1378 * java/awt/Menu.java(postEvent): ditto.
1379 * java/awt/MenuBar.java(postEvent): ditto.
1380 * java/awt/Toolkit.java(init): Included a stub.
1382 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
1384 * java/awt/Event.java: Add all the event type constants.
1385 (Event): Implemented constructors.
1386 (controlDown): Implemented.
1387 (metaDown): Implemented.
1388 (paramString): Stubbed.
1389 (shiftDown): Implemented.
1390 (toString): Implemented.
1391 (translate): Implemented.
1393 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
1395 * java/lang/natClass.cc (isInstance): Initialize `this'.
1396 (isAssignableFrom): Initialize `this' and `klass'.
1397 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
1398 implemented by any loaded class, so return false.
1399 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
1400 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
1402 2000-03-19 Warren Levy <warrenl@cygnus.com>
1404 * java/awt/Color.java: Specified java.io for Serializable.
1405 * java/awt/Toolkit.java: Imported java.net.URL.
1407 2000-03-19 Warren Levy <warrenl@cygnus.com>
1409 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
1411 2000-03-16 Warren Levy <warrenl@cygnus.com>
1413 * java/awt/Color.java: New file.
1414 * java/awt/Graphics.java: New file.
1415 * java/awt/Image.java: New file.
1416 * java/awt/Paint.java: New file.
1417 * java/awt/PaintContext.java: New file.
1418 * java/awt/Transparency.java: New file.
1419 * java/util/Collection.java: New file.
1420 * java/util/Comparator.java: New file.
1421 * java/util/Iterator.java: New file.
1422 * java/util/List.java: New file.
1423 * java/util/ListIterator.java: New file.
1424 * Makefile.am: Added above new files.
1425 * Makefile.in: Rebuilt.
1427 * java/awt/Font.java (PLAIN): New field.
1429 (ITALIC): New field.
1430 (ROMAN_BASELINE): New field.
1431 (CENTER_BASELINE): New field.
1432 (HANGING_BASELINE): New field.
1436 (pointSize): New field.
1437 (Font): Implemented constructor.
1438 (isPlain): Implemented method.
1439 (isBold): Implemented method.
1440 (isItalic): Implemented method.
1441 (getName): Implemented method.
1442 (getStyle): Implemented method.
1443 (getSize): Implemented method.
1444 (getSize2D): Implemented method.
1446 * java/awt/Frame.java (getFont): Stubbed.
1447 (postEvent): Stubbed.
1449 * java/awt/Menu.java (postEvent): Stubbed.
1450 * java/awt/MenuBar.java (getFont): Stubbed.
1451 (postEvent): Stubbed.
1452 * java/awt/Toolkit.java (getImage): Added abstract method.
1454 2000-03-15 Tom Tromey <tromey@cygnus.com>
1456 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
1458 * prims.cc (win32_exception_handler): Reformatted.
1460 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
1461 (_Jv_HaveMutexDestroy): Likewise.
1463 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
1465 * java/io/natFileDescriptorWin32.cc: New file.
1466 * java/io/natFileWin32.cc: New file.
1467 * java/net/natInetAddress.cc: Added conditional inclusion of
1468 Windows / Winsock headers.
1469 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
1470 inclusion of Windows / Winsock headers.
1471 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
1472 Windows / Winsock headers.
1473 * include/win32-signal.h: New file.
1474 * include/win32-threads.h: New file.
1475 * win32-threads.cc: New file.
1476 * exception.cc (win32_get_restart_frame): New function.
1477 * prims.cc (win32_exception_handler): New function.
1478 (main_init) Performs Winsock initialisation.
1479 (main_init) Installs exeception handler.
1481 2000-03-14 Tom Tromey <tromey@cygnus.com>
1483 * jni.cc (mangled_name): Fixed assertion.
1484 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
1485 turned assert into actual failure.
1487 2000-03-09 Warren Levy <warrenl@cygnus.com>
1489 * java/security/Key.java(serialVersionUID): Set to 0 for now.
1490 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
1491 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
1493 2000-03-09 Warren Levy <warrenl@cygnus.com>
1495 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
1496 * java/security/DigestException.java: New file.
1497 * java/security/GeneralSecurityException.java: New file.
1498 * java/security/InvalidAlgorithmParameterException.java: New file.
1499 * java/security/InvalidKeyException.java: New file.
1500 * java/security/InvalidParameterException.java: New file.
1501 * java/security/Key.java: New file.
1502 * java/security/KeyException.java: New file.
1503 * java/security/KeyPair.java: New file.
1504 * java/security/KeyPairGenerator.java: New file.
1505 * java/security/KeyPairGeneratorSpi.java: New file.
1506 * java/security/NoSuchProviderException.java: New file.
1507 * java/security/PrivateKey.java: New file.
1508 * java/security/Provider.java: New file.
1509 * java/security/PublicKey.java: New file.
1510 * java/security/SecureRandom.java: New file.
1511 * java/security/Security.java: New file.
1512 * java/security/Signature.java: New file.
1513 * java/security/SignatureException.java: New file.
1514 * java/security/interfaces/DSAKey.java: New file.
1515 * java/security/interfaces/DSAParams.java: New file.
1516 * java/security/interfaces/DSAPrivateKey.java: New file.
1517 * java/security/interfaces/DSAPublicKey.java: New file.
1518 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
1519 * java/security/interfaces/RSAPrivateKey.java: New file.
1520 * java/security/interfaces/RSAPublicKey.java: New file.
1521 * java/security/spec/AlgorithmParameterSpec.java: New file.
1522 * java/security/spec/InvalidKeySpecException.java: New file.
1523 * java/security/spec/InvalidParameterSpecException.java: New file.
1524 * java/security/spec/KeySpec.java: New file.
1525 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
1526 * java/security/spec/RSAPrivateKeySpec.java: New file.
1527 * java/security/spec/RSAPublicKeySpec.java: New file.
1528 * Makefile.am: Added above java.security files.
1529 * Makefile.in: Rebuilt.
1531 * java/security/MessageDigest.java: Rewritten.
1532 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
1534 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
1538 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
1540 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
1541 _Jv_PrepareConstantTimeTables.
1542 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
1543 classes should have an IDT, so don't return if klass is an array
1546 2000-03-08 Tom Tromey <tromey@cygnus.com>
1548 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
1549 of `void' to be created.
1551 2000-03-08 Warren Levy <warrenl@cygnus.com>
1553 * java/math/BigInteger.java(signum): Handle zero properly.
1555 2000-03-07 Tom Tromey <tromey@cygnus.com>
1557 * All files: Updated copyright information.
1558 * COPYING: New file.
1559 * COPYING.LIB: Removed.
1560 * LIBGCJ_LICENSE: We now use GPL + special exception.
1562 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
1564 * resolve.cc (_Jv_SearchMethodInClass): New function.
1565 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
1566 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
1568 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
1570 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
1571 (struct _Jv_ifaces): New declaration.
1572 JV_CLASS: New macro definition.
1573 (getComponentType): Relocate below isArray() for inlining.
1574 (getModifiers): Declare `inline'.
1575 (getSuperclass): Ditto.
1577 (isPrimitive): Ditto.
1578 (_Jv_IsAssignableFrom): New prototype.
1579 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
1581 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
1582 Check for JV_STATE_DONE before invoking initializeClass().
1583 (_Jv_PrepareConstantTimeTables): New prototype.
1584 (_Jv_GetInterfaces): Ditto.
1585 (_Jv_GenerateITable): Ditto.
1586 (_Jv_GetMethodString): Ditto.
1587 (_Jv_AppendPartialITable): Ditto.
1588 (_Jv_FindIIndex): Ditto.
1589 depth, ancestors, idt: New class fields.
1591 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
1592 inline function `_Jv_IsAssignableFrom'. Use that function.
1593 (isInstance): Declare `inline'.
1594 (initializeClass): Get lock on class before checking `state'. Unlock
1595 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
1597 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
1598 (_Jv_IsAssignableFrom): New inline function. Test assignability using
1599 class->depth and ancestor table.
1600 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
1601 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
1602 _Jv_IsAssignableFrom.
1603 (_Jv_CheckArrayStore): Ditto.
1604 (_Jv_LookupInterfaceMethodIdx): New function.
1605 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
1606 (_Jv_PrepareConstantTimeTables): New function.
1607 (_Jv_IndexOf): Ditto.
1608 (_Jv_GetInterfaces): Ditto.
1609 (_Jv_GenerateITable): Ditto.
1610 (_Jv_GetMethodString): Ditto.
1611 (_Jv_AppendPartialITable): Ditto.
1612 iindex_mutex, iindex_mutex_initialized: New static fields.
1613 (_Jv_FindIIndex): New function.
1615 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
1617 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
1618 (_Jv_CheckArrayStore): Ditto.
1619 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
1620 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
1621 Moved to gcj/array.h.
1622 (_Jv_Realloc): New function.
1624 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
1626 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
1627 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
1628 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
1629 JvNewDoubleArray): Implementations moved from prims.cc and
1632 * gcj/javaprims.h (_Jv_Realloc): Prototype.
1634 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
1636 2000-03-06 Tom Tromey <tromey@cygnus.com>
1638 * jni.cc (MARK_NONE): New define.
1639 (MARK_USER): Likewise.
1640 (MARK_SYSTEM): Likewise.
1641 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
1643 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
1644 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
1645 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
1646 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
1648 (call): Use MARK_SYSTEM.
1649 (_Jv_GetJNIEnvNewFrame): New function.
1650 (_Jv_LookupJNIMethod): New function.
1651 (_Jv_JNI_PopSystemFrame): New function.
1652 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
1654 2000-03-05 Tom Tromey <tromey@cygnus.com>
1656 Fix for PR libgcj/43:
1657 * include/Makefile.in: Rebuilt.
1658 * include/Makefile.am (include_HEADERS): New define.
1660 2000-03-05 Anthony Green <green@redhat.com>
1662 * gcj/javaprims.h ("Java"): Remove FirstThread.
1664 * configure.host: Fix __NO_MATH_INLNES botch.
1666 * Makefile.in: Rebuilt.
1667 * Makefile.am (nat_source_files): Move natFirstThread.cc.
1668 (gnu/gcj/runtime/FirstThread.h): Moved.
1669 (ordinary_java_source_files): Move FirstThread.java.
1670 * prims.cc: Deal with FirstThread movement.
1672 (_Jv_RunMain): Ditto.
1674 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
1675 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
1677 2000-03-05 Warren Levy <warrenl@cygnus.com>
1679 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
1680 Handle null addresses.
1682 2000-03-04 Anthony Green <green@redhat.com>
1684 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
1687 2000-03-04 Anthony Green <green@redhat.com>
1689 * configure: Rebuilt.
1690 * configure.in (ZLIBTESTSPEC): New macro.
1691 (GCTESTSPEC): New macro.
1692 (LIBGCJTESTSPEC): New macro.
1693 * libgcj-test.spec.in: New file.
1695 2000-03-02 Tom Tromey <tromey@cygnus.com>
1697 * include/java-interp.h: Don't include MethodInvocation.h.
1698 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
1699 * Makefile.in: Rebuilt.
1700 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
1701 (ordinary_java_source_files): Don't mention
1702 MethodInvocation.java.
1703 * gnu/gcj/runtime/MethodInvocation.java: Removed.
1704 * interpret.cc (MethodInvocation::continue1): Removed.
1705 (run): Handle exceptions here.
1706 * java/lang/ClassLoader.java (defineClass1, defineClass2):
1708 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
1710 (defineClass2): Removed.
1712 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
1714 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
1716 (hack_call): Removed.
1718 * java/lang/Class.h (Class): Removed hackRunInitializers,
1720 * java/lang/natClass.cc (hackRunInitializers): Removed.
1721 (initializeClass): Catch exceptions here.
1722 Include ExceptionInInitializerError.h.
1723 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
1726 * java/lang/Object.h (Object): Don't mention hack12_6.
1727 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
1729 * java/lang/Object.java (hack12_6): Removed.
1731 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
1732 (start): Use run_, not run__.
1733 * java/lang/Thread.java (run_): Renamed from run__; old run_
1736 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
1737 (_Jv_JNI_EnsureLocalCapacity): Likewise.
1738 (_Jv_JNI_DefineClass): Likewise.
1739 (_Jv_JNI_ThrowNew): Likewise.
1740 (_Jv_JNI_AllocObject): Likewise.
1741 (_Jv_JNI_GetAnyMethodID): Likewise.
1742 (_Jv_JNI_CallAnyMethodV): Likewise.
1743 (_Jv_JNI_CallAnyMethodA): Likewise.
1744 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
1745 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
1746 (_Jv_JNI_GetAnyFieldID): Likewise.
1747 (_Jv_JNI_NewString): Likewise.
1748 (_Jv_JNI_NewStringUTF): Likewise.
1749 (_Jv_JNI_GetStringUTFChars): Likewise.
1750 (_Jv_JNI_NewObjectArray): Likewise.
1751 (_Jv_JNI_NewPrimitiveArray): Likewise.
1752 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
1753 (_Jv_JNI_GetStringRegion): Likewise.
1754 (_Jv_JNI_GetStringUTFRegion): Likewise.
1755 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1756 (_Jv_JNI_MonitorEnter): Likewise.
1757 (_Jv_JNI_MonitorExit): Likewise.
1758 (_Jv_JNI_ToReflectedField): Likewise.
1759 (_Jv_JNI_ToReflectedMethod): Likewise.
1760 (_Jv_JNI_RegisterNatives): Likewise.
1761 (_Jv_JNI_AttachCurrentThread): Likewise.
1762 (_Jv_JNI_DestroyJavaVM): Likewise.
1764 2000-02-28 Mo DeJong <mdejong@cygnus.com>
1766 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
1767 error caused by the incorrect casting of a long to an int.
1769 2000-02-28 Mo DeJong <mdejong@cygnus.com>
1771 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
1772 SIGSEV caused by use of the wrong instance variable.
1774 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
1776 * java/io/File.java (File(String, String)): For dirPath, treat an
1777 empty String the same as `null'.
1779 2000-02-26 Anthony Green <green@cygnus.com>
1781 * gnu/gcj/io/MimeTypes.java: Test for null.
1783 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
1784 (JNI_GetCreatedJavaVMs): Remove compiler warning.
1786 * java/net/URLConnection.java: Update copyright notice.
1788 2000-02-25 Tom Tromey <tromey@cygnus.com>
1790 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
1793 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
1795 * java/net/URLConnection.java (initializeDateFormats): New
1797 (getHeaderFieldDate): Call initializeDateFormats if required.
1798 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
1800 Fix for PR libgcj/38.
1802 2000-02-24 Warren Levy <warrenl@cygnus.com>
1804 * java/math/BigInteger.java(ival): Made private.
1808 2000-02-20 Anthony Green <green@cygnus.com>
1810 * Makefile.in: Rebuilt.
1811 * Makefile.am (ordinary_java_source_files): Add
1812 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
1814 * scripts/MakeDefaultMimeTypes.java: New file.
1815 * scripts/mime.types: New file.
1816 * scripts/classes.pl: Moved from top level.
1817 * classes.pl: Moved to scripts directory.
1819 * java/net/URLConnection.java: Implement guessContentTypeFromName.
1821 * gnu/gcj/io/MimeTypes.java: New file.
1822 * gnu/gcj/io/DefaultMimeTypes.java: New file.
1824 2000-02-20 Tom Tromey <tromey@cygnus.com>
1826 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
1828 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
1830 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
1833 2000-02-18 Tom Tromey <tromey@cygnus.com>
1835 * include/jvm.h (_Jv_GetJavaVM): Declare.
1836 * include/java-interp.h (_Jv_GetFirstMethod): New function.
1837 (_Jv_MethodBase::get_method): New method.
1838 (_Jv_JNIMethod::set_function): New method.
1839 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
1840 (_Jv_JNI_RegisterNatives): New function.
1841 (_Jv_JNIFunctions): Updated for new functions.
1842 (_Jv_GetJavaVM): New function.
1843 (_Jv_JNI_GetJavaVM): Use it. Now static.
1844 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
1845 is already a Java thread but does not have a JNIEnv yet.
1847 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
1850 2000-02-17 Tom Tromey <tromey@cygnus.com>
1852 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
1855 2000-02-16 Tom Tromey <tromey@cygnus.com>
1857 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
1859 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
1860 (_Jv_JNI_NewObject): Likewise.
1861 (_Jv_JNI_NewObjectA): Likewise.
1862 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
1863 as "return" type to _Jv_CallAnyMethodA.
1864 (_Jv_JNI_CallAnyMethodA): Likewise.
1865 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
1867 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
1870 2000-02-15 Tom Tromey <tromey@cygnus.com>
1872 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
1874 (init_cif): Added `rtype_p' argument.
1875 * include/java-interp.h (class _Jv_MethodBase): Added
1877 (class _Jv_InterpMethod): Removed args_raw_size.
1878 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
1879 * jni.cc (call): Pass JNIEnv and (for static methods only) the
1880 class pointer as well as the ordinary arguments.
1882 * jni.cc (mangled_name): Skip leading `(' in signature.
1884 * jni.cc (add_char): Added missing `else'.
1886 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
1889 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
1893 * java/lang/natRuntime.cc (_load): Include library path with
1896 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
1899 * java/lang/natThread.cc (dumpStack): Removed.
1900 * java/lang/Thread.java (dumpStack): Implemented.
1902 2000-02-15 Tom Tromey <tromey@cygnus.com>
1904 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
1905 with `lib' for loadLibrary. Fixes PR gcj/150.
1907 2000-02-14 Warren Levy <warrenl@cygnus.com>
1909 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
1911 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
1915 (modPow): Rewritten to not use the naive, slow, brute force approach.
1916 (isProbablePrime): Implemented.
1917 (testBit): Implemented.
1918 (flipBit): Implemented.
1919 (getLowestSetBit): Implemented.
1921 2000-02-16 Anthony Green <green@redhat.com>
1923 * configure.host: Use the same options for i386 and i486 as we do
1926 2000-02-12 Tom Tromey <tromey@cygnus.com>
1928 * java/io/File.java (createTempFile): Use low bits from counter,
1931 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
1933 * THANKS: More thanks.
1935 2000-02-11 Tom Tromey <tromey@cygnus.com>
1937 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
1938 astore instruction. From Hans Boehm.
1940 2000-02-11 Warren Levy <warrenl@cygnus.com>
1942 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
1943 (BigInteger(String)): New constructor.
1944 (not): Rewritten using version from Kawa's BitOps class.
1945 (valueOf): New private methods from Kawa's BitOps class.
1952 (andNot): Implemented.
1953 (clearBit): Implemented.
1954 (setBit): Implemented.
1955 (bitCount): Implemented.
1956 (toByteArray): Implemented.
1958 2000-02-11 Tom Tromey <tromey@cygnus.com>
1960 * java/io/File.java (nextValue): Now synchronized.
1962 2000-02-10 Tom Tromey <tromey@cygnus.com>
1964 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
1965 * java/io/FileDescriptor.java (EXCL): New static field.
1966 * java/io/File.java (tmpdir): New static field.
1967 (createTempFile): New method.
1968 (nextValue): New method.
1969 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
1972 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
1973 (jboolean): Declare as an attributed int, not a bool.
1974 (_Jv_func): Declare differently for C.
1976 * gnu/gcj/jni/natNativeThread.cc: New file.
1977 * gnu/gcj/jni/NativeThread.java: New file.
1978 * java/lang/Thread.java (data): Now a RawData.
1979 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
1981 * Makefile.in: Rebuilt.
1982 * Makefile.am (java/lang/Thread.h): New target.
1983 (ordinary_java_source_files): Added NativeThread.java.
1984 (nat_source_files): Added natNativeThread.cc.
1985 * java/lang/natThread.cc: Include <jni.h>
1986 (struct natThread): Added `jni_env' field.
1987 (_Jv_GetCurrentJNIEnv): New function.
1988 (_Jv_SetCurrentJNIEnv): Likewise.
1989 (initialize_native): Initialize jni_env.
1991 * jni.cc (ThreadGroupClass): New define.
1992 (_Jv_JNI_InvokeFunctions): New structure.
1993 (JNI_GetCreatedJavaVMs): New function.
1994 (the_vm): New global.
1995 (JNI_GetDefaultJavaVMInitArgs): New function.
1996 Include NativeThread.h.
1997 (NativeThreadClass): New define.
1998 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
1999 (_Jv_JNI_DestroyJavaVM): New function.
2000 (_Jv_JNI_AttachCurrentThread): New function.
2001 (_Jv_JNI_DetachCurrentThread): New function.
2002 (_Jv_JNI_GetEnv): New function.
2003 (JNI_CreateJavaVM): New function.
2004 (_Jv_JNI_GetJavaVM): New function.
2005 (_Jv_JNIFunctions): Added entry for GetJavaVM.
2006 * include/jni.h (JavaVMAttachArgs): New structure.
2007 (JNI_EDETACHED): New define.
2008 (JNI_EVERSION): Likewise.
2009 (JavaVM): Define properly.
2010 (struct JNIInvokeInterface): New structure.
2011 (class _Jv_JavaVM): New class.
2012 (JNI_OnLoad, JNI_OnUnload): Declare.
2013 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
2014 JNI_GetCreatedJavaVMs): Declare.
2015 (JavaVMInitArgs): New typedef.
2016 (JavaVMOption): Likewise.
2017 (JNI_ERR): New define.
2020 2000-02-10 Andrew Haley <aph@cygnus.com>
2022 * interpret.cc: Don't include fdlibm.h.
2023 Replace #if with #ifdef throughout.
2024 Declare extern __ieee754_fmod.
2025 (continue1): Remove op_getfield, op_getstatic, op_putfield,
2027 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
2028 Search class hierarchy for superclass vtable.
2030 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
2031 off the end of a pointer list.
2033 * java/lang/natThread.cc (stop): Don't abort, throw an exception
2037 2000-02-09 Tom Tromey <tromey@cygnus.com>
2039 * java/lang/natRuntime.cc (_load): Call add_library.
2040 (loadLibraryInternal): Likewise.
2042 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
2043 iconv_close when handle is not NULL. Thanks to Andrew Haley.
2044 (Output_iconv::finalize): Likewise.
2046 2000-02-08 Tom Tromey <tromey@cygnus.com>
2048 * java/util/Properties.java (setProperty): New method.
2049 (store): New method.
2051 2000-02-07 Tom Tromey <tromey@cygnus.com>
2053 * java/lang/Runtime.java (_load): Declare.
2054 (load, loadLibrary): Wrote in terms of _load.
2055 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
2057 (loadLibrary): Likewise.
2059 (_load): New method.
2060 (loadLibrary, load): Removed.
2062 * jni.cc (ThrowableClass): New define.
2063 (_Jv_JNI_Throw): Check argument.
2064 (_Jv_JNI_ThrowNew): Likewise.
2065 (wrap_value): Don't wrap object if it is NULL.
2066 (_Jv_JNI_DefineClass): Use wrap_value.
2067 (_Jv_JNI_FindClass): Likewise.
2068 (_Jv_JNI_GetSuperclass): Likewise.
2069 (_Jv_JNI_ExceptionOccurred): Likewise.
2070 (_Jv_JNI_AllocObject): Likewise.
2071 (_Jv_JNI_GetObjectClass): Likewise.
2072 (_Jv_JNI_NewString): Likewise.
2073 (_Jv_JNI_NewStringUTF): Likewise.
2074 (_Jv_JNI_NewObjectArray): Likewise.
2075 (_Jv_JNI_GetObjectArrayElement): Likewise.
2076 (_Jv_JNI_NewPrimitiveArray): Likewise.
2077 (_Jv_JNI_ToReflectedField): Likewise.
2078 (_Jv_JNI_ToReflectedMethod): Likewise.
2079 (_Jv_JNI_AllocObject): Check argument.
2080 (_Jv_JNI_NewObjectV): Likewise.
2081 (_Jv_JNI_NewObject): Likewise.
2082 (_Jv_JNI_NewObjectA): Likewise.
2083 (_Jv_JNI_GetObjectClass): Likewise.
2084 (_Jv_JNI_GetField): Likewise.
2085 (_Jv_JNI_SetField): Likewise.
2087 * interpret.cc (PUSHL): Don't use expression statement.
2092 * jni.cc (add_char): Conditional on INTERPRETER.
2093 (mangled_name): Likewise.
2095 * include/java-interp.h (class _Jv_MethodBase): Conditional on
2097 (class _Jv_JNIMethod): Likewise.
2099 2000-02-04 Warren Levy <warrenl@cygnus.com>
2101 * Makefile.am: Added MPN.java and BigInteger.java.
2102 * Makefile.in: Rebuilt.
2103 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
2105 * java/math/BigInteger.java: New file. Based primarily on
2106 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
2108 2000-02-04 Tom Tromey <tromey@cygnus.com>
2110 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
2112 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
2113 if the method is native.
2114 * resolve.cc (ncode): Don't handle native methods.
2115 (_Jv_JNIMethod::ncode): New method.
2116 (_Jv_PrepareClass): Handle native methods.
2117 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
2118 Include AbstractMethodError.h.
2119 (add_char): New function.
2120 (mangled_name): Likewise.
2121 * include/java-interp.h (class _Jv_JNIMethod): New class.
2122 (class _Jv_MethodBase): New class.
2123 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
2124 (_Jv_InterpClass): Changed `interpreted_methods' field to type
2127 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
2128 * java/lang/natRuntime.cc (libraries_size, libraries_count,
2129 libraries): New globals.
2130 (add_library): New function.
2131 (_Jv_FindSymbolInExecutable): New function.
2133 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
2136 2000-02-04 Andrew Haley <aph@cygnus.com>
2138 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
2139 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
2140 * java/lang/natThrowable.cc (printRawStackTrace): Rename
2141 printStackTrace to printRawStackTrace.
2143 2000-02-03 Tom Tromey <tromey@cygnus.com>
2145 * java/util/Calendar.java (toString): New method.
2146 * java/util/SimpleTimeZone.java (clone): New method.
2147 (toString): New method.
2148 * java/util/TimeZone.java (clone): New method.
2149 * java/text/SimpleDateFormat.java (clone): New method.
2150 * java/text/NumberFormat.java (clone): New method.
2151 (equals): New method.
2152 * java/text/Format.java (clone): New method.
2153 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
2155 (clone): New method.
2156 * java/text/DateFormat.java (clone): New method.
2157 * java/text/Collator.java (clone): New method.
2159 2000-02-03 Tom Tromey <tromey@cygnus.com>
2161 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
2164 2000-02-01 Tom Tromey <tromey@cygnus.com>
2166 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
2167 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
2168 constructing the closure if the function is native.
2169 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
2170 a template function, #if'd out, or static.
2171 Include <java-interp.h>.
2173 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
2175 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
2177 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
2178 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
2180 (wrap_value): New function.
2181 (_Jv_JNI_CallAnyMethodV): Use it.
2182 (_Jv_JNI_CallAnyMethodA): Likewise.
2183 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
2184 (_Jv_JNI_GetStaticField): Likewise.
2186 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
2187 (_Jv_JNI_GetStaticField): Likewise.
2189 2000-01-31 Tom Tromey <tromey@cygnus.com>
2191 * prims.cc (_Jv_MallocUnchecked): New function.
2192 (main_init): Call _Jv_JNI_Init.
2193 * include/jvm.h (_Jv_MallocUnchecked): Declare.
2194 (_Jv_JNI_Init): Declare.
2195 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
2197 (_Jv_JNI_NewGlobalRef): New function.
2198 (_Jv_JNI_DeleteGlobalRef): New function.
2199 (_Jv_JNI_DeleteLocalRef): New function.
2200 (_Jv_JNI_conversion_call): Initialize and clear local reference
2202 (_Jv_JNI_NewLocalRef): New function.
2203 (struct _Jv_JNI_LocalFrame): New structure.
2204 (_Jv_JNI_PushLocalFrame): New function.
2205 (_Jv_JNI_EnsureLocalCapacity): New function.
2206 (FRAME_SIZE): New define.
2207 (_Jv_JNI_GetStringChars): Mark string, not characters.
2208 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
2209 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
2210 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
2212 (_Jv_JNI_DefineClass): Make return value a local ref.
2213 (_Jv_JNI_FindClass): Likewise.
2214 (_Jv_JNI_GetSuperclass): Likewise.
2215 (_Jv_JNI_ExceptionOccurred): Likewise.
2216 (_Jv_JNI_AllocObject): Likewise.
2217 (_Jv_JNI_GetObjectClass): Likewise.
2218 (_Jv_JNI_CallAnyMethodV): Likewise.
2219 (_Jv_JNI_NewString): Likewise.
2220 (_Jv_JNI_NewStringUTF): Likewise.
2221 (_Jv_JNI_NewObjectArray): Likewise.
2222 (_Jv_JNI_GetObjectArrayElement): Likewise.
2223 (_Jv_JNI_ToReflectedField): Likewise.
2224 (_Jv_JNI_ToReflectedMethod): Likewise.
2225 (_Jv_JNIFunctions): Updated table for new functions.
2226 (_Jv_JNI_Init): New function.
2227 (mark_for_gc): Wrote.
2228 (unmark_for_gc): Wrote.
2229 * include/jni.h (struct JNINativeInterface): Removed name from
2230 PopLocalFrame parameter.
2231 (class _Jv_JNIEnv): Added `locals' field.
2233 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
2235 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
2238 2000-01-30 Tom Tromey <tromey@cygnus.com>
2240 * include/config.h.in: Rebuilt.
2241 * acconfig.h (HAVE_ICONV): Define.
2242 * configure: Rebuilt.
2243 * configure.in: Check for `iconv' function.
2244 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
2245 no specific encoder exists.
2246 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
2247 no specific encoder exists.
2248 * Makefile.in: Rebuilt.
2249 * Makefile.am (convert_source_files): Mention Input_iconv.java and
2251 (nat_source_files): Added natIconv.cc.
2252 * gnu/gcj/convert/natIconv.cc: New file.
2253 * gnu/gcj/convert/Input_iconv.java: New file.
2254 * gnu/gcj/convert/Output_iconv.java: New file.
2256 2000-01-28 Tom Tromey <tromey@cygnus.com>
2258 * Makefile.in: Rebuilt.
2259 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
2261 2000-01-26 Tom Tromey <tromey@cygnus.com>
2263 * gcj/method.h (JvNumMethods): Moved from Class.h.
2264 (JvGetFirstMethod): Likewise.
2265 * java/lang/Class.h (Object): Updated decl of
2266 _Jv_JNI_ToReflectedField.
2267 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
2268 * Makefile.in: Rebuilt.
2269 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
2270 argument of _Jv_JNI_ToReflectedField.
2271 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
2273 (java/lang/reflect/Method.h): Likewise.
2274 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
2276 (jweak): New typedef.
2277 (struct JNINativeInterface): Correctly declare remaining entries.
2278 * jni.cc: Include Class.h, ClassLoader.h.
2279 (_Jv_JNI_FindClass): New function.
2280 (_Jv_JNI_DefineClass): New function.
2281 (_Jv_JNI_conversion_call): New function.
2282 (_Jv_JNI_FindClass): Use current class loader to find class.
2283 (_Jv_JNI_ExceptionCheck): New function.
2284 (_Jv_JNI_FromReflectedField): Now static.
2285 (MethodClass): New define.
2286 (_Jv_JNI_FromReflectedMethod): New function.
2287 (_Jv_JNI_ToReflectedMethod): Likewise.
2289 (_Jv_JNI_IsAssignableFrom): Renamed.
2290 (_Jv_JNI_GetStringRegion): New function.
2291 Include StringIndexOutOfBoundsException.h.
2292 (_Jv_JNI_GetStringUTFRegion): New function.
2293 (_Jv_JNIFunctions): Updated for new functions.
2294 (_Jv_JNI_GetPrimitiveArrayCritical): New function
2295 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
2296 (_Jv_JNI_GetStringCritical): New function.
2297 (_Jv_JNI_ReleaseStringCritical): Likewise.
2298 (get_throwable): Removed.
2299 (GCJ_JV_JNIENV_FRIEND): Removed.
2300 (__GCJ_JNI_IMPL__): Define.
2303 * resolve.cc (get_ffi_type_from_signature): Handle case where
2306 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
2308 * interpret.cc (run): Don't call println.
2309 Don't include PrintStream.h.
2311 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
2312 nameIndex. Use "jint" as type for boffset.
2313 * java/lang/Class.h (struct _Jv_Method): Made accflags a
2315 (Class): Likewise. Also changed type of method_count,
2316 vtable_method_count, size_in_bytes, field_count,
2317 static_field_count, interface_count.
2318 * gcj/array.h (__JArray): Made `length' a const jsize, not an
2321 2000-01-21 Tom Tromey <tromey@cygnus.com>
2323 * java/lang/reflect/natConstructor.cc (newInstance): Use
2325 * include/jvm.h: Declare _Jv_CallAnyMethodA.
2326 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
2327 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
2330 (invoke): Use _Jv_CallAnyMethodA.
2332 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
2333 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
2335 (struct _Jv_Method): Added getNextMethod method.
2336 (JvNumMethods): New function.
2337 (JvGetFirstMethod): Likewise.
2338 * gcj/field.h (JvGetFirstStaticField): New function.
2339 (JvNumStaticFields): Likewise.
2340 (getNextField): Renamed from getNextInstanceField.
2341 (struct _Jv_Field): New method getClass.
2342 * jni.cc: Wrote many new functions.
2343 * include/jni.h (JNI_TRUE): Define.
2344 (JNI_FALSE): Likewise.
2345 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
2346 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
2347 jcharArray, jfloatArray, jdoubleArray): New typedefs.
2348 (jfieldID, jmethodID): Likewise.
2349 (JNI_COMMIT, JNI_ABORT): New defines.
2350 (JNINativeMethod): New struct.
2351 (struct JNINativeInterface): Correctly declared more entries.
2352 (class _Jv_JNIEnv): Added `ex' member.
2353 (JNI_VERSION_1_1): New define.
2354 (JNI_VERSION_1_2): Likewise.
2356 * boehm.cc (_Jv_MarkObj): Use getNextField, not
2357 getNextInstanceField.
2359 2000-01-20 Tom Tromey <tromey@cygnus.com>
2361 * resolve.cc (StringClass): Removed.
2362 * defineclass.cc (StringClass): Removed.
2364 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
2368 2000-01-19 Tom Tromey <tromey@cygnus.com>
2370 * interpret.cc (PC_REGISTER_ASM): Removed.
2372 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
2373 From Bryce McKinlay.
2375 * All files: Updated copyright to reflect Cygnus purchase.
2377 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
2379 * configure: Rebuilt.
2380 * configure.in: Recognize --disable-interpreter.
2382 2000-01-18 Andrew Haley <aph@cygnus.com>
2384 * name-finder.cc (lookup): Check for dladdr function.
2385 acconfig.h (HAVE_DLADDR): Add.
2386 configure.in: Check for HAVE_DLADDR
2388 include/config.h.in: Rebuilt.
2390 2000-01-17 Andrew Haley <aph@cygnus.com>
2392 * prims.cc (_Jv_RunMain): Set the name of this executable.
2394 2000-01-17 Tom Tromey <tromey@cygnus.com>
2396 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
2397 when backtrace can't be computed.
2399 * configure: Rebuilt.
2400 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
2402 * java/lang/Runtime.java (loadLibraryInternal): Declare.
2403 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
2404 (_Jv_FindClassInCache): Likewise.
2405 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
2406 (findSystemClass): Try to load class from compiled module.
2408 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
2409 (loadLibrary): Likewise.
2410 (lt_preloaded_symbols): Define.
2411 (loadLibraryInternal): New method.
2412 * include/config.h.in: Rebuilt.
2413 * acconfig.h (USE_LTDL): Added.
2414 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
2415 (INCLUDES): Added $(INCLTDL).
2416 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
2417 (libgcj_la_LIBADD): Likewise.
2418 * aclocal.m4, configure: Rebuilt.
2419 * configure.in: Added libltdl support.
2421 2000-01-15 Tom Tromey <tromey@cygnus.com>
2423 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
2425 2000-01-14 Andrew Haley <aph@cygnus.com>
2427 * java/lang/natThrowable.cc: New file.
2429 * java/lang/Throwable.java (fillInStackTrace): Make native.
2430 (printStackTrace): Call native method to do this.
2431 (Throwable): Call fillInStackTrace.
2432 (stackTrace): New variable.
2434 * include/jvm.h: Add _Jv_ThisExecutable functions.
2436 * prims.cc: (_Jv_execName): New variable.
2437 (catch_segv): Call fillInStackTrace.
2439 (_Jv_ThisExecutable): New functions.
2440 (JvRunMain): Set the name of this executable.
2442 * Makefile.am: Add java/lang/natThrowable.cc.
2444 * Makefile.in: Rebuilt.
2446 * acconfig.h: Add HAVE_PROC_SELF_EXE.
2448 * configure.in: Force link with __frame_state_for in
2449 FORCELIBGCCSPEC. Add new checks for backtrace.
2450 * include/config.h.in: Rebuilt.
2452 * name-finder.cc: New file.
2453 * include/name-finder.h: New file.
2455 2000-01-16 Anthony Green <green@cygnus.com>
2457 * java/lang/StringBuffer.java (StringBuffer): Don't special case
2460 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
2462 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
2464 2000-01-13 Tom Tromey <tromey@cygnus.com>
2466 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
2467 not system loader, as initiating loader.
2469 2000-01-11 Tom Tromey <tromey@cygnus.com>
2471 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
2472 HP/UX. From David Scott Urban.
2474 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
2476 * java/lang/natMath.cc (pow): Cast args to `double', not
2479 (IEEEremainder): Likewise.
2480 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
2481 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
2483 2000-01-09 Anthony Green <green@cygnus.com>
2485 * java/lang/natString.cc (init): Test for overflow condition
2486 during out of bounds check.
2487 (getChars): Throw StringIndexOutOfBoundsException, not
2488 ArrayIndexOutOfBoundsException.
2490 (regionMatches): Obey case option during string comparison.
2492 * configure.host (ligcj_interpreter): New variable. Enable
2493 interpreter by default on IA-32.
2494 * configure.in: Examine libgcj_interpreter.
2495 * configure: Rebuilt.
2497 2000-01-07 Tom Tromey <tromey@cygnus.com>
2499 * mauve-libgcj: Don't disable ClassTest.
2501 * java/lang/natClass.cc (getClasses): Wrote.
2503 2000-01-06 Tom Tromey <tromey@cygnus.com>
2505 * java/lang/natClass.cc (_getConstructors): Correctly check
2506 whether method name is the init name.
2507 (getMethod): Look at accflags on method in `klass', not `this'.
2509 2000-01-05 Tom Tromey <tromey@cygnus.com>
2511 * java/lang/natClass.cc (getMethod): Compute offset relative to
2512 `klass's methods table, not `this's table.
2514 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
2515 In unwrapping/widening case, check whether `k' is null, not
2516 whether it is primitive. Initialize `num' from `argelts', not
2517 `paramelts'. Correct create and pass arguments to ffi_call.
2518 Don't let presence of `this' argument affect index used to look in
2520 (COPY): Set appropriate element in `values' vector.
2522 * java/lang/natClass.cc: Include <gcj/method.h>.
2524 * java/lang/Class.h (_getMethods): Correctly declare as private,
2527 * java/lang/Class.h (_getMethods): Declare.
2528 * java/lang/Class.java (_getMethods): Declare.
2529 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
2530 (getDeclaredClasses): Always return empty array.
2531 (_getMethods): New method.
2532 (getMethods): Wrote.
2533 (getDeclaredMethod): Return `rmethod'.
2534 (finit_name): New global.
2535 (getDeclaredMethods): Check for finit_name.
2536 (_getMethods): Likewise.
2537 (getMethod): Only return public methods.
2539 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
2540 jboolean and select correct ffi type on that basis.
2541 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
2542 Constructor call always has `void' return type.
2544 2000-01-04 Tom Tromey <tromey@cygnus.com>
2546 * java/lang/Class.h (getSignature): Updated.
2547 * java/lang/Class.java (getSignature): Updated.
2548 * java/lang/natClass.cc (getSignature): Added `is_constructor'
2550 (getConstructor): Ensure constructor is public.
2551 (_getConstructors): Check for public-ness of constructor when
2552 `declared' is false, not when it is true.
2554 2000-01-04 Warren Levy <warrenl@cygnus.com>
2556 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
2558 (receive): Set the sender's address in the DatagramPacket.
2560 2000-01-04 Tom Tromey <tromey@cygnus.com>
2562 * java/lang/reflect/natConstructor.cc (newInstance): Pass
2563 declaring class as return_type argument to
2564 _Jv_CallNonvirtualMethodA.
2565 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
2566 constructor case, create object and use it as `this' argument.
2567 * java/lang/Class.h (_getConstructors): Declare.
2568 (_getFields): Declare.
2569 * java/lang/Class.java (getConstructors): Wrote.
2570 (_getConstructors): New native method.
2571 (getDeclaredConstructors): Wrote.
2572 (_getFields): Declare new native method.
2573 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
2575 (getMethod): Work correctly when class is primitive.
2576 (getDeclaredMethods): Likewise. Compute offset using `method',
2578 (getDeclaredMethod): Likewise.
2579 (getConstructor): Wrote.
2580 (ConstructorClass): New define.
2581 (getDeclaredConstructor): Wrote.
2582 (_getConstructors): New method.
2583 (_getFields): New method.
2586 * Makefile.in: Rebuilt.
2587 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
2589 * prims.cc: Remove `#pragma implementation'.
2590 * gcj/array.h: Remove `#pragma interface'.
2592 * prims.cc (_Jv_equaln): New function.
2593 * java/lang/Class.java (getSignature): Declare.
2594 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
2595 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
2597 (getSignature): New method.
2598 (getDeclaredMethod): Wrote.
2600 Include StringBuffer.h.
2601 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
2602 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
2604 (getSignature): Declare.
2605 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
2606 (_Jv_equaln): Declare.
2607 (_Jv_CallNonvirtualMethodA): Declare.
2608 * Makefile.in: Rebuilt.
2609 * Makefile.am (nat_source_files): Added natConstructor.cc.
2610 (java/lang/reflect/Constructor.h): New target.
2611 * java/lang/reflect/natConstructor.cc: New file.
2612 * java/lang/reflect/Constructor.java (newInstance): Now native.
2613 (declaringClass): Renamed from decl_class.
2614 (offset): Renamed from index.
2615 (getType): New native method.
2616 (getModifiers): Now native.
2617 (getParameterTypes): Call getType if required.
2618 (hashCode): Include hash code from declaring class.
2619 (modifiers): Removed.
2620 (toString): Call getType if required.
2621 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
2622 * java/lang/reflect/natMethod.cc (hack_call): New method.
2623 Removed `#if 0' around FFI code.
2624 Include <gnu/gcj/RawData.h>.
2625 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
2626 IllegalArgumentException when argument object and class disagree.
2627 (_Jv_GetTypesFromSignature): New function.
2629 (ObjectClass): New define.
2630 (_Jv_CallNonvirtualMethodA): New function.
2631 * java/lang/reflect/Method.java (hack_trampoline): New method.
2632 (hack_call): New native method.