OSDN Git Service

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