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