OSDN Git Service

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