OSDN Git Service

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