* java/lang/reflect/Field.java: Made many methods private.
[platform/upstream/gcc.git] / libjava / ChangeLog
1 2001-10-24  Tom Tromey  <tromey@redhat.com>
2
3         * java/lang/reflect/Field.java: Made many methods private.
4
5         * java/sql/Types.java (Types): New constructor.
6
7 Tue Oct 23 23:52:18 2001  Anthony Green  <green@redhat.com>
8
9         * gnu/gcj/runtime/natSharedLibLoader.cc: Only include dlfcn.h when
10         HAVE_DLOPEN.
11
12 2001-10-23  Tom Tromey  <tromey@redhat.com>
13
14         * java/lang/reflect/Field.java (Field): New constructor.
15         * java/lang/ClassLoader.java (defineClass(String,byte[],int,int)):
16         Throw ClassFormatError.
17         
18 2001-10-23  Tom Tromey  <tromey@redhat.com>
19
20         * java/util/PropertyResourceBundle.java (handleGetObject): Now
21         public.
22         * java/util/ListResourceBundle.java (handleGetObject): Now public
23         and final, per spec.
24
25         * java/io/BufferedWriter.java (localFlush): Don't synchronize.
26
27 2001-10-23  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
28
29         * prims.cc (_Jv_Abort): Always print error message using fprintf,
30         don't try to allocate.
31         (_Jv_CreateJavaVM): Set gcj::runtimeInitialized.
32         * include/jvm.h (gcj::runtimeInitialized): New variable declaration.
33         * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
34         duplicate class registration with JvFail if the runtime hasn't been
35         initialized yet.
36         
37         * java/io/BufferedWriter (write (String, int, int)): Remove redundant 
38         bounds checks.
39         (write (char[], int, int)): Likewise.
40
41 2001-10-22  Tom Tromey  <tromey@redhat.com>
42
43         * java/util/GregorianCalendar.java (getGregorianChange): Removed
44         `date' argument.
45
46 2001-10-22  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
47
48         * gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
49         * gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
50         * gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
51         * gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in output
52         file.
53
54 2001-10-19  Mark Wielaard  <mark@klomp.org>
55
56         * java/lang/Double.java: More Classpath merging
57         (isInfinite): Don't use doubleToLongBits
58         (isNaN (Object)): return v != v
59         (initIDs): make native
60         * java/lang/Float.java: Ditto
61         (isInfinite): Don't use floatToIntBits
62         (isNaN (Object)): return v != v
63         * java/lang/natDouble.cc: add empty initIDs()
64
65 2001-10-19  Mark Wielaard  <mark@klomp.org>
66
67         * javax/naming/BinaryRefAddr.java: New file
68         * javax/naming/InitialContext.java: Compile fix
69         * javax/naming/InvalidNameException.java: Add comments
70         * javax/naming/Name.java: Ditto
71         * javax/naming/NamingException.java: Implement
72         * javax/naming/OperationNotSupportedException.java: Compile fix
73         * javax/naming/RefAddr.java: Implement
74         * javax/naming/StringRefAddr.java: Add comments and implement
75         * javax/naming/directory/InitialDirContext.java: Compile fix
76
77 2001-10-18  Tom Tromey  <tromey@redhat.com>
78
79         * java/io/BufferedWriter.java (write(String,int,int)): Correctly
80         check bounds.
81
82         * java/security/Security.java (loadProviders): Removed unused
83         `pname' variable.  Don't create `File' object.  Don't update
84         `providerCount'.
85         (providerCount): Removed.
86         (insertProviderAt): Don't use `providerCount'.
87         (addProvider(Provider,int)): Likewise.
88         (removeProvider): Likewise.
89         (addProvider(Provider)): Rewrote.
90         (getProviders): Rewrote.
91         (getProvider): Don't use `providerCount'.
92
93 2001-10-17  Tom Tromey  <tromey@redhat.com>
94
95         * gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
96         Rewrote.
97         * java/security/SecureRandom.java (setSeed(long)): Don't set seed
98         if secureRandomSpi is not initialized.
99
100         * Makefile.in: Rebuilt.
101         * Makefile.am (secdir): New macro.
102         (install-data-local): Install new data files.
103         * java/security/classpath.security: New file.
104         * java/security/libgcj.security: New file.
105
106         * java/security/Security.java (loadProviders): Added `vendor'
107         argument.
108         Load both `classpath' and `java.vm.name' providers.
109
110 2001-10-17  Anthony Green  <green@redhat.com>
111
112         * java/security/Security.java (loadProviders): Fix bug in how
113         providers are loaded.
114
115 2001-10-16  Tom Tromey  <tromey@redhat.com>
116
117         * gcj/javaprims.h: Updated class list.
118         * java/util/Hashtable.java: Re-merged with Classpath.
119
120 2001-10-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
121
122         * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
123
124         Eliminate use of C++ static constructors.               
125         * interpret.cc: Remove static Utf8Consts. Use namespace gcj. 
126         * jni.cc: Likewise.
127         * resolve.cc: Likewise.
128         * defineclass.cc: Likewise.
129         (_Jv_ClassReader::handleClassBegin): Synchronize call to 
130         _Jv_RegisterClass.
131         * include/jvm.h (void_signature, clinit_name, init_name, finit_name):
132         Declare in namespace gcj.
133         * java/lang/Class.h (Class): Remove initialization for primitive
134         types.
135         (friend void _Jv_InitPrimClass): This is in prims.cc.
136         * prims.cc (_Jv_InitPrimClass): Do primitive type initialization
137         here instead.
138         (void_signature, clinit_name, init_name, finit_name): Define in 
139         namespace gcj.
140         (_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and 
141         _Jv_InitializeSyncMutex from here. Initialize Utf8 constants. 
142         Initialize primitive types.
143         * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
144         initialization routines. Don't synchronize.
145         * java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
146         across dlopen call.
147
148 2001-10-15  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
149
150         * java/util/HashMap.java (HashEntry.clone): Removed.
151         (HashMap(Map)): Use putAllInternal.
152         (clone): Likewise.
153         (putAllInternal): New method. Efficient counterpart to putAll which 
154         does not call put().    
155         * java/util/LinkedHashMap.java (rethread): Removed.
156         (putAllInternal): New method. Clear "head" and "tail".
157         (addEntry): New argument "callRemove". Don't call removeEldestEntry()
158         if callRemove == false. 
159
160         * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
161         * Makefile.in: Rebuilt.
162
163 2001-10-15  Eric Blake  <ebb9@email.byu.edu>
164
165         * java/util/Collection.java: Updated javadoc.
166         * java/util/Comparator.java: Updated javadoc.
167         * java/util/Enumeration.java: Updated javadoc.
168         * java/util/Iterator.java: Updated javadoc.
169         * java/util/List.java: Updated javadoc.
170         * java/util/ListIterator.java: Updated javadoc.
171         * java/util/Map.java: Updated javadoc.
172         * java/util/RandomAccess.java: New file.
173         * java/util/Set.java: Updated javadoc.
174         * java/util/SortedMap.java: Updated javadoc.
175         * java/util/SortedSet.java: Updated javadoc.
176
177 2001-10-15  Tom Tromey  <tromey@redhat.com>
178
179         * java/lang/reflect/AccessibleObject.java (checkPermission):
180         Implemented.
181         Updated copyright information.
182
183 2001-10-15  Hans Boehm <Hans_Boehm@hp.com>
184
185         * java/lang/natObject.cc (heavy_lock): Moved fields
186         old_client_data, old_finalization_proc near beginning.
187         (heavy_lock_finalization_proc): Now inline; changed type of
188         argument.
189         (JV_SYNC_TABLE_SZ): Now 2048.
190         (mp): New global.
191         (spin): `mp' now global.
192         (heavy_lock_obj_finalization_proc): Updated to correctly handle
193         heavy lock finalization.
194         (remove_all_heavy): New function.
195         (maybe_remove_all_heavy): Likewise.
196         (_Jv_MonitorEnter): Throw exception if object is NULL.
197         (_Jv_MonitorExit): Likewise.  Also, clear long lists of unlocked
198         heavy locks.
199         * include/jvm.h (_Jv_AllocTraceTwo): Declare.
200         * nogc.cc (_Jv_AllocTraceTwo): New function.
201         * boehm.cc (trace_two_vtable): New global.
202         (_Jv_AllocTraceTwo): New function.
203
204 2001-10-15  Tom Tromey  <tromey@redhat.com>
205
206         * Makefile.in: Rebuilt.
207         * Makefile.am (awt_java_source_files): Added new file.
208         * java/beans/AppletInitializer.java: New file.
209
210         * java/net/SocketPermission.java (hostport, actions): Now
211         private.
212
213 2001-10-14  Mark Wielaard  <mark@klomp.org>
214
215         * java/lang/Double.java: Partial merge with Classpath
216         (TYPE): initialized through VMClassLoader.getPrimitiveClass()
217         (value): made final
218         (static): new static block to load native libary (not used in libgcj)
219         (Double (String)): call parseDouble()
220         (byteValue): removed, already defined in superclass Number
221         (shortValue): likewise
222         (valueOf (String)): call new Double(String) directly
223         (compare (double,double)): new 1.4 method
224         (compareTo (Double)): call new compare(double,double) method
225         (initIDs): new private method (not used in libgcj)
226         * java/lang/Float.java: Partial merge with Classpath
227         (TYPE): initialized through VMClassLoader.getPrimitiveClass()
228         (value): made final
229         (static): new static block to load native libary (not used in libgcj)
230         (Float (String)): call parseFloat()
231         (byteValue): removed, already defined in superclass Number
232         (shortValue): likewise
233         (valueOf (String)): call new Float(String) directly
234         (compare (float,float)): new 1.4 method
235         (compareTo (Float)): call new compare(double,double) method
236
237 2001-10-13  Tom Tromey  <tromey@redhat.com>
238
239         * java/lang/SecurityManager.java (SecurityManager): Now public.
240
241         * java/security/AccessController.java (checkPermission): Now
242         throws AccessControlException.
243         * java/security/AllPermission.java: Class now final.
244         * java/security/Permission.java (getName): Now final.
245         (name): Now private.
246         (equals): New abstract method.
247         * java/security/PermissionCollection.java (linesep): Now private.
248         * java/security/Permissions.java: Class now final.
249         * java/security/Security.java (Security): New private
250         constructor.
251         * java/security/UnresolvedPermission.java: Import
252         java.security.cert.Certificate.  Class now final.
253         * java/security/acl/Group.java: Now extends Principal.
254         (isMember): Added Principal argument.
255         * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
256         final.
257         * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
258         final.
259
260 2001-10-12  Tom Tromey  <tromey@redhat.com>
261
262         * Makefile.in: Rebuilt.
263         * Makefile.am (rmi_java_source_files): Added new files.
264         * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
265         new Compiler class.
266         * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
267         * gnu/java/rmi/rmic/Compile_gcj.java: New file.
268         * gnu/java/rmi/rmic/CompilerProcess.java: New file.
269         * gnu/java/rmi/rmic/Compiler.java: New file.
270
271 2001-10-11  Tom Tromey  <tromey@redhat.com>
272
273         * configure: Rebuilt.
274         * configure.in: Recognize --disable-java-awt.
275
276 2001-10-10  Tom Tromey  <tromey@redhat.com>
277
278         * gnu/gcj/runtime/natFinalizerThread.cc: New file.
279         * java/lang/natRuntime.cc: Include FinalizerThread.h.
280         (runFinalization): Call finalizerReady.
281         * nogc.cc (_Jv_GCInitializeFinalizers): New function.
282         * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
283         (_Jv_CreateJavaVM): Start the finalizer thread.
284         * no-threads.cc: Include InternalError.h.
285         (_Jv_ThreadStart): Throw InternalError.
286         (_Jv_ThreadInitData): Don't throw error if this is not the first
287         thread.
288         * Makefile.in: Rebuilt.
289         * Makefile.am (ordinary_java_source_files): Added
290         FinalizerThread.java.
291         (nat_source_files): Added natFinalizerThread.cc.
292         * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
293         * boehm.cc (_Jv_GCInitializeFinalizers): New function.
294         * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
295         * gnu/gcj/runtime/FinalizerThread.java: New file.
296
297 2001-10-09  Per Bothner  <per@bothner.com>
298
299         * strtod.c (_strtod_r):  Logic to check for missing digits
300         after exponent had 'else' attached to wrong 'if'.
301
302 2001-10-09  Mark Wielaard  <mark@klomp.org>
303
304         * java/net/SocketImpl.java: Merge with Classpath
305
306 2001-10-08  Mark Wielaard  <mark@klomp.org>
307
308         * java/net/DatagramSocketImpl.java: Merge with Classpath
309
310 2001-10-07  Mark Wielaard  <mark@klomp.org>
311
312         * java/net/URLDecoder.java: Remerge with Classpath
313         * java/net/URLEncoder.java: Merge with Classpath
314
315 2001-10-08  Tom Tromey  <tromey@redhat.com>
316
317         Fix for PR libgcj/4481:
318         * java/io/File.java (getParent): Handle case where path is "/".
319         (normalizePath): Use correct string for UNC leader.
320
321 2001-10-06  Mark Wielaard  <mark@klomp.org>
322
323         * java/io/BufferedInputStream.java: Merge with Classpath
324
325 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
326
327         * defineclass.cc, java/awt/image/ColorModel.java,
328         java/awt/image/SampleModel.java, java/lang/Package.java,
329         java/security/cert/X509Extension.java: Fix spelling errors of
330         "separate" as "seperate", and corresponding spelling errors of
331         related words.
332
333 2001-10-05  Tom Tromey  <tromey@redhat.com>
334
335         * java/text/DecimalFormat.java (format): Use localized minus sign
336         when generating exponent; never use `+'.  Use floor to compute
337         exponent.
338
339 2001-10-05  Mark Wielaard  <mark@klomp.org>
340
341         * java/util/zip/Adler32.java: Merge with Classpath
342         * java/util/zip/CRC32.java: Ditto
343         * java/util/zip/Checksum.java: Ditto
344         * java/util/zip/DataFormatException.java: Ditto
345         * java/util/zip/ZipException.java: Ditto
346
347 2001-10-04  Martin Kahlert  <martin.kahlert@infineon.com>
348
349         * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
350
351 2001-10-04  Mark Wielaard  <mark@klomp.org>
352
353         * java/lang/reflect/Modifier.java: Merge with Classpath
354
355 2001-10-03  Mark Wielaard  <mark@klomp.org>
356
357         * java/io/SequenceInputStream.java: Merge with Classpath
358         * java/io/StringBufferInputStream.java: Ditto
359         * java/util/Collections.java: Remerge with Classpath
360
361 2001-10-03  Tom Tromey  <tromey@redhat.com>
362
363         * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
364         setting *link.
365
366 2001-10-03  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
367
368         * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
369         * gij.cc (version): Use GCJVERSION.
370
371 2001-10-02  Mark Wielaard  <mark@klomp.org>
372
373         * Makefile.am (core_java_source_files): add InheritableThreadLocal
374         * Makefile.in: regenerate
375         * gcj/javaprims.h: ditto
376         * java/lang/InheritableThreadLocal.java: new class from Classpath
377         * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
378         call InheritableThreadLocal.newChildThread()
379
380 2001-10-01  Mark Wielaard  <mark@klomp.org>
381
382         * Makefile.am: Add new classes
383         (core_java_source_files): CharSequence
384         (ordinary_java_source_files): Authenticator, PasswordAuthentication
385         * Makefile.in: regenerate
386         * gcj/javaprims.h: ditto
387         * java/lang/CharSequence: new class from Classpath
388         * java/lang/String.java: implements CharSequence
389         (subSequence (int,int)): new method
390         * java/lang/SubString.java: implements CharSequence
391         (subSequence (int,int)): new method
392         remerge comments with Classpath
393         * java/net/Authenticator.java: new class from Classpath
394         * java/net/PasswordAuthentication.java: ditto
395
396 2001-10-01  Tom Tromey  <tromey@redhat.com>
397
398         * gcj/javaprims.h: Rebuilt class list.
399         * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
400         (_Jv_GCCanReclaimSoftReference): New function.
401         * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
402         (_Jv_GCCanReclaimSoftReference): Declare.
403         * java/lang/ref/Reference.java (referent): Now a RawData.
404         (create): Renamed from `created'.  Added object argument.
405         (Reference): Don't initialize `referent' here.
406         * Makefile.in: Rebuilt.
407         * Makefile.am (nat_source_files): Added new file.
408         * java/lang/ref/natReference.cc: New file.
409
410         * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
411         (_Jv_NewMultiArray): Use it.  Check each array dimension.
412         (_Jv_NewMultiArray): Likewise.
413         * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
414         `char'.
415         * java/lang/reflect/natArray.cc (newInstance): Throw
416         IllegalArgumentException if there are no dimensions.
417
418 2001-10-01  Mark Wielaard  <mark@klomp.org>
419
420         * java/io/FileWriter.java: Merge with Classpath.
421         * java/io/FilterInputStream.java: Ditto.
422         (mark): no longer synchronized
423         (reset): Likewise
424         * java/io/FilterOutputStream.java: Merge with Classpath.
425         * java/io/FilterReader.java: Ditto.
426         (mark): no longer synchronized
427         (reset): Likewise
428         * java/io/FilterWriter.java: Merge with Classpath.
429         * java/io/Writer.java: Ditto.
430         * java/lang/Compiler.java: Ditto.
431         * java/lang/Process.java: Ditto.
432         * java/lang/Void.java: Ditto.
433         * java/net/ContentHandler.java: Ditto.
434         * java/net/DatagramPacket.java: Ditto.
435         * java/net/MulticastSocket.java: Merge comments with Classpath.
436
437 2001-09-30  Mark Wielaard  <mark@klomp.org>
438
439         * java/io/DataInput.java:  Merge with Classpath.
440         * java/io/DataOutput.java:  Idem.
441         * java/io/FilenameFilter.java:  Idem.
442         * java/io/Serializable.java:  Idem.
443         * java/lang/Cloneable.java:  Idem.
444         * java/lang/Comparable.java:  Idem.
445         * java/lang/Runnable.java:  Idem.
446         * java/lang/reflect/Member.java:  Idem.
447         * java/net/ContentHandlerFactory.java:  Idem.
448         * java/net/FileNameMap.java:  Idem.
449         * java/net/SocketImplFactory.java:  Idem.
450         * java/net/SocketOptions.java:  Idem.
451         * java/net/URLStreamHandlerFactory.java:  Idem.
452
453 2001-09-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
454
455         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
456         an uninitialized target class.
457         
458         * gnu/gcj/protocol/file/Connection.java (connect): Throw 
459         FileNotFoundException if appropriate.
460         * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an 
461         IOException if we got a file: url with a hostname. Comment out protocol
462         switch to ftp for now.
463         * java/net/URL.java (URL): Include protocol name in exception message
464         when handler can't be found.
465
466 2001-09-28  Per Bothner  <per@bothner.com>
467
468         * gnu/gcj/runtime/SharedLibLoader.java:  New class.
469         * gnu/gcj/runtime/natSharedLibLoader.cc:  Native methods.
470         * Makefile.am:  Update accordingly.
471         * configure.in:  Add AC_CHECK_LIB for dlopen.
472         * include/config.h.in:  Add HAVE_DLOPEN.
473
474 2001-09-29  Jeff Sturm  <jsturm@one-point.com>
475
476         * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
477         * Makefile.in: Rebuilt.
478
479 2001-09-27  Tom Tromey  <tromey@redhat.com>
480
481         * java/util/IdentityHashMap.java (containsKey): Use getHash.
482         (get): Likewise.
483         (put): Likewise.
484         (remove): Likewise.
485         (getHash): New method.
486         (tombstone, emptyslot): Now static final.
487         (put): Correctly determine when to rehash, and correctly rehash.
488         (containsKey, remove): Test against table length with `>='.
489
490 2001-09-26  Tom Tromey  <tromey@redhat.com>
491
492         * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
493         constant.
494         * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
495         Re-merged with Classpath.
496
497         * java/io/DataInputStream.java (readChar): Use readFully.
498         (readInt): Likewise.
499         (readLong): Likewise.
500         (readShort): Likewise.
501         (readUnsignedShort): Likewise.
502
503 2001-09-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
504
505         * java/lang/PosixProcess.java (exitValue): Implement here. Throw 
506         IllegalThreadStateException if process hasn't exited yet.
507         * java/lang/natPosixProcess.cc (exitValue): Removed.
508         (waitFor): Only check thread interrupted status if waitpid() returned
509         an error. Use WIFEXITED and WEXITSTATUS to process process's exit
510         value.
511         
512         * java/security/cert/X509Extension.java: Merge from classpath.
513
514 2001-09-22  Anthony Green  <green@redhat.com>
515
516         * java/security/DummyKeyPairGenerator.java (initialize): New
517         method (with AlgorithmParameterSpec argument).
518
519 2001-09-22  Anthony Green  <green@redhat.com>
520
521         * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
522
523         * gnu/java/security/provider/SHA1PRNG.java: Extend from
524         SecureRandomSpi.  
525         (engineNextBytes): Fix order of memory copies.
526         
527 2001-09-21  Richard Henderson  <rth@redhat.com>
528
529         * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
530         add get_method, set_method, vtable_elt_size, new_vtable.
531         (_Jv_ArrayVTable): Derive from _Jv_VTable.
532         * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
533         * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
534         * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
535
536 2001-09-21  Richard Henderson  <rth@redhat.com>
537
538         * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
539         * java/lang/mprec.c (lo0bits): Fix paren typo.
540
541 2001-09-20  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
542
543         * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of 
544         blocking IO via pthread_kill().
545         * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread 
546         interrupted status flag only if ::write returned an error.
547         (write (jbyteArray, jint, jint): Likewise.
548         (read (jint)): Likewise.
549         (read (jbyteArray, jint, jint): Likewise.
550
551 2001-09-19  Anthony Green  <green@redhat.com>
552
553         * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
554         when host is null.
555
556 2001-09-17  Andreas Jaeger  <aj@suse.de>
557
558         * jni.cc (array_from_valist): Use promoted types for va_arg.
559
560 2001-09-16  Anthony Green  <green@redhat.com>
561
562         * gnu/java/locale/LocaleInformation.java: Extend
563         LocaleInformation_en_US, not LocaleInformation_en.
564
565 2001-09-16  Anthony Green  <green@redhat.com>
566
567         * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
568
569 2001-09-14  Tom Tromey  <tromey@redhat.com>
570
571         * java/util/TimeZone.java: Updated list of timezones from
572         Classpath.
573
574         * java/lang/CloneNotSupportedException.java: Re-merged with
575         Classpath.
576
577 2001-09-14  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
578
579         * java/io/File.java (normalizePath): Use equals() not '==' for string
580         comparison.
581
582         * java/util/Hashtable.java (Enumerator): Ensure that if
583         hasMoreElements() returns true, nextElement() will always return
584         something even if the table has been modified.
585
586 2001-09-12  Tom Tromey  <tromey@redhat.com>
587
588         * Makefile.in: Rebuilt.
589         * Makefile.am (class-check): New target.
590
591 2001-09-11  Tom Tromey  <tromey@redhat.com>
592
593         * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
594
595 2001-09-10  Tom Tromey  <tromey@redhat.com>
596
597         * java/util/Properties.java (load): Correctly read \u sequences.
598         Report from Anthony Green.
599
600 2001-09-10  Manfred Hollstein  <manfredh@redhat.com>
601
602         * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
603         and $(MULTIBUILDTOP).
604         * configure: Re-generate.
605
606 2001-09-10  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
607
608         * include/jvm.h (_Jv_AllocRawObj): New prototype.
609         * boehm.cc (_Jv_AllocRawObj): Implement.
610         * nogc.cc (_Jv_AllocRawObj): Likewise.
611         * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
612
613 2001-09-06  Anthony Green  <green@redhat.com>
614
615         * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
616         redundant method calls.
617         (emptyLocale): New private member.
618         (tryBundle): Use emptyLocale.  Remove duplicate code.  Only cache
619         exact matches.
620
621 2001-09-06  Tom Tromey  <tromey@redhat.com>
622
623         * java/text/RuleBasedCollator.java (clone): Rewrote.
624         (RuleBasedCollator(RuleBasedCollator)): Removed.
625         * java/text/MessageFormat.java: Re-merged from Classpath.
626         * java/text/DecimalFormat.java: Re-merged from Classpath.
627
628 2001-09-06  Anthony Green  <green@redhat.com>
629
630         * include/jvm.h: Declare _Jv_RegisterResource.
631         * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
632         gnu/gcj/protocol/core/Connection.java,
633         gnu/gcj/protocol/core/Handler.java,
634         gnu/gcj/protocol/core/CoreInputStream.java,
635         gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
636         * java/net/URL.java (setURLStreamHandler): Use
637         gnu.gcj.protocol.core.Handler for the core protocol.
638         * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
639         end of java.class.path.
640         * Makefile.am (ordinary_java_source_files): Add new java files.
641         (nat_source_files): Add new native code files.
642         * Makefile.in: Rebuilt.
643
644 2001-09-05  Tom Tromey  <tromey@redhat.com>
645
646         * java/util/Properties.java: Re-merged from Classpath.
647
648         From Eric Blake, via Classpath:
649         * java/lang/String.java (CaseInsensitiveComparator): New class.
650         (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
651
652         * java/util/Date.java: Re-merged with Classpath.
653
654         * java/text/DateFormatSymbols.java: Re-merged with Classpath.
655
656 2001-09-05  Corey Minyard  <minyard@acm.org>
657             Tom Tromey  <tromey@redhat.com>
658
659         * java/lang/natClassLoader.cc: Include VirtualMachineError.h
660         (_Jv_RegisterClassHookDefault): Throw error if a class is
661         registered twice.
662
663 2001-09-05  Tom Tromey  <tromey@redhat.com>
664
665         * java/lang/natSystem.cc (init_properties): Default locale is
666         en_US, not just en.
667
668 2001-09-05  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
669
670         * java/text/MessageFormat.java (setLocale): Don't catch ParseException
671         here, DecimalFormat.applyPattern() does not throw it.
672
673 2001-09-04  Tom Tromey  <tromey@redhat.com>
674
675         * java/util/AbstractMap.java: Re-merged with Classpath.
676         * java/util/IdentityHashMap.java: Re-merged with Classpath.
677
678         * java/text/SimpleDateFormat.java: Re-merged with Classpath.
679         * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
680         gnu/gcj/text/LocaleData_en_US.java: Removed.
681         * java/text/DateFormatSymbols.java (clone): Use Classpath
682         implementation.
683         (equals): Simplified.
684         (DateFormatSymbols): Look in gnu.java.locale for information.
685         (DateFormatSymbols(DateFormatSymbols)): Removed.
686         (safeGetResource): Removed.
687         (DateFormatSymbols): Throws MissingResourceException.
688         (ampmsDefault, erasDefault, localPatternCharsDefault,
689         monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
690         weekdaysDefault, zoneStringsDefault): Removed.
691         * java/text/Collator.java (getAvailableLocales): Use modified
692         Classpath implementation.
693         (getInstance): Look in gnu.java.locale for information.
694         (clone): Rewrote.
695         * java/text/MessageFormat.java: Reindented.
696         (clone): Rewrote.
697         * java/text/FieldPosition.java: Merged with Classpath.
698         * java/text/ParsePosition.java: Merged with Classpath.
699         * java/text/Format.java: Merged with Classpath.
700         * java/text/StringCharacterIterator.java
701         (StringCharacterIterator(StringCharacterIterator,int,int)): New
702         constructor from Classpath.
703         * java/text/Annotation.java,
704         java/text/AttributedCharacterIterator.java,
705         java/text/AttributedString.java,
706         java/text/AttributedStringIterator.java: New from Classpath.
707         * java/text/CharacterIterator.java: Copied from Classpath.
708         * java/text/ChoiceFormat.java: Reindented.
709         (clone): Removed.
710         * gnu/java/text/BaseBreakIterator.java,
711         gnu/java/text/CharacterBreakIterator.java,
712         gnu/java/text/LineBreakIterator.java,
713         gnu/java/text/LocaleData_en.java,
714         gnu/java/text/LocaleData_en_US.java,
715         gnu/java/text/SentenceBreakIterator.java,
716         gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
717         * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
718         character.
719         * java/text/BreakIterator.java (getAvailableLocales): Use
720         Classpath implementation.
721         (getInstance): Look in gnu.java.locale for information.
722         (getCharacterInstance, getLineInstance, getSentenceInstance,
723         getWordInstance): Look in gnu.java.text for implementations.
724         * java/text/DecimalFormatSymbols.java: Reindented
725         (clone): Use Classpath implementation.
726         (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
727         (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
728         information.
729         * java/text/DateFormat.java: Merged with Classpath.
730         (getAvailableLocales): Use Classpath implementation.
731         (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
732         (computeInstance): Look in gnu.java.locale for information.
733         * java/text/NumberFormat.java: Reindented.
734         (computeInstance): Look in gnu.java.locale for information.
735         (getAvailableLocales): Use implementation from Classpath.
736         (setMaximumIntegerDigits): Likewise.
737         (setMinimumIntegerDigits): Likewise.
738         (setMaximumFractionDigits): Likewise.
739         (clone): Removed.
740         * java/text/DecimalFormat.java: Reindented.
741         * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
742         * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
743         * Makefile.in: Rebuilt.
744         * Makefile.am (ordinary_java_source_files): Added all new files.
745         (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
746         * java/security/spec/AlgorithmParameterSpec.java,
747         java/security/spec/KeySpec.java: Re-merged with Classpath.
748
749         Fix for PR libgcj/4213:
750         * Makefile.am (ordinary_java_source_files): Added new file.
751         * gnu/gcj/text/LocaleData.java: New file.
752
753 2001-09-03  Tom Tromey  <tromey@redhat.com>
754
755         * java/lang/reflect/natField.cc (set): Allow for case when the
756         value is null.  Fixes PR libgcj/4208.
757
758         * gcj/javaprims.h: Regenerated class list.
759         * java/lang/IllegalThreadStateException.java,
760         java/lang/InstantiationException.java: Minor comment tweaks to
761         satisfy libgcj `classes.pl' script.
762
763 2001-09-01  Tom Tromey  <tromey@redhat.com>
764
765         * Makefile.in: Rebuilt.
766         * Makefile.am (core_java_source_files): Added
767         UnsupportedClassVersionError.
768         * java/lang/UnsupportedClassVersionError.java: New file from
769         Classpath.
770
771         * java/io/CharConversionException.java, java/io/EOFException.java,
772         java/io/FileNotFoundException.java, java/io/IOException.java,
773         java/io/InterruptedIOException.java,
774         java/io/ObjectStreamException.java,
775         java/io/OptionalDataException.java,
776         java/io/StreamCorruptedException.java,
777         java/io/SyncFailedException.java,
778         java/io/UTFDataFormatException.java,
779         java/io/UnsupportedEncodingException.java,
780         java/lang/AbstractMethodError.java,
781         java/lang/ArithmeticException.java,
782         java/lang/ArrayIndexOutOfBoundsException.java,
783         java/lang/ArrayStoreException.java,
784         java/lang/ClassCastException.java,
785         java/lang/ClassCircularityError.java,
786         java/lang/ClassFormatError.java,
787         java/lang/CloneNotSupportedException.java, java/lang/Error.java,
788         java/lang/Exception.java,
789         java/lang/ExceptionInInitializerError.java,
790         java/lang/IllegalAccessError.java,
791         java/lang/IllegalAccessException.java,
792         java/lang/IllegalArgumentException.java,
793         java/lang/IllegalMonitorStateException.java,
794         java/lang/IllegalStateException.java,
795         java/lang/IllegalThreadStateException.java,
796         java/lang/IncompatibleClassChangeError.java,
797         java/lang/IndexOutOfBoundsException.java,
798         java/lang/InstantiationError.java,
799         java/lang/InstantiationException.java,
800         java/lang/InternalError.java, java/lang/InterruptedException.java,
801         java/lang/LinkageError.java,
802         java/lang/NegativeArraySizeException.java,
803         java/lang/NoClassDefFoundError.java,
804         java/lang/NoSuchFieldError.java,
805         java/lang/NoSuchFieldException.java,
806         java/lang/NoSuchMethodError.java,
807         java/lang/NoSuchMethodException.java,
808         java/lang/NullPointerException.java,
809         java/lang/NumberFormatException.java,
810         java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
811         java/lang/SecurityException.java,
812         java/lang/StackOverflowError.java,
813         java/lang/StringIndexOutOfBoundsException.java,
814         java/lang/ThreadDeath.java, java/lang/UnknownError.java,
815         java/lang/UnsatisfiedLinkError.java,
816         java/lang/UnsupportedOperationException.java,
817         java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
818         java/lang/reflect/InvocationTargetException.java,
819         java/net/BindException.java, java/net/ConnectException.java,
820         java/net/MalformedURLException.java,
821         java/net/NoRouteToHostException.java,
822         java/net/ProtocolException.java, java/net/SocketException.java,
823         java/net/UnknownHostException.java,
824         java/net/UnknownServiceException.java,
825         java/text/ParseException.java: Copied from Classpath, thanks to
826         Mark Wielaard who did the merge.
827
828         * java/lang/System.java (getProperty): Use single argument form of
829         SecurityManager.checkPropertyAccess.
830         * Makefile.in: Rebuilt.
831         * Makefile.am (core_java_source_files): Added VMSecurityManager.
832         * java/lang/VMSecurityManager.java: New file.
833         * java/lang/SecurityManager.java: Merged with Classpath.
834
835 2001-08-31  Per Bothner  <per@bothner.com>
836
837         * gcj/javaprims.h (_Jv_RegisterClassHook):  New extern declaration.
838         (_Jv_RegisterClassHookDefault):  Likewise.
839         * java/lang/Class.h (_Jv_RegisterClassHookDefault):  Declare as friend.
840         * java/lang/natClassLoader.cc (_Jv_RegisterClassHook):  New variable.
841         (_Jv_RegisterClassHookDefault):  New.function.
842         (_Jv_RegisterClasses):  Call _Jv_RegisterClassHook.
843
844         * java/lang/ClassLoader.java (system):  Remove static field.
845         (getSystemClassLoader):  Get gnu.gcj.runtime.VMClassLoader.instance
846         directly instead of using it to set the system field.
847         (loadClass):  Use VMClassLoader.instance instead of system field.
848         (findSystemClass):   Similar.
849         * prims.cc (_Jv_RunMain):  Clear VMClassLoader::instance rather
850         than ClassLoader::system which no longer exists.
851         * java/lang/natClassLoader.java (_Jv_FindClass):  Simplify.
852
853 2001-08-31  Tom Tromey  <tromey@redhat.com>
854
855         * java/io/BufferedReader.java, java/io/ObjectInput.java,
856         java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
857         Re-merged with Classpath.
858
859         Re-merge with Classpath:
860         * java/util/Comparator (equals): Added.
861         * java/io/PipedWriter.java (write): Changed argument to `int'.
862
863         * java/io/FileDescriptor.java (FileDescriptor()): New
864         constructor.
865         * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
866
867         * Makefile.in: Rebuilt.
868         * Makefile.am (ordinary_java_source_files): Removed
869         EnumerationChain, added DoubleEnumeration.
870         (nat_source_files): Added natResourceBundle.cc.
871         * java/util/natResourceBundle.cc: New file.
872         * gnu/java/util/DoubleEnumeration.java: New file.
873         * gnu/gcj/util/EnumerationChain.java: Removed.
874         * java/beans/VetoableChangeSupport.java: Merged with Classpath.
875         * java/util/ResourceBundle.java: Merged with Classpath.
876         * java/util/StringTokenizer.java: Merged with Classpath.
877         * java/util/Locale.java: Merged with Classpath.
878         * java/util/Random.java: Merged with Classpath.
879         * java/util/PropertyResourceBundle.java: Merged with Classpath.
880         * java/util/ListResourceBundle.java: Merged with Classpath.
881         * java/util/ConcurrentModificationException.java: Re-merged with
882         Classpath.
883         * java/util/EmptyStackException.java: Likewise.
884         * java/util/MissingResourceException.java: Likewise.
885         * java/util/NoSuchElementException.java: Likewise.
886         * java/util/TooManyListenersException.java: Likewise.
887
888         * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
889         * java/io/OptionalDataException.java: Merged with Classpath.
890
891 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
892
893         * exception.cc (PERSONALITY_FUNCTION): Simplify
894         leb128 handling.
895
896 2001-08-31  Tom Tromey  <tromey@redhat.com>
897
898         * java/io/ByteArrayInputStream.java: Merged with Classpath.
899
900 2001-08-30  Tom Tromey  <tromey@redhat.com>
901
902         * java/io/BufferedReader.java: Re-merged with Classpath.
903
904 2001-08-28  Per Bothner  <per@bothner.com>
905
906         * java/math/BigInteger.java (init(int,Random)):  New method.
907         Move body of constructor <init>(int,Random)) here.
908         Re-write it to avoid constructing unneeded temporaries.
909         (<init>(int,int,Random)):  Use new init method to avoid constructing
910         extra temporary BigIntegers.
911
912 2001-08-27  Tom Tromey  <tromey@redhat.com>
913
914         * java/rmi/activation/Activatable.java,
915         java/rmi/activation/ActivateFailedException.java,
916         java/rmi/activation/ActivationDesc.java,
917         java/rmi/activation/ActivationException.java,
918         java/rmi/activation/ActivationGroup.java,
919         java/rmi/activation/ActivationGroupDesc.java,
920         java/rmi/activation/ActivationGroupID.java,
921         java/rmi/activation/ActivationID.java,
922         java/rmi/activation/ActivationInstantiator.java,
923         java/rmi/activation/ActivationMonitor.java,
924         java/rmi/activation/ActivationSystem.java,
925         java/rmi/activation/Activator.java,
926         java/rmi/activation/UnknownGroupException.java,
927         java/rmi/activation/UnknownObjectException.java,
928         java/rmi/AccessException.java,
929         java/rmi/AlreadyBoundException.java,
930         java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
931         java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
932         java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
933         java/rmi/NotBoundException.java,
934         java/rmi/RMISecurityException.java,
935         java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
936         java/rmi/RemoteException.java, java/rmi/ServerError.java,
937         java/rmi/ServerException.java,
938         java/rmi/ServerRuntimeException.java,
939         java/rmi/StubNotFoundException.java,
940         java/rmi/UnexpectedException.java,
941         java/rmi/UnknownHostException.java,
942         java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
943         java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
944         java/rmi/registry/LocateRegistry.java,
945         java/rmi/registry/Registry.java,
946         java/rmi/registry/RegistryHandler.java,
947         java/rmi/server/ExportException.java,
948         java/rmi/server/LoaderHandler.java,
949         java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
950         java/rmi/server/Operation.java,
951         java/rmi/server/RMIClassLoader.java,
952         java/rmi/server/RMIClientSocketFactory.java,
953         java/rmi/server/RMIFailureHandler.java,
954         java/rmi/server/RMIServerSocketFactory.java,
955         java/rmi/server/RMISocketFactory.java,
956         java/rmi/server/RemoteCall.java,
957         java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
958         java/rmi/server/RemoteServer.java,
959         java/rmi/server/RemoteStub.java,
960         java/rmi/server/ServerCloneException.java,
961         java/rmi/server/ServerNotActiveException.java,
962         java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
963         java/rmi/server/SkeletonMismatchException.java,
964         java/rmi/server/SkeletonNotFoundException.java,
965         java/rmi/server/SocketSecurityException.java,
966         java/rmi/server/UID.java,
967         java/rmi/server/UnicastRemoteObject.java,
968         java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
969         gnu/java/rmi/dgc/DGCImpl_Skel.java,
970         gnu/java/rmi/dgc/DGCImpl_Stub.java,
971         gnu/java/rmi/registry/RegistryImpl.java,
972         gnu/java/rmi/registry/RegistryImpl_Skel.java,
973         gnu/java/rmi/registry/RegistryImpl_Stub.java,
974         gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
975         gnu/java/rmi/server/ProtocolConstants.java,
976         gnu/java/rmi/server/RMIDefaultSocketFactory.java,
977         gnu/java/rmi/server/RMIHashes.java,
978         gnu/java/rmi/server/RMIObjectInputStream.java,
979         gnu/java/rmi/server/RMIObjectOutputStream.java,
980         gnu/java/rmi/server/UnicastConnection.java,
981         gnu/java/rmi/server/UnicastConnectionManager.java,
982         gnu/java/rmi/server/UnicastRef.java,
983         gnu/java/rmi/server/UnicastRemoteCall.java,
984         gnu/java/rmi/server/UnicastRemoteStub.java,
985         gnu/java/rmi/server/UnicastServer.java,
986         gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
987         Kaffe.  Relabelled classes to fit into Classpath tree.
988         * Makefile.in: Rebuilt.
989         * Makefile.am (rmi_java_source_files): New macro.
990         (ordinary_java_source_files): Reference it.
991         (bin_PROGRAMS): Added rmic and rmiregistry.
992         (rmic_SOURCES): New macro.
993         (EXTRA_rmic_SOURCES): Likewise.
994         (rmic_LDFLAGS): Likewise.
995         (rmic_LINK): Likewise.
996         (rmic_LDADD): Likewise.
997         (rmic_DEPENDENCIES): Likewise.
998         (rmiregistry_SOURCES): New macro.
999         (EXTRA_rmiregistry_SOURCES): Likewise.
1000         (rmiregistry_LDFLAGS): Likewise.
1001         (rmiregistry_LINK): Likewise.
1002         (rmiregistry_LDADD): Likewise.
1003         (rmiregistry_DEPENDENCIES): Likewise.
1004
1005 2001-08-26  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1006
1007         * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
1008
1009         * Makefile.am: New friends for java/lang/Thread.h.
1010         * prims.cc (runFirst): Removed.
1011         (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
1012         (_Jv_RunMain): Now takes either a klass or class name parameter.
1013         Create a gnu.gcj.runtime.FirstThread and attach the native thread
1014         to that, then run it using _Jv_ThreadRun. Remove special handling of
1015         jar files, instead pass is_jar parameter through to FirstThread.
1016         * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
1017         of _Jv_AttachCurrentThread.
1018         * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
1019         (run): New method. Take care of looking up main class manifest
1020         attribute and calling forName if neccessary. Then call call_main.
1021         (call_main): New native method.
1022         * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
1023         relocated from prims.cc. Look up and call main method.
1024         * java/lang/Thread.java (run_): Removed.
1025         * java/lang/natThread.cc (run_): Renamed to...
1026         (_Jv_ThreadRun): this. JVMPI notification code moved to ...
1027         (_Jv_NotifyThreadStart): here. New function.
1028         (countStackFrames, destroy, resume, suspend, stop): Throw
1029         UnsupportedOperationExceptions rather than JvFail'ing.
1030         (_Jv_AttachCurrentThread): New variant takes a Thread argument.
1031         Existing version wraps new variant.
1032
1033
1034 2001-08-23  Tom Tromey  <tromey@redhat.com>
1035
1036         * java/lang/reflect/Field.java (toString): Use
1037         Method.appendClassName.
1038         * java/lang/reflect/Constructor.java (toString): Use
1039         Method.appendClassName.
1040         * java/lang/reflect/Method.java: Reindented.
1041         (appendClassName): New method.
1042         (toString): Use it.
1043         * defineclass.cc (handleMethod ): Initialize `throws' field of
1044         method.
1045         (read_one_method_attribute): Handle Exceptions attribute.
1046         * java/lang/reflect/natMethod.cc (ClassClass): Removed.
1047         (ObjectClass): Removed.
1048         (getType): Compute `exception_types'.
1049         * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
1050
1051 2001-08-21  Anthony Green  <green@redhat.com>
1052
1053         * java/lang/natClassLoader.cc (findClass): Search for
1054         lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
1055
1056 2001-08-21  Jeff Sturm  <jsturm@one-point.com>
1057
1058         * java/util/IdentityHashMap.java (get): Fix off-by-one error.
1059         (put): Likewise.
1060
1061 2001-08-20  Tom Tromey  <tromey@redhat.com>
1062
1063         * java/awt/GridBagConstraints.java: Removed comment.
1064
1065         * jni.cc (nathash, nathash_count, nathash_size): New globals.
1066         (DELETED_ENTRY): New define.
1067         (hash): New function.
1068         (nathash_find_slot): Likewise.
1069         (natrehash): Likewise.
1070         (nathash_add): Likewise.
1071         (_Jv_JNI_RegisterNatives): No longer interpreter-specific.  Use
1072         nathash_add.
1073         (nathash_find): New function.
1074         (_Jv_LookupJNIMethod): Use it.  Synchronize body.
1075         (call): Synchronize around assignment.
1076
1077 2001-08-17  Jeff Sturm  <jsturm@one-point.com>
1078
1079         * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
1080         starting from zero offset.
1081
1082 2001-08-17  Hans-J. Boehm <Hans_Boehm@hp.com>
1083
1084         * boehm.cc: Include gc_local_alloc.h if appropriate.
1085         (GC_GENERIC_MALLOC): Don't define.
1086         (MAYBE_MARK): Redefine for GC 6.0.
1087         (_Jv_MarkObj): Mark class differently.
1088         (_Jv_AllocArray): Use GC_generic_malloc.
1089
1090 2001-08-17  Mark J Roberts  <mjr@anarcast.net>
1091
1092         * java/math/BigInteger.java (randBytes): New method.
1093         (BigInteger(int,Random)): Use randBytes.
1094
1095 2001-08-17  Tom Tromey  <tromey@redhat.com>
1096
1097         * gnu/gcj/convert/IOConverter.java: Add `646' alias.
1098
1099 2001-08-17  Hans-J. Boehm <Hans_Boehm@hp.com>
1100
1101         * BigInteger.java: fix right shifts by nonzero multiples of 32.
1102
1103 2001-08-15  Tom Tromey  <tromey@redhat.com>
1104
1105         * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
1106         (local_ref_table, global_ref_table): Now IdentityHashMap.
1107         (_Jv_JNI_Init): Updated for new types.
1108         (mark_for_gc): Likewise.
1109         (unmark_for_gc): Likewise.
1110         * gcj/javaprims.h: Rebuilt class list.
1111         * Makefile.in: Rebuilt.
1112         * Makefile.am (core_java_source_files): Added new file.
1113         * java/util/IdentityHashMap.java: New file.
1114
1115         * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
1116         correctly.
1117
1118 2001-08-09  Tom Tromey  <tromey@redhat.com>
1119
1120         * java/awt/image/SampleModel.java (getPixel): Set correct array
1121         element.  From Chris Meyer.
1122
1123 2001-08-10  Loren J. Rittle  <ljrittle@acm.org>
1124
1125         * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
1126         * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
1127
1128 2001-08-06  Tom Tromey  <tromey@redhat.com>
1129
1130         * java/io/InputStreamReader.java (refill): Only call refill on
1131         BufferedInputStream when appropriate constraints are met.
1132
1133 2001-08-05  Tom Tromey  <tromey@redhat.com>
1134
1135         * java/io/StringWriter.java: Merged with Classpath.
1136         * java/io/InputStream.java: Merged with Classpath.
1137         * java/io/OutputStream.java: Merged with Classpath.
1138         * java/io/PushbackInputStream.java: Merged with Classpath.
1139         * java/io/CharArrayReader.java: Merged with Classpath.
1140         * java/io/CharArrayWriter.java: Merged with Classpath.
1141
1142 2001-08-02  Tom Tromey  <tromey@redhat.com>
1143
1144         * prims.cc (JNI_OnLoad): Don't declare.
1145         (_JNI_OnLoad): Don't define.
1146         (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
1147
1148 2001-08-02  Tom Tromey  <tromey@redhat.com>
1149
1150         * java/io/RandomAccessFile.java (seek): Let seek go past end of
1151         file.
1152         (skipBytes): Don't fail if seeking past end of file.
1153         * java/io/FileInputStream.java (skip): Don't fail if seeking past
1154         end of file.
1155         * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
1156         argument.
1157         * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
1158         argument.
1159         * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
1160         argument.
1161         * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
1162
1163 2001-08-02  Martin Kahlert  <martin.kahlert@infineon.com>
1164
1165         * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
1166         to initialize global_ref_table/local_ref_table.
1167
1168 2001-08-02  Tom Tromey  <tromey@redhat.com>
1169
1170         * configure: Rebuilt.
1171         * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin.  From
1172         David Billinghurst.
1173
1174 2001-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1175
1176         * include/posix.h (_POSIX_PII_SOCKET): Define.
1177         * configure.in (HAVE_SOCKLEN_T): Define.
1178         * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
1179         definition up.
1180         (_JV_accept): New function, avoids Tru64 UNIX accept macro.
1181         (java::net::PlainSocketImpl::accept): Use it.
1182         Fixes PRs libgcj/3694, libgcj/3696.
1183
1184         * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
1185         * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
1186         * configure, include/config.h.in: Regenerate.
1187         * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
1188         (mcastGrp): Likewise.
1189         (java::net::PlainDatagramSocketImpl::setOption): Guard against
1190         missing IPV6_MULTICAST_IF.
1191         Fixes PR libgcj/3694.
1192
1193 2001-08-01  Jeff Sturm  <jsturm@one-point.com>
1194
1195         * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
1196
1197 2001-07-30  Christian Iseli  <chris@ludwig-alpha.unil.ch>
1198
1199         * Makefile.in: Rebuilt.
1200         * Makefile.am (GCJLINK): Added --tag=GCJ.
1201         (LIBLINK): Likewise.
1202
1203 2001-07-30  Tom Tromey  <tromey@redhat.com>
1204
1205         * java/util/Date.java: Re-merged with Classpath.
1206
1207 2001-07-30  Jeff Sturm  <jsturm@one-point.com>
1208
1209         * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
1210         (_Jv_bind): New static function.
1211         (bind): Use _Jv_bind.
1212         * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1213         (_Jv_bind, _Jv_connect): New static functions.
1214         (bind): Use _Jv_bind.
1215         (connect): Use _Jv_connect.
1216
1217 2001-07-30  Tom Tromey  <tromey@redhat.com>
1218             Corey Minyard  <minyard@acm.org>
1219
1220         * gnu/gcj/convert/natIconv.cc (done): New methods.
1221         * gnu/gcj/convert/Output_iconv.java (done): New method.
1222         * gnu/gcj/convert/Input_iconv.java (done): New method.
1223         * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1224         Removed.
1225         (getDefaultEncodingClass): Removed.
1226         (getDefaultEncoder): Use getEncoder.
1227         (done): New method.
1228         (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1229         static fields.
1230         * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1231         Removed.
1232         (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1233         static fields.
1234         (getDefaultDecodingClass): Removed.
1235         (getDefaultDecoder): Use getDecoder.
1236         (getDecoder): Look up decoder in cache.
1237         (done): New method.
1238         * java/lang/natString.cc (init): Call `done' on converter.
1239         (getBytes): Likewise.
1240
1241 2001-07-30  Tom Tromey  <tromey@redhat.com>
1242
1243         * java/lang/Integer.java: Merged with Classpath.
1244
1245 2001-07-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1246
1247         * java/util/GregorianCalendar.java (GregorianCalendar): Call
1248         setTimeInMillis() to set the default/current time.
1249
1250 2001-07-29  Mark Wielaard <mark@klomp.org>
1251
1252         * HACKING: add description on updating namespace
1253
1254 2001-07-26  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1255
1256         * java/util/Calendar.java (set): Never recompute fields here. They
1257         will already be set if someone set time explicitly, and it can cause
1258         problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1259         * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1260         HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1261         sane.
1262         * java/text/SimpleDateFormat.java (defaultCentury): New field.
1263         (readObject): Call set2DigitYearStart if appropriate so that
1264         defaultCentury is calculated.
1265         (SimpleDateFormat): Don't bother clearing calendar here. Call
1266         computeCenturyStart().
1267         (set2DigitYearStart): Calculate and set defaultCentury.
1268         (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1269         everywhere.
1270         (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1271         2 numeric digits, use the 80-20 heuristic to parse the value into a
1272         default century based on defaultCenturyStart.
1273         (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1274
1275 2001-07-25  Tom Tromey  <tromey@redhat.com>
1276
1277         * Makefile.in: Rebuilt.
1278         * Makefile.am (libgcj.jar): Correctly fail when bytecode
1279         compilation fails.
1280
1281 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1282
1283         * prims.cc (_JNI_OnLoad): New function.
1284         (JNI_OnLoad): Use it.
1285         (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1286
1287 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1288
1289         * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1290         Makefile.in: Regenerate.
1291
1292 2001-07-24  Tom Tromey  <tromey@redhat.com>
1293
1294         * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1295         type.
1296
1297 2001-07-23  Tom Tromey  <tromey@redhat.com>
1298
1299         * gcj/javaprims.h: Rebuilt class list.
1300         * Makefile.in: Rebuilt.
1301         * Makefile.am (core_java_source_files): Added VMClassLoader.
1302         * java/lang/VMClassLoader.java: New file.
1303         * java/lang/Boolean.java: Merged with Classpath.
1304         * java/lang/Byte.java: Merged with Classpath.
1305         * java/lang/Integer.java: Merged with Classpath.
1306         * java/lang/Long.java: Merged with Classpath.
1307         * java/lang/Number.java: Merged with Classpath.
1308         * java/lang/Short.java: Merged with Classpath.
1309
1310 2001-07-22  Jeff Sturm  <jsturm@one-point.com>
1311
1312         * configure.host: Enable hash synchronization for alpha*-*.
1313         * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1314         function for alpha.
1315         * java/lang/natObject.cc (compare_and_swap, release_set,
1316         compare_and_swap_release): Added inline functions for alpha.
1317
1318 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1319
1320         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1321         2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1322         back to old RFC 2133 variants if missing.
1323
1324 2001-07-18  Tom Tromey  <tromey@redhat.com>
1325
1326         * java/io/natFileWin32.cc (_access): Renamed.
1327         (_stat): Likewise.
1328         * java/io/natFile.cc (_access): Renamed.
1329         (_stat): Likewise.
1330         * java/io/File.java (access, stat): Add leading `_' to name.
1331         Updated all callers.
1332
1333 2001-07-18  Tom Tromey  <tromey@redhat.com>
1334
1335         For PR java/2812:
1336         * libgcj.spec.in (*lib): Added LIBICONV.
1337         * configure: Rebuilt.
1338         * configure.in: Call AM_ICONV.  Don't check for iconv function.
1339         Add parameters to JV_HASH_SYNCHRONIZATION define.
1340         * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1341
1342 2001-07-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1343
1344         * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1345         not by setting its size field.
1346
1347 2001-07-13  Alexandre Petit-Bianco  <apbianco@redhat.com>
1348
1349         * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1350         local `_ebp.'
1351
1352 2001-07-12  Tom Tromey  <tromey@redhat.com>
1353             David Brownell  <david-b@pacbell.net>
1354
1355         Fix for PR libgcj/3426:
1356         * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1357         errno.h.
1358         (read): Throw exception if character conversion fails.
1359         * java/io/BufferedInputStream.java (refill): Now package-private.
1360         * java/io/InputStreamReader.java (ready): Simplified.
1361         (refill): New method.
1362         (read): Use it.
1363
1364 2001-07-12  Tom Tromey  <tromey@redhat.com>
1365
1366         Report from Henner Zeller:
1367         * java/io/FileOutputStream.java (FileOutputStream): Throw
1368         FileNotFoundException, not IOException.
1369
1370 2001-07-10  Anthony Green  <green@redhat.com>
1371
1372         * Makefile.in: Rebuilt.
1373         * Makefile.am: Add new files.
1374         * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1375         org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1376         org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1377         org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1378         org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1379         org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1380         org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1381         org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1382         org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1383         org/w3c/dom/ranges/DocumentRange.java,
1384         org/w3c/dom/ranges/Range.java,
1385         org/w3c/dom/ranges/RangeException.java,
1386         org/w3c/dom/traversal/DocumentTraversal.java,
1387         org/w3c/dom/traversal/NodeFilter.java,
1388         org/w3c/dom/traversal/NodeIterator.java,
1389         org/w3c/dom/traversal/TreeWalker.java,
1390         org/xml/sax/ext/DeclHandler.java,
1391         org/xml/sax/ext/LexicalHandler.java,
1392         org/xml/sax/helpers/AttributeListImpl.java,
1393         org/xml/sax/helpers/AttributesImpl.java,
1394         org/xml/sax/helpers/DefaultHandler.java,
1395         org/xml/sax/helpers/LocatorImpl.java,
1396         org/xml/sax/helpers/NamespaceSupport.java,
1397         org/xml/sax/helpers/ParserAdapter.java,
1398         org/xml/sax/helpers/ParserFactory.java,
1399         org/xml/sax/helpers/XMLFilterImpl.java,
1400         org/xml/sax/helpers/XMLReaderAdapter.java,
1401         org/xml/sax/helpers/XMLReaderFactory.java,
1402         org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1403         org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1404         org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1405         org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1406         org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1407         org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1408         org/xml/sax/SAXNotRecognizedException.java,
1409         org/xml/sax/SAXNotSupportedException.java,
1410         org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1411         org/xml/sax/XMLReader.java:  New files.
1412
1413 2001-07-10  Alexandre Petit-Bianco  <apbianco@redhat.com>
1414
1415         * Makefile.am: Added `java/lang/ThreadLocal.java'.
1416         * Makefile.in: Regenerate.
1417         * java/lang/ThreadLocal.java: Initial import.
1418
1419 2001-07-07  Jeff Sturm  <jsturm@one-point.com>
1420
1421         * Makefile.am (libgcj.jar): Don't recursively make
1422         built_java_source_files.  Avoid long command lines.
1423         Don't change to $(srcdir) to invoke javac.
1424         (libgcj.la, libgcjx.la); Avoid long command lines.
1425         ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1426         * Makefile.in: Rebuilt.
1427
1428 2001-07-06  Andrew Haley  <aph@cambridge.redhat.com>
1429
1430         * include/i386-signal.h: Don't do anything with unsigned divide
1431         overflow except throw an exception.
1432
1433 2001-07-05  Tom Tromey  <tromey@redhat.com>
1434
1435         For PR java/3562:
1436         * java/lang/Class.h (Class(void)): Now private.  Removed
1437         implementation.  From dmorsberger@sensysdl.com.
1438
1439 2001-07-02  Tom Tromey  <tromey@redhat.com>
1440
1441         Fix for PR bootstrap/3281:
1442         * aclocal.m4, configure: Rebuilt.
1443         * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1444         Correctly compute libgcj_basedir.
1445         (mkinstalldirs): Define and subst.
1446
1447 2001-07-01  Jeremy Nimmer  <jwnimmer@alum.mit.edu>
1448
1449         For PR libgcj/3523:
1450         * java/io/LineNumberReader.java (reset): Pass correct arguments to
1451         countLines.
1452
1453 2001-06-27  Tom Tromey  <tromey@redhat.com>
1454
1455         * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1456         lowercase.
1457
1458 2001-06-25  Tom Tromey  <tromey@redhat.com>
1459
1460         * scripts/encodings.pl: Generate lower-case names.  Updated URL
1461         for `character-sets' file.
1462         * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1463         lower case.
1464         Rebuilt list of aliases.
1465
1466 2001-06-25  Tom Tromey  <tromey@redhat.com>
1467
1468         * java/io/natFileDescriptorPosix.cc (open): Change error message
1469         formatting.  From David Brownell.
1470
1471 2001-06-21  Tom Tromey  <tromey@redhat.com>
1472
1473         * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1474         From Corey Minyard.
1475
1476 2001-06-19  Mark J. Roberts  <mjr@statesmean.com>
1477
1478         * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1479         extraneous/malformed sign word.
1480
1481 2001-06-15  Tom Tromey  <tromey@redhat.com>
1482
1483         * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1484
1485 2001-06-15  Tom Tromey  <tromey@redhat.com>
1486
1487         * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1488         NULL if no library on the list has the symbol.
1489         (init): Call add_library on the program itself.
1490         * prims.cc (JvRunMain): Initialize Runtime before searching for
1491         `main'.
1492         (_Jv_RunMain): Likewise.
1493
1494 2001-06-15  Tom Tromey  <tromey@redhat.com>
1495
1496         * jni.cc (ClassClass): Removed; updated all users.
1497         (ObjectClass): Likewise.
1498         (ThrowableClass): Likewise.
1499         (MethodClass): Likewise.
1500         (ThreadGroupClass): Likewise.
1501         (local_ref_table): Renamed from `ref_table'.
1502         (global_ref_table): New global.
1503         (_Jv_JNI_Init): Initialize both ref tables.
1504         (mark_for_gc): Added `ref_table' parameter.
1505         (unmark_for_gc): Likewise.  Also, fail if we unreferenced too many
1506         times.
1507         (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1508         (_Jv_JNI_DeleteGlobalRef): Likewise.
1509         (_Jv_JNI_DeleteLocalRef): Likewise.
1510         (_Jv_JNI_NewLocalRef): Likewise.
1511         (_Jv_JNI_PopLocalFrame): Likewise.
1512         (_Jv_JNI_GetStringChars): Likewise.
1513         (_Jv_JNI_ReleaseStringChars): Likewise.
1514         (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1515         (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1516
1517 2001-06-14  Tom Tromey  <tromey@redhat.com>
1518
1519         Fix for PR libgcj/3144:
1520         * java/util/Date.java: Merged with Classpath.
1521
1522 2001-06-12  Tom Tromey  <tromey@redhat.com>
1523
1524         * aclocal.m4, configure: Rebuilt.
1525         * acinclude.m4: Find configure.host in srcdir.
1526
1527 2001-06-07  Tom Tromey  <tromey@redhat.com>
1528
1529         Fix for PR libgcj/3059:
1530         * java/lang/natSystem.cc (init_properties): Define `java.home'.
1531         * Makefile.in: Rebuilt.
1532         * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1533
1534 2001-06-10  Alexandre Petit-Bianco  <apbianco@redhat.com>
1535
1536         * exception.cc (cstdlib): Replaces stdlib.h.
1537         (_Jv_Throw): Use std::abort().
1538         (PERSONALITY_FUNCTION): Likewise.
1539
1540 2001-06-09  Alexandre Oliva  <aoliva@redhat.com>, Stephen L Moshier  <moshier@mediaone.net>
1541
1542         * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1543         nothing, as in autoconf 2.50.
1544         * aclocal.m4, configure: Rebuilt.
1545
1546 2001-06-08  Tom Tromey  <tromey@redhat.com>
1547
1548         * configure: Rebuilt.
1549         * configure.in: Compute new aux dir using `pwd'.
1550
1551 2001-06-07  Tom Tromey  <tromey@redhat.com>
1552
1553         For PR bootstrap/3075:
1554         * configure, aclocal.m4, Makefile.am: Rebuilt.
1555         * configure.in: Pass `--with-auxdir' to subdir configure.  Don't
1556         call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM.  Look for unwind.h
1557         relative to libgcj_basedir.
1558         * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1559         AC_CANONICAL_SYSTEM here.
1560         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1561         libgcj_basedir.
1562         ($(extra_headers)): New target.
1563
1564 2001-06-05  Martin Kahlert  <martin.kahlert@infineon.com>
1565             Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1566
1567         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1568         table index is within allowed bounds. Ensure that we dont try to access
1569         class itable at a negative offset. Avoid an ancestor table lookup if
1570         source is a primitive type class.
1571         (isInstance): Remove redundant isPrimitive() check.
1572
1573 2001-06-04  Tom Tromey  <tromey@redhat.com>
1574
1575         * java/security/PublicKey.java: Extend Key.
1576         * java/security/PrivateKey.java: Extend Key.
1577
1578 2001-06-02  Anthony Green  <green@redhat.com>
1579
1580         * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1581         alternate when USE_LTDL not defined.
1582
1583 2001-06-02  Anthony Green  <green@redhat.com>
1584
1585         * configure: Rebuild.
1586         * configure.in: Remove data_start hack.
1587         * libgcj.spec.in: Ditto.
1588         * Makefile.in: Rebuild.
1589         * Makefile.am: Ditto.
1590         * libgcjdata.c: Remove.
1591
1592 2001-06-02  Anthony Green  <green@redhat.com>
1593
1594         * configure: Rebuild.
1595         * configure.in (LIBFFIINCS, LIBFFI): Introduce.  Add
1596         --without-libffi option.  Tweak --disable-java-net processing.
1597         * Makefile.in: Rebuild.
1598         * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1599         * include/config.h.in: Rebuild.
1600         * acconfig.h (USE_LIBFFI): Define.
1601         * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1602
1603 2001-06-02  Anthony Green  <green@redhat.com>
1604
1605         * configure: Rebuilt.
1606         * configure.in: Test for sigaction on native builds.
1607         * prims.cc: Check HAVE_SIGACTION.
1608         * include/config.h.in: Rebuilt.
1609
1610 2001-05-31  Jeff Sturm  <jsturm@one-point.com>
1611
1612         * natFile.cc (get_entry): Removed functions.
1613         (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1614         Allocate enough storage for d_name if using readdir_r.
1615
1616 2001-05-31  Tom Tromey  <tromey@redhat.com>
1617
1618         * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1619         correct size.
1620         (write): Loop until write completes.  From Corey Minyard.
1621
1622 2001-05-29  Laurent Guerby  <guerby@acm.org>
1623
1624         * java/awt/geom/Rectangle2D.java: fix doc typo.
1625
1626 2001-05-31  Tom Tromey  <tromey@redhat.com>
1627
1628         * java/sql/DriverManager.java (getDrivers): Handle case where
1629         driver's class loader is null.  From Corey Minyard.
1630
1631 2001-05-29  Tom Tromey  <tromey@redhat.com>
1632
1633         * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1634
1635         * configure: Rebuilt.
1636         * configure.in: Only add multilib support code if we just rebuilt
1637         top-level Makefile.
1638
1639 2001-05-29  Andrew Haley  <aph@redhat.com>
1640
1641         * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1642         pointer: the dwarf unwinder in libgcc will do everything that's
1643         needed.
1644         (HANDLE_DIVIDE_OVERFLOW): Tidy.  Don't mess with stack frames any
1645         more than we absolutely need to.
1646         * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1647         * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1648         Alpha.
1649         (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1650         "$libgcj_sjlj".
1651         * configure: Rebuilt.
1652         * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1653         for Alpha.
1654         (SIGNAL_HANDLER): Use siginfo style handler.
1655         (INIT_SEGV): Likewise.
1656         (INIT_FPE): Likewise.
1657         * include/ppc-signal.h: Delete whole file.
1658
1659 2001-05-24  Tom Tromey  <tromey@redhat.com>
1660
1661         * java/lang/natString.cc (init): Throw
1662         ArrayIndexOutOfBoundsException.
1663         (getChars): Likewise.
1664         (getBytes): Likewise.
1665         (valueOf): Likewise.
1666
1667         * configure.in: Only allow hash synchronization when POSIX threads
1668         are enabled.
1669         * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1670         of sync info object.
1671
1672 2001-05-23  Tom Tromey  <tromey@redhat.com>
1673
1674         * Makefile.in: Rebuilt.
1675         * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1676
1677         Revert patch of 2001-05-21:
1678         * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1679         (libgcj_la_LIBADD): Likewise.
1680         (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1681         (libgcjx_la_LIBADD): Likewise.
1682
1683         * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1684         * gcj/Makefile.in: Rebuilt.
1685         * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1686         * gcj/javaprims.h: Include gcj/libgcj-config.h.
1687         * gcj/libgcj-config.h.in: New file.
1688         * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1689         * configure: Rebuilt.
1690         * configure.in: Enable hash synchronization by default on some
1691         platforms.
1692         (HASH_SYNC_SPEC): New subst.
1693         (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1694         Correctly use `test -z' instead of `test -n' in a couple places.
1695         (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1696         LIBGCJ_CXXFLAGS.
1697         * configure.host (enable_java_net_default): Initialize.
1698         (enable_hash_synchronization_default): New variable.
1699
1700 2001-05-23  Hans Boehm <Hans_Boehm@hp.com>
1701
1702         * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1703         synchronization in use.
1704         (_Jv_MarkArray): Likewise.
1705         (_Jv_AllocBytes): Don't check return result.
1706         (handle_out_of_memory): New function.
1707         (_Jv_InitGC): Set GC_oom_fn.
1708         (trace_one_vtable): New global.
1709         (_Jv_AllocTraceOne): New function.
1710         * configure.in: Added --enable-hash-synchronization.
1711         * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1712         java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1713         * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1714         (_Jv_AllocArray): Likewise.
1715         (_Jv_AllocBytes): Likewise.
1716         (_Jv_AllocPtrFreeObject): New function.
1717         (_Jv_AllocTraceOne): Likewise.
1718         * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1719         pthread_self().
1720         (self_cache): New global.
1721         (_Jv_ThreadSelf_out_of_line): New function.
1722         * prims.cc (_Jv_AllocBytesChecked): Removed.
1723         (_Jv_ThrowNoMemory): New function.
1724         (_Jv_AllocObject): Don't check for null return from allocator.
1725         (_Jv_NewObjectArray): Likewise.
1726         (_Jv_AllocPtrFreeObject): New function.
1727         (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1728         * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1729         (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1730         * include/boehm-gc.h (_Jv_AllocObj): Define.
1731         (_Jv_AllocPtrFreeObj): Define.
1732         * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1733         (_Jv_ThrowNoMemory): Declare.
1734         (_Jv_AllocTraceOne): Declare.
1735         (_Jv_AllocBytesChecked): Removed.
1736         * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1737         _Jv_MutexUnlock): Handle LOCK_DEBUG.
1738         (_Jv_ThreadSelf): Handle case where system pthread_self() is
1739         slow.
1740         * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1741         friend.
1742         * java/lang/Object.h (sync_info): Conditional upon presence of
1743         hash synchronization.
1744         * java/lang/natObject.cc: Much new code to handle thin locks and
1745         hash synchronization.
1746         * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1747         object if possible.
1748
1749 2001-05-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1750
1751         * gij.cc (version): Update copyright year.
1752
1753 2001-05-22  Anthony Green  <green@redhat.com>
1754
1755         * configure.in: Tweak canadian cross test, and don't redefine GCJ
1756         for cross builds.
1757
1758 2001-05-21  Per Bothner  <per@bothner.com>
1759
1760         Implement invocation interface; don't create new thread for main.
1761         * java/lang/Thread.java (gen_name):  Make native.
1762         (<init>(Thread,THreadGroup,Runnable,String)):  New private
1763         constructor, used by other constructors, and _Jv_AttachCurrentThread.
1764         * java/lang/natThread.cc (gen_name):  New implementation.
1765         (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread):  New.
1766         * prims.cc (main_init):  Removed, replaced by _Jv_CreateJavaVM.
1767         (_Jv_CreateJavaVM):  New runtime initialization procedure.
1768         (runFirst):  New proecdure - mostly code from old FirstThread::run.
1769         (JvRunMain, _Jv_RunMain):  Re-write to use new invocation code.
1770         * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1771         JvDetachCurrentThread):  New inline wrappers.
1772         * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1773         _Jv_DetachCurrentThread):  New declarations.
1774         * gnu/gcj/runtime/FirstThread.java:  Gutted.  Now contains only ...
1775         (getMain): new static method.
1776         * gnu/gcj/runtime/natFirstThread.cc:  Removed;  run method replaced
1777         by runFirst in prims.cc.
1778         (java/lang/Thread.h):  Update for new invocation interface.
1779         * include/posix-threads.h (_Jv_ThreadRegister,
1780         _Jv_ThreadUnRegister):  New declarations.
1781         * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New.
1782         (really_start):  Use new _Jv_ThreadRegister.
1783         * include/no-threads.h (_Jv_ThreadInitData):  No longer inline.
1784         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New empty inlines.
1785         * no-threads.cc (_Jv_ThreadInitData):  Set _Jv_OnlyThread here.
1786         Complain of called when _Jv_OnlyThread already set.
1787         (_Jv_ThreadStart):  Always JvFail.
1788         * include/win32-threads.h  (_Jv_Thread_t):  New thread_obj field.
1789         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New declarations.
1790         * win32-threads.cc (struct starter):  Remove objet field -
1791         we use _Jv_Thread_t's new thread_obj field instead.
1792         (_Jv_ThreadInitData):  Set _Jv_Thread_t's thread_obj field.
1793         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New.
1794         (really_start):  Use new _Jv_ThreadRegister.
1795         * jni.cc (_Jv_JNI_AttachCurrentThread):  Use _Jv_AttachCurrentThread.
1796         (_Jv_JNI_DetachCurrentThread):  Use _Jv_DetachCurrentThread.
1797         * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1798         Removed - no longer needed with new invocation interface.
1799         * Makefile.am:  Update for removed/added files.
1800
1801 2001-05-21  Per Bothner  <per@bothner.com>
1802
1803         * Makefile.am (libgcj_la_DEPENDENCIES):  Add $(nat_files).
1804         (libgcj_la_LIBADD):  Likewise.
1805         (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD):  Add $(x_nat_files).
1806
1807 2001-05-21  Per Bothner  <per@bothner.com>
1808
1809         * gcj/javaprims.h (_Jv_FormatInt):  New declaration.
1810         * java/lang/natString.cc (_JvFormatInt):  New primitive, with logic
1811         taken from old Integer.toString code.
1812         (Integer::valueOf):  Use _Jv_FormatInt.
1813         * java/lang/Integer.java (toString):  Just use call String.valueOf.
1814         * java/lang/Long.java (toString):  Fix typo in comment.
1815         * java/lang/String.java (valueOf(int)):  Make native.
1816         * java/lang/StringBuffer.java (append(int)):  Make native.
1817         * java/lang/natStringBuffer.cc:  New file, for append(jint).
1818         * Makefile.am (nat_source_files):  Add java/lang/natStringBuffer.cc.
1819
1820 2001-05-21  Tom Tromey  <tromey@redhat.com>
1821
1822         * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1823
1824 2001-05-18  Andrew Haley  <aph@cambridge.redhat.com>
1825
1826         * include/dwarf2-signal.h: New file.
1827         * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1828         * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1829         * configure: Rebuilt.
1830
1831 2001-05-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1832
1833         * configure.in: Update boehm-gc include dir for new GC version.
1834         * configure: Rebuilt.
1835         * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1836         extern "C" wrapper.
1837         * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1838         GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1839         * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1840         extern "C".
1841
1842 2001-05-18  Alexandre Petit-Bianco  <apbianco@redhat.com>
1843
1844         * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1845         (_Jv_MutexInit): Likewise.
1846
1847 2001-05-18  Tom Tromey  <tromey@redhat.com>
1848
1849         * Makefile.in: Rebuilt.
1850         * Makefile.am (awt_java_source_files): Added Polygon.java.
1851
1852 2001-05-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1853
1854         * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1855         * gcj/javaprims.h: ... here.
1856         * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1857
1858 2001-05-17  Martin Kahlert  <martin.kahlert@infineon.com>
1859
1860         * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1861         with length of ioffset table.
1862         (_Jv_IsAssignableFrom): Likewise.
1863
1864 2001-05-17  Per Bothner  <per@bothner.com>
1865
1866         * Makefile.am (ZIP):  The "fastjar" binary is now plain "jar".
1867
1868 2001-05-16  Tom Tromey  <tromey@redhat.com>
1869
1870         * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1871         zones.
1872
1873 2001-05-15  Tom Tromey  <tromey@redhat.com>
1874
1875         * java/util/GregorianCalendar.java (computeTime): Only call
1876         getTimeZone() once.
1877
1878 2001-05-14  Tom Tromey  <tromey@redhat.com>
1879
1880         * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1881         ZONE_OFFSET just before computing the time.
1882
1883 2001-05-12  Zack Weinberg  <zackw@stanford.edu>
1884
1885         * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1886         * Makefile.in: Regenerate (by hand).
1887         * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1888         * doc/cni.sgml: Document #pragma GCC java_exceptions.
1889
1890 2001-05-11  Richard Henderson  <rth@redhat.com>
1891
1892         * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1893         * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1894
1895 2001-05-11  Richard Henderson  <rth@redhat.com>
1896
1897         * exception.cc: Include unwind-pe.h.  Remove all pointer
1898         encoding logic.
1899
1900 2001-05-10  Tom Tromey  <tromey@redhat.com>
1901
1902         * Makefile.in: Rebuilt.
1903         * Makefile.am (awt_java_source_files): Added Polygon.java.
1904         * java/awt/Polygon.java: New file.
1905
1906         * java/awt/geom/AffineTransform.java
1907         (setToRotation(double,double,double)): New method.
1908         (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1909         (setToShear): Likewise.
1910
1911 2001-05-10  Tom Tromey  <tromey@redhat.com>
1912
1913         * java/util/GregorianCalendar.java: Imported from Classpath.
1914         * gnu/java/locale/LocaleInformation_nl.java: New file from
1915         Classpath.
1916         * gnu/java/locale/LocaleInformation_en.java: Likewise.
1917         * gnu/java/locale/LocaleInformation_de.java: Likewise.
1918         * gnu/java/locale/LocaleInformation.java: Likewise.
1919         * natGregorianCalendar.cc: Removed.
1920         * Makefile.in: Rebuilt.
1921         * Makefile.am (nat_source_files): Removed
1922         natGregorianCalendar.cc.
1923
1924 2001-05-10  Tom Tromey  <tromey@redhat.com>
1925
1926         * java/text/SimpleDateFormat.java (computeCenturyStart): New
1927         method.
1928         (defaultCenturyStart): Use it.
1929         (readObject): Likewise.
1930         (SimpleDateFormat): Clear the calendar.  Set the grouping on the
1931         number format.
1932         (parse): Copy the calendar before modifying it.  Correctly handle
1933         the time zone.
1934
1935         * java/util/Calendar.java (clear): Set field value(s) to 0.
1936
1937 2001-05-10  Jeff Sturm  <jsturm@one-point.com>
1938
1939         * Calendar.java (get): Clear areFieldsSet if requested field
1940         is not set.
1941         (set): Unset fields that depend on new value.
1942
1943 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1944
1945         * java/lang/Class.h (_Jv_Self): New union type.
1946         (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1947         Jeff Sturm and Fergus Henderson.
1948
1949 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1950
1951         * java/lang/ClassLoader.java: Remove dead code fragment.
1952
1953 2001-05-03  Martin Kahlert  <martin.kahlert@infineon.com>
1954
1955         * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1956         checking.
1957         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1958
1959 2001-04-30  Andrew Haley  <aph@cambridge.redhat.com>
1960
1961         * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1962         * configure.host (EXCEPTIONSPEC): New.
1963         * configure.in (EXCEPTIONSPEC): New.
1964         * configure: Rebuilt.
1965
1966 2001-05-02  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1967
1968         * doc/*.texi: Remove generated documentation.
1969
1970 2001-04-30  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
1971
1972         * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1973         (performDelete): Fix #endif placement.
1974
1975 2001-04-27  Zack Weinberg  <zackw@stanford.edu>
1976
1977         * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1978         * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1979         (_Jv_ThreadDestroyData): Use _Jv_Free.
1980         * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1981         Use _Jv_Malloc.
1982
1983 2001-04-27  Tom Tromey  <tromey@redhat.com>
1984
1985         * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1986         checking.
1987         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1988
1989 2001-04-27  Martin Kahlert  <martin.kahlert@infineon.com>
1990
1991         * include/jni.h (struct JNINativeInterface): Fixed types in
1992         Get/Set*ArrayRegion declarations.
1993         (class _Jv_JNIEnv): Likewise.
1994
1995 2001-04-26  Alexandre Oliva  <aoliva@redhat.com>
1996
1997         * configure.in: Obtain THREADS with `gcc -v'.
1998         * configure: Rebuilt.
1999
2000 2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2001
2002         Fix PR libgcj/2237:
2003         * java/io/ObjectStreamClass.java (setClass): Calculate
2004         serialVersionUID for local class and compare it against the UID
2005         from the Object Stream. Throw InvalidClassException upon mismatch.
2006         (setUID): Renamed to...
2007         (getClassUID): this. Return the calculated class UID rather than
2008         setting uid field directly.
2009         (getDefinedSUID): Removed.
2010         * java/io/ObjectInputStream.java (resolveClass): Use the
2011         three-argument Class.forName().
2012         * java/io/InvalidClassException (toString): Don't include classname in
2013         result if it is null.
2014
2015 2001-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2016
2017         * java/net/natInetAddress.cc (java::net::InetAddress::aton):
2018         Wrap use of inet_pton in HAVE_INET6.
2019
2020 2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2021
2022         java.security merge and ClassLoader compliance fixes.
2023
2024         * java/lang/Class.h (Class): Include ProtectionDomain.h.
2025         New protectionDomain field.
2026         (forName): Add initialize parameter. Fixes declaration to comply with
2027         JDK spec.
2028         * java/lang/natClass.cc (forName): Correct declaration of the three-arg
2029         variant. Honour "initialize" flag.
2030         (getProtectionDomain0): New method.
2031         * java/lang/Class.java: Fix forName() declaration.
2032         (getPackage): New method based on Classpath implementation.
2033         (getProtectionDomain0): New native method decl.
2034         (getProtectionDomain): New method.
2035         * java/lang/ClassLoader.java (getParent): Now final.
2036         (definedPackages): New field.
2037         (getPackage): New.
2038         (defineClass): New variant with protectionDomain argument.
2039         (definePackage): New.
2040         (getPackages): New.
2041         (findSystemClass): Now final.
2042         (getSystemResourceAsStream): Remove redundant "final" modifier.
2043         (getSystemResource): Remove redundant "final" modifier.
2044         (getResources): Now final.
2045         (protectionDomainPermission): New static field.
2046         (unknownProtectionDomain): Ditto.
2047         (defaultProtectionDomain): Ditto.
2048         (getSystemClassLoader): Now non-native.
2049         * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
2050         arguments for Class.forName().
2051         * java/lang/Package.java: New file.
2052         * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
2053         (instance): Static initialize singleton.
2054         (findClass): Override this, not findSystemClass.
2055         * java/lang/natClassLoader.cc (defineClass0): Set class's
2056         protectionDomain field as specified.
2057         (getSystemClassLoader): Removed.
2058         (findClass): Renamed from findSystemClass. Call the interpreter via
2059         URLClassLoader.findClass if loading class via dlopen fails.
2060
2061         * java/security/*.java: java.security import/merge with Classpath.
2062         * java/security/acl/*.java: Likewise.
2063         * java/security/interfaces/*.java: Likewise.
2064         * java/security/spec/*.java: Likewise.
2065         * java/net/NetPermission.java: Likewise.
2066         * java/net/SocketPermission.java: Likewise.
2067         * gnu/java/security/provider/DefaultPolicy.java: Likewise.
2068
2069         * Makefile.am: Add new classes.
2070         * Makefile.in: Rebuilt.
2071         * gcj/javaprims.h: CNI namespace rebuild.
2072
2073 2001-04-24  Alexandre Oliva  <aoliva@redhat.com>
2074
2075         * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
2076         for libtool tests.  Pre-create gnu/classpath/Configuration.java.
2077         * configure: Rebuilt.
2078
2079 2001-04-21  Tom Tromey  <tromey@redhat.com>
2080
2081         * Makefile.in: Rebuilt.
2082         * Makefile.am (awt_java_source_files): Added Line2D.java.
2083         * java/awt/geom/Line2D.java: Wrote.
2084
2085         * java/awt/Menu.java (addNotify): Wrote.
2086
2087         * java/awt/PopupMenu.java (addNotify): Implemented.
2088         (show): Likewise.
2089
2090         * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
2091         * java/awt/List.java (addNotify): Call super.addNotify.
2092         * java/awt/Label.java (addNotify): Call super.addNotify.
2093         * java/awt/FileDialog.java (addNotify): Call super.addNotify.
2094         * java/awt/Dialog.java (addNotify): Call super.addNotify.
2095         * java/awt/Choice.java (addNotify): Call super.addNotify.
2096         * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
2097         * java/awt/Checkbox.java (addNotify): Call super.addNotify.
2098
2099         * java/awt/List.java (replaceItem): Notify peer.
2100
2101         * java/awt/geom/Rectangle2D.java
2102         (Float.setRect(float,float,float,float)): New method.
2103
2104         * java/awt/event/ContainerEvent.java (getContainer): Now returns
2105         Container.
2106
2107         * java/awt/RenderingHints.java (Key): Class now public.
2108
2109         * java/awt/Rectangle.java (Rectangle): Now implements
2110         Serializable.
2111         (getPathIterator): Removed.
2112
2113         * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
2114         constructor.
2115
2116         * java/awt/FileDialog.java: Wrote.
2117
2118         * java/awt/EventQueue.java (isDispatchThread): Now public.
2119         (invokeLater): Likewise.
2120
2121         * java/awt/Component.java (setCursor): Update peer.
2122         (getFontMetrics): Use peer.
2123
2124         * java/awt/ComponentOrientation.java (ComponentOrientation): Class
2125         now final.
2126
2127 2001-04-20  Tom Tromey  <tromey@redhat.com>
2128
2129         * java/awt/List.java: Wrote.
2130         * java/awt/Dialog.java: Wrote.
2131
2132 2001-04-20  Warren Levy  <warrenl@redhat.com>
2133
2134         * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
2135         * java/text/SimpleDateFormat.java
2136         (indexInArray): Removed private method.
2137         (processYear): Removed private method.
2138         (parseLenient): Removed private method.
2139         (parseLeadingZeros): Removed private method.
2140         (parseStrict): Removed private method.
2141         (expect): Added new private method.
2142         (parse): Reverted to pre-Classpath merge version with minor fixes.
2143         * java/util/natGregorianCalendar.cc (computeTime): Handle strict
2144         calendars.
2145
2146 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
2147
2148         * java/io/File.java (normalizePath): New private method.
2149         (File (String)): Use normalizePath().
2150         (File (String, String)): Likewise.
2151
2152         * Makefile.am (libffi_files): Removed.
2153         (libgcj.la): Link libffi as a convenience library instead of
2154         refering to its object files directly.
2155         * Makefile.in: Rebuilt.
2156
2157 2001-04-08  Per Bothner  <per@bothner.com>
2158
2159         * java/lang/natString.cc (_Jv_NewStringUtf8Const):  Register finalizer.
2160         Recalculate hash, since Utf8Const's hash is only 16 bits.
2161
2162         * java/lang/natString.cc (_Jv_StringFindSlot, rehash):  Use high-order
2163         bits of hash to calculate step for chaining.
2164
2165         * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const):  Rehash
2166         when 2/3 full, rather than 3/4 full.
2167
2168 2001-04-06  Tom Tromey  <tromey@redhat.com>
2169
2170         * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
2171         (wrap_value<T*>): New specialization.
2172         (_Jv_JNI_PopLocalFrame): Update env->locals.
2173
2174 2001-04-05  Tom Tromey  <tromey@redhat.com>
2175
2176         * libtool-version: Updated current.
2177
2178 2001-04-04  Andreas Jaeger  <aj@suse.de>
2179
2180         * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2181         * gcj/Makefile.in: Rebuilt.
2182         * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2183         * Makefile.in: Rebuilt.
2184         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2185         * testsuite/Makefile.in: Rebuild.
2186         * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2187         * include/Makefile.in: Rebuild.
2188
2189 2001-04-02 Zack Weinberg <zackw@stanford.edu>
2190
2191         * testsuite/lib/libjava.exp: Correct typo: 'output from source
2192         compiled test', not 'execution from source compiled test'.
2193         Use UNTESTED, not XFAIL, for tests which are not run because
2194         they depend on a previous test which failed.
2195
2196 2001-04-02  Richard Henderson  <rth@redhat.com>
2197
2198         * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
2199         the same tree as gcc.
2200         * configure: Rebuilt.
2201
2202         * exception.cc (_Jv_Throw): Clarify commentary.
2203
2204 2001-04-02  Marcus G. Daniels  <mgd@swarm.org>
2205
2206         * jni.cc (wrap_value<jclass>): New specialization.
2207
2208 2001-04-02  Tom Tromey  <tromey@redhat.com>
2209
2210         * java/io/PrintStream.java (out): Removed field.  Fixes PR
2211         java/2449.
2212         (write): Call flush, not out.flush, per spec.
2213         (close): Flush output stream, per spec.  Handle
2214         InterruptedIOException.
2215         (checkError): Likewise.
2216         (flush, print, write): Handle InterruptedIOException per spec.
2217         (PrintStream): Don't create BufferedOutputStream.
2218         (work_bytes): New field.
2219         (writeChars): Use work_bytes.  Don't assume `out' is a
2220         BufferedOutputStream.
2221
2222 2001-04-02  Torsten Rueger  <torsten.rueger@firsthop.com>
2223
2224         * java/text/MessageFormat.java (setLocale): Added missing `else'.
2225         For PR libgcj/2429.
2226
2227 2001-03-30  Tom Tromey  <tromey@redhat.com>
2228
2229         * jni.cc (add_char): Correctly encode non-ascii characters.
2230         (add_char): Define even when INTERPRETER not defined.
2231         (mangled_name): Likewise.
2232         (_Jv_GetJNIEnvNewFrame): Likewise.
2233         (_Jv_LookupJNIMethod): Likewise.
2234
2235 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
2236
2237         * configure.host: Enable interpreter for PPC.
2238
2239 2001-04-02  Bryce McKinlay  <bryce@albatross.co.nz>
2240
2241         * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2242         to "file.separator", "path.separator", and "java.io.tmpdir" property
2243         initialization.
2244         * java/io/File.java: Likewise.
2245         * java/io/natFile.cc (init_native): Likewise.
2246         * java/io/natFileWin32.cc (init_native): Likewise.
2247
2248 2001-04-01  Per Bothner  <per@bothner.com>
2249
2250         * java/lang/natString.cc (intern):  If string's data does not point to
2251         this String, make a fresh String that does.
2252
2253         * java/lang/natString.cc (unintern):  Replace by static function.
2254         * java/lang/String.java (unintern):  Remove method.
2255
2256 2001-04-01  Per Bothner  <per@bothner.com>
2257
2258         * DeflaterOutputStream.java (deflate):  Loop while def.needsInput.
2259         (finish):  def.deflate needs to be called in a loop.
2260         (inbuf, inbufLength):  New private fields.
2261         (write(int)): Use inbuf.
2262         (write(byte[],int,int):  Check if pending output in inbuf.
2263         * ZipOutputStream.java:  Don't use Deflater if stored.
2264         Use a Checksum object directly, not via a CheckedOutputStream.
2265         (uncompressed_size):  New field,
2266         (closeEntry):  Only write data_directory if needed.
2267         (write):  If STORED, write directly.
2268         Always update crc, and uncompressed_size.
2269         (write_entry):  Fix lots of protocol erors.
2270
2271 2001-04-01  Bryce McKinlay  <bryce@albatross.co.nz>
2272
2273         1.3-Compliant Implementation of java.io.File.
2274         * java/lang/natSystem.cc (init_properties): Get "file.separator",
2275         "path.separator", and "java.io.tmpdir" from the File class, instead
2276         of setting them explicitly.
2277         * java/io/File.java: Do not canonicalize paths for security manager
2278         checks. Call init_native() from static initializer. Do not pass path
2279         argument to native methods. New native method declarations. Some
2280         security manager checks moved to checkWrite().
2281         (equals): Check file system case sensitivity and act appropriatly.
2282         (hashCode): Likewise.
2283         (isHidden): New method implemented.
2284         (performList): Changed prototype. Now takes a class argument specifying
2285         the class of the returned array: Strings or File objects. Also added
2286         FileFilter argument.
2287         (listFiles): New variants with "File" return type implemented.
2288         (createTempFile): Use createNewFile(). Use maxPathLen.
2289         (setReadOnly): New method implemented.
2290         (listRoots): Likewise.
2291         (compareTo): Likewise.
2292         (setLastModified): Likewise.
2293         (checkWrite): New method.
2294         (setPath): Removed.
2295         * java/io/natFile.cc: Various functions no longer take canonical path
2296         argument.
2297         (stat): Handle ISHIDDEN query.
2298         (isAbsolute): Remove WIN32 cruft.
2299         (performList): New arguments. Handle returning either File[] or String[]
2300         arrays. Check with FileFilter or FilenameFilter arguments as
2301         appropriate. Use an ArrayList, not a Vector, for the temporary list.
2302         (performSetReadOnly): New method implemented.
2303         (performListRoots): Likewise.
2304         (performSetLastModified): Likewise.
2305         (performCreate): Likewise.
2306         (init_native): New initialization function.
2307         * java/io/natFileWin32.cc: Various functions no longer take canonical
2308         path argument.
2309         (stat): Add FIXME about ISHIDDEN query.
2310         (performList): New arguments. Handle returning either File[] or String[]
2311         arrays. Check with FileFilter or FilenameFilter arguments as
2312         appropriate. Use an ArrayList, not a Vector, for the temporary list.
2313         (performSetReadOnly): New. Stubbed.
2314         (performListRoots): Likewise.
2315         (performSetLastModified): Likewise.
2316         (performCreate): Likewise.
2317         (init_native) New initialization function.
2318         * configure.in: Check for utime() and chmod().
2319         * configure: Rebuilt.
2320         * include/config.h.in: Rebuilt.
2321
2322         Resolves PR libgcj/1759.
2323
2324 2001-03-28  Richard Henderson  <rth@redhat.com>
2325
2326         IA-64 ABI Exception Handling:
2327         * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2328         (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2329         Remove EXCEPTIONSPEC.
2330         * configure.host (libgcj_sjlj): Remove.
2331         * configure.in (EXCEPTIONSPEC): Remove.
2332         (enable-sjlj-exceptions): Detect if not specified.
2333         (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2334         what header we're looking for.
2335         * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2336         * Makefile.in, configure: Regenerate.
2337         * exception.cc: Don't declare libgcc2 stuff.
2338         (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2339         (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2340         (win32_get_restart_frame): Remove.
2341         (struct java_exception_header): New.
2342         (__gcj_exception_class): New.
2343         (get_exception_header_from_ue): New.
2344         (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2345         (size_of_encoded_value, read_encoded_value): New.
2346         (read_uleb128, read_sleb128, parse_lsda_header): New.
2347         (get_ttype_entry, __gcj_personality_sj0): New.
2348         * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2349
2350 2001-03-27  Joerg Brunsmann  <joerg_brunsmann@yahoo.de>
2351
2352         * javax/naming/InitialContext.java (init): Fix typo.
2353         (composeName): Remove unnecessary semicolon.
2354         (addToEnvironment): Remove unnecessary semicolon.
2355         (addToEnvironment): Use put() instead of add().
2356
2357         * javax/naming/InitialContext.java (InitialContext):
2358         Make public.
2359         (destroySubcontext): Method doesn't return a result.
2360         * javax/naming/Context.java: Import java.util.Hashtable.
2361         * javax/naming/Name.java: Import java.util.Enumeration.
2362
2363 2001-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
2364
2365         * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2366         objects in subdirectories.
2367         * Makefile.in: Rebuilt.
2368
2369 2001-03-25  Richard Henderson  <rth@redhat.com>
2370
2371         * exception.cc (java_eh_info): Make value type jthrowable.
2372         (_Jv_type_matcher): Remove now unneeded cast.
2373         (_Jv_Throw): Make argument type jthrowable.  Munge name
2374         for SJLJ_EXCEPTIONS here ...
2375         * gcj/cni.h: ... not here.
2376         (JvThrow): Remove.
2377         * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2378
2379         * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2380         prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2381         gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2382         gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2383         gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2384         java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2385         java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2386         java/lang/natClass.cc, java/lang/natClassLoader.cc,
2387         java/lang/natDouble.cc, java/lang/natObject.cc,
2388         java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2389         java/lang/natString.cc, java/lang/natSystem.cc,
2390         java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2391         java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2392         java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2393         java/util/zip/natInflater.cc:
2394         Use throw, not JvThrow or _Jv_Throw.
2395
2396 2001-03-24  Bryce McKinlay  <bryce@albatross.co.nz>
2397
2398         * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2399         paramater, bump it to 1.
2400         * java/util/Hashtable.java (Hashtable): Likewise.
2401
2402 2001-03-23  Per Bothner  <per@bothner.com>
2403
2404         * java/lang/natDouble.cc (parseDouble):  Cannot use errno to
2405         check for errors, since we don't want to throw exception on
2406         overflow/underflow.  Instead, trim whitespace, and then check that
2407         _strtod_r uses up all the rest of the string.
2408
2409         * java/lang/natClass.cc (_Jv_IsAssignableFrom):  Checking the
2410         ancestors array is invalid for interfaces, so do that *after*
2411         check that the target type is not an interface.
2412
2413 2000-03-23  Jeff Sturm  <jsturm@one-point.com>
2414
2415         * prims.cc (_Jv_FindClassFromSignature): Check return of
2416         recursive call.  Do not abort on invalid signature; return NULL
2417         instead.
2418
2419 2001-03-22  Tom Tromey  <tromey@redhat.com>
2420
2421         * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2422         * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2423         unconditionally.
2424         * include/jvm.h (_Jv_ResolveField): Declare.
2425         * include/java-interp.h (_Jv_ResolveField): Don't declare.
2426         * resolve.cc (_Jv_ResolveField): No longer conditional on
2427         INTERPRETER.
2428
2429 2001-03-23  Bryce McKinlay  <bryce@albatross.co.nz>
2430
2431         Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2432         for libtool hacking.
2433         * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2434         to a temporary file, then invoke libtool with the -objectlist
2435         paramater.
2436         (libgcjx.la): Likewise.
2437         * Makefile.in: Rebuilt.
2438
2439 2001-03-22  Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2440
2441         * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2442
2443 2001-03-22  Marcus G. Daniels  <mgd@swarm.org>
2444
2445         * jni.cc (add_char): Handle `.' like `/'.
2446
2447 2001-03-22  Bryce McKinlay  <bryce@albatross.co.nz>
2448
2449         * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2450         initialize if exception_types is null.
2451         * java/lang/reflect/Constructor.java: Likewise.
2452         * java/lang/reflect/natConstructor.cc (getType): Initialize
2453         exception_types to an empty Object array.
2454
2455 2001-03-21  Tom Tromey  <tromey@redhat.com>
2456
2457         * configure: Rebuilt.
2458         * configure.in (GCJFLAGS): Subst.
2459         * Makefile.in: Rebuilt.
2460         * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2461         (gij_LDFLAGS): Likewise.
2462         (JC1FLAGS): Added GCJFLAGS and removed -g.
2463
2464         * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2465         read/write case.  Fixes PR libgcj/2338.
2466
2467 2001-03-20  Warren Levy  <warrenl@redhat.com>
2468
2469         * java/util/TimeZone.java: Sync up with Classpath.  Includes new
2470         and corrected SimpleTimeZone's for the timezones hash table.
2471
2472 2001-03-19  Per Bothner  <per@bothner.com>
2473
2474         * java/net/URLStreamHandler.java (parseURL):  Fix bug which would
2475         "canonicalize" "../../xxx" to "/xxx".
2476
2477 2001-03-19  Mark Wielaard <mark@klomp.org>
2478
2479         * java/util/ArrayList.java: Remove RCS keywords from comments
2480         * java/util/BasicMapEntry.java: idem
2481         * java/util/Dictionary.java: idem
2482         * java/util/HashSet.java: idem
2483
2484         * java/util/EventObject.java: reindent
2485         * java/util/Properties.java: idem
2486         * java/util/SortedMap.java: idem
2487
2488         * java/util/Enumeration.java: Merge with Classpath
2489         * java/util/EventListener.java: idem
2490         * java/util/Observable.java: idem
2491         * java/util/Observer.java: idem
2492         * java/util/Stack.java: idem
2493
2494 2001-03-17  Tom Tromey  <tromey@redhat.com>
2495
2496         * java/lang/natString.cc (rehash): Don't bother with memset;
2497         _Jv_AllocBytes returns zero'd memory.  Use _Jv_AllocBytesChecked.
2498         Use UNMASK_PTR.
2499         (UNMASK_PTR): New macro.
2500         (intern): Unmask pointer before returning it.  Register finalizer
2501         for the string.
2502         (unintern): Handle case where
2503         (MASK_PTR): New macro.
2504         (PTR_MAKSED): Likewise.
2505         (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2506
2507 2001-03-01  Andrew Haley  <aph@redhat.com>
2508
2509         * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2510         stackTrace buffer to a correctly aligned pointer array.
2511
2512 2001-03-12  Bryce McKinlay  <bryce@albatross.co.nz>
2513
2514         * java/lang/Runtime.java (_exit): Declare new package-private native.
2515         * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2516         without a security manager check.
2517         (exit): Call _exit after security check.
2518         * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2519         "naturally".
2520         * java/lang/System.java (setSecurityManager): If a security manager
2521         is already in place, call checkPermission.
2522         * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2523         throws an exception, try to deal with it gracefully.
2524         * java/lang/ExceptionInInitializerError.java (printStackTrace):
2525         Only try to print the subordinate stack trace if "exception" is set.
2526         Print our class name first.
2527
2528 2001-03-08  Tom Tromey  <tromey@redhat.com>
2529
2530         * java/io/ObjectStreamClass.java (setUID): Don't write interface
2531         info for array classes.
2532         Fixes PR libgcj/1971.
2533
2534 2001-03-06  Bryce McKinlay  <bryce@albatross.co.nz>
2535
2536         * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2537         Iterator.hasNext().
2538
2539 2001-03-05  Jochen Hoenicke  <jochen@gnu.org>
2540
2541         * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2542         instead of the new JDK1.2 API.  This is simpler and makes
2543         back-porting the classes to JDK1.1 trivial.
2544         (readObject): likewise.
2545
2546 2001-03-01  Per Bothner  <per@bothner.com>
2547
2548         Changes merged from Kawa's gnu.math.
2549         * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2550         (rshift(int[],int[],int,int):  Removed - not needed.
2551         (gcd):  Use rshift0 rather than rshift.
2552         * java/math/BigInteger.java (setShiftRight):  Likewise.
2553         (divide):  Simplify by using rshift0.
2554         (divide):  Zero-extend results if high-order bit set.
2555
2556 2001-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
2557
2558         * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2559         linking.
2560
2561 2001-02-23  Per Bothner  <per@bothner.com>
2562
2563         Change to sometimes include class name in ClassFormatError message.
2564         * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2565         _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)):  Return
2566         boolean instead of throwing ClassFormatError on failure.
2567         (throw_class_format_error):  Change static function to method.
2568         (_Jv_ClassReader):  New inline methods verify_identifier,
2569         two overloads of verify_classname, verify_field_signature, and
2570         verify_method_signature
2571         * include/java-interp.h:  Update declarations to return bool.
2572         * java/lang/natClassLoader.cc (defineClass0):  Explicitly throw
2573         ClassFormatError since _Jv_VerifyClassName now returns bool.
2574
2575 2001-02-23  Per Bothner  <per@bothner.com>
2576
2577         * java/lang/Throwable.java (CPlusPlusDemangler):  Pass -s java to
2578         c++filt to select java-style output.
2579
2580 2001-02-22  Bryce McKinlay  <bryce@albatross.co.nz>
2581
2582         Fix for PR java/2040:
2583         * java/util/HashMap.java (HashMap): Don't throw exception for
2584         loadFactor > 1. Add exception messages.
2585         * java/util/Hashtable.java (Hashtable): Likewise.
2586
2587 2001-02-21  Bryce McKinlay  <bryce@albatross.co.nz>
2588
2589         Disable libgcjx by default.
2590         * configure.in: Add support for --enable-java-awt configure option.
2591         Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2592         * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2593         * Makefile.in: Rebuilt.
2594         * configure: Rebuilt.
2595
2596 2001-02-20  Tom Tromey  <tromey@redhat.com>
2597
2598         * java/io/PipedWriter.java (flush): Throw exception if stream
2599         closed.
2600         * java/io/OutputStreamWriter.java (write): Throw exception if
2601         stream closed.
2602         (writeChars): Don't throw exception if stream closed.
2603         * java/io/CharArrayWriter.java (closed): New field.
2604         (close): Set it.
2605         (flush): Throw exception if stream closed.
2606         (reset): Synchronize on correct lock.  Allow stream to be
2607         reopened.
2608         (toCharArray, toString, writeTo): Synchronize.
2609         (write): Throwe exception if stream closed.
2610         * java/io/BufferedWriter.java (close): Clear `buffer'.
2611         (flush): Throw IOException if stream is closed.
2612         (write): Likewise.
2613
2614 2001-02-16  Tom Tromey  <tromey@cygnus.com>
2615
2616         * java/lang/ThreadGroup.java (activeCount): Only include threads
2617         which are alive.
2618         (enumerate): Likewise.
2619
2620 2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
2621
2622         * java/lang/Integer.java (getInteger): Return default argument if
2623         property is not set. Don't call decode with null argument.
2624         * java/lang/Long.java (getLong): Likewise.
2625
2626         * java/io/CharArrayReader.java (CharArrayReader): Throw
2627         IllegalArgumentException if constructor arguments are illegal.
2628         (ready): Return false if no more characters can be read.
2629         * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2630
2631 2001-02-17  Mark Wielaard <mark@klomp.org>
2632
2633         * java/util/TimerTask.java: New version from Classpath.
2634
2635 2001-02-17  Mark Wielaard <mark@klomp.org>
2636
2637         Remerge with Classpath
2638         (changes by Bryce McKinlay  <bryce@albatross.co.nz>)
2639         * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2640         (readByte): Use convertToByte().
2641         (readChar): Use convertToChar().
2642         (readInt): Use convertToInt().
2643         (readLong): Use convertToLong().
2644         (readShort): Use convertToShort().
2645         (readUnsignedByte): Use convertToUnsignedByte().
2646         (readUnsignedShort): Use convertToUnsignedShort().
2647         (readUTF): Use convertToUTF().
2648
2649         (convertToBoolean): Resurrected.
2650         (convertToByte): Ditto.
2651         (convertToChar): Ditto.
2652         (convertToInt): Ditto.
2653         (convertToLong): Ditto.
2654         (convertToShort): Ditto.
2655         (convertToUnsignedByte): Ditto.
2656         (convertToUnsignedShort): Ditto.
2657         (convertToUTF): Ditto.
2658
2659 2001-02-17  Mark Wielaard <mark@klomp.org>
2660
2661         * HACKING: new file
2662
2663 2001-02-17  Mark Wielaard <mark@klomp.org>
2664
2665         * java/io/DataInputStream.java: update copyright notice
2666         * java/io/PrintWriter.java: idem
2667         * java/io/Reader.java: idem
2668         * java/io/StreamTokenizer.java: idem
2669         * java/io/StringReader.java: idem
2670         * java/lang/reflect/ReflectPermission.java: idem
2671
2672 2001-02-16  Bryce McKinlay  <bryce@albatross.co.nz>
2673
2674         * java/util/TreeSet.java (clone): Made subclass safe, use
2675         super.clone(), not new.
2676         * java/util/TreeMap.java (clone): Likewise.
2677
2678         * java/util/TreeMap.java (nil): Made non-final.
2679         (clone): Create new nil node for copy.
2680
2681         * java/util/HashSet.java (clone): Made subclass safe, use
2682         super.clone(), not new.
2683
2684 2001-02-14  Andrew Haley  <aph@redhat.com>
2685
2686         * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2687         set the handler.
2688
2689 2001-02-15  Anthony Green  <green@redhat.com>
2690
2691         * defineclass.cc: Don't include alloca.h.
2692         (prepare_pool_entry): Convert alloca to __builtin_alloca.
2693         * interpret.cc (run_normal): Ditto.
2694         (continue1): Ditto.
2695         * java/lang/natDouble.cc (parseDouble): Ditto.
2696
2697 2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
2698
2699         * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2700         Object.clone().
2701         * java/util/Collections.java (ReverseComparator): New static class.
2702         (reverseOrder): Return static instance of ReverseComparator.
2703
2704         * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2705         * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2706         Rectangle.clone(), not Object.clone().
2707
2708         * java/util/HashSet.java (clone): Remove try/catch.
2709
2710         * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2711         * java/util/Collection.java: Likewise.
2712         * java/util/Comparator.java: Likewise.
2713         * java/util/Dictionary.java: Likewise.
2714         * java/util/Iterator.java: Likewise.
2715         * java/util/ListIterator.java: Likewise.
2716         * java/util/Map.java: Likewise.
2717         * java/util/Set.java: Likewise.
2718
2719 2001-02-14  Bryce McKinlay  <bryce@albatross.co.nz>
2720
2721         * java/util/TreeMap.java: New file.
2722         * java/util/TreeSet.java: New file.
2723         * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2724         * Makefile.in: Rebuilt.
2725         * java/util/HashSet.java (clone): Use constructor instead of calling
2726         clone on itself.
2727         * java/util/SortedSet.java: Sync with classpath.
2728         * java/util/HashMap.java (hash): Use if statement instead of ternary,
2729         for clarity.
2730
2731         * java/lang/natClass.cc (getSignature): Don't try to dereference
2732         param_types if it is null. Instead, take this to mean "no parameters".
2733         * java/lang/TreeMap.java (TreeIterator.next): Throw
2734         NoSuchElementException in preference to ConcurrentModificationException.
2735         (TreeIterator.remove): Throw IllegalStateException in preference to
2736         ConcurrentModificationException.
2737         (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2738         throw a NoSuchElementException.
2739         (SubMap.lastKey): Likewise.
2740
2741 2001-02-13  Tom Tromey  <tromey@redhat.com>
2742
2743         * java/io/PipedReader.java (ready): Throw IOException if pipe
2744         closed.
2745         * java/io/FilterReader.java (close): Don't clear `in'.
2746         * java/io/CharArrayReader.java (mark): Throw IOException if stream
2747         closed.
2748         (read, ready, reset, skip): Added exception message.
2749         * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2750         Perform checkStatus check inside synchronized block.
2751
2752 2001-02-13  Tom Tromey  <tromey@redhat.com>
2753
2754         * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2755
2756 2001-02-13  Tom Tromey  <tromey@redhat.com>
2757
2758         Fix for PR libgcj/1351:
2759         * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2760         interrupted.
2761         Include Thread.h and InterruptedIOException.h.
2762
2763 2001-02-13  Bryce McKinlay  <bryce@albatross.co.nz>
2764
2765         * java/io/BlockDataException.java: Removed.
2766         * java/io/ObjectInputStream.java (readObject): Throw
2767         StreamCorruptedException, not BlockDataException.
2768         * Makefile.am: Remove BlockDataException.
2769         * Makefile.in: Rebuild.
2770
2771 2001-02-12  Jeff Sturm  <jeff.sturm@commerceone.com>
2772             Tom Tromey  <tromey@redhat.com>
2773
2774         * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2775         null pointer check.
2776
2777 2001-02-09  Tom Tromey  <tromey@redhat.com>
2778
2779         * java/util/Timer.java: New version from Classpath.
2780
2781 2001-02-09  Bryce McKinlay  <bryce@albatross.co.nz>
2782
2783         * java/lang/Double.java (doubleToRawLongBits): Now native.
2784         * java/lang/Float.java (floatToRawIntBits): Likewise.
2785         * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2786         * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2787
2788 2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>
2789
2790         * java/io/File.java (java.net): Imported.
2791         (getAbsoluteFile): Added.
2792         (getCanonicalPath): Likewise.
2793         (toURL): Likewise.
2794
2795 2001-02-08  Bryce McKinlay  <bryce@albatross.co.nz>
2796
2797         * java/lang/Byte.java: Remove redundant instanceof and null checks.
2798         * java/lang/Integer.java: Likewise.
2799         * java/lang/Long.java: Likewise.
2800         * java/lang/Short.java: Likewise.
2801         * java/lang/Double.java: Likewise.
2802         (doubleToRawLongBits): New method.
2803         * java/lang/Float.java: As above.
2804         (floatToRawIntBits): New method.
2805
2806         * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2807         IOException if stream closed.
2808
2809 2001-02-08  Tom Tromey  <tromey@redhat.com>
2810
2811         * java/lang/Float.java (parseFloat): New method.
2812
2813 2001-02-08  Tom Tromey  <tromey@redhat.com>
2814
2815         From paul@dawa.demon.co.uk.  Fix for PR libgcj/1913:
2816         * java/io/InputStreamReader.java (ready, read): Throw IOException
2817         if stream has been closed.
2818
2819 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
2820
2821         * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2822         Change sources.redhat.com and sourceware.cygnus.com references to
2823         gcc.gnu.org.
2824
2825 2001-02-07  Tom Tromey  <tromey@redhat.com>
2826
2827         Fix for PR libgcj/1906:
2828         * java/text/MessageFormat.java (setLocale): Use named class
2829         literals.
2830         (forName): Removed.
2831         (format(Object,StringBuffer,FieldPosition)): Special case if
2832         argument is an Object[].
2833
2834 2001-02-07  Bryce McKinlay  <bryce@albatross.co.nz>
2835
2836         * java/util/Arrays.java: Removed "cmp" methods.
2837         (qsort): Don't use "cmp".
2838         (med3): Likewise.
2839
2840 2001-02-07  Mark Benvenuto  <mcb54@columbia.edu>
2841
2842         * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2843         sort. Fix for PR java/1895.
2844
2845 2001-02-03  Jeff Sturm  <jeff.sturm@commerceone.com>
2846
2847         * configure.host: Use sjlj-exceptions for Alpha.
2848
2849 2001-02-03  Bryce McKinlay  <bryce@albatross.co.nz>
2850
2851         * libgcj.spec.in: Don't force static libgcc into the executable.
2852         * configure.in (FORCELIBGCCSPEC): Removed.
2853         * configure: Rebuilt.
2854
2855 2001-01-31  Tom Tromey  <tromey@redhat.com>
2856
2857         * Makefile.in: Rebuilt.
2858         * Makefile.am (LTCXXCOMPILE): New macro.
2859
2860 2001-01-26  Andrew Haley  <aph@redhat.com>
2861
2862         (INIT_FPE): Use a direct system call to set the handler.
2863
2864 2001-01-27  Richard Henderson  <rth@redhat.com>
2865
2866         * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2867
2868 2001-01-27  Tom Tromey  <tromey@redhat.com>
2869
2870         * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2871         native interface structure.
2872
2873 2001-01-27  Bryce McKinlay  <bryce@albatross.co.nz>
2874
2875         * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2876         result unsigned.
2877         (read (byte[], int, int)): Only call readNextBlock() if the block
2878         buffer would actually be overrun. Increment blockDataPosition.
2879         (callReadMethod): Propagate exceptions from invocation target.
2880         * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2881         exceptions from invocation target.
2882
2883 2001-01-26  Tom Tromey  <tromey@redhat.com>
2884
2885         * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2886         to internal representation.
2887         (_Jv_JNI_GetAnyFieldID): Likewise.  Also, only use
2888         _Jv_FindClassFromSignature.
2889
2890 2001-01-26  Warren Levy  <warrenl@redhat.com>
2891
2892         * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2893         and timezone if they are available on the system.
2894
2895 2001-01-24  Tom Tromey  <tromey@redhat.com>
2896
2897         * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2898
2899 2001-01-24  Tom Tromey  <tromey@redhat.com>
2900
2901         * Makefile.in: Rebuilt.
2902         * Makefile.am (c_source_files): Added sf_fabs.c.
2903         * java/lang/sf_fabs.c: New file.
2904
2905 2001-01-19  Warren Levy  <warrenl@redhat.com>
2906
2907         * java/text/SimpleDateFormat.java (format): Compute hour for cases
2908         HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2909         correctly.  Adjust properly from 0-23 clock hour.
2910
2911 2001-01-17  Mark Wielaard  <mark@klomp.org>
2912
2913         * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2914
2915 2001-01-17  Bryce McKinlay  <bryce@albatross.co.nz>
2916
2917         * java/lang/Class.h (isInterface): Move implementation from
2918         natClass.cc. Declare inline.
2919         (Class): Add default constructor.
2920         * java/lang/Object.h: Update comments.
2921         * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2922         initialize superclass, saving a call if super is already initialized.
2923
2924 2001-01-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2925
2926         * prims.cc (init_prim_class): Deleted.
2927         (DECLARE_PRIM_TYPE): Rewritten.
2928         * java/lang/Class.h (stdio.h): Include removed.
2929         (stddef.h): Included.
2930         (java/lang/reflect/Modifier.h): Likewise.
2931         (Class): Contructor now takes arguments, initializes fields.
2932         (initializePrim): Prototype deleted.
2933         * java/lang/natClass.cc (initializePrim): Deleted.
2934
2935 2001-01-16  Warren Levy  <warrenl@redhat.com>
2936
2937         * java/math/BigInteger.java: Update Copyright year.
2938
2939 2001-01-16  Hans Boehm  <hans_boehm@hp.com>
2940
2941         * java/math/BigInteger.java (setShiftRight): Only do negative shift
2942         if count != 0.
2943
2944 2001-01-14  Mark Wielaard  <mark@klomp.org>
2945         * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2946         (decode): Merge comments with Classpath, don't throw Exception
2947
2948 2001-01-12  Tom Tromey  <tromey@redhat.com>
2949
2950         * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2951         Wrote.
2952         (setCursor): Wrote.
2953         Include Cursor.h.
2954         * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2955         * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2956         * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2957         * gnu/awt/gtk/GtkLabelPeer.java: New file.
2958         * gnu/awt/gtk/GtkButtonPeer.java: New file.
2959
2960         * java/lang/natSystem.cc: Include locale.h if it exists.
2961         * configure: Rebuilt.
2962         * configure.in: Check for locale.h.
2963
2964 2001-01-11  Tom Tromey  <tromey@redhat.com>
2965
2966         * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2967         (Cursor(int), getPredefinedCursor): Throw exception if argument
2968         invalid.
2969
2970 2001-01-03  Tom Tromey  <tromey@redhat.com>
2971
2972         * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2973         (getLocationOnScreen): Wrote.
2974
2975 2001-01-11  Bryce McKinlay  <bryce@albatross.co.nz>
2976
2977         * Makefile.am: Re-enable dependencies.
2978         * Makefile.in: Rebuilt.
2979
2980 2001-01-10  Warren Levy  <warrenl@redhat.com>
2981
2982         * java/math/BigDecimal.java (divide): Fixed comment.
2983
2984 2001-01-10  Warren Levy  <warrenl@redhat.com>
2985
2986         Fix for PR libgcj/1596:
2987         * java/math/BigDecimal.java (divide): Check newScale for validity.
2988         Ensure that BigInteger.pow() is called with a non-negative value.
2989         (setScale (int)): New public method.
2990         (setScale (int,int)): New public method.
2991
2992 2001-01-09  Oskar Liljeblad <osk@hem.passagen.se>
2993
2994         Fix for PR libgcj/1338:
2995         * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2996         commentChar.  Fixed typos in comments.
2997
2998 2001-01-08  Warren Levy  <warrenl@redhat.com>
2999
3000         Fix for PR libgcj/1411:
3001         * Makefile.am: Removed java/util/natTimeZone.cc.
3002         * Makefile.in: Rebuilt.
3003         * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
3004         missing localized timezone names.
3005         * java/lang/System.java (getDefaultTimeZoneId): New private method.
3006         * java/lang/natSystem.cc (getSystemTimeZone): New private method.
3007         (init_properties): Set user.timezone property.
3008         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3009         default timezone names; removed non-standard ones.  Use standard
3010         ID names per JCL.
3011         * java/util/Date.java (toGMTString): Removed zoneGMT variable.
3012         (UTC): Ditto.
3013         * java/util/TimeZone.java: Add standard ID names per JCL; removed
3014         non-standard ones.
3015         (getDefaultTimeZoneId): Removed.
3016         (zoneGMT): Removed.
3017         * java/util/natTimeZone.cc: Removed.
3018
3019 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
3020
3021         * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
3022         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
3023         (_Jv_GetArrayClass): New inline function.
3024         (arrayclass): New field.
3025         * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
3026         _Jv_GetArrayElementFromElementType.
3027         (_Jv_NewPrimArray): Ditto.
3028         (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
3029         "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
3030         Set Modifier::ABSTRACT.
3031         * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
3032         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
3033         Now synchronized. Array classes are now referenced from
3034         elementClass->arrayclass. Don't use _Jv_FindClassInCache.
3035         Set array classes' accessibility flags correctly. Optimize so that
3036         all array classes share the same IDT.
3037         * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
3038         * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
3039         * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
3040         in superclasses from overwriting classes own fields.
3041         (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
3042         Modifier::isAbstract().
3043         (null_idt): New static field.
3044         (_Jv_PrepareConstantTimeTables): Optimize case where class implements
3045         no interfaces.
3046         (_Jv_IndexOf): Made inline.
3047         * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
3048
3049 2001-01-08  Tom Tromey  <tromey@redhat.com>
3050
3051         Fix for PR java/1586:
3052         * Makefile.in: Rebuilt.
3053         * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
3054
3055 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
3056
3057         * Makefile.am: Use the new "-M -MF" option for generating dependencies
3058         from the c++ compiler.
3059         * Makefile.in: Rebuilt.
3060
3061 2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3062
3063         All files with updated copyright.
3064         * prims.cc (class _Jv_PrimClass): Removed.
3065         (init_prim_class): New function.
3066         (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
3067         `_Jv_PrimClass' in primitive type declarations. Assign to the
3068         value returned by `init_prim_class.'
3069         * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
3070         primitive type declarations.
3071         (JvPrimClass): Cast to `jclass' removed.
3072         * java/lang/Class.h (Class): New constructor.
3073         (Class): New copy constructor.
3074         (initializePrim): New prototype.
3075         (_Jv_PrimClass): Field removed.
3076         * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
3077         nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
3078         (class java::lang::Object): `finalize' moved up front.
3079         * java/lang/natClass.cc
3080         (isAssignableFrom): Turned outline.
3081         (isInstance): Likewise.
3082         (isInterface): Likewise, fixed indentation.
3083         (initializePrim): New function.
3084
3085 2001-01-07  Anthony Green  <green@redhat.com>
3086
3087         * Makefile.am (texinfo): Add texinfo target for generating texinfo
3088         documentation.
3089         * Makefile.in: Rebuilt.
3090
3091         * scripts/TexinfoDoclet.java: New file.
3092
3093         * doc/java-applet.texi, doc/java-lang-reflect.texi,
3094         doc/java-awt-color.texi, doc/java-lang.texi,
3095         doc/java-awt-datatransfer.texi, doc/java-math.texi,
3096         doc/java-awt-event.texi, doc/java-net.texi,
3097         doc/java-awt-geom.texi, doc/java-security-spec.texi,
3098         doc/java-awt-image.texi, doc/java-security.texi,
3099         doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
3100         doc/java-text.texi, doc/java-beans-beancontext.texi,
3101         doc/java-util-jar.texi, doc/java-beans.texi,
3102         doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
3103         doc/java-lang-ref.texi: New files.
3104
3105 2001-01-07  Anthony Green  <green@redhat.com>
3106
3107         * java/net/URLConnection.java (setDoOutput): URLConnection's may
3108         be used for both input and output, so don't clear doInput.
3109
3110         * java/lang/StringBuffer.java: Fix comments.
3111
3112 2001-01-06  Anthony Green  <green@redhat.com>
3113
3114         * java/beans/PropertyDescriptor.java: Fix comment.
3115         * java/io/PushbackReader.java: Fix comment.
3116         * java/io/ObjectStreamClass.java: Fix comment.
3117         * java/io/DataInputStream.java: Fix comment.
3118         * java/io/PipedInputStream.java: Fix comments.
3119         * java/io/PipedReader.java: Fix comments.
3120         * java/sql/DatabaseMetaData.java: Fix comments.
3121
3122 2001-01-06  Bryce McKinlay  <bryce@albatross.co.nz>
3123
3124         * java/io/PipedReader: Synchronize on "lock" instead of this.
3125
3126 2001-01-05  Bryce McKinlay  <bryce@albatross.co.nz>
3127
3128         * java/lang/Thread.java: Update comment.
3129
3130         * java/io/PipedInputStream: Rewrote to be simpler and more correct.
3131         * java/io/PipedOutputStream: Updated to match new PipedInputStream.
3132         * java/io/PipedReader: New implementation based on new
3133         PipedInputStream.
3134         * java/io/PipedWriter: Updated to match new PipedReader.
3135
3136 2001-01-03  Tom Tromey  <tromey@redhat.com>
3137
3138         * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
3139         (getViewportSize): Insets include scrollbar size.
3140         (doLayout): Finished.
3141         (getScrollPosition): Wrote.
3142         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
3143
3144 2001-01-02  Tom Tromey  <tromey@redhat.com>
3145
3146         * java/awt/ScrollPane.java: Wrote.
3147         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
3148         method.
3149
3150         * java/awt/Panel.java (Panel()): Fixed.
3151
3152         * java/awt/Component.java (isShowing): Return false if no peer
3153         exists, and true if component is visible and no parent exists.
3154         (getLocationOnScreen): Wrote.
3155         (getPreferredSize): Removed FIXME comment.
3156         (getMinimumSize): Likewise.
3157         (getAlignmentX, getAlignmentY): Wrote.
3158         (list): Wrote.
3159         (requestFocus): Wrote.
3160         (transferFocus): Wrote.
3161         (findNextFocusComponent): New method.
3162         (hasFocus()): Wrote.
3163         (checkImage): Wrote.
3164         (enableEvents): Call setEventMask on the peer.
3165
3166         * java/awt/Container.java (list): Use super.list() to print self.
3167         (findNextFocusComponent): New method.
3168         (setLayout): Call invalidate.
3169         (findComponentAt): Wrote.
3170
3171 2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>
3172
3173         * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
3174         the correct versions of various linuxthreads functions get linked.
3175         * Makefile.in: Rebuilt.
3176         * java/lang/natThread.cc (finalize_native): New static function. Call
3177         _Jv_ThreadDestroyData.
3178         (initialize_native): Register finalizer for "data".
3179         * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
3180         (_Jv_ThreadDestroyData): New prototype.
3181         * include/win32-threads.h: Ditto.
3182         * include/no-threads.h: Ditto.
3183         * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3184         (_Jv_ThreadDestroyData): New function. Free native thread "data" and
3185         move mutex and condition variable destroy code from:
3186         (really_start): ...here.
3187         (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
3188         * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3189         (_Jv_ThreadDestroyData): Implemented.
3190         * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
3191         (_Jv_AllocArray): Ditto.
3192
3193 2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>
3194
3195         * java/sql/DriverManager.java (getConnection): Don't set user/password
3196         properties if null.
3197
3198 2000-12-27  Warren Levy  <warrenl@redhat.com>
3199
3200         Fix for PR libgcj/1358:
3201         * java/lang/System.java: Update Copyright date properly.
3202         * java/util/Calendar.java: Fix typo in comment.
3203         (set): Set 24-hour clock hour instead of 12-hour clock hour.
3204         * java/util/GregorianCalendar.java (GregorianCalendar): Properly
3205         initialize times.  Spec says to set H:M:S values to zero only if
3206         a date is given.
3207         * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
3208         needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
3209         * java/util/natGregorianCalendar.cc (computeTime): Properly handle
3210         timezones and GMT offsets, being careful to account for units of
3211         milliseconds vs. seconds.
3212
3213 2000-12-28  Bryce McKinlay  <bryce@albatross.co.nz>
3214
3215         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3216         not be assigned to Object.
3217
3218         Fix for PR libgcj/1516:
3219         * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3220         Add boolean entry.
3221         (can_widen): Declared inline. Remove redundant checks for void
3222         arguments and char->short conversion. Add special case for boolean
3223         conversions.
3224         (ffi_type): Declared inline.
3225         (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3226
3227 2000-12-26  Petter Reinholdtsen  <pere@hungry.com>
3228
3229         * java/sql/SQLWarning.java: Fixed typo in comment.
3230
3231 2000-12-26  Tom Tromey  <tromey@redhat.com>
3232
3233         * java/awt/MenuItem.java (paramString): Now protected.
3234
3235         * java/awt/MenuShortcut.java: Implements Serializable.
3236
3237         * java/awt/MenuBar.java: Rewrote from scratch.
3238
3239         * java/awt/MenuComponent.java (removeNotify): Wrote.
3240         Implements Serializable.
3241
3242         * java/awt/GridBagConstraints.java (GridBagConstraints): New
3243         constructor.
3244
3245         * java/awt/CheckboxMenuItem.java: Wrote.
3246
3247 2000-12-25  Tom Tromey  <tromey@redhat.com>
3248
3249         * java/awt/MenuContainer.java: Fixed typo.
3250
3251         * Makefile.in: Rebuilt.
3252         * Makefile.am (awt_java_source_files): Added SystemColor.java.
3253         * java/awt/SystemColor.java: New file.
3254
3255         * java/awt/Color.java (rgba): Now package-private.
3256
3257         * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3258
3259         * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3260         getComponent.
3261
3262         * java/awt/MenuItem.java (addNotify): New method.
3263         (MenuItem(String,MenuShortcut)): New constructor.
3264         (setLabel): Notify peer of change.
3265         (setEnabled): Likewise.
3266
3267         * java/awt/GridLayout.java (toString): New method.
3268
3269         * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3270         (FlowLayout): Check for LEADING and TRAILING.
3271         (setAlignment): Likewise.
3272         (layoutContainer): Handle component orientation.
3273
3274         * java/awt/Component.java (orientatin): New field.
3275         (setComponentOrientation): Wrote.
3276         (getComponentOrientation): Wrote.
3277
3278         * java/awt/Event.java (Event): Implements Serializable.
3279         (consumed): New field for serialization.
3280         * java/awt/Dimension.java (Dimension): Implements Serializable.
3281         * java/awt/Cursor.java (Cursor): Implements Serializable.
3282         * java/awt/Container.java (Container): No longer abstract.
3283
3284         * java/awt/Choice.java: Wrote.
3285         * java/awt/Checkbox.java: Wrote.
3286         * java/awt/ItemSelectable.java: Documented.
3287         * java/awt/CheckboxGroup.java: Wrote.
3288
3289         * java/awt/CardLayout.java (layoutContainer): Directly use fields
3290         in other classes.
3291         (getSize): Likewise.
3292
3293 2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>
3294
3295         * java/io/FileDescriptor.java: Initialize fd to -1.
3296         Remove default constructor.
3297
3298 2000-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
3299
3300         * java/lang/mprec.h: Change C9X reference to refer to C99.
3301
3302 2000-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
3303
3304         * java/lang/Throwable.java (trace_enabled): New static field.
3305         * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3306         trace_enabled not set.
3307         * prims.cc (main_init): Turn off trace_enabled while creating
3308         default exception objects.
3309
3310 2000-12-21  Tom Tromey  <tromey@redhat.com>
3311
3312         * java/beans/PropertyChangeListener.java: Extends EventListener.
3313         * java/beans/VetoableChangeListener.java: Extends EventListener.
3314
3315         * java/util/zip/Deflater.java (update, init): Now private.
3316
3317 2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
3318
3319         * java/util/BasicMapEntry.java: Re-added.
3320         * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3321         (putAll): Test for BasicMapEntry.
3322         * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3323         (putAll): Test for BasicMapEntry.
3324         Change references from `HashMap.Entry' to `Entry' in various places.
3325         * Makefile.am: Add BasicMapEntry.java.
3326         * Makefile.in: Rebuilt.
3327
3328 2000-12-18  Warren Levy  <warrenl@redhat.com>
3329
3330         * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3331         need to set timezone to a valid non-null value.  Partial fix for
3332         PR 331.
3333
3334 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
3335
3336         * java/awt/Window.java (addNotify): Remove peer casting hack now that
3337         gcj/312 is fixed.
3338         * java/awt/Button.java (addNotify): Likewise.
3339         * java/awt/Label.java (addNotify): Likewise.
3340         * java/awt/Panel.java (addNotify): Likewise.
3341         * java/awt/Scrollbar.java (addNotify): Likewise.
3342         * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3343         Remove redundant null checks.
3344
3345 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
3346
3347         * COPYING: Update to current
3348         ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3349         to 19yy as example year in copyright notice).
3350
3351 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
3352
3353         * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3354         end-of-stream if avail_in is 0.
3355
3356 2000-12-17  Bryce McKinlay  <bryce@albatross.co.nz>
3357
3358         * java/util/ArrayList.java (data): Declare transient.
3359         (serialPersistantFields): Removed.
3360         (readObject): Use defaultReadObject(), not readFields().
3361         (writeObject): Use defaultWriteObject(), not writeFields().
3362
3363 2000-12-17  Jeff Sturm  <jeff.sturm@commerceone.com>
3364
3365         * java/util/Hashtable.java (put): Remove `last' variable.
3366         Link new entry to head of list.
3367         * java/util/HashMap.java (put): Ditto.
3368
3369 2000-12-15  Tom Tromey  <tromey@redhat.com>
3370
3371         * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3372         loader to Class.forName.
3373
3374 2000-12-14  Tom Tromey  <tromey@redhat.com>
3375
3376         * java/util/ResourceBundle.java
3377         (getBundle(String,Locale,ClassLoader)): New method.
3378         (trySomeGetBundle): Added `loader' argument.
3379         (partialGetBundle): Likewise.
3380
3381         * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3382         maximumFractionDigits, maximumIntegerDigits,
3383         minimumFractionDigits, minimumIntegerDigits): Now
3384         package-private.
3385
3386         * java/lang/Thread.java (checkAccess): Now final.
3387
3388         * java/lang/RuntimePermission.java: Class now final.
3389
3390         * java/io/StringWriter.java (StringWriter(int)): Now public.
3391
3392         * java/io/SerializablePermission.java (legal_names): Now private.
3393
3394         * java/lang/Character.java: Updated UnicodeBlock constants.
3395         * scripts/blocks.pl: Special case private use and surrogate
3396         areas.  Updated URL.
3397
3398 2000-12-12  Tom Tromey  <tromey@redhat.com>
3399
3400         * Makefile.in: Rebuilt.
3401         * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3402         option.
3403         (GCJCOMPILE): Use it.
3404         (JAVAC): Likewise.
3405
3406 2000-12-11  Tom Tromey  <tromey@redhat.com>
3407
3408         * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3409         New static final fields.
3410
3411         * scripts/classes.pl (scan): Skip lines with leading `*'.
3412         Fix for PR libgcj/378.
3413
3414 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
3415
3416         * configure.in: Remove check for -fuse-divide-subroutine.
3417         * configure: Rebuilt.
3418
3419         * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3420
3421         * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3422
3423 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
3424
3425         * Makefile.am: Add HashSet.java and java/lang/ref classes.
3426         Remove BasicMapEntry.java and Bucket.java.
3427         * Makefile.in: Rebuilt.
3428         * java/util/HashMap.java: Rewritten.
3429         * java/util/HashSet.java: Imported from classpath.
3430         * java/util/WeakHashMap.java: Imported from classpath.
3431         * java/util/Hashtable.java: Rewritten based on new HashMap code.
3432         * java/util/Bucket.java: Deleted.
3433         * java/util/BasicMapEntry.java: Deleted.
3434         * java/util/Collections.java (search): Use a for-loop, not iterator
3435         hasNext().
3436         (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3437         of elements in source.
3438         (max): Use a for-loop.
3439         (min): Ditto.
3440         (reverse): Keep track of positions instead of using Iterator's
3441         nextIndex() and previousIndex().
3442         (shuffle(List)): Initialize defaultRandom if required using
3443         double-check thread safety idiom. Call two-argument shuffle method
3444         using defaultRandom.
3445         (defaultRandom): New field.
3446         (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3447         using previousIndex() and nextIndex().
3448         (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3449         * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3450         * java/util/AbstractMap.java (toString): Use StringBuffer.
3451         * java/lang/ref/PhantomReference.java: Imported from classpath.
3452         * java/lang/ref/SoftReference.java: Ditto.
3453         * java/lang/ref/Reference.java: Ditto.
3454         * java/lang/ref/WeakReference.java: Ditto.
3455         * java/lang/ref/ReferenceQueue.java: Ditto.
3456
3457 2000-12-10  Richard Henderson <rth@redhat.com>
3458
3459         * configure.host: Recognize alpha*-*, not alphaev6-*.
3460
3461 2000-12-09  Anthony Green  <green@redhat.com>
3462
3463         * configure.host: Enable interpreter for Alpha.
3464
3465 2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3466
3467         * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3468         (ZIP): Points at fastjar instead of zip.
3469         (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3470         (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3471         (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3472         (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3473         ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3474         ($(x_java_source_files:.java=.class):): Likewise.
3475         (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3476         fastar's flags.
3477         (CLEANFILES): libgcj.jar replaces libgcj.zip.
3478         (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3479         (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3480         java/lang/String.h:, java/lang/reflect/Constructor.h:,
3481         java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3482         gnu/gcj/runtime/VMClassLoader.h:,
3483         java/io/ObjectInputStream$$GetField.h:,
3484         java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3485         (Makefile.in): Rebuilt.
3486
3487 2000-12-08  Tom Tromey  <tromey@redhat.com>
3488
3489         From Phil Edwards:
3490         * configure: Rebuilt.
3491         * configure.in: Use echo, not `:', to create .d files.
3492
3493 2000-12-08  Warren Levy  <warrenl@redhat.com>
3494
3495         * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3496         NullPointerException so proper check of offset can be done.
3497
3498 2000-12-08  Warren Levy  <warrenl@redhat.com>
3499
3500         * java/io/FileInputStream.java (close): Check if the fd is valid.
3501         * java/io/RandomAccessFile.java (close): Ditto.
3502         * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3503         * java/net/PlainSocketImpl.java (close): Ditto.
3504
3505 2000-12-06  Tom Tromey  <tromey@redhat.com>
3506
3507         * java/awt/GridBagConstraints.java: Filled in values for static
3508         final fields.
3509
3510         * java/util/BitSet.java: Updated copyright notice.
3511
3512         * Makefile.in: Rebuilt.
3513         * Makefile.am (awt_java_source_files): Added new file.
3514         * java/awt/GridBagConstraints.java: New file.
3515
3516 2000-12-05  Tom Tromey  <tromey@redhat.com>
3517
3518         * java/text/Collator.java (decomposeCharacter, decmp, strength):
3519         Now package-private, not protected.
3520         * java/text/DateFormatSymbols.java (equals): Now private.
3521         * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3522         * java/util/BitSet.java: Class no longer final.
3523
3524 2000-12-04  Warren Levy  <warrenl@redhat.com>
3525
3526         * java/util/TimeZone.java (getAvailableIDs): Activated commented
3527         out code dependent on compiler and library changes.
3528
3529 2000-12-04  Warren Levy  <warrenl@redhat.com>
3530
3531         * java/io/FilePermission.java: Made class final per spec.
3532         * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3533         method name to match spec (fixed typo).
3534         * java/util/LinkedList.java: Implements List.
3535
3536 2000-12-04  Bryce McKinlay  <bryce@albatross.co.nz>
3537
3538         * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3539         Edgar Villanueva <edgarvil@home.com>.
3540
3541 2000-12-03  Tom Tromey  <tromey@redhat.com>
3542
3543         * java/awt/geom/Point2D.java: Added protected constructor.
3544         (equals): New method.
3545         (Float.setLocation(float,float)): New method.
3546         * java/awt/geom/Dimension2D.java: Added protected constructor.
3547         * java/awt/geom/AffineTransform.java: Made all constants public.
3548         (concatenate): Fixed typo in name.
3549         * java/awt/event/WindowAdapter.java: Class now abstract.
3550         * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3551         * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3552         AWTEvent.
3553
3554         * java/awt/AWTError.java: Extend Error, not
3555         IllegalStateException.
3556
3557         * Makefile.in: Rebuilt.
3558         * Makefile.am (awt_java_source_files): Added new file.
3559         * java/awt/geom/RoundRectangle2D.java: New file.
3560
3561         * Makefile.in: Rebuilt.
3562         * Makefile.am (awt_java_source_files): Added new file.
3563         * java/awt/FlowLayout.java: New file.
3564
3565         * Makefile.in: Rebuilt.
3566         * Makefile.am (awt_java_source_files): Added new file.
3567         * java/awt/GridLayout.java: New file.
3568
3569 2000-12-02  Tom Tromey  <tromey@redhat.com>
3570
3571         * Makefile.in: Rebuilt.
3572         * Makefile.am (awt_java_source_files): Added new files.
3573         * java/awt/CardLayout.java: New file.
3574         * java/awt/AWTPermission.java: New file.
3575
3576 2000-12-01  Tom Tromey  <tromey@redhat.com>
3577
3578         * java/util/Vector.java (insertElementAt): Unconditionally
3579         increment elementCount.
3580         (removeRange): Clear unused slots in vector.
3581
3582 2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
3583
3584         * java/lang/natMath.cc: Declare fabsf() function.
3585         * java/lang/mprec.h: Don't include math.h.
3586         * java/lang/dtoa.c: Include string.h.
3587         * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3588         compiler warning.
3589
3590         From Adam Welc <welc@cs.purdue.edu>:
3591         * java/util/LinkedList.java (removeFirst): Update `first' field.
3592         Handle the last == first case.
3593         (removeLast): Update `last' field. Handle the last == first case.
3594
3595 2000-12-01  Warren Levy  <warrenl@cygnus.com>
3596
3597         * Makefile.am: Added entries for new java.sql modules.
3598         * Makefile.in: Rebuilt.
3599
3600 2000-12-01  Warren Levy  <warrenl@cygnus.com>
3601
3602         * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3603         that aren't quite 1.2 compatible yet.
3604
3605 2000-11-30  Warren Levy  <warrenl@cygnus.com>
3606
3607         * java/sql/Array.java: New file from classpath.
3608         * java/sql/BatchUpdateException.java: Ditto.
3609         * java/sql/Blob.java: Ditto.
3610         * java/sql/Clob.java: Ditto.
3611         * java/sql/Ref.java: Ditto.
3612         * java/sql/SQLData.java: Ditto.
3613         * java/sql/SQLInput.java: Ditto.
3614         * java/sql/SQLOutput.java: Ditto.
3615         * java/sql/Struct.java: Ditto.
3616         * java/sql/CallableStatement.java: Merged file from claspath.
3617         * java/sql/Connection.java: Ditto.
3618         * java/sql/DataTruncation.java: Ditto.
3619         * java/sql/DatabaseMetaData.java: Ditto.
3620         * java/sql/DriverManager.java: Ditto.
3621         * java/sql/PreparedStatement.java: Ditto.
3622         * java/sql/ResultSet.java: Ditto.
3623         * java/sql/ResultSetMetaData.java: Ditto.
3624         * java/sql/SQLException.java: Ditto.
3625         * java/sql/SQLWarning.java: Ditto.
3626         * java/sql/Statement.java: Ditto.
3627         * java/sql/Types.java: Ditto.
3628
3629 2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>
3630
3631         * java/lang/natSystem.cc (init_properties): Set user.language and
3632         user.region.
3633         * configure.in: Check for setlocale.
3634         * configure: Rebuilt.
3635         * include/config.h.in: Rebuilt.
3636
3637         * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3638         the infate() call didn't deliver any output. Throw a ZipException if
3639         the needsDictionary() call returns true.
3640         * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3641         * java/io/InputStreamReader: Use the default buffer size for the
3642         contained BufferedInputStream.
3643
3644 2000-11-28  Warren Levy  <warrenl@cygnus.com>
3645
3646         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3647         more time zone entries.
3648         * java/text/SimpleDateFormat.java (format): Added case for
3649         TIMEZONE_FIELD.
3650
3651 2000-11-28  Bryce McKinlay  <bryce@albatross.co.nz>
3652
3653         * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3654         directly rather than read() in all cases. Make primitive read
3655         implementations more efficient, as defined in JDK online docs.
3656         (skipBytes): Behave like the JDK's implementation.
3657         * java/io/BufferedReader.java: Merge classpath docs. Check for a
3658         closed stream with checkStatus() whenever an IOException can be
3659         thrown.
3660         (checkStatus): New private method.
3661
3662 2000-11-27  Warren Levy  <warrenl@cygnus.com>
3663
3664         * Makefile.am: Added natTimeZone.cc.
3665         * Makefile.in: Rebuilt.
3666         * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3667         * java/text/DateFormatSymbols.java (ampms): Made package private.
3668         (eras): Made package private.
3669         (months): Made package private.
3670         (shortMonths): Made package private.
3671         (shortWeekdays): Made package private.
3672         (weekdays): Made package private.
3673         (formatPrefixes): New private field.
3674         (localPatternCharsDefault): Made private.
3675         (dateFormats): New package private field.
3676         (timeFormats): New package private field.
3677         (formatsForKey): New private method.
3678         (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3679         (DateFormatSymbols(DateFormatSymbols)): Ditto.
3680         * java/text/SimpleDateFormat.java: Merged with Classpath.
3681         * java/util/TimeZone.java: Merged with Classpath.
3682         * java/util/natTimeZone.cc: New file.
3683
3684 2000-11-27  Bryce McKinlay  <bryce@albatross.co.nz>
3685
3686         * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3687         (addElement): Don't increment elementCount twice. Doh.
3688         * java/util/ArrayList.java (add): Only call ensureCapacity if the
3689         array needs to be expanded.
3690         (addAll): Ditto.
3691         * java/util/Collections.java (UnmodifiableCollection): Implement
3692         toString().
3693         (UnmodifiableList): Throw UnsupportedOperationException from
3694         modification methods. Set `l' from the one-parameter constructor.
3695         (UnmodifiableMap): Implement toString().
3696         (SynchronizedCollection): Ditto.
3697         (SynchronizedList): Set `l' from the one-parameter constructor.
3698         (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3699         (SynchronizedMap): Implement toString().
3700
3701 Sun Nov 26 23:59:55 2000  Anthony Green  <green@redhat.com>
3702
3703         * javax/naming/NameParser.java,
3704         javax/naming/directory/AttributeInUseException.java,
3705         javax/naming/directory/AttributeModificationException.java,
3706         javax/naming/directory/InvalidAttributeIdentifierException.java,
3707         javax/naming/directory/InvalidAttributesException.java,
3708         javax/naming/directory/InvalidAttributeValueException.java,
3709         javax/naming/directory/InvalidSearchControlsException.java,
3710         javax/naming/directory/InvalidSearchFilterException.java,
3711         javax/naming/directory/NoSuchAttributeException.java,
3712         javax/naming/directory/SchemaViolationException.java: New files.
3713
3714 Sun Nov 26 22:35:53 2000  Anthony Green  <green@redhat.com>
3715
3716         * javax/naming/InitialContext.java (rebind): Implement.
3717         (unbind): Implement.
3718         (rename): Implement.
3719         (list): Implement.
3720         (listBindings): Implement.
3721         (destroySubcontext): Implement.
3722         (createSubcontext): Implement.
3723         (lookupLink): Implement.
3724         (getNameParser): Implement.
3725         (composeName): Implement.
3726         (addToEnvironment): Implement.
3727
3728 Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
3729
3730         * javax/naming/AuthenticationException.java,
3731         javax/naming/AuthenticationNotSupportedException.java,
3732         javax/naming/CannotProceedException.java,
3733         javax/naming/CommunicationException.java,
3734         javax/naming/ConfigurationException.java,
3735         javax/naming/ContextNotEmptyException.java,
3736         javax/naming/InsufficientResourcesException.java,
3737         javax/naming/InterruptedNamingException.java,
3738         javax/naming/InvalidNameException.java,
3739         javax/naming/LimitExceededException.java,
3740         javax/naming/LinkException.java,
3741         javax/naming/LinkLoopException.java,
3742         javax/naming/MalformedLinkException.java,
3743         javax/naming/NameAlreadyBoundException.java,
3744         javax/naming/NameNotFoundException.java,
3745         javax/naming/NamingSecurityException.java,
3746         javax/naming/NoPermissionException.java,
3747         javax/naming/NotContextException.java,
3748         javax/naming/PartialResultException.java,
3749         javax/naming/ReferralException.java,
3750         javax/naming/ServiceUnavailableException.java,
3751         javax/naming/SizeLimitExceededException.java,
3752         javax/naming/TimeLimitExceededException.java: New files.
3753
3754         * javax/naming/Name.java (clone): New method.
3755         (compareTo): New method.
3756         (isEmpty): New method.
3757         (getAll): New method.
3758         (getPrefix): New method.
3759         (getSuffix): New method.
3760         (startsWith): New method.
3761         (endsWith): New method.
3762         (addAll): New method.
3763         (addAll): New method.
3764         (add): New method.
3765         (add): New method.
3766         (remove): New method.
3767
3768         * javax/naming/Context.java (lookup): New method.
3769         (rebind): New method.
3770         (unbind): New method.
3771         (rename): New method.
3772         (list): New method.
3773         (listBindings): New method.
3774         (destroySubcontext): New method.
3775         (createSubcontext): New method.
3776         (lookupLink): New method.
3777         (getNameParser): New method.
3778         (composeName): New method.
3779         (addToEnvironment): New method.
3780         (removeFromEnvironment): New method.
3781         (getEnvironment): New method.
3782         (close): New method.
3783         (getNameInNamespace): New method.
3784
3785         * javax/naming/InitialContext.java (lookup): New method.
3786         (rebind): New method.
3787         (unbind): New method.
3788         (rename): New method.
3789         (list): New method.
3790         (listBindings): New method.
3791         (destroySubcontext): New method.
3792         (createSubcontext): New method.
3793         (lookupLink): New method.
3794         (getNameParser): New method.
3795         (composeName): New method.
3796         (addToEnvironment): New method.
3797         (removeFromEnvironment): New method.
3798         (getEnvironment): New method.
3799         (close): New method.
3800         (getNameInNamespace): New method.
3801
3802 2000-11-26  Tom Tromey  <tromey@cygnus.com>
3803
3804         * Makefile.in: Rebuilt.
3805         * Makefile.am (core_java_source_files): Added
3806         RuntimePermission.java.
3807         * java/lang/RuntimePermission.java: Imported from Classpath.
3808         * java/lang/Thread.java (getContextClassLoader): Now
3809         synchronized.  Added security code.
3810         (setContextClassLoader): Likewise.
3811
3812         * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3813         length field of array.
3814         (_Jv_NewPrimArray): Likewise.
3815         * gcj/array.h (__JArray): `length' field now const.  Added
3816         constructor.
3817
3818 2000-11-26  Anthony Green  <green@redhat.com>
3819
3820         * javax/naming/spi/NamingManager.java,
3821         javax/naming/spi/ObjectFactory.java,
3822         javax/naming/spi/InitialContextFactory.java,
3823         javax/naming/spi/InitialContextFactoryBuilder.java,
3824         javax/naming/RefAddr.java, javax/naming/Reference.java,
3825         javax/naming/NamingException.java, javax/naming/Context.java,
3826         javax/naming/Referenceable.java,
3827         javax/naming/directory/InitialDirContext.java,
3828         javax/naming/directory/DirContext.java,
3829         javax/naming/directory/Attributes.java,
3830         javax/naming/directory/Attribute.java,
3831         javax/naming/StringRefAddr.java,
3832         javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3833         javax/naming/InitialContext.java,
3834         javax/naming/NoInitialContextException.java: New files.
3835
3836 2000-11-25  Anthony Green  <green@redhat.com>
3837
3838         * prims.cc (_Jv_NewObjectArray): Undo placement change.
3839         (_Jv_NewPrimArray): Likewise.
3840         * gcj/array.h (__JArray): Undo const change.  Removed constructor.
3841         (class JArray): Removed constructor.
3842
3843         * java/lang/Thread.java (context_class_loader): New private data.
3844         (getContextClassLoader): New method.
3845         (setContextClassLoader): New method.
3846         (Thread): Initialize context_class_loader.
3847
3848         * java/net/URLClassLoader.java: Import java.util.Enumeration.
3849         (getResource): Rename to findResource.
3850         (findResource): New method.  Used to be getResource.
3851         (getResourceAsStream): Deleted.
3852         (jarFileize): Extracted logic from URLClassLoader constructor into
3853         this new private method.
3854         (addURL): New protected method.
3855         (URLClassLoader): Call jarFileize.  Use addElement instead of
3856         insertElementAt.
3857         (findResources): New method.
3858
3859         * java/lang/ClassLoader.java: Import java.util.Enumeration.
3860         (getResource): Implement correct logic.
3861         (findResource): New method.
3862         (getResources): New method.
3863         (findClass): Create a ClassNotFoundException with the name of the
3864         class rather than nothing at all.
3865         (defineClass) Only throw ClassFormatError.
3866
3867         * java/lang/Class.java (forName): New method.
3868         * java/lang/Class.h (forName): New method.
3869         * java/lang/natClass.cc (forName): New method.
3870
3871 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
3872
3873         * java/lang/System.java (setProperties): Only call init_properties()
3874         if properties is null.
3875         (getProperties): Ditto.
3876         (getProperty): Ditto.
3877         (setProperty): Call init_properties if properties are null.
3878         (prop_init): Remove field.
3879         * java/lang/natSystem.cc (init_properties): Synchronize the entire
3880         method. Check for null properties after synchronizing instead of
3881         prop_init flag. Set the properties field last for thread safety.
3882
3883         * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3884         test for gcj.dumpobjects property and enable object stream dumping
3885         if it is set.
3886         (dumpElement): No longer native.
3887         (dumpElementln): Ditto.
3888         (setDump): Do not define.
3889         * java/io/natObjectInputStream.cc (dumpElement): Removed.
3890         (dumpElementln): Removed.
3891         (setDump): Removed.
3892
3893 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
3894
3895         * configure: Rebuilt.
3896         * Makefile.in: Rebuilt.
3897         * Makefile.am (built_java_source_files): Add Configuration.java.
3898         * configure.in: Add Configuration.java to CONFIG_FILES. Set
3899         LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3900         Create `gnu' directory in the build tree.
3901         * gnu/classpath/Configuration.java.in: New file.
3902
3903 2000-11-24  Tom Tromey  <tromey@cygnus.com>
3904
3905         * prims.cc (_Jv_NewObjectArray): Use placement new to create
3906         array.
3907         (_Jv_NewPrimArray): Likewise.
3908         Include <new>.
3909         * gcj/array.h (__JArray): `length' field now const.  Added
3910         constructor.
3911         (class JArray): Added constructor.
3912
3913 2000-11-23  Mark Wielaard  <mark@klomp.org>
3914
3915         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3916         lookup.
3917
3918 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
3919
3920         * java/util/Vector.java: Improve exception messages.
3921         (Vector): Check initialCapacity for IllegalArgumentException.
3922         (tromToSize): Don't check for elementCount == elementData.length
3923         case.
3924         (toArray): Don't try to set null marker if target array is the same
3925         length as the vector.
3926
3927 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
3928
3929         * Makefile.in: Rebuilt.
3930         * Makefile.am (core_java_source_files): Added Collections.java.
3931         * java/util/List.java: Merged from classpath.
3932         * java/util/Vector.java: Ditto.
3933         * java/util/Collections.java: From classpath.
3934         * java/util/ArrayList.java (addAll(Collection)): Call
3935         addAll(int,Collection) instead of duplicating code.
3936         (indexOf): Clean up int initialization.
3937         (clear): Set cleared array entries to null, to allow garbage
3938         collection.
3939         * java/util/List.java: Minor formatting fixes.
3940         * java/util/SimpleTimeZone.java: ditto.
3941
3942 2000-11-18  Tom Tromey  <tromey@cygnus.com>
3943
3944         * Makefile.in: Rebuilt.
3945         * Makefile.am (core_java_source_files): Added new files.
3946         * java/lang/reflect/ReflectPermission.java: New class.
3947         * java/io/FileFilter.java: From Classpath
3948         * java/io/FilePermission.java: From Classpath.
3949
3950 2000-11-17  Tom Tromey  <tromey@cygnus.com>
3951
3952         * java/lang/reflect/AccessibleObject.java (isAccessible,
3953         setAccessible): Now public.
3954
3955         * java/lang/natString.cc: Include Locale.h.
3956         (toUpperCase): Added `locale' argument.  Handle locale
3957         sensitivity.
3958         (toLowerCase): Added `locale' argument.  Handle locale
3959         sensitivity.
3960         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3961         CAPITAL_I): New defines.
3962         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3963         final.
3964         Import Locale.
3965         (toUpperCase, toLowerCase): New methods.  Variants which accept
3966         locale now native.
3967
3968         * java/lang/ExceptionInInitializerError.java (printStackTrace):
3969         New methods.
3970
3971         * java/util/PropertyPermission.java: Re-merged from Classpath.
3972
3973         * java/text/RuleBasedCollator.java (getCollationElementIterator):
3974         New method.
3975         * java/text/StringCharacterIterator.java: Reindented.
3976         (setText): New method.
3977
3978 2000-11-17  Mark Wielaard  <mark@klomp.org>
3979
3980         Merge with Classpath (changes by Bryce McKinlay)
3981         * java/util/jar/*.java: Reformat all to unofficial standard coding
3982         style. No changes of substance.
3983
3984 2000-11-17  Mark Wielaard  <mark@klomp.org>
3985
3986         * java/util/zip/*.java: Javadoc updates.
3987
3988 2000-11-17  Tom Tromey  <tromey@cygnus.com>
3989
3990         * java/text/CollationKey.java: Implement Comparable.
3991         (compareTo(Object)): New method.
3992         * java/text/Collator.java (compare(Object,Object)): New method.
3993         Implement Comparator.
3994
3995         * java/util/zip/InflaterInputStream.java (available): New method.
3996         (close): New method.
3997         (read, available, skip, fill): Throw exception if stream closed.
3998         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3999         getNextEntry): Throw exception if closed.
4000
4001 2000-11-16  Tom Tromey  <tromey@cygnus.com>
4002
4003         * java/io/PushbackReader.java: Merged with Classpath.
4004         * java/util/Arrays.java: Updated from Classpath.
4005
4006         * scripts/blocks.pl: New file.
4007         * java/lang/Character.java (Subset): New class.
4008         (UnicodeBlock): New class.
4009
4010         * java/lang/Math.java (toDegrees, toRadians): New methods.
4011
4012         * java/lang/Float.java: Implement Comparable.
4013         (compareTo): New methods.
4014         * java/lang/Double.java: Implement Comparable.
4015         (compareTo): New methods.
4016
4017 2000-11-16  Warren Levy  <warrenl@cygnus.com>
4018
4019         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
4020         transient.
4021         (listeners): Made transient.
4022         (source): Renamed from 'bean'.
4023         (children): New field for serialization.
4024         (propertyChangeSupportSerializedDataVersion): Ditto.
4025         (serialVersionUID): Ditto.
4026         (writeObject): New serialization method.
4027         (readObject): New serialization method.
4028         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
4029         transient.
4030         (listeners): Made transient.
4031         (source): Renamed from 'bean'.
4032         (children): New field for serialization.
4033         (vetoableChangeSupportSerializedDataVersion): Ditto.
4034         (serialVersionUID): Ditto.
4035         (writeObject): New serialization method.
4036         (readObject): New serialization method.
4037         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
4038         to allow constructor to have a return type (i.e. the class that the
4039         constructor constructs).
4040
4041 2000-11-14  Tom Tromey  <tromey@cygnus.com>
4042
4043         * Makefile.in: Rebuilt.
4044         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
4045         and -k not given.
4046
4047 2000-11-02  Warren Levy  <warrenl@cygnus.com>
4048
4049         * java/io/ObjectInputStream.java (readObject): Added code to
4050         conditionally dump out the serialized data.
4051         Handle ENDBLOCKDATA case a bit more gracefully since the current
4052         behavior doesn't seem to work as expected.
4053         (readStreamHeader): Added code for serialized data dumper.
4054         (readNextBlock): Ditto.
4055         (readFields): Ditto.
4056         (dump): New private static field for turning on/off dumper.
4057         (setDump): New native method.
4058         (dumpElement): New native method.
4059         (dumpElementln): New native method.
4060         * java/io/natObjectInputStream.cc (setDump): New method.
4061         (dumpElement): New method.
4062         (dumpElementln): New method.
4063
4064 2000-11-02  Warren Levy  <warrenl@cygnus.com>
4065
4066         * java/net/InetAddress.java (addr): Renamed from 'address'.
4067         (address): New field to match Serialized Form doc.
4068         (hostName): Renamed from 'hostname' to match Serialized Form doc.
4069         (family): New serialization field.
4070         (serialVersionUID): New field.
4071         (readObject): New method.
4072         (writeObject): New method.
4073         (getFamily): New native method.
4074         (InetAddress): Set family.
4075         * java/net/natInetAddress.cc (getFamily): New method.
4076         (addr): Renamed from 'address'.
4077         (hostName): Renamed from 'hostname' to match Serialized Form doc.
4078         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
4079         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
4080
4081 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
4082
4083         * java/util/AbstractList.java (SubList): Make it a top-level private
4084         class.
4085         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
4086         (add): Ditto.
4087         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
4088         * Makefile.in: Rebuilt.
4089
4090 2000-11-02  Tom Tromey  <tromey@cygnus.com>
4091
4092         * Makefile.in: Rebuilt.
4093         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
4094         link.
4095
4096 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
4097
4098         * java/util/AbstractList.java (remove): Comment out modCount increment
4099         to work around compiler bug.
4100         (add): Ditto.
4101
4102 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
4103
4104         * java/util/AbstractList.java: Throw messages with
4105         IndexOutOfBoundsExceptions.
4106          (listIterator()): Call listIterator(0).
4107         (size): New field. Initialize to size().
4108         (hasNext): Test position against size, not size().
4109         (remove): Increment knownMod by one instead of resetting it from
4110         modCount.
4111         (add): Ditto.
4112         (SubList.upMod): Removed.
4113         (SubList.set): Don't call upMod() or update knownMod.
4114         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
4115         (SubList.remove): Ditto.
4116         (SubList.addAll): Don't call backingList.size(). Increment size from
4117         c.size().
4118         (SubList.iterator): New method. Call listIterator(0).
4119         (SubList.listIterator): New method. Restore code to return an anonymous
4120         listIterator implementation (with some changes).
4121         * java/util/AbstractSequentialList.java: Throw messages with
4122         IndexOutOfBoundsExceptions.
4123         (addAll): Add a specnote.
4124         * java/util/ArrayList.java (removeRange): Get the math right.
4125         (addAll): Increment modCount _before_ creating iterator.
4126         * java/util/LinkedList.java: Rewritten, mostly.
4127
4128 2000-11-01  Tom Tromey  <tromey@cygnus.com>
4129
4130         * scripts/encodings.pl: Added `ASCII' alias.
4131         * Makefile.in: Rebuilt.
4132         * Makefile.am (convert_source_files): Added new files.
4133         * gnu/gcj/convert/Input_ASCII.java: New file.
4134         * gnu/gcj/convert/Output_ASCII.java: New file.
4135         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
4136         out-of-range characters.
4137         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
4138         (read): Swap bytes if required.  Treat `count' as character count,
4139         not byte count.
4140         (write): Likewise.  Also, handle case where iconv fails on a given
4141         character.
4142         (init): Put encoding into exception.
4143         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
4144         (static): Call iconv_init.  Rebuilt alias list.
4145         (iconv_init): New private method.
4146
4147 2000-11-01  Tom Tromey  <tromey@cygnus.com>
4148
4149         * Makefile.in: Rebuilt.
4150         * Makefile.am (install-exec-hook): Only make a single symlink, and
4151         remove the destination before making the link.
4152         * configure: Rebuilt.
4153         * configure.in: Call AC_PROG_LN_S.
4154
4155 2000-10-31  Warren Levy  <warrenl@cygnus.com>
4156
4157         * jni.cc: Added include of java/lang/ThreadGroup.h.
4158         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
4159         per change of 2000-10-05.
4160
4161 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
4162
4163         * java/util/BitSet.java: Updated @specnote.
4164
4165         * java/io/Reader.java: Merge docs from classpath.
4166         (skip): Synchronize on `lock'.
4167         * java/io/FileReader.java: Import correct implementation from
4168         classpath.
4169         * java/io/StringReader.java: Merge docs from classpath.
4170         (ready): Throw IOException if stream is closed.
4171
4172 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
4173
4174         * java/util/AbstractCollection.java (addAll): Use size() instead of
4175         hasNext() in iterator loop.
4176         (clear): Ditto.
4177         (contains): Ditto. Simplify loop.
4178         (containsAll): Ditto.
4179         (remove): Ditto.
4180         (removeAll): Ditto.
4181         (retainAll): Ditto.
4182         (toArray): Ditto.
4183         (toString): Ditto. Use string concatenation operators, not
4184         StringBuffer.
4185         * java/util/AbstractList.java (addAll): Use size() instead of
4186         hasNext() in iterator loop.
4187         (equals): Ditto.
4188         (hashCode): Ditto.
4189         (indexOf): Ditto. Don't take null check outside of the loop.
4190         (iterator): Return an AbstractListItr instead of anonymous class.
4191         (lastIndexOf): Use a for loop bounded by size() instead of
4192         hasPrevious() in iterator loop.
4193         (listIterator): Return an AbstractListItr.
4194         (removeRange): Remove bounds checking code and docs.
4195         (AbstractListItr): New inner class. Code moved here from
4196         listIterator().
4197         (SubList.iterator): Removed. Use default implementation from
4198         AbstractList instead.
4199         (SubList.listIterator): As above.
4200         * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
4201         instead of hasNext() in iterator loop.
4202         (containsValue): Ditto.
4203         (equals): Ditto.
4204         (get): Ditto.
4205         (put): Ditto.
4206         (putAll): Ditto.
4207         (remove): Ditto.
4208         (toString): Ditto. Use string concatenation operators, not
4209         StringBuffer.
4210         * java/util/AbstractSequentialList.java (addAll): Use a for loop
4211         bounded by size() instead of hasNext() in iterator loop.
4212         * java/util/AbstractSet.java (hashCode): Don't catch exception as
4213         part of normal execution flow. Do an explicit null check instead.
4214         * java/util/ArrayList.java (_iSize): Rename to `size'.
4215         (_arData): Rename to `data'.
4216         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4217         message.
4218         (remove): Ditto.
4219         (removeRange): Make protected. Don't check bounds.
4220         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4221         message.
4222         (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4223         check.
4224         (addAll (int, Collection)): Check lower bounds. Simplify exception
4225         string.
4226         (clone): Clone the data array too.
4227         (indexOf): Inline doesEqual().
4228         (lastIndexOf): Ditto.
4229         (clear): Don't set array data to null.
4230         (set): Check lower bounds. Simplify exception string.
4231         (toArray): Correct comment.
4232         (trimToSize): Don't update modCount, this is not a structural change.
4233         Add comment.
4234
4235         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4236         implemented.
4237         (toString): Declare `bit' as long, not int.
4238         (data): Made package-private, not private.
4239
4240 2000-10-27  Warren Levy  <warrenl@cygnus.com>
4241
4242         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4243         array elements to true.
4244
4245 2000-10-27  Warren Levy  <warrenl@cygnus.com>
4246
4247         * Makefile.am: Added locale files from Classpath.
4248         * Makefile.in: Rebuilt.
4249         * gnu/java/locale/Calendar.java: New file.
4250         * gnu/java/locale/Calendar_de.java: New file.
4251         * gnu/java/locale/Calendar_en.java: New file.
4252         * gnu/java/locale/Calendar_nl.java: New file.
4253         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4254         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4255         serialization compatibility.
4256         (scale): Made private.
4257         (serialVersionUID): New field.
4258         * java/math/BigInteger.java (ival): Made transient.
4259         (words): Made transient.
4260         (bitCount): New serialization field.
4261         (bitLength): Ditto.
4262         (firstNonzeroByteNum): Ditto.
4263         (lowestSetBit): Ditto.
4264         (magnitude): Ditto.
4265         (signum): Ditto.
4266         (serialVersionUID): New field.
4267         (readObject): New method.
4268         (writeObject): New method.
4269         * java/util/BitSet.java (serialVersionUID): New field.
4270         * java/util/Calendar.java: Replaced with Classpath file.
4271         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4272         of getDefault() for TimeZone or Locale instead of passing nulls.
4273         * java/util/Locale.java (serialVersionUID): New field.
4274         (writeObject): New method.
4275         (readObject): New method.
4276         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4277
4278 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
4279
4280         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4281         (core_java_source_files): Put java.lang, java.io, and java.util here.
4282         (ordinary_java_source_files): Order so that core_java_source_files are
4283         built first.
4284         (java_source_files): Reorder so that special_java_source_files are
4285         built first.
4286         * configure.in: Don't pass -I flag to gcj.
4287         * Makefile.in: Rebuilt.
4288         * configure: Rebuilt.
4289
4290 2000-10-25  Tom Tromey  <tromey@cygnus.com>
4291
4292         * Makefile.in: Rebuilt.
4293         * Makefile.am (install-exec-hook): New target.
4294
4295 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
4296
4297         * java/util/EventObject.java: Merged from classpath.
4298
4299         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4300         with stack dump.
4301
4302 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
4303
4304         * java/util/AbstractSet.java (equals): Re-installed original code.
4305
4306 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
4307
4308         * Makefile.am: Added rules for libgcjx library.
4309         * Makefile.in: Rebuilt.
4310         * configure.in: Added check for X.
4311         * configure: Rebuilt.
4312         * gnu/awt/LightweightRedirector.java: New file.
4313         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4314         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4315         * gnu/awt/j2d/Graphics2DImpl.java: New file.
4316         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4317         * gnu/awt/j2d/MappedRaster.java: New file.
4318         * gnu/awt/xlib/XCanvasPeer.java: New file.
4319         * gnu/awt/xlib/XEventLoop.java: New file.
4320         * gnu/awt/xlib/XEventQueue.java: New file.
4321         * gnu/awt/xlib/XFontMetrics.java: New file.
4322         * gnu/awt/xlib/XFramePeer.java: New file.
4323         * gnu/awt/xlib/XGraphics.java: New file.
4324         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4325         * gnu/awt/xlib/XPanelPeer.java: New file.
4326         * gnu/awt/xlib/XToolkit.java: New file.
4327         * gnu/gcj/xlib/Clip.java: New file.
4328         * gnu/gcj/xlib/Colormap.java: New file.
4329         * gnu/gcj/xlib/Display.java: New file.
4330         * gnu/gcj/xlib/Drawable.java: New file.
4331         * gnu/gcj/xlib/Font.java: New file.
4332         * gnu/gcj/xlib/GC.java: New file.
4333         * gnu/gcj/xlib/Pixmap.java: New file.
4334         * gnu/gcj/xlib/Screen.java: New file.
4335         * gnu/gcj/xlib/Visual.java: New file.
4336         * gnu/gcj/xlib/WMSizeHints.java: New file.
4337         * gnu/gcj/xlib/Window.java: New file.
4338         * gnu/gcj/xlib/WindowAttributes.java: New file.
4339         * gnu/gcj/xlib/XAnyEvent.java: New file.
4340         * gnu/gcj/xlib/XButtonEvent.java: New file.
4341         * gnu/gcj/xlib/XColor.java: New file.
4342         * gnu/gcj/xlib/XConfigureEvent.java: New file.
4343         * gnu/gcj/xlib/XConnectException.java: New file.
4344         * gnu/gcj/xlib/XEvent.java: New file.
4345         * gnu/gcj/xlib/XException.java: New file.
4346         * gnu/gcj/xlib/XExposeEvent.java: New file.
4347         * gnu/gcj/xlib/XID.java: New file.
4348         * gnu/gcj/xlib/XImage.java: New file.
4349         * gnu/gcj/xlib/XUnmapEvent.java: New file.
4350         * gnu/gcj/xlib/natClip.cc: New file.
4351         * gnu/gcj/xlib/natColormap.cc: New file.
4352         * gnu/gcj/xlib/natDisplay.cc: New file.
4353         * gnu/gcj/xlib/natDrawable.cc: New file.
4354         * gnu/gcj/xlib/natFont.cc: New file.
4355         * gnu/gcj/xlib/natGC.cc: New file.
4356         * gnu/gcj/xlib/natPixmap.cc: New file.
4357         * gnu/gcj/xlib/natScreen.cc: New file.
4358         * gnu/gcj/xlib/natVisual.cc: New file.
4359         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4360         * gnu/gcj/xlib/natWindow.cc: New file.
4361         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4362         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4363         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4364         * gnu/gcj/xlib/natXColor.cc: New file.
4365         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4366         * gnu/gcj/xlib/natXException.cc: New file.
4367         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4368         * gnu/gcj/xlib/natXImage.cc: New file.
4369         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4370         * java/awt/EventDispatchThread.java: Start thead on creation.
4371
4372 2000-10-20  Tom Tromey  <tromey@cygnus.com>
4373
4374         From Arno J. Klaassen:
4375         * interpret.cc: Include <stdlib.h> for alloca.
4376         * defineclass.cc: Include <stdlib.h> for alloca.
4377
4378         * Makefile.in: Rebuilt.
4379         * Makefile.am: Include deps.mk.
4380         (GCJCOMPILE): Added -MD, -MT, and -MF.
4381         ($(javao_files)): Don't depend on libgcj.zip.
4382         (all-recursive): New target.
4383         (%.lo:%.cc): Do dependency tracking.
4384         ($(nat_headers)): Don't depend on libgcj.zip.
4385         * configure: Rebuilt.
4386         * configure.in: Make .d files and deps.mk.
4387
4388 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
4389
4390         * exception.cc: Don't #include "exception".
4391         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4392
4393         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4394         * Makefile.in: Updated.
4395
4396 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
4397
4398         * java/awt/peer/ChoicePeer.java (addItem): Removed.
4399         * java/awt/peer/ComponentPeer.java (disable): Removed.
4400         (enable): Removed.
4401         (hide): Removed.
4402         (minimumSize): Removed.
4403         (preferredSize): Removed.
4404         (reshape): Removed.
4405         (show): Removed.
4406         * java/awt/peer/ListPeer.java (addItem): Removed.
4407         (clear): Removed.
4408         (minimumSize): Removed.
4409         (preferredSize): Removed.
4410         (setMultipleSelections): Removed.
4411         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4412         (remove): Renamed from removeMenu.
4413         * java/awt/peer/MenuItemPeer.java (disable): Removed.
4414         (enable): Removed.
4415         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4416         (remove): Renamed from removeItem.
4417         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4418         (getMinimumSize): Removed.
4419         (getPreferredSize): Removed.
4420         (minimumSize): Removed.
4421         (preferredSize): Removed.
4422         (replaceText): Removed.
4423         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4424         (preferredSize): Removed.
4425         (getMinimumSize): Removed.
4426         (getPreferredSize): Removed.
4427         (setEchoCharacter): Removed.
4428
4429 2000-10-10  Warren Levy  <warrenl@cygnus.com>
4430
4431         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4432         * java/sql/Date.java (serialVersionUID): New field.
4433         * java/sql/Time.java (serialVersionUID): New field.
4434         * java/sql/Timestamp.java (serialVersionUID): New field.
4435         * java/text/ChoiceFormat.java (serialVersionUID): New field.
4436         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4437         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4438         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4439         (readObject): New serialization method.
4440         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4441         (serialVersionOnStream): New field.
4442         (readObject): New serialization method.
4443         (getMonetaryDecimalSeparator): New method.
4444         (setMonetaryDecimalSeparator): New method.
4445         * java/text/NumberFormat.java (maxFractionDigits): New field.
4446         (maxIntegerDigits): New field.
4447         (minFractionDigits): New field.
4448         (minIntegerDigits): New field.
4449         (serialVersionOnStream): New field.
4450         (serialVersionUID): New field.
4451         (readObject): New serialization method.
4452         (writeObject): New serialization method.
4453         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4454         (serialVersionOnStream): New field.
4455         (serialVersionUID): New field.
4456         (readObject): New serialization method.
4457
4458 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
4459
4460         * configure.in (GCJ): Avoid bogus error message when looking for
4461         (and not finding) gcj in the build tree.
4462         * configure: Rebuilt.
4463
4464 2000-10-09  Tom Tromey  <tromey@cygnus.com>
4465
4466         * configure: Rebuilt.
4467         * configure.in: Include sys/types.h when checking for socklen_t.
4468         From Arno J. Klaassen.
4469
4470 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
4471
4472         * include/jvm.h: Enable __builtin_expect().
4473
4474         * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4475         the main program. Fix for PR libgcj/341.
4476
4477 2000-10-07  Tom Tromey  <tromey@cygnus.com>
4478
4479         * java/util/Properties.java: Merged with Classpath version.
4480
4481 2000-10-05  Tom Tromey  <tromey@cygnus.com>
4482
4483         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4484         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4485         * java/lang/Class.h (Object): Added `class$' field.
4486         * java/lang/Object.h (Object): Added `class$' field.
4487         * defineclass.cc (ClassClass): Use `class$' form.
4488         (ClassObject): Likewise.
4489         * resolve.cc (ClassObject): Use `class$' form.
4490         (ObjectClass): Likewise.
4491         * interpret.cc (ClassError): Removed.
4492         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4493         `class$' form.
4494         (IntegerClass): Likewise.
4495         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4496         form.
4497         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4498         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4499         SerializableClass): Likewise.
4500         Include Serializable.h, Cloneable.h.
4501         * java/lang/natSystem.cc (SystemClass): Removed.
4502         (init_properties): Use `class$' form.
4503         * java/lang/natObject.cc (CloneableClass): Removed.
4504         (clone): Use `class$' form.
4505         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4506         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4507         ConstructorClass): Likewise.
4508         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4509         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4510         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4511         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4512         form.
4513         (ClassClass): Likewise.
4514         * include/jvm.h (StringClass): Use `class$' form.
4515         * prims.cc (ObjectClass): Removed.
4516         (_Jv_RunMain): Use `class$' form.
4517         (_Jv_AllocObject): Likewise.
4518         * jni.cc (ClassClass): Use `class$' form.
4519         (ThrowableClass): Likewise.
4520         (ObjectClass): Likewise.
4521         (MethodClass): Likewise.
4522         (ThreadGroupClass): Likewise.
4523         (NativeThreadClass): Likewise.
4524         * boehm.cc (ObjectClass): Removed.
4525         (ClassClass): Removed.
4526         (_Jv_MarkObj): Use `class$' form.
4527         * gcj/field.h (JvFieldIsRef): Use `class$' form.
4528         Include RawData.h.
4529
4530 2000-10-05  Warren Levy  <warrenl@cygnus.com>
4531
4532         * Makefile.am: Removed java/io/Replaceable.java and
4533         java/io/Resolvable.java.
4534         * Makefile.in: Rebuilt.
4535         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4536         namespace.
4537         * java/io/ObjectInputStream.java (processResolution): Fixed typo
4538         in method name.
4539         (processResolution): Handle readResolve method via reflection with
4540         removal of Resolvable interface.
4541         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4542         method via reflection with removal of Replaceable interface.
4543         * java/io/Replaceable.java: Removed.
4544         * java/io/Resolvable.java: Removed.
4545         * java/security/Key.java (serialVersionUID): New field.
4546         * java/security/Provider.java (serialVersionUID): New field.
4547         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4548         New field.
4549         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4550         New field.
4551         * java/sql/DataTruncation.java (serialVersionUID): New field.
4552         * java/sql/SQLException.java (serialVersionUID): New field.
4553         * java/sql/SQLWarning.java (serialVersionUID): New field.
4554         * java/util/Date.java (serialVersionUID): New field.
4555         (millis): Made transient.
4556         (readObject): New method.
4557         (writeObject): New method.
4558
4559 2000-10-05  Tom Tromey  <tromey@cygnus.com>
4560
4561         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4562
4563 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
4564
4565         * prims.cc (_Jv_argv, _Jv_argc): New fields.
4566         (JvRunMain): Set _Jv_argv and _Jv_argc.
4567         * java/awt/Component.java: Minor fixes.
4568         * java/awt/Image.java (UndefinedProperty): Initialize final field.
4569         * java/awt/Toolkit.java (systemEventQueue): Removed.
4570         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4571         * java/awt/Window.java (getToolkit): Don't call super.
4572         * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4573         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4574         * gnu/awt/gtk/GtkComponentPeer.java: New file.
4575         * gnu/awt/gtk/GtkContainerPeer.java: New file.
4576         * gnu/awt/gtk/GtkFramePeer.java: New file.
4577         * gnu/awt/gtk/GtkMainThread.java: New file.
4578         * gnu/awt/gtk/GtkToolkit.java: New file.
4579         * gnu/awt/gtk/GtkWindowPeer.java: New file.
4580         * gnu/awt/gtk/gtkcommon.cc: New file.
4581         * gnu/awt/gtk/gtkcommon.h: New file.
4582         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4583         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4584         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4585         * gnu/awt/gtk/natGtkMainThread.cc: New file.
4586         * gnu/awt/gtk/natGtkToolkit.cc: New file.
4587         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4588
4589 2000-09-30  Tom Tromey  <tromey@cygnus.com>
4590
4591         * posix-threads.cc (_Jv_CondWait): Check to see if we are
4592         interrupted before modifying the cv's wait set.
4593         From Corey Minyard.
4594
4595 2000-09-30  Hans Boehm  <boehm@acm.org>
4596             Bryce McKinlay  <bryce@albatross.co.nz>
4597
4598         Implement bitmap descriptor based marking for Boehm GC.
4599
4600         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4601         * configure: Rebuilt.
4602         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4603         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4604         method get_finalizer().
4605         (struct _Jv_ArrayVTable): Ditto. Declare method array with
4606         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4607         (_Jv_AllocObj): Add new jclass parameter.
4608         (_Jv_AllocArray): Ditto.
4609         (_Jv_BuildGCDescr): New prototype.
4610         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4611         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4612         get_finalizer() instead of direct finalizer vtable offset.
4613         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4614         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4615         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4616         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4617         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4618         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4619         (_Jv_DetermineVTableIndex): Ditto.
4620         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4621         calculations to account for new gc_descr field.
4622         * boehm.cc: #include gc_gcj.h.
4623         (obj_kind_x, obj_free_list): `#if 0'-ed away.
4624         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4625         New commentary from HB. Mark the classes vtable.
4626         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4627         (GC_DEFAULT_DESCR): New #define.
4628         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4629         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4630         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4631         scan conservativly if size is less than min_heap_addr. Set vtable
4632         pointer of new object before returning.
4633         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4634         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4635         allocation for obj_kind_x.
4636         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4637         (_Jv_AllocObj): Set vtable on returned object.
4638         (_Jv_AllocArray): Ditto.
4639         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4640         (_Jv_NewPrimArray): Ditto.
4641         (_Jv_AllocObj): Declare as a friend.
4642         (_Jv_AllocArray): Ditto.
4643         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4644         from &ObjectClass into new array class. Remove offset-by-one
4645         adjustments from `method' size calculations to account for gc_descr
4646         field.
4647
4648 2000-09-26  Tom Tromey  <tromey@cygnus.com>
4649
4650         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4651         `remove', not `add'.
4652
4653 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
4654
4655         * java/lang/natSystem.cc (file_encoding): Added return statement.
4656
4657 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
4658
4659         * Makefile.am: Re-work shell commands that exceeded command-line
4660         length limits.
4661         * Makefile.in: Rebuilt.
4662
4663         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4664
4665         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4666         * java/lang/natDouble.cc: Likewise.
4667         * java/lang/reflect/natMethod.cc: Likewise.
4668         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
4669
4670 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
4671
4672         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4673         libgcjdata.a.
4674         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
4675         * acinclude.m4: Arrange for automake to not bring in a new
4676         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
4677         * Makefile.am: Leave it up to automake to subst GCJ.
4678         * aclocal.m4, configure, Makefile.in: Rebuilt.
4679
4680 2000-09-13  Tom Tromey  <tromey@cygnus.com>
4681
4682         * java/lang/reflect/natArray.cc (BooleanClass): New define.
4683         (get): Ensure Boolean class is initialized.
4684         * java/lang/reflect/natField.cc (BooleanClass): New define.
4685         (get): Ensure Boolean class is initialized.
4686
4687 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
4688
4689         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4690         Initialize with anonymous class.
4691         (compareToIgnoreCase): New method.
4692
4693         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4694         (uncaughtException): Set had_uncaught_exception.
4695         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4696         exit with error status if set.
4697         (_Jv_RunMain): Ditto.
4698
4699 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
4700
4701         * configure: Rebuilt with new ../libtool.m4.
4702
4703 2000-09-11  Tom Tromey  <tromey@cygnus.com>
4704
4705         * java/lang/reflect/Field.java (toString): Don't rely on
4706         Class.toString.
4707
4708 2000-09-08  Tom Tromey  <tromey@cygnus.com>
4709
4710         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4711         default decoder use iconv.
4712         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4713         Let default encoder use iconv.
4714         * configure: Rebuilt.
4715         * configure.in: Check for nl_langinfo and <langinfo.h>.
4716         * java/lang/natSystem.cc (file_encoding): New function.
4717         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4718
4719 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
4720
4721         * acinclude.m4: Simplify the tests for CC and CXX.
4722         * aclocal.m4, configure: Rebuilt.
4723
4724         * acinclude.m4: Include libtool macros from the source tree.
4725         * aclocal.m4, configure: Rebuilt.
4726
4727 2000-09-08  Warren Levy  <warrenl@cygnus.com>
4728
4729         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4730         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4731         * java/io/File.java (writeObject): Added.
4732         (readObject): Added.
4733         (serialVersionUID): Added.
4734         * java/io/ObjectOutputStream.java (writeObject): Initialized
4735         fieldsAlreadyWritten before recursion rather than after.
4736         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4737         * java/io/OptionalDataException.java (serialVersionUID): Added.
4738         (OptionalDataException): Made package private.
4739         * java/io/SyncFailedException.java (SyncFailedException): Removed
4740         default constructor to match spec.
4741         * java/lang/Boolean.java (serialVersionUID): Added.
4742         * java/lang/Byte.java (serialVersionUID): Added.
4743         * java/lang/Character.java (serialVersionUID): Added.
4744         * java/lang/Double.java (serialVersionUID): Added.
4745         * java/lang/Float.java (serialVersionUID): Added.
4746         * java/lang/Integer.java (serialVersionUID): Added.
4747         * java/lang/Long.java (serialVersionUID): Added.
4748         * java/lang/Number.java (serialVersionUID): Added.
4749         * java/lang/Short.java (serialVersionUID): Added.
4750         * java/lang/String.java (serialVersionUID): Added.
4751         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4752         to match spec.
4753         * java/lang/reflect/InvocationTargetException.java
4754         (serialVersionUID): Added.
4755         * java/net/URL.java (handler): Made transient.
4756         (hashCode): Added field for serialization, per spec. and use
4757         cached value if available.
4758         (serialVersionUID): Added.
4759         (URL): Initialize hashCode.
4760         (set): Adjust hashCode.
4761         (readObject): New Method to initialize the protocol handler when
4762         deserializing.
4763         (writeObject): New method.
4764         * java/text/BreakIterator.java: Removed 'implements Serializable'.
4765         * java/text/Collator.java: Removed 'implements Serializable'.
4766         * java/util/GregorianCalendar.java (serialVersionUID): Added.
4767         * java/util/Properties.java (serialVersionUID): Added.
4768         * java/util/Random.java (serialVersionUID): Added.
4769         (seed): Made private.
4770         (nextNextGaussian): Made private.
4771         (haveNextNextGaussian): Made private.
4772         * java/util/Stack.java (serialVersionUID): Added.
4773         * java/util/TimeZone.java (serialVersionUID): Added.
4774         * java/util/Vector.java (serialVersionUID): Added.
4775
4776 2000-09-07  Bryce McKinlay  <bryce@albatross.co.nz>
4777
4778         * Makefile.am (Thread.h): Don't be friends with native threads
4779         functions.
4780         * Makefile.in: Rebuilt.
4781         * java/lang/Thread.java (interrupt_flag): Make package-private.
4782
4783 2000-09-06  Jeff Sturm  <jeff.sturm@appnet.com>
4784
4785         * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4786         to avoid long long division.
4787
4788 2000-09-06  Tom Tromey  <tromey@cygnus.com>
4789
4790         * java/lang/reflect/Constructor.java (toString): Use `getName' for
4791         parameter types.
4792         * java/lang/reflect/Method.java (toString): Use `getName' for
4793         return type.
4794
4795         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4796         `args' if method takes no parameters.
4797
4798         Fix for PR java.lang/339:
4799         * java/lang/natPosixProcess.cc (fail): New function.
4800         (cleanup): New function.
4801         (startProcess): Use them.  Create pipe so child can communicate
4802         exec failure back to parent.
4803
4804 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
4805
4806         * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4807         calls to `throw'.
4808         (send): Undo last patch. Remove the label only.
4809         (mcastGrp): Ditto.
4810         * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4811         `throw'.
4812         * java/net/natInetAdress.cc: Ditto.
4813
4814         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4815
4816 2000-09-05  Tom Tromey  <tromey@cygnus.com>
4817
4818         * doc/cni.sgml: Updated from master copy.
4819
4820 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
4821
4822         * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4823         (write): Ditto.
4824         * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4825         stack. Synchronize.
4826         * java/lang/fdlibm.h: #undef __P if previously defined.
4827         * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4828         * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4829         block.
4830         (mcastGrp): Ditto.
4831
4832 2000-09-04  Tom Tromey  <tromey@cygnus.com>
4833
4834         * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4835         DELETE mode.
4836
4837 2000-09-04  Anthony Green  <green@redhat.com>
4838
4839         Fix for PR java.io/203:
4840         * java/io/File.java (createTempFile): Obey directory argument.
4841         Use java.io.tmpdir if needed.  Don't leave FileDescripators open.
4842         * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4843         variable to set java.io.tmpdir on non-WIN32 systems.
4844
4845 2000-09-04  Anthony Green  <green@redhat.com>
4846
4847         * java/io/File.java (deleteOnExit): New method.
4848         * gnu/gcj/runtime/FileDeleter.java: New class.
4849         * java/lang/natRuntime.cc (exit): Call
4850         FileDeleter.deleteOnExitNow()
4851         * Makefile.am: Add FileDeleter.java.
4852         * Makefile.in: Rebuilt.
4853
4854 2000-09-02  Tom Tromey  <tromey@cygnus.com>
4855
4856         * Makefile.in: Rebuilt.
4857         * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4858         environment variable.
4859
4860 2000-09-01  Andrew Haley  <aph@redhat.com>
4861
4862         * java/io/StreamTokenizer.java: Don't throw a
4863         NumberFormatException if a field is numeric as far as the
4864         StreamTokenizer is concerned but not as far as Double.valueOf() is
4865         concerned: return a zero instead.
4866
4867 2000-08-30  Tom Tromey  <tromey@cygnus.com>
4868
4869         * Makefile.in: Rebuilt.
4870         * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4871
4872 2000-08-28  Tom Tromey  <tromey@cygnus.com>
4873
4874         * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4875         gnu/gcj/awt/ComponentDataBlitOp.java,
4876         gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4877         java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4878         java/awt/color/ICC_ColorSpace.java,
4879         java/awt/color/ICC_Profile.java,
4880         java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4881         java/awt/image/ComponentColorModel.java,
4882         java/awt/image/ComponentSampleModel.java,
4883         java/awt/image/DataBuffer.java,
4884         java/awt/image/DataBufferByte.java,
4885         java/awt/image/DataBufferInt.java,
4886         java/awt/image/DataBufferUShort.java,
4887         java/awt/image/DirectColorModel.java,
4888         java/awt/image/IndexColorModel.java,
4889         java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4890         java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4891         java/awt/image/SinglePixelPackedSampleModel.java,
4892         java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4893         Removed Latin-1 copyright symbols.
4894         * java/util/zip/ZipFile.java: Indentation fixes.
4895
4896 2000-08-27  Mark Wielaard  <mark@klomp.org>
4897
4898         * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4899         constructor, close can delete the file, finalize calls close.
4900         * java/util/jar/JarFile.java: Constructor that takes mode now
4901         calls super.
4902
4903 2000-08-27  Anthony Green  <green@redhat.com>
4904
4905         * java/util/ArrayList.java, java/util/Timer.java,
4906         java/util/LinkedList.java, java/util/TimerTask.java,
4907         java/util/HashMap.java, java/util/AbstractMap.java,
4908         java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4909         java/util/SortedSet.java: Imported from GNU Classpath.
4910         * Makefile.in: Rebuilt.
4911         * Makefile.am: Added new files.
4912
4913 2000-08-26  Anthony Green  <green@redhat.com>
4914
4915         * Makefile.in: Rebuilt.
4916         * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4917         friend.
4918
4919         * prims.cc: Include ClassLoader.h.
4920         (_Jv_RunMain): When executing jar files, classpath must be the jar
4921         file only.  Lose our reference to the system ClassLoader in order
4922         to get a new one with the correct classpath.
4923         * java/lang/natSystem.cc (init_properties): When executing a jar
4924         file, only use the jar file for java.class.path.
4925
4926         * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4927         for bytecode archives.
4928
4929         * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4930         exists, but not Main-Class.
4931
4932 2000-08-23  Mark Wielaard  <mark@klomp.org>
4933
4934         * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4935         return -1 when fill() has no more data for the Inflater.
4936
4937 2000-08-23  Mark Wielaard  <mark@klomp.org>
4938
4939         * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4940         write(String) already does.
4941
4942 2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
4943
4944         * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4945         to `alive_flag', call `init'.
4946         (init): New native method.
4947         * gnu/gcj/jni/natNativeThread.cc (init): New native method
4948         implementation.
4949
4950 2000-08-21  Mark Wielaard  <mark@klomp.org>
4951
4952         * Makefile.in: Rebuilt.
4953         * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4954         a `friend class'.
4955         (java/lang/reflect/Field.h): Likewise.
4956         (java/lang/reflect/Method.h): Likewise.
4957         (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4958         `friend class'.
4959
4960 2000-08-21  Tom Tromey  <tromey@cygnus.com>
4961
4962         * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4963         debugging prints.
4964
4965 Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>
4966
4967         * java/lang/natSystem.cc (init_properties): Change sourceware
4968         reference to sources.redhat.com.
4969
4970         * include/java-props.h: Add _Jv_Jar_Class_Path.
4971         * prims.cc: Ditto.  Set it from `gij -jar file' option.
4972
4973         * java/lang/natSystem.cc (init_properties): Set java.class.path
4974         from
4975         {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4976
4977         * java/util/PropertyPermission.java: Import from GNU Classpath.
4978         * Makefile.in: Rebuilt.
4979         * Makefile.am: Add java/util/PropertyPermission.java.
4980         * java/lang/System.java: Add setProperty method.
4981
4982         * gij.cc (main): Add -jar option to execute jar files.
4983         (help): Describe -jar option.
4984         * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4985         * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4986         * gnu/gcj/runtime/FirstThread.java (main): New method.
4987
4988         * java/util/jar/Attributes.java: Correct comment spelling.
4989
4990 2000-08-20  Mark Wielaard  <mark@klomp.org>
4991
4992         * java/util/zip/Adler32.java: Make private variables really private
4993         * java/util/zip/CRC32.java: Make private variables really private
4994         * java/util/zip/CheckedInputStream.java: skip() could skip to much
4995         bytes
4996         * java/util/zip/InflaterInputStream.java: skip() could skip to
4997         much bytes
4998         * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4999         * java/util/zip/ZipFile.java: size() new 1.2 method
5000         * java/util/zip/ZipInputStream.java: Use createZipEntry not new
5001         ZipEntry.  since 1.2 available() always returns just 1 or 0 when
5002         closed
5003
5004 Sun Aug 20 12:33:43 2000  Anthony Green  <green@redhat.com>
5005
5006         * java/util/jar/JarFile.java: Don't call
5007         java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
5008         <mark@klomp.org>.
5009
5010 Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>
5011
5012         * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
5013         Read the entire contents of the class file, not just what is
5014         available().
5015
5016         * java/net/JarURLConnection.java: getEntry doesn't take any
5017         arguments.  Return null if element is null.
5018
5019         * java/util/zip/ZipFile.java (getInputStream): Read the compressed
5020         size from the archive, not the inflated size.
5021
5022         * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
5023         java.util.zip.ZipFile.getEntry.
5024
5025         * gij.cc (help): Change sourceware reference to
5026         sources.redhat.com.
5027
5028 2000-08-19  Tom Tromey  <tromey@cygnus.com>
5029
5030         * java/util/zip/ZipInputStream.java (createZipEntry):
5031         Implemented.
5032
5033 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
5034
5035         * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
5036         java/util/jar/JarException.java, java/util/jar/JarFile.java,
5037         java/util/jar/JarInputStream.java,
5038         java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
5039         java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
5040         java/util/AbstractSet.java, java/util/BasicMapEntry.java,
5041         java/security/cert/CRL.java, java/security/cert/CRLException.java,
5042         java/security/cert/Certificate.java,
5043         java/security/cert/CertificateEncodingException.java,
5044         java/security/cert/CertificateException.java,
5045         java/security/cert/CertificateExpiredException.java,
5046         java/security/cert/CertificateFactory.java,
5047         java/security/cert/CertificateFactorySpi.java,
5048         java/security/cert/CertificateNotYetValidException.java,
5049         java/security/cert/CertificateParsingException.java,
5050         java/security/cert/X509CRL.java,
5051         java/security/cert/X509CRLEntry.java,
5052         java/security/cert/X509Certificate.java,
5053         java/security/cert/X509Extension.java: Imported from Classpath.
5054         * java/util/Hashtable.java: Imported from Classpath.
5055
5056         * java/util/zip/ZipInputStream.java: Create stub for
5057         createZipEntry.
5058
5059         * gcj/javaprims.h: Updated class list.
5060
5061         * Makefile.in, gcj/Makefile.in: Rebuilt.
5062         * Makefile.am (ordinary_java_source_files): Add these new classes.
5063
5064 2000-08-16  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
5065
5066         * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
5067         * gnu/gcj/awt/GLightweightPeer.java: New file.
5068         * java/awt/BorderLayout.java: Implemented all methods.
5069         * java/awt/Button.java (actionListener, actionCommand): Renamed
5070         and modifier change.
5071         (addNotify): Call super.
5072         (dispatchEventImpl): New method.
5073         (getListeners): New method.
5074         (label): Made package-private, not private.
5075         * java/awt/Canvas.java: Implemented class body.
5076         * java/awt/Color.java (brighter): New method.
5077         (darker): New method.
5078         (hashCode): New method.
5079         * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
5080         (getGraphicsConfiguration): Delegate to
5081         getGraphicsConfigurationImpl().
5082         (getGraphicsConfigurationImpl): New method.
5083         (getToolkit): Only return value from peer if not null.
5084         (isDisplayable): Check with parent.
5085         (isShowing): No parent implies not showing.
5086         (getForeground): Check parent property if local is null.
5087         (getBackground): Likewise.
5088         (getFont): Likewise.
5089         (setForeground): Inform peer.
5090         (setBackground): Likewise
5091         (setLocale): Invalidate component.
5092         (getColorModel): Implemented.
5093         (setLocation): Invalidate, or ignore if no change.
5094         (setSize): Invalidate, or ignore if no change.
5095         (setBounds): Invalidate, or ignore if no change.
5096         (isOpaque): By default, heavyweight implies opaque.
5097         (isLightweight): Implemented.
5098         (getMaximumSize): Implemented.
5099         (doLayout): Implemented, NOP.
5100         (validate): Implemented, NOP.
5101         (invalidate): Only propagate to parent if parent was valid.
5102         (getGraphics): Implemented.
5103         (getFontMetrics): Implemented.
5104         (update): Implemented.
5105         (paintAll): Implemented.
5106         (repaint): Implemented all repaint methods.
5107         (print): Implemented.
5108         (printAll): Implemented.
5109         (createImage): Implemented.
5110         (dispatchEvent): Give the peer a chance to handle the event.
5111         (dispatchEventImpl): Dispatch paint events.
5112         (enableEvents): Lightweights enable events on parent component.
5113         (coalesceEvents): Coalesce paint events, and select event type
5114         using a switch.
5115         (coalescePaintEvents): New method.
5116         (processEvent): Fix unfortunate ordering of statements, and call
5117         correct method for MOUSE_CLICKED.
5118         (processPaintEvent): New method.
5119         (addNotify): Allow container to notify children before event
5120         mask is set in peer.
5121         (addNotifyContainerChildren): New method.
5122         (removeNotify): Visibility should not change on removeNotify.
5123         (paramString): Implemented.
5124         (list): Implemented two of the list methods.
5125         * Container (myInsets): Removed, insets are managed by peer.
5126         (getInsets): Query peer.
5127         (addImpl): Fix reparenting, enable events for lightweights,
5128         initialize component array.
5129         (validate): Call doLayout in validateTree() instead.
5130         (validateTree): Do nothing if already valid. Call beginValidate(),
5131         endValidate() on peer. Call validateTree() instead of validate()
5132         for children that are containers. Mark valid after validation of
5133         children.
5134         (setFont): Partial implementation.
5135         (paint): Implemented.
5136         (visitChildren): New method.
5137         (visitChild): New method.
5138         (update): Implemented.
5139         (print): Implemented.
5140         (paintComponents): Implemented.
5141         (printComponents): Consider translation and clipping.
5142         (getComponentAt): Ignore invisible children. Return this if no
5143         child match.
5144         (addNotify): Call super.
5145         (addNotifyContainerChildren): New method.
5146         (paramString): Implemented.
5147         (list): Implemented.
5148         * java/awt/EventQueue (invokeAndWait): Get system event queue the
5149         right way.
5150         (invokeLater): Likewise.
5151         (isDispatchThread): Likewise.
5152         * java/awt/FontMetrics (getLeading): Formula change.
5153         (getDescent): Consider leading also.
5154         (getMaxAscent): Default to getAscent().
5155         (getMaxDescent): Default to getDescent.
5156         (getMaxAdvance): Return value signifying unknown.
5157         (charWidth): Both methods implemented.
5158         (charsWidth): Implemented.
5159         (bytesWidth): Implemented.
5160         (getWidths): Implemented.
5161         * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
5162         state): New fields.
5163         (Frame): Rearragend constuctor chaining to disallow null being
5164         passed as a graphics configuration.
5165         (getTitle): Return empty string if null.
5166         (dispose): Removed.
5167         (getIconImage): New method.
5168         (setIconImage): New method.
5169         (finalize): New method.
5170         (setMenuBar): Notify peer.
5171         (isResizable): New method.
5172         (setResizable): New method.
5173         (getState): New method.
5174         (getFont): Removed.
5175         (remove): Implemented.
5176         (removeNotify): New method.
5177         (getFrames): New method.
5178         * java/awt/Graphics.java: Implemented body of class.
5179         * java/awt/Graphics2D.java: New file.
5180         * java/awt/GraphicsConfiguration.java: Enabled part of the API.
5181         * java/awt/Image.java: Implemented body of class.
5182         * java/awt/Panel.java (Panel): Call correct super constructor.
5183         (addNotify): Implemented.
5184         * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
5185         * java/awt/RenderingHints.java: New file.
5186         * java/awt/Toolkit.java (createComponent): Implemented.
5187         (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
5188         * java/awt/Window.java (Window): Two new constructors. Reordered
5189         constructor chaining.
5190         (getGraphicsConfigurationImpl): New method.
5191         (finalize): Call super.
5192         (addNotify): Call super.
5193         (pack): Do layout stuff.
5194         (show): Ensure that peer exists and that component is valid.
5195         (dispose): Dispose owned children.
5196         (getOwner): Simplify code, casting null pointers is valid.
5197         (getGraphicsConfiguration): Ask peer if local value is null.
5198         * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
5199         getcmd().
5200         * java/awt/image/BufferedImage.java: New file.
5201         * java/awt/image/RasterOp.java: New file.
5202         * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
5203         More powerfull replacement for getColorModel().
5204         (getColorModel) Removed.
5205         (setEventMask) New method.
5206         * Makefile.am: Added new files.
5207         * Makefile.in: Rebuilt.
5208
5209 2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5210
5211         * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
5212         (finit_leg_name): New global.
5213         (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5214         `$finit$'. This is a backward compatibility hack.
5215         (java::lang::Class::_getMethods): Likewise.
5216
5217 2000-08-15  Andrew Haley  <aph@cygnus.com>
5218
5219         * include/jvm.h (_Jv_HashCode): New hash code.
5220
5221 2000-08-15  Tom Tromey  <tromey@cygnus.com>
5222
5223         * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5224
5225 Sun Aug 13 19:53:01 2000  Anthony Green  <green@redhat.com>
5226
5227         * THANKS: More thanks.
5228
5229 2000-08-10  Tom Tromey  <tromey@cygnus.com>
5230
5231         * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5232         when errno not set.
5233         (connect): Likewise.
5234         (accept): Likewise.
5235         (getOption): Likewise.
5236         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5237         case when errno not set.
5238         (peek): Likewise.
5239         (send): Likewise.
5240         (receive): Likewise.
5241         (mcastGrp): Likewise.
5242         (setOption): Likewise.
5243         (getOption): Likewise.
5244
5245 2000-08-10  Bryce McKinlay  <bryce@albatross.co.nz>
5246             John Stracke <francis@ecal.com>
5247
5248         * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5249         (connect): Don't falsely claim HTTP/1.1 compliance. Call
5250         getHttpHeaders().
5251         (disconnect): Don't unset connected flag.
5252         (getHeaderField (String)): Call connect() if not connected.
5253         (getHeaderField (int)): Ditto.
5254         (getHeaderFieldKey): Ditto.
5255         (getHttpHeaders): Don't call connect().
5256         * java/net/HttpURLConnection.java (instanceFollowRedirects,
5257         gotResponseVals): New fields.
5258         (getResponseCode): Call getResponseVals() conditionally.
5259         (getResponseMessage): Ditto.
5260         (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5261
5262 2000-08-09  Bryce McKinlay  <bryce@albatross.co.nz>
5263
5264         * Makefile.am: Move beans and applet classes to awt_java_source_files.
5265         * Makefile.in: Rebuilt.
5266         * java/awt/Color.java (getTransparency): New method.
5267         * java/awt/Component.java: Various updates.
5268         * java/awt/Container.java (removeNotify): Call super.removeNotify()
5269         after dealing with children.
5270         * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5271         * java/awt/Window.java: Various new methods and updates.
5272         * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5273         to int for switch.
5274         * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5275         * java/awt/event/WindowEvent.java (paramString): Ditto.
5276         * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5277         try/catch block.
5278         * java/awt/geom/Point2D.java (clone): Ditto.
5279         * java/awt/geom/RectangularShape.java (clone): Ditto.
5280         * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5281         isAlphaPremultiplied): Make package-private, not private.
5282
5283 2000-08-08  Tom Tromey  <tromey@cygnus.com>
5284
5285         * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5286         surrogate characters.
5287         * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5288         true.
5289         (write): Correct handling of surrogate characters.
5290
5291 2000-08-07  Tom Tromey  <tromey@cygnus.com>
5292
5293         * java/lang/reflect/Method.java (hashCode): Use getName().
5294         (toString): Likewise.
5295         * java/lang/reflect/natMethod.cc (getType): Initialize
5296         exception_types.
5297
5298         * java/lang/reflect/Method.java (toString): Use Class.getName, not
5299         Class.toString.
5300         * java/lang/reflect/Field.java (toString): Correct formatting.
5301         From Corey Minyard.
5302
5303         * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5304         rewrote.
5305         (receive): Streamlined.
5306
5307 2000-08-05  Tom Tromey  <tromey@cygnus.com>
5308
5309         * java/io/PrintWriter.java: Merged comments from Classpath.
5310         (printlnUnsynchronized): Removed.
5311         (println()): Print the separator.
5312         (println): Call println(), not printlnUnsynchronized.
5313         (out): Now protected, to match spec.
5314
5315 2000-08-04  Tom Tromey  <tromey@cygnus.com>
5316
5317         * java/io/StreamTokenizer.java (TT_NONE): Now private.
5318         (nextToken): Handle backslashed newline.  From Oskar Liljeblad.
5319         For PR java.io/301.
5320
5321 2000-08-03  Warren Levy  <warrenl@cygnus.com>
5322
5323         * java/io/ObjectInputStream.java (readFields): Turn off
5324         readDataFromBlock while reading via GetField.
5325         (GetField$1.get(String, Object)): Pass Class of default value to
5326         getField.
5327         (getField): Allow for null default values.
5328
5329         * java/io/ObjectOutputStream.java: Fixed typo in comment.
5330         (PutField$1.put): Fixed calls of checkType in most of the put
5331         methods to pass the correct parameter.
5332         (PutField$1.put(String, Object)): Allow for null value arg.
5333         (PutField$1.write): Turn off writeDataAsBlocks while writing via
5334         PutField.
5335
5336         * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5337         typo in spec'ed field name.
5338         (getSerialPersistentFields): Changed spelling of method to match
5339         the correct spelling of the spec'ed field name.
5340
5341 2000-08-03  Tom Tromey  <tromey@cygnus.com>
5342
5343         * Makefile.in: Rebuilt.
5344         * Makefile.am (awt_java_source_files): Added new files.
5345
5346 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
5347
5348         * Makefile.am: Add new AWT stubs.
5349         * java/awt/Canvas.java: New placeholder class.
5350         * java/awt/Checkbox.java: Ditto.
5351         * java/awt/CheckboxMenuItem.java: Ditto.
5352         * java/awt/Choice.java: Ditto.
5353         * java/awt/Dialog.java: Ditto.
5354         * java/awt/FileDialog.java: Ditto.
5355         * java/awt/List.java: Ditto.
5356         * java/awt/ScrollPane.java: Ditto.
5357         * java/awt/TextField.java: Ditto.
5358         * java/awt/datatransfer/Clipboard.java: Ditto.
5359         * java/awt/Component.java (treeLock): Now a static String. Add comment.
5360         * java/awt/MenuItem.java (MenuItem): Add default constructor.
5361         * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5362         Some commented out. Partially implemented.
5363         * java/awt/natToolkit.cc: Removed file.
5364
5365 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
5366
5367         * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5368         Fixes "make -j" builds.
5369         * Makefile.in: Rebuild.
5370
5371 2000-08-02  Tom Tromey  <tromey@cygnus.com>
5372
5373         * Makefile.in: Rebuilt.
5374         * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5375         * java/net/natPlainSocketImpl.cc: Include posix.h.
5376         (accept): Use _Jv_select.
5377         * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5378         (receive): Use _Jv_select.
5379         * java/io/natFileDescriptorPosix.cc: Include posix.h.
5380         (available): Use _Jv_select.
5381         * java/lang/natSystem.cc: Include posix.h.
5382         (currentTimeMillis): Use _Jv_gettimeofday.
5383         * include/posix.h: New file.
5384         * posix.cc: New file.
5385
5386         * scripts/encodings.pl: New file.
5387         * Makefile.in: Rebuilt.
5388         * Makefile.am (convert_source_files): Added IOConverter.java.
5389         * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5390         IOConverter.
5391         (getDefaultDecodingClass): Canonicalize default encoding name.
5392         (getEncoder): Likewise.
5393         * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5394         IOConverter.
5395         (getDefaultDecodingClass): Canonicalize default encoding name.
5396         (getDecoder): Likewise.
5397         * gnu/gcj/convert/IOConverter.java: New file.
5398
5399 2000-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
5400
5401         * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5402         to match C declaration in ffi.h.
5403         * Makefile.am: Add java/awt/Button.java.
5404         * Makefile.in: Rebuilt.
5405
5406 2000-07-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5407
5408         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5409         cast of the second argument to `ffi_raw_call' changed to match
5410         prototype.
5411
5412 2000-07-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5413
5414         * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5415         argument to `ffi_raw_call' changed to match prototype.
5416
5417 2000-07-31  Bryce McKinlay  <bryce@albatross.co.nz>
5418
5419         * java/awt/Component.java (toString): Implemented.
5420         * java/awt/Container.java (addImpl): Remove FIXME. Only call
5421         dispatchEvent() to dispatch the event.
5422         (removeImpl): Ditto.
5423
5424 2000-07-30  Anthony Green  <green@redhat.com>
5425
5426         * java/awt/Component.java: Add treeLock object.
5427         (getTreeLock): Implement.
5428         (isShowing): Implement.
5429
5430 2000-07-30  Tom Tromey  <tromey@cygnus.com>
5431
5432         * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5433
5434         * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5435
5436         * java/awt/Window.java (addNotify): Wrote.
5437         (addWindowListener): Wrote.
5438         (getLocale): Wrote.
5439         (getWarningString): Wrote.
5440         (processEvent): Wrote.
5441         (processWindowEvent): Wrote.
5442         (removeWindowListener): Wrote.
5443         (show): Call validate(), setVisible().
5444         (toBack): Wrote.
5445         (toFront): Wrote.
5446
5447         * java/awt/Toolkit.java (createWindow): Declare.
5448
5449         * java/awt/Frame.java (addNotify): Use getToolkit to find
5450         toolkit.
5451
5452         * java/awt/Component.java (invalidate): Wrote.
5453         (isValid): Wrote.
5454         (getToolkit): Wrote.
5455
5456         * java/awt/Container.java (addContainerListener): Removed
5457         unnecessary cast.
5458         (removeContainerListener): Likewise.
5459         (addImpl): Wrote.
5460         (add(Component)): Use it.
5461         (add(String,Component)): Likewise.
5462         (add(Component,int)): Likewise.
5463         (add(Component,Object)): Likewise.
5464         (add(Component,Object,int)): Likewise.
5465         (doLayout): Wrote.
5466         (getAlignmentX): Wrote.
5467         (getAlignmentY): Wrote.
5468         (getComponentAt): Wrote.
5469         (getMaximumSize): Wrote.
5470         (invalidate): Wrote.
5471         (list(PrintStream,int)): Wrote.
5472         (list(PrintWriter,int)): Wrote.
5473         (getMinimumSize): Wrote.
5474         (getPreferredSize): Wrote.
5475         (printComponents): Wrote.
5476         (processContainerEvent): Look at containerListener, not
5477         componentListener.
5478         (remove): Added event processing and peer destruction.
5479         (removeAll): Use remove.
5480         (removeNotify): Wrote.
5481         (validate): Wrote.
5482         (validateTree): Wrote.
5483
5484         * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5485         * java/awt/Label.java (addNotify): Do nothing if peer exists.
5486         * java/awt/Container.java (addNotify): Don't create Container
5487         peer.
5488         * java/awt/Button.java (addNotify): Do nothing if peer exists.
5489
5490 2000-07-30  Tom Tromey  <tromey@cygnus.com>
5491
5492         * java/awt/Container.java (remove(int)): Wrote.
5493         (remove(Component)): Wrote.
5494         (add(Component)): Wrote.
5495         (add(Component,int)): Wrote.
5496         (removeAll): Wrote.
5497         (addNotify): Set our own peer.
5498         * java/awt/Scrollbar.java (listeners): Changed type.
5499         (Scrollbar): Don't initialize listeners.
5500         (addNotify): Wrote.
5501         (setValue): Call setValues.
5502         (setMinimum): Likewise.
5503         (setMaxPriority): Likewise.
5504         (setVisibleAmount): Likewise.
5505         (setValues): Wrote.
5506         (setUnitIncrement): Forward to peer.
5507         (setLineIncrement): Call setUnitIncrement.
5508         (setPageIncrement): Call setBlockIncrement.
5509         (setBlockIncrement): Forward to peer.
5510         (addAdjustmentListener): Rewrote.
5511         (removeAdjustmentListener): Rewrote.
5512         (processAdjustmentEvent): Rewrote.
5513         (paramString): Wrote.
5514         * Makefile.in: Rebuilt.
5515         * Makefile.am (awt_java_source_files): Added Button.java.
5516         * java/awt/Button.java: New file.
5517         * java/awt/Toolkit.java (createLabel): Declare.
5518         (createButton): Likewise.
5519         (createScrollbar): Likewise.
5520         (createContainer): Likewise.
5521         * java/awt/Label.java (addNotify): Wrote.
5522         (setAlignment): Call setAlignment in the peer.
5523         (setText): Call setText in the peer.
5524
5525 2000-07-28  Warren Levy  <warrenl@cygnus.com>
5526
5527         * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5528         NotSerializableException with just the class name.
5529
5530 2000-07-26  Andrew Haley  <aph@cygnus.com>
5531
5532         * interpret.cc (continue1): Insert missing break into switch.
5533
5534 2000-07-28  Warren Levy  <warrenl@cygnus.com>
5535
5536         * java/io/ObjectStreamException.java: Made constructors protected.
5537
5538 2000-07-27  Tom Tromey  <tromey@cygnus.com>
5539
5540         * java/io/OutputStreamWriter.java (close): Only flush if not
5541         closed.
5542
5543 2000-07-27  Warren Levy  <warrenl@cygnus.com>
5544
5545         * mauve-libgcj: Activated serialization tests.
5546         * gcj/field.h (getModifiers): Mask off unknown flags.
5547         * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5548         spurious bits don't cause discrepancies.
5549         * java/io/ObjectOutputStream.java: Fixed typo in comment.
5550         * java/io/ObjectStreamClass.java: Fixed typos in comments.
5551         (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5552         (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5553         * java/lang/Throwable.java (serialVersionUID): New field.
5554         * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5555         * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5556         unknown flags.
5557         * java/lang/reflect/natMethod.cc: Ditto.
5558         * java/security/Key.java (serialVersionUID): Removed field for now.
5559         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5560         * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5561
5562 2000-07-22  Tom Tromey  <tromey@cygnus.com>
5563
5564         * java/awt/geom/RectangularShape.java (getPathIterator):
5565         Wrote.
5566
5567 2000-07-23  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
5568
5569         * libjava/java/awt/image/ColorModel.java: New file, replaces the
5570         stub libjava/java/awt/ColorModel.java which was located in the
5571         wrong package.
5572         * libjava/java/awt/image/ComponentColorModel.java: New file.
5573         * libjava/java/awt/image/ComponentSampleModel.java: New file.
5574         * libjava/java/awt/image/DataBuffer.java: New file.
5575         * libjava/java/awt/image/DataBufferByte.java: New file.
5576         * libjava/java/awt/image/DataBufferInt.java: New file.
5577         * libjava/java/awt/image/DataBufferUShort.java: New file.
5578         * libjava/java/awt/image/DirectColorModel.java: New file.
5579         * libjava/java/awt/image/PackedColorModel.java: New file.
5580         * libjava/java/awt/image/Raster.java: New file.
5581         * libjava/java/awt/image/SampleModel.java: New file.
5582         * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5583         file.
5584         * libjava/java/awt/image/IndexColorModel.java: New file.
5585         * libjava/java/awt/image/ImageConsumer.java: Removed import of
5586         java.awt.ColorModel stub.
5587
5588         * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5589         * gnu/gcj/util/Buffers.java: New file, utility class.
5590
5591         * libjava/Makefile.am: Updated to include new files.
5592         * libjava/Makefile.in: Rebuilt.
5593
5594 2000-07-23  Oskar Liljeblad <osk@hem.passagen.se>
5595
5596         * java/io/StreamTokenizer.java: Merged with classpath.
5597
5598 2000-07-20  Tom Tromey  <tromey@cygnus.com>
5599
5600         * Makefile.in: Rebuilt.
5601         * Makefile.am (awt_java_source_files): Updated for new files.
5602         * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5603         * java/awt/Label.java: New file.
5604         * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5605         (createIntersection, createUnion, getBounds2D): New methods.
5606         * java/awt/Scrollbar.java: New file.
5607         * java/awt/Shape.java: Updated to 1.2.
5608         * java/awt/geom/AffineTransform.java: New file.
5609         * java/awt/geom/Ellipse2D.java: New file.
5610         * java/awt/geom/NoninvertibleTransformException.java: New file.
5611         * java/awt/geom/PathIterator.java: New file.
5612         * java/awt/geom/Rectangle2D.java: New file.
5613         * java/awt/geom/RectangularShape.java: New file.
5614         * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5615         * java/awt/geom/IllegalPathStateException.java: New file.
5616
5617         * scripts/showval.java: New file.
5618
5619         * scripts/classes.pl (scan): Print inner classes properly.
5620         * gcj/javaprims.h: Updated class list.
5621
5622         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5623         initialize String fields for interpreted classes.  Fixes bug
5624         reported by Hans Boehm.
5625
5626         * java/io/File.java (getParentFile): New method, from Classpath
5627         via Oskar Liljeblad.
5628
5629         * java/util/Vector.java (remove(Object)): Implemented.
5630
5631 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
5632
5633         * java/lang/natThrowable.cc (fillInStackTrace): Check for
5634         zero return from backtrace().
5635
5636 2000-07-15  Bryce McKinlay  <bryce@albatross.co.nz>
5637
5638         * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5639         synchronized block.
5640         * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5641         before calling notifyAll().
5642
5643 2000-07-13  Bryce McKinlay  <bryce@albatross.co.nz>
5644
5645         Add missing files from last check-in:
5646         * java/awt/image/ImageConsumer.java: New file.
5647         * java/awt/image/ImageProducer.java: New file.
5648         * java/awt/image/ImageObserver.java: New file.
5649
5650 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
5651
5652         Merged implementation of java.applet from classpath:
5653         * java/applet/Applet.java: New file.
5654         * java/applet/AppletContext.java: New file.
5655         * java/applet/AppletStub.java: New file.
5656         * java/applet/AudioClip.java: New file.
5657
5658         * Makefile.am: Added new java.applet classes.
5659         * Makefile.in: Rebuilt.
5660
5661 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
5662
5663         AWT Stuff:
5664         * java/util/ResourceBundle.java (getLocale): stub.
5665         * Makefile.am: Added new AWT classes.
5666         * Makefile.in: Rebuilt.
5667         * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5668         constructors. Fix toString() and paramString().
5669         * java/awt/AWTEventMulticaster.java: New class. Implemented.
5670         * java/awt/CheckboxGroup.java: New class.
5671         * java/awt/ColorModel.java: New class.
5672         * java/awt/Component.java: Added stubs for most methods. Implemented
5673         event dispatch.
5674         * java/awt/Container.java: ditto.
5675         * java/awt/ComponentOrientation.java: New class. Partly implemented.
5676         * java/awt/Cursor.java: ditto.
5677         * java/awt/Event.java: Fix paramString().
5678         * java/awt/EventQueue.java: New class. Implemented.
5679         * java/awt/Font.java: Added additional stub methods. Implemented
5680         toString().
5681         * java/awt/FontMetrics.java: New class. Stubbed.
5682         * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5683         Java2D parts.
5684         * java/awt/Insets.java: New class. Implemented.
5685         * java/awt/Menu.java: Add new methods. Partially implemented.
5686         * java/awt/MenuItem.java: Add new methods and fields. Partially
5687         implemented.
5688         * java/awt/MenuShortcut.java: New class. Implemented.
5689         * java/awt/Panel.java: New class. Placeholder.
5690         * java/awt/PopupMenu.java: New class. Stubbed.
5691         * java/awt/Rectangle.java: New class. Implemented.
5692         * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5693         * java/awt/event/ActionEvent.java: Implement paramString().
5694         * java/awt/event/AdjustmentEvent.java: Implement paramString().
5695         * java/awt/event/ComponentEvent.java: Implement paramString().
5696         * java/awt/event/ContainerEvent.java: Implement paramString().
5697         * java/awt/event/FocusEvent.java: Implement paramString().
5698         * java/awt/event/HierarchyBoundsAdapter.java: New class.
5699         * java/awt/event/HierarchyBoundsListener.java: New class.
5700         * java/awt/event/HierarchyEvent.java: New class.
5701         * java/awt/event/HierarchyListener.java: New class.
5702         * java/awt/event/InputMethodEvent.java: Implement paramString().
5703         * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5704         exception if !catchExceptions.
5705         * java/awt/event/ItemEvent.java: Implement paramString().
5706         * java/awt/event/KeyEvent.java: Implement paramString().
5707         * java/awt/event/MouseEvent.java: Implement paramString().
5708         * java/awt/event/PaintEvent.java: Implement paramString().
5709         * java/awt/event/TextEvent.java: Implement paramString().
5710         * java/awt/event/WindowEvent.java: Implement paramString().
5711
5712         AWT Peer interfaces:
5713         * java/awt/peer/ButtonPeer.java: New file.
5714         * java/awt/peer/ListPeer.java: New file.
5715         * java/awt/peer/CanvasPeer.java: New file.
5716         * java/awt/peer/MenuBarPeer.java: New file.
5717         * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5718         * java/awt/peer/MenuComponentPeer.java: New file.
5719         * java/awt/peer/CheckboxPeer.java: New file.
5720         * java/awt/peer/MenuItemPeer.java: New file.
5721         * java/awt/peer/ChoicePeer.java: New file.
5722         * java/awt/peer/MenuPeer.java: New file.
5723         * java/awt/peer/ComponentPeer.java: Implemented.
5724         * java/awt/peer/PanelPeer.java: New file.
5725         * java/awt/peer/ContainerPeer.java: Implemented.
5726         * java/awt/peer/PopupMenuPeer.java: New file.
5727         * java/awt/peer/DialogPeer.java: New file.
5728         * java/awt/peer/ScrollPanePeer.java: New file.
5729         * java/awt/peer/FileDialogPeer.java: New file.
5730         * java/awt/peer/ScrollbarPeer.java: New file.
5731         * java/awt/peer/FontPeer.java: New file.
5732         * java/awt/peer/TextAreaPeer.java: New file.
5733         * java/awt/peer/FramePeer.java: Implemented.
5734         * java/awt/peer/TextComponentPeer.java: New file.
5735         * java/awt/peer/LabelPeer.java: New file.
5736         * java/awt/peer/TextFieldPeer.java: New file.
5737         * java/awt/peer/LightweightPeer.java: New file.
5738         * java/awt/peer/WindowPeer.java: Implemented.
5739
5740 2000-07-06  Tom Tromey  <tromey@cygnus.com>
5741
5742         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5743         Initialize static final String fields.
5744
5745 2000-07-03  Tom Tromey  <tromey@cygnus.com>
5746
5747         * java/io/PrintWriter.java (print): Call write(String), not
5748         print(String).  See PR libgcj/277.
5749         (print(String)): Use write, not out.write.
5750
5751 2000-06-30  Tom Tromey  <tromey@cygnus.com>
5752
5753         * include/jni.h: Include <gcj/array.h>.  Fixes PR libgcj/270.
5754
5755 2000-06-27  Andrew Haley  <aph@cygnus.com>
5756
5757        * java/io/File.java (createTempFile): Close the FileDescriptor
5758        used to create a temp file.  Fixes some of PR 203.
5759        * java/io/natFileDescriptorPosix.cc (open): Call garbage
5760        collection if we run out of file handles.
5761
5762 2000-06-28  Warren Levy  <warrenl@cygnus.com>
5763
5764         * gnu/java/security/provider/Gnu.java: New file.
5765         * gnu/java/security/provider/SHA.java: New file.
5766         * gnu/java/security/provider/SHA1PRNG.java: New file.
5767         * Makefile.am: Added the above files.
5768         * Makefile.in: Rebuilt.
5769
5770         * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5771
5772 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
5773
5774         * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5775         (destroyed_flag): Removed.
5776         (isDestroyed, removeGroup, removeThread): Test for parent == null.
5777         (activeCount): Added spec note.
5778
5779 2000-06-27  Warren Levy  <warrenl@cygnus.com>
5780
5781         * java/security/Principal.java: New file.
5782         * Makefile.am: Added Principal.java.
5783         * Makefile.in: Rebuilt.
5784
5785 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
5786
5787         * java/awt/event/MouseEvent.java: Fixed coordinate space
5788         confusion.
5789
5790 2000-06-27  Tom Tromey  <tromey@cygnus.com>
5791
5792         * java/io/PushbackInputStream.java (read): If there are characters
5793         in the buffer, don't also call super.read().
5794         * java/io/PushbackReader.java (read): If there are characters in
5795         the buffer, don't also call super.read().
5796
5797         * java/lang/Double.java (valueOf): Call parseDouble().
5798
5799 2000-06-26  Warren Levy  <warrenl@cygnus.com>
5800
5801         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5802         (newVal): Renamed to newValue.
5803         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5804         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5805         (revokeNow): Renamed to invalidateRefs.
5806         * java/io/OptionalDataException.java: Updated FIXME.
5807         (eof): New placeholder field.
5808         (length); Ditto.
5809         * java/io/WriteAbortedException.java (message): Made transient.
5810         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5811         * java/lang/Throwable.java (stackTrace): Made transient.
5812         * java/net/InetAddress.java: Made Serializable.
5813         * java/security/KeyPair.java: Made Serializable.
5814         * java/security/Provider.java: Replaced with Classpath version that
5815         implements serialization and proper methods.
5816         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5817         (limits): Renamed to choiceLimits.
5818
5819 2000-06-24  Tom Tromey  <tromey@cygnus.com>
5820
5821         * java/lang/natDouble.cc (parseDouble): Renamed from
5822         doubleValueOf.
5823         * java/lang/Double.java (parseDouble): Renamed from
5824         doubleValueOf.  Now public.
5825
5826 2000-06-23  Andrew Haley  <aph@cygnus.com>
5827
5828         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5829         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5830
5831 2000-06-23  Tom Tromey  <tromey@cygnus.com>
5832
5833         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5834         * java/lang/natDouble.cc: Always include <alloca.h>.
5835         Fix for PR libgcj/267.
5836
5837 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
5838
5839         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5840         comply with classpath VM spec.
5841         (add(Group)): Rename to addGroup().
5842         * java/lang/Thread.java (Thread): Use addThread().
5843         * java/lang/natThread.cc (finish_): Use removeThread().
5844
5845 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
5846
5847         * java/lang/ThreadGroup.java: Merged with classpath.
5848         * prims.cc (_Jv_RunMain): Don't use `main_group'.
5849         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5850         argument.
5851         * java/lang/Thread.java (Thread): Bootstrap initial thread from
5852         ThreadGroup.root if Thread.currentThread is null. Honour the
5853         ThreadGroup's max priority setting.
5854
5855 2000-06-18  Tom Tromey  <tromey@cygnus.com>
5856
5857         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
5858         returned class.  For PR gcj/260.
5859
5860 2000-06-16  Tom Tromey  <tromey@cygnus.com>
5861
5862         Fix for PR libgcj/261:
5863         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5864         argument.
5865         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5866         argument.  (This is a patch from long ago that somehow went
5867         missing.)
5868
5869 2000-06-15  Tom Tromey  <tromey@cygnus.com>
5870
5871         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5872         (read): Use it.
5873         (write): Likewise.
5874
5875 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
5876
5877         Fix for PR java.lang/258:
5878         * prims.cc (_Jv_PrimClass): Set state of primitive class to
5879         JV_STATE_DONE, to prevent accidental initialization.
5880         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5881         _Jv_InterfaceAssignableFrom if target is an interface and source is an
5882         interface or an abstract class. Remove redundant initializeClass calls.
5883         Remove duplicate if_idt test.
5884         (_Jv_InterfaceAssignableFrom): New function.
5885         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5886
5887 2000-05-31  Tom Tromey  <tromey@cygnus.com>
5888
5889         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5890         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5891         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5892         (NUM_OBJECT_METHODS): New define.
5893         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5894         `array_vtable' parameter.  Added assertion.
5895         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5896         parameter.
5897
5898 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
5899
5900         * gcj/cni.h: Include <string.h>.
5901         * defineclass.cc: Include <alloca.h>.
5902         * interpret.cc: Ditto.
5903         * gij.cc: Include <stdlib.h>.
5904
5905 2000-05-30  Tom Tromey  <tromey@cygnus.com>
5906
5907         * include/name-finder.h: Include <sys/wait.h>.
5908         (_Jv_name_finder::pid): Now of type `pid_t'.
5909         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5910         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5911         `proc.waitFor()'.
5912
5913 2000-05-24  Warren Levy  <warrenl@cygnus.com>
5914
5915         * java/io/ObjectOutputStream.java (writeObject): Use component type
5916         when writing arrays.
5917         Fixed typo.
5918
5919 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
5920
5921         Fix for PR libgcj/226:
5922         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5923         since this is an installed header.
5924
5925         Fix for PR libgcj/228:
5926         * java/util/zip/ZipFile (getInputStream): Create inflater with
5927         nowrapper option.
5928
5929         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5930         with DataFormatException.
5931
5932 2000-05-20  Tom Tromey  <tromey@cygnus.com>
5933
5934         * Makefile.in: Rebuilt.
5935         * Makefile.am (hack1): Removed.
5936         (awto_files): Likewise.
5937         (libgcjawt_la_SOURCES): Likewise.
5938         (EXTRA_libgcjawt_la_SOURCES): Likewise.
5939         (libgcjawt_la_DEPENDENCIES): Likewise.
5940         (libgcjawt_la_LIBADD): Likewise.
5941         (libgcjawt_la_LDFLAGS): Likewise.
5942         (libgcjawt_la_LINK): Likewise.
5943         ($(awt_java_source_files:.java=.class)): Likewise.
5944         (libgcj.zip): Don't depend on AWT files.
5945         (MOSTLYCLEANFILES): Don't include AWT files.
5946         ($(awto_files)): Removed.
5947         (nat_headers): Removed AWT files.
5948         (cond_awt_java_source_files): Removed.
5949         (ordinary_java_source_files): Added awt_java_source_files.
5950         * libgcj.spec.in (*lib): Removed -lgcjawt.
5951         * configure: Rebuilt.
5952         * configure.in: Removed --enable-java-awt option.
5953
5954 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
5955
5956         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5957         (ZipEntry): Copy the `name' field.
5958         (clone): Implement JDK1.2 method.
5959         (setCompressedSize): ditto.
5960         (hashCode): ditto.
5961
5962 2000-05-19  Tom Tromey  <tromey@cygnus.com>
5963
5964         * java/io/BufferedWriter.java: Merged with Classpath.
5965         * java/io/BufferedOutputStream.java: Merged with Classpath.
5966
5967 2000-05-16  Andrew Haley  <aph@cygnus.com>
5968
5969         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5970         build_ia64_frame_state.
5971         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5972         defintion in gcc.
5973
5974 2000-05-15  Warren Levy  <warrenl@cygnus.com>
5975
5976         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5977         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5978         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5979         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5980         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5981         * gnu/gcj/beans/editors/FontEditor.java: Removed.
5982         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5983         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5984         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5985         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5986         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5987         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5988         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5989         * gnu/gcj/beans/editors/StringEditor.java: Removed.
5990         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5991         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5992         * gnu/gcj/io/NullOutputStream.java: Removed.
5993         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5994         * gnu/gcj/lang/ArrayHelper.java: Removed.
5995         * gnu/gcj/lang/ClassHelper.java: Removed.
5996         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5997
5998         * gnu/java/beans/BeanInfoEmbryo.java: New file.
5999         * gnu/java/beans/EmptyBeanInfo.java: New file.
6000         * gnu/java/beans/ExplicitBeanInfo.java: New file.
6001         * gnu/java/beans/IntrospectionIncubator.java: New file.
6002         * gnu/java/beans/editors/ColorEditor.java: New file.
6003         * gnu/java/beans/editors/FontEditor.java: New file.
6004         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
6005         * gnu/java/beans/editors/NativeByteEditor.java: New file.
6006         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
6007         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
6008         * gnu/java/beans/editors/NativeIntEditor.java: New file.
6009         * gnu/java/beans/editors/NativeLongEditor.java: New file.
6010         * gnu/java/beans/editors/NativeShortEditor.java: New file.
6011         * gnu/java/beans/editors/StringEditor.java: New file.
6012         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
6013         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
6014         * gnu/java/io/NullOutputStream.java: New file.
6015         * gnu/java/io/ObjectIdentityWrapper.java: New file.
6016         * gnu/java/lang/ArrayHelper.java: New file.
6017         * gnu/java/lang/ClassHelper.java: New file.
6018         * gnu/java/lang/reflect/TypeSignature.java: New file.
6019
6020         * Makefile.am: Updated for moving Classpath files from gnu/gcj
6021         namespace back to the original Classpath gnu/java namespace.
6022         * Makefile.in: Rebuilt.
6023
6024         * java/beans/Beans.java: Namespace change.
6025         * java/beans/EventSetDescriptor.java: Namespace change.
6026         * java/beans/Introspector.java: Namespace change.
6027         * java/beans/PropertyEditorManager.java: Namespace change.
6028         * java/io/ObjectInputStream.java: Namespace change.
6029         * java/io/ObjectOutputStream.java: Namespace change.
6030         * java/io/ObjectStreamClass.java: Namespace change.
6031         * java/io/ObjectStreamField.java: Namespace change.
6032
6033 2000-04-21  Warren Levy  <warrenl@cygnus.com>
6034
6035         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
6036         now that compiler patch is available.
6037         Removed unneeded System.loadLibrary.
6038         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
6039         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
6040
6041 2000-04-19  Andrew Haley  <aph@cygnus.com>
6042
6043         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
6044         and target classes have been initialized.
6045
6046 2000-04-19  Andrew Haley  <aph@cygnus.com>
6047
6048         * java/lang/String.java: implement Serializable, Comparable.
6049         (compareTo (Object)): New method.
6050
6051 2000-04-19  Warren Levy  <warrenl@cygnus.com>
6052
6053         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
6054         instead of getField to retrieve non-public field.
6055         (getSerialPersistantFields): Ditto.
6056
6057 2000-04-18  Warren Levy  <warrenl@cygnus.com>
6058
6059         * mauve-libgcj: Turned off object serialization tests temporarily
6060         due to compiler error.
6061
6062 2000-04-17  Warren Levy  <warrenl@cygnus.com>
6063
6064         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
6065         to avoid build problem.
6066         (DEBUGln): Ditto.
6067         * mauve-libgcj: Turned on object serialization tests.
6068
6069 2000-04-17  Tom Tromey  <tromey@cygnus.com>
6070
6071         * libgcj.spec.in (*lib): Added -lgcjawt.
6072
6073 2000-04-17  Andrew Haley  <aph@cygnus.com>
6074
6075         * Makefile.am: Add new files:
6076         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
6077         gnu/gcj/io/shs.cc.
6078         * Makefile.in: Rebuilt.
6079
6080         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
6081         interface that has no implementations.
6082         Check for an attempt to assign an abstract class to an interface.
6083
6084         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
6085         if we fail to find MessageDigest.getInstance ("SHA").
6086
6087         * gnu/gcj/io/SimpleSHSStream.java: New file.
6088         * gnu/gcj/io/natSimpleSHSStream.java: New file.
6089         * gnu/gcj/io/shs.cc: New file.
6090         * gnu/gcj/io/shs.h: new file.
6091
6092         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
6093         serializable.
6094
6095         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
6096         punctuation from the classname of an array element.
6097
6098         * gcj/javaprims.h: Add SimpleDigestStream.
6099
6100 2000-04-17  Andrew Haley  <aph@cygnus.com>
6101
6102         * java/lang/natClass.cc (getPrivateField): Make recursive calls
6103         to getPrivateField for superclasses.
6104
6105 2000-04-14  Andrew Haley  <aph@cygnus.com>
6106
6107         * Makefile.am: Add new files:
6108         java/io/ObjectOutputStream$PutField.h,
6109         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
6110         java/io/natObjectOutputStream.cc
6111         * Makefile.in: Rebuilt.
6112         * gcj/Makefile.in: Rebuilt.
6113         * include/Makefile.in: Rebuilt.
6114         * java/lang/Class.h (getPrivateField): New method.
6115         (getPrivateMethod): Ditto.
6116         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
6117         and java::io::ObjectStreamClass our friends.
6118         * java/lang/natClass.cc (getPrivateField): New method.
6119         (getPrivateMethod): Ditto.
6120         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
6121         * gcj/javaprims.h: Add serialization classes.
6122         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
6123         (setByteField): Ditto.
6124         (setCharField): Ditto.
6125         (setDoubleField): Ditto.
6126         (setFloatField): Ditto.
6127         (setIntField): Ditto.
6128         (setLongField): Ditto.
6129         (setShortField): Ditto.
6130         (setObjectField): Ditto.
6131         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
6132         Java.
6133         (getByteField): Ditto.
6134         (getCharField): Ditto.
6135         (getDoubleField): Ditto.
6136         (getFloatField): Ditto.
6137         (getIntField): Ditto.
6138         (getLongField): Ditto.
6139         (getShortField): Ditto.
6140         (getObjectField): Ditto.
6141         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
6142         Java.
6143         (getSerialPersistantFields): Ditto.
6144         (getDefinedSUID): Ditto.
6145         * java/io/natObjectOutputStream.cc: New file.
6146         * java/io/natObjectInputStream.cc: New file.
6147
6148 2000-04-13  Warren Levy  <warrenl@cygnus.com>
6149
6150         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
6151         problems.  Revert to previous version to reproduce and when fixed.
6152
6153 2000-04-13  Warren Levy  <warrenl@cygnus.com>
6154
6155         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
6156         * gnu/gcj/io/NullOutputStream.java: New file.
6157         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
6158         * java/io/BlockDataException.java: New file.
6159         * java/io/Externalizable.java: New file.
6160         * java/io/InvalidClassException.java: New file.
6161         * java/io/InvalidObjectException.java: New file.
6162         * java/io/NotActiveException.java: New file.
6163         * java/io/NotSerializableException.java: New file.
6164         * java/io/ObjectInput.java: New file.
6165         * java/io/ObjectInputStream.java: New file.
6166         * java/io/ObjectInputValidation.java: New file.
6167         * java/io/ObjectOutput.java: New file.
6168         * java/io/ObjectOutputStream.java: New file.
6169         * java/io/ObjectStreamClass.java: New file.
6170         * java/io/ObjectStreamConstants.java: New file.
6171         * java/io/ObjectStreamField.java: New file.
6172         * java/io/Replaceable.java: New file.
6173         * java/io/Resolvable.java: New file.
6174         * java/io/SerializablePermission.java: New file.
6175         * java/io/WriteAbortedException.java: New file.
6176         * java/security/BasicPermission.java: New file.
6177         * java/security/DigestOutputStream.java: New file.
6178         * java/security/Guard.java: New file.
6179         * java/security/Permission.java: New file.
6180         * java/security/PermissionCollection.java: New file.
6181         * Makefile.am: Added above files.
6182         * Makefile.in: Rebuilt.
6183
6184         * java/beans/Beans.java (instantiate): Activated serialization code.
6185         * java/lang/SecurityManager.java (checkPermission): New method.
6186
6187 2000-04-12  Warren Levy  <warrenl@cygnus.com>
6188
6189         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
6190         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
6191         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
6192         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
6193         * gnu/gcj/beans/editors/ColorEditor.java: New file.
6194         * gnu/gcj/beans/editors/FontEditor.java: New file.
6195         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
6196         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
6197         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
6198         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
6199         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
6200         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
6201         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
6202         * gnu/gcj/beans/editors/StringEditor.java: New file.
6203         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
6204         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
6205         * gnu/gcj/lang/ArrayHelper.java: New file.
6206         * gnu/gcj/lang/ClassHelper.java: New file.
6207         * java/beans/BeanDescriptor.java: New file.
6208         * java/beans/BeanInfo.java: New file.
6209         * java/beans/Beans.java: New file.
6210         * java/beans/Customizer.java: New file.
6211         * java/beans/DesignMode.java: New file.
6212         * java/beans/EventSetDescriptor.java: New file.
6213         * java/beans/FeatureDescriptor.java: New file.
6214         * java/beans/IndexedPropertyDescriptor.java: New file.
6215         * java/beans/IntrospectionException.java: New file.
6216         * java/beans/Introspector.java: New file.
6217         * java/beans/MethodDescriptor.java: New file.
6218         * java/beans/ParameterDescriptor.java: New file.
6219         * java/beans/PropertyChangeEvent.java: New file.
6220         * java/beans/PropertyChangeListener.java: New file.
6221         * java/beans/PropertyChangeSupport.java: New file.
6222         * java/beans/PropertyDescriptor.java: New file.
6223         * java/beans/PropertyEditor.java: New file.
6224         * java/beans/PropertyEditorManager.java: New file.
6225         * java/beans/PropertyEditorSupport.java: New file.
6226         * java/beans/PropertyVetoException.java: New file.
6227         * java/beans/SimpleBeanInfo.java: New file.
6228         * java/beans/VetoableChangeListener.java: New file.
6229         * java/beans/VetoableChangeSupport.java: New file.
6230         * java/beans/Visibility.java: New file.
6231         * java/beans/beancontext/BeanContext.java: New file.
6232         * java/beans/beancontext/BeanContextChild.java: New file.
6233         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6234         * java/beans/beancontext/BeanContextChildSupport.java: New file.
6235         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6236         * java/beans/beancontext/BeanContextEvent.java: New file.
6237         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6238         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6239         * java/beans/beancontext/BeanContextProxy.java: New file.
6240         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6241         New file.
6242         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6243         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6244         New file.
6245         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6246         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6247         New file.
6248         * java/beans/beancontext/BeanContextServices.java: New file.
6249         * java/beans/beancontext/BeanContextServicesListener.java: New file.
6250         * java/util/AbstractCollection.java: New file.
6251         * java/util/AbstractList.java: New file.
6252         * java/util/Arrays.java: New file.
6253         * Makefile.am: Added above files.
6254         * Makefile.in: Rebuilt.
6255
6256 2000-04-11  Warren Levy  <warrenl@cygnus.com>
6257
6258         * java/awt/AWTError.java: New file.
6259         * java/awt/AWTEvent.java: New file.
6260         * java/awt/AWTException.java: New file.
6261         * java/awt/ActiveEvent.java: New file.
6262         * java/awt/Adjustable.java: New file.
6263         * java/awt/BorderLayout.java: New file.
6264         * java/awt/Color.java: New file.
6265         * java/awt/Component.java: New file.
6266         * java/awt/Container.java: New file.
6267         * java/awt/Dimension.java: New file.
6268         * java/awt/Event.java: New file.
6269         * java/awt/Font.java: New file.
6270         * java/awt/Frame.java: New file.
6271         * java/awt/Graphics.java: New file.
6272         * java/awt/IllegalComponentStateException.java: New file.
6273         * java/awt/Image.java: New file.
6274         * java/awt/ItemSelectable.java: New file.
6275         * java/awt/LayoutManager.java: New file.
6276         * java/awt/LayoutManager2.java: New file.
6277         * java/awt/Menu.java: New file.
6278         * java/awt/MenuBar.java: New file.
6279         * java/awt/MenuComponent.java: New file.
6280         * java/awt/MenuContainer.java: New file.
6281         * java/awt/MenuItem.java: New file.
6282         * java/awt/Paint.java: New file.
6283         * java/awt/PaintContext.java: New file.
6284         * java/awt/Point.java: New file.
6285         * java/awt/Rectangle.java: New file.
6286         * java/awt/Shape.java: New file.
6287         * java/awt/TextArea.java: New file.
6288         * java/awt/TextComponent.java: New file.
6289         * java/awt/Toolkit.java: New file.
6290         * java/awt/Transparency.java: New file.
6291         * java/awt/Window.java: New file.
6292         * java/awt/natToolkit.cc: New file.
6293         * java/awt/event/AWTEventListener.java: New file.
6294         * java/awt/event/ActionEvent.java: New file.
6295         * java/awt/event/ActionListener.java: New file.
6296         * java/awt/event/AdjustmentEvent.java: New file.
6297         * java/awt/event/AdjustmentListener.java: New file.
6298         * java/awt/event/ComponentAdapter.java: New file.
6299         * java/awt/event/ComponentEvent.java: New file.
6300         * java/awt/event/ComponentListener.java: New file.
6301         * java/awt/event/ContainerAdapter.java: New file.
6302         * java/awt/event/ContainerEvent.java: New file.
6303         * java/awt/event/ContainerListener.java: New file.
6304         * java/awt/event/FocusAdapter.java: New file.
6305         * java/awt/event/FocusEvent.java: New file.
6306         * java/awt/event/FocusListener.java: New file.
6307         * java/awt/event/InputEvent.java: New file.
6308         * java/awt/event/InputMethodEvent.java: New file.
6309         * java/awt/event/InputMethodListener.java: New file.
6310         * java/awt/event/InvocationEvent.java: New file.
6311         * java/awt/event/ItemEvent.java: New file.
6312         * java/awt/event/ItemListener.java: New file.
6313         * java/awt/event/KeyAdapter.java: New file.
6314         * java/awt/event/KeyEvent.java: New file.
6315         * java/awt/event/KeyListener.java: New file.
6316         * java/awt/event/MouseAdapter.java: New file.
6317         * java/awt/event/MouseEvent.java: New file.
6318         * java/awt/event/MouseListener.java: New file.
6319         * java/awt/event/MouseMotionAdapter.java: New file.
6320         * java/awt/event/MouseMotionListener.java: New file.
6321         * java/awt/event/PaintEvent.java: New file.
6322         * java/awt/event/TextEvent.java: New file.
6323         * java/awt/event/TextListener.java: New file.
6324         * java/awt/event/WindowAdapter.java: New file.
6325         * java/awt/event/WindowEvent.java: New file.
6326         * java/awt/event/WindowListener.java: New file.
6327         * java/awt/geom/Dimension2D.java: New file.
6328         * java/awt/geom/Point2D.java: New file.
6329         * java/awt/peer/ComponentPeer.java: New file.
6330         * java/awt/peer/ContainerPeer.java: New file.
6331         * java/awt/peer/FramePeer.java: New file.
6332         * java/awt/peer/WindowPeer.java: New file.
6333         * java/util/Collection.java: New file.
6334         * java/util/Comparator.java: New file.
6335         * java/util/Iterator.java: New file.
6336         * java/util/List.java: New file.
6337         * java/util/ListIterator.java: New file.
6338         * Makefile.am: Added above files.
6339         * Makefile.in: Rebuilt.
6340
6341 2000-04-10  Warren Levy  <warrenl@cygnus.com>
6342
6343         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6344         * java/lang/FirstThread.java: Ditto.
6345         * java/lang/StringBuffer.java: Ditto.
6346         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6347
6348         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6349         Special case handled in java.math.BigInteger.
6350         * java/math/BigInteger.java (divide): Handle the special case when
6351         dividing by 1 and the high bit of the dividend is set.
6352         (setShiftRight): Handle case when count == 0.
6353
6354 2000-04-05  Andrew Haley  <aph@cygnus.com>
6355
6356         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6357         special case.
6358
6359 2000-04-05  Andrew Haley  <aph@cygnus.com>
6360
6361         * sysdep/ia64.c (rse_address_add): Delete.
6362         (IS_NaT_COLLECTION_ADDR): Delete.
6363         (ia64_backtrace_helper): check for null unwind_info.
6364
6365         * sysdep/ia64-frame.h: add calc_caller_bsp.
6366
6367         * java/lang/natThrowable.cc (printRawStackTrace): Flush
6368         PrintWriter.
6369
6370         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6371         (_Jv_remI): Likewise.
6372         (_Jv_divJ): Likewise.
6373         (_Jv_remJ): Likewise.
6374
6375         * interpret.cc (continue1): Use divide subroutines to guarantee
6376         correct Java standard behaviour.
6377         Floating-point division should not abort; make it so.
6378
6379 2000-03-29  Tom Tromey  <tromey@cygnus.com>
6380
6381         * configure: Rebuilt.
6382         * configure.in: Test against `libgcj_sjlj', not
6383         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
6384         to be set even when using sjlj.
6385
6386 2000-03-24  Andrew Haley  <aph@cygnus.com>
6387
6388         * Makefile.am: Add file addr2name.awk.
6389         * Makefile.in: Rebuilt.
6390         * addr2name.awk: New file.
6391         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6392         lookups on ia64.
6393         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6394         blank line.
6395
6396 2000-03-22  Andrew Haley  <aph@cygnus.com>
6397
6398         * configure.host: Add -funwind-tables for IA64.
6399         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6400         * Makefile.in: Rebuilt.
6401         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6402         * sysdep/ia64.c: New file.
6403         * sysdep/ia64-frame.h: New file.
6404         * configure.in: Add sysdep/ia64.c for ia64.
6405         * configure: Rebuilt.
6406
6407 2000-03-17  Andrew Haley  <aph@cygnus.com>
6408
6409         * java/lang/natString.cc: Remove `register' keyword.
6410         interpret.cc: ditto.
6411
6412 2000-03-16  Andrew Haley  <aph@cygnus.com>
6413
6414         * configure.host (ia64): Enable interpreter.
6415
6416 2000-03-14  Hans Boehm  <boehm@acm.org>
6417
6418         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6419
6420 2000-03-14  Andrew Haley  <aph@cygnus.com>
6421
6422         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6423         `_exception'.
6424
6425 2000-03-10  Andrew Haley  <aph@cygnus.com>
6426
6427         * java/lang/ieeefp.h: Import latest version from fdlibm.
6428
6429 2000-03-14  Andrew Haley  <aph@cygnus.com>
6430
6431         * prims.cc (_Jv_ThrowSignal): New function.
6432         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6433         (catch_fpe): Ditto.
6434         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6435         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6436         * include/ppc-signal.h: New file.
6437
6438 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
6439
6440         * java/lang/Thread.java: Declare `data' as Object, not RawData.
6441         * java/lang/natThread.java (initialize_native): Cast `data' to
6442         jobject.
6443         * gnu/gcj/RawData.java: Clarify documentation.
6444
6445         From Gregory R. Warnes <warnes@biostat.washington.edu>:
6446         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6447         `jarFile', not `jarFileURL'.
6448
6449 2000-05-15  Andrew Haley  <aph@cygnus.com>
6450
6451         * include/ppc-signal.h: New file.
6452
6453 2000-05-11  Tom Tromey  <tromey@cygnus.com>
6454
6455         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6456         file headers, don't include `size' in the skip call.
6457
6458 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
6459
6460         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6461         Avoid arrayCopy() call where possible. Update `count' _after_ calling
6462         arrayCopy().
6463         (replace): Reimplemented. Fix javadoc.
6464         (reverse): Call ensureCapacity_unsynchronized().
6465         (StringBuffer (String)): Use DEFAULT_CAPACITY.
6466
6467         (replace): Calculate length for arraycopy() correctly.
6468
6469 2000-05-09  Tom Tromey  <tromey@cygnus.com>
6470
6471         * java/lang/StringBuffer.java (toString): Don't mark buffer as
6472         shared.
6473         (insert(int,char[],int,int): New method.
6474         (delete): New method from Classpath.
6475         (deleteCharAt): Likewise.
6476         (substring): Likewise.
6477         (shared): No longer private.
6478         Added JavaDoc comments from Classpath.
6479         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6480         shared.
6481
6482 2000-05-07  Tom Tromey  <tromey@cygnus.com>
6483
6484         * Makefile.in: Rebuilt.
6485         * Makefile.am (LIBLINK): New macro.
6486         (libgcj_la_LINK): Use it.
6487         (libgcjawt_la_LINK): Likewise.
6488
6489 2000-05-06  Tom Tromey  <tromey@cygnus.com>
6490
6491         * Makefile.in: Rebuilt.
6492         * Makefile.am (libgcj.zip): Don't pass -L to javac.
6493
6494 2000-05-05  Tom Tromey  <tromey@cygnus.com>
6495
6496         Fix for PR libgcj/220:
6497         * Makefile.in: Rebuilt.
6498         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6499         (jv_convert_LDFLAGS): Likewise.
6500         (libgcj_la_LDFLAGS): Likewise.
6501         (GCJLINK): New macro.
6502         (jv_convert_LINK): Use it.
6503         (gij_LINK): Likewise.
6504         (libgcj_la_LINK): New macro.
6505         (libgcjawt_la_LINK): Likewise.
6506
6507 2000-05-04  Tom Tromey  <tromey@cygnus.com>
6508
6509         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6510         field.
6511         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
6512         `0x0008'.
6513         Include Modifier.h.
6514
6515 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
6516
6517         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6518         (_Jv_IsAssignableFrom): Ditto.
6519         (_Jv_IsInstanceOf): Ditto.
6520         (_Jv_CheckCast): Ditto.
6521         (_Jv_CheckArrayStore): Ditto.
6522         * java/lang/Class.h (_Jv_InitClass): Ditto.
6523         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6524         not `0'.
6525         (notify): Ditto.
6526         (notifyAll): Ditto.
6527         (wait): Ditto.
6528         (_Jv_MonitorExit): Ditto.
6529         * boehm.cc (_Jv_MarkObj): Ditto.
6530         (_Jv_MarkObj): Ditto.
6531         (_Jv_MarkArray): Ditto.
6532         * prims.cc (_Jv_AllocObject): Ditto.
6533         (_Jv_NewObjectArray): Ditto.
6534         (_Jv_NewPrimArray): Ditto.
6535         (_Jv_Malloc): Ditto.
6536         (_Jv_Realloc): Ditto.
6537         (_Jv_MallocUnchecked): Ditto.
6538         (_Jv_divI): Ditto.
6539         (_Jv_remI): Ditto.
6540         (_Jv_divJ): Ditto.
6541         (_Jv_remJ): Ditto.
6542
6543 2000-05-04  Tom Tromey  <tromey@cygnus.com>
6544
6545         * java/util/Locale.java (Locale): Don't explicitly check for
6546         null.
6547         * java/util/Hashtable.java (containsKey): Don't explicitly check
6548         for null.
6549         (get): Likewise.
6550         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6551         null.
6552         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6553         for null.
6554         * java/text/StringCharacterIterator.java
6555         (StringCharacterIterator): Don't check for null.
6556         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6557         for null pointer.
6558         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6559         check for null pointer.
6560         (leaveGroup): Likewise.
6561         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6562         comment.
6563         (setData): Likewise.
6564         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6565         for `p==null'.
6566
6567 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
6568
6569         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6570         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6571         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6572         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6573         -rpath for in-gcc builds.
6574         * Makefile.in: Rebuilt.
6575
6576 2000-04-28  Tom Tromey  <tromey@cygnus.com>
6577
6578         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6579         Fix for PR gcj/218.
6580
6581 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
6582
6583         * libjava/java/lang/String.java (toString): Remove `final' hack.
6584
6585 2000-04-05  Tom Tromey  <tromey@cygnus.com>
6586
6587         Runtime support for PR gcj/2:
6588         * prims.cc (_Jv_ThrowNullPointerException): New function.
6589         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6590
6591 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
6592
6593         * prims.cc (_Jv_NewObjectArray): Fix typo.
6594
6595 2000-04-26  Tom Tromey  <tromey@cygnus.com>
6596
6597         * Makefile.in: Rebuilt.
6598         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6599
6600 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
6601
6602         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6603         calling main.
6604
6605 2000-04-22  Anthony Green  <green@cygnus.com>
6606
6607         * include/jvm.h (__builtin_expect): Define as unused for now.
6608         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6609         (notify): Ditto.
6610         (notifyAll): Ditto.
6611         (wait): Ditto.
6612         (_Jv_MonitorExit): Ditto.
6613         * boehm.cc (_Jv_MarkObj): Ditto.
6614         (_Jv_MarkObj): Ditto.
6615         (_Jv_MarkArray): Ditto.
6616         (_Jv_AllocBytes): Ditto.
6617         * prims.cc (_Jv_AllocObject): Ditto.
6618         (_Jv_NewObjectArray): Ditto.
6619         (_Jv_NewPrimArray): Ditto.
6620         (_Jv_Malloc): Ditto.
6621         (_Jv_Realloc): Ditto.
6622         (_Jv_MallocUnchecked): Ditto.
6623         (_Jv_divI): Ditto.
6624         (_Jv_remI): Ditto.
6625         (_Jv_divJ): Ditto.
6626         (_Jv_remJ): Ditto.
6627
6628         * include/Makefile.in: Rebuilt.
6629         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6630
6631 2000-04-21  Tom Tromey  <tromey@cygnus.com>
6632
6633         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6634         Yet another new version from Classpath.
6635
6636         Fix for PR libgcj/15:
6637         * java/util/natGregorianCalendar.cc (_REENTRANT,
6638         _POSIX_PTHREAD_SEMANTICS): Don't define.
6639         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6640         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6641         Don't define.
6642         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6643         define.
6644         * configure: Rebuilt.
6645         * configure.in: If using POSIX threads, define _REENTRANT if
6646         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
6647         GETHOSTBYNAME_R_NEEDS_REENTRANT.
6648
6649         * java/io/PipedInputStream.java, java/io/PipedReader.java,
6650         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6651         version from Classpath.
6652
6653         Fix for PR libgcj/213:
6654         * Makefile.in: Rebuilt.
6655         * Makefile.am (gij_SOURCES): Added gij.cc.
6656         (EXTRA_gij_SOURCES): Removed.
6657         (gij_LDADD): Removed gij.lo.
6658         (gij_DEPENDENCIES): Likewise.
6659         ($(gij_OBJECTS)): Depend on nat_headers.
6660
6661         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6662         `setURL', not `url.set'.
6663
6664 2000-04-20  Tom Tromey  <tromey@cygnus.com>
6665
6666         Fix for PR java.io/204:
6667         * java/io/PipedInputStream.java, java/io/PipedReader.java,
6668         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6669         from Classpath.
6670
6671         Fix for PR libgcj/212:
6672         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6673         * include/jvm.h (_Jv_word, _Jv_word2): Define.
6674         * java/lang/Class.h (_Jv_word): Declare.
6675
6676         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6677
6678 2000-04-19  Tom Tromey  <tromey@cygnus.com>
6679
6680         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6681         doesn't have a loader.
6682
6683 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
6684
6685         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6686         MAYBE_MARK to ptr_t, for compatibility with new GC version.
6687
6688 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
6689
6690         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6691         libgcj/202.
6692         (available): Initialize `where' to prevent bogus compiler warning.
6693
6694 2000-04-12  Tom Tromey  <tromey@cygnus.com>
6695
6696         * java/lang/natString.cc (intern): Temporarily disable finalizer
6697         registration.
6698
6699         * java/lang/natString.cc (unintern): Added `obj' argument.
6700         (intern): Register finalizer for string.
6701         * java/lang/String.java (unintern): Now static; added obj
6702         argument.
6703
6704 2000-04-11  Tom Tromey  <tromey@cygnus.com>
6705
6706         * java/util/Vector.java (VectorEnumeration): Now `final'.
6707         * java/util/Hashtable.java (HashtableEntry): Now `final'.
6708         (HashtableEnumeration): Likewise.
6709         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6710         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6711
6712 2000-04-10  Warren Levy  <warrenl@cygnus.com>
6713
6714         * java/io/ObjectStreamException.java: New file.
6715         * java/io/OptionalDataException.java: New file.
6716         * java/io/StreamCorruptedException.java: New file.
6717         * java/math/BigDecimal.java: New file.
6718         * java/sql/CallableStatement.java: New file.
6719         * java/sql/Connection.java: New file.
6720         * java/sql/DataTruncation.java: New file.
6721         * java/sql/DatabaseMetaData.java: New file.
6722         * java/sql/Date.java: New file.
6723         * java/sql/Driver.java: New file.
6724         * java/sql/DriverManager.java: New file.
6725         * java/sql/DriverPropertyInfo.java: New file.
6726         * java/sql/PreparedStatement.java: New file.
6727         * java/sql/ResultSet.java: New file.
6728         * java/sql/ResultSetMetaData.java: New file.
6729         * java/sql/SQLException.java: New file.
6730         * java/sql/SQLWarning.java: New file.
6731         * java/sql/Statement.java: New file.
6732         * java/sql/Time.java: New file.
6733         * java/sql/Timestamp.java: New file.
6734         * java/sql/Types.java: New file.
6735         * Makefile.am: Added above new files.
6736         * Makefile.in: Rebuilt.
6737
6738         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6739         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6740         DatagramSocket constructor instead of null.
6741
6742 2000-04-08  Anthony Green  <green@cygnus.com>
6743
6744         * include/posix-threads.h (_Jv_MutexUnlock): Replace
6745         _JV_NOT_OWNER.
6746
6747 2000-04-08  Anthony Green  <green@cygnus.com>
6748
6749         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6750         (_Jv_MutexUnlock): Ditto.
6751         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6752         (_Jv_MutexUnlock): Ditto.
6753
6754 2000-04-08  Anthony Green  <green@cygnus.com>
6755
6756         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6757         (ensureCapacity_unsynchronized): New private method.
6758         (append): Use ensureCapacity_unsynchronized.
6759
6760 2000-04-08  Tom Tromey  <tromey@cygnus.com>
6761
6762         * Makefile.in: Rebuilt.
6763         * Makefile.am (awt_java_source_files): Added new files.
6764         * java/awt/IllegalComponentStateException.java: New file.
6765         * java/awt/ItemSelectable.java: New file.
6766         * java/awt/event/WindowEvent.java: Finished.
6767         * java/awt/event/TextEvent.java: Finished.
6768         * java/awt/event/ContainerEvent.java: New file.
6769         * java/awt/Component.java (getX, getY): New methods.
6770         * java/awt/event/PaintEvent.java: New file.
6771         * java/awt/event/MouseEvent.java: New file.
6772         * java/awt/ActiveEvent.java: New file.
6773         * java/awt/event/KeyEvent.java: Finished.
6774         * java/awt/event/ItemEvent.java: New file.
6775         * java/awt/Adjustable.java: New file.
6776         * java/awt/event/InputMethodEvent.java: New file.
6777         * java/awt/event/InputEvent.java: Finished.
6778         * java/awt/event/FocusEvent.java: New file.
6779         * java/awt/event/MouseMotionAdapter.java: New file.
6780         * java/awt/event/MouseAdapter.java: New file.
6781         * java/awt/event/KeyAdapter.java: New file.
6782         * java/awt/event/FocusAdapter.java: New file.
6783         * java/awt/event/ContainerAdapter.java: New file.
6784         * java/awt/event/ComponentEvent.java: Finished.
6785         * java/awt/event/AdjustmentEvent.java: New file.
6786         * java/awt/event/ComponentAdapter.java: New file.
6787         * java/awt/event/ActionEvent.java: Finished.
6788         * java/awt/event/MouseMotionListener.java: New file.
6789         * java/awt/event/MouseListener.java: New file.
6790         * java/awt/event/ItemListener.java: New file.
6791         * java/awt/event/InputMethodListener.java: New file.
6792         * java/awt/event/ContainerListener.java: New file.
6793         * java/awt/event/FocusListener.java: New file.
6794         * java/awt/event/ComponentListener.java: New file.
6795         * java/awt/event/AWTEventListener.java: New file.
6796         * java/awt/event/AdjustmentListener.java: New file.
6797
6798 2000-04-08  Anthony Green  <green@cygnus.com>
6799
6800         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6801         check when we have to.
6802
6803         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6804         x) as `inline'.
6805
6806         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
6807         one method call.
6808
6809         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6810         inline hasMoreElements.
6811
6812 2000-04-05  Tom Tromey  <tromey@cygnus.com>
6813
6814         * configure: Rebuilt.
6815         * configure.in: Recognize --enable-java-awt.
6816         (AWT): New conditional.
6817         * Makefile.in: Rebuilt.
6818         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6819         requested.
6820         (libgcjawt_la_SOURCES): New macro.
6821         (EXTRA_libgcjawt_la_SOURCES): Likewise.
6822         (libgcjawt_la_DEPENDENCIES): Likewise.
6823         (libgcjawt_la_LIBADD): Likewise.
6824         (libgcjawt_la_LDFLAGS): Likewise.
6825         (libgcj.zip): Depend on cond_java_awt_source_files
6826         (cond_awt_java_source_files): New macro.
6827         (MOSTLYCLEANFILES): Added awto_files.
6828         (awto_files): New macro.  Use where javao_files used.
6829         (nat_headers): Use cond_awt_java_source_files.
6830
6831 2000-04-04  Tom Tromey  <tromey@cygnus.com>
6832
6833         * Makefile.in: Rebuilt.
6834         * Makefile.am (awt_java_source_files): Added AWTException.java.
6835         * java/awt/AWTException.java: New file.
6836
6837 2000-04-03  Tom Tromey  <tromey@cygnus.com>
6838
6839         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6840         commentary from Alex.
6841
6842         * Makefile.in: Rebuilt.
6843         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6844         From H.J. Lu.
6845
6846 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
6847
6848         * configure: Rebuilt.
6849         * configure.in: Add --disable-jvmpi.
6850         * include/config.h.in: Rebuilt.
6851         * acconfig.h: Add ENABLE_JVMPI.
6852
6853         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6854         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6855         (_Jv_JVMPI_Notify_THREAD_END): New define.
6856         (_Jv_JVMPI_Notify_THREAD_END): New define.
6857         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6858         (_Jv_JVMPI_Notify_THREAD_END): Declare.
6859         (_Jv_JVMPI_Notify_THREAD_END): Declare.
6860
6861         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6862         events.
6863
6864         * java/lang/natThread.cc: Include JVMPI headers if necessary.
6865         (finish_): Generate JVMPI thread end events.
6866         (run_): Generate JVMPI thread start events.
6867         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6868         preloaded JNI library.
6869         Include JVMPI headers if necessary.
6870         (run): Generate JVMPI thread start events.
6871
6872         * boehm.cc: Define GC_disable and GC_enable.
6873         (_Jv_DisableGC): New function.
6874         (_Jv_EnableGC): New function.
6875         (disable_gc_mutex): Declare.
6876         * nogc.cc (_Jv_DisableGC): New function.
6877         (_Jv_EnableGC): New function.
6878
6879         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6880         (_Jv_JVMPI_Interface): Define.
6881         (jvmpiEnableEvent): New function.
6882         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6883
6884         * include/jvmpi.h: New file.
6885
6886 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
6887
6888         * Makefile.in: New #defines and friends for Thread.h.
6889         * Makefile.am: Ditto.
6890         * posix-threads.cc: (struct starter): Remove `object'.
6891         (_Jv_CondWait): Use interruptable condition variables and new
6892         recursive mutexes. New return codes on interrupt or non-ownership
6893         of mutex.
6894         (_Jv_CondNotify): Ditto.
6895         (_Jv_CondNotifyAll): Ditto.
6896         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6897         the target thread by signaling its wait condition.
6898         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6899         not the starter struct. Initialize wait_mutex and wait_cond.
6900         (_Jv_MutexLock): New recursive mutex implementation. Moved from
6901         posix-threads.h.
6902         (_Jv_MutexUnlock): Ditto.
6903         (really_start): Set info->data->thread from pthread_self() to work
6904         around a race condition. Destroy wait_mutex and wait_cond when run()
6905         returns.
6906         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6907         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6908         set.
6909         startable_flag: New private field.
6910         (Thread): Initialize `startable_flag'.
6911         (toString): Check for null thread group.
6912         * java/lang/natThread.cc: (struct natThread): New fields
6913         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6914         (class locker): Removed.
6915         (initialize_native): Initialize `join_cond' and `join_mutex'.
6916         (interrupt): Now just calls _Jv_ThreadInterrupt().
6917         (join): Simplified. Just wait on the target thread's join condition.
6918         (finish_): Remove join list code. Unset thread group. Signal
6919         potential joiners by notifying the dying threads join_cond.
6920         (start): Check for illegal restarts.
6921         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6922         act appropriatly.
6923         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6924         #defines and #ifdefs.
6925         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6926         `wait_mutex', `next'.
6927         (struct _Jv_ConditionVariable_t): Define as a struct instead of
6928         directly mapping to pthread_cond_t.
6929         (struct _Jv_Mutex_t): New recursive implementation.
6930         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6931         _Jv_HaveCondDestroy: Never define this for posix-threads.
6932         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6933         (_Jv_CondNotifyAll): Ditto.
6934         (_Jv_MutexLock): Ditto.
6935         (_Jv_MutexUnlock): Ditto.
6936         (_Jv_MutexInit): Changed to reflect new mutex implementation.
6937         (_Jv_MutexDestroy): Ditto.
6938         (_Jv_CondDestroy): Removed.
6939         (_Jv_PthreadGetMutex): Removed.
6940         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6941         error. Add a FIXME about this.
6942         (_Jv_CondNotifyAll): Ditto.
6943         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6944         _JV_NOT_OWNER on other errors. Add FIXME.
6945
6946 2000-03-26  Tom Tromey  <tromey@cygnus.com>
6947
6948         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6949         set, throw it.
6950         (call): Don't throw exception here.
6951
6952 2000-03-26  Tom Tromey  <tromey@cygnus.com>
6953
6954         * java/lang/mprec.h: Use SIZEOF_VOID_P.
6955         * interpret.cc: Use SIZEOF_VOID_P.
6956         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6957         (_Jv_loadLong): Likewise.
6958         (_Jv_storeDouble): Likewise.
6959         * configure: Rebuilt.
6960         * configure.in: Check size of void*.
6961
6962         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6963
6964 2000-03-26  Hans Boehm  <boehm@acm.org>
6965
6966         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6967         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6968         machine.
6969         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6970         __IEEE_LITTLE_ENDIAN appropriately on IA64.
6971         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6972         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6973         case.
6974         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6975         (FFI_RAW_SIZE): Likewise.
6976         (_Jv_InterpMethod::ncode): Use them.
6977         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6978         STORED): Define differently on a 64 bit machine.
6979         (continue1): Use ffi_java_raw_call when appropriate.
6980
6981 2000-03-24  Warren Levy  <warrenl@cygnus.com>
6982
6983         * java/math/BigInteger.java(divide): Handle the special case when
6984         dividing by 1 and the high bit of the dividend is set.
6985         (setShiftRight): Handle case when count == 0.
6986
6987 2000-03-24  Warren Levy  <warrenl@cygnus.com>
6988
6989         * java/awt/Font.java(isBold): Fix syntax error.
6990         (isItalic): ditto.
6991         * java/awt/Frame.java(postEvent): ditto.
6992         * java/awt/Menu.java(postEvent): ditto.
6993         * java/awt/MenuBar.java(postEvent): ditto.
6994         * java/awt/Toolkit.java(init): Included a stub.
6995
6996 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
6997
6998         * java/awt/Event.java: Add all the event type constants.
6999         (Event): Implemented constructors.
7000         (controlDown): Implemented.
7001         (metaDown): Implemented.
7002         (paramString): Stubbed.
7003         (shiftDown): Implemented.
7004         (toString): Implemented.
7005         (translate): Implemented.
7006
7007 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
7008
7009         * java/lang/natClass.cc (isInstance): Initialize `this'.
7010         (isAssignableFrom): Initialize `this' and `klass'.
7011         (_Jv_IsAssignableFrom): If an interface has no idt, it is not
7012         implemented by any loaded class, so return false.
7013         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
7014         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
7015
7016 2000-03-19  Warren Levy  <warrenl@cygnus.com>
7017
7018         * java/awt/Color.java: Specified java.io for Serializable.
7019         * java/awt/Toolkit.java: Imported java.net.URL.
7020
7021 2000-03-19  Warren Levy  <warrenl@cygnus.com>
7022
7023         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
7024
7025 2000-03-16  Warren Levy  <warrenl@cygnus.com>
7026
7027         * java/awt/Color.java: New file.
7028         * java/awt/Graphics.java: New file.
7029         * java/awt/Image.java: New file.
7030         * java/awt/Paint.java: New file.
7031         * java/awt/PaintContext.java: New file.
7032         * java/awt/Transparency.java: New file.
7033         * java/util/Collection.java: New file.
7034         * java/util/Comparator.java: New file.
7035         * java/util/Iterator.java: New file.
7036         * java/util/List.java: New file.
7037         * java/util/ListIterator.java: New file.
7038         * Makefile.am: Added above new files.
7039         * Makefile.in: Rebuilt.
7040
7041         * java/awt/Font.java (PLAIN): New field.
7042         (BOLD): New field.
7043         (ITALIC): New field.
7044         (ROMAN_BASELINE): New field.
7045         (CENTER_BASELINE): New field.
7046         (HANGING_BASELINE): New field.
7047         (name): New field.
7048         (style): New field.
7049         (size): New field.
7050         (pointSize): New field.
7051         (Font): Implemented constructor.
7052         (isPlain): Implemented method.
7053         (isBold): Implemented method.
7054         (isItalic): Implemented method.
7055         (getName): Implemented method.
7056         (getStyle): Implemented method.
7057         (getSize): Implemented method.
7058         (getSize2D): Implemented method.
7059         (decode): Stubbed.
7060         * java/awt/Frame.java (getFont): Stubbed.
7061         (postEvent): Stubbed.
7062         (remove): Stubbed.
7063         * java/awt/Menu.java (postEvent): Stubbed.
7064         * java/awt/MenuBar.java (getFont): Stubbed.
7065         (postEvent): Stubbed.
7066         * java/awt/Toolkit.java (getImage): Added abstract method.
7067
7068 2000-03-15  Tom Tromey  <tromey@cygnus.com>
7069
7070         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
7071
7072         * prims.cc (win32_exception_handler): Reformatted.
7073
7074         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
7075         (_Jv_HaveMutexDestroy): Likewise.
7076
7077 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
7078
7079         * java/io/natFileDescriptorWin32.cc: New file.
7080         * java/io/natFileWin32.cc: New file.
7081         * java/net/natInetAddress.cc: Added conditional inclusion of
7082         Windows / Winsock headers.
7083         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
7084         inclusion of Windows / Winsock headers.
7085         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
7086         Windows / Winsock headers.
7087         * include/win32-signal.h: New file.
7088         * include/win32-threads.h: New file.
7089         * win32-threads.cc: New file.
7090         * exception.cc (win32_get_restart_frame): New function.
7091         * prims.cc (win32_exception_handler): New function.
7092         (main_init) Performs Winsock initialisation.
7093         (main_init) Installs exeception handler.
7094
7095 2000-03-14  Tom Tromey  <tromey@cygnus.com>
7096
7097         * jni.cc (mangled_name): Fixed assertion.
7098         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
7099         turned assert into actual failure.
7100
7101 2000-03-09  Warren Levy  <warrenl@cygnus.com>
7102
7103         * java/security/Key.java(serialVersionUID): Set to 0 for now.
7104         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
7105         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
7106
7107 2000-03-09  Warren Levy  <warrenl@cygnus.com>
7108
7109         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
7110         * java/security/DigestException.java: New file.
7111         * java/security/GeneralSecurityException.java: New file.
7112         * java/security/InvalidAlgorithmParameterException.java: New file.
7113         * java/security/InvalidKeyException.java: New file.
7114         * java/security/InvalidParameterException.java: New file.
7115         * java/security/Key.java: New file.
7116         * java/security/KeyException.java: New file.
7117         * java/security/KeyPair.java: New file.
7118         * java/security/KeyPairGenerator.java: New file.
7119         * java/security/KeyPairGeneratorSpi.java: New file.
7120         * java/security/NoSuchProviderException.java: New file.
7121         * java/security/PrivateKey.java: New file.
7122         * java/security/Provider.java: New file.
7123         * java/security/PublicKey.java: New file.
7124         * java/security/SecureRandom.java: New file.
7125         * java/security/Security.java: New file.
7126         * java/security/Signature.java: New file.
7127         * java/security/SignatureException.java: New file.
7128         * java/security/interfaces/DSAKey.java: New file.
7129         * java/security/interfaces/DSAParams.java: New file.
7130         * java/security/interfaces/DSAPrivateKey.java: New file.
7131         * java/security/interfaces/DSAPublicKey.java: New file.
7132         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
7133         * java/security/interfaces/RSAPrivateKey.java: New file.
7134         * java/security/interfaces/RSAPublicKey.java: New file.
7135         * java/security/spec/AlgorithmParameterSpec.java: New file.
7136         * java/security/spec/InvalidKeySpecException.java: New file.
7137         * java/security/spec/InvalidParameterSpecException.java: New file.
7138         * java/security/spec/KeySpec.java: New file.
7139         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
7140         * java/security/spec/RSAPrivateKeySpec.java: New file.
7141         * java/security/spec/RSAPublicKeySpec.java: New file.
7142         * Makefile.am: Added above java.security files.
7143         * Makefile.in: Rebuilt.
7144
7145         * java/security/MessageDigest.java: Rewritten.
7146         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
7147
7148 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
7149
7150         * README: Updated.
7151
7152 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
7153
7154         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
7155         _Jv_PrepareConstantTimeTables.
7156         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
7157         classes should have an IDT, so don't return if klass is an array
7158         class.
7159
7160 2000-03-08  Tom Tromey  <tromey@cygnus.com>
7161
7162         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
7163         of `void' to be created.
7164
7165 2000-03-08  Warren Levy  <warrenl@cygnus.com>
7166
7167         * java/math/BigInteger.java(signum): Handle zero properly.
7168
7169 2000-03-07  Tom Tromey  <tromey@cygnus.com>
7170
7171         * All files: Updated copyright information.
7172         * COPYING: New file.
7173         * COPYING.LIB: Removed.
7174         * LIBGCJ_LICENSE: We now use GPL + special exception.
7175
7176 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
7177
7178         * resolve.cc (_Jv_SearchMethodInClass): New function.
7179         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
7180         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
7181
7182 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
7183
7184         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
7185         (struct _Jv_ifaces): New declaration.
7186         JV_CLASS: New macro definition.
7187         (getComponentType): Relocate below isArray() for inlining.
7188         (getModifiers): Declare `inline'.
7189         (getSuperclass): Ditto.
7190         (isArray): Ditto.
7191         (isPrimitive): Ditto.
7192         (_Jv_IsAssignableFrom): New prototype.
7193         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
7194         linkage.
7195         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
7196         Check for JV_STATE_DONE before invoking initializeClass().
7197         (_Jv_PrepareConstantTimeTables): New prototype.
7198         (_Jv_GetInterfaces): Ditto.
7199         (_Jv_GenerateITable): Ditto.
7200         (_Jv_GetMethodString): Ditto.
7201         (_Jv_AppendPartialITable): Ditto.
7202         (_Jv_FindIIndex): Ditto.
7203         depth, ancestors, idt: New class fields.
7204
7205         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
7206         inline function `_Jv_IsAssignableFrom'. Use that function.
7207         (isInstance): Declare `inline'.
7208         (initializeClass): Get lock on class before checking `state'. Unlock
7209         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
7210         the lock held.
7211         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
7212         (_Jv_IsAssignableFrom): New inline function. Test assignability using
7213         class->depth and ancestor table.
7214         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7215         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7216         _Jv_IsAssignableFrom.
7217         (_Jv_CheckArrayStore): Ditto.
7218         (_Jv_LookupInterfaceMethodIdx): New function.
7219         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7220         (_Jv_PrepareConstantTimeTables): New function.
7221         (_Jv_IndexOf): Ditto.
7222         (_Jv_GetInterfaces): Ditto.
7223         (_Jv_GenerateITable): Ditto.
7224         (_Jv_GetMethodString): Ditto.
7225         (_Jv_AppendPartialITable): Ditto.
7226         iindex_mutex, iindex_mutex_initialized: New static fields.
7227         (_Jv_FindIIndex): New function.
7228
7229         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7230
7231         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7232         (_Jv_CheckArrayStore): Ditto.
7233         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7234         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7235         Moved to gcj/array.h.
7236         (_Jv_Realloc): New function.
7237
7238         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7239
7240         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7241         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7242         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7243         JvNewDoubleArray): Implementations moved from prims.cc and
7244         declared `inline'.
7245
7246         * gcj/javaprims.h (_Jv_Realloc): Prototype.
7247
7248         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7249
7250 2000-03-06  Tom Tromey  <tromey@cygnus.com>
7251
7252         * jni.cc (MARK_NONE): New define.
7253         (MARK_USER): Likewise.
7254         (MARK_SYSTEM): Likewise.
7255         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7256         smaller.
7257         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7258         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7259         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7260         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7261         argument.
7262         (call): Use MARK_SYSTEM.
7263         (_Jv_GetJNIEnvNewFrame): New function.
7264         (_Jv_LookupJNIMethod): New function.
7265         (_Jv_JNI_PopSystemFrame): New function.
7266         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7267
7268 2000-03-05  Tom Tromey  <tromey@cygnus.com>
7269
7270         Fix for PR libgcj/43:
7271         * include/Makefile.in: Rebuilt.
7272         * include/Makefile.am (include_HEADERS): New define.
7273
7274 2000-03-05  Anthony Green  <green@redhat.com>
7275
7276         * gcj/javaprims.h ("Java"): Remove FirstThread.
7277
7278         * configure.host: Fix __NO_MATH_INLNES botch.
7279
7280         * Makefile.in: Rebuilt.
7281         * Makefile.am (nat_source_files): Move natFirstThread.cc.
7282         (gnu/gcj/runtime/FirstThread.h): Moved.
7283         (ordinary_java_source_files): Move FirstThread.java.
7284         * prims.cc: Deal with FirstThread movement.
7285         (JvRunMain): Ditto.
7286         (_Jv_RunMain): Ditto.
7287
7288         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7289         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7290
7291 2000-03-05  Warren Levy  <warrenl@cygnus.com>
7292
7293         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7294           Handle null addresses.
7295
7296 2000-03-04  Anthony Green  <green@redhat.com>
7297
7298         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7299         See PR gcj/151.
7300
7301 2000-03-04  Anthony Green  <green@redhat.com>
7302
7303         * configure: Rebuilt.
7304         * configure.in (ZLIBTESTSPEC): New macro.
7305         (GCTESTSPEC): New macro.
7306         (LIBGCJTESTSPEC): New macro.
7307         * libgcj-test.spec.in: New file.
7308
7309 2000-03-02  Tom Tromey  <tromey@cygnus.com>
7310
7311         * include/java-interp.h: Don't include MethodInvocation.h.
7312         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7313         * Makefile.in: Rebuilt.
7314         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7315         (ordinary_java_source_files): Don't mention
7316         MethodInvocation.java.
7317         * gnu/gcj/runtime/MethodInvocation.java: Removed.
7318         * interpret.cc (MethodInvocation::continue1): Removed.
7319         (run): Handle exceptions here.
7320         * java/lang/ClassLoader.java (defineClass1, defineClass2):
7321         Removed.
7322         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7323         here.
7324         (defineClass2): Removed.
7325
7326         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7327         Removed.
7328         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7329         exceptions here.
7330         (hack_call): Removed.
7331
7332         * java/lang/Class.h (Class): Removed hackRunInitializers,
7333         hackTrampoline.
7334         * java/lang/natClass.cc (hackRunInitializers): Removed.
7335         (initializeClass): Catch exceptions here.
7336         Include ExceptionInInitializerError.h.
7337         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7338         Removed.
7339
7340         * java/lang/Object.h (Object): Don't mention hack12_6.
7341         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7342         here.
7343         * java/lang/Object.java (hack12_6): Removed.
7344
7345         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
7346         (start): Use run_, not run__.
7347         * java/lang/Thread.java (run_): Renamed from run__; old run_
7348         removed.
7349
7350         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7351         (_Jv_JNI_EnsureLocalCapacity): Likewise.
7352         (_Jv_JNI_DefineClass): Likewise.
7353         (_Jv_JNI_ThrowNew): Likewise.
7354         (_Jv_JNI_AllocObject): Likewise.
7355         (_Jv_JNI_GetAnyMethodID): Likewise.
7356         (_Jv_JNI_CallAnyMethodV): Likewise.
7357         (_Jv_JNI_CallAnyMethodA): Likewise.
7358         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7359         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7360         (_Jv_JNI_GetAnyFieldID): Likewise.
7361         (_Jv_JNI_NewString): Likewise.
7362         (_Jv_JNI_NewStringUTF): Likewise.
7363         (_Jv_JNI_GetStringUTFChars): Likewise.
7364         (_Jv_JNI_NewObjectArray): Likewise.
7365         (_Jv_JNI_NewPrimitiveArray): Likewise.
7366         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7367         (_Jv_JNI_GetStringRegion): Likewise.
7368         (_Jv_JNI_GetStringUTFRegion): Likewise.
7369         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7370         (_Jv_JNI_MonitorEnter): Likewise.
7371         (_Jv_JNI_MonitorExit): Likewise.
7372         (_Jv_JNI_ToReflectedField): Likewise.
7373         (_Jv_JNI_ToReflectedMethod): Likewise.
7374         (_Jv_JNI_RegisterNatives): Likewise.
7375         (_Jv_JNI_AttachCurrentThread): Likewise.
7376         (_Jv_JNI_DestroyJavaVM): Likewise.
7377
7378 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
7379
7380         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7381         error caused by the incorrect casting of a long to an int.
7382
7383 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
7384
7385         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7386         SIGSEV caused by use of the wrong instance variable.
7387
7388 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
7389
7390         * java/io/File.java (File(String, String)): For dirPath, treat an
7391         empty String the same as `null'.
7392
7393 2000-02-26  Anthony Green  <green@cygnus.com>
7394
7395         * gnu/gcj/io/MimeTypes.java: Test for null.
7396
7397         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7398         (JNI_GetCreatedJavaVMs): Remove compiler warning.
7399
7400         * java/net/URLConnection.java: Update copyright notice.
7401
7402 2000-02-25  Tom Tromey  <tromey@cygnus.com>
7403
7404         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7405         `INTERPRETER'.
7406
7407 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
7408
7409         * java/net/URLConnection.java (initializeDateFormats): New
7410         private method.
7411         (getHeaderFieldDate): Call initializeDateFormats if required.
7412         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7413         these.
7414         Fix for PR libgcj/38.
7415
7416 2000-02-24  Warren Levy  <warrenl@cygnus.com>
7417
7418         * java/math/BigInteger.java(ival): Made private.
7419         (words): Ditto.
7420         (neg): Ditto.
7421
7422 2000-02-20  Anthony Green  <green@cygnus.com>
7423
7424         * Makefile.in: Rebuilt.
7425         * Makefile.am (ordinary_java_source_files): Add
7426         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7427
7428         * scripts/MakeDefaultMimeTypes.java: New file.
7429         * scripts/mime.types: New file.
7430         * scripts/classes.pl: Moved from top level.
7431         * classes.pl: Moved to scripts directory.
7432
7433         * java/net/URLConnection.java: Implement guessContentTypeFromName.
7434
7435         * gnu/gcj/io/MimeTypes.java: New file.
7436         * gnu/gcj/io/DefaultMimeTypes.java: New file.
7437
7438 2000-02-20  Tom Tromey  <tromey@cygnus.com>
7439
7440         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7441
7442 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
7443
7444         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7445         (setSize): ditto.
7446
7447 2000-02-18  Tom Tromey  <tromey@cygnus.com>
7448
7449         * include/jvm.h (_Jv_GetJavaVM): Declare.
7450         * include/java-interp.h (_Jv_GetFirstMethod): New function.
7451         (_Jv_MethodBase::get_method): New method.
7452         (_Jv_JNIMethod::set_function): New method.
7453         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7454         (_Jv_JNI_RegisterNatives): New function.
7455         (_Jv_JNIFunctions): Updated for new functions.
7456         (_Jv_GetJavaVM): New function.
7457         (_Jv_JNI_GetJavaVM): Use it.  Now static.
7458         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7459         is already a Java thread but does not have a JNIEnv yet.
7460
7461         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7462         function.
7463
7464 2000-02-17  Tom Tromey  <tromey@cygnus.com>
7465
7466         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7467         Fixes PR gcj/152.
7468
7469 2000-02-16  Tom Tromey  <tromey@cygnus.com>
7470
7471         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7472
7473         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7474         (_Jv_JNI_NewObject): Likewise.
7475         (_Jv_JNI_NewObjectA): Likewise.
7476         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7477         as "return" type to _Jv_CallAnyMethodA.
7478         (_Jv_JNI_CallAnyMethodA): Likewise.
7479         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7480
7481         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7482         findClass.
7483
7484 2000-02-15  Tom Tromey  <tromey@cygnus.com>
7485
7486         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
7487         jni_arg_types.
7488         (init_cif): Added `rtype_p' argument.
7489         * include/java-interp.h (class _Jv_MethodBase): Added
7490         args_raw_size.
7491         (class _Jv_InterpMethod): Removed args_raw_size.
7492         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7493         * jni.cc (call): Pass JNIEnv and (for static methods only) the
7494         class pointer as well as the ordinary arguments.
7495
7496         * jni.cc (mangled_name): Skip leading `(' in signature.
7497
7498         * jni.cc (add_char): Added missing `else'.
7499
7500         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7501         fails.
7502
7503 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
7504
7505         * NEWS: Updated.
7506
7507         * java/lang/natRuntime.cc (_load): Include library path with
7508         exception message.
7509
7510         * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7511         property.
7512
7513         * java/lang/natThread.cc (dumpStack): Removed.
7514         * java/lang/Thread.java (dumpStack): Implemented.
7515
7516 2000-02-15  Tom Tromey  <tromey@cygnus.com>
7517
7518         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7519         with `lib' for loadLibrary.  Fixes PR gcj/150.
7520
7521 2000-02-14  Warren Levy  <warrenl@cygnus.com>
7522
7523         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7524
7525         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7526           New constructor.
7527         (min): Implemented.
7528         (max): Implemented.
7529         (modPow): Rewritten to not use the naive, slow, brute force approach.
7530         (isProbablePrime): Implemented.
7531         (testBit): Implemented.
7532         (flipBit): Implemented.
7533         (getLowestSetBit): Implemented.
7534
7535 2000-02-16  Anthony Green  <green@redhat.com>
7536
7537         * configure.host: Use the same options for i386 and i486 as we do
7538         for i586 and i686.
7539
7540 2000-02-12  Tom Tromey  <tromey@cygnus.com>
7541
7542         * java/io/File.java (createTempFile): Use low bits from counter,
7543         not high bits.
7544
7545 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
7546
7547         * THANKS: More thanks.
7548
7549 2000-02-11  Tom Tromey  <tromey@cygnus.com>
7550
7551         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7552         astore instruction.  From Hans Boehm.
7553
7554 2000-02-11  Warren Levy  <warrenl@cygnus.com>
7555
7556         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7557         (BigInteger(String)): New constructor.
7558         (not): Rewritten using version from Kawa's BitOps class.
7559         (valueOf): New private methods from Kawa's BitOps class.
7560         (swappedOp): ditto.
7561         (bitOp): ditto.
7562         (setBitOp): ditto.
7563         (and): Implemented.
7564         (or): Implemented.
7565         (xor): Implemented.
7566         (andNot): Implemented.
7567         (clearBit): Implemented.
7568         (setBit): Implemented.
7569         (bitCount): Implemented.
7570         (toByteArray): Implemented.
7571
7572 2000-02-11  Tom Tromey  <tromey@cygnus.com>
7573
7574         * java/io/File.java (nextValue): Now synchronized.
7575
7576 2000-02-10  Tom Tromey  <tromey@cygnus.com>
7577
7578         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7579         * java/io/FileDescriptor.java (EXCL): New static field.
7580         * java/io/File.java (tmpdir): New static field.
7581         (createTempFile): New method.
7582         (nextValue): New method.
7583         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7584         property.
7585
7586         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7587         (jboolean): Declare as an attributed int, not a bool.
7588         (_Jv_func): Declare differently for C.
7589
7590         * gnu/gcj/jni/natNativeThread.cc: New file.
7591         * gnu/gcj/jni/NativeThread.java: New file.
7592         * java/lang/Thread.java (data): Now a RawData.
7593         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7594         Declare.
7595         * Makefile.in: Rebuilt.
7596         * Makefile.am (java/lang/Thread.h): New target.
7597         (ordinary_java_source_files): Added NativeThread.java.
7598         (nat_source_files): Added natNativeThread.cc.
7599         * java/lang/natThread.cc: Include <jni.h>
7600         (struct natThread): Added `jni_env' field.
7601         (_Jv_GetCurrentJNIEnv): New function.
7602         (_Jv_SetCurrentJNIEnv): Likewise.
7603         (initialize_native): Initialize jni_env.
7604         Include RawData.h.
7605         * jni.cc (ThreadGroupClass): New define.
7606         (_Jv_JNI_InvokeFunctions): New structure.
7607         (JNI_GetCreatedJavaVMs): New function.
7608         (the_vm): New global.
7609         (JNI_GetDefaultJavaVMInitArgs): New function.
7610         Include NativeThread.h.
7611         (NativeThreadClass): New define.
7612         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7613         (_Jv_JNI_DestroyJavaVM): New function.
7614         (_Jv_JNI_AttachCurrentThread): New function.
7615         (_Jv_JNI_DetachCurrentThread): New function.
7616         (_Jv_JNI_GetEnv): New function.
7617         (JNI_CreateJavaVM): New function.
7618         (_Jv_JNI_GetJavaVM): New function.
7619         (_Jv_JNIFunctions): Added entry for GetJavaVM.
7620         * include/jni.h (JavaVMAttachArgs): New structure.
7621         (JNI_EDETACHED): New define.
7622         (JNI_EVERSION): Likewise.
7623         (JavaVM): Define properly.
7624         (struct JNIInvokeInterface): New structure.
7625         (class _Jv_JavaVM): New class.
7626         (JNI_OnLoad, JNI_OnUnload): Declare.
7627         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7628         JNI_GetCreatedJavaVMs): Declare.
7629         (JavaVMInitArgs): New typedef.
7630         (JavaVMOption): Likewise.
7631         (JNI_ERR): New define.
7632         (JNI_OK): Likewise.
7633
7634 2000-02-10  Andrew Haley  <aph@cygnus.com>
7635
7636         * interpret.cc: Don't include fdlibm.h.
7637         Replace #if with #ifdef throughout.
7638         Declare extern __ieee754_fmod.
7639         (continue1): Remove op_getfield, op_getstatic, op_putfield,
7640         op_putstatic insns.
7641         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7642         Search class hierarchy for superclass vtable.
7643
7644         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7645         off the end of a pointer list.
7646
7647         * java/lang/natThread.cc (stop): Don't abort, throw an exception
7648         instead.
7649         (suspend): Ditto.
7650
7651 2000-02-09  Tom Tromey  <tromey@cygnus.com>
7652
7653         * java/lang/natRuntime.cc (_load): Call add_library.
7654         (loadLibraryInternal): Likewise.
7655
7656         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7657         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
7658         (Output_iconv::finalize): Likewise.
7659
7660 2000-02-08  Tom Tromey  <tromey@cygnus.com>
7661
7662         * java/util/Properties.java (setProperty): New method.
7663         (store): New method.
7664
7665 2000-02-07  Tom Tromey  <tromey@cygnus.com>
7666
7667         * java/lang/Runtime.java (_load): Declare.
7668         (load, loadLibrary): Wrote in terms of _load.
7669         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7670         library.
7671         (loadLibrary): Likewise.
7672         Include <jni.h>.
7673         (_load): New method.
7674         (loadLibrary, load): Removed.
7675
7676         * jni.cc (ThrowableClass): New define.
7677         (_Jv_JNI_Throw): Check argument.
7678         (_Jv_JNI_ThrowNew): Likewise.
7679         (wrap_value): Don't wrap object if it is NULL.
7680         (_Jv_JNI_DefineClass): Use wrap_value.
7681         (_Jv_JNI_FindClass): Likewise.
7682         (_Jv_JNI_GetSuperclass): Likewise.
7683         (_Jv_JNI_ExceptionOccurred): Likewise.
7684         (_Jv_JNI_AllocObject): Likewise.
7685         (_Jv_JNI_GetObjectClass): Likewise.
7686         (_Jv_JNI_NewString): Likewise.
7687         (_Jv_JNI_NewStringUTF): Likewise.
7688         (_Jv_JNI_NewObjectArray): Likewise.
7689         (_Jv_JNI_GetObjectArrayElement): Likewise.
7690         (_Jv_JNI_NewPrimitiveArray): Likewise.
7691         (_Jv_JNI_ToReflectedField): Likewise.
7692         (_Jv_JNI_ToReflectedMethod): Likewise.
7693         (_Jv_JNI_AllocObject): Check argument.
7694         (_Jv_JNI_NewObjectV): Likewise.
7695         (_Jv_JNI_NewObject): Likewise.
7696         (_Jv_JNI_NewObjectA): Likewise.
7697         (_Jv_JNI_GetObjectClass): Likewise.
7698         (_Jv_JNI_GetField): Likewise.
7699         (_Jv_JNI_SetField): Likewise.
7700
7701         * interpret.cc (PUSHL): Don't use expression statement.
7702         (PUSHD): Likewise.
7703         (LOADL): Likewise.
7704         (STOREL): Likewise.
7705
7706         * jni.cc (add_char): Conditional on INTERPRETER.
7707         (mangled_name): Likewise.
7708         (call): Likewise.
7709         * include/java-interp.h (class _Jv_MethodBase): Conditional on
7710         INTERPRETER.
7711         (class _Jv_JNIMethod): Likewise.
7712
7713 2000-02-04  Warren Levy  <warrenl@cygnus.com>
7714
7715         * Makefile.am: Added MPN.java and BigInteger.java.
7716         * Makefile.in: Rebuilt.
7717         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
7718         <per@bothner.com>.
7719         * java/math/BigInteger.java: New file.  Based primarily on
7720         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7721
7722 2000-02-04  Tom Tromey  <tromey@cygnus.com>
7723
7724         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7725         pointers.
7726         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
7727         if the method is native.
7728         * resolve.cc (ncode): Don't handle native methods.
7729         (_Jv_JNIMethod::ncode): New method.
7730         (_Jv_PrepareClass): Handle native methods.
7731         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7732         Include AbstractMethodError.h.
7733         (add_char): New function.
7734         (mangled_name): Likewise.
7735         * include/java-interp.h (class _Jv_JNIMethod): New class.
7736         (class _Jv_MethodBase): New class.
7737         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7738         (_Jv_InterpClass): Changed `interpreted_methods' field to type
7739         `_Jv_MethodBase'.
7740
7741         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7742         * java/lang/natRuntime.cc (libraries_size, libraries_count,
7743         libraries): New globals.
7744         (add_library): New function.
7745         (_Jv_FindSymbolInExecutable): New function.
7746
7747         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7748         Now static.
7749
7750 2000-02-04  Andrew Haley  <aph@cygnus.com>
7751
7752         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7753         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7754         * java/lang/natThrowable.cc (printRawStackTrace): Rename
7755         printStackTrace to printRawStackTrace.
7756
7757 2000-02-03  Tom Tromey  <tromey@cygnus.com>
7758
7759         * java/util/Calendar.java (toString): New method.
7760         * java/util/SimpleTimeZone.java (clone): New method.
7761         (toString): New method.
7762         * java/util/TimeZone.java (clone): New method.
7763         * java/text/SimpleDateFormat.java (clone): New method.
7764         * java/text/NumberFormat.java (clone): New method.
7765         (equals): New method.
7766         * java/text/Format.java (clone): New method.
7767         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7768         constructor.
7769         (clone): New method.
7770         * java/text/DateFormat.java (clone): New method.
7771         * java/text/Collator.java (clone): New method.
7772
7773 2000-02-03  Tom Tromey  <tromey@cygnus.com>
7774
7775         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7776         method.
7777
7778 2000-02-01  Tom Tromey  <tromey@cygnus.com>
7779
7780         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7781         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7782         constructing the closure if the function is native.
7783         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
7784         a template function, #if'd out, or static.
7785         Include <java-interp.h>.
7786
7787         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7788
7789         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7790
7791         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7792         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7793         `locals == NULL'.
7794         (wrap_value): New function.
7795         (_Jv_JNI_CallAnyMethodV): Use it.
7796         (_Jv_JNI_CallAnyMethodA): Likewise.
7797         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7798         (_Jv_JNI_GetStaticField): Likewise.
7799
7800         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7801         (_Jv_JNI_GetStaticField): Likewise.
7802
7803 2000-01-31  Tom Tromey  <tromey@cygnus.com>
7804
7805         * prims.cc (_Jv_MallocUnchecked): New function.
7806         (main_init): Call _Jv_JNI_Init.
7807         * include/jvm.h (_Jv_MallocUnchecked): Declare.
7808         (_Jv_JNI_Init): Declare.
7809         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7810         <string.h>.
7811         (_Jv_JNI_NewGlobalRef): New function.
7812         (_Jv_JNI_DeleteGlobalRef): New function.
7813         (_Jv_JNI_DeleteLocalRef): New function.
7814         (_Jv_JNI_conversion_call): Initialize and clear local reference
7815         frame.
7816         (_Jv_JNI_NewLocalRef): New function.
7817         (struct _Jv_JNI_LocalFrame): New structure.
7818         (_Jv_JNI_PushLocalFrame): New function.
7819         (_Jv_JNI_EnsureLocalCapacity): New function.
7820         (FRAME_SIZE): New define.
7821         (_Jv_JNI_GetStringChars): Mark string, not characters.
7822         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7823         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7824         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7825         elements.
7826         (_Jv_JNI_DefineClass): Make return value a local ref.
7827         (_Jv_JNI_FindClass): Likewise.
7828         (_Jv_JNI_GetSuperclass): Likewise.
7829         (_Jv_JNI_ExceptionOccurred): Likewise.
7830         (_Jv_JNI_AllocObject): Likewise.
7831         (_Jv_JNI_GetObjectClass): Likewise.
7832         (_Jv_JNI_CallAnyMethodV): Likewise.
7833         (_Jv_JNI_NewString): Likewise.
7834         (_Jv_JNI_NewStringUTF): Likewise.
7835         (_Jv_JNI_NewObjectArray): Likewise.
7836         (_Jv_JNI_GetObjectArrayElement): Likewise.
7837         (_Jv_JNI_ToReflectedField): Likewise.
7838         (_Jv_JNI_ToReflectedMethod): Likewise.
7839         (_Jv_JNIFunctions): Updated table for new functions.
7840         (_Jv_JNI_Init): New function.
7841         (mark_for_gc): Wrote.
7842         (unmark_for_gc): Wrote.
7843         * include/jni.h (struct JNINativeInterface): Removed name from
7844         PopLocalFrame parameter.
7845         (class _Jv_JNIEnv): Added `locals' field.
7846
7847 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
7848
7849         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7850         (write): Ditto.
7851
7852 2000-01-30  Tom Tromey  <tromey@cygnus.com>
7853
7854         * include/config.h.in: Rebuilt.
7855         * acconfig.h (HAVE_ICONV): Define.
7856         * configure: Rebuilt.
7857         * configure.in: Check for `iconv' function.
7858         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7859         no specific encoder exists.
7860         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7861         no specific encoder exists.
7862         * Makefile.in: Rebuilt.
7863         * Makefile.am (convert_source_files): Mention Input_iconv.java and
7864         Output_iconv.java.
7865         (nat_source_files): Added natIconv.cc.
7866         * gnu/gcj/convert/natIconv.cc: New file.
7867         * gnu/gcj/convert/Input_iconv.java: New file.
7868         * gnu/gcj/convert/Output_iconv.java: New file.
7869
7870 2000-01-28  Tom Tromey  <tromey@cygnus.com>
7871
7872         * Makefile.in: Rebuilt.
7873         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7874
7875 2000-01-26  Tom Tromey  <tromey@cygnus.com>
7876
7877         * gcj/method.h (JvNumMethods): Moved from Class.h.
7878         (JvGetFirstMethod): Likewise.
7879         * java/lang/Class.h (Object): Updated decl of
7880         _Jv_JNI_ToReflectedField.
7881         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7882         * Makefile.in: Rebuilt.
7883         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7884         argument of _Jv_JNI_ToReflectedField.
7885         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7886         as a friend.
7887         (java/lang/reflect/Method.h): Likewise.
7888         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
7889         __GCJ_JNI_IMPL__.
7890         (jweak): New typedef.
7891         (struct JNINativeInterface): Correctly declare remaining entries.
7892         * jni.cc: Include Class.h, ClassLoader.h.
7893         (_Jv_JNI_FindClass): New function.
7894         (_Jv_JNI_DefineClass): New function.
7895         (_Jv_JNI_conversion_call): New function.
7896         (_Jv_JNI_FindClass): Use current class loader to find class.
7897         (_Jv_JNI_ExceptionCheck): New function.
7898         (_Jv_JNI_FromReflectedField): Now static.
7899         (MethodClass): New define.
7900         (_Jv_JNI_FromReflectedMethod): New function.
7901         (_Jv_JNI_ToReflectedMethod): Likewise.
7902         Include Method.h.
7903         (_Jv_JNI_IsAssignableFrom): Renamed.
7904         (_Jv_JNI_GetStringRegion): New function.
7905         Include StringIndexOutOfBoundsException.h.
7906         (_Jv_JNI_GetStringUTFRegion): New function.
7907         (_Jv_JNIFunctions): Updated for new functions.
7908         (_Jv_JNI_GetPrimitiveArrayCritical): New function
7909         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7910         (_Jv_JNI_GetStringCritical): New function.
7911         (_Jv_JNI_ReleaseStringCritical): Likewise.
7912         (get_throwable): Removed.
7913         (GCJ_JV_JNIENV_FRIEND): Removed.
7914         (__GCJ_JNI_IMPL__): Define.
7915         Include method.h.
7916
7917         * resolve.cc (get_ffi_type_from_signature): Handle case where
7918         boolean is an int.
7919
7920 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
7921
7922         * interpret.cc (run): Don't call println.
7923         Don't include PrintStream.h.
7924
7925         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7926         nameIndex.  Use "jint" as type for boffset.
7927         * java/lang/Class.h (struct _Jv_Method): Made accflags a
7928         _Jv_ushort.
7929         (Class): Likewise.  Also changed type of method_count,
7930         vtable_method_count, size_in_bytes, field_count,
7931         static_field_count, interface_count.
7932         * gcj/array.h (__JArray): Made `length' a const jsize, not an
7933         int.
7934
7935 2000-01-21  Tom Tromey  <tromey@cygnus.com>
7936
7937         * java/lang/reflect/natConstructor.cc (newInstance): Use
7938         _Jv_CallAnyMethodA.
7939         * include/jvm.h: Declare _Jv_CallAnyMethodA.
7940         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7941         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
7942         Include <jni.h>.
7943         (COPY): Removed.
7944         (invoke): Use _Jv_CallAnyMethodA.
7945         (VAL): Redefined.
7946         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7947         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7948         functions.
7949         (struct _Jv_Method): Added getNextMethod method.
7950         (JvNumMethods): New function.
7951         (JvGetFirstMethod): Likewise.
7952         * gcj/field.h (JvGetFirstStaticField): New function.
7953         (JvNumStaticFields): Likewise.
7954         (getNextField): Renamed from getNextInstanceField.
7955         (struct _Jv_Field): New method getClass.
7956         * jni.cc: Wrote many new functions.
7957         * include/jni.h (JNI_TRUE): Define.
7958         (JNI_FALSE): Likewise.
7959         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7960         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7961         jcharArray, jfloatArray, jdoubleArray): New typedefs.
7962         (jfieldID, jmethodID): Likewise.
7963         (JNI_COMMIT, JNI_ABORT): New defines.
7964         (JNINativeMethod): New struct.
7965         (struct JNINativeInterface): Correctly declared more entries.
7966         (class _Jv_JNIEnv): Added `ex' member.
7967         (JNI_VERSION_1_1): New define.
7968         (JNI_VERSION_1_2): Likewise.
7969
7970         * boehm.cc (_Jv_MarkObj): Use getNextField, not
7971         getNextInstanceField.
7972
7973 2000-01-20  Tom Tromey  <tromey@cygnus.com>
7974
7975         * resolve.cc (StringClass): Removed.
7976         * defineclass.cc (StringClass): Removed.
7977
7978 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
7979
7980         * NEWS: updated.
7981
7982 2000-01-19  Tom Tromey  <tromey@cygnus.com>
7983
7984         * interpret.cc (PC_REGISTER_ASM): Removed.
7985
7986         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7987         From Bryce McKinlay.
7988
7989         * All files: Updated copyright to reflect Cygnus purchase.
7990
7991 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
7992
7993         * configure: Rebuilt.
7994         * configure.in: Recognize --disable-interpreter.
7995
7996 2000-01-18  Andrew Haley  <aph@cygnus.com>
7997
7998         * name-finder.cc (lookup): Check for dladdr function.
7999         acconfig.h (HAVE_DLADDR): Add.
8000         configure.in: Check for HAVE_DLADDR
8001         configure: Rebuilt.
8002         include/config.h.in:  Rebuilt.
8003
8004 2000-01-17  Andrew Haley  <aph@cygnus.com>
8005
8006         * prims.cc (_Jv_RunMain): Set the name of this executable.
8007
8008 2000-01-17  Tom Tromey  <tromey@cygnus.com>
8009
8010         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
8011         when backtrace can't be computed.
8012
8013         * configure: Rebuilt.
8014         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
8015
8016         * java/lang/Runtime.java (loadLibraryInternal): Declare.
8017         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
8018         (_Jv_FindClassInCache): Likewise.
8019         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
8020         (findSystemClass): Try to load class from compiled module.
8021         Include Runtime.h.
8022         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
8023         (loadLibrary): Likewise.
8024         (lt_preloaded_symbols): Define.
8025         (loadLibraryInternal): New method.
8026         * include/config.h.in: Rebuilt.
8027         * acconfig.h (USE_LTDL): Added.
8028         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
8029         (INCLUDES): Added $(INCLTDL).
8030         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
8031         (libgcj_la_LIBADD): Likewise.
8032         * aclocal.m4, configure: Rebuilt.
8033         * configure.in: Added libltdl support.
8034
8035 2000-01-15  Tom Tromey  <tromey@cygnus.com>
8036
8037         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
8038
8039 2000-01-14  Andrew Haley  <aph@cygnus.com>
8040
8041         * java/lang/natThrowable.cc: New file.
8042
8043         * java/lang/Throwable.java (fillInStackTrace): Make native.
8044         (printStackTrace): Call native method to do this.
8045         (Throwable): Call fillInStackTrace.
8046         (stackTrace): New variable.
8047
8048         * include/jvm.h: Add _Jv_ThisExecutable functions.
8049
8050         * prims.cc: (_Jv_execName): New variable.
8051         (catch_segv): Call fillInStackTrace.
8052         (catch_fpe): Ditto.
8053         (_Jv_ThisExecutable): New functions.
8054         (JvRunMain): Set the name of this executable.
8055
8056         * Makefile.am: Add java/lang/natThrowable.cc.
8057         Add name-finder.cc.
8058         * Makefile.in: Rebuilt.
8059
8060         * acconfig.h: Add HAVE_PROC_SELF_EXE.
8061
8062         * configure.in: Force link with __frame_state_for in
8063         FORCELIBGCCSPEC.  Add new checks for backtrace.
8064         * include/config.h.in: Rebuilt.
8065
8066         * name-finder.cc: New file.
8067         * include/name-finder.h: New file.
8068
8069 2000-01-16  Anthony Green  <green@cygnus.com>
8070
8071         * java/lang/StringBuffer.java (StringBuffer): Don't special case
8072         null argument.
8073
8074 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
8075
8076         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
8077
8078 2000-01-13  Tom Tromey  <tromey@cygnus.com>
8079
8080         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
8081         not system loader, as initiating loader.
8082
8083 2000-01-11  Tom Tromey  <tromey@cygnus.com>
8084
8085         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
8086         HP/UX.  From David Scott Urban.
8087
8088 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
8089
8090         * java/lang/natMath.cc (pow): Cast args to `double', not
8091         `jdouble'.
8092         (atan2): Likewise.
8093         (IEEEremainder): Likewise.
8094         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
8095         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
8096
8097 2000-01-09  Anthony Green  <green@cygnus.com>
8098
8099         * java/lang/natString.cc (init): Test for overflow condition
8100         during out of bounds check.
8101         (getChars): Throw StringIndexOutOfBoundsException, not
8102         ArrayIndexOutOfBoundsException.
8103         (getBytes): Ditto.
8104         (regionMatches): Obey case option during string comparison.
8105
8106         * configure.host (ligcj_interpreter): New variable.  Enable
8107         interpreter by default on IA-32.
8108         * configure.in:  Examine libgcj_interpreter.
8109         * configure: Rebuilt.
8110
8111 2000-01-07  Tom Tromey  <tromey@cygnus.com>
8112
8113         * mauve-libgcj: Don't disable ClassTest.
8114
8115         * java/lang/natClass.cc (getClasses): Wrote.
8116
8117 2000-01-06  Tom Tromey  <tromey@cygnus.com>
8118
8119         * java/lang/natClass.cc (_getConstructors): Correctly check
8120         whether method name is the init name.
8121         (getMethod): Look at accflags on method in `klass', not `this'.
8122
8123 2000-01-05  Tom Tromey  <tromey@cygnus.com>
8124
8125         * java/lang/natClass.cc (getMethod): Compute offset relative to
8126         `klass's methods table, not `this's table.
8127
8128         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
8129         In unwrapping/widening case, check whether `k' is null, not
8130         whether it is primitive.  Initialize `num' from `argelts', not
8131         `paramelts'.  Correct create and pass arguments to ffi_call.
8132         Don't let presence of `this' argument affect index used to look in
8133         argument arrays.
8134         (COPY): Set appropriate element in `values' vector.
8135
8136         * java/lang/natClass.cc: Include <gcj/method.h>.
8137
8138         * java/lang/Class.h (_getMethods): Correctly declare as private,
8139         not public.
8140
8141         * java/lang/Class.h (_getMethods): Declare.
8142         * java/lang/Class.java (_getMethods): Declare.
8143         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
8144         (getDeclaredClasses): Always return empty array.
8145         (_getMethods): New method.
8146         (getMethods): Wrote.
8147         (getDeclaredMethod): Return `rmethod'.
8148         (finit_name): New global.
8149         (getDeclaredMethods): Check for finit_name.
8150         (_getMethods): Likewise.
8151         (getMethod): Only return public methods.
8152
8153         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
8154         jboolean and select correct ffi type on that basis.
8155         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
8156         Constructor call always has `void' return type.
8157
8158 2000-01-04  Tom Tromey  <tromey@cygnus.com>
8159
8160         * java/lang/Class.h (getSignature): Updated.
8161         * java/lang/Class.java (getSignature): Updated.
8162         * java/lang/natClass.cc (getSignature): Added `is_constructor'
8163         argument.
8164         (getConstructor): Ensure constructor is public.
8165         (_getConstructors): Check for public-ness of constructor when
8166         `declared' is false, not when it is true.
8167
8168 2000-01-04  Warren Levy  <warrenl@cygnus.com>
8169
8170         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
8171         comment.
8172         (receive): Set the sender's address in the DatagramPacket.
8173
8174 2000-01-04  Tom Tromey  <tromey@cygnus.com>
8175
8176         * java/lang/reflect/natConstructor.cc (newInstance): Pass
8177         declaring class as return_type argument to
8178         _Jv_CallNonvirtualMethodA.
8179         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
8180         constructor case, create object and use it as `this' argument.
8181         * java/lang/Class.h (_getConstructors): Declare.
8182         (_getFields): Declare.
8183         * java/lang/Class.java (getConstructors): Wrote.
8184         (_getConstructors): New native method.
8185         (getDeclaredConstructors): Wrote.
8186         (_getFields): Declare new native method.
8187         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
8188         incorrect comment.
8189         (getMethod): Work correctly when class is primitive.
8190         (getDeclaredMethods): Likewise.  Compute offset using `method',
8191         not `mptr'.
8192         (getDeclaredMethod): Likewise.
8193         (getConstructor): Wrote.
8194         (ConstructorClass): New define.
8195         (getDeclaredConstructor): Wrote.
8196         (_getConstructors): New method.
8197         (_getFields): New method.
8198         (getFields): Wrote.
8199
8200         * Makefile.in: Rebuilt.
8201         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
8202
8203         * prims.cc: Remove `#pragma implementation'.
8204         * gcj/array.h: Remove `#pragma interface'.
8205
8206         * prims.cc (_Jv_equaln): New function.
8207         * java/lang/Class.java (getSignature): Declare.
8208         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
8209         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
8210         resolve.cc.
8211         (getSignature): New method.
8212         (getDeclaredMethod): Wrote.
8213         (getMethod): Wrote.
8214         Include StringBuffer.h.
8215         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8216         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
8217         a friend.
8218         (getSignature): Declare.
8219         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8220         (_Jv_equaln): Declare.
8221         (_Jv_CallNonvirtualMethodA): Declare.
8222         * Makefile.in: Rebuilt.
8223         * Makefile.am (nat_source_files): Added natConstructor.cc.
8224         (java/lang/reflect/Constructor.h): New target.
8225         * java/lang/reflect/natConstructor.cc: New file.
8226         * java/lang/reflect/Constructor.java (newInstance): Now native.
8227         (declaringClass): Renamed from decl_class.
8228         (offset): Renamed from index.
8229         (getType): New native method.
8230         (getModifiers): Now native.
8231         (getParameterTypes): Call getType if required.
8232         (hashCode): Include hash code from declaring class.
8233         (modifiers): Removed.
8234         (toString): Call getType if required.
8235         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8236         * java/lang/reflect/natMethod.cc (hack_call): New method.
8237         Removed `#if 0' around FFI code.
8238         Include <gnu/gcj/RawData.h>.
8239         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
8240         IllegalArgumentException when argument object and class disagree.
8241         (_Jv_GetTypesFromSignature): New function.
8242         (getType): Use it.
8243         (ObjectClass): New define.
8244         (_Jv_CallNonvirtualMethodA): New function.
8245         * java/lang/reflect/Method.java (hack_trampoline): New method.
8246         (hack_call): New native method.