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