OSDN Git Service

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