OSDN Git Service

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