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