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