OSDN Git Service

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