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