OSDN Git Service

* java/awt/Font.java(isBold): Fix syntax error.
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2000-03-24  Warren Levy  <warrenl@cygnus.com>
2
3         * java/awt/Font.java(isBold): Fix syntax error.
4         (isItalic): ditto.
5         * java/awt/Frame.java(postEvent): ditto.
6         * java/awt/Menu.java(postEvent): ditto.
7         * java/awt/MenuBar.java(postEvent): ditto.
8         * java/awt/Toolkit.java(init): Included a stub.
9
10 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
11
12         * java/awt/Event.java: Add all the event type constants.
13         (Event): Implemented constructors.
14         (controlDown): Implemented.
15         (metaDown): Implemented.
16         (paramString): Stubbed.
17         (shiftDown): Implemented.
18         (toString): Implemented.
19         (translate): Implemented.
20
21 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
22
23         * java/lang/natClass.cc (isInstance): Initialize `this'.
24         (isAssignableFrom): Initialize `this' and `klass'.
25         (_Jv_IsAssignableFrom): If an interface has no idt, it is not 
26         implemented by any loaded class, so return false.
27         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), 
28         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
29
30 2000-03-19  Warren Levy  <warrenl@cygnus.com>
31
32         * java/awt/Color.java: Specified java.io for Serializable.
33         * java/awt/Toolkit.java: Imported java.net.URL.
34
35 2000-03-19  Warren Levy  <warrenl@cygnus.com>
36
37         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
38
39 2000-03-16  Warren Levy  <warrenl@cygnus.com>
40
41         * java/awt/Color.java: New file.
42         * java/awt/Graphics.java: New file.
43         * java/awt/Image.java: New file.
44         * java/awt/Paint.java: New file.
45         * java/awt/PaintContext.java: New file.
46         * java/awt/Transparency.java: New file.
47         * java/util/Collection.java: New file.
48         * java/util/Comparator.java: New file.
49         * java/util/Iterator.java: New file.
50         * java/util/List.java: New file.
51         * java/util/ListIterator.java: New file.
52         * Makefile.am: Added above new files.
53         * Makefile.in: Rebuilt.
54
55         * java/awt/Font.java (PLAIN): New field.
56         (BOLD): New field.
57         (ITALIC): New field.
58         (ROMAN_BASELINE): New field.
59         (CENTER_BASELINE): New field.
60         (HANGING_BASELINE): New field.
61         (name): New field.
62         (style): New field.
63         (size): New field.
64         (pointSize): New field.
65         (Font): Implemented constructor.
66         (isPlain): Implemented method.
67         (isBold): Implemented method.
68         (isItalic): Implemented method.
69         (getName): Implemented method.
70         (getStyle): Implemented method.
71         (getSize): Implemented method.
72         (getSize2D): Implemented method.
73         (decode): Stubbed.
74         * java/awt/Frame.java (getFont): Stubbed.
75         (postEvent): Stubbed.
76         (remove): Stubbed.
77         * java/awt/Menu.java (postEvent): Stubbed.
78         * java/awt/MenuBar.java (getFont): Stubbed.
79         (postEvent): Stubbed.
80         * java/awt/Toolkit.java (getImage): Added abstract method.
81
82 2000-03-15  Tom Tromey  <tromey@cygnus.com>
83
84         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
85
86         * prims.cc (win32_exception_handler): Reformatted.
87
88         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
89         (_Jv_HaveMutexDestroy): Likewise.
90
91 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
92
93         * java/io/natFileDescriptorWin32.cc: New file.
94         * java/io/natFileWin32.cc: New file.
95         * java/net/natInetAddress.cc: Added conditional inclusion of
96         Windows / Winsock headers.
97         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
98         inclusion of Windows / Winsock headers.
99         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
100         Windows / Winsock headers.
101         * include/win32-signal.h: New file.
102         * include/win32-threads.h: New file.
103         * win32-threads.cc: New file.
104         * exception.cc (win32_get_restart_frame): New function.
105         * prims.cc (win32_exception_handler): New function.
106         (main_init) Performs Winsock initialisation.
107         (main_init) Installs exeception handler.
108
109 2000-03-14  Tom Tromey  <tromey@cygnus.com>
110
111         * jni.cc (mangled_name): Fixed assertion.
112         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
113         turned assert into actual failure.
114
115 2000-03-09  Warren Levy  <warrenl@cygnus.com>
116
117         * java/security/Key.java(serialVersionUID): Set to 0 for now.
118         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
119         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
120
121 2000-03-09  Warren Levy  <warrenl@cygnus.com>
122
123         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
124         * java/security/DigestException.java: New file.
125         * java/security/GeneralSecurityException.java: New file.
126         * java/security/InvalidAlgorithmParameterException.java: New file.
127         * java/security/InvalidKeyException.java: New file.
128         * java/security/InvalidParameterException.java: New file.
129         * java/security/Key.java: New file.
130         * java/security/KeyException.java: New file.
131         * java/security/KeyPair.java: New file.
132         * java/security/KeyPairGenerator.java: New file.
133         * java/security/KeyPairGeneratorSpi.java: New file.
134         * java/security/NoSuchProviderException.java: New file.
135         * java/security/PrivateKey.java: New file.
136         * java/security/Provider.java: New file.
137         * java/security/PublicKey.java: New file.
138         * java/security/SecureRandom.java: New file.
139         * java/security/Security.java: New file.
140         * java/security/Signature.java: New file.
141         * java/security/SignatureException.java: New file.
142         * java/security/interfaces/DSAKey.java: New file.
143         * java/security/interfaces/DSAParams.java: New file.
144         * java/security/interfaces/DSAPrivateKey.java: New file.
145         * java/security/interfaces/DSAPublicKey.java: New file.
146         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
147         * java/security/interfaces/RSAPrivateKey.java: New file.
148         * java/security/interfaces/RSAPublicKey.java: New file.
149         * java/security/spec/AlgorithmParameterSpec.java: New file.
150         * java/security/spec/InvalidKeySpecException.java: New file.
151         * java/security/spec/InvalidParameterSpecException.java: New file.
152         * java/security/spec/KeySpec.java: New file.
153         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
154         * java/security/spec/RSAPrivateKeySpec.java: New file.
155         * java/security/spec/RSAPublicKeySpec.java: New file.
156         * Makefile.am: Added above java.security files.
157         * Makefile.in: Rebuilt.
158
159         * java/security/MessageDigest.java: Rewritten.
160         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
161
162 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
163
164         * README: Updated.
165
166 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
167
168         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
169         _Jv_PrepareConstantTimeTables.
170         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
171         classes should have an IDT, so don't return if klass is an array
172         class.
173
174 2000-03-08  Tom Tromey  <tromey@cygnus.com>
175
176         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
177         of `void' to be created.
178
179 2000-03-08  Warren Levy  <warrenl@cygnus.com>
180
181         * java/math/BigInteger.java(signum): Handle zero properly.
182
183 2000-03-07  Tom Tromey  <tromey@cygnus.com>
184
185         * All files: Updated copyright information.
186         * COPYING: New file.
187         * COPYING.LIB: Removed.
188         * LIBGCJ_LICENSE: We now use GPL + special exception.
189
190 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
191
192         * resolve.cc (_Jv_SearchMethodInClass): New function.
193         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
194         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
195
196 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
197
198         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
199         (struct _Jv_ifaces): New declaration.
200         JV_CLASS: New macro definition.
201         (getComponentType): Relocate below isArray() for inlining.
202         (getModifiers): Declare `inline'.
203         (getSuperclass): Ditto.
204         (isArray): Ditto.
205         (isPrimitive): Ditto.
206         (_Jv_IsAssignableFrom): New prototype.
207         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
208         linkage.
209         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
210         Check for JV_STATE_DONE before invoking initializeClass().
211         (_Jv_PrepareConstantTimeTables): New prototype.
212         (_Jv_GetInterfaces): Ditto.
213         (_Jv_GenerateITable): Ditto.
214         (_Jv_GetMethodString): Ditto.
215         (_Jv_AppendPartialITable): Ditto.
216         (_Jv_FindIIndex): Ditto.
217         depth, ancestors, idt: New class fields.
218
219         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
220         inline function `_Jv_IsAssignableFrom'. Use that function.
221         (isInstance): Declare `inline'.
222         (initializeClass): Get lock on class before checking `state'. Unlock 
223         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with 
224         the lock held.
225         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
226         (_Jv_IsAssignableFrom): New inline function. Test assignability using 
227         class->depth and ancestor table.
228         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
229         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
230         _Jv_IsAssignableFrom.
231         (_Jv_CheckArrayStore): Ditto.
232         (_Jv_LookupInterfaceMethodIdx): New function. 
233         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
234         (_Jv_PrepareConstantTimeTables): New function.
235         (_Jv_IndexOf): Ditto.
236         (_Jv_GetInterfaces): Ditto.
237         (_Jv_GenerateITable): Ditto.
238         (_Jv_GetMethodString): Ditto.
239         (_Jv_AppendPartialITable): Ditto.
240         iindex_mutex, iindex_mutex_initialized: New static fields.
241         (_Jv_FindIIndex): New function.
242
243         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
244
245         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
246         (_Jv_CheckArrayStore): Ditto.
247         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
248         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
249         Moved to gcj/array.h.
250         (_Jv_Realloc): New function.
251
252         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
253
254         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
255         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
256         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
257         JvNewDoubleArray): Implementations moved from prims.cc and
258         declared `inline'.
259
260         * gcj/javaprims.h (_Jv_Realloc): Prototype.
261
262         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
263
264 2000-03-06  Tom Tromey  <tromey@cygnus.com>
265
266         * jni.cc (MARK_NONE): New define.
267         (MARK_USER): Likewise.
268         (MARK_SYSTEM): Likewise.
269         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
270         smaller.
271         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
272         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
273         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
274         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
275         argument.
276         (call): Use MARK_SYSTEM.
277         (_Jv_GetJNIEnvNewFrame): New function.
278         (_Jv_LookupJNIMethod): New function.
279         (_Jv_JNI_PopSystemFrame): New function.
280         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
281
282 2000-03-05  Tom Tromey  <tromey@cygnus.com>
283
284         Fix for PR libgcj/43:
285         * include/Makefile.in: Rebuilt.
286         * include/Makefile.am (include_HEADERS): New define.
287
288 2000-03-05  Anthony Green  <green@redhat.com>
289
290         * gcj/javaprims.h ("Java"): Remove FirstThread.
291
292         * configure.host: Fix __NO_MATH_INLNES botch.
293
294         * Makefile.in: Rebuilt.
295         * Makefile.am (nat_source_files): Move natFirstThread.cc.
296         (gnu/gcj/runtime/FirstThread.h): Moved.
297         (ordinary_java_source_files): Move FirstThread.java.
298         * prims.cc: Deal with FirstThread movement.
299         (JvRunMain): Ditto.
300         (_Jv_RunMain): Ditto.
301
302         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
303         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
304
305 2000-03-05  Warren Levy  <warrenl@cygnus.com>
306
307         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
308           Handle null addresses.
309
310 2000-03-04  Anthony Green  <green@redhat.com>
311
312         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
313         See PR gcj/151.
314
315 2000-03-04  Anthony Green  <green@redhat.com>
316
317         * configure: Rebuilt.
318         * configure.in (ZLIBTESTSPEC): New macro.
319         (GCTESTSPEC): New macro.
320         (LIBGCJTESTSPEC): New macro.
321         * libgcj-test.spec.in: New file.
322
323 2000-03-02  Tom Tromey  <tromey@cygnus.com>
324
325         * include/java-interp.h: Don't include MethodInvocation.h.
326         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
327         * Makefile.in: Rebuilt.
328         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
329         (ordinary_java_source_files): Don't mention
330         MethodInvocation.java.
331         * gnu/gcj/runtime/MethodInvocation.java: Removed.
332         * interpret.cc (MethodInvocation::continue1): Removed.
333         (run): Handle exceptions here.
334         * java/lang/ClassLoader.java (defineClass1, defineClass2):
335         Removed.
336         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
337         here.
338         (defineClass2): Removed.
339
340         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
341         Removed.
342         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
343         exceptions here.
344         (hack_call): Removed.
345
346         * java/lang/Class.h (Class): Removed hackRunInitializers,
347         hackTrampoline.
348         * java/lang/natClass.cc (hackRunInitializers): Removed.
349         (initializeClass): Catch exceptions here.
350         Include ExceptionInInitializerError.h.
351         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
352         Removed.
353
354         * java/lang/Object.h (Object): Don't mention hack12_6.
355         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
356         here.
357         * java/lang/Object.java (hack12_6): Removed.
358
359         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
360         (start): Use run_, not run__.
361         * java/lang/Thread.java (run_): Renamed from run__; old run_
362         removed.
363
364         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
365         (_Jv_JNI_EnsureLocalCapacity): Likewise.
366         (_Jv_JNI_DefineClass): Likewise.
367         (_Jv_JNI_ThrowNew): Likewise.
368         (_Jv_JNI_AllocObject): Likewise.
369         (_Jv_JNI_GetAnyMethodID): Likewise.
370         (_Jv_JNI_CallAnyMethodV): Likewise.
371         (_Jv_JNI_CallAnyMethodA): Likewise.
372         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
373         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
374         (_Jv_JNI_GetAnyFieldID): Likewise.
375         (_Jv_JNI_NewString): Likewise.
376         (_Jv_JNI_NewStringUTF): Likewise.
377         (_Jv_JNI_GetStringUTFChars): Likewise.
378         (_Jv_JNI_NewObjectArray): Likewise.
379         (_Jv_JNI_NewPrimitiveArray): Likewise.
380         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
381         (_Jv_JNI_GetStringRegion): Likewise.
382         (_Jv_JNI_GetStringUTFRegion): Likewise.
383         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
384         (_Jv_JNI_MonitorEnter): Likewise.
385         (_Jv_JNI_MonitorExit): Likewise.
386         (_Jv_JNI_ToReflectedField): Likewise.
387         (_Jv_JNI_ToReflectedMethod): Likewise.
388         (_Jv_JNI_RegisterNatives): Likewise.
389         (_Jv_JNI_AttachCurrentThread): Likewise.
390         (_Jv_JNI_DestroyJavaVM): Likewise.
391
392 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
393
394         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
395         error caused by the incorrect casting of a long to an int.
396
397 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
398
399         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
400         SIGSEV caused by use of the wrong instance variable.
401
402 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
403
404         * java/io/File.java (File(String, String)): For dirPath, treat an
405         empty String the same as `null'.
406
407 2000-02-26  Anthony Green  <green@cygnus.com>
408
409         * gnu/gcj/io/MimeTypes.java: Test for null.
410
411         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
412         (JNI_GetCreatedJavaVMs): Remove compiler warning.
413
414         * java/net/URLConnection.java: Update copyright notice.
415
416 2000-02-25  Tom Tromey  <tromey@cygnus.com>
417
418         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
419         `INTERPRETER'.
420
421 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
422
423         * java/net/URLConnection.java (initializeDateFormats): New
424         private method.
425         (getHeaderFieldDate): Call initializeDateFormats if required.
426         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
427         these.
428         Fix for PR libgcj/38.
429
430 2000-02-24  Warren Levy  <warrenl@cygnus.com>
431
432         * java/math/BigInteger.java(ival): Made private.
433         (words): Ditto.
434         (neg): Ditto.
435
436 2000-02-20  Anthony Green  <green@cygnus.com>
437
438         * Makefile.in: Rebuilt.
439         * Makefile.am (ordinary_java_source_files): Add
440         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
441
442         * scripts/MakeDefaultMimeTypes.java: New file.
443         * scripts/mime.types: New file.
444         * scripts/classes.pl: Moved from top level.
445         * classes.pl: Moved to scripts directory.
446
447         * java/net/URLConnection.java: Implement guessContentTypeFromName.
448
449         * gnu/gcj/io/MimeTypes.java: New file.
450         * gnu/gcj/io/DefaultMimeTypes.java: New file.
451
452 2000-02-20  Tom Tromey  <tromey@cygnus.com>
453
454         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
455
456 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
457
458         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
459         (setSize): ditto.
460
461 2000-02-18  Tom Tromey  <tromey@cygnus.com>
462
463         * include/jvm.h (_Jv_GetJavaVM): Declare.
464         * include/java-interp.h (_Jv_GetFirstMethod): New function.
465         (_Jv_MethodBase::get_method): New method.
466         (_Jv_JNIMethod::set_function): New method.
467         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
468         (_Jv_JNI_RegisterNatives): New function.
469         (_Jv_JNIFunctions): Updated for new functions.
470         (_Jv_GetJavaVM): New function.
471         (_Jv_JNI_GetJavaVM): Use it.  Now static.
472         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
473         is already a Java thread but does not have a JNIEnv yet.
474
475         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
476         function.
477
478 2000-02-17  Tom Tromey  <tromey@cygnus.com>
479
480         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
481         Fixes PR gcj/152.
482
483 2000-02-16  Tom Tromey  <tromey@cygnus.com>
484
485         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
486
487         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
488         (_Jv_JNI_NewObject): Likewise.
489         (_Jv_JNI_NewObjectA): Likewise.
490         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
491         as "return" type to _Jv_CallAnyMethodA.
492         (_Jv_JNI_CallAnyMethodA): Likewise.
493         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
494
495         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
496         findClass.
497
498 2000-02-15  Tom Tromey  <tromey@cygnus.com>
499
500         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
501         jni_arg_types.
502         (init_cif): Added `rtype_p' argument.
503         * include/java-interp.h (class _Jv_MethodBase): Added
504         args_raw_size.
505         (class _Jv_InterpMethod): Removed args_raw_size.
506         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
507         * jni.cc (call): Pass JNIEnv and (for static methods only) the
508         class pointer as well as the ordinary arguments.
509
510         * jni.cc (mangled_name): Skip leading `(' in signature.
511
512         * jni.cc (add_char): Added missing `else'.
513
514         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
515         fails.
516
517 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
518
519         * NEWS: Updated.
520
521         * java/lang/natRuntime.cc (_load): Include library path with
522         exception message.
523
524         * java/lang/natSystem.cc (init_properties): set java.lang.classpath 
525         property.
526
527         * java/lang/natThread.cc (dumpStack): Removed.
528         * java/lang/Thread.java (dumpStack): Implemented.
529
530 2000-02-15  Tom Tromey  <tromey@cygnus.com>
531
532         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
533         with `lib' for loadLibrary.  Fixes PR gcj/150.
534
535 2000-02-14  Warren Levy  <warrenl@cygnus.com>
536
537         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
538
539         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
540           New constructor.
541         (min): Implemented.
542         (max): Implemented.
543         (modPow): Rewritten to not use the naive, slow, brute force approach.
544         (isProbablePrime): Implemented.
545         (testBit): Implemented.
546         (flipBit): Implemented.
547         (getLowestSetBit): Implemented.
548
549 2000-02-16  Anthony Green  <green@redhat.com>
550
551         * configure.host: Use the same options for i386 and i486 as we do
552         for i586 and i686.
553
554 2000-02-12  Tom Tromey  <tromey@cygnus.com>
555
556         * java/io/File.java (createTempFile): Use low bits from counter,
557         not high bits.
558
559 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
560
561         * THANKS: More thanks.
562
563 2000-02-11  Tom Tromey  <tromey@cygnus.com>
564
565         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
566         astore instruction.  From Hans Boehm.
567
568 2000-02-11  Warren Levy  <warrenl@cygnus.com>
569
570         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
571         (BigInteger(String)): New constructor.
572         (not): Rewritten using version from Kawa's BitOps class.
573         (valueOf): New private methods from Kawa's BitOps class.
574         (swappedOp): ditto.
575         (bitOp): ditto.
576         (setBitOp): ditto.
577         (and): Implemented.
578         (or): Implemented.
579         (xor): Implemented.
580         (andNot): Implemented.
581         (clearBit): Implemented.
582         (setBit): Implemented.
583         (bitCount): Implemented.
584         (toByteArray): Implemented.
585
586 2000-02-11  Tom Tromey  <tromey@cygnus.com>
587
588         * java/io/File.java (nextValue): Now synchronized.
589
590 2000-02-10  Tom Tromey  <tromey@cygnus.com>
591
592         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
593         * java/io/FileDescriptor.java (EXCL): New static field.
594         * java/io/File.java (tmpdir): New static field.
595         (createTempFile): New method.
596         (nextValue): New method.
597         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
598         property.
599
600         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
601         (jboolean): Declare as an attributed int, not a bool.
602         (_Jv_func): Declare differently for C.
603
604         * gnu/gcj/jni/natNativeThread.cc: New file.
605         * gnu/gcj/jni/NativeThread.java: New file.
606         * java/lang/Thread.java (data): Now a RawData.
607         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
608         Declare.
609         * Makefile.in: Rebuilt.
610         * Makefile.am (java/lang/Thread.h): New target.
611         (ordinary_java_source_files): Added NativeThread.java.
612         (nat_source_files): Added natNativeThread.cc.
613         * java/lang/natThread.cc: Include <jni.h>
614         (struct natThread): Added `jni_env' field.
615         (_Jv_GetCurrentJNIEnv): New function.
616         (_Jv_SetCurrentJNIEnv): Likewise.
617         (initialize_native): Initialize jni_env.
618         Include RawData.h.
619         * jni.cc (ThreadGroupClass): New define.
620         (_Jv_JNI_InvokeFunctions): New structure.
621         (JNI_GetCreatedJavaVMs): New function.
622         (the_vm): New global.
623         (JNI_GetDefaultJavaVMInitArgs): New function.
624         Include NativeThread.h.
625         (NativeThreadClass): New define.
626         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
627         (_Jv_JNI_DestroyJavaVM): New function.
628         (_Jv_JNI_AttachCurrentThread): New function.
629         (_Jv_JNI_DetachCurrentThread): New function.
630         (_Jv_JNI_GetEnv): New function.
631         (JNI_CreateJavaVM): New function.
632         (_Jv_JNI_GetJavaVM): New function.
633         (_Jv_JNIFunctions): Added entry for GetJavaVM.
634         * include/jni.h (JavaVMAttachArgs): New structure.
635         (JNI_EDETACHED): New define.
636         (JNI_EVERSION): Likewise.
637         (JavaVM): Define properly.
638         (struct JNIInvokeInterface): New structure.
639         (class _Jv_JavaVM): New class.
640         (JNI_OnLoad, JNI_OnUnload): Declare.
641         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
642         JNI_GetCreatedJavaVMs): Declare.
643         (JavaVMInitArgs): New typedef.
644         (JavaVMOption): Likewise.
645         (JNI_ERR): New define.
646         (JNI_OK): Likewise.
647
648 2000-02-10  Andrew Haley  <aph@cygnus.com>
649
650         * interpret.cc: Don't include fdlibm.h.
651         Replace #if with #ifdef throughout.
652         Declare extern __ieee754_fmod.
653         (continue1): Remove op_getfield, op_getstatic, op_putfield,
654         op_putstatic insns.
655         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
656         Search class hierarchy for superclass vtable.
657
658         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
659         off the end of a pointer list.
660
661         * java/lang/natThread.cc (stop): Don't abort, throw an exception
662         instead.
663         (suspend): Ditto.
664         
665 2000-02-09  Tom Tromey  <tromey@cygnus.com>
666
667         * java/lang/natRuntime.cc (_load): Call add_library.
668         (loadLibraryInternal): Likewise.
669
670         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
671         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
672         (Output_iconv::finalize): Likewise.
673
674 2000-02-08  Tom Tromey  <tromey@cygnus.com>
675
676         * java/util/Properties.java (setProperty): New method.
677         (store): New method.
678
679 2000-02-07  Tom Tromey  <tromey@cygnus.com>
680
681         * java/lang/Runtime.java (_load): Declare.
682         (load, loadLibrary): Wrote in terms of _load.
683         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
684         library.
685         (loadLibrary): Likewise.
686         Include <jni.h>.
687         (_load): New method.
688         (loadLibrary, load): Removed.
689
690         * jni.cc (ThrowableClass): New define.
691         (_Jv_JNI_Throw): Check argument.
692         (_Jv_JNI_ThrowNew): Likewise.
693         (wrap_value): Don't wrap object if it is NULL.
694         (_Jv_JNI_DefineClass): Use wrap_value.
695         (_Jv_JNI_FindClass): Likewise.
696         (_Jv_JNI_GetSuperclass): Likewise.
697         (_Jv_JNI_ExceptionOccurred): Likewise.
698         (_Jv_JNI_AllocObject): Likewise.
699         (_Jv_JNI_GetObjectClass): Likewise.
700         (_Jv_JNI_NewString): Likewise.
701         (_Jv_JNI_NewStringUTF): Likewise.
702         (_Jv_JNI_NewObjectArray): Likewise.
703         (_Jv_JNI_GetObjectArrayElement): Likewise.
704         (_Jv_JNI_NewPrimitiveArray): Likewise.
705         (_Jv_JNI_ToReflectedField): Likewise.
706         (_Jv_JNI_ToReflectedMethod): Likewise.
707         (_Jv_JNI_AllocObject): Check argument.
708         (_Jv_JNI_NewObjectV): Likewise.
709         (_Jv_JNI_NewObject): Likewise.
710         (_Jv_JNI_NewObjectA): Likewise.
711         (_Jv_JNI_GetObjectClass): Likewise.
712         (_Jv_JNI_GetField): Likewise.
713         (_Jv_JNI_SetField): Likewise.
714
715         * interpret.cc (PUSHL): Don't use expression statement.
716         (PUSHD): Likewise.
717         (LOADL): Likewise.
718         (STOREL): Likewise.
719
720         * jni.cc (add_char): Conditional on INTERPRETER.
721         (mangled_name): Likewise.
722         (call): Likewise.
723         * include/java-interp.h (class _Jv_MethodBase): Conditional on
724         INTERPRETER.
725         (class _Jv_JNIMethod): Likewise.
726
727 2000-02-04  Warren Levy  <warrenl@cygnus.com>
728
729         * Makefile.am: Added MPN.java and BigInteger.java.
730         * Makefile.in: Rebuilt.
731         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
732         <per@bothner.com>.
733         * java/math/BigInteger.java: New file.  Based primarily on
734         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
735
736 2000-02-04  Tom Tromey  <tromey@cygnus.com>
737
738         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
739         pointers.
740         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
741         if the method is native.
742         * resolve.cc (ncode): Don't handle native methods.
743         (_Jv_JNIMethod::ncode): New method.
744         (_Jv_PrepareClass): Handle native methods.
745         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
746         Include AbstractMethodError.h.
747         (add_char): New function.
748         (mangled_name): Likewise.
749         * include/java-interp.h (class _Jv_JNIMethod): New class.
750         (class _Jv_MethodBase): New class.
751         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
752         (_Jv_InterpClass): Changed `interpreted_methods' field to type
753         `_Jv_MethodBase'.
754
755         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
756         * java/lang/natRuntime.cc (libraries_size, libraries_count,
757         libraries): New globals.
758         (add_library): New function.
759         (_Jv_FindSymbolInExecutable): New function.
760
761         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
762         Now static.
763
764 2000-02-04  Andrew Haley  <aph@cygnus.com>
765
766         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
767         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
768         * java/lang/natThrowable.cc (printRawStackTrace): Rename
769         printStackTrace to printRawStackTrace.
770
771 2000-02-03  Tom Tromey  <tromey@cygnus.com>
772
773         * java/util/Calendar.java (toString): New method.
774         * java/util/SimpleTimeZone.java (clone): New method.
775         (toString): New method.
776         * java/util/TimeZone.java (clone): New method.
777         * java/text/SimpleDateFormat.java (clone): New method.
778         * java/text/NumberFormat.java (clone): New method.
779         (equals): New method.
780         * java/text/Format.java (clone): New method.
781         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
782         constructor.
783         (clone): New method.
784         * java/text/DateFormat.java (clone): New method.
785         * java/text/Collator.java (clone): New method.
786
787 2000-02-03  Tom Tromey  <tromey@cygnus.com>
788
789         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
790         method.
791
792 2000-02-01  Tom Tromey  <tromey@cygnus.com>
793
794         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
795         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
796         constructing the closure if the function is native.
797         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
798         a template function, #if'd out, or static.
799         Include <java-interp.h>.
800
801         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
802
803         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
804
805         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
806         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
807         `locals == NULL'.
808         (wrap_value): New function.
809         (_Jv_JNI_CallAnyMethodV): Use it.
810         (_Jv_JNI_CallAnyMethodA): Likewise.
811         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
812         (_Jv_JNI_GetStaticField): Likewise.
813
814         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
815         (_Jv_JNI_GetStaticField): Likewise.
816
817 2000-01-31  Tom Tromey  <tromey@cygnus.com>
818
819         * prims.cc (_Jv_MallocUnchecked): New function.
820         (main_init): Call _Jv_JNI_Init.
821         * include/jvm.h (_Jv_MallocUnchecked): Declare.
822         (_Jv_JNI_Init): Declare.
823         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
824         <string.h>.
825         (_Jv_JNI_NewGlobalRef): New function.
826         (_Jv_JNI_DeleteGlobalRef): New function.
827         (_Jv_JNI_DeleteLocalRef): New function.
828         (_Jv_JNI_conversion_call): Initialize and clear local reference
829         frame.
830         (_Jv_JNI_NewLocalRef): New function.
831         (struct _Jv_JNI_LocalFrame): New structure.
832         (_Jv_JNI_PushLocalFrame): New function.
833         (_Jv_JNI_EnsureLocalCapacity): New function.
834         (FRAME_SIZE): New define.
835         (_Jv_JNI_GetStringChars): Mark string, not characters.
836         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
837         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
838         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
839         elements.
840         (_Jv_JNI_DefineClass): Make return value a local ref.
841         (_Jv_JNI_FindClass): Likewise.
842         (_Jv_JNI_GetSuperclass): Likewise.
843         (_Jv_JNI_ExceptionOccurred): Likewise.
844         (_Jv_JNI_AllocObject): Likewise.
845         (_Jv_JNI_GetObjectClass): Likewise.
846         (_Jv_JNI_CallAnyMethodV): Likewise.
847         (_Jv_JNI_NewString): Likewise.
848         (_Jv_JNI_NewStringUTF): Likewise.
849         (_Jv_JNI_NewObjectArray): Likewise.
850         (_Jv_JNI_GetObjectArrayElement): Likewise.
851         (_Jv_JNI_ToReflectedField): Likewise.
852         (_Jv_JNI_ToReflectedMethod): Likewise.
853         (_Jv_JNIFunctions): Updated table for new functions.
854         (_Jv_JNI_Init): New function.
855         (mark_for_gc): Wrote.
856         (unmark_for_gc): Wrote.
857         * include/jni.h (struct JNINativeInterface): Removed name from
858         PopLocalFrame parameter.
859         (class _Jv_JNIEnv): Added `locals' field.
860
861 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
862
863         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
864         (write): Ditto.
865
866 2000-01-30  Tom Tromey  <tromey@cygnus.com>
867
868         * include/config.h.in: Rebuilt.
869         * acconfig.h (HAVE_ICONV): Define.
870         * configure: Rebuilt.
871         * configure.in: Check for `iconv' function.
872         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
873         no specific encoder exists.
874         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
875         no specific encoder exists.
876         * Makefile.in: Rebuilt.
877         * Makefile.am (convert_source_files): Mention Input_iconv.java and
878         Output_iconv.java.
879         (nat_source_files): Added natIconv.cc.
880         * gnu/gcj/convert/natIconv.cc: New file.
881         * gnu/gcj/convert/Input_iconv.java: New file.
882         * gnu/gcj/convert/Output_iconv.java: New file.
883
884 2000-01-28  Tom Tromey  <tromey@cygnus.com>
885
886         * Makefile.in: Rebuilt.
887         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
888
889 2000-01-26  Tom Tromey  <tromey@cygnus.com>
890
891         * gcj/method.h (JvNumMethods): Moved from Class.h.
892         (JvGetFirstMethod): Likewise.
893         * java/lang/Class.h (Object): Updated decl of
894         _Jv_JNI_ToReflectedField.
895         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
896         * Makefile.in: Rebuilt.
897         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
898         argument of _Jv_JNI_ToReflectedField.
899         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
900         as a friend.
901         (java/lang/reflect/Method.h): Likewise.
902         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
903         __GCJ_JNI_IMPL__.
904         (jweak): New typedef.
905         (struct JNINativeInterface): Correctly declare remaining entries.
906         * jni.cc: Include Class.h, ClassLoader.h.
907         (_Jv_JNI_FindClass): New function.
908         (_Jv_JNI_DefineClass): New function.
909         (_Jv_JNI_conversion_call): New function.
910         (_Jv_JNI_FindClass): Use current class loader to find class.
911         (_Jv_JNI_ExceptionCheck): New function.
912         (_Jv_JNI_FromReflectedField): Now static.
913         (MethodClass): New define.
914         (_Jv_JNI_FromReflectedMethod): New function.
915         (_Jv_JNI_ToReflectedMethod): Likewise.
916         Include Method.h.
917         (_Jv_JNI_IsAssignableFrom): Renamed.
918         (_Jv_JNI_GetStringRegion): New function.
919         Include StringIndexOutOfBoundsException.h.
920         (_Jv_JNI_GetStringUTFRegion): New function.
921         (_Jv_JNIFunctions): Updated for new functions.
922         (_Jv_JNI_GetPrimitiveArrayCritical): New function
923         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
924         (_Jv_JNI_GetStringCritical): New function.
925         (_Jv_JNI_ReleaseStringCritical): Likewise.
926         (get_throwable): Removed.
927         (GCJ_JV_JNIENV_FRIEND): Removed.
928         (__GCJ_JNI_IMPL__): Define.
929         Include method.h.
930
931         * resolve.cc (get_ffi_type_from_signature): Handle case where
932         boolean is an int.
933
934 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
935
936         * interpret.cc (run): Don't call println.
937         Don't include PrintStream.h.
938
939         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
940         nameIndex.  Use "jint" as type for boffset.
941         * java/lang/Class.h (struct _Jv_Method): Made accflags a
942         _Jv_ushort.
943         (Class): Likewise.  Also changed type of method_count,
944         vtable_method_count, size_in_bytes, field_count,
945         static_field_count, interface_count.
946         * gcj/array.h (__JArray): Made `length' a const jsize, not an
947         int.
948
949 2000-01-21  Tom Tromey  <tromey@cygnus.com>
950
951         * java/lang/reflect/natConstructor.cc (newInstance): Use
952         _Jv_CallAnyMethodA.
953         * include/jvm.h: Declare _Jv_CallAnyMethodA.
954         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
955         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
956         Include <jni.h>.
957         (COPY): Removed.
958         (invoke): Use _Jv_CallAnyMethodA.
959         (VAL): Redefined.
960         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
961         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
962         functions.
963         (struct _Jv_Method): Added getNextMethod method.
964         (JvNumMethods): New function.
965         (JvGetFirstMethod): Likewise.
966         * gcj/field.h (JvGetFirstStaticField): New function.
967         (JvNumStaticFields): Likewise.
968         (getNextField): Renamed from getNextInstanceField.
969         (struct _Jv_Field): New method getClass.
970         * jni.cc: Wrote many new functions.
971         * include/jni.h (JNI_TRUE): Define.
972         (JNI_FALSE): Likewise.
973         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
974         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
975         jcharArray, jfloatArray, jdoubleArray): New typedefs.
976         (jfieldID, jmethodID): Likewise.
977         (JNI_COMMIT, JNI_ABORT): New defines.
978         (JNINativeMethod): New struct.
979         (struct JNINativeInterface): Correctly declared more entries.
980         (class _Jv_JNIEnv): Added `ex' member.
981         (JNI_VERSION_1_1): New define.
982         (JNI_VERSION_1_2): Likewise.
983
984         * boehm.cc (_Jv_MarkObj): Use getNextField, not
985         getNextInstanceField.
986
987 2000-01-20  Tom Tromey  <tromey@cygnus.com>
988
989         * resolve.cc (StringClass): Removed.
990         * defineclass.cc (StringClass): Removed.
991
992 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
993
994         * NEWS: updated.
995
996 2000-01-19  Tom Tromey  <tromey@cygnus.com>
997
998         * interpret.cc (PC_REGISTER_ASM): Removed.
999
1000         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
1001         From Bryce McKinlay.
1002
1003         * All files: Updated copyright to reflect Cygnus purchase.
1004
1005 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
1006
1007         * configure: Rebuilt.
1008         * configure.in: Recognize --disable-interpreter.
1009
1010 2000-01-18  Andrew Haley  <aph@cygnus.com>
1011
1012         * name-finder.cc (lookup): Check for dladdr function.
1013         acconfig.h (HAVE_DLADDR): Add.
1014         configure.in: Check for HAVE_DLADDR
1015         configure: Rebuilt.
1016         include/config.h.in:  Rebuilt.
1017
1018 2000-01-17  Andrew Haley  <aph@cygnus.com>
1019
1020         * prims.cc (_Jv_RunMain): Set the name of this executable.
1021
1022 2000-01-17  Tom Tromey  <tromey@cygnus.com>
1023
1024         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
1025         when backtrace can't be computed.
1026
1027         * configure: Rebuilt.
1028         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
1029
1030         * java/lang/Runtime.java (loadLibraryInternal): Declare.
1031         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
1032         (_Jv_FindClassInCache): Likewise.
1033         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
1034         (findSystemClass): Try to load class from compiled module.
1035         Include Runtime.h.
1036         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
1037         (loadLibrary): Likewise.
1038         (lt_preloaded_symbols): Define.
1039         (loadLibraryInternal): New method.
1040         * include/config.h.in: Rebuilt.
1041         * acconfig.h (USE_LTDL): Added.
1042         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
1043         (INCLUDES): Added $(INCLTDL).
1044         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
1045         (libgcj_la_LIBADD): Likewise.
1046         * aclocal.m4, configure: Rebuilt.
1047         * configure.in: Added libltdl support.
1048
1049 2000-01-15  Tom Tromey  <tromey@cygnus.com>
1050
1051         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
1052
1053 2000-01-14  Andrew Haley  <aph@cygnus.com>
1054
1055         * java/lang/natThrowable.cc: New file.
1056
1057         * java/lang/Throwable.java (fillInStackTrace): Make native.
1058         (printStackTrace): Call native method to do this.
1059         (Throwable): Call fillInStackTrace.
1060         (stackTrace): New variable.
1061         
1062         * include/jvm.h: Add _Jv_ThisExecutable functions.
1063         
1064         * prims.cc: (_Jv_execName): New variable.
1065         (catch_segv): Call fillInStackTrace.
1066         (catch_fpe): Ditto.
1067         (_Jv_ThisExecutable): New functions.
1068         (JvRunMain): Set the name of this executable.
1069
1070         * Makefile.am: Add java/lang/natThrowable.cc.
1071         Add name-finder.cc.
1072         * Makefile.in: Rebuilt.
1073
1074         * acconfig.h: Add HAVE_PROC_SELF_EXE.
1075
1076         * configure.in: Force link with __frame_state_for in
1077         FORCELIBGCCSPEC.  Add new checks for backtrace.
1078         * include/config.h.in: Rebuilt.
1079
1080         * name-finder.cc: New file.
1081         * include/name-finder.h: New file.
1082
1083 2000-01-16  Anthony Green  <green@cygnus.com>
1084
1085         * java/lang/StringBuffer.java (StringBuffer): Don't special case
1086         null argument.
1087
1088 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
1089
1090         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
1091
1092 2000-01-13  Tom Tromey  <tromey@cygnus.com>
1093
1094         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
1095         not system loader, as initiating loader.
1096
1097 2000-01-11  Tom Tromey  <tromey@cygnus.com>
1098
1099         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
1100         HP/UX.  From David Scott Urban.
1101
1102 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
1103
1104         * java/lang/natMath.cc (pow): Cast args to `double', not
1105         `jdouble'.
1106         (atan2): Likewise.
1107         (IEEEremainder): Likewise.
1108         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
1109         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
1110
1111 2000-01-09  Anthony Green  <green@cygnus.com>
1112
1113         * java/lang/natString.cc (init): Test for overflow condition
1114         during out of bounds check.
1115         (getChars): Throw StringIndexOutOfBoundsException, not
1116         ArrayIndexOutOfBoundsException.
1117         (getBytes): Ditto.
1118         (regionMatches): Obey case option during string comparison.
1119
1120         * configure.host (ligcj_interpreter): New variable.  Enable
1121         interpreter by default on IA-32.
1122         * configure.in:  Examine libgcj_interpreter.
1123         * configure: Rebuilt.
1124
1125 2000-01-07  Tom Tromey  <tromey@cygnus.com>
1126
1127         * mauve-libgcj: Don't disable ClassTest.
1128
1129         * java/lang/natClass.cc (getClasses): Wrote.
1130
1131 2000-01-06  Tom Tromey  <tromey@cygnus.com>
1132
1133         * java/lang/natClass.cc (_getConstructors): Correctly check
1134         whether method name is the init name.
1135         (getMethod): Look at accflags on method in `klass', not `this'.
1136
1137 2000-01-05  Tom Tromey  <tromey@cygnus.com>
1138
1139         * java/lang/natClass.cc (getMethod): Compute offset relative to
1140         `klass's methods table, not `this's table.
1141
1142         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
1143         In unwrapping/widening case, check whether `k' is null, not
1144         whether it is primitive.  Initialize `num' from `argelts', not
1145         `paramelts'.  Correct create and pass arguments to ffi_call.
1146         Don't let presence of `this' argument affect index used to look in
1147         argument arrays.
1148         (COPY): Set appropriate element in `values' vector.
1149
1150         * java/lang/natClass.cc: Include <gcj/method.h>.
1151
1152         * java/lang/Class.h (_getMethods): Correctly declare as private,
1153         not public.
1154
1155         * java/lang/Class.h (_getMethods): Declare.
1156         * java/lang/Class.java (_getMethods): Declare.
1157         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
1158         (getDeclaredClasses): Always return empty array.
1159         (_getMethods): New method.
1160         (getMethods): Wrote.
1161         (getDeclaredMethod): Return `rmethod'.
1162         (finit_name): New global.
1163         (getDeclaredMethods): Check for finit_name.
1164         (_getMethods): Likewise.
1165         (getMethod): Only return public methods.
1166
1167         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
1168         jboolean and select correct ffi type on that basis.
1169         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
1170         Constructor call always has `void' return type.
1171
1172 2000-01-04  Tom Tromey  <tromey@cygnus.com>
1173
1174         * java/lang/Class.h (getSignature): Updated.
1175         * java/lang/Class.java (getSignature): Updated.
1176         * java/lang/natClass.cc (getSignature): Added `is_constructor'
1177         argument.
1178         (getConstructor): Ensure constructor is public.
1179         (_getConstructors): Check for public-ness of constructor when
1180         `declared' is false, not when it is true.
1181
1182 2000-01-04  Warren Levy  <warrenl@cygnus.com>
1183
1184         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
1185         comment.
1186         (receive): Set the sender's address in the DatagramPacket.
1187
1188 2000-01-04  Tom Tromey  <tromey@cygnus.com>
1189
1190         * java/lang/reflect/natConstructor.cc (newInstance): Pass
1191         declaring class as return_type argument to
1192         _Jv_CallNonvirtualMethodA.
1193         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
1194         constructor case, create object and use it as `this' argument.
1195         * java/lang/Class.h (_getConstructors): Declare.
1196         (_getFields): Declare.
1197         * java/lang/Class.java (getConstructors): Wrote.
1198         (_getConstructors): New native method.
1199         (getDeclaredConstructors): Wrote.
1200         (_getFields): Declare new native method.
1201         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
1202         incorrect comment.
1203         (getMethod): Work correctly when class is primitive.
1204         (getDeclaredMethods): Likewise.  Compute offset using `method',
1205         not `mptr'.
1206         (getDeclaredMethod): Likewise.
1207         (getConstructor): Wrote.
1208         (ConstructorClass): New define.
1209         (getDeclaredConstructor): Wrote.
1210         (_getConstructors): New method.
1211         (_getFields): New method.
1212         (getFields): Wrote.
1213
1214         * Makefile.in: Rebuilt.
1215         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
1216
1217         * prims.cc: Remove `#pragma implementation'.
1218         * gcj/array.h: Remove `#pragma interface'.
1219
1220         * prims.cc (_Jv_equaln): New function.
1221         * java/lang/Class.java (getSignature): Declare.
1222         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
1223         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
1224         resolve.cc.
1225         (getSignature): New method.
1226         (getDeclaredMethod): Wrote.
1227         (getMethod): Wrote.
1228         Include StringBuffer.h.
1229         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
1230         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
1231         a friend.
1232         (getSignature): Declare.
1233         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
1234         (_Jv_equaln): Declare.
1235         (_Jv_CallNonvirtualMethodA): Declare.
1236         * Makefile.in: Rebuilt.
1237         * Makefile.am (nat_source_files): Added natConstructor.cc.
1238         (java/lang/reflect/Constructor.h): New target.
1239         * java/lang/reflect/natConstructor.cc: New file.
1240         * java/lang/reflect/Constructor.java (newInstance): Now native.
1241         (declaringClass): Renamed from decl_class.
1242         (offset): Renamed from index.
1243         (getType): New native method.
1244         (getModifiers): Now native.
1245         (getParameterTypes): Call getType if required.
1246         (hashCode): Include hash code from declaring class.
1247         (modifiers): Removed.
1248         (toString): Call getType if required.
1249         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
1250         * java/lang/reflect/natMethod.cc (hack_call): New method.
1251         Removed `#if 0' around FFI code.
1252         Include <gnu/gcj/RawData.h>.
1253         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
1254         IllegalArgumentException when argument object and class disagree.
1255         (_Jv_GetTypesFromSignature): New function.
1256         (getType): Use it.
1257         (ObjectClass): New define.
1258         (_Jv_CallNonvirtualMethodA): New function.
1259         * java/lang/reflect/Method.java (hack_trampoline): New method.
1260         (hack_call): New native method.