OSDN Git Service

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