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