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