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