OSDN Git Service

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