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