OSDN Git Service

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