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