OSDN Git Service

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