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