OSDN Git Service

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