OSDN Git Service

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