OSDN Git Service

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