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