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