OSDN Git Service

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