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.
53 2001-11-19 Tom Tromey <tromey@redhat.com>
55 * verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_iinc]:
56 Uses two operand bytes, not one.
57 [op_arraylength]: Has no operands in bytecode.
58 (_Jv_BytecodeVerifier::push_jump): Fixed call to
59 check_no_uninitialized_objects.
60 (_Jv_BytecodeVerifier::push_exception_jump): Likewise.
61 (_Jv_BytecodeVerifier::handle_ret_insn): Likewise.
62 (_Jv_BytecodeVerifier::handle_jsr_insn): Likewise.
64 * verify.cc (_Jv_BytecodeVerifier::require_array_type): Special
65 case for boolean arrays.
67 * verify.cc (_Jv_BytecodeVerifier::compute_jump): Put PC into
70 * verify.cc (_Jv_BytecodeVerifier::verify_instructions_0)
71 [op_lshl, op_lshr, op_lushr]: Shift argument is an int, not a
74 2001-11-18 Tom Tromey <tromey@redhat.com>
76 * verify.cc (type::to_array): New method.
77 (_Jv_BytecodeVerifier::verify_instructions_0) [op_anewarray]:
78 Construct new array type.
80 * verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_sipush]:
81 Skip a short, not a byte.
82 [op_newarray]: Skip a byte, not a short.
84 * verify.cc (_Jv_BytecodeVerifier::get_type_val_for_signature):
87 * verify.cc (_Jv_BytecodeVerifier::get_ushort): Use `jint' for
89 (_Jv_BytecodeVerifier::get_short): Likewise.
90 (_Jv_BytecodeVerifier::get_int): Likewise.
91 (_Jv_BytecodeVerifier::check_return_type): Reverse ordering of
94 * verify.cc (_Jv_BytecodeVerifier::pop_type): Put PC into error
96 (_Jv_BytecodeVerifier::pop64): Likewise.
97 (_Jv_BytecodeVerifier::pop32): Likewise.
98 (_Jv_BytecodeVerifier::pop_raw): Likewise.
99 (_Jv_BytecodeVerifier::pop_type): Promote the match type.
100 (type::set_initialized): Only modify uninitialized types.
101 (type::set_uninitialized): Fix shadowing bug. Simplify code.
103 * verify.cc: Include StringBuffer.h.
104 (verify_fail): Added pc argument. Use StringBuffer to construct
106 (_Jv_BytecodeVerifier::verify_instructions_0): Put PC into error
108 (_Jv_BytecodeVerifier::check_return_type): Likewise.
109 (_Jv_BytecodeVerifier::handle_field_or_method): Likewise.
110 (_Jv_BytecodeVerifier::check_constant): Likewise.
111 (_Jv_BytecodeVerifier::check_class_constant): Likewise.
112 (_Jv_BytecodeVerifier::check_pool_index): Likewise.
113 (_Jv_BytecodeVerifier::get_variable): Likewise.
114 (_Jv_BytecodeVerifier::branch_prepass): Likewise. Also, correctly
115 check exception handler endpoint.
116 (_Jv_BytecodeVerifier::verify_instructions_0): Correctly handle
117 wide arguments to current method.
118 (_Jv_BytecodeVerifier::check_wide_constant): New method.
119 (_Jv_BytecodeVerifier::verify_instructions_0) [op_ldc2_w]: Use
122 2001-11-17 Anthony Green <green@redhat.com>
124 * jni.cc (unwrap): Fix test for wrapped objects.
126 2001-11-16 Tom Tromey <tromey@redhat.com>
128 * verify.cc (_Jv_BytecodeVerifier::check_field_constant): Handle
129 case where field has primitive type.
131 * verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): New
133 (type::compatible): Use it.
134 (type::merge): Likewise.
135 (type::promote): Return a `type&'.
136 (get_one_type): Promote return value.
138 Re-merge with Classpath, from Brian Jones:
139 * java/lang/Integer.java (getInteger): Attempt to decode the value
140 of the system property instead of the name of the system property.
141 (parseInt): Throw NumberFormatException explicitly in the case of
142 a null argument in keeping with JDK 1.3.
144 2001-11-16 Mark Wielaard <mark@klomp.org>
146 * java/util/Timer.java (TaskQueue.isStopped): Remove method.
147 (Scheduler.run): Try to re-schedule task and ignore exception if
148 queue has been stopped.
150 2001-11-15 Tom Tromey <tromey@redhat.com>
152 * verify.cc (type::compatible): Use _Jv_IsAssignableFrom.
153 (type::merge): Likewise.
155 2001-11-14 Hans Boehm <Hans_Boehm@hp.com>
157 * java/lang/natString.cc: correct argument order for
160 2001-11-14 Tom Tromey <tromey@redhat.com>
162 * verify.cc (class _Jv_BytecodeVerifier) [op_dup2]: Fixed logic.
163 [op_dup_x2]: Likewise.
164 [op_dup2_x1]: Likewise.
165 [op_dup2_x2]: Likewise.
166 (branch_prepass): Added `op_newarray' case. Updated unrecognized
168 (verify_instructions_0): Updated unrecognized instruction error.
170 * java/lang/reflect/Constructor.java (toString): Use more
171 efficient form of Modifier.toString().
173 Re-merges with Classpath, from various people:
174 * java/lang/reflect/Modifier.java: Reindented.
175 (toString): Only trim trailing space if text was added to
177 * java/lang/reflect/ReflectPermission: Reindented.
179 Re-merges with Classpath, from various people:
180 * java/lang/Double.java (parseDouble): Fixed ordering of
182 * java/lang/reflect/AccessibleObject.java: Javadoc, reindented.
183 * java/lang/reflect/Member.java: Reindented.
184 * java/util/ConcurrentModificationException.java: Javadoc
186 * java/util/EmptyStackException.java: Likewise.
187 * java/util/NoSuchElementException.java: Likewise.
189 2001-11-13 Tom Tromey <tromey@redhat.com>
191 Fix for PR libgcj/4859:
192 * java/util/Timer.java (TaskQueue.isStopped): New method.
193 (Scheduler.run): Don't re-schedule task if queue has been
196 2001-11-07 Tom Tromey <tromey@redhat.com>
198 * Makefile.in: Rebuilt.
199 * Makefile.am (ordinary_java_source_files): Added JNIWeakRef.java.
200 * jni.cc: Include JNIWeakRef.h.
201 (unwrap): New function.
202 (_Jv_JNI_DefineClass): Use it.
203 (_Jv_JNI_GetSuperclass): Likewise.
204 (_Jv_JNI_IsAssignableFrom): Likewise.
205 (_Jv_JNI_Throw): Likewise.
206 (_Jv_JNI_ThrowNew): Likewise.
207 (_Jv_JNI_IsSameObject): Likewise.
208 (_Jv_JNI_AllocObject): Likewise.
209 (_Jv_JNI_GetObjectClass): Likewise.
210 (_Jv_JNI_IsInstanceOf): Likewise.
211 (_Jv_JNI_GetAnyMethodID): Likewise.
212 (array_from_valist): Likewise.
213 (_Jv_JNI_CallAnyMethodV): Likewise.
214 (_Jv_JNI_CallAnyMethodA): Likewise.
215 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
216 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
217 (_Jv_JNI_CallStaticMethodV): Likewise.
218 (_Jv_JNI_CallStaticMethod): Likewise.
219 (_Jv_JNI_CallStaticMethodA): Likewise.
220 (_Jv_JNI_NewObjectV): Likewise.
221 (_Jv_JNI_NewObject): Likewise.
222 (_Jv_JNI_NewObjectA): Likewise.
223 (_Jv_JNI_GetField): Likewise.
224 (_Jv_JNI_SetField): Likewise.
225 (_Jv_JNI_GetAnyFieldID): Likewise.
226 (_Jv_JNI_SetStaticField): Likewise.
227 (_Jv_JNI_GetStringLength): Likewise.
228 (_Jv_JNI_GetStringChars): Likewise.
229 (_Jv_JNI_ReleaseStringChars): Likewise.
230 (_Jv_JNI_GetStringUTFLength): Likewise
231 (_Jv_JNI_GetStringUTFChars): Likewise.
232 (_Jv_JNI_GetStringRegion): Likewise.
233 (_Jv_JNI_GetStringUTFRegion): Likewise.
234 (_Jv_JNI_GetStringCritical): Likewise.
235 (_Jv_JNI_GetArrayLength): Likewise.
236 (_Jv_JNI_NewObjectArray): Likewise.
237 (_Jv_JNI_GetObjectArrayElement): Likewise.
238 (_Jv_JNI_SetObjectArrayElement): Likewise.
239 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
240 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
241 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
242 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
243 (_Jv_JNI_MonitorEnter): Likewise.
244 (_Jv_JNI_MonitorExit): Likewise.
245 (_Jv_JNI_ToReflectedField): Likewise.
246 (_Jv_JNI_FromReflectedField): Likewise.
247 (_Jv_JNI_ToReflectedMethod): Likewise.
248 (_Jv_JNI_FromReflectedMethod): Likewise.
249 (_Jv_JNI_NewGlobalRef): Likewise.
250 (_Jv_JNI_DeleteGlobalRef): Likewise.
251 (_Jv_JNI_DeleteLocalRef): Likewise.
252 (_Jv_JNI_NewLocalRef): Likewise.
253 (_Jv_JNI_NewWeakGlobalRef): New function.
254 (_Jv_JNI_DeleteWeakGlobalRef): Likewise.
255 (_Jv_JNIFunctions): Updated for new methods.
257 * gnu/gcj/runtime/JNIWeakRef.java: New file.
259 2001-11-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
261 * boehm.cc (_Jv_GCCanReclaimSoftReference): Fix warning.
263 2001-11-09 Jeff Sturm <jsturm@one-point.com>
265 * verify.cc: Wrap in #ifdef INTERPRETER...#endif.
267 2001-11-07 Tom Tromey <tromey@redhat.com>
269 * verify.cc (skip_padding): Fail if padding byte is nonzero.
271 2001-11-06 Tom Tromey <tromey@redhat.com>
273 * HACKING: Make people commit their own patches.
275 2001-11-05 Tom Tromey <tromey@redhat.com>
277 * java/lang/Class.h (Class): Made _Jv_BytecodeVerifier a friend.
278 * Makefile.in: Rebuilt.
279 * Makefile.am (libgcj_la_SOURCES): Added verify.cc.
280 * verify.cc: New file.
281 * include/java-interp.h (_Jv_count_arguments): Declare.
282 (_Jv_VerifyMethod): Likewise.
283 (class _Jv_InterpMethod): Made _Jv_BytecodeVerifier a friend.
284 (class _Jv_InterpException): Likewise.
285 * resolve.cc (_Jv_count_arguments): Renamed from count_arguments.
286 No longer static. Updated callers.
287 * defineclass.cc (int_bits_to_float): Removed.
288 (long_bits_to_double): Likewise.
289 (prepare_pool_entry): Updated.
290 (handleCodeAttribute): Verify method (commented out for now).
292 2001-11-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
294 * java/util/ResourceBundle.java (class Security): Now static.
296 2001-11-04 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
298 * java/util/ResourceBundle.java (getClassContext): Removed.
299 (Security): New class, extends SecurityManger.
300 (getBundle): Use Security.getCallingClassLoader instead of
302 * java/util/natResourceBundle.cc: Removed.
304 2001-11-03 Tom Tromey <tromey@redhat.com>
306 * defineclass.cc (handleClassBegin): Use Object::class$, not
307 Class::class$, when initializing interface superclass.
309 2001-11-02 Hans Boehm <Hans_Boehm@hp.com>
311 * java/util/natResourceBundle.cc:getClassContext: return
312 array of Class instead of array of ClassLoader.
314 2001-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
316 * HACKING, gnu/gcj/xlib/Pixmap.java, gnu/gcj/xlib/XException.java,
317 gnu/java/rmi/rmic/RMIC.java, java/awt/Window.java,
318 java/awt/AWTEvent.java, java/io/ByteArrayOutputStream.java,
319 java/io/CharConversionException.java,
320 java/io/PipedInputStream.java, java/io/PipedReader.java,
321 java/io/PrintWriter.java, java/io/WriteAbortedException.java,
322 java/io/natFileWin32.cc, java/lang/Class.h,
323 java/lang/natClassLoader.cc, java/lang/natObject.cc,
324 java/lang/Package.java, java/net/BindException.java,
325 java/net/ConnectException.java, java/net/ProtocolException.java,
326 java/net/SocketException.java,
327 java/net/UnknownServiceException.java,
328 java/security/cert/X509Certificate.java,
329 java/security/interfaces/DSAKey.java,
330 java/security/SecureRandom.java, java/security/SignedObject.java,
331 java/sql/DatabaseMetaData.java,
332 java/text/DecimalFormatSymbols.java,
333 java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
334 java/util/jar/JarInputStream.java,
335 java/util/jar/JarOutputStream.java, java/util/Calendar.java,
336 java/util/Collections.java, java/util/GregorianCalendar.java,
337 java/util/HashMap.java, java/util/List.java,
338 java/util/Properties.java, java/util/Timer.java,
339 java/util/Vector.java, java/util/WeakHashMap.java,
340 javax/naming/NamingException.java,
341 testsuite/libjava.lang/Thread_Wait.java,
342 org/xml/sax/helpers/DefaultHandler.java,
343 org/xml/sax/HandlerBase.java, org/xml/sax/SAXParseException.java,
344 ChangeLog, acinclude.m4, aclocal.m4, posix-threads.cc: Fix
346 * configure: Regenerate.
348 2001-10-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
350 * jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM. Don't call
353 2001-10-29 Tom Tromey <tromey@redhat.com>
355 * java/util/zip/GZIPOutputStream.java (write(int)): New method.
356 Fixes PR libgcj/4728.
358 2001-10-27 Tom Tromey <tromey@redhat.com>
360 * include/jni.h (struct JNINativeInterface) [GetStringLength]:
361 Returns jsize, not jint.
363 2001-10-26 Tom Tromey <tromey@redhat.com>
365 * java/util/zip/Adler32.java: Use correct class name. (Re-merge
368 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
370 * java/lang/VMClassLoader.java (getPrimitiveClass): Now native. Now
371 takes a jchar type-code argument, not a string.
372 * java/lang/natClassLoader.cc (VMClassLoader::getPrimitiveClass):
373 New method. Just call _Jv_FindClassFromSignature.
374 * java/lang/Boolean.java (TYPE): Initialize from
375 VMClassLoader.getPrimitiveClass using type-code.
376 * java/lang/Character.java (TYPE): Likewise.
377 * java/lang/Double.java (TYPE): Likewise.
378 * java/lang/Float.java (TYPE): Likewise.
379 * java/lang/Integer.java (TYPE): Likewise.
380 * java/lang/Long.java (TYPE): Likewise.
381 * java/lang/Short.java (TYPE): Likewise.
382 * java/lang/Void.java (TYPE): Likewise.
384 2001-10-25 Hans Boehm <Hans_Boehm@hp.com>
386 * include/boehm-gc.h: Call thread local allocation functions
387 if THREAD_LOCAL_ALLOC is defined.
389 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
391 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Use
392 snprintf, not asprintf.
394 2001-10-24 Loren J. Rittle <ljrittle@acm.org>
396 * configure.in (case $THREADS): Add *-*-freebsd* configuration.
397 (HAVE_GETHOSTBYADDR_R): Create a valid, non-optimal
398 configuration when gethostbyaddr_r exists yet no prototype
400 * configure: Rebuilt.
401 * posix-threads.cc (INTR): Reuse path for LINUX_THREADS
402 with FREEBSD_THREADS. However, comment different reason.
404 2001-10-24 Tom Tromey <tromey@redhat.com>
405 Warren Levy <warrenl@redhat.com>
407 * Makefile.in: Rebuilt.
408 * Makefile.am (javax_source_files): New macro.
409 (ordinary_java_source_files): Added javax_source_files.
410 (libgcj.jar): Search javax for class files.
411 * javax/naming/LinkException.java (toString): Wrote.
412 (toString(boolean)): Likewise.
413 * javax/naming/ldap/InitialLdapContext.java: New file.
414 * javax/naming/directory/InitialDirContext.java: Wrote.
415 * javax/naming/spi/NamingManager.java (getPlusPath): Now has
416 package-private protection.
417 (getURLContext): Likewise.
418 (NamingManager): Likewise.
419 * javax/naming/spi/DirectoryManager.java: New file.
420 * javax/naming/directory/BasicAttributes.java: New file.
421 * javax/naming/directory/BasicAttribute.java: New file.
422 * javax/naming/spi/ResolveResult.java
423 (ResolveResult(Object,String)): Wrote.
424 (appendRemainingName): Uncommented body.
425 (appendRemainingComponent): Likewise.
426 * javax/naming/ldap/ControlFactory.java: New file.
427 * javax/naming/directory/AttributeModificationException.java
429 * javax/naming/spi/NamingManager.java (NamingManager): New
431 (setInitialContextFactoryBuilder): Wrote.
432 (getInitialContext): Look in system properties for class name as
433 well. Use Class.forName().
434 (getURLContext): Wrote.
436 (setObjectFactoryBuilder): Wrote.
437 (getObjectInstance): Wrote.
438 (getContinuationContext): Wrote.
439 (getPlusPath): New private method.
440 (getStateToBind): Wrote.
441 * javax/naming/CannotProceedException.java: Added missing methods &
443 * javax/naming/LinkException.java: Added missing methods & fields.
444 * javax/naming/ReferralException.java (ReferralException): Made
445 constructor protected per spec.
446 Added missing abstract methods.
447 * javax/naming/directory/Attribute.java: Updated copyright.
448 * javax/naming/directory/AttributeModificationException.java: Ditto.
449 * javax/naming/directory/Attributes.java: Ditto.
450 * javax/naming/directory/DirContext.java: Ditto.
451 * javax/naming/spi/NamingManager.java: Ditto.
452 * javax/naming/spi/ResolveResult.java: Added comment.
453 * javax/naming/directory/Attribute.java: Added missing interface
455 * javax/naming/directory/AttributeModificationException.java:
456 Added missing methods & fields.
457 * javax/naming/directory/directory/Attributes.java: Added missing
459 * javax/naming/directory/SearchControls.java: Maded serialized fields
461 * javax/naming/event/NamingEvent.java: Added comment.
462 * javax/naming/event/NamingExceptionEvent.java: Maded serialized field
464 * javax/naming/ldap/UnsolicitedNotificationEvent.java: Maded
465 serialized field private.
466 * javax/naming/spi/NamingManager.java: Added missing field and stubbed
468 * javax/naming/directory/DirContext.java: Added missing interface
470 * javax/naming/directory/InitialDirContext.java: Stubbed missing
472 * javax/naming/directory/ModificationItem.java: New class.
473 * javax/naming/directory/SearchResult.java: New class.
474 * javax/naming/directory/SearchControls.java: New class.
475 * javax/naming/event/EventContext.java: New class.
476 * javax/naming/event/EventDirContext.java: New class.
477 * javax/naming/event/NamespaceChangeListener.java: New class.
478 * javax/naming/event/NamingEvent.java: New class.
479 * javax/naming/event/NamingExceptionEvent.java: New class.
480 * javax/naming/event/NamingListener.java: New class.
481 * javax/naming/event/ObjectChangeListener.java: New class.
482 * javax/naming/ldap/Control.java: New class.
483 * javax/naming/ldap/ExtendedRequest.java: New class.
484 * javax/naming/ldap/ExtendedResponse.java: New class.
485 * javax/naming/ldap/HasControls.java: New class.
486 * javax/naming/ldap/LdapContext.java: New class.
487 * javax/naming/ldap/LdapReferralException.java: New class.
488 * javax/naming/ldap/UnsolicitedNotification.java: New class.
489 * javax/naming/ldap/UnsolicitedNotificationEvent.java: New class.
490 * javax/naming/ldap/UnsolicitedNotificationListener.java: New class.
491 * javax/naming/spi/DirObjectFactory.java: New class.
492 * javax/naming/spi/DirStateFactory.java: New class.
493 * javax/naming/spi/ObjectFactoryBuilder.java: New class.
494 * javax/naming/spi/ResolveResult.java: New class.
495 * javax/naming/spi/Resolver.java: New class.
496 * javax/naming/spi/StateFactory.java: New class.
497 * javax/naming/spi/ObjectFactory.java: Made an interface per spec.
498 * java/rmi/RemoteException.java: New class.
499 * javax/transaction/HeuristicCommitException.java: New class.
500 * javax/transaction/HeuristicMixedException.java: New class.
501 * javax/transaction/HeuristicRollbackException.java: New class.
502 * javax/transaction/NotSupportedException.java: New class.
503 * javax/transaction/RollbackException.java: New class.
504 * javax/transaction/Status.java: New class.
505 * javax/transaction/Synchronization.java: New class.
506 * javax/transaction/SystemException.java: New class.
507 * javax/transaction/Transaction.java: New class.
508 * javax/transaction/TransactionManager.java: New class.
509 * javax/transaction/UserTransaction.java: New class.
510 * javax/transaction/xa/XAException.java: Added public static fields.
511 * javax/transaction/xa/XAResource.java: New class.
512 * javax/transaction/xa/Xid.java: New class.
513 * javax/naming/CompoundName.java (CompoundName(String)): Reverse
514 elements if required. Handle case where quote is at end of
516 * javax/naming/CompoundName.java (CompoundName(String)): Handle
517 text left at end of parsing.
518 (toString): Handle empty element at beginning.
519 * javax/naming/CompositeName.java (toString): Handle empty element
521 (CompositeName(String)): Handle text left at end of parsing.
522 Correctly compute boundary condition for quoting.
523 * javax/naming/CompoundName.java: New file.
524 * javax/naming/CompositeName.java: New file.
525 * javax/naming/Binding.java: New file.
526 * javax/naming/LinkRef.java: New file.
527 * javax/naming/NameClassPair.java: New file.
528 * javax/naming/Reference.java (addrs, classFactory,
529 classFactoryLocation): New fields.
530 (className): Now protected.
531 (Reference): New constructors.
532 (add): Now public. Implemented.
533 (get(String)): Likewise.
534 (add(int,RefAddr)): New method.
538 (get(int)): Likewise.
540 (getFactoryClassLocation): Likewise.
541 (getFactoryClassName): Likewise.
542 (hashCode): Likewise.
545 (toString): Likewise.
546 * javax/transaction/xa/XAException.java: New file.
547 * javax/transaction/TransactionRolledbackException.java: New file.
548 * javax/transaction/TransactionRequiredException.java: New file.
549 * javax/transaction/InvalidTransactionException.java: New file.
550 * javax/naming/directory/SchemaViolationException.java: Use
551 correct package. Import NamingException.
552 * javax/naming/directory/NoSuchAttributeException.java,
553 javax/naming/directory/InvalidSearchFilterException.java,
554 javax/naming/directory/InvalidSearchControlsException.java,
555 javax/naming/directory/InvalidAttributesException.java,
556 javax/naming/directory/InvalidAttributeValueException.java,
557 javax/naming/directory/InvalidAttributeIdentifierException.java,
558 javax/naming/directory/AttributeModificationException.java,
559 javax/naming/directory/AttributeInUseException.java: Likewise.
560 * javax/naming/directory/InitialDirContext.java (getAttributes):
562 * javax/naming/RefAddr.java (RefAddr): Reindented.
563 (equals): Renamed and reindented.
564 * javax/naming/BinaryRefAddr.java (equals): Renamed and
567 2001-10-24 Tom Tromey <tromey@redhat.com>
569 * java/lang/reflect/Field.java: Made many methods private.
571 * java/sql/Types.java (Types): New constructor.
573 Tue Oct 23 23:52:18 2001 Anthony Green <green@redhat.com>
575 * gnu/gcj/runtime/natSharedLibLoader.cc: Only include dlfcn.h when
578 2001-10-23 Tom Tromey <tromey@redhat.com>
580 * java/lang/reflect/Field.java (Field): New constructor.
581 * java/lang/ClassLoader.java (defineClass(String,byte[],int,int)):
582 Throw ClassFormatError.
584 2001-10-23 Tom Tromey <tromey@redhat.com>
586 * java/util/PropertyResourceBundle.java (handleGetObject): Now
588 * java/util/ListResourceBundle.java (handleGetObject): Now public
591 * java/io/BufferedWriter.java (localFlush): Don't synchronize.
593 2001-10-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
595 * prims.cc (_Jv_Abort): Always print error message using fprintf,
596 don't try to allocate.
597 (_Jv_CreateJavaVM): Set gcj::runtimeInitialized.
598 * include/jvm.h (gcj::runtimeInitialized): New variable declaration.
599 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
600 duplicate class registration with JvFail if the runtime hasn't been
603 * java/io/BufferedWriter (write (String, int, int)): Remove redundant
605 (write (char[], int, int)): Likewise.
607 2001-10-22 Tom Tromey <tromey@redhat.com>
609 * java/util/GregorianCalendar.java (getGregorianChange): Removed
612 2001-10-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
614 * gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
615 * gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
616 * gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
617 * gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in output
620 2001-10-19 Mark Wielaard <mark@klomp.org>
622 * java/lang/Double.java: More Classpath merging
623 (isInfinite): Don't use doubleToLongBits
624 (isNaN (Object)): return v != v
625 (initIDs): make native
626 * java/lang/Float.java: Ditto
627 (isInfinite): Don't use floatToIntBits
628 (isNaN (Object)): return v != v
629 * java/lang/natDouble.cc: add empty initIDs()
631 2001-10-19 Mark Wielaard <mark@klomp.org>
633 * javax/naming/BinaryRefAddr.java: New file
634 * javax/naming/InitialContext.java: Compile fix
635 * javax/naming/InvalidNameException.java: Add comments
636 * javax/naming/Name.java: Ditto
637 * javax/naming/NamingException.java: Implement
638 * javax/naming/OperationNotSupportedException.java: Compile fix
639 * javax/naming/RefAddr.java: Implement
640 * javax/naming/StringRefAddr.java: Add comments and implement
641 * javax/naming/directory/InitialDirContext.java: Compile fix
643 2001-10-18 Tom Tromey <tromey@redhat.com>
645 * java/io/BufferedWriter.java (write(String,int,int)): Correctly
648 * java/security/Security.java (loadProviders): Removed unused
649 `pname' variable. Don't create `File' object. Don't update
651 (providerCount): Removed.
652 (insertProviderAt): Don't use `providerCount'.
653 (addProvider(Provider,int)): Likewise.
654 (removeProvider): Likewise.
655 (addProvider(Provider)): Rewrote.
656 (getProviders): Rewrote.
657 (getProvider): Don't use `providerCount'.
659 2001-10-17 Tom Tromey <tromey@redhat.com>
661 * gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
663 * java/security/SecureRandom.java (setSeed(long)): Don't set seed
664 if secureRandomSpi is not initialized.
666 * Makefile.in: Rebuilt.
667 * Makefile.am (secdir): New macro.
668 (install-data-local): Install new data files.
669 * java/security/classpath.security: New file.
670 * java/security/libgcj.security: New file.
672 * java/security/Security.java (loadProviders): Added `vendor'
674 Load both `classpath' and `java.vm.name' providers.
676 2001-10-17 Anthony Green <green@redhat.com>
678 * java/security/Security.java (loadProviders): Fix bug in how
679 providers are loaded.
681 2001-10-16 Tom Tromey <tromey@redhat.com>
683 * gcj/javaprims.h: Updated class list.
684 * java/util/Hashtable.java: Re-merged with Classpath.
686 2001-10-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
688 * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
690 Eliminate use of C++ static constructors.
691 * interpret.cc: Remove static Utf8Consts. Use namespace gcj.
693 * resolve.cc: Likewise.
694 * defineclass.cc: Likewise.
695 (_Jv_ClassReader::handleClassBegin): Synchronize call to
697 * include/jvm.h (void_signature, clinit_name, init_name, finit_name):
698 Declare in namespace gcj.
699 * java/lang/Class.h (Class): Remove initialization for primitive
701 (friend void _Jv_InitPrimClass): This is in prims.cc.
702 * prims.cc (_Jv_InitPrimClass): Do primitive type initialization
704 (void_signature, clinit_name, init_name, finit_name): Define in
706 (_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and
707 _Jv_InitializeSyncMutex from here. Initialize Utf8 constants.
708 Initialize primitive types.
709 * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
710 initialization routines. Don't synchronize.
711 * java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
714 2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
716 * java/util/HashMap.java (HashEntry.clone): Removed.
717 (HashMap(Map)): Use putAllInternal.
719 (putAllInternal): New method. Efficient counterpart to putAll which
721 * java/util/LinkedHashMap.java (rethread): Removed.
722 (putAllInternal): New method. Clear "head" and "tail".
723 (addEntry): New argument "callRemove". Don't call removeEldestEntry()
724 if callRemove == false.
726 * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
727 * Makefile.in: Rebuilt.
729 2001-10-15 Eric Blake <ebb9@email.byu.edu>
731 * java/util/Collection.java: Updated javadoc.
732 * java/util/Comparator.java: Updated javadoc.
733 * java/util/Enumeration.java: Updated javadoc.
734 * java/util/Iterator.java: Updated javadoc.
735 * java/util/List.java: Updated javadoc.
736 * java/util/ListIterator.java: Updated javadoc.
737 * java/util/Map.java: Updated javadoc.
738 * java/util/RandomAccess.java: New file.
739 * java/util/Set.java: Updated javadoc.
740 * java/util/SortedMap.java: Updated javadoc.
741 * java/util/SortedSet.java: Updated javadoc.
743 2001-10-15 Tom Tromey <tromey@redhat.com>
745 * java/lang/reflect/AccessibleObject.java (checkPermission):
747 Updated copyright information.
749 2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
751 * java/lang/natObject.cc (heavy_lock): Moved fields
752 old_client_data, old_finalization_proc near beginning.
753 (heavy_lock_finalization_proc): Now inline; changed type of
755 (JV_SYNC_TABLE_SZ): Now 2048.
757 (spin): `mp' now global.
758 (heavy_lock_obj_finalization_proc): Updated to correctly handle
759 heavy lock finalization.
760 (remove_all_heavy): New function.
761 (maybe_remove_all_heavy): Likewise.
762 (_Jv_MonitorEnter): Throw exception if object is NULL.
763 (_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
765 * include/jvm.h (_Jv_AllocTraceTwo): Declare.
766 * nogc.cc (_Jv_AllocTraceTwo): New function.
767 * boehm.cc (trace_two_vtable): New global.
768 (_Jv_AllocTraceTwo): New function.
770 2001-10-15 Tom Tromey <tromey@redhat.com>
772 * Makefile.in: Rebuilt.
773 * Makefile.am (awt_java_source_files): Added new file.
774 * java/beans/AppletInitializer.java: New file.
776 * java/net/SocketPermission.java (hostport, actions): Now
779 2001-10-14 Mark Wielaard <mark@klomp.org>
781 * java/lang/Double.java: Partial merge with Classpath
782 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
784 (static): new static block to load native libary (not used in libgcj)
785 (Double (String)): call parseDouble()
786 (byteValue): removed, already defined in superclass Number
787 (shortValue): likewise
788 (valueOf (String)): call new Double(String) directly
789 (compare (double,double)): new 1.4 method
790 (compareTo (Double)): call new compare(double,double) method
791 (initIDs): new private method (not used in libgcj)
792 * java/lang/Float.java: Partial merge with Classpath
793 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
795 (static): new static block to load native libary (not used in libgcj)
796 (Float (String)): call parseFloat()
797 (byteValue): removed, already defined in superclass Number
798 (shortValue): likewise
799 (valueOf (String)): call new Float(String) directly
800 (compare (float,float)): new 1.4 method
801 (compareTo (Float)): call new compare(double,double) method
803 2001-10-13 Tom Tromey <tromey@redhat.com>
805 * java/lang/SecurityManager.java (SecurityManager): Now public.
807 * java/security/AccessController.java (checkPermission): Now
808 throws AccessControlException.
809 * java/security/AllPermission.java: Class now final.
810 * java/security/Permission.java (getName): Now final.
812 (equals): New abstract method.
813 * java/security/PermissionCollection.java (linesep): Now private.
814 * java/security/Permissions.java: Class now final.
815 * java/security/Security.java (Security): New private
817 * java/security/UnresolvedPermission.java: Import
818 java.security.cert.Certificate. Class now final.
819 * java/security/acl/Group.java: Now extends Principal.
820 (isMember): Added Principal argument.
821 * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
823 * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
826 2001-10-12 Tom Tromey <tromey@redhat.com>
828 * Makefile.in: Rebuilt.
829 * Makefile.am (rmi_java_source_files): Added new files.
830 * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
832 * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
833 * gnu/java/rmi/rmic/Compile_gcj.java: New file.
834 * gnu/java/rmi/rmic/CompilerProcess.java: New file.
835 * gnu/java/rmi/rmic/Compiler.java: New file.
837 2001-10-11 Tom Tromey <tromey@redhat.com>
839 * configure: Rebuilt.
840 * configure.in: Recognize --disable-java-awt.
842 2001-10-10 Tom Tromey <tromey@redhat.com>
844 * gnu/gcj/runtime/natFinalizerThread.cc: New file.
845 * java/lang/natRuntime.cc: Include FinalizerThread.h.
846 (runFinalization): Call finalizerReady.
847 * nogc.cc (_Jv_GCInitializeFinalizers): New function.
848 * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
849 (_Jv_CreateJavaVM): Start the finalizer thread.
850 * no-threads.cc: Include InternalError.h.
851 (_Jv_ThreadStart): Throw InternalError.
852 (_Jv_ThreadInitData): Don't throw error if this is not the first
854 * Makefile.in: Rebuilt.
855 * Makefile.am (ordinary_java_source_files): Added
856 FinalizerThread.java.
857 (nat_source_files): Added natFinalizerThread.cc.
858 * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
859 * boehm.cc (_Jv_GCInitializeFinalizers): New function.
860 * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
861 * gnu/gcj/runtime/FinalizerThread.java: New file.
863 2001-10-09 Per Bothner <per@bothner.com>
865 * strtod.c (_strtod_r): Logic to check for missing digits
866 after exponent had 'else' attached to wrong 'if'.
868 2001-10-09 Mark Wielaard <mark@klomp.org>
870 * java/net/SocketImpl.java: Merge with Classpath
872 2001-10-08 Mark Wielaard <mark@klomp.org>
874 * java/net/DatagramSocketImpl.java: Merge with Classpath
876 2001-10-07 Mark Wielaard <mark@klomp.org>
878 * java/net/URLDecoder.java: Remerge with Classpath
879 * java/net/URLEncoder.java: Merge with Classpath
881 2001-10-08 Tom Tromey <tromey@redhat.com>
883 Fix for PR libgcj/4481:
884 * java/io/File.java (getParent): Handle case where path is "/".
885 (normalizePath): Use correct string for UNC leader.
887 2001-10-06 Mark Wielaard <mark@klomp.org>
889 * java/io/BufferedInputStream.java: Merge with Classpath
891 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
893 * defineclass.cc, java/awt/image/ColorModel.java,
894 java/awt/image/SampleModel.java, java/lang/Package.java,
895 java/security/cert/X509Extension.java: Fix spelling errors of
896 "separate" as "seperate", and corresponding spelling errors of
899 2001-10-05 Tom Tromey <tromey@redhat.com>
901 * java/text/DecimalFormat.java (format): Use localized minus sign
902 when generating exponent; never use `+'. Use floor to compute
905 2001-10-05 Mark Wielaard <mark@klomp.org>
907 * java/util/zip/Adler32.java: Merge with Classpath
908 * java/util/zip/CRC32.java: Ditto
909 * java/util/zip/Checksum.java: Ditto
910 * java/util/zip/DataFormatException.java: Ditto
911 * java/util/zip/ZipException.java: Ditto
913 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
915 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
917 2001-10-04 Mark Wielaard <mark@klomp.org>
919 * java/lang/reflect/Modifier.java: Merge with Classpath
921 2001-10-03 Mark Wielaard <mark@klomp.org>
923 * java/io/SequenceInputStream.java: Merge with Classpath
924 * java/io/StringBufferInputStream.java: Ditto
925 * java/util/Collections.java: Remerge with Classpath
927 2001-10-03 Tom Tromey <tromey@redhat.com>
929 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
932 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
934 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
935 * gij.cc (version): Use GCJVERSION.
937 2001-10-02 Mark Wielaard <mark@klomp.org>
939 * Makefile.am (core_java_source_files): add InheritableThreadLocal
940 * Makefile.in: regenerate
941 * gcj/javaprims.h: ditto
942 * java/lang/InheritableThreadLocal.java: new class from Classpath
943 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
944 call InheritableThreadLocal.newChildThread()
946 2001-10-01 Mark Wielaard <mark@klomp.org>
948 * Makefile.am: Add new classes
949 (core_java_source_files): CharSequence
950 (ordinary_java_source_files): Authenticator, PasswordAuthentication
951 * Makefile.in: regenerate
952 * gcj/javaprims.h: ditto
953 * java/lang/CharSequence: new class from Classpath
954 * java/lang/String.java: implements CharSequence
955 (subSequence (int,int)): new method
956 * java/lang/SubString.java: implements CharSequence
957 (subSequence (int,int)): new method
958 remerge comments with Classpath
959 * java/net/Authenticator.java: new class from Classpath
960 * java/net/PasswordAuthentication.java: ditto
962 2001-10-01 Tom Tromey <tromey@redhat.com>
964 * gcj/javaprims.h: Rebuilt class list.
965 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
966 (_Jv_GCCanReclaimSoftReference): New function.
967 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
968 (_Jv_GCCanReclaimSoftReference): Declare.
969 * java/lang/ref/Reference.java (referent): Now a RawData.
970 (create): Renamed from `created'. Added object argument.
971 (Reference): Don't initialize `referent' here.
972 * Makefile.in: Rebuilt.
973 * Makefile.am (nat_source_files): Added new file.
974 * java/lang/ref/natReference.cc: New file.
976 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
977 (_Jv_NewMultiArray): Use it. Check each array dimension.
978 (_Jv_NewMultiArray): Likewise.
979 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
981 * java/lang/reflect/natArray.cc (newInstance): Throw
982 IllegalArgumentException if there are no dimensions.
984 2001-10-01 Mark Wielaard <mark@klomp.org>
986 * java/io/FileWriter.java: Merge with Classpath.
987 * java/io/FilterInputStream.java: Ditto.
988 (mark): no longer synchronized
990 * java/io/FilterOutputStream.java: Merge with Classpath.
991 * java/io/FilterReader.java: Ditto.
992 (mark): no longer synchronized
994 * java/io/FilterWriter.java: Merge with Classpath.
995 * java/io/Writer.java: Ditto.
996 * java/lang/Compiler.java: Ditto.
997 * java/lang/Process.java: Ditto.
998 * java/lang/Void.java: Ditto.
999 * java/net/ContentHandler.java: Ditto.
1000 * java/net/DatagramPacket.java: Ditto.
1001 * java/net/MulticastSocket.java: Merge comments with Classpath.
1003 2001-09-30 Mark Wielaard <mark@klomp.org>
1005 * java/io/DataInput.java: Merge with Classpath.
1006 * java/io/DataOutput.java: Idem.
1007 * java/io/FilenameFilter.java: Idem.
1008 * java/io/Serializable.java: Idem.
1009 * java/lang/Cloneable.java: Idem.
1010 * java/lang/Comparable.java: Idem.
1011 * java/lang/Runnable.java: Idem.
1012 * java/lang/reflect/Member.java: Idem.
1013 * java/net/ContentHandlerFactory.java: Idem.
1014 * java/net/FileNameMap.java: Idem.
1015 * java/net/SocketImplFactory.java: Idem.
1016 * java/net/SocketOptions.java: Idem.
1017 * java/net/URLStreamHandlerFactory.java: Idem.
1019 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1021 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
1022 an uninitialized target class.
1024 * gnu/gcj/protocol/file/Connection.java (connect): Throw
1025 FileNotFoundException if appropriate.
1026 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
1027 IOException if we got a file: url with a hostname. Comment out protocol
1028 switch to ftp for now.
1029 * java/net/URL.java (URL): Include protocol name in exception message
1030 when handler can't be found.
1032 2001-09-28 Per Bothner <per@bothner.com>
1034 * gnu/gcj/runtime/SharedLibLoader.java: New class.
1035 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
1036 * Makefile.am: Update accordingly.
1037 * configure.in: Add AC_CHECK_LIB for dlopen.
1038 * include/config.h.in: Add HAVE_DLOPEN.
1040 2001-09-29 Jeff Sturm <jsturm@one-point.com>
1042 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
1043 * Makefile.in: Rebuilt.
1045 2001-09-27 Tom Tromey <tromey@redhat.com>
1047 * java/util/IdentityHashMap.java (containsKey): Use getHash.
1051 (getHash): New method.
1052 (tombstone, emptyslot): Now static final.
1053 (put): Correctly determine when to rehash, and correctly rehash.
1054 (containsKey, remove): Test against table length with `>='.
1056 2001-09-26 Tom Tromey <tromey@redhat.com>
1058 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
1060 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
1061 Re-merged with Classpath.
1063 * java/io/DataInputStream.java (readChar): Use readFully.
1064 (readInt): Likewise.
1065 (readLong): Likewise.
1066 (readShort): Likewise.
1067 (readUnsignedShort): Likewise.
1069 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1071 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
1072 IllegalThreadStateException if process hasn't exited yet.
1073 * java/lang/natPosixProcess.cc (exitValue): Removed.
1074 (waitFor): Only check thread interrupted status if waitpid() returned
1075 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
1078 * java/security/cert/X509Extension.java: Merge from classpath.
1080 2001-09-22 Anthony Green <green@redhat.com>
1082 * java/security/DummyKeyPairGenerator.java (initialize): New
1083 method (with AlgorithmParameterSpec argument).
1085 2001-09-22 Anthony Green <green@redhat.com>
1087 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
1089 * gnu/java/security/provider/SHA1PRNG.java: Extend from
1091 (engineNextBytes): Fix order of memory copies.
1093 2001-09-21 Richard Henderson <rth@redhat.com>
1095 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
1096 add get_method, set_method, vtable_elt_size, new_vtable.
1097 (_Jv_ArrayVTable): Derive from _Jv_VTable.
1098 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
1099 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
1100 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
1102 2001-09-21 Richard Henderson <rth@redhat.com>
1104 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
1105 * java/lang/mprec.c (lo0bits): Fix paren typo.
1107 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1109 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
1110 blocking IO via pthread_kill().
1111 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
1112 interrupted status flag only if ::write returned an error.
1113 (write (jbyteArray, jint, jint): Likewise.
1114 (read (jint)): Likewise.
1115 (read (jbyteArray, jint, jint): Likewise.
1117 2001-09-19 Anthony Green <green@redhat.com>
1119 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
1122 2001-09-17 Andreas Jaeger <aj@suse.de>
1124 * jni.cc (array_from_valist): Use promoted types for va_arg.
1126 2001-09-16 Anthony Green <green@redhat.com>
1128 * gnu/java/locale/LocaleInformation.java: Extend
1129 LocaleInformation_en_US, not LocaleInformation_en.
1131 2001-09-16 Anthony Green <green@redhat.com>
1133 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
1135 2001-09-14 Tom Tromey <tromey@redhat.com>
1137 * java/util/TimeZone.java: Updated list of timezones from
1140 * java/lang/CloneNotSupportedException.java: Re-merged with
1143 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1145 * java/io/File.java (normalizePath): Use equals() not '==' for string
1148 * java/util/Hashtable.java (Enumerator): Ensure that if
1149 hasMoreElements() returns true, nextElement() will always return
1150 something even if the table has been modified.
1152 2001-09-12 Tom Tromey <tromey@redhat.com>
1154 * Makefile.in: Rebuilt.
1155 * Makefile.am (class-check): New target.
1157 2001-09-11 Tom Tromey <tromey@redhat.com>
1159 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
1161 2001-09-10 Tom Tromey <tromey@redhat.com>
1163 * java/util/Properties.java (load): Correctly read \u sequences.
1164 Report from Anthony Green.
1166 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
1168 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
1169 and $(MULTIBUILDTOP).
1170 * configure: Re-generate.
1172 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1174 * include/jvm.h (_Jv_AllocRawObj): New prototype.
1175 * boehm.cc (_Jv_AllocRawObj): Implement.
1176 * nogc.cc (_Jv_AllocRawObj): Likewise.
1177 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
1179 2001-09-06 Anthony Green <green@redhat.com>
1181 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
1182 redundant method calls.
1183 (emptyLocale): New private member.
1184 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
1187 2001-09-06 Tom Tromey <tromey@redhat.com>
1189 * java/text/RuleBasedCollator.java (clone): Rewrote.
1190 (RuleBasedCollator(RuleBasedCollator)): Removed.
1191 * java/text/MessageFormat.java: Re-merged from Classpath.
1192 * java/text/DecimalFormat.java: Re-merged from Classpath.
1194 2001-09-06 Anthony Green <green@redhat.com>
1196 * include/jvm.h: Declare _Jv_RegisterResource.
1197 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
1198 gnu/gcj/protocol/core/Connection.java,
1199 gnu/gcj/protocol/core/Handler.java,
1200 gnu/gcj/protocol/core/CoreInputStream.java,
1201 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
1202 * java/net/URL.java (setURLStreamHandler): Use
1203 gnu.gcj.protocol.core.Handler for the core protocol.
1204 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
1205 end of java.class.path.
1206 * Makefile.am (ordinary_java_source_files): Add new java files.
1207 (nat_source_files): Add new native code files.
1208 * Makefile.in: Rebuilt.
1210 2001-09-05 Tom Tromey <tromey@redhat.com>
1212 * java/util/Properties.java: Re-merged from Classpath.
1214 From Eric Blake, via Classpath:
1215 * java/lang/String.java (CaseInsensitiveComparator): New class.
1216 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
1218 * java/util/Date.java: Re-merged with Classpath.
1220 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
1222 2001-09-05 Corey Minyard <minyard@acm.org>
1223 Tom Tromey <tromey@redhat.com>
1225 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
1226 (_Jv_RegisterClassHookDefault): Throw error if a class is
1229 2001-09-05 Tom Tromey <tromey@redhat.com>
1231 * java/lang/natSystem.cc (init_properties): Default locale is
1234 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1236 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
1237 here, DecimalFormat.applyPattern() does not throw it.
1239 2001-09-04 Tom Tromey <tromey@redhat.com>
1241 * java/util/AbstractMap.java: Re-merged with Classpath.
1242 * java/util/IdentityHashMap.java: Re-merged with Classpath.
1244 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
1245 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
1246 gnu/gcj/text/LocaleData_en_US.java: Removed.
1247 * java/text/DateFormatSymbols.java (clone): Use Classpath
1249 (equals): Simplified.
1250 (DateFormatSymbols): Look in gnu.java.locale for information.
1251 (DateFormatSymbols(DateFormatSymbols)): Removed.
1252 (safeGetResource): Removed.
1253 (DateFormatSymbols): Throws MissingResourceException.
1254 (ampmsDefault, erasDefault, localPatternCharsDefault,
1255 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
1256 weekdaysDefault, zoneStringsDefault): Removed.
1257 * java/text/Collator.java (getAvailableLocales): Use modified
1258 Classpath implementation.
1259 (getInstance): Look in gnu.java.locale for information.
1261 * java/text/MessageFormat.java: Reindented.
1263 * java/text/FieldPosition.java: Merged with Classpath.
1264 * java/text/ParsePosition.java: Merged with Classpath.
1265 * java/text/Format.java: Merged with Classpath.
1266 * java/text/StringCharacterIterator.java
1267 (StringCharacterIterator(StringCharacterIterator,int,int)): New
1268 constructor from Classpath.
1269 * java/text/Annotation.java,
1270 java/text/AttributedCharacterIterator.java,
1271 java/text/AttributedString.java,
1272 java/text/AttributedStringIterator.java: New from Classpath.
1273 * java/text/CharacterIterator.java: Copied from Classpath.
1274 * java/text/ChoiceFormat.java: Reindented.
1276 * gnu/java/text/BaseBreakIterator.java,
1277 gnu/java/text/CharacterBreakIterator.java,
1278 gnu/java/text/LineBreakIterator.java,
1279 gnu/java/text/LocaleData_en.java,
1280 gnu/java/text/LocaleData_en_US.java,
1281 gnu/java/text/SentenceBreakIterator.java,
1282 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
1283 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
1285 * java/text/BreakIterator.java (getAvailableLocales): Use
1286 Classpath implementation.
1287 (getInstance): Look in gnu.java.locale for information.
1288 (getCharacterInstance, getLineInstance, getSentenceInstance,
1289 getWordInstance): Look in gnu.java.text for implementations.
1290 * java/text/DecimalFormatSymbols.java: Reindented
1291 (clone): Use Classpath implementation.
1292 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
1293 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
1295 * java/text/DateFormat.java: Merged with Classpath.
1296 (getAvailableLocales): Use Classpath implementation.
1297 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
1298 (computeInstance): Look in gnu.java.locale for information.
1299 * java/text/NumberFormat.java: Reindented.
1300 (computeInstance): Look in gnu.java.locale for information.
1301 (getAvailableLocales): Use implementation from Classpath.
1302 (setMaximumIntegerDigits): Likewise.
1303 (setMinimumIntegerDigits): Likewise.
1304 (setMaximumFractionDigits): Likewise.
1306 * java/text/DecimalFormat.java: Reindented.
1307 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
1308 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
1309 * Makefile.in: Rebuilt.
1310 * Makefile.am (ordinary_java_source_files): Added all new files.
1311 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
1312 * java/security/spec/AlgorithmParameterSpec.java,
1313 java/security/spec/KeySpec.java: Re-merged with Classpath.
1315 Fix for PR libgcj/4213:
1316 * Makefile.am (ordinary_java_source_files): Added new file.
1317 * gnu/gcj/text/LocaleData.java: New file.
1319 2001-09-03 Tom Tromey <tromey@redhat.com>
1321 * java/lang/reflect/natField.cc (set): Allow for case when the
1322 value is null. Fixes PR libgcj/4208.
1324 * gcj/javaprims.h: Regenerated class list.
1325 * java/lang/IllegalThreadStateException.java,
1326 java/lang/InstantiationException.java: Minor comment tweaks to
1327 satisfy libgcj `classes.pl' script.
1329 2001-09-01 Tom Tromey <tromey@redhat.com>
1331 * Makefile.in: Rebuilt.
1332 * Makefile.am (core_java_source_files): Added
1333 UnsupportedClassVersionError.
1334 * java/lang/UnsupportedClassVersionError.java: New file from
1337 * java/io/CharConversionException.java, java/io/EOFException.java,
1338 java/io/FileNotFoundException.java, java/io/IOException.java,
1339 java/io/InterruptedIOException.java,
1340 java/io/ObjectStreamException.java,
1341 java/io/OptionalDataException.java,
1342 java/io/StreamCorruptedException.java,
1343 java/io/SyncFailedException.java,
1344 java/io/UTFDataFormatException.java,
1345 java/io/UnsupportedEncodingException.java,
1346 java/lang/AbstractMethodError.java,
1347 java/lang/ArithmeticException.java,
1348 java/lang/ArrayIndexOutOfBoundsException.java,
1349 java/lang/ArrayStoreException.java,
1350 java/lang/ClassCastException.java,
1351 java/lang/ClassCircularityError.java,
1352 java/lang/ClassFormatError.java,
1353 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
1354 java/lang/Exception.java,
1355 java/lang/ExceptionInInitializerError.java,
1356 java/lang/IllegalAccessError.java,
1357 java/lang/IllegalAccessException.java,
1358 java/lang/IllegalArgumentException.java,
1359 java/lang/IllegalMonitorStateException.java,
1360 java/lang/IllegalStateException.java,
1361 java/lang/IllegalThreadStateException.java,
1362 java/lang/IncompatibleClassChangeError.java,
1363 java/lang/IndexOutOfBoundsException.java,
1364 java/lang/InstantiationError.java,
1365 java/lang/InstantiationException.java,
1366 java/lang/InternalError.java, java/lang/InterruptedException.java,
1367 java/lang/LinkageError.java,
1368 java/lang/NegativeArraySizeException.java,
1369 java/lang/NoClassDefFoundError.java,
1370 java/lang/NoSuchFieldError.java,
1371 java/lang/NoSuchFieldException.java,
1372 java/lang/NoSuchMethodError.java,
1373 java/lang/NoSuchMethodException.java,
1374 java/lang/NullPointerException.java,
1375 java/lang/NumberFormatException.java,
1376 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
1377 java/lang/SecurityException.java,
1378 java/lang/StackOverflowError.java,
1379 java/lang/StringIndexOutOfBoundsException.java,
1380 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
1381 java/lang/UnsatisfiedLinkError.java,
1382 java/lang/UnsupportedOperationException.java,
1383 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
1384 java/lang/reflect/InvocationTargetException.java,
1385 java/net/BindException.java, java/net/ConnectException.java,
1386 java/net/MalformedURLException.java,
1387 java/net/NoRouteToHostException.java,
1388 java/net/ProtocolException.java, java/net/SocketException.java,
1389 java/net/UnknownHostException.java,
1390 java/net/UnknownServiceException.java,
1391 java/text/ParseException.java: Copied from Classpath, thanks to
1392 Mark Wielaard who did the merge.
1394 * java/lang/System.java (getProperty): Use single argument form of
1395 SecurityManager.checkPropertyAccess.
1396 * Makefile.in: Rebuilt.
1397 * Makefile.am (core_java_source_files): Added VMSecurityManager.
1398 * java/lang/VMSecurityManager.java: New file.
1399 * java/lang/SecurityManager.java: Merged with Classpath.
1401 2001-08-31 Per Bothner <per@bothner.com>
1403 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
1404 (_Jv_RegisterClassHookDefault): Likewise.
1405 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
1406 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
1407 (_Jv_RegisterClassHookDefault): New.function.
1408 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
1410 * java/lang/ClassLoader.java (system): Remove static field.
1411 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
1412 directly instead of using it to set the system field.
1413 (loadClass): Use VMClassLoader.instance instead of system field.
1414 (findSystemClass): Similar.
1415 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
1416 than ClassLoader::system which no longer exists.
1417 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
1419 2001-08-31 Tom Tromey <tromey@redhat.com>
1421 * java/io/BufferedReader.java, java/io/ObjectInput.java,
1422 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
1423 Re-merged with Classpath.
1425 Re-merge with Classpath:
1426 * java/util/Comparator (equals): Added.
1427 * java/io/PipedWriter.java (write): Changed argument to `int'.
1429 * java/io/FileDescriptor.java (FileDescriptor()): New
1431 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
1433 * Makefile.in: Rebuilt.
1434 * Makefile.am (ordinary_java_source_files): Removed
1435 EnumerationChain, added DoubleEnumeration.
1436 (nat_source_files): Added natResourceBundle.cc.
1437 * java/util/natResourceBundle.cc: New file.
1438 * gnu/java/util/DoubleEnumeration.java: New file.
1439 * gnu/gcj/util/EnumerationChain.java: Removed.
1440 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
1441 * java/util/ResourceBundle.java: Merged with Classpath.
1442 * java/util/StringTokenizer.java: Merged with Classpath.
1443 * java/util/Locale.java: Merged with Classpath.
1444 * java/util/Random.java: Merged with Classpath.
1445 * java/util/PropertyResourceBundle.java: Merged with Classpath.
1446 * java/util/ListResourceBundle.java: Merged with Classpath.
1447 * java/util/ConcurrentModificationException.java: Re-merged with
1449 * java/util/EmptyStackException.java: Likewise.
1450 * java/util/MissingResourceException.java: Likewise.
1451 * java/util/NoSuchElementException.java: Likewise.
1452 * java/util/TooManyListenersException.java: Likewise.
1454 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
1455 * java/io/OptionalDataException.java: Merged with Classpath.
1457 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
1459 * exception.cc (PERSONALITY_FUNCTION): Simplify
1462 2001-08-31 Tom Tromey <tromey@redhat.com>
1464 * java/io/ByteArrayInputStream.java: Merged with Classpath.
1466 2001-08-30 Tom Tromey <tromey@redhat.com>
1468 * java/io/BufferedReader.java: Re-merged with Classpath.
1470 2001-08-28 Per Bothner <per@bothner.com>
1472 * java/math/BigInteger.java (init(int,Random)): New method.
1473 Move body of constructor <init>(int,Random)) here.
1474 Re-write it to avoid constructing unneeded temporaries.
1475 (<init>(int,int,Random)): Use new init method to avoid constructing
1476 extra temporary BigIntegers.
1478 2001-08-27 Tom Tromey <tromey@redhat.com>
1480 * java/rmi/activation/Activatable.java,
1481 java/rmi/activation/ActivateFailedException.java,
1482 java/rmi/activation/ActivationDesc.java,
1483 java/rmi/activation/ActivationException.java,
1484 java/rmi/activation/ActivationGroup.java,
1485 java/rmi/activation/ActivationGroupDesc.java,
1486 java/rmi/activation/ActivationGroupID.java,
1487 java/rmi/activation/ActivationID.java,
1488 java/rmi/activation/ActivationInstantiator.java,
1489 java/rmi/activation/ActivationMonitor.java,
1490 java/rmi/activation/ActivationSystem.java,
1491 java/rmi/activation/Activator.java,
1492 java/rmi/activation/UnknownGroupException.java,
1493 java/rmi/activation/UnknownObjectException.java,
1494 java/rmi/AccessException.java,
1495 java/rmi/AlreadyBoundException.java,
1496 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
1497 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
1498 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
1499 java/rmi/NotBoundException.java,
1500 java/rmi/RMISecurityException.java,
1501 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
1502 java/rmi/RemoteException.java, java/rmi/ServerError.java,
1503 java/rmi/ServerException.java,
1504 java/rmi/ServerRuntimeException.java,
1505 java/rmi/StubNotFoundException.java,
1506 java/rmi/UnexpectedException.java,
1507 java/rmi/UnknownHostException.java,
1508 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
1509 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
1510 java/rmi/registry/LocateRegistry.java,
1511 java/rmi/registry/Registry.java,
1512 java/rmi/registry/RegistryHandler.java,
1513 java/rmi/server/ExportException.java,
1514 java/rmi/server/LoaderHandler.java,
1515 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
1516 java/rmi/server/Operation.java,
1517 java/rmi/server/RMIClassLoader.java,
1518 java/rmi/server/RMIClientSocketFactory.java,
1519 java/rmi/server/RMIFailureHandler.java,
1520 java/rmi/server/RMIServerSocketFactory.java,
1521 java/rmi/server/RMISocketFactory.java,
1522 java/rmi/server/RemoteCall.java,
1523 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
1524 java/rmi/server/RemoteServer.java,
1525 java/rmi/server/RemoteStub.java,
1526 java/rmi/server/ServerCloneException.java,
1527 java/rmi/server/ServerNotActiveException.java,
1528 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
1529 java/rmi/server/SkeletonMismatchException.java,
1530 java/rmi/server/SkeletonNotFoundException.java,
1531 java/rmi/server/SocketSecurityException.java,
1532 java/rmi/server/UID.java,
1533 java/rmi/server/UnicastRemoteObject.java,
1534 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
1535 gnu/java/rmi/dgc/DGCImpl_Skel.java,
1536 gnu/java/rmi/dgc/DGCImpl_Stub.java,
1537 gnu/java/rmi/registry/RegistryImpl.java,
1538 gnu/java/rmi/registry/RegistryImpl_Skel.java,
1539 gnu/java/rmi/registry/RegistryImpl_Stub.java,
1540 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
1541 gnu/java/rmi/server/ProtocolConstants.java,
1542 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
1543 gnu/java/rmi/server/RMIHashes.java,
1544 gnu/java/rmi/server/RMIObjectInputStream.java,
1545 gnu/java/rmi/server/RMIObjectOutputStream.java,
1546 gnu/java/rmi/server/UnicastConnection.java,
1547 gnu/java/rmi/server/UnicastConnectionManager.java,
1548 gnu/java/rmi/server/UnicastRef.java,
1549 gnu/java/rmi/server/UnicastRemoteCall.java,
1550 gnu/java/rmi/server/UnicastRemoteStub.java,
1551 gnu/java/rmi/server/UnicastServer.java,
1552 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
1553 Kaffe. Relabelled classes to fit into Classpath tree.
1554 * Makefile.in: Rebuilt.
1555 * Makefile.am (rmi_java_source_files): New macro.
1556 (ordinary_java_source_files): Reference it.
1557 (bin_PROGRAMS): Added rmic and rmiregistry.
1558 (rmic_SOURCES): New macro.
1559 (EXTRA_rmic_SOURCES): Likewise.
1560 (rmic_LDFLAGS): Likewise.
1561 (rmic_LINK): Likewise.
1562 (rmic_LDADD): Likewise.
1563 (rmic_DEPENDENCIES): Likewise.
1564 (rmiregistry_SOURCES): New macro.
1565 (EXTRA_rmiregistry_SOURCES): Likewise.
1566 (rmiregistry_LDFLAGS): Likewise.
1567 (rmiregistry_LINK): Likewise.
1568 (rmiregistry_LDADD): Likewise.
1569 (rmiregistry_DEPENDENCIES): Likewise.
1571 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1573 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
1575 * Makefile.am: New friends for java/lang/Thread.h.
1576 * prims.cc (runFirst): Removed.
1577 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
1578 (_Jv_RunMain): Now takes either a klass or class name parameter.
1579 Create a gnu.gcj.runtime.FirstThread and attach the native thread
1580 to that, then run it using _Jv_ThreadRun. Remove special handling of
1581 jar files, instead pass is_jar parameter through to FirstThread.
1582 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
1583 of _Jv_AttachCurrentThread.
1584 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
1585 (run): New method. Take care of looking up main class manifest
1586 attribute and calling forName if necessary. Then call call_main.
1587 (call_main): New native method.
1588 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
1589 relocated from prims.cc. Look up and call main method.
1590 * java/lang/Thread.java (run_): Removed.
1591 * java/lang/natThread.cc (run_): Renamed to...
1592 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
1593 (_Jv_NotifyThreadStart): here. New function.
1594 (countStackFrames, destroy, resume, suspend, stop): Throw
1595 UnsupportedOperationExceptions rather than JvFail'ing.
1596 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
1597 Existing version wraps new variant.
1600 2001-08-23 Tom Tromey <tromey@redhat.com>
1602 * java/lang/reflect/Field.java (toString): Use
1603 Method.appendClassName.
1604 * java/lang/reflect/Constructor.java (toString): Use
1605 Method.appendClassName.
1606 * java/lang/reflect/Method.java: Reindented.
1607 (appendClassName): New method.
1609 * defineclass.cc (handleMethod ): Initialize `throws' field of
1611 (read_one_method_attribute): Handle Exceptions attribute.
1612 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
1613 (ObjectClass): Removed.
1614 (getType): Compute `exception_types'.
1615 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
1617 2001-08-21 Anthony Green <green@redhat.com>
1619 * java/lang/natClassLoader.cc (findClass): Search for
1620 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
1622 2001-08-21 Jeff Sturm <jsturm@one-point.com>
1624 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
1627 2001-08-20 Tom Tromey <tromey@redhat.com>
1629 * java/awt/GridBagConstraints.java: Removed comment.
1631 * jni.cc (nathash, nathash_count, nathash_size): New globals.
1632 (DELETED_ENTRY): New define.
1633 (hash): New function.
1634 (nathash_find_slot): Likewise.
1635 (natrehash): Likewise.
1636 (nathash_add): Likewise.
1637 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
1639 (nathash_find): New function.
1640 (_Jv_LookupJNIMethod): Use it. Synchronize body.
1641 (call): Synchronize around assignment.
1643 2001-08-17 Jeff Sturm <jsturm@one-point.com>
1645 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
1646 starting from zero offset.
1648 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1650 * boehm.cc: Include gc_local_alloc.h if appropriate.
1651 (GC_GENERIC_MALLOC): Don't define.
1652 (MAYBE_MARK): Redefine for GC 6.0.
1653 (_Jv_MarkObj): Mark class differently.
1654 (_Jv_AllocArray): Use GC_generic_malloc.
1656 2001-08-17 Mark J Roberts <mjr@anarcast.net>
1658 * java/math/BigInteger.java (randBytes): New method.
1659 (BigInteger(int,Random)): Use randBytes.
1661 2001-08-17 Tom Tromey <tromey@redhat.com>
1663 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
1665 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1667 * BigInteger.java: fix right shifts by nonzero multiples of 32.
1669 2001-08-15 Tom Tromey <tromey@redhat.com>
1671 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
1672 (local_ref_table, global_ref_table): Now IdentityHashMap.
1673 (_Jv_JNI_Init): Updated for new types.
1674 (mark_for_gc): Likewise.
1675 (unmark_for_gc): Likewise.
1676 * gcj/javaprims.h: Rebuilt class list.
1677 * Makefile.in: Rebuilt.
1678 * Makefile.am (core_java_source_files): Added new file.
1679 * java/util/IdentityHashMap.java: New file.
1681 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
1684 2001-08-09 Tom Tromey <tromey@redhat.com>
1686 * java/awt/image/SampleModel.java (getPixel): Set correct array
1687 element. From Chris Meyer.
1689 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
1691 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
1692 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
1694 2001-08-06 Tom Tromey <tromey@redhat.com>
1696 * java/io/InputStreamReader.java (refill): Only call refill on
1697 BufferedInputStream when appropriate constraints are met.
1699 2001-08-05 Tom Tromey <tromey@redhat.com>
1701 * java/io/StringWriter.java: Merged with Classpath.
1702 * java/io/InputStream.java: Merged with Classpath.
1703 * java/io/OutputStream.java: Merged with Classpath.
1704 * java/io/PushbackInputStream.java: Merged with Classpath.
1705 * java/io/CharArrayReader.java: Merged with Classpath.
1706 * java/io/CharArrayWriter.java: Merged with Classpath.
1708 2001-08-02 Tom Tromey <tromey@redhat.com>
1710 * prims.cc (JNI_OnLoad): Don't declare.
1711 (_JNI_OnLoad): Don't define.
1712 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
1714 2001-08-02 Tom Tromey <tromey@redhat.com>
1716 * java/io/RandomAccessFile.java (seek): Let seek go past end of
1718 (skipBytes): Don't fail if seeking past end of file.
1719 * java/io/FileInputStream.java (skip): Don't fail if seeking past
1721 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
1723 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
1725 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
1727 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
1729 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
1731 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
1732 to initialize global_ref_table/local_ref_table.
1734 2001-08-02 Tom Tromey <tromey@redhat.com>
1736 * configure: Rebuilt.
1737 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
1740 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1742 * include/posix.h (_POSIX_PII_SOCKET): Define.
1743 * configure.in (HAVE_SOCKLEN_T): Define.
1744 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
1746 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
1747 (java::net::PlainSocketImpl::accept): Use it.
1748 Fixes PRs libgcj/3694, libgcj/3696.
1750 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
1751 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
1752 * configure, include/config.h.in: Regenerate.
1753 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
1754 (mcastGrp): Likewise.
1755 (java::net::PlainDatagramSocketImpl::setOption): Guard against
1756 missing IPV6_MULTICAST_IF.
1757 Fixes PR libgcj/3694.
1759 2001-08-01 Jeff Sturm <jsturm@one-point.com>
1761 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
1763 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
1765 * Makefile.in: Rebuilt.
1766 * Makefile.am (GCJLINK): Added --tag=GCJ.
1767 (LIBLINK): Likewise.
1769 2001-07-30 Tom Tromey <tromey@redhat.com>
1771 * java/util/Date.java: Re-merged with Classpath.
1773 2001-07-30 Jeff Sturm <jsturm@one-point.com>
1775 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
1776 (_Jv_bind): New static function.
1777 (bind): Use _Jv_bind.
1778 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1779 (_Jv_bind, _Jv_connect): New static functions.
1780 (bind): Use _Jv_bind.
1781 (connect): Use _Jv_connect.
1783 2001-07-30 Tom Tromey <tromey@redhat.com>
1784 Corey Minyard <minyard@acm.org>
1786 * gnu/gcj/convert/natIconv.cc (done): New methods.
1787 * gnu/gcj/convert/Output_iconv.java (done): New method.
1788 * gnu/gcj/convert/Input_iconv.java (done): New method.
1789 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1791 (getDefaultEncodingClass): Removed.
1792 (getDefaultEncoder): Use getEncoder.
1794 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1796 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1798 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1800 (getDefaultDecodingClass): Removed.
1801 (getDefaultDecoder): Use getDecoder.
1802 (getDecoder): Look up decoder in cache.
1804 * java/lang/natString.cc (init): Call `done' on converter.
1805 (getBytes): Likewise.
1807 2001-07-30 Tom Tromey <tromey@redhat.com>
1809 * java/lang/Integer.java: Merged with Classpath.
1811 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1813 * java/util/GregorianCalendar.java (GregorianCalendar): Call
1814 setTimeInMillis() to set the default/current time.
1816 2001-07-29 Mark Wielaard <mark@klomp.org>
1818 * HACKING: add description on updating namespace
1820 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1822 * java/util/Calendar.java (set): Never recompute fields here. They
1823 will already be set if someone set time explicitly, and it can cause
1824 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1825 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1826 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1828 * java/text/SimpleDateFormat.java (defaultCentury): New field.
1829 (readObject): Call set2DigitYearStart if appropriate so that
1830 defaultCentury is calculated.
1831 (SimpleDateFormat): Don't bother clearing calendar here. Call
1832 computeCenturyStart().
1833 (set2DigitYearStart): Calculate and set defaultCentury.
1834 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1836 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1837 2 numeric digits, use the 80-20 heuristic to parse the value into a
1838 default century based on defaultCenturyStart.
1839 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1841 2001-07-25 Tom Tromey <tromey@redhat.com>
1843 * Makefile.in: Rebuilt.
1844 * Makefile.am (libgcj.jar): Correctly fail when bytecode
1847 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1849 * prims.cc (_JNI_OnLoad): New function.
1850 (JNI_OnLoad): Use it.
1851 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1853 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1855 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1856 Makefile.in: Regenerate.
1858 2001-07-24 Tom Tromey <tromey@redhat.com>
1860 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1863 2001-07-23 Tom Tromey <tromey@redhat.com>
1865 * gcj/javaprims.h: Rebuilt class list.
1866 * Makefile.in: Rebuilt.
1867 * Makefile.am (core_java_source_files): Added VMClassLoader.
1868 * java/lang/VMClassLoader.java: New file.
1869 * java/lang/Boolean.java: Merged with Classpath.
1870 * java/lang/Byte.java: Merged with Classpath.
1871 * java/lang/Integer.java: Merged with Classpath.
1872 * java/lang/Long.java: Merged with Classpath.
1873 * java/lang/Number.java: Merged with Classpath.
1874 * java/lang/Short.java: Merged with Classpath.
1876 2001-07-22 Jeff Sturm <jsturm@one-point.com>
1878 * configure.host: Enable hash synchronization for alpha*-*.
1879 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1881 * java/lang/natObject.cc (compare_and_swap, release_set,
1882 compare_and_swap_release): Added inline functions for alpha.
1884 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1886 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1887 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1888 back to old RFC 2133 variants if missing.
1890 2001-07-18 Tom Tromey <tromey@redhat.com>
1892 * java/io/natFileWin32.cc (_access): Renamed.
1894 * java/io/natFile.cc (_access): Renamed.
1896 * java/io/File.java (access, stat): Add leading `_' to name.
1897 Updated all callers.
1899 2001-07-18 Tom Tromey <tromey@redhat.com>
1902 * libgcj.spec.in (*lib): Added LIBICONV.
1903 * configure: Rebuilt.
1904 * configure.in: Call AM_ICONV. Don't check for iconv function.
1905 Add parameters to JV_HASH_SYNCHRONIZATION define.
1906 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1908 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1910 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1911 not by setting its size field.
1913 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1915 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1918 2001-07-12 Tom Tromey <tromey@redhat.com>
1919 David Brownell <david-b@pacbell.net>
1921 Fix for PR libgcj/3426:
1922 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1924 (read): Throw exception if character conversion fails.
1925 * java/io/BufferedInputStream.java (refill): Now package-private.
1926 * java/io/InputStreamReader.java (ready): Simplified.
1927 (refill): New method.
1930 2001-07-12 Tom Tromey <tromey@redhat.com>
1932 Report from Henner Zeller:
1933 * java/io/FileOutputStream.java (FileOutputStream): Throw
1934 FileNotFoundException, not IOException.
1936 2001-07-10 Anthony Green <green@redhat.com>
1938 * Makefile.in: Rebuilt.
1939 * Makefile.am: Add new files.
1940 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1941 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1942 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1943 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1944 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1945 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1946 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1947 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1948 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1949 org/w3c/dom/ranges/DocumentRange.java,
1950 org/w3c/dom/ranges/Range.java,
1951 org/w3c/dom/ranges/RangeException.java,
1952 org/w3c/dom/traversal/DocumentTraversal.java,
1953 org/w3c/dom/traversal/NodeFilter.java,
1954 org/w3c/dom/traversal/NodeIterator.java,
1955 org/w3c/dom/traversal/TreeWalker.java,
1956 org/xml/sax/ext/DeclHandler.java,
1957 org/xml/sax/ext/LexicalHandler.java,
1958 org/xml/sax/helpers/AttributeListImpl.java,
1959 org/xml/sax/helpers/AttributesImpl.java,
1960 org/xml/sax/helpers/DefaultHandler.java,
1961 org/xml/sax/helpers/LocatorImpl.java,
1962 org/xml/sax/helpers/NamespaceSupport.java,
1963 org/xml/sax/helpers/ParserAdapter.java,
1964 org/xml/sax/helpers/ParserFactory.java,
1965 org/xml/sax/helpers/XMLFilterImpl.java,
1966 org/xml/sax/helpers/XMLReaderAdapter.java,
1967 org/xml/sax/helpers/XMLReaderFactory.java,
1968 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1969 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1970 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1971 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1972 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1973 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1974 org/xml/sax/SAXNotRecognizedException.java,
1975 org/xml/sax/SAXNotSupportedException.java,
1976 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1977 org/xml/sax/XMLReader.java: New files.
1979 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1981 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1982 * Makefile.in: Regenerate.
1983 * java/lang/ThreadLocal.java: Initial import.
1985 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1987 * Makefile.am (libgcj.jar): Don't recursively make
1988 built_java_source_files. Avoid long command lines.
1989 Don't change to $(srcdir) to invoke javac.
1990 (libgcj.la, libgcjx.la); Avoid long command lines.
1991 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1992 * Makefile.in: Rebuilt.
1994 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1996 * include/i386-signal.h: Don't do anything with unsigned divide
1997 overflow except throw an exception.
1999 2001-07-05 Tom Tromey <tromey@redhat.com>
2002 * java/lang/Class.h (Class(void)): Now private. Removed
2003 implementation. From dmorsberger@sensysdl.com.
2005 2001-07-02 Tom Tromey <tromey@redhat.com>
2007 Fix for PR bootstrap/3281:
2008 * aclocal.m4, configure: Rebuilt.
2009 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
2010 Correctly compute libgcj_basedir.
2011 (mkinstalldirs): Define and subst.
2013 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
2016 * java/io/LineNumberReader.java (reset): Pass correct arguments to
2019 2001-06-27 Tom Tromey <tromey@redhat.com>
2021 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
2024 2001-06-25 Tom Tromey <tromey@redhat.com>
2026 * scripts/encodings.pl: Generate lower-case names. Updated URL
2027 for `character-sets' file.
2028 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
2030 Rebuilt list of aliases.
2032 2001-06-25 Tom Tromey <tromey@redhat.com>
2034 * java/io/natFileDescriptorPosix.cc (open): Change error message
2035 formatting. From David Brownell.
2037 2001-06-21 Tom Tromey <tromey@redhat.com>
2039 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
2042 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
2044 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
2045 extraneous/malformed sign word.
2047 2001-06-15 Tom Tromey <tromey@redhat.com>
2049 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
2051 2001-06-15 Tom Tromey <tromey@redhat.com>
2053 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
2054 NULL if no library on the list has the symbol.
2055 (init): Call add_library on the program itself.
2056 * prims.cc (JvRunMain): Initialize Runtime before searching for
2058 (_Jv_RunMain): Likewise.
2060 2001-06-15 Tom Tromey <tromey@redhat.com>
2062 * jni.cc (ClassClass): Removed; updated all users.
2063 (ObjectClass): Likewise.
2064 (ThrowableClass): Likewise.
2065 (MethodClass): Likewise.
2066 (ThreadGroupClass): Likewise.
2067 (local_ref_table): Renamed from `ref_table'.
2068 (global_ref_table): New global.
2069 (_Jv_JNI_Init): Initialize both ref tables.
2070 (mark_for_gc): Added `ref_table' parameter.
2071 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
2073 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
2074 (_Jv_JNI_DeleteGlobalRef): Likewise.
2075 (_Jv_JNI_DeleteLocalRef): Likewise.
2076 (_Jv_JNI_NewLocalRef): Likewise.
2077 (_Jv_JNI_PopLocalFrame): Likewise.
2078 (_Jv_JNI_GetStringChars): Likewise.
2079 (_Jv_JNI_ReleaseStringChars): Likewise.
2080 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
2081 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
2083 2001-06-14 Tom Tromey <tromey@redhat.com>
2085 Fix for PR libgcj/3144:
2086 * java/util/Date.java: Merged with Classpath.
2088 2001-06-12 Tom Tromey <tromey@redhat.com>
2090 * aclocal.m4, configure: Rebuilt.
2091 * acinclude.m4: Find configure.host in srcdir.
2093 2001-06-07 Tom Tromey <tromey@redhat.com>
2095 Fix for PR libgcj/3059:
2096 * java/lang/natSystem.cc (init_properties): Define `java.home'.
2097 * Makefile.in: Rebuilt.
2098 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
2100 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
2102 * exception.cc (cstdlib): Replaces stdlib.h.
2103 (_Jv_Throw): Use std::abort().
2104 (PERSONALITY_FUNCTION): Likewise.
2106 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2108 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
2109 nothing, as in autoconf 2.50.
2110 * aclocal.m4, configure: Rebuilt.
2112 2001-06-08 Tom Tromey <tromey@redhat.com>
2114 * configure: Rebuilt.
2115 * configure.in: Compute new aux dir using `pwd'.
2117 2001-06-07 Tom Tromey <tromey@redhat.com>
2119 For PR bootstrap/3075:
2120 * configure, aclocal.m4, Makefile.am: Rebuilt.
2121 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
2122 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
2123 relative to libgcj_basedir.
2124 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
2125 AC_CANONICAL_SYSTEM here.
2126 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
2128 ($(extra_headers)): New target.
2130 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
2131 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2133 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
2134 table index is within allowed bounds. Ensure that we don't try to access
2135 class itable at a negative offset. Avoid an ancestor table lookup if
2136 source is a primitive type class.
2137 (isInstance): Remove redundant isPrimitive() check.
2139 2001-06-04 Tom Tromey <tromey@redhat.com>
2141 * java/security/PublicKey.java: Extend Key.
2142 * java/security/PrivateKey.java: Extend Key.
2144 2001-06-02 Anthony Green <green@redhat.com>
2146 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
2147 alternate when USE_LTDL not defined.
2149 2001-06-02 Anthony Green <green@redhat.com>
2151 * configure: Rebuild.
2152 * configure.in: Remove data_start hack.
2153 * libgcj.spec.in: Ditto.
2154 * Makefile.in: Rebuild.
2155 * Makefile.am: Ditto.
2156 * libgcjdata.c: Remove.
2158 2001-06-02 Anthony Green <green@redhat.com>
2160 * configure: Rebuild.
2161 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
2162 --without-libffi option. Tweak --disable-java-net processing.
2163 * Makefile.in: Rebuild.
2164 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
2165 * include/config.h.in: Rebuild.
2166 * acconfig.h (USE_LIBFFI): Define.
2167 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
2169 2001-06-02 Anthony Green <green@redhat.com>
2171 * configure: Rebuilt.
2172 * configure.in: Test for sigaction on native builds.
2173 * prims.cc: Check HAVE_SIGACTION.
2174 * include/config.h.in: Rebuilt.
2176 2001-05-31 Jeff Sturm <jsturm@one-point.com>
2178 * natFile.cc (get_entry): Removed functions.
2179 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
2180 Allocate enough storage for d_name if using readdir_r.
2182 2001-05-31 Tom Tromey <tromey@redhat.com>
2184 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
2186 (write): Loop until write completes. From Corey Minyard.
2188 2001-05-29 Laurent Guerby <guerby@acm.org>
2190 * java/awt/geom/Rectangle2D.java: fix doc typo.
2192 2001-05-31 Tom Tromey <tromey@redhat.com>
2194 * java/sql/DriverManager.java (getDrivers): Handle case where
2195 driver's class loader is null. From Corey Minyard.
2197 2001-05-29 Tom Tromey <tromey@redhat.com>
2199 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
2201 * configure: Rebuilt.
2202 * configure.in: Only add multilib support code if we just rebuilt
2205 2001-05-29 Andrew Haley <aph@redhat.com>
2207 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
2208 pointer: the dwarf unwinder in libgcc will do everything that's
2210 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
2211 more than we absolutely need to.
2212 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
2213 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
2215 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
2217 * configure: Rebuilt.
2218 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
2220 (SIGNAL_HANDLER): Use siginfo style handler.
2221 (INIT_SEGV): Likewise.
2222 (INIT_FPE): Likewise.
2223 * include/ppc-signal.h: Delete whole file.
2225 2001-05-24 Tom Tromey <tromey@redhat.com>
2227 * java/lang/natString.cc (init): Throw
2228 ArrayIndexOutOfBoundsException.
2229 (getChars): Likewise.
2230 (getBytes): Likewise.
2231 (valueOf): Likewise.
2233 * configure.in: Only allow hash synchronization when POSIX threads
2235 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
2236 of sync info object.
2238 2001-05-23 Tom Tromey <tromey@redhat.com>
2240 * Makefile.in: Rebuilt.
2241 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
2243 Revert patch of 2001-05-21:
2244 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
2245 (libgcj_la_LIBADD): Likewise.
2246 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
2247 (libgcjx_la_LIBADD): Likewise.
2249 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
2250 * gcj/Makefile.in: Rebuilt.
2251 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
2252 * gcj/javaprims.h: Include gcj/libgcj-config.h.
2253 * gcj/libgcj-config.h.in: New file.
2254 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
2255 * configure: Rebuilt.
2256 * configure.in: Enable hash synchronization by default on some
2258 (HASH_SYNC_SPEC): New subst.
2259 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
2260 Correctly use `test -z' instead of `test -n' in a couple places.
2261 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
2263 * configure.host (enable_java_net_default): Initialize.
2264 (enable_hash_synchronization_default): New variable.
2266 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
2268 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
2269 synchronization in use.
2270 (_Jv_MarkArray): Likewise.
2271 (_Jv_AllocBytes): Don't check return result.
2272 (handle_out_of_memory): New function.
2273 (_Jv_InitGC): Set GC_oom_fn.
2274 (trace_one_vtable): New global.
2275 (_Jv_AllocTraceOne): New function.
2276 * configure.in: Added --enable-hash-synchronization.
2277 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
2278 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
2279 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
2280 (_Jv_AllocArray): Likewise.
2281 (_Jv_AllocBytes): Likewise.
2282 (_Jv_AllocPtrFreeObject): New function.
2283 (_Jv_AllocTraceOne): Likewise.
2284 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
2286 (self_cache): New global.
2287 (_Jv_ThreadSelf_out_of_line): New function.
2288 * prims.cc (_Jv_AllocBytesChecked): Removed.
2289 (_Jv_ThrowNoMemory): New function.
2290 (_Jv_AllocObject): Don't check for null return from allocator.
2291 (_Jv_NewObjectArray): Likewise.
2292 (_Jv_AllocPtrFreeObject): New function.
2293 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
2294 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
2295 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
2296 * include/boehm-gc.h (_Jv_AllocObj): Define.
2297 (_Jv_AllocPtrFreeObj): Define.
2298 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
2299 (_Jv_ThrowNoMemory): Declare.
2300 (_Jv_AllocTraceOne): Declare.
2301 (_Jv_AllocBytesChecked): Removed.
2302 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
2303 _Jv_MutexUnlock): Handle LOCK_DEBUG.
2304 (_Jv_ThreadSelf): Handle case where system pthread_self() is
2306 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
2308 * java/lang/Object.h (sync_info): Conditional upon presence of
2309 hash synchronization.
2310 * java/lang/natObject.cc: Much new code to handle thin locks and
2311 hash synchronization.
2312 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
2315 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
2317 * gij.cc (version): Update copyright year.
2319 2001-05-22 Anthony Green <green@redhat.com>
2321 * configure.in: Tweak canadian cross test, and don't redefine GCJ
2324 2001-05-21 Per Bothner <per@bothner.com>
2326 Implement invocation interface; don't create new thread for main.
2327 * java/lang/Thread.java (gen_name): Make native.
2328 (<init>(Thread,THreadGroup,Runnable,String)): New private
2329 constructor, used by other constructors, and _Jv_AttachCurrentThread.
2330 * java/lang/natThread.cc (gen_name): New implementation.
2331 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
2332 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
2333 (_Jv_CreateJavaVM): New runtime initialization procedure.
2334 (runFirst): New proecdure - mostly code from old FirstThread::run.
2335 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
2336 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
2337 JvDetachCurrentThread): New inline wrappers.
2338 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
2339 _Jv_DetachCurrentThread): New declarations.
2340 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
2341 (getMain): new static method.
2342 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
2343 by runFirst in prims.cc.
2344 (java/lang/Thread.h): Update for new invocation interface.
2345 * include/posix-threads.h (_Jv_ThreadRegister,
2346 _Jv_ThreadUnRegister): New declarations.
2347 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2348 (really_start): Use new _Jv_ThreadRegister.
2349 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
2350 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
2351 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
2352 Complain of called when _Jv_OnlyThread already set.
2353 (_Jv_ThreadStart): Always JvFail.
2354 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
2355 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
2356 * win32-threads.cc (struct starter): Remove objet field -
2357 we use _Jv_Thread_t's new thread_obj field instead.
2358 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
2359 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2360 (really_start): Use new _Jv_ThreadRegister.
2361 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
2362 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
2363 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
2364 Removed - no longer needed with new invocation interface.
2365 * Makefile.am: Update for removed/added files.
2367 2001-05-21 Per Bothner <per@bothner.com>
2369 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
2370 (libgcj_la_LIBADD): Likewise.
2371 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
2373 2001-05-21 Per Bothner <per@bothner.com>
2375 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
2376 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
2377 taken from old Integer.toString code.
2378 (Integer::valueOf): Use _Jv_FormatInt.
2379 * java/lang/Integer.java (toString): Just use call String.valueOf.
2380 * java/lang/Long.java (toString): Fix typo in comment.
2381 * java/lang/String.java (valueOf(int)): Make native.
2382 * java/lang/StringBuffer.java (append(int)): Make native.
2383 * java/lang/natStringBuffer.cc: New file, for append(jint).
2384 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
2386 2001-05-21 Tom Tromey <tromey@redhat.com>
2388 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
2390 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
2392 * include/dwarf2-signal.h: New file.
2393 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
2394 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
2395 * configure: Rebuilt.
2397 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2399 * configure.in: Update boehm-gc include dir for new GC version.
2400 * configure: Rebuilt.
2401 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
2403 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
2404 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
2405 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
2408 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
2410 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
2411 (_Jv_MutexInit): Likewise.
2413 2001-05-18 Tom Tromey <tromey@redhat.com>
2415 * Makefile.in: Rebuilt.
2416 * Makefile.am (awt_java_source_files): Added Polygon.java.
2418 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2420 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
2421 * gcj/javaprims.h: ... here.
2422 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
2424 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
2426 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
2427 with length of ioffset table.
2428 (_Jv_IsAssignableFrom): Likewise.
2430 2001-05-17 Per Bothner <per@bothner.com>
2432 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
2434 2001-05-16 Tom Tromey <tromey@redhat.com>
2436 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
2439 2001-05-15 Tom Tromey <tromey@redhat.com>
2441 * java/util/GregorianCalendar.java (computeTime): Only call
2444 2001-05-14 Tom Tromey <tromey@redhat.com>
2446 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
2447 ZONE_OFFSET just before computing the time.
2449 2001-05-12 Zack Weinberg <zackw@stanford.edu>
2451 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
2452 * Makefile.in: Regenerate (by hand).
2453 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
2454 * doc/cni.sgml: Document #pragma GCC java_exceptions.
2456 2001-05-11 Richard Henderson <rth@redhat.com>
2458 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
2459 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
2461 2001-05-11 Richard Henderson <rth@redhat.com>
2463 * exception.cc: Include unwind-pe.h. Remove all pointer
2466 2001-05-10 Tom Tromey <tromey@redhat.com>
2468 * Makefile.in: Rebuilt.
2469 * Makefile.am (awt_java_source_files): Added Polygon.java.
2470 * java/awt/Polygon.java: New file.
2472 * java/awt/geom/AffineTransform.java
2473 (setToRotation(double,double,double)): New method.
2474 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
2475 (setToShear): Likewise.
2477 2001-05-10 Tom Tromey <tromey@redhat.com>
2479 * java/util/GregorianCalendar.java: Imported from Classpath.
2480 * gnu/java/locale/LocaleInformation_nl.java: New file from
2482 * gnu/java/locale/LocaleInformation_en.java: Likewise.
2483 * gnu/java/locale/LocaleInformation_de.java: Likewise.
2484 * gnu/java/locale/LocaleInformation.java: Likewise.
2485 * natGregorianCalendar.cc: Removed.
2486 * Makefile.in: Rebuilt.
2487 * Makefile.am (nat_source_files): Removed
2488 natGregorianCalendar.cc.
2490 2001-05-10 Tom Tromey <tromey@redhat.com>
2492 * java/text/SimpleDateFormat.java (computeCenturyStart): New
2494 (defaultCenturyStart): Use it.
2495 (readObject): Likewise.
2496 (SimpleDateFormat): Clear the calendar. Set the grouping on the
2498 (parse): Copy the calendar before modifying it. Correctly handle
2501 * java/util/Calendar.java (clear): Set field value(s) to 0.
2503 2001-05-10 Jeff Sturm <jsturm@one-point.com>
2505 * Calendar.java (get): Clear areFieldsSet if requested field
2507 (set): Unset fields that depend on new value.
2509 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2511 * java/lang/Class.h (_Jv_Self): New union type.
2512 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
2513 Jeff Sturm and Fergus Henderson.
2515 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2517 * java/lang/ClassLoader.java: Remove dead code fragment.
2519 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
2521 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2523 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2525 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
2527 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
2528 * configure.host (EXCEPTIONSPEC): New.
2529 * configure.in (EXCEPTIONSPEC): New.
2530 * configure: Rebuilt.
2532 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2534 * doc/*.texi: Remove generated documentation.
2536 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2538 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
2539 (performDelete): Fix #endif placement.
2541 2001-04-27 Zack Weinberg <zackw@stanford.edu>
2543 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
2544 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
2545 (_Jv_ThreadDestroyData): Use _Jv_Free.
2546 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
2549 2001-04-27 Tom Tromey <tromey@redhat.com>
2551 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2553 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2555 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
2557 * include/jni.h (struct JNINativeInterface): Fixed types in
2558 Get/Set*ArrayRegion declarations.
2559 (class _Jv_JNIEnv): Likewise.
2561 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
2563 * configure.in: Obtain THREADS with `gcc -v'.
2564 * configure: Rebuilt.
2566 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2569 * java/io/ObjectStreamClass.java (setClass): Calculate
2570 serialVersionUID for local class and compare it against the UID
2571 from the Object Stream. Throw InvalidClassException upon mismatch.
2572 (setUID): Renamed to...
2573 (getClassUID): this. Return the calculated class UID rather than
2574 setting uid field directly.
2575 (getDefinedSUID): Removed.
2576 * java/io/ObjectInputStream.java (resolveClass): Use the
2577 three-argument Class.forName().
2578 * java/io/InvalidClassException (toString): Don't include classname in
2579 result if it is null.
2581 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2583 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
2584 Wrap use of inet_pton in HAVE_INET6.
2586 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2588 java.security merge and ClassLoader compliance fixes.
2590 * java/lang/Class.h (Class): Include ProtectionDomain.h.
2591 New protectionDomain field.
2592 (forName): Add initialize parameter. Fixes declaration to comply with
2594 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
2595 variant. Honour "initialize" flag.
2596 (getProtectionDomain0): New method.
2597 * java/lang/Class.java: Fix forName() declaration.
2598 (getPackage): New method based on Classpath implementation.
2599 (getProtectionDomain0): New native method decl.
2600 (getProtectionDomain): New method.
2601 * java/lang/ClassLoader.java (getParent): Now final.
2602 (definedPackages): New field.
2604 (defineClass): New variant with protectionDomain argument.
2605 (definePackage): New.
2607 (findSystemClass): Now final.
2608 (getSystemResourceAsStream): Remove redundant "final" modifier.
2609 (getSystemResource): Remove redundant "final" modifier.
2610 (getResources): Now final.
2611 (protectionDomainPermission): New static field.
2612 (unknownProtectionDomain): Ditto.
2613 (defaultProtectionDomain): Ditto.
2614 (getSystemClassLoader): Now non-native.
2615 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
2616 arguments for Class.forName().
2617 * java/lang/Package.java: New file.
2618 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
2619 (instance): Static initialize singleton.
2620 (findClass): Override this, not findSystemClass.
2621 * java/lang/natClassLoader.cc (defineClass0): Set class's
2622 protectionDomain field as specified.
2623 (getSystemClassLoader): Removed.
2624 (findClass): Renamed from findSystemClass. Call the interpreter via
2625 URLClassLoader.findClass if loading class via dlopen fails.
2627 * java/security/*.java: java.security import/merge with Classpath.
2628 * java/security/acl/*.java: Likewise.
2629 * java/security/interfaces/*.java: Likewise.
2630 * java/security/spec/*.java: Likewise.
2631 * java/net/NetPermission.java: Likewise.
2632 * java/net/SocketPermission.java: Likewise.
2633 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
2635 * Makefile.am: Add new classes.
2636 * Makefile.in: Rebuilt.
2637 * gcj/javaprims.h: CNI namespace rebuild.
2639 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
2641 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
2642 for libtool tests. Pre-create gnu/classpath/Configuration.java.
2643 * configure: Rebuilt.
2645 2001-04-21 Tom Tromey <tromey@redhat.com>
2647 * Makefile.in: Rebuilt.
2648 * Makefile.am (awt_java_source_files): Added Line2D.java.
2649 * java/awt/geom/Line2D.java: Wrote.
2651 * java/awt/Menu.java (addNotify): Wrote.
2653 * java/awt/PopupMenu.java (addNotify): Implemented.
2656 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
2657 * java/awt/List.java (addNotify): Call super.addNotify.
2658 * java/awt/Label.java (addNotify): Call super.addNotify.
2659 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
2660 * java/awt/Dialog.java (addNotify): Call super.addNotify.
2661 * java/awt/Choice.java (addNotify): Call super.addNotify.
2662 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
2663 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
2665 * java/awt/List.java (replaceItem): Notify peer.
2667 * java/awt/geom/Rectangle2D.java
2668 (Float.setRect(float,float,float,float)): New method.
2670 * java/awt/event/ContainerEvent.java (getContainer): Now returns
2673 * java/awt/RenderingHints.java (Key): Class now public.
2675 * java/awt/Rectangle.java (Rectangle): Now implements
2677 (getPathIterator): Removed.
2679 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
2682 * java/awt/FileDialog.java: Wrote.
2684 * java/awt/EventQueue.java (isDispatchThread): Now public.
2685 (invokeLater): Likewise.
2687 * java/awt/Component.java (setCursor): Update peer.
2688 (getFontMetrics): Use peer.
2690 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
2693 2001-04-20 Tom Tromey <tromey@redhat.com>
2695 * java/awt/List.java: Wrote.
2696 * java/awt/Dialog.java: Wrote.
2698 2001-04-20 Warren Levy <warrenl@redhat.com>
2700 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
2701 * java/text/SimpleDateFormat.java
2702 (indexInArray): Removed private method.
2703 (processYear): Removed private method.
2704 (parseLenient): Removed private method.
2705 (parseLeadingZeros): Removed private method.
2706 (parseStrict): Removed private method.
2707 (expect): Added new private method.
2708 (parse): Reverted to pre-Classpath merge version with minor fixes.
2709 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
2712 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
2714 * java/io/File.java (normalizePath): New private method.
2715 (File (String)): Use normalizePath().
2716 (File (String, String)): Likewise.
2718 * Makefile.am (libffi_files): Removed.
2719 (libgcj.la): Link libffi as a convenience library instead of
2720 refering to its object files directly.
2721 * Makefile.in: Rebuilt.
2723 2001-04-08 Per Bothner <per@bothner.com>
2725 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
2726 Recalculate hash, since Utf8Const's hash is only 16 bits.
2728 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
2729 bits of hash to calculate step for chaining.
2731 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
2732 when 2/3 full, rather than 3/4 full.
2734 2001-04-06 Tom Tromey <tromey@redhat.com>
2736 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
2737 (wrap_value<T*>): New specialization.
2738 (_Jv_JNI_PopLocalFrame): Update env->locals.
2740 2001-04-05 Tom Tromey <tromey@redhat.com>
2742 * libtool-version: Updated current.
2744 2001-04-04 Andreas Jaeger <aj@suse.de>
2746 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2747 * gcj/Makefile.in: Rebuilt.
2748 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2749 * Makefile.in: Rebuilt.
2750 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2751 * testsuite/Makefile.in: Rebuild.
2752 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2753 * include/Makefile.in: Rebuild.
2755 2001-04-02 Zack Weinberg <zackw@stanford.edu>
2757 * testsuite/lib/libjava.exp: Correct typo: 'output from source
2758 compiled test', not 'execution from source compiled test'.
2759 Use UNTESTED, not XFAIL, for tests which are not run because
2760 they depend on a previous test which failed.
2762 2001-04-02 Richard Henderson <rth@redhat.com>
2764 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
2765 the same tree as gcc.
2766 * configure: Rebuilt.
2768 * exception.cc (_Jv_Throw): Clarify commentary.
2770 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
2772 * jni.cc (wrap_value<jclass>): New specialization.
2774 2001-04-02 Tom Tromey <tromey@redhat.com>
2776 * java/io/PrintStream.java (out): Removed field. Fixes PR
2778 (write): Call flush, not out.flush, per spec.
2779 (close): Flush output stream, per spec. Handle
2780 InterruptedIOException.
2781 (checkError): Likewise.
2782 (flush, print, write): Handle InterruptedIOException per spec.
2783 (PrintStream): Don't create BufferedOutputStream.
2784 (work_bytes): New field.
2785 (writeChars): Use work_bytes. Don't assume `out' is a
2786 BufferedOutputStream.
2788 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
2790 * java/text/MessageFormat.java (setLocale): Added missing `else'.
2793 2001-03-30 Tom Tromey <tromey@redhat.com>
2795 * jni.cc (add_char): Correctly encode non-ascii characters.
2796 (add_char): Define even when INTERPRETER not defined.
2797 (mangled_name): Likewise.
2798 (_Jv_GetJNIEnvNewFrame): Likewise.
2799 (_Jv_LookupJNIMethod): Likewise.
2801 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
2803 * configure.host: Enable interpreter for PPC.
2805 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
2807 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2808 to "file.separator", "path.separator", and "java.io.tmpdir" property
2810 * java/io/File.java: Likewise.
2811 * java/io/natFile.cc (init_native): Likewise.
2812 * java/io/natFileWin32.cc (init_native): Likewise.
2814 2001-04-01 Per Bothner <per@bothner.com>
2816 * java/lang/natString.cc (intern): If string's data does not point to
2817 this String, make a fresh String that does.
2819 * java/lang/natString.cc (unintern): Replace by static function.
2820 * java/lang/String.java (unintern): Remove method.
2822 2001-04-01 Per Bothner <per@bothner.com>
2824 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
2825 (finish): def.deflate needs to be called in a loop.
2826 (inbuf, inbufLength): New private fields.
2827 (write(int)): Use inbuf.
2828 (write(byte[],int,int): Check if pending output in inbuf.
2829 * ZipOutputStream.java: Don't use Deflater if stored.
2830 Use a Checksum object directly, not via a CheckedOutputStream.
2831 (uncompressed_size): New field,
2832 (closeEntry): Only write data_directory if needed.
2833 (write): If STORED, write directly.
2834 Always update crc, and uncompressed_size.
2835 (write_entry): Fix lots of protocol erors.
2837 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
2839 1.3-Compliant Implementation of java.io.File.
2840 * java/lang/natSystem.cc (init_properties): Get "file.separator",
2841 "path.separator", and "java.io.tmpdir" from the File class, instead
2842 of setting them explicitly.
2843 * java/io/File.java: Do not canonicalize paths for security manager
2844 checks. Call init_native() from static initializer. Do not pass path
2845 argument to native methods. New native method declarations. Some
2846 security manager checks moved to checkWrite().
2847 (equals): Check file system case sensitivity and act appropriatly.
2848 (hashCode): Likewise.
2849 (isHidden): New method implemented.
2850 (performList): Changed prototype. Now takes a class argument specifying
2851 the class of the returned array: Strings or File objects. Also added
2852 FileFilter argument.
2853 (listFiles): New variants with "File" return type implemented.
2854 (createTempFile): Use createNewFile(). Use maxPathLen.
2855 (setReadOnly): New method implemented.
2856 (listRoots): Likewise.
2857 (compareTo): Likewise.
2858 (setLastModified): Likewise.
2859 (checkWrite): New method.
2861 * java/io/natFile.cc: Various functions no longer take canonical path
2863 (stat): Handle ISHIDDEN query.
2864 (isAbsolute): Remove WIN32 cruft.
2865 (performList): New arguments. Handle returning either File[] or String[]
2866 arrays. Check with FileFilter or FilenameFilter arguments as
2867 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2868 (performSetReadOnly): New method implemented.
2869 (performListRoots): Likewise.
2870 (performSetLastModified): Likewise.
2871 (performCreate): Likewise.
2872 (init_native): New initialization function.
2873 * java/io/natFileWin32.cc: Various functions no longer take canonical
2875 (stat): Add FIXME about ISHIDDEN query.
2876 (performList): New arguments. Handle returning either File[] or String[]
2877 arrays. Check with FileFilter or FilenameFilter arguments as
2878 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2879 (performSetReadOnly): New. Stubbed.
2880 (performListRoots): Likewise.
2881 (performSetLastModified): Likewise.
2882 (performCreate): Likewise.
2883 (init_native) New initialization function.
2884 * configure.in: Check for utime() and chmod().
2885 * configure: Rebuilt.
2886 * include/config.h.in: Rebuilt.
2888 Resolves PR libgcj/1759.
2890 2001-03-28 Richard Henderson <rth@redhat.com>
2892 IA-64 ABI Exception Handling:
2893 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2894 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2895 Remove EXCEPTIONSPEC.
2896 * configure.host (libgcj_sjlj): Remove.
2897 * configure.in (EXCEPTIONSPEC): Remove.
2898 (enable-sjlj-exceptions): Detect if not specified.
2899 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2900 what header we're looking for.
2901 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2902 * Makefile.in, configure: Regenerate.
2903 * exception.cc: Don't declare libgcc2 stuff.
2904 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2905 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2906 (win32_get_restart_frame): Remove.
2907 (struct java_exception_header): New.
2908 (__gcj_exception_class): New.
2909 (get_exception_header_from_ue): New.
2910 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2911 (size_of_encoded_value, read_encoded_value): New.
2912 (read_uleb128, read_sleb128, parse_lsda_header): New.
2913 (get_ttype_entry, __gcj_personality_sj0): New.
2914 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2916 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2918 * javax/naming/InitialContext.java (init): Fix typo.
2919 (composeName): Remove unnecessary semicolon.
2920 (addToEnvironment): Remove unnecessary semicolon.
2921 (addToEnvironment): Use put() instead of add().
2923 * javax/naming/InitialContext.java (InitialContext):
2925 (destroySubcontext): Method doesn't return a result.
2926 * javax/naming/Context.java: Import java.util.Hashtable.
2927 * javax/naming/Name.java: Import java.util.Enumeration.
2929 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2931 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2932 objects in subdirectories.
2933 * Makefile.in: Rebuilt.
2935 2001-03-25 Richard Henderson <rth@redhat.com>
2937 * exception.cc (java_eh_info): Make value type jthrowable.
2938 (_Jv_type_matcher): Remove now unneeded cast.
2939 (_Jv_Throw): Make argument type jthrowable. Munge name
2940 for SJLJ_EXCEPTIONS here ...
2941 * gcj/cni.h: ... not here.
2943 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2945 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2946 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2947 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2948 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2949 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2950 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2951 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2952 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2953 java/lang/natDouble.cc, java/lang/natObject.cc,
2954 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2955 java/lang/natString.cc, java/lang/natSystem.cc,
2956 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2957 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2958 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2959 java/util/zip/natInflater.cc:
2960 Use throw, not JvThrow or _Jv_Throw.
2962 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2964 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2965 paramater, bump it to 1.
2966 * java/util/Hashtable.java (Hashtable): Likewise.
2968 2001-03-23 Per Bothner <per@bothner.com>
2970 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2971 check for errors, since we don't want to throw exception on
2972 overflow/underflow. Instead, trim whitespace, and then check that
2973 _strtod_r uses up all the rest of the string.
2975 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2976 ancestors array is invalid for interfaces, so do that *after*
2977 check that the target type is not an interface.
2979 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2981 * prims.cc (_Jv_FindClassFromSignature): Check return of
2982 recursive call. Do not abort on invalid signature; return NULL
2985 2001-03-22 Tom Tromey <tromey@redhat.com>
2987 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2988 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2990 * include/jvm.h (_Jv_ResolveField): Declare.
2991 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2992 * resolve.cc (_Jv_ResolveField): No longer conditional on
2995 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2997 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2998 for libtool hacking.
2999 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
3000 to a temporary file, then invoke libtool with the -objectlist
3002 (libgcjx.la): Likewise.
3003 * Makefile.in: Rebuilt.
3005 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
3007 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
3009 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
3011 * jni.cc (add_char): Handle `.' like `/'.
3013 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
3015 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
3016 initialize if exception_types is null.
3017 * java/lang/reflect/Constructor.java: Likewise.
3018 * java/lang/reflect/natConstructor.cc (getType): Initialize
3019 exception_types to an empty Object array.
3021 2001-03-21 Tom Tromey <tromey@redhat.com>
3023 * configure: Rebuilt.
3024 * configure.in (GCJFLAGS): Subst.
3025 * Makefile.in: Rebuilt.
3026 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
3027 (gij_LDFLAGS): Likewise.
3028 (JC1FLAGS): Added GCJFLAGS and removed -g.
3030 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
3031 read/write case. Fixes PR libgcj/2338.
3033 2001-03-20 Warren Levy <warrenl@redhat.com>
3035 * java/util/TimeZone.java: Sync up with Classpath. Includes new
3036 and corrected SimpleTimeZone's for the timezones hash table.
3038 2001-03-19 Per Bothner <per@bothner.com>
3040 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
3041 "canonicalize" "../../xxx" to "/xxx".
3043 2001-03-19 Mark Wielaard <mark@klomp.org>
3045 * java/util/ArrayList.java: Remove RCS keywords from comments
3046 * java/util/BasicMapEntry.java: idem
3047 * java/util/Dictionary.java: idem
3048 * java/util/HashSet.java: idem
3050 * java/util/EventObject.java: reindent
3051 * java/util/Properties.java: idem
3052 * java/util/SortedMap.java: idem
3054 * java/util/Enumeration.java: Merge with Classpath
3055 * java/util/EventListener.java: idem
3056 * java/util/Observable.java: idem
3057 * java/util/Observer.java: idem
3058 * java/util/Stack.java: idem
3060 2001-03-17 Tom Tromey <tromey@redhat.com>
3062 * java/lang/natString.cc (rehash): Don't bother with memset;
3063 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
3065 (UNMASK_PTR): New macro.
3066 (intern): Unmask pointer before returning it. Register finalizer
3068 (unintern): Handle case where
3069 (MASK_PTR): New macro.
3070 (PTR_MAKSED): Likewise.
3071 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
3073 2001-03-01 Andrew Haley <aph@redhat.com>
3075 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
3076 stackTrace buffer to a correctly aligned pointer array.
3078 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
3080 * java/lang/Runtime.java (_exit): Declare new package-private native.
3081 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
3082 without a security manager check.
3083 (exit): Call _exit after security check.
3084 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
3086 * java/lang/System.java (setSecurityManager): If a security manager
3087 is already in place, call checkPermission.
3088 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
3089 throws an exception, try to deal with it gracefully.
3090 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3091 Only try to print the subordinate stack trace if "exception" is set.
3092 Print our class name first.
3094 2001-03-08 Tom Tromey <tromey@redhat.com>
3096 * java/io/ObjectStreamClass.java (setUID): Don't write interface
3097 info for array classes.
3098 Fixes PR libgcj/1971.
3100 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
3102 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
3105 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
3107 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
3108 instead of the new JDK1.2 API. This is simpler and makes
3109 back-porting the classes to JDK1.1 trivial.
3110 (readObject): likewise.
3112 2001-03-01 Per Bothner <per@bothner.com>
3114 Changes merged from Kawa's gnu.math.
3115 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
3116 (rshift(int[],int[],int,int): Removed - not needed.
3117 (gcd): Use rshift0 rather than rshift.
3118 * java/math/BigInteger.java (setShiftRight): Likewise.
3119 (divide): Simplify by using rshift0.
3120 (divide): Zero-extend results if high-order bit set.
3122 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
3124 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
3127 2001-02-23 Per Bothner <per@bothner.com>
3129 Change to sometimes include class name in ClassFormatError message.
3130 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
3131 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
3132 boolean instead of throwing ClassFormatError on failure.
3133 (throw_class_format_error): Change static function to method.
3134 (_Jv_ClassReader): New inline methods verify_identifier,
3135 two overloads of verify_classname, verify_field_signature, and
3136 verify_method_signature
3137 * include/java-interp.h: Update declarations to return bool.
3138 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
3139 ClassFormatError since _Jv_VerifyClassName now returns bool.
3141 2001-02-23 Per Bothner <per@bothner.com>
3143 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
3144 c++filt to select java-style output.
3146 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
3148 Fix for PR java/2040:
3149 * java/util/HashMap.java (HashMap): Don't throw exception for
3150 loadFactor > 1. Add exception messages.
3151 * java/util/Hashtable.java (Hashtable): Likewise.
3153 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
3155 Disable libgcjx by default.
3156 * configure.in: Add support for --enable-java-awt configure option.
3157 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
3158 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
3159 * Makefile.in: Rebuilt.
3160 * configure: Rebuilt.
3162 2001-02-20 Tom Tromey <tromey@redhat.com>
3164 * java/io/PipedWriter.java (flush): Throw exception if stream
3166 * java/io/OutputStreamWriter.java (write): Throw exception if
3168 (writeChars): Don't throw exception if stream closed.
3169 * java/io/CharArrayWriter.java (closed): New field.
3171 (flush): Throw exception if stream closed.
3172 (reset): Synchronize on correct lock. Allow stream to be
3174 (toCharArray, toString, writeTo): Synchronize.
3175 (write): Throwe exception if stream closed.
3176 * java/io/BufferedWriter.java (close): Clear `buffer'.
3177 (flush): Throw IOException if stream is closed.
3180 2001-02-16 Tom Tromey <tromey@cygnus.com>
3182 * java/lang/ThreadGroup.java (activeCount): Only include threads
3184 (enumerate): Likewise.
3186 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
3188 * java/lang/Integer.java (getInteger): Return default argument if
3189 property is not set. Don't call decode with null argument.
3190 * java/lang/Long.java (getLong): Likewise.
3192 * java/io/CharArrayReader.java (CharArrayReader): Throw
3193 IllegalArgumentException if constructor arguments are illegal.
3194 (ready): Return false if no more characters can be read.
3195 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
3197 2001-02-17 Mark Wielaard <mark@klomp.org>
3199 * java/util/TimerTask.java: New version from Classpath.
3201 2001-02-17 Mark Wielaard <mark@klomp.org>
3203 Remerge with Classpath
3204 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
3205 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
3206 (readByte): Use convertToByte().
3207 (readChar): Use convertToChar().
3208 (readInt): Use convertToInt().
3209 (readLong): Use convertToLong().
3210 (readShort): Use convertToShort().
3211 (readUnsignedByte): Use convertToUnsignedByte().
3212 (readUnsignedShort): Use convertToUnsignedShort().
3213 (readUTF): Use convertToUTF().
3215 (convertToBoolean): Resurrected.
3216 (convertToByte): Ditto.
3217 (convertToChar): Ditto.
3218 (convertToInt): Ditto.
3219 (convertToLong): Ditto.
3220 (convertToShort): Ditto.
3221 (convertToUnsignedByte): Ditto.
3222 (convertToUnsignedShort): Ditto.
3223 (convertToUTF): Ditto.
3225 2001-02-17 Mark Wielaard <mark@klomp.org>
3229 2001-02-17 Mark Wielaard <mark@klomp.org>
3231 * java/io/DataInputStream.java: update copyright notice
3232 * java/io/PrintWriter.java: idem
3233 * java/io/Reader.java: idem
3234 * java/io/StreamTokenizer.java: idem
3235 * java/io/StringReader.java: idem
3236 * java/lang/reflect/ReflectPermission.java: idem
3238 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
3240 * java/util/TreeSet.java (clone): Made subclass safe, use
3241 super.clone(), not new.
3242 * java/util/TreeMap.java (clone): Likewise.
3244 * java/util/TreeMap.java (nil): Made non-final.
3245 (clone): Create new nil node for copy.
3247 * java/util/HashSet.java (clone): Made subclass safe, use
3248 super.clone(), not new.
3250 2001-02-14 Andrew Haley <aph@redhat.com>
3252 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
3255 2001-02-15 Anthony Green <green@redhat.com>
3257 * defineclass.cc: Don't include alloca.h.
3258 (prepare_pool_entry): Convert alloca to __builtin_alloca.
3259 * interpret.cc (run_normal): Ditto.
3261 * java/lang/natDouble.cc (parseDouble): Ditto.
3263 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
3265 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
3267 * java/util/Collections.java (ReverseComparator): New static class.
3268 (reverseOrder): Return static instance of ReverseComparator.
3270 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
3271 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
3272 Rectangle.clone(), not Object.clone().
3274 * java/util/HashSet.java (clone): Remove try/catch.
3276 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
3277 * java/util/Collection.java: Likewise.
3278 * java/util/Comparator.java: Likewise.
3279 * java/util/Dictionary.java: Likewise.
3280 * java/util/Iterator.java: Likewise.
3281 * java/util/ListIterator.java: Likewise.
3282 * java/util/Map.java: Likewise.
3283 * java/util/Set.java: Likewise.
3285 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
3287 * java/util/TreeMap.java: New file.
3288 * java/util/TreeSet.java: New file.
3289 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
3290 * Makefile.in: Rebuilt.
3291 * java/util/HashSet.java (clone): Use constructor instead of calling
3293 * java/util/SortedSet.java: Sync with classpath.
3294 * java/util/HashMap.java (hash): Use if statement instead of ternary,
3297 * java/lang/natClass.cc (getSignature): Don't try to dereference
3298 param_types if it is null. Instead, take this to mean "no parameters".
3299 * java/lang/TreeMap.java (TreeIterator.next): Throw
3300 NoSuchElementException in preference to ConcurrentModificationException.
3301 (TreeIterator.remove): Throw IllegalStateException in preference to
3302 ConcurrentModificationException.
3303 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
3304 throw a NoSuchElementException.
3305 (SubMap.lastKey): Likewise.
3307 2001-02-13 Tom Tromey <tromey@redhat.com>
3309 * java/io/PipedReader.java (ready): Throw IOException if pipe
3311 * java/io/FilterReader.java (close): Don't clear `in'.
3312 * java/io/CharArrayReader.java (mark): Throw IOException if stream
3314 (read, ready, reset, skip): Added exception message.
3315 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
3316 Perform checkStatus check inside synchronized block.
3318 2001-02-13 Tom Tromey <tromey@redhat.com>
3320 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
3322 2001-02-13 Tom Tromey <tromey@redhat.com>
3324 Fix for PR libgcj/1351:
3325 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
3327 Include Thread.h and InterruptedIOException.h.
3329 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
3331 * java/io/BlockDataException.java: Removed.
3332 * java/io/ObjectInputStream.java (readObject): Throw
3333 StreamCorruptedException, not BlockDataException.
3334 * Makefile.am: Remove BlockDataException.
3335 * Makefile.in: Rebuild.
3337 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
3338 Tom Tromey <tromey@redhat.com>
3340 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
3343 2001-02-09 Tom Tromey <tromey@redhat.com>
3345 * java/util/Timer.java: New version from Classpath.
3347 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
3349 * java/lang/Double.java (doubleToRawLongBits): Now native.
3350 * java/lang/Float.java (floatToRawIntBits): Likewise.
3351 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
3352 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
3354 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
3356 * java/io/File.java (java.net): Imported.
3357 (getAbsoluteFile): Added.
3358 (getCanonicalPath): Likewise.
3361 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
3363 * java/lang/Byte.java: Remove redundant instanceof and null checks.
3364 * java/lang/Integer.java: Likewise.
3365 * java/lang/Long.java: Likewise.
3366 * java/lang/Short.java: Likewise.
3367 * java/lang/Double.java: Likewise.
3368 (doubleToRawLongBits): New method.
3369 * java/lang/Float.java: As above.
3370 (floatToRawIntBits): New method.
3372 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
3373 IOException if stream closed.
3375 2001-02-08 Tom Tromey <tromey@redhat.com>
3377 * java/lang/Float.java (parseFloat): New method.
3379 2001-02-08 Tom Tromey <tromey@redhat.com>
3381 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
3382 * java/io/InputStreamReader.java (ready, read): Throw IOException
3383 if stream has been closed.
3385 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3387 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
3388 Change sources.redhat.com and sourceware.cygnus.com references to
3391 2001-02-07 Tom Tromey <tromey@redhat.com>
3393 Fix for PR libgcj/1906:
3394 * java/text/MessageFormat.java (setLocale): Use named class
3397 (format(Object,StringBuffer,FieldPosition)): Special case if
3398 argument is an Object[].
3400 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
3402 * java/util/Arrays.java: Removed "cmp" methods.
3403 (qsort): Don't use "cmp".
3406 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
3408 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
3409 sort. Fix for PR java/1895.
3411 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
3413 * configure.host: Use sjlj-exceptions for Alpha.
3415 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
3417 * libgcj.spec.in: Don't force static libgcc into the executable.
3418 * configure.in (FORCELIBGCCSPEC): Removed.
3419 * configure: Rebuilt.
3421 2001-01-31 Tom Tromey <tromey@redhat.com>
3423 * Makefile.in: Rebuilt.
3424 * Makefile.am (LTCXXCOMPILE): New macro.
3426 2001-01-26 Andrew Haley <aph@redhat.com>
3428 (INIT_FPE): Use a direct system call to set the handler.
3430 2001-01-27 Richard Henderson <rth@redhat.com>
3432 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
3434 2001-01-27 Tom Tromey <tromey@redhat.com>
3436 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
3437 native interface structure.
3439 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
3441 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
3443 (read (byte[], int, int)): Only call readNextBlock() if the block
3444 buffer would actually be overrun. Increment blockDataPosition.
3445 (callReadMethod): Propagate exceptions from invocation target.
3446 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
3447 exceptions from invocation target.
3449 2001-01-26 Tom Tromey <tromey@redhat.com>
3451 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
3452 to internal representation.
3453 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
3454 _Jv_FindClassFromSignature.
3456 2001-01-26 Warren Levy <warrenl@redhat.com>
3458 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
3459 and timezone if they are available on the system.
3461 2001-01-24 Tom Tromey <tromey@redhat.com>
3463 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
3465 2001-01-24 Tom Tromey <tromey@redhat.com>
3467 * Makefile.in: Rebuilt.
3468 * Makefile.am (c_source_files): Added sf_fabs.c.
3469 * java/lang/sf_fabs.c: New file.
3471 2001-01-19 Warren Levy <warrenl@redhat.com>
3473 * java/text/SimpleDateFormat.java (format): Compute hour for cases
3474 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
3475 correctly. Adjust properly from 0-23 clock hour.
3477 2001-01-17 Mark Wielaard <mark@klomp.org>
3479 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
3481 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
3483 * java/lang/Class.h (isInterface): Move implementation from
3484 natClass.cc. Declare inline.
3485 (Class): Add default constructor.
3486 * java/lang/Object.h: Update comments.
3487 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
3488 initialize superclass, saving a call if super is already initialized.
3490 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
3492 * prims.cc (init_prim_class): Deleted.
3493 (DECLARE_PRIM_TYPE): Rewritten.
3494 * java/lang/Class.h (stdio.h): Include removed.
3495 (stddef.h): Included.
3496 (java/lang/reflect/Modifier.h): Likewise.
3497 (Class): Contructor now takes arguments, initializes fields.
3498 (initializePrim): Prototype deleted.
3499 * java/lang/natClass.cc (initializePrim): Deleted.
3501 2001-01-16 Warren Levy <warrenl@redhat.com>
3503 * java/math/BigInteger.java: Update Copyright year.
3505 2001-01-16 Hans Boehm <hans_boehm@hp.com>
3507 * java/math/BigInteger.java (setShiftRight): Only do negative shift
3510 2001-01-14 Mark Wielaard <mark@klomp.org>
3511 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
3512 (decode): Merge comments with Classpath, don't throw Exception
3514 2001-01-12 Tom Tromey <tromey@redhat.com>
3516 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
3520 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
3521 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
3522 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
3523 * gnu/awt/gtk/GtkLabelPeer.java: New file.
3524 * gnu/awt/gtk/GtkButtonPeer.java: New file.
3526 * java/lang/natSystem.cc: Include locale.h if it exists.
3527 * configure: Rebuilt.
3528 * configure.in: Check for locale.h.
3530 2001-01-11 Tom Tromey <tromey@redhat.com>
3532 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
3533 (Cursor(int), getPredefinedCursor): Throw exception if argument
3536 2001-01-03 Tom Tromey <tromey@redhat.com>
3538 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
3539 (getLocationOnScreen): Wrote.
3541 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
3543 * Makefile.am: Re-enable dependencies.
3544 * Makefile.in: Rebuilt.
3546 2001-01-10 Warren Levy <warrenl@redhat.com>
3548 * java/math/BigDecimal.java (divide): Fixed comment.
3550 2001-01-10 Warren Levy <warrenl@redhat.com>
3552 Fix for PR libgcj/1596:
3553 * java/math/BigDecimal.java (divide): Check newScale for validity.
3554 Ensure that BigInteger.pow() is called with a non-negative value.
3555 (setScale (int)): New public method.
3556 (setScale (int,int)): New public method.
3558 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
3560 Fix for PR libgcj/1338:
3561 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
3562 commentChar. Fixed typos in comments.
3564 2001-01-08 Warren Levy <warrenl@redhat.com>
3566 Fix for PR libgcj/1411:
3567 * Makefile.am: Removed java/util/natTimeZone.cc.
3568 * Makefile.in: Rebuilt.
3569 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
3570 missing localized timezone names.
3571 * java/lang/System.java (getDefaultTimeZoneId): New private method.
3572 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
3573 (init_properties): Set user.timezone property.
3574 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3575 default timezone names; removed non-standard ones. Use standard
3577 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
3579 * java/util/TimeZone.java: Add standard ID names per JCL; removed
3581 (getDefaultTimeZoneId): Removed.
3583 * java/util/natTimeZone.cc: Removed.
3585 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3587 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
3588 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
3589 (_Jv_GetArrayClass): New inline function.
3590 (arrayclass): New field.
3591 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
3592 _Jv_GetArrayElementFromElementType.
3593 (_Jv_NewPrimArray): Ditto.
3594 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
3595 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
3596 Set Modifier::ABSTRACT.
3597 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
3598 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
3599 Now synchronized. Array classes are now referenced from
3600 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
3601 Set array classes' accessibility flags correctly. Optimize so that
3602 all array classes share the same IDT.
3603 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
3604 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
3605 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
3606 in superclasses from overwriting classes own fields.
3607 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
3608 Modifier::isAbstract().
3609 (null_idt): New static field.
3610 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
3612 (_Jv_IndexOf): Made inline.
3613 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
3615 2001-01-08 Tom Tromey <tromey@redhat.com>
3617 Fix for PR java/1586:
3618 * Makefile.in: Rebuilt.
3619 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
3621 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3623 * Makefile.am: Use the new "-M -MF" option for generating dependencies
3624 from the c++ compiler.
3625 * Makefile.in: Rebuilt.
3627 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
3629 All files with updated copyright.
3630 * prims.cc (class _Jv_PrimClass): Removed.
3631 (init_prim_class): New function.
3632 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
3633 `_Jv_PrimClass' in primitive type declarations. Assign to the
3634 value returned by `init_prim_class.'
3635 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
3636 primitive type declarations.
3637 (JvPrimClass): Cast to `jclass' removed.
3638 * java/lang/Class.h (Class): New constructor.
3639 (Class): New copy constructor.
3640 (initializePrim): New prototype.
3641 (_Jv_PrimClass): Field removed.
3642 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
3643 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
3644 (class java::lang::Object): `finalize' moved up front.
3645 * java/lang/natClass.cc
3646 (isAssignableFrom): Turned outline.
3647 (isInstance): Likewise.
3648 (isInterface): Likewise, fixed indentation.
3649 (initializePrim): New function.
3651 2001-01-07 Anthony Green <green@redhat.com>
3653 * Makefile.am (texinfo): Add texinfo target for generating texinfo
3655 * Makefile.in: Rebuilt.
3657 * scripts/TexinfoDoclet.java: New file.
3659 * doc/java-applet.texi, doc/java-lang-reflect.texi,
3660 doc/java-awt-color.texi, doc/java-lang.texi,
3661 doc/java-awt-datatransfer.texi, doc/java-math.texi,
3662 doc/java-awt-event.texi, doc/java-net.texi,
3663 doc/java-awt-geom.texi, doc/java-security-spec.texi,
3664 doc/java-awt-image.texi, doc/java-security.texi,
3665 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
3666 doc/java-text.texi, doc/java-beans-beancontext.texi,
3667 doc/java-util-jar.texi, doc/java-beans.texi,
3668 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
3669 doc/java-lang-ref.texi: New files.
3671 2001-01-07 Anthony Green <green@redhat.com>
3673 * java/net/URLConnection.java (setDoOutput): URLConnection's may
3674 be used for both input and output, so don't clear doInput.
3676 * java/lang/StringBuffer.java: Fix comments.
3678 2001-01-06 Anthony Green <green@redhat.com>
3680 * java/beans/PropertyDescriptor.java: Fix comment.
3681 * java/io/PushbackReader.java: Fix comment.
3682 * java/io/ObjectStreamClass.java: Fix comment.
3683 * java/io/DataInputStream.java: Fix comment.
3684 * java/io/PipedInputStream.java: Fix comments.
3685 * java/io/PipedReader.java: Fix comments.
3686 * java/sql/DatabaseMetaData.java: Fix comments.
3688 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
3690 * java/io/PipedReader: Synchronize on "lock" instead of this.
3692 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
3694 * java/lang/Thread.java: Update comment.
3696 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
3697 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
3698 * java/io/PipedReader: New implementation based on new
3700 * java/io/PipedWriter: Updated to match new PipedReader.
3702 2001-01-03 Tom Tromey <tromey@redhat.com>
3704 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
3705 (getViewportSize): Insets include scrollbar size.
3706 (doLayout): Finished.
3707 (getScrollPosition): Wrote.
3708 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
3710 2001-01-02 Tom Tromey <tromey@redhat.com>
3712 * java/awt/ScrollPane.java: Wrote.
3713 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
3716 * java/awt/Panel.java (Panel()): Fixed.
3718 * java/awt/Component.java (isShowing): Return false if no peer
3719 exists, and true if component is visible and no parent exists.
3720 (getLocationOnScreen): Wrote.
3721 (getPreferredSize): Removed FIXME comment.
3722 (getMinimumSize): Likewise.
3723 (getAlignmentX, getAlignmentY): Wrote.
3725 (requestFocus): Wrote.
3726 (transferFocus): Wrote.
3727 (findNextFocusComponent): New method.
3728 (hasFocus()): Wrote.
3729 (checkImage): Wrote.
3730 (enableEvents): Call setEventMask on the peer.
3732 * java/awt/Container.java (list): Use super.list() to print self.
3733 (findNextFocusComponent): New method.
3734 (setLayout): Call invalidate.
3735 (findComponentAt): Wrote.
3737 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
3739 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
3740 the correct versions of various linuxthreads functions get linked.
3741 * Makefile.in: Rebuilt.
3742 * java/lang/natThread.cc (finalize_native): New static function. Call
3743 _Jv_ThreadDestroyData.
3744 (initialize_native): Register finalizer for "data".
3745 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
3746 (_Jv_ThreadDestroyData): New prototype.
3747 * include/win32-threads.h: Ditto.
3748 * include/no-threads.h: Ditto.
3749 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3750 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
3751 move mutex and condition variable destroy code from:
3752 (really_start): ...here.
3753 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
3754 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3755 (_Jv_ThreadDestroyData): Implemented.
3756 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
3757 (_Jv_AllocArray): Ditto.
3759 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
3761 * java/sql/DriverManager.java (getConnection): Don't set user/password
3764 2000-12-27 Warren Levy <warrenl@redhat.com>
3766 Fix for PR libgcj/1358:
3767 * java/lang/System.java: Update Copyright date properly.
3768 * java/util/Calendar.java: Fix typo in comment.
3769 (set): Set 24-hour clock hour instead of 12-hour clock hour.
3770 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
3771 initialize times. Spec says to set H:M:S values to zero only if
3773 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
3774 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
3775 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
3776 timezones and GMT offsets, being careful to account for units of
3777 milliseconds vs. seconds.
3779 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
3781 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3782 not be assigned to Object.
3784 Fix for PR libgcj/1516:
3785 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3787 (can_widen): Declared inline. Remove redundant checks for void
3788 arguments and char->short conversion. Add special case for boolean
3790 (ffi_type): Declared inline.
3791 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3793 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
3795 * java/sql/SQLWarning.java: Fixed typo in comment.
3797 2000-12-26 Tom Tromey <tromey@redhat.com>
3799 * java/awt/MenuItem.java (paramString): Now protected.
3801 * java/awt/MenuShortcut.java: Implements Serializable.
3803 * java/awt/MenuBar.java: Rewrote from scratch.
3805 * java/awt/MenuComponent.java (removeNotify): Wrote.
3806 Implements Serializable.
3808 * java/awt/GridBagConstraints.java (GridBagConstraints): New
3811 * java/awt/CheckboxMenuItem.java: Wrote.
3813 2000-12-25 Tom Tromey <tromey@redhat.com>
3815 * java/awt/MenuContainer.java: Fixed typo.
3817 * Makefile.in: Rebuilt.
3818 * Makefile.am (awt_java_source_files): Added SystemColor.java.
3819 * java/awt/SystemColor.java: New file.
3821 * java/awt/Color.java (rgba): Now package-private.
3823 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3825 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3828 * java/awt/MenuItem.java (addNotify): New method.
3829 (MenuItem(String,MenuShortcut)): New constructor.
3830 (setLabel): Notify peer of change.
3831 (setEnabled): Likewise.
3833 * java/awt/GridLayout.java (toString): New method.
3835 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3836 (FlowLayout): Check for LEADING and TRAILING.
3837 (setAlignment): Likewise.
3838 (layoutContainer): Handle component orientation.
3840 * java/awt/Component.java (orientatin): New field.
3841 (setComponentOrientation): Wrote.
3842 (getComponentOrientation): Wrote.
3844 * java/awt/Event.java (Event): Implements Serializable.
3845 (consumed): New field for serialization.
3846 * java/awt/Dimension.java (Dimension): Implements Serializable.
3847 * java/awt/Cursor.java (Cursor): Implements Serializable.
3848 * java/awt/Container.java (Container): No longer abstract.
3850 * java/awt/Choice.java: Wrote.
3851 * java/awt/Checkbox.java: Wrote.
3852 * java/awt/ItemSelectable.java: Documented.
3853 * java/awt/CheckboxGroup.java: Wrote.
3855 * java/awt/CardLayout.java (layoutContainer): Directly use fields
3857 (getSize): Likewise.
3859 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
3861 * java/io/FileDescriptor.java: Initialize fd to -1.
3862 Remove default constructor.
3864 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
3866 * java/lang/mprec.h: Change C9X reference to refer to C99.
3868 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
3870 * java/lang/Throwable.java (trace_enabled): New static field.
3871 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3872 trace_enabled not set.
3873 * prims.cc (main_init): Turn off trace_enabled while creating
3874 default exception objects.
3876 2000-12-21 Tom Tromey <tromey@redhat.com>
3878 * java/beans/PropertyChangeListener.java: Extends EventListener.
3879 * java/beans/VetoableChangeListener.java: Extends EventListener.
3881 * java/util/zip/Deflater.java (update, init): Now private.
3883 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
3885 * java/util/BasicMapEntry.java: Re-added.
3886 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3887 (putAll): Test for BasicMapEntry.
3888 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3889 (putAll): Test for BasicMapEntry.
3890 Change references from `HashMap.Entry' to `Entry' in various places.
3891 * Makefile.am: Add BasicMapEntry.java.
3892 * Makefile.in: Rebuilt.
3894 2000-12-18 Warren Levy <warrenl@redhat.com>
3896 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3897 need to set timezone to a valid non-null value. Partial fix for
3900 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3902 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3904 * java/awt/Button.java (addNotify): Likewise.
3905 * java/awt/Label.java (addNotify): Likewise.
3906 * java/awt/Panel.java (addNotify): Likewise.
3907 * java/awt/Scrollbar.java (addNotify): Likewise.
3908 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3909 Remove redundant null checks.
3911 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3913 * COPYING: Update to current
3914 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3915 to 19yy as example year in copyright notice).
3917 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3919 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3920 end-of-stream if avail_in is 0.
3922 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3924 * java/util/ArrayList.java (data): Declare transient.
3925 (serialPersistantFields): Removed.
3926 (readObject): Use defaultReadObject(), not readFields().
3927 (writeObject): Use defaultWriteObject(), not writeFields().
3929 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3931 * java/util/Hashtable.java (put): Remove `last' variable.
3932 Link new entry to head of list.
3933 * java/util/HashMap.java (put): Ditto.
3935 2000-12-15 Tom Tromey <tromey@redhat.com>
3937 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3938 loader to Class.forName.
3940 2000-12-14 Tom Tromey <tromey@redhat.com>
3942 * java/util/ResourceBundle.java
3943 (getBundle(String,Locale,ClassLoader)): New method.
3944 (trySomeGetBundle): Added `loader' argument.
3945 (partialGetBundle): Likewise.
3947 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3948 maximumFractionDigits, maximumIntegerDigits,
3949 minimumFractionDigits, minimumIntegerDigits): Now
3952 * java/lang/Thread.java (checkAccess): Now final.
3954 * java/lang/RuntimePermission.java: Class now final.
3956 * java/io/StringWriter.java (StringWriter(int)): Now public.
3958 * java/io/SerializablePermission.java (legal_names): Now private.
3960 * java/lang/Character.java: Updated UnicodeBlock constants.
3961 * scripts/blocks.pl: Special case private use and surrogate
3964 2000-12-12 Tom Tromey <tromey@redhat.com>
3966 * Makefile.in: Rebuilt.
3967 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3969 (GCJCOMPILE): Use it.
3972 2000-12-11 Tom Tromey <tromey@redhat.com>
3974 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3975 New static final fields.
3977 * scripts/classes.pl (scan): Skip lines with leading `*'.
3978 Fix for PR libgcj/378.
3980 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3982 * configure.in: Remove check for -fuse-divide-subroutine.
3983 * configure: Rebuilt.
3985 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3987 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3989 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3991 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3992 Remove BasicMapEntry.java and Bucket.java.
3993 * Makefile.in: Rebuilt.
3994 * java/util/HashMap.java: Rewritten.
3995 * java/util/HashSet.java: Imported from classpath.
3996 * java/util/WeakHashMap.java: Imported from classpath.
3997 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3998 * java/util/Bucket.java: Deleted.
3999 * java/util/BasicMapEntry.java: Deleted.
4000 * java/util/Collections.java (search): Use a for-loop, not iterator
4002 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
4003 of elements in source.
4004 (max): Use a for-loop.
4006 (reverse): Keep track of positions instead of using Iterator's
4007 nextIndex() and previousIndex().
4008 (shuffle(List)): Initialize defaultRandom if required using
4009 double-check thread safety idiom. Call two-argument shuffle method
4010 using defaultRandom.
4011 (defaultRandom): New field.
4012 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
4013 using previousIndex() and nextIndex().
4014 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
4015 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
4016 * java/util/AbstractMap.java (toString): Use StringBuffer.
4017 * java/lang/ref/PhantomReference.java: Imported from classpath.
4018 * java/lang/ref/SoftReference.java: Ditto.
4019 * java/lang/ref/Reference.java: Ditto.
4020 * java/lang/ref/WeakReference.java: Ditto.
4021 * java/lang/ref/ReferenceQueue.java: Ditto.
4023 2000-12-10 Richard Henderson <rth@redhat.com>
4025 * configure.host: Recognize alpha*-*, not alphaev6-*.
4027 2000-12-09 Anthony Green <green@redhat.com>
4029 * configure.host: Enable interpreter for Alpha.
4031 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
4033 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
4034 (ZIP): Points at fastjar instead of zip.
4035 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
4036 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
4037 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
4038 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
4039 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
4040 ($(x_java_source_files:.java=.class):): Likewise.
4041 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
4043 (CLEANFILES): libgcj.jar replaces libgcj.zip.
4044 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
4045 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
4046 java/lang/String.h:, java/lang/reflect/Constructor.h:,
4047 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
4048 gnu/gcj/runtime/VMClassLoader.h:,
4049 java/io/ObjectInputStream$$GetField.h:,
4050 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
4051 (Makefile.in): Rebuilt.
4053 2000-12-08 Tom Tromey <tromey@redhat.com>
4056 * configure: Rebuilt.
4057 * configure.in: Use echo, not `:', to create .d files.
4059 2000-12-08 Warren Levy <warrenl@redhat.com>
4061 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
4062 NullPointerException so proper check of offset can be done.
4064 2000-12-08 Warren Levy <warrenl@redhat.com>
4066 * java/io/FileInputStream.java (close): Check if the fd is valid.
4067 * java/io/RandomAccessFile.java (close): Ditto.
4068 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
4069 * java/net/PlainSocketImpl.java (close): Ditto.
4071 2000-12-06 Tom Tromey <tromey@redhat.com>
4073 * java/awt/GridBagConstraints.java: Filled in values for static
4076 * java/util/BitSet.java: Updated copyright notice.
4078 * Makefile.in: Rebuilt.
4079 * Makefile.am (awt_java_source_files): Added new file.
4080 * java/awt/GridBagConstraints.java: New file.
4082 2000-12-05 Tom Tromey <tromey@redhat.com>
4084 * java/text/Collator.java (decomposeCharacter, decmp, strength):
4085 Now package-private, not protected.
4086 * java/text/DateFormatSymbols.java (equals): Now private.
4087 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
4088 * java/util/BitSet.java: Class no longer final.
4090 2000-12-04 Warren Levy <warrenl@redhat.com>
4092 * java/util/TimeZone.java (getAvailableIDs): Activated commented
4093 out code dependent on compiler and library changes.
4095 2000-12-04 Warren Levy <warrenl@redhat.com>
4097 * java/io/FilePermission.java: Made class final per spec.
4098 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
4099 method name to match spec (fixed typo).
4100 * java/util/LinkedList.java: Implements List.
4102 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
4104 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
4105 Edgar Villanueva <edgarvil@home.com>.
4107 2000-12-03 Tom Tromey <tromey@redhat.com>
4109 * java/awt/geom/Point2D.java: Added protected constructor.
4110 (equals): New method.
4111 (Float.setLocation(float,float)): New method.
4112 * java/awt/geom/Dimension2D.java: Added protected constructor.
4113 * java/awt/geom/AffineTransform.java: Made all constants public.
4114 (concatenate): Fixed typo in name.
4115 * java/awt/event/WindowAdapter.java: Class now abstract.
4116 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
4117 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
4120 * java/awt/AWTError.java: Extend Error, not
4121 IllegalStateException.
4123 * Makefile.in: Rebuilt.
4124 * Makefile.am (awt_java_source_files): Added new file.
4125 * java/awt/geom/RoundRectangle2D.java: New file.
4127 * Makefile.in: Rebuilt.
4128 * Makefile.am (awt_java_source_files): Added new file.
4129 * java/awt/FlowLayout.java: New file.
4131 * Makefile.in: Rebuilt.
4132 * Makefile.am (awt_java_source_files): Added new file.
4133 * java/awt/GridLayout.java: New file.
4135 2000-12-02 Tom Tromey <tromey@redhat.com>
4137 * Makefile.in: Rebuilt.
4138 * Makefile.am (awt_java_source_files): Added new files.
4139 * java/awt/CardLayout.java: New file.
4140 * java/awt/AWTPermission.java: New file.
4142 2000-12-01 Tom Tromey <tromey@redhat.com>
4144 * java/util/Vector.java (insertElementAt): Unconditionally
4145 increment elementCount.
4146 (removeRange): Clear unused slots in vector.
4148 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
4150 * java/lang/natMath.cc: Declare fabsf() function.
4151 * java/lang/mprec.h: Don't include math.h.
4152 * java/lang/dtoa.c: Include string.h.
4153 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
4156 From Adam Welc <welc@cs.purdue.edu>:
4157 * java/util/LinkedList.java (removeFirst): Update `first' field.
4158 Handle the last == first case.
4159 (removeLast): Update `last' field. Handle the last == first case.
4161 2000-12-01 Warren Levy <warrenl@cygnus.com>
4163 * Makefile.am: Added entries for new java.sql modules.
4164 * Makefile.in: Rebuilt.
4166 2000-12-01 Warren Levy <warrenl@cygnus.com>
4168 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
4169 that aren't quite 1.2 compatible yet.
4171 2000-11-30 Warren Levy <warrenl@cygnus.com>
4173 * java/sql/Array.java: New file from classpath.
4174 * java/sql/BatchUpdateException.java: Ditto.
4175 * java/sql/Blob.java: Ditto.
4176 * java/sql/Clob.java: Ditto.
4177 * java/sql/Ref.java: Ditto.
4178 * java/sql/SQLData.java: Ditto.
4179 * java/sql/SQLInput.java: Ditto.
4180 * java/sql/SQLOutput.java: Ditto.
4181 * java/sql/Struct.java: Ditto.
4182 * java/sql/CallableStatement.java: Merged file from claspath.
4183 * java/sql/Connection.java: Ditto.
4184 * java/sql/DataTruncation.java: Ditto.
4185 * java/sql/DatabaseMetaData.java: Ditto.
4186 * java/sql/DriverManager.java: Ditto.
4187 * java/sql/PreparedStatement.java: Ditto.
4188 * java/sql/ResultSet.java: Ditto.
4189 * java/sql/ResultSetMetaData.java: Ditto.
4190 * java/sql/SQLException.java: Ditto.
4191 * java/sql/SQLWarning.java: Ditto.
4192 * java/sql/Statement.java: Ditto.
4193 * java/sql/Types.java: Ditto.
4195 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
4197 * java/lang/natSystem.cc (init_properties): Set user.language and
4199 * configure.in: Check for setlocale.
4200 * configure: Rebuilt.
4201 * include/config.h.in: Rebuilt.
4203 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
4204 the infate() call didn't deliver any output. Throw a ZipException if
4205 the needsDictionary() call returns true.
4206 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
4207 * java/io/InputStreamReader: Use the default buffer size for the
4208 contained BufferedInputStream.
4210 2000-11-28 Warren Levy <warrenl@cygnus.com>
4212 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
4213 more time zone entries.
4214 * java/text/SimpleDateFormat.java (format): Added case for
4217 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
4219 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
4220 directly rather than read() in all cases. Make primitive read
4221 implementations more efficient, as defined in JDK online docs.
4222 (skipBytes): Behave like the JDK's implementation.
4223 * java/io/BufferedReader.java: Merge classpath docs. Check for a
4224 closed stream with checkStatus() whenever an IOException can be
4226 (checkStatus): New private method.
4228 2000-11-27 Warren Levy <warrenl@cygnus.com>
4230 * Makefile.am: Added natTimeZone.cc.
4231 * Makefile.in: Rebuilt.
4232 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
4233 * java/text/DateFormatSymbols.java (ampms): Made package private.
4234 (eras): Made package private.
4235 (months): Made package private.
4236 (shortMonths): Made package private.
4237 (shortWeekdays): Made package private.
4238 (weekdays): Made package private.
4239 (formatPrefixes): New private field.
4240 (localPatternCharsDefault): Made private.
4241 (dateFormats): New package private field.
4242 (timeFormats): New package private field.
4243 (formatsForKey): New private method.
4244 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
4245 (DateFormatSymbols(DateFormatSymbols)): Ditto.
4246 * java/text/SimpleDateFormat.java: Merged with Classpath.
4247 * java/util/TimeZone.java: Merged with Classpath.
4248 * java/util/natTimeZone.cc: New file.
4250 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
4252 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
4253 (addElement): Don't increment elementCount twice. Doh.
4254 * java/util/ArrayList.java (add): Only call ensureCapacity if the
4255 array needs to be expanded.
4257 * java/util/Collections.java (UnmodifiableCollection): Implement
4259 (UnmodifiableList): Throw UnsupportedOperationException from
4260 modification methods. Set `l' from the one-parameter constructor.
4261 (UnmodifiableMap): Implement toString().
4262 (SynchronizedCollection): Ditto.
4263 (SynchronizedList): Set `l' from the one-parameter constructor.
4264 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
4265 (SynchronizedMap): Implement toString().
4267 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
4269 * javax/naming/NameParser.java,
4270 javax/naming/directory/AttributeInUseException.java,
4271 javax/naming/directory/AttributeModificationException.java,
4272 javax/naming/directory/InvalidAttributeIdentifierException.java,
4273 javax/naming/directory/InvalidAttributesException.java,
4274 javax/naming/directory/InvalidAttributeValueException.java,
4275 javax/naming/directory/InvalidSearchControlsException.java,
4276 javax/naming/directory/InvalidSearchFilterException.java,
4277 javax/naming/directory/NoSuchAttributeException.java,
4278 javax/naming/directory/SchemaViolationException.java: New files.
4280 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
4282 * javax/naming/InitialContext.java (rebind): Implement.
4283 (unbind): Implement.
4284 (rename): Implement.
4286 (listBindings): Implement.
4287 (destroySubcontext): Implement.
4288 (createSubcontext): Implement.
4289 (lookupLink): Implement.
4290 (getNameParser): Implement.
4291 (composeName): Implement.
4292 (addToEnvironment): Implement.
4294 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
4296 * javax/naming/AuthenticationException.java,
4297 javax/naming/AuthenticationNotSupportedException.java,
4298 javax/naming/CannotProceedException.java,
4299 javax/naming/CommunicationException.java,
4300 javax/naming/ConfigurationException.java,
4301 javax/naming/ContextNotEmptyException.java,
4302 javax/naming/InsufficientResourcesException.java,
4303 javax/naming/InterruptedNamingException.java,
4304 javax/naming/InvalidNameException.java,
4305 javax/naming/LimitExceededException.java,
4306 javax/naming/LinkException.java,
4307 javax/naming/LinkLoopException.java,
4308 javax/naming/MalformedLinkException.java,
4309 javax/naming/NameAlreadyBoundException.java,
4310 javax/naming/NameNotFoundException.java,
4311 javax/naming/NamingSecurityException.java,
4312 javax/naming/NoPermissionException.java,
4313 javax/naming/NotContextException.java,
4314 javax/naming/PartialResultException.java,
4315 javax/naming/ReferralException.java,
4316 javax/naming/ServiceUnavailableException.java,
4317 javax/naming/SizeLimitExceededException.java,
4318 javax/naming/TimeLimitExceededException.java: New files.
4320 * javax/naming/Name.java (clone): New method.
4321 (compareTo): New method.
4322 (isEmpty): New method.
4323 (getAll): New method.
4324 (getPrefix): New method.
4325 (getSuffix): New method.
4326 (startsWith): New method.
4327 (endsWith): New method.
4328 (addAll): New method.
4329 (addAll): New method.
4332 (remove): New method.
4334 * javax/naming/Context.java (lookup): New method.
4335 (rebind): New method.
4336 (unbind): New method.
4337 (rename): New method.
4339 (listBindings): New method.
4340 (destroySubcontext): New method.
4341 (createSubcontext): New method.
4342 (lookupLink): New method.
4343 (getNameParser): New method.
4344 (composeName): New method.
4345 (addToEnvironment): New method.
4346 (removeFromEnvironment): New method.
4347 (getEnvironment): New method.
4348 (close): New method.
4349 (getNameInNamespace): New method.
4351 * javax/naming/InitialContext.java (lookup): New method.
4352 (rebind): New method.
4353 (unbind): New method.
4354 (rename): New method.
4356 (listBindings): New method.
4357 (destroySubcontext): New method.
4358 (createSubcontext): New method.
4359 (lookupLink): New method.
4360 (getNameParser): New method.
4361 (composeName): New method.
4362 (addToEnvironment): New method.
4363 (removeFromEnvironment): New method.
4364 (getEnvironment): New method.
4365 (close): New method.
4366 (getNameInNamespace): New method.
4368 2000-11-26 Tom Tromey <tromey@cygnus.com>
4370 * Makefile.in: Rebuilt.
4371 * Makefile.am (core_java_source_files): Added
4372 RuntimePermission.java.
4373 * java/lang/RuntimePermission.java: Imported from Classpath.
4374 * java/lang/Thread.java (getContextClassLoader): Now
4375 synchronized. Added security code.
4376 (setContextClassLoader): Likewise.
4378 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
4379 length field of array.
4380 (_Jv_NewPrimArray): Likewise.
4381 * gcj/array.h (__JArray): `length' field now const. Added
4384 2000-11-26 Anthony Green <green@redhat.com>
4386 * javax/naming/spi/NamingManager.java,
4387 javax/naming/spi/ObjectFactory.java,
4388 javax/naming/spi/InitialContextFactory.java,
4389 javax/naming/spi/InitialContextFactoryBuilder.java,
4390 javax/naming/RefAddr.java, javax/naming/Reference.java,
4391 javax/naming/NamingException.java, javax/naming/Context.java,
4392 javax/naming/Referenceable.java,
4393 javax/naming/directory/InitialDirContext.java,
4394 javax/naming/directory/DirContext.java,
4395 javax/naming/directory/Attributes.java,
4396 javax/naming/directory/Attribute.java,
4397 javax/naming/StringRefAddr.java,
4398 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
4399 javax/naming/InitialContext.java,
4400 javax/naming/NoInitialContextException.java: New files.
4402 2000-11-25 Anthony Green <green@redhat.com>
4404 * prims.cc (_Jv_NewObjectArray): Undo placement change.
4405 (_Jv_NewPrimArray): Likewise.
4406 * gcj/array.h (__JArray): Undo const change. Removed constructor.
4407 (class JArray): Removed constructor.
4409 * java/lang/Thread.java (context_class_loader): New private data.
4410 (getContextClassLoader): New method.
4411 (setContextClassLoader): New method.
4412 (Thread): Initialize context_class_loader.
4414 * java/net/URLClassLoader.java: Import java.util.Enumeration.
4415 (getResource): Rename to findResource.
4416 (findResource): New method. Used to be getResource.
4417 (getResourceAsStream): Deleted.
4418 (jarFileize): Extracted logic from URLClassLoader constructor into
4419 this new private method.
4420 (addURL): New protected method.
4421 (URLClassLoader): Call jarFileize. Use addElement instead of
4423 (findResources): New method.
4425 * java/lang/ClassLoader.java: Import java.util.Enumeration.
4426 (getResource): Implement correct logic.
4427 (findResource): New method.
4428 (getResources): New method.
4429 (findClass): Create a ClassNotFoundException with the name of the
4430 class rather than nothing at all.
4431 (defineClass) Only throw ClassFormatError.
4433 * java/lang/Class.java (forName): New method.
4434 * java/lang/Class.h (forName): New method.
4435 * java/lang/natClass.cc (forName): New method.
4437 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4439 * java/lang/System.java (setProperties): Only call init_properties()
4440 if properties is null.
4441 (getProperties): Ditto.
4442 (getProperty): Ditto.
4443 (setProperty): Call init_properties if properties are null.
4444 (prop_init): Remove field.
4445 * java/lang/natSystem.cc (init_properties): Synchronize the entire
4446 method. Check for null properties after synchronizing instead of
4447 prop_init flag. Set the properties field last for thread safety.
4449 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
4450 test for gcj.dumpobjects property and enable object stream dumping
4452 (dumpElement): No longer native.
4453 (dumpElementln): Ditto.
4454 (setDump): Do not define.
4455 * java/io/natObjectInputStream.cc (dumpElement): Removed.
4456 (dumpElementln): Removed.
4459 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4461 * configure: Rebuilt.
4462 * Makefile.in: Rebuilt.
4463 * Makefile.am (built_java_source_files): Add Configuration.java.
4464 * configure.in: Add Configuration.java to CONFIG_FILES. Set
4465 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
4466 Create `gnu' directory in the build tree.
4467 * gnu/classpath/Configuration.java.in: New file.
4469 2000-11-24 Tom Tromey <tromey@cygnus.com>
4471 * prims.cc (_Jv_NewObjectArray): Use placement new to create
4473 (_Jv_NewPrimArray): Likewise.
4475 * gcj/array.h (__JArray): `length' field now const. Added
4477 (class JArray): Added constructor.
4479 2000-11-23 Mark Wielaard <mark@klomp.org>
4481 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
4484 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
4486 * java/util/Vector.java: Improve exception messages.
4487 (Vector): Check initialCapacity for IllegalArgumentException.
4488 (tromToSize): Don't check for elementCount == elementData.length
4490 (toArray): Don't try to set null marker if target array is the same
4491 length as the vector.
4493 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
4495 * Makefile.in: Rebuilt.
4496 * Makefile.am (core_java_source_files): Added Collections.java.
4497 * java/util/List.java: Merged from classpath.
4498 * java/util/Vector.java: Ditto.
4499 * java/util/Collections.java: From classpath.
4500 * java/util/ArrayList.java (addAll(Collection)): Call
4501 addAll(int,Collection) instead of duplicating code.
4502 (indexOf): Clean up int initialization.
4503 (clear): Set cleared array entries to null, to allow garbage
4505 * java/util/List.java: Minor formatting fixes.
4506 * java/util/SimpleTimeZone.java: ditto.
4508 2000-11-18 Tom Tromey <tromey@cygnus.com>
4510 * Makefile.in: Rebuilt.
4511 * Makefile.am (core_java_source_files): Added new files.
4512 * java/lang/reflect/ReflectPermission.java: New class.
4513 * java/io/FileFilter.java: From Classpath
4514 * java/io/FilePermission.java: From Classpath.
4516 2000-11-17 Tom Tromey <tromey@cygnus.com>
4518 * java/lang/reflect/AccessibleObject.java (isAccessible,
4519 setAccessible): Now public.
4521 * java/lang/natString.cc: Include Locale.h.
4522 (toUpperCase): Added `locale' argument. Handle locale
4524 (toLowerCase): Added `locale' argument. Handle locale
4526 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
4527 CAPITAL_I): New defines.
4528 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
4531 (toUpperCase, toLowerCase): New methods. Variants which accept
4534 * java/lang/ExceptionInInitializerError.java (printStackTrace):
4537 * java/util/PropertyPermission.java: Re-merged from Classpath.
4539 * java/text/RuleBasedCollator.java (getCollationElementIterator):
4541 * java/text/StringCharacterIterator.java: Reindented.
4542 (setText): New method.
4544 2000-11-17 Mark Wielaard <mark@klomp.org>
4546 Merge with Classpath (changes by Bryce McKinlay)
4547 * java/util/jar/*.java: Reformat all to unofficial standard coding
4548 style. No changes of substance.
4550 2000-11-17 Mark Wielaard <mark@klomp.org>
4552 * java/util/zip/*.java: Javadoc updates.
4554 2000-11-17 Tom Tromey <tromey@cygnus.com>
4556 * java/text/CollationKey.java: Implement Comparable.
4557 (compareTo(Object)): New method.
4558 * java/text/Collator.java (compare(Object,Object)): New method.
4559 Implement Comparator.
4561 * java/util/zip/InflaterInputStream.java (available): New method.
4562 (close): New method.
4563 (read, available, skip, fill): Throw exception if stream closed.
4564 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
4565 getNextEntry): Throw exception if closed.
4567 2000-11-16 Tom Tromey <tromey@cygnus.com>
4569 * java/io/PushbackReader.java: Merged with Classpath.
4570 * java/util/Arrays.java: Updated from Classpath.
4572 * scripts/blocks.pl: New file.
4573 * java/lang/Character.java (Subset): New class.
4574 (UnicodeBlock): New class.
4576 * java/lang/Math.java (toDegrees, toRadians): New methods.
4578 * java/lang/Float.java: Implement Comparable.
4579 (compareTo): New methods.
4580 * java/lang/Double.java: Implement Comparable.
4581 (compareTo): New methods.
4583 2000-11-16 Warren Levy <warrenl@cygnus.com>
4585 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
4587 (listeners): Made transient.
4588 (source): Renamed from 'bean'.
4589 (children): New field for serialization.
4590 (propertyChangeSupportSerializedDataVersion): Ditto.
4591 (serialVersionUID): Ditto.
4592 (writeObject): New serialization method.
4593 (readObject): New serialization method.
4594 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
4596 (listeners): Made transient.
4597 (source): Renamed from 'bean'.
4598 (children): New field for serialization.
4599 (vetoableChangeSupportSerializedDataVersion): Ditto.
4600 (serialVersionUID): Ditto.
4601 (writeObject): New serialization method.
4602 (readObject): New serialization method.
4603 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
4604 to allow constructor to have a return type (i.e. the class that the
4605 constructor constructs).
4607 2000-11-14 Tom Tromey <tromey@cygnus.com>
4609 * Makefile.in: Rebuilt.
4610 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
4613 2000-11-02 Warren Levy <warrenl@cygnus.com>
4615 * java/io/ObjectInputStream.java (readObject): Added code to
4616 conditionally dump out the serialized data.
4617 Handle ENDBLOCKDATA case a bit more gracefully since the current
4618 behavior doesn't seem to work as expected.
4619 (readStreamHeader): Added code for serialized data dumper.
4620 (readNextBlock): Ditto.
4621 (readFields): Ditto.
4622 (dump): New private static field for turning on/off dumper.
4623 (setDump): New native method.
4624 (dumpElement): New native method.
4625 (dumpElementln): New native method.
4626 * java/io/natObjectInputStream.cc (setDump): New method.
4627 (dumpElement): New method.
4628 (dumpElementln): New method.
4630 2000-11-02 Warren Levy <warrenl@cygnus.com>
4632 * java/net/InetAddress.java (addr): Renamed from 'address'.
4633 (address): New field to match Serialized Form doc.
4634 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4635 (family): New serialization field.
4636 (serialVersionUID): New field.
4637 (readObject): New method.
4638 (writeObject): New method.
4639 (getFamily): New native method.
4640 (InetAddress): Set family.
4641 * java/net/natInetAddress.cc (getFamily): New method.
4642 (addr): Renamed from 'address'.
4643 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4644 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
4645 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
4647 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
4649 * java/util/AbstractList.java (SubList): Make it a top-level private
4651 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
4653 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
4654 * Makefile.in: Rebuilt.
4656 2000-11-02 Tom Tromey <tromey@cygnus.com>
4658 * Makefile.in: Rebuilt.
4659 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
4662 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4664 * java/util/AbstractList.java (remove): Comment out modCount increment
4665 to work around compiler bug.
4668 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4670 * java/util/AbstractList.java: Throw messages with
4671 IndexOutOfBoundsExceptions.
4672 (listIterator()): Call listIterator(0).
4673 (size): New field. Initialize to size().
4674 (hasNext): Test position against size, not size().
4675 (remove): Increment knownMod by one instead of resetting it from
4678 (SubList.upMod): Removed.
4679 (SubList.set): Don't call upMod() or update knownMod.
4680 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
4681 (SubList.remove): Ditto.
4682 (SubList.addAll): Don't call backingList.size(). Increment size from
4684 (SubList.iterator): New method. Call listIterator(0).
4685 (SubList.listIterator): New method. Restore code to return an anonymous
4686 listIterator implementation (with some changes).
4687 * java/util/AbstractSequentialList.java: Throw messages with
4688 IndexOutOfBoundsExceptions.
4689 (addAll): Add a specnote.
4690 * java/util/ArrayList.java (removeRange): Get the math right.
4691 (addAll): Increment modCount _before_ creating iterator.
4692 * java/util/LinkedList.java: Rewritten, mostly.
4694 2000-11-01 Tom Tromey <tromey@cygnus.com>
4696 * scripts/encodings.pl: Added `ASCII' alias.
4697 * Makefile.in: Rebuilt.
4698 * Makefile.am (convert_source_files): Added new files.
4699 * gnu/gcj/convert/Input_ASCII.java: New file.
4700 * gnu/gcj/convert/Output_ASCII.java: New file.
4701 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
4702 out-of-range characters.
4703 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
4704 (read): Swap bytes if required. Treat `count' as character count,
4706 (write): Likewise. Also, handle case where iconv fails on a given
4708 (init): Put encoding into exception.
4709 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
4710 (static): Call iconv_init. Rebuilt alias list.
4711 (iconv_init): New private method.
4713 2000-11-01 Tom Tromey <tromey@cygnus.com>
4715 * Makefile.in: Rebuilt.
4716 * Makefile.am (install-exec-hook): Only make a single symlink, and
4717 remove the destination before making the link.
4718 * configure: Rebuilt.
4719 * configure.in: Call AC_PROG_LN_S.
4721 2000-10-31 Warren Levy <warrenl@cygnus.com>
4723 * jni.cc: Added include of java/lang/ThreadGroup.h.
4724 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
4725 per change of 2000-10-05.
4727 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
4729 * java/util/BitSet.java: Updated @specnote.
4731 * java/io/Reader.java: Merge docs from classpath.
4732 (skip): Synchronize on `lock'.
4733 * java/io/FileReader.java: Import correct implementation from
4735 * java/io/StringReader.java: Merge docs from classpath.
4736 (ready): Throw IOException if stream is closed.
4738 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
4740 * java/util/AbstractCollection.java (addAll): Use size() instead of
4741 hasNext() in iterator loop.
4743 (contains): Ditto. Simplify loop.
4744 (containsAll): Ditto.
4749 (toString): Ditto. Use string concatenation operators, not
4751 * java/util/AbstractList.java (addAll): Use size() instead of
4752 hasNext() in iterator loop.
4755 (indexOf): Ditto. Don't take null check outside of the loop.
4756 (iterator): Return an AbstractListItr instead of anonymous class.
4757 (lastIndexOf): Use a for loop bounded by size() instead of
4758 hasPrevious() in iterator loop.
4759 (listIterator): Return an AbstractListItr.
4760 (removeRange): Remove bounds checking code and docs.
4761 (AbstractListItr): New inner class. Code moved here from
4763 (SubList.iterator): Removed. Use default implementation from
4764 AbstractList instead.
4765 (SubList.listIterator): As above.
4766 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
4767 instead of hasNext() in iterator loop.
4768 (containsValue): Ditto.
4774 (toString): Ditto. Use string concatenation operators, not
4776 * java/util/AbstractSequentialList.java (addAll): Use a for loop
4777 bounded by size() instead of hasNext() in iterator loop.
4778 * java/util/AbstractSet.java (hashCode): Don't catch exception as
4779 part of normal execution flow. Do an explicit null check instead.
4780 * java/util/ArrayList.java (_iSize): Rename to `size'.
4781 (_arData): Rename to `data'.
4782 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4785 (removeRange): Make protected. Don't check bounds.
4786 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4788 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4790 (addAll (int, Collection)): Check lower bounds. Simplify exception
4792 (clone): Clone the data array too.
4793 (indexOf): Inline doesEqual().
4794 (lastIndexOf): Ditto.
4795 (clear): Don't set array data to null.
4796 (set): Check lower bounds. Simplify exception string.
4797 (toArray): Correct comment.
4798 (trimToSize): Don't update modCount, this is not a structural change.
4801 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4803 (toString): Declare `bit' as long, not int.
4804 (data): Made package-private, not private.
4806 2000-10-27 Warren Levy <warrenl@cygnus.com>
4808 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4809 array elements to true.
4811 2000-10-27 Warren Levy <warrenl@cygnus.com>
4813 * Makefile.am: Added locale files from Classpath.
4814 * Makefile.in: Rebuilt.
4815 * gnu/java/locale/Calendar.java: New file.
4816 * gnu/java/locale/Calendar_de.java: New file.
4817 * gnu/java/locale/Calendar_en.java: New file.
4818 * gnu/java/locale/Calendar_nl.java: New file.
4819 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4820 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4821 serialization compatibility.
4822 (scale): Made private.
4823 (serialVersionUID): New field.
4824 * java/math/BigInteger.java (ival): Made transient.
4825 (words): Made transient.
4826 (bitCount): New serialization field.
4828 (firstNonzeroByteNum): Ditto.
4829 (lowestSetBit): Ditto.
4832 (serialVersionUID): New field.
4833 (readObject): New method.
4834 (writeObject): New method.
4835 * java/util/BitSet.java (serialVersionUID): New field.
4836 * java/util/Calendar.java: Replaced with Classpath file.
4837 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4838 of getDefault() for TimeZone or Locale instead of passing nulls.
4839 * java/util/Locale.java (serialVersionUID): New field.
4840 (writeObject): New method.
4841 (readObject): New method.
4842 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4844 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
4846 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4847 (core_java_source_files): Put java.lang, java.io, and java.util here.
4848 (ordinary_java_source_files): Order so that core_java_source_files are
4850 (java_source_files): Reorder so that special_java_source_files are
4852 * configure.in: Don't pass -I flag to gcj.
4853 * Makefile.in: Rebuilt.
4854 * configure: Rebuilt.
4856 2000-10-25 Tom Tromey <tromey@cygnus.com>
4858 * Makefile.in: Rebuilt.
4859 * Makefile.am (install-exec-hook): New target.
4861 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
4863 * java/util/EventObject.java: Merged from classpath.
4865 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4868 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4870 * java/util/AbstractSet.java (equals): Re-installed original code.
4872 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4874 * Makefile.am: Added rules for libgcjx library.
4875 * Makefile.in: Rebuilt.
4876 * configure.in: Added check for X.
4877 * configure: Rebuilt.
4878 * gnu/awt/LightweightRedirector.java: New file.
4879 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4880 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4881 * gnu/awt/j2d/Graphics2DImpl.java: New file.
4882 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4883 * gnu/awt/j2d/MappedRaster.java: New file.
4884 * gnu/awt/xlib/XCanvasPeer.java: New file.
4885 * gnu/awt/xlib/XEventLoop.java: New file.
4886 * gnu/awt/xlib/XEventQueue.java: New file.
4887 * gnu/awt/xlib/XFontMetrics.java: New file.
4888 * gnu/awt/xlib/XFramePeer.java: New file.
4889 * gnu/awt/xlib/XGraphics.java: New file.
4890 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4891 * gnu/awt/xlib/XPanelPeer.java: New file.
4892 * gnu/awt/xlib/XToolkit.java: New file.
4893 * gnu/gcj/xlib/Clip.java: New file.
4894 * gnu/gcj/xlib/Colormap.java: New file.
4895 * gnu/gcj/xlib/Display.java: New file.
4896 * gnu/gcj/xlib/Drawable.java: New file.
4897 * gnu/gcj/xlib/Font.java: New file.
4898 * gnu/gcj/xlib/GC.java: New file.
4899 * gnu/gcj/xlib/Pixmap.java: New file.
4900 * gnu/gcj/xlib/Screen.java: New file.
4901 * gnu/gcj/xlib/Visual.java: New file.
4902 * gnu/gcj/xlib/WMSizeHints.java: New file.
4903 * gnu/gcj/xlib/Window.java: New file.
4904 * gnu/gcj/xlib/WindowAttributes.java: New file.
4905 * gnu/gcj/xlib/XAnyEvent.java: New file.
4906 * gnu/gcj/xlib/XButtonEvent.java: New file.
4907 * gnu/gcj/xlib/XColor.java: New file.
4908 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4909 * gnu/gcj/xlib/XConnectException.java: New file.
4910 * gnu/gcj/xlib/XEvent.java: New file.
4911 * gnu/gcj/xlib/XException.java: New file.
4912 * gnu/gcj/xlib/XExposeEvent.java: New file.
4913 * gnu/gcj/xlib/XID.java: New file.
4914 * gnu/gcj/xlib/XImage.java: New file.
4915 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4916 * gnu/gcj/xlib/natClip.cc: New file.
4917 * gnu/gcj/xlib/natColormap.cc: New file.
4918 * gnu/gcj/xlib/natDisplay.cc: New file.
4919 * gnu/gcj/xlib/natDrawable.cc: New file.
4920 * gnu/gcj/xlib/natFont.cc: New file.
4921 * gnu/gcj/xlib/natGC.cc: New file.
4922 * gnu/gcj/xlib/natPixmap.cc: New file.
4923 * gnu/gcj/xlib/natScreen.cc: New file.
4924 * gnu/gcj/xlib/natVisual.cc: New file.
4925 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4926 * gnu/gcj/xlib/natWindow.cc: New file.
4927 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4928 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4929 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4930 * gnu/gcj/xlib/natXColor.cc: New file.
4931 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4932 * gnu/gcj/xlib/natXException.cc: New file.
4933 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4934 * gnu/gcj/xlib/natXImage.cc: New file.
4935 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4936 * java/awt/EventDispatchThread.java: Start thead on creation.
4938 2000-10-20 Tom Tromey <tromey@cygnus.com>
4940 From Arno J. Klaassen:
4941 * interpret.cc: Include <stdlib.h> for alloca.
4942 * defineclass.cc: Include <stdlib.h> for alloca.
4944 * Makefile.in: Rebuilt.
4945 * Makefile.am: Include deps.mk.
4946 (GCJCOMPILE): Added -MD, -MT, and -MF.
4947 ($(javao_files)): Don't depend on libgcj.zip.
4948 (all-recursive): New target.
4949 (%.lo:%.cc): Do dependency tracking.
4950 ($(nat_headers)): Don't depend on libgcj.zip.
4951 * configure: Rebuilt.
4952 * configure.in: Make .d files and deps.mk.
4954 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4956 * exception.cc: Don't #include "exception".
4957 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4959 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4960 * Makefile.in: Updated.
4962 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4964 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4965 * java/awt/peer/ComponentPeer.java (disable): Removed.
4968 (minimumSize): Removed.
4969 (preferredSize): Removed.
4972 * java/awt/peer/ListPeer.java (addItem): Removed.
4974 (minimumSize): Removed.
4975 (preferredSize): Removed.
4976 (setMultipleSelections): Removed.
4977 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4978 (remove): Renamed from removeMenu.
4979 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4981 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4982 (remove): Renamed from removeItem.
4983 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4984 (getMinimumSize): Removed.
4985 (getPreferredSize): Removed.
4986 (minimumSize): Removed.
4987 (preferredSize): Removed.
4988 (replaceText): Removed.
4989 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4990 (preferredSize): Removed.
4991 (getMinimumSize): Removed.
4992 (getPreferredSize): Removed.
4993 (setEchoCharacter): Removed.
4995 2000-10-10 Warren Levy <warrenl@cygnus.com>
4997 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4998 * java/sql/Date.java (serialVersionUID): New field.
4999 * java/sql/Time.java (serialVersionUID): New field.
5000 * java/sql/Timestamp.java (serialVersionUID): New field.
5001 * java/text/ChoiceFormat.java (serialVersionUID): New field.
5002 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
5003 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
5004 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
5005 (readObject): New serialization method.
5006 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
5007 (serialVersionOnStream): New field.
5008 (readObject): New serialization method.
5009 (getMonetaryDecimalSeparator): New method.
5010 (setMonetaryDecimalSeparator): New method.
5011 * java/text/NumberFormat.java (maxFractionDigits): New field.
5012 (maxIntegerDigits): New field.
5013 (minFractionDigits): New field.
5014 (minIntegerDigits): New field.
5015 (serialVersionOnStream): New field.
5016 (serialVersionUID): New field.
5017 (readObject): New serialization method.
5018 (writeObject): New serialization method.
5019 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
5020 (serialVersionOnStream): New field.
5021 (serialVersionUID): New field.
5022 (readObject): New serialization method.
5024 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
5026 * configure.in (GCJ): Avoid bogus error message when looking for
5027 (and not finding) gcj in the build tree.
5028 * configure: Rebuilt.
5030 2000-10-09 Tom Tromey <tromey@cygnus.com>
5032 * configure: Rebuilt.
5033 * configure.in: Include sys/types.h when checking for socklen_t.
5034 From Arno J. Klaassen.
5036 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
5038 * include/jvm.h: Enable __builtin_expect().
5040 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
5041 the main program. Fix for PR libgcj/341.
5043 2000-10-07 Tom Tromey <tromey@cygnus.com>
5045 * java/util/Properties.java: Merged with Classpath version.
5047 2000-10-05 Tom Tromey <tromey@cygnus.com>
5049 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
5050 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
5051 * java/lang/Class.h (Object): Added `class$' field.
5052 * java/lang/Object.h (Object): Added `class$' field.
5053 * defineclass.cc (ClassClass): Use `class$' form.
5054 (ClassObject): Likewise.
5055 * resolve.cc (ClassObject): Use `class$' form.
5056 (ObjectClass): Likewise.
5057 * interpret.cc (ClassError): Removed.
5058 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
5060 (IntegerClass): Likewise.
5061 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
5063 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
5064 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
5065 SerializableClass): Likewise.
5066 Include Serializable.h, Cloneable.h.
5067 * java/lang/natSystem.cc (SystemClass): Removed.
5068 (init_properties): Use `class$' form.
5069 * java/lang/natObject.cc (CloneableClass): Removed.
5070 (clone): Use `class$' form.
5071 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
5072 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
5073 ConstructorClass): Likewise.
5074 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
5075 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
5076 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
5077 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
5079 (ClassClass): Likewise.
5080 * include/jvm.h (StringClass): Use `class$' form.
5081 * prims.cc (ObjectClass): Removed.
5082 (_Jv_RunMain): Use `class$' form.
5083 (_Jv_AllocObject): Likewise.
5084 * jni.cc (ClassClass): Use `class$' form.
5085 (ThrowableClass): Likewise.
5086 (ObjectClass): Likewise.
5087 (MethodClass): Likewise.
5088 (ThreadGroupClass): Likewise.
5089 (NativeThreadClass): Likewise.
5090 * boehm.cc (ObjectClass): Removed.
5091 (ClassClass): Removed.
5092 (_Jv_MarkObj): Use `class$' form.
5093 * gcj/field.h (JvFieldIsRef): Use `class$' form.
5096 2000-10-05 Warren Levy <warrenl@cygnus.com>
5098 * Makefile.am: Removed java/io/Replaceable.java and
5099 java/io/Resolvable.java.
5100 * Makefile.in: Rebuilt.
5101 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
5103 * java/io/ObjectInputStream.java (processResolution): Fixed typo
5105 (processResolution): Handle readResolve method via reflection with
5106 removal of Resolvable interface.
5107 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
5108 method via reflection with removal of Replaceable interface.
5109 * java/io/Replaceable.java: Removed.
5110 * java/io/Resolvable.java: Removed.
5111 * java/security/Key.java (serialVersionUID): New field.
5112 * java/security/Provider.java (serialVersionUID): New field.
5113 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
5115 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
5117 * java/sql/DataTruncation.java (serialVersionUID): New field.
5118 * java/sql/SQLException.java (serialVersionUID): New field.
5119 * java/sql/SQLWarning.java (serialVersionUID): New field.
5120 * java/util/Date.java (serialVersionUID): New field.
5121 (millis): Made transient.
5122 (readObject): New method.
5123 (writeObject): New method.
5125 2000-10-05 Tom Tromey <tromey@cygnus.com>
5127 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
5129 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
5131 * prims.cc (_Jv_argv, _Jv_argc): New fields.
5132 (JvRunMain): Set _Jv_argv and _Jv_argc.
5133 * java/awt/Component.java: Minor fixes.
5134 * java/awt/Image.java (UndefinedProperty): Initialize final field.
5135 * java/awt/Toolkit.java (systemEventQueue): Removed.
5136 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
5137 * java/awt/Window.java (getToolkit): Don't call super.
5138 * java/awt/image/BufferedImage.java: Fix definite assignment errors.
5139 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
5140 * gnu/awt/gtk/GtkComponentPeer.java: New file.
5141 * gnu/awt/gtk/GtkContainerPeer.java: New file.
5142 * gnu/awt/gtk/GtkFramePeer.java: New file.
5143 * gnu/awt/gtk/GtkMainThread.java: New file.
5144 * gnu/awt/gtk/GtkToolkit.java: New file.
5145 * gnu/awt/gtk/GtkWindowPeer.java: New file.
5146 * gnu/awt/gtk/gtkcommon.cc: New file.
5147 * gnu/awt/gtk/gtkcommon.h: New file.
5148 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
5149 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
5150 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
5151 * gnu/awt/gtk/natGtkMainThread.cc: New file.
5152 * gnu/awt/gtk/natGtkToolkit.cc: New file.
5153 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
5155 2000-09-30 Tom Tromey <tromey@cygnus.com>
5157 * posix-threads.cc (_Jv_CondWait): Check to see if we are
5158 interrupted before modifying the cv's wait set.
5161 2000-09-30 Hans Boehm <boehm@acm.org>
5162 Bryce McKinlay <bryce@albatross.co.nz>
5164 Implement bitmap descriptor based marking for Boehm GC.
5166 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
5167 * configure: Rebuilt.
5168 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
5169 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
5170 method get_finalizer().
5171 (struct _Jv_ArrayVTable): Ditto. Declare method array with
5172 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
5173 (_Jv_AllocObj): Add new jclass parameter.
5174 (_Jv_AllocArray): Ditto.
5175 (_Jv_BuildGCDescr): New prototype.
5176 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
5177 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
5178 get_finalizer() instead of direct finalizer vtable offset.
5179 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
5180 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
5181 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
5182 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
5183 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
5184 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
5185 (_Jv_DetermineVTableIndex): Ditto.
5186 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
5187 calculations to account for new gc_descr field.
5188 * boehm.cc: #include gc_gcj.h.
5189 (obj_kind_x, obj_free_list): `#if 0'-ed away.
5190 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
5191 New commentary from HB. Mark the classes vtable.
5192 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
5193 (GC_DEFAULT_DESCR): New #define.
5194 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
5195 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
5196 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
5197 scan conservativly if size is less than min_heap_addr. Set vtable
5198 pointer of new object before returning.
5199 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
5200 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
5201 allocation for obj_kind_x.
5202 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
5203 (_Jv_AllocObj): Set vtable on returned object.
5204 (_Jv_AllocArray): Ditto.
5205 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
5206 (_Jv_NewPrimArray): Ditto.
5207 (_Jv_AllocObj): Declare as a friend.
5208 (_Jv_AllocArray): Ditto.
5209 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
5210 from &ObjectClass into new array class. Remove offset-by-one
5211 adjustments from `method' size calculations to account for gc_descr
5214 2000-09-26 Tom Tromey <tromey@cygnus.com>
5216 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
5217 `remove', not `add'.
5219 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5221 * java/lang/natSystem.cc (file_encoding): Added return statement.
5223 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5225 * Makefile.am: Re-work shell commands that exceeded command-line
5227 * Makefile.in: Rebuilt.
5229 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
5231 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
5232 * java/lang/natDouble.cc: Likewise.
5233 * java/lang/reflect/natMethod.cc: Likewise.
5234 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
5236 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
5238 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
5240 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
5241 * acinclude.m4: Arrange for automake to not bring in a new
5242 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
5243 * Makefile.am: Leave it up to automake to subst GCJ.
5244 * aclocal.m4, configure, Makefile.in: Rebuilt.
5246 2000-09-13 Tom Tromey <tromey@cygnus.com>
5248 * java/lang/reflect/natArray.cc (BooleanClass): New define.
5249 (get): Ensure Boolean class is initialized.
5250 * java/lang/reflect/natField.cc (BooleanClass): New define.
5251 (get): Ensure Boolean class is initialized.
5253 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
5255 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
5256 Initialize with anonymous class.
5257 (compareToIgnoreCase): New method.
5259 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
5260 (uncaughtException): Set had_uncaught_exception.
5261 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
5262 exit with error status if set.
5263 (_Jv_RunMain): Ditto.
5265 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
5267 * configure: Rebuilt with new ../libtool.m4.
5269 2000-09-11 Tom Tromey <tromey@cygnus.com>
5271 * java/lang/reflect/Field.java (toString): Don't rely on
5274 2000-09-08 Tom Tromey <tromey@cygnus.com>
5276 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
5277 default decoder use iconv.
5278 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
5279 Let default encoder use iconv.
5280 * configure: Rebuilt.
5281 * configure.in: Check for nl_langinfo and <langinfo.h>.
5282 * java/lang/natSystem.cc (file_encoding): New function.
5283 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
5285 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
5287 * acinclude.m4: Simplify the tests for CC and CXX.
5288 * aclocal.m4, configure: Rebuilt.
5290 * acinclude.m4: Include libtool macros from the source tree.
5291 * aclocal.m4, configure: Rebuilt.
5293 2000-09-08 Warren Levy <warrenl@cygnus.com>
5295 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
5296 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
5297 * java/io/File.java (writeObject): Added.
5298 (readObject): Added.
5299 (serialVersionUID): Added.
5300 * java/io/ObjectOutputStream.java (writeObject): Initialized
5301 fieldsAlreadyWritten before recursion rather than after.
5302 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
5303 * java/io/OptionalDataException.java (serialVersionUID): Added.
5304 (OptionalDataException): Made package private.
5305 * java/io/SyncFailedException.java (SyncFailedException): Removed
5306 default constructor to match spec.
5307 * java/lang/Boolean.java (serialVersionUID): Added.
5308 * java/lang/Byte.java (serialVersionUID): Added.
5309 * java/lang/Character.java (serialVersionUID): Added.
5310 * java/lang/Double.java (serialVersionUID): Added.
5311 * java/lang/Float.java (serialVersionUID): Added.
5312 * java/lang/Integer.java (serialVersionUID): Added.
5313 * java/lang/Long.java (serialVersionUID): Added.
5314 * java/lang/Number.java (serialVersionUID): Added.
5315 * java/lang/Short.java (serialVersionUID): Added.
5316 * java/lang/String.java (serialVersionUID): Added.
5317 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
5319 * java/lang/reflect/InvocationTargetException.java
5320 (serialVersionUID): Added.
5321 * java/net/URL.java (handler): Made transient.
5322 (hashCode): Added field for serialization, per spec. and use
5323 cached value if available.
5324 (serialVersionUID): Added.
5325 (URL): Initialize hashCode.
5326 (set): Adjust hashCode.
5327 (readObject): New Method to initialize the protocol handler when
5329 (writeObject): New method.
5330 * java/text/BreakIterator.java: Removed 'implements Serializable'.
5331 * java/text/Collator.java: Removed 'implements Serializable'.
5332 * java/util/GregorianCalendar.java (serialVersionUID): Added.
5333 * java/util/Properties.java (serialVersionUID): Added.
5334 * java/util/Random.java (serialVersionUID): Added.
5335 (seed): Made private.
5336 (nextNextGaussian): Made private.
5337 (haveNextNextGaussian): Made private.
5338 * java/util/Stack.java (serialVersionUID): Added.
5339 * java/util/TimeZone.java (serialVersionUID): Added.
5340 * java/util/Vector.java (serialVersionUID): Added.
5342 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
5344 * Makefile.am (Thread.h): Don't be friends with native threads
5346 * Makefile.in: Rebuilt.
5347 * java/lang/Thread.java (interrupt_flag): Make package-private.
5349 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
5351 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
5352 to avoid long long division.
5354 2000-09-06 Tom Tromey <tromey@cygnus.com>
5356 * java/lang/reflect/Constructor.java (toString): Use `getName' for
5358 * java/lang/reflect/Method.java (toString): Use `getName' for
5361 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
5362 `args' if method takes no parameters.
5364 Fix for PR java.lang/339:
5365 * java/lang/natPosixProcess.cc (fail): New function.
5366 (cleanup): New function.
5367 (startProcess): Use them. Create pipe so child can communicate
5368 exec failure back to parent.
5370 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5372 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
5374 (send): Undo last patch. Remove the label only.
5376 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
5378 * java/net/natInetAdress.cc: Ditto.
5380 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
5382 2000-09-05 Tom Tromey <tromey@cygnus.com>
5384 * doc/cni.sgml: Updated from master copy.
5386 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5388 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
5390 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
5392 * java/lang/fdlibm.h: #undef __P if previously defined.
5393 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
5394 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
5398 2000-09-04 Tom Tromey <tromey@cygnus.com>
5400 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
5403 2000-09-04 Anthony Green <green@redhat.com>
5405 Fix for PR java.io/203:
5406 * java/io/File.java (createTempFile): Obey directory argument.
5407 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
5408 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
5409 variable to set java.io.tmpdir on non-WIN32 systems.
5411 2000-09-04 Anthony Green <green@redhat.com>
5413 * java/io/File.java (deleteOnExit): New method.
5414 * gnu/gcj/runtime/FileDeleter.java: New class.
5415 * java/lang/natRuntime.cc (exit): Call
5416 FileDeleter.deleteOnExitNow()
5417 * Makefile.am: Add FileDeleter.java.
5418 * Makefile.in: Rebuilt.
5420 2000-09-02 Tom Tromey <tromey@cygnus.com>
5422 * Makefile.in: Rebuilt.
5423 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
5424 environment variable.
5426 2000-09-01 Andrew Haley <aph@redhat.com>
5428 * java/io/StreamTokenizer.java: Don't throw a
5429 NumberFormatException if a field is numeric as far as the
5430 StreamTokenizer is concerned but not as far as Double.valueOf() is
5431 concerned: return a zero instead.
5433 2000-08-30 Tom Tromey <tromey@cygnus.com>
5435 * Makefile.in: Rebuilt.
5436 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
5438 2000-08-28 Tom Tromey <tromey@cygnus.com>
5440 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
5441 gnu/gcj/awt/ComponentDataBlitOp.java,
5442 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
5443 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
5444 java/awt/color/ICC_ColorSpace.java,
5445 java/awt/color/ICC_Profile.java,
5446 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
5447 java/awt/image/ComponentColorModel.java,
5448 java/awt/image/ComponentSampleModel.java,
5449 java/awt/image/DataBuffer.java,
5450 java/awt/image/DataBufferByte.java,
5451 java/awt/image/DataBufferInt.java,
5452 java/awt/image/DataBufferUShort.java,
5453 java/awt/image/DirectColorModel.java,
5454 java/awt/image/IndexColorModel.java,
5455 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
5456 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
5457 java/awt/image/SinglePixelPackedSampleModel.java,
5458 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
5459 Removed Latin-1 copyright symbols.
5460 * java/util/zip/ZipFile.java: Indentation fixes.
5462 2000-08-27 Mark Wielaard <mark@klomp.org>
5464 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
5465 constructor, close can delete the file, finalize calls close.
5466 * java/util/jar/JarFile.java: Constructor that takes mode now
5469 2000-08-27 Anthony Green <green@redhat.com>
5471 * java/util/ArrayList.java, java/util/Timer.java,
5472 java/util/LinkedList.java, java/util/TimerTask.java,
5473 java/util/HashMap.java, java/util/AbstractMap.java,
5474 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
5475 java/util/SortedSet.java: Imported from GNU Classpath.
5476 * Makefile.in: Rebuilt.
5477 * Makefile.am: Added new files.
5479 2000-08-26 Anthony Green <green@redhat.com>
5481 * Makefile.in: Rebuilt.
5482 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
5485 * prims.cc: Include ClassLoader.h.
5486 (_Jv_RunMain): When executing jar files, classpath must be the jar
5487 file only. Lose our reference to the system ClassLoader in order
5488 to get a new one with the correct classpath.
5489 * java/lang/natSystem.cc (init_properties): When executing a jar
5490 file, only use the jar file for java.class.path.
5492 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
5493 for bytecode archives.
5495 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
5496 exists, but not Main-Class.
5498 2000-08-23 Mark Wielaard <mark@klomp.org>
5500 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
5501 return -1 when fill() has no more data for the Inflater.
5503 2000-08-23 Mark Wielaard <mark@klomp.org>
5505 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
5506 write(String) already does.
5508 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
5510 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
5511 to `alive_flag', call `init'.
5512 (init): New native method.
5513 * gnu/gcj/jni/natNativeThread.cc (init): New native method
5516 2000-08-21 Mark Wielaard <mark@klomp.org>
5518 * Makefile.in: Rebuilt.
5519 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
5521 (java/lang/reflect/Field.h): Likewise.
5522 (java/lang/reflect/Method.h): Likewise.
5523 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
5526 2000-08-21 Tom Tromey <tromey@cygnus.com>
5528 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
5531 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
5533 * java/lang/natSystem.cc (init_properties): Change sourceware
5534 reference to sources.redhat.com.
5536 * include/java-props.h: Add _Jv_Jar_Class_Path.
5537 * prims.cc: Ditto. Set it from `gij -jar file' option.
5539 * java/lang/natSystem.cc (init_properties): Set java.class.path
5541 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
5543 * java/util/PropertyPermission.java: Import from GNU Classpath.
5544 * Makefile.in: Rebuilt.
5545 * Makefile.am: Add java/util/PropertyPermission.java.
5546 * java/lang/System.java: Add setProperty method.
5548 * gij.cc (main): Add -jar option to execute jar files.
5549 (help): Describe -jar option.
5550 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
5551 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
5552 * gnu/gcj/runtime/FirstThread.java (main): New method.
5554 * java/util/jar/Attributes.java: Correct comment spelling.
5556 2000-08-20 Mark Wielaard <mark@klomp.org>
5558 * java/util/zip/Adler32.java: Make private variables really private
5559 * java/util/zip/CRC32.java: Make private variables really private
5560 * java/util/zip/CheckedInputStream.java: skip() could skip to much
5562 * java/util/zip/InflaterInputStream.java: skip() could skip to
5564 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
5565 * java/util/zip/ZipFile.java: size() new 1.2 method
5566 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
5567 ZipEntry. since 1.2 available() always returns just 1 or 0 when
5570 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
5572 * java/util/jar/JarFile.java: Don't call
5573 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
5576 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
5578 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
5579 Read the entire contents of the class file, not just what is
5582 * java/net/JarURLConnection.java: getEntry doesn't take any
5583 arguments. Return null if element is null.
5585 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
5586 size from the archive, not the inflated size.
5588 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
5589 java.util.zip.ZipFile.getEntry.
5591 * gij.cc (help): Change sourceware reference to
5594 2000-08-19 Tom Tromey <tromey@cygnus.com>
5596 * java/util/zip/ZipInputStream.java (createZipEntry):
5599 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
5601 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
5602 java/util/jar/JarException.java, java/util/jar/JarFile.java,
5603 java/util/jar/JarInputStream.java,
5604 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
5605 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
5606 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
5607 java/security/cert/CRL.java, java/security/cert/CRLException.java,
5608 java/security/cert/Certificate.java,
5609 java/security/cert/CertificateEncodingException.java,
5610 java/security/cert/CertificateException.java,
5611 java/security/cert/CertificateExpiredException.java,
5612 java/security/cert/CertificateFactory.java,
5613 java/security/cert/CertificateFactorySpi.java,
5614 java/security/cert/CertificateNotYetValidException.java,
5615 java/security/cert/CertificateParsingException.java,
5616 java/security/cert/X509CRL.java,
5617 java/security/cert/X509CRLEntry.java,
5618 java/security/cert/X509Certificate.java,
5619 java/security/cert/X509Extension.java: Imported from Classpath.
5620 * java/util/Hashtable.java: Imported from Classpath.
5622 * java/util/zip/ZipInputStream.java: Create stub for
5625 * gcj/javaprims.h: Updated class list.
5627 * Makefile.in, gcj/Makefile.in: Rebuilt.
5628 * Makefile.am (ordinary_java_source_files): Add these new classes.
5630 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5632 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
5633 * gnu/gcj/awt/GLightweightPeer.java: New file.
5634 * java/awt/BorderLayout.java: Implemented all methods.
5635 * java/awt/Button.java (actionListener, actionCommand): Renamed
5636 and modifier change.
5637 (addNotify): Call super.
5638 (dispatchEventImpl): New method.
5639 (getListeners): New method.
5640 (label): Made package-private, not private.
5641 * java/awt/Canvas.java: Implemented class body.
5642 * java/awt/Color.java (brighter): New method.
5643 (darker): New method.
5644 (hashCode): New method.
5645 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
5646 (getGraphicsConfiguration): Delegate to
5647 getGraphicsConfigurationImpl().
5648 (getGraphicsConfigurationImpl): New method.
5649 (getToolkit): Only return value from peer if not null.
5650 (isDisplayable): Check with parent.
5651 (isShowing): No parent implies not showing.
5652 (getForeground): Check parent property if local is null.
5653 (getBackground): Likewise.
5654 (getFont): Likewise.
5655 (setForeground): Inform peer.
5656 (setBackground): Likewise
5657 (setLocale): Invalidate component.
5658 (getColorModel): Implemented.
5659 (setLocation): Invalidate, or ignore if no change.
5660 (setSize): Invalidate, or ignore if no change.
5661 (setBounds): Invalidate, or ignore if no change.
5662 (isOpaque): By default, heavyweight implies opaque.
5663 (isLightweight): Implemented.
5664 (getMaximumSize): Implemented.
5665 (doLayout): Implemented, NOP.
5666 (validate): Implemented, NOP.
5667 (invalidate): Only propagate to parent if parent was valid.
5668 (getGraphics): Implemented.
5669 (getFontMetrics): Implemented.
5670 (update): Implemented.
5671 (paintAll): Implemented.
5672 (repaint): Implemented all repaint methods.
5673 (print): Implemented.
5674 (printAll): Implemented.
5675 (createImage): Implemented.
5676 (dispatchEvent): Give the peer a chance to handle the event.
5677 (dispatchEventImpl): Dispatch paint events.
5678 (enableEvents): Lightweights enable events on parent component.
5679 (coalesceEvents): Coalesce paint events, and select event type
5681 (coalescePaintEvents): New method.
5682 (processEvent): Fix unfortunate ordering of statements, and call
5683 correct method for MOUSE_CLICKED.
5684 (processPaintEvent): New method.
5685 (addNotify): Allow container to notify children before event
5686 mask is set in peer.
5687 (addNotifyContainerChildren): New method.
5688 (removeNotify): Visibility should not change on removeNotify.
5689 (paramString): Implemented.
5690 (list): Implemented two of the list methods.
5691 * Container (myInsets): Removed, insets are managed by peer.
5692 (getInsets): Query peer.
5693 (addImpl): Fix reparenting, enable events for lightweights,
5694 initialize component array.
5695 (validate): Call doLayout in validateTree() instead.
5696 (validateTree): Do nothing if already valid. Call beginValidate(),
5697 endValidate() on peer. Call validateTree() instead of validate()
5698 for children that are containers. Mark valid after validation of
5700 (setFont): Partial implementation.
5701 (paint): Implemented.
5702 (visitChildren): New method.
5703 (visitChild): New method.
5704 (update): Implemented.
5705 (print): Implemented.
5706 (paintComponents): Implemented.
5707 (printComponents): Consider translation and clipping.
5708 (getComponentAt): Ignore invisible children. Return this if no
5710 (addNotify): Call super.
5711 (addNotifyContainerChildren): New method.
5712 (paramString): Implemented.
5713 (list): Implemented.
5714 * java/awt/EventQueue (invokeAndWait): Get system event queue the
5716 (invokeLater): Likewise.
5717 (isDispatchThread): Likewise.
5718 * java/awt/FontMetrics (getLeading): Formula change.
5719 (getDescent): Consider leading also.
5720 (getMaxAscent): Default to getAscent().
5721 (getMaxDescent): Default to getDescent.
5722 (getMaxAdvance): Return value signifying unknown.
5723 (charWidth): Both methods implemented.
5724 (charsWidth): Implemented.
5725 (bytesWidth): Implemented.
5726 (getWidths): Implemented.
5727 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
5729 (Frame): Rearragend constuctor chaining to disallow null being
5730 passed as a graphics configuration.
5731 (getTitle): Return empty string if null.
5733 (getIconImage): New method.
5734 (setIconImage): New method.
5735 (finalize): New method.
5736 (setMenuBar): Notify peer.
5737 (isResizable): New method.
5738 (setResizable): New method.
5739 (getState): New method.
5741 (remove): Implemented.
5742 (removeNotify): New method.
5743 (getFrames): New method.
5744 * java/awt/Graphics.java: Implemented body of class.
5745 * java/awt/Graphics2D.java: New file.
5746 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
5747 * java/awt/Image.java: Implemented body of class.
5748 * java/awt/Panel.java (Panel): Call correct super constructor.
5749 (addNotify): Implemented.
5750 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
5751 * java/awt/RenderingHints.java: New file.
5752 * java/awt/Toolkit.java (createComponent): Implemented.
5753 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
5754 * java/awt/Window.java (Window): Two new constructors. Reordered
5755 constructor chaining.
5756 (getGraphicsConfigurationImpl): New method.
5757 (finalize): Call super.
5758 (addNotify): Call super.
5759 (pack): Do layout stuff.
5760 (show): Ensure that peer exists and that component is valid.
5761 (dispose): Dispose owned children.
5762 (getOwner): Simplify code, casting null pointers is valid.
5763 (getGraphicsConfiguration): Ask peer if local value is null.
5764 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
5766 * java/awt/image/BufferedImage.java: New file.
5767 * java/awt/image/RasterOp.java: New file.
5768 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
5769 More powerful replacement for getColorModel().
5770 (getColorModel) Removed.
5771 (setEventMask) New method.
5772 * Makefile.am: Added new files.
5773 * Makefile.in: Rebuilt.
5775 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
5777 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
5778 (finit_leg_name): New global.
5779 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5780 `$finit$'. This is a backward compatibility hack.
5781 (java::lang::Class::_getMethods): Likewise.
5783 2000-08-15 Andrew Haley <aph@cygnus.com>
5785 * include/jvm.h (_Jv_HashCode): New hash code.
5787 2000-08-15 Tom Tromey <tromey@cygnus.com>
5789 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5791 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
5793 * THANKS: More thanks.
5795 2000-08-10 Tom Tromey <tromey@cygnus.com>
5797 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5799 (connect): Likewise.
5801 (getOption): Likewise.
5802 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5803 case when errno not set.
5806 (receive): Likewise.
5807 (mcastGrp): Likewise.
5808 (setOption): Likewise.
5809 (getOption): Likewise.
5811 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
5812 John Stracke <francis@ecal.com>
5814 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5815 (connect): Don't falsely claim HTTP/1.1 compliance. Call
5817 (disconnect): Don't unset connected flag.
5818 (getHeaderField (String)): Call connect() if not connected.
5819 (getHeaderField (int)): Ditto.
5820 (getHeaderFieldKey): Ditto.
5821 (getHttpHeaders): Don't call connect().
5822 * java/net/HttpURLConnection.java (instanceFollowRedirects,
5823 gotResponseVals): New fields.
5824 (getResponseCode): Call getResponseVals() conditionally.
5825 (getResponseMessage): Ditto.
5826 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5828 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
5830 * Makefile.am: Move beans and applet classes to awt_java_source_files.
5831 * Makefile.in: Rebuilt.
5832 * java/awt/Color.java (getTransparency): New method.
5833 * java/awt/Component.java: Various updates.
5834 * java/awt/Container.java (removeNotify): Call super.removeNotify()
5835 after dealing with children.
5836 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5837 * java/awt/Window.java: Various new methods and updates.
5838 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5840 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5841 * java/awt/event/WindowEvent.java (paramString): Ditto.
5842 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5844 * java/awt/geom/Point2D.java (clone): Ditto.
5845 * java/awt/geom/RectangularShape.java (clone): Ditto.
5846 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5847 isAlphaPremultiplied): Make package-private, not private.
5849 2000-08-08 Tom Tromey <tromey@cygnus.com>
5851 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5852 surrogate characters.
5853 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5855 (write): Correct handling of surrogate characters.
5857 2000-08-07 Tom Tromey <tromey@cygnus.com>
5859 * java/lang/reflect/Method.java (hashCode): Use getName().
5860 (toString): Likewise.
5861 * java/lang/reflect/natMethod.cc (getType): Initialize
5864 * java/lang/reflect/Method.java (toString): Use Class.getName, not
5866 * java/lang/reflect/Field.java (toString): Correct formatting.
5869 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5871 (receive): Streamlined.
5873 2000-08-05 Tom Tromey <tromey@cygnus.com>
5875 * java/io/PrintWriter.java: Merged comments from Classpath.
5876 (printlnUnsynchronized): Removed.
5877 (println()): Print the separator.
5878 (println): Call println(), not printlnUnsynchronized.
5879 (out): Now protected, to match spec.
5881 2000-08-04 Tom Tromey <tromey@cygnus.com>
5883 * java/io/StreamTokenizer.java (TT_NONE): Now private.
5884 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5887 2000-08-03 Warren Levy <warrenl@cygnus.com>
5889 * java/io/ObjectInputStream.java (readFields): Turn off
5890 readDataFromBlock while reading via GetField.
5891 (GetField$1.get(String, Object)): Pass Class of default value to
5893 (getField): Allow for null default values.
5895 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5896 (PutField$1.put): Fixed calls of checkType in most of the put
5897 methods to pass the correct parameter.
5898 (PutField$1.put(String, Object)): Allow for null value arg.
5899 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5902 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5903 typo in spec'ed field name.
5904 (getSerialPersistentFields): Changed spelling of method to match
5905 the correct spelling of the spec'ed field name.
5907 2000-08-03 Tom Tromey <tromey@cygnus.com>
5909 * Makefile.in: Rebuilt.
5910 * Makefile.am (awt_java_source_files): Added new files.
5912 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5914 * Makefile.am: Add new AWT stubs.
5915 * java/awt/Canvas.java: New placeholder class.
5916 * java/awt/Checkbox.java: Ditto.
5917 * java/awt/CheckboxMenuItem.java: Ditto.
5918 * java/awt/Choice.java: Ditto.
5919 * java/awt/Dialog.java: Ditto.
5920 * java/awt/FileDialog.java: Ditto.
5921 * java/awt/List.java: Ditto.
5922 * java/awt/ScrollPane.java: Ditto.
5923 * java/awt/TextField.java: Ditto.
5924 * java/awt/datatransfer/Clipboard.java: Ditto.
5925 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5926 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5927 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5928 Some commented out. Partially implemented.
5929 * java/awt/natToolkit.cc: Removed file.
5931 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5933 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5934 Fixes "make -j" builds.
5935 * Makefile.in: Rebuild.
5937 2000-08-02 Tom Tromey <tromey@cygnus.com>
5939 * Makefile.in: Rebuilt.
5940 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5941 * java/net/natPlainSocketImpl.cc: Include posix.h.
5942 (accept): Use _Jv_select.
5943 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5944 (receive): Use _Jv_select.
5945 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5946 (available): Use _Jv_select.
5947 * java/lang/natSystem.cc: Include posix.h.
5948 (currentTimeMillis): Use _Jv_gettimeofday.
5949 * include/posix.h: New file.
5950 * posix.cc: New file.
5952 * scripts/encodings.pl: New file.
5953 * Makefile.in: Rebuilt.
5954 * Makefile.am (convert_source_files): Added IOConverter.java.
5955 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5957 (getDefaultDecodingClass): Canonicalize default encoding name.
5958 (getEncoder): Likewise.
5959 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5961 (getDefaultDecodingClass): Canonicalize default encoding name.
5962 (getDecoder): Likewise.
5963 * gnu/gcj/convert/IOConverter.java: New file.
5965 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5967 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5968 to match C declaration in ffi.h.
5969 * Makefile.am: Add java/awt/Button.java.
5970 * Makefile.in: Rebuilt.
5972 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5974 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5975 cast of the second argument to `ffi_raw_call' changed to match
5978 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5980 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5981 argument to `ffi_raw_call' changed to match prototype.
5983 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5985 * java/awt/Component.java (toString): Implemented.
5986 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5987 dispatchEvent() to dispatch the event.
5988 (removeImpl): Ditto.
5990 2000-07-30 Anthony Green <green@redhat.com>
5992 * java/awt/Component.java: Add treeLock object.
5993 (getTreeLock): Implement.
5994 (isShowing): Implement.
5996 2000-07-30 Tom Tromey <tromey@cygnus.com>
5998 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
6000 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
6002 * java/awt/Window.java (addNotify): Wrote.
6003 (addWindowListener): Wrote.
6005 (getWarningString): Wrote.
6006 (processEvent): Wrote.
6007 (processWindowEvent): Wrote.
6008 (removeWindowListener): Wrote.
6009 (show): Call validate(), setVisible().
6013 * java/awt/Toolkit.java (createWindow): Declare.
6015 * java/awt/Frame.java (addNotify): Use getToolkit to find
6018 * java/awt/Component.java (invalidate): Wrote.
6020 (getToolkit): Wrote.
6022 * java/awt/Container.java (addContainerListener): Removed
6024 (removeContainerListener): Likewise.
6026 (add(Component)): Use it.
6027 (add(String,Component)): Likewise.
6028 (add(Component,int)): Likewise.
6029 (add(Component,Object)): Likewise.
6030 (add(Component,Object,int)): Likewise.
6032 (getAlignmentX): Wrote.
6033 (getAlignmentY): Wrote.
6034 (getComponentAt): Wrote.
6035 (getMaximumSize): Wrote.
6036 (invalidate): Wrote.
6037 (list(PrintStream,int)): Wrote.
6038 (list(PrintWriter,int)): Wrote.
6039 (getMinimumSize): Wrote.
6040 (getPreferredSize): Wrote.
6041 (printComponents): Wrote.
6042 (processContainerEvent): Look at containerListener, not
6044 (remove): Added event processing and peer destruction.
6045 (removeAll): Use remove.
6046 (removeNotify): Wrote.
6048 (validateTree): Wrote.
6050 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
6051 * java/awt/Label.java (addNotify): Do nothing if peer exists.
6052 * java/awt/Container.java (addNotify): Don't create Container
6054 * java/awt/Button.java (addNotify): Do nothing if peer exists.
6056 2000-07-30 Tom Tromey <tromey@cygnus.com>
6058 * java/awt/Container.java (remove(int)): Wrote.
6059 (remove(Component)): Wrote.
6060 (add(Component)): Wrote.
6061 (add(Component,int)): Wrote.
6063 (addNotify): Set our own peer.
6064 * java/awt/Scrollbar.java (listeners): Changed type.
6065 (Scrollbar): Don't initialize listeners.
6067 (setValue): Call setValues.
6068 (setMinimum): Likewise.
6069 (setMaxPriority): Likewise.
6070 (setVisibleAmount): Likewise.
6072 (setUnitIncrement): Forward to peer.
6073 (setLineIncrement): Call setUnitIncrement.
6074 (setPageIncrement): Call setBlockIncrement.
6075 (setBlockIncrement): Forward to peer.
6076 (addAdjustmentListener): Rewrote.
6077 (removeAdjustmentListener): Rewrote.
6078 (processAdjustmentEvent): Rewrote.
6079 (paramString): Wrote.
6080 * Makefile.in: Rebuilt.
6081 * Makefile.am (awt_java_source_files): Added Button.java.
6082 * java/awt/Button.java: New file.
6083 * java/awt/Toolkit.java (createLabel): Declare.
6084 (createButton): Likewise.
6085 (createScrollbar): Likewise.
6086 (createContainer): Likewise.
6087 * java/awt/Label.java (addNotify): Wrote.
6088 (setAlignment): Call setAlignment in the peer.
6089 (setText): Call setText in the peer.
6091 2000-07-28 Warren Levy <warrenl@cygnus.com>
6093 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
6094 NotSerializableException with just the class name.
6096 2000-07-26 Andrew Haley <aph@cygnus.com>
6098 * interpret.cc (continue1): Insert missing break into switch.
6100 2000-07-28 Warren Levy <warrenl@cygnus.com>
6102 * java/io/ObjectStreamException.java: Made constructors protected.
6104 2000-07-27 Tom Tromey <tromey@cygnus.com>
6106 * java/io/OutputStreamWriter.java (close): Only flush if not
6109 2000-07-27 Warren Levy <warrenl@cygnus.com>
6111 * mauve-libgcj: Activated serialization tests.
6112 * gcj/field.h (getModifiers): Mask off unknown flags.
6113 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
6114 spurious bits don't cause discrepancies.
6115 * java/io/ObjectOutputStream.java: Fixed typo in comment.
6116 * java/io/ObjectStreamClass.java: Fixed typos in comments.
6117 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
6118 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
6119 * java/lang/Throwable.java (serialVersionUID): New field.
6120 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
6121 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
6123 * java/lang/reflect/natMethod.cc: Ditto.
6124 * java/security/Key.java (serialVersionUID): Removed field for now.
6125 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
6126 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
6128 2000-07-22 Tom Tromey <tromey@cygnus.com>
6130 * java/awt/geom/RectangularShape.java (getPathIterator):
6133 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
6135 * libjava/java/awt/image/ColorModel.java: New file, replaces the
6136 stub libjava/java/awt/ColorModel.java which was located in the
6138 * libjava/java/awt/image/ComponentColorModel.java: New file.
6139 * libjava/java/awt/image/ComponentSampleModel.java: New file.
6140 * libjava/java/awt/image/DataBuffer.java: New file.
6141 * libjava/java/awt/image/DataBufferByte.java: New file.
6142 * libjava/java/awt/image/DataBufferInt.java: New file.
6143 * libjava/java/awt/image/DataBufferUShort.java: New file.
6144 * libjava/java/awt/image/DirectColorModel.java: New file.
6145 * libjava/java/awt/image/PackedColorModel.java: New file.
6146 * libjava/java/awt/image/Raster.java: New file.
6147 * libjava/java/awt/image/SampleModel.java: New file.
6148 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
6150 * libjava/java/awt/image/IndexColorModel.java: New file.
6151 * libjava/java/awt/image/ImageConsumer.java: Removed import of
6152 java.awt.ColorModel stub.
6154 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
6155 * gnu/gcj/util/Buffers.java: New file, utility class.
6157 * libjava/Makefile.am: Updated to include new files.
6158 * libjava/Makefile.in: Rebuilt.
6160 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
6162 * java/io/StreamTokenizer.java: Merged with classpath.
6164 2000-07-20 Tom Tromey <tromey@cygnus.com>
6166 * Makefile.in: Rebuilt.
6167 * Makefile.am (awt_java_source_files): Updated for new files.
6168 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
6169 * java/awt/Label.java: New file.
6170 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
6171 (createIntersection, createUnion, getBounds2D): New methods.
6172 * java/awt/Scrollbar.java: New file.
6173 * java/awt/Shape.java: Updated to 1.2.
6174 * java/awt/geom/AffineTransform.java: New file.
6175 * java/awt/geom/Ellipse2D.java: New file.
6176 * java/awt/geom/NoninvertibleTransformException.java: New file.
6177 * java/awt/geom/PathIterator.java: New file.
6178 * java/awt/geom/Rectangle2D.java: New file.
6179 * java/awt/geom/RectangularShape.java: New file.
6180 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
6181 * java/awt/geom/IllegalPathStateException.java: New file.
6183 * scripts/showval.java: New file.
6185 * scripts/classes.pl (scan): Print inner classes properly.
6186 * gcj/javaprims.h: Updated class list.
6188 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
6189 initialize String fields for interpreted classes. Fixes bug
6190 reported by Hans Boehm.
6192 * java/io/File.java (getParentFile): New method, from Classpath
6193 via Oskar Liljeblad.
6195 * java/util/Vector.java (remove(Object)): Implemented.
6197 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
6199 * java/lang/natThrowable.cc (fillInStackTrace): Check for
6200 zero return from backtrace().
6202 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
6204 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
6206 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
6207 before calling notifyAll().
6209 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
6211 Add missing files from last check-in:
6212 * java/awt/image/ImageConsumer.java: New file.
6213 * java/awt/image/ImageProducer.java: New file.
6214 * java/awt/image/ImageObserver.java: New file.
6216 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6218 Merged implementation of java.applet from classpath:
6219 * java/applet/Applet.java: New file.
6220 * java/applet/AppletContext.java: New file.
6221 * java/applet/AppletStub.java: New file.
6222 * java/applet/AudioClip.java: New file.
6224 * Makefile.am: Added new java.applet classes.
6225 * Makefile.in: Rebuilt.
6227 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6230 * java/util/ResourceBundle.java (getLocale): stub.
6231 * Makefile.am: Added new AWT classes.
6232 * Makefile.in: Rebuilt.
6233 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
6234 constructors. Fix toString() and paramString().
6235 * java/awt/AWTEventMulticaster.java: New class. Implemented.
6236 * java/awt/CheckboxGroup.java: New class.
6237 * java/awt/ColorModel.java: New class.
6238 * java/awt/Component.java: Added stubs for most methods. Implemented
6240 * java/awt/Container.java: ditto.
6241 * java/awt/ComponentOrientation.java: New class. Partly implemented.
6242 * java/awt/Cursor.java: ditto.
6243 * java/awt/Event.java: Fix paramString().
6244 * java/awt/EventQueue.java: New class. Implemented.
6245 * java/awt/Font.java: Added additional stub methods. Implemented
6247 * java/awt/FontMetrics.java: New class. Stubbed.
6248 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
6250 * java/awt/Insets.java: New class. Implemented.
6251 * java/awt/Menu.java: Add new methods. Partially implemented.
6252 * java/awt/MenuItem.java: Add new methods and fields. Partially
6254 * java/awt/MenuShortcut.java: New class. Implemented.
6255 * java/awt/Panel.java: New class. Placeholder.
6256 * java/awt/PopupMenu.java: New class. Stubbed.
6257 * java/awt/Rectangle.java: New class. Implemented.
6258 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
6259 * java/awt/event/ActionEvent.java: Implement paramString().
6260 * java/awt/event/AdjustmentEvent.java: Implement paramString().
6261 * java/awt/event/ComponentEvent.java: Implement paramString().
6262 * java/awt/event/ContainerEvent.java: Implement paramString().
6263 * java/awt/event/FocusEvent.java: Implement paramString().
6264 * java/awt/event/HierarchyBoundsAdapter.java: New class.
6265 * java/awt/event/HierarchyBoundsListener.java: New class.
6266 * java/awt/event/HierarchyEvent.java: New class.
6267 * java/awt/event/HierarchyListener.java: New class.
6268 * java/awt/event/InputMethodEvent.java: Implement paramString().
6269 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
6270 exception if !catchExceptions.
6271 * java/awt/event/ItemEvent.java: Implement paramString().
6272 * java/awt/event/KeyEvent.java: Implement paramString().
6273 * java/awt/event/MouseEvent.java: Implement paramString().
6274 * java/awt/event/PaintEvent.java: Implement paramString().
6275 * java/awt/event/TextEvent.java: Implement paramString().
6276 * java/awt/event/WindowEvent.java: Implement paramString().
6278 AWT Peer interfaces:
6279 * java/awt/peer/ButtonPeer.java: New file.
6280 * java/awt/peer/ListPeer.java: New file.
6281 * java/awt/peer/CanvasPeer.java: New file.
6282 * java/awt/peer/MenuBarPeer.java: New file.
6283 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
6284 * java/awt/peer/MenuComponentPeer.java: New file.
6285 * java/awt/peer/CheckboxPeer.java: New file.
6286 * java/awt/peer/MenuItemPeer.java: New file.
6287 * java/awt/peer/ChoicePeer.java: New file.
6288 * java/awt/peer/MenuPeer.java: New file.
6289 * java/awt/peer/ComponentPeer.java: Implemented.
6290 * java/awt/peer/PanelPeer.java: New file.
6291 * java/awt/peer/ContainerPeer.java: Implemented.
6292 * java/awt/peer/PopupMenuPeer.java: New file.
6293 * java/awt/peer/DialogPeer.java: New file.
6294 * java/awt/peer/ScrollPanePeer.java: New file.
6295 * java/awt/peer/FileDialogPeer.java: New file.
6296 * java/awt/peer/ScrollbarPeer.java: New file.
6297 * java/awt/peer/FontPeer.java: New file.
6298 * java/awt/peer/TextAreaPeer.java: New file.
6299 * java/awt/peer/FramePeer.java: Implemented.
6300 * java/awt/peer/TextComponentPeer.java: New file.
6301 * java/awt/peer/LabelPeer.java: New file.
6302 * java/awt/peer/TextFieldPeer.java: New file.
6303 * java/awt/peer/LightweightPeer.java: New file.
6304 * java/awt/peer/WindowPeer.java: Implemented.
6306 2000-07-06 Tom Tromey <tromey@cygnus.com>
6308 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
6309 Initialize static final String fields.
6311 2000-07-03 Tom Tromey <tromey@cygnus.com>
6313 * java/io/PrintWriter.java (print): Call write(String), not
6314 print(String). See PR libgcj/277.
6315 (print(String)): Use write, not out.write.
6317 2000-06-30 Tom Tromey <tromey@cygnus.com>
6319 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
6321 2000-06-27 Andrew Haley <aph@cygnus.com>
6323 * java/io/File.java (createTempFile): Close the FileDescriptor
6324 used to create a temp file. Fixes some of PR 203.
6325 * java/io/natFileDescriptorPosix.cc (open): Call garbage
6326 collection if we run out of file handles.
6328 2000-06-28 Warren Levy <warrenl@cygnus.com>
6330 * gnu/java/security/provider/Gnu.java: New file.
6331 * gnu/java/security/provider/SHA.java: New file.
6332 * gnu/java/security/provider/SHA1PRNG.java: New file.
6333 * Makefile.am: Added the above files.
6334 * Makefile.in: Rebuilt.
6336 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
6338 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
6340 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
6341 (destroyed_flag): Removed.
6342 (isDestroyed, removeGroup, removeThread): Test for parent == null.
6343 (activeCount): Added spec note.
6345 2000-06-27 Warren Levy <warrenl@cygnus.com>
6347 * java/security/Principal.java: New file.
6348 * Makefile.am: Added Principal.java.
6349 * Makefile.in: Rebuilt.
6351 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
6353 * java/awt/event/MouseEvent.java: Fixed coordinate space
6356 2000-06-27 Tom Tromey <tromey@cygnus.com>
6358 * java/io/PushbackInputStream.java (read): If there are characters
6359 in the buffer, don't also call super.read().
6360 * java/io/PushbackReader.java (read): If there are characters in
6361 the buffer, don't also call super.read().
6363 * java/lang/Double.java (valueOf): Call parseDouble().
6365 2000-06-26 Warren Levy <warrenl@cygnus.com>
6367 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
6368 (newVal): Renamed to newValue.
6369 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
6370 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
6371 (revokeNow): Renamed to invalidateRefs.
6372 * java/io/OptionalDataException.java: Updated FIXME.
6373 (eof): New placeholder field.
6375 * java/io/WriteAbortedException.java (message): Made transient.
6376 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
6377 * java/lang/Throwable.java (stackTrace): Made transient.
6378 * java/net/InetAddress.java: Made Serializable.
6379 * java/security/KeyPair.java: Made Serializable.
6380 * java/security/Provider.java: Replaced with Classpath version that
6381 implements serialization and proper methods.
6382 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
6383 (limits): Renamed to choiceLimits.
6385 2000-06-24 Tom Tromey <tromey@cygnus.com>
6387 * java/lang/natDouble.cc (parseDouble): Renamed from
6389 * java/lang/Double.java (parseDouble): Renamed from
6390 doubleValueOf. Now public.
6392 2000-06-23 Andrew Haley <aph@cygnus.com>
6394 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
6395 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
6397 2000-06-23 Tom Tromey <tromey@cygnus.com>
6399 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
6400 * java/lang/natDouble.cc: Always include <alloca.h>.
6401 Fix for PR libgcj/267.
6403 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
6405 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
6406 comply with classpath VM spec.
6407 (add(Group)): Rename to addGroup().
6408 * java/lang/Thread.java (Thread): Use addThread().
6409 * java/lang/natThread.cc (finish_): Use removeThread().
6411 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
6413 * java/lang/ThreadGroup.java: Merged with classpath.
6414 * prims.cc (_Jv_RunMain): Don't use `main_group'.
6415 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
6417 * java/lang/Thread.java (Thread): Bootstrap initial thread from
6418 ThreadGroup.root if Thread.currentThread is null. Honour the
6419 ThreadGroup's max priority setting.
6421 2000-06-18 Tom Tromey <tromey@cygnus.com>
6423 * java/lang/natClass.cc (forName): Removed dead code. Initialize
6424 returned class. For PR gcj/260.
6426 2000-06-16 Tom Tromey <tromey@cygnus.com>
6428 Fix for PR libgcj/261:
6429 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
6431 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
6432 argument. (This is a patch from long ago that somehow went
6435 2000-06-15 Tom Tromey <tromey@cygnus.com>
6437 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
6441 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
6443 Fix for PR java.lang/258:
6444 * prims.cc (_Jv_PrimClass): Set state of primitive class to
6445 JV_STATE_DONE, to prevent accidental initialization.
6446 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
6447 _Jv_InterfaceAssignableFrom if target is an interface and source is an
6448 interface or an abstract class. Remove redundant initializeClass calls.
6449 Remove duplicate if_idt test.
6450 (_Jv_InterfaceAssignableFrom): New function.
6451 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
6453 2000-05-31 Tom Tromey <tromey@cygnus.com>
6455 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
6456 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
6457 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
6458 (NUM_OBJECT_METHODS): New define.
6459 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
6460 `array_vtable' parameter. Added assertion.
6461 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
6464 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
6466 * gcj/cni.h: Include <string.h>.
6467 * defineclass.cc: Include <alloca.h>.
6468 * interpret.cc: Ditto.
6469 * gij.cc: Include <stdlib.h>.
6471 2000-05-30 Tom Tromey <tromey@cygnus.com>
6473 * include/name-finder.h: Include <sys/wait.h>.
6474 (_Jv_name_finder::pid): Now of type `pid_t'.
6475 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
6476 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
6479 2000-05-24 Warren Levy <warrenl@cygnus.com>
6481 * java/io/ObjectOutputStream.java (writeObject): Use component type
6482 when writing arrays.
6485 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6487 Fix for PR libgcj/226:
6488 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
6489 since this is an installed header.
6491 Fix for PR libgcj/228:
6492 * java/util/zip/ZipFile (getInputStream): Create inflater with
6495 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
6496 with DataFormatException.
6498 2000-05-20 Tom Tromey <tromey@cygnus.com>
6500 * Makefile.in: Rebuilt.
6501 * Makefile.am (hack1): Removed.
6502 (awto_files): Likewise.
6503 (libgcjawt_la_SOURCES): Likewise.
6504 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6505 (libgcjawt_la_DEPENDENCIES): Likewise.
6506 (libgcjawt_la_LIBADD): Likewise.
6507 (libgcjawt_la_LDFLAGS): Likewise.
6508 (libgcjawt_la_LINK): Likewise.
6509 ($(awt_java_source_files:.java=.class)): Likewise.
6510 (libgcj.zip): Don't depend on AWT files.
6511 (MOSTLYCLEANFILES): Don't include AWT files.
6512 ($(awto_files)): Removed.
6513 (nat_headers): Removed AWT files.
6514 (cond_awt_java_source_files): Removed.
6515 (ordinary_java_source_files): Added awt_java_source_files.
6516 * libgcj.spec.in (*lib): Removed -lgcjawt.
6517 * configure: Rebuilt.
6518 * configure.in: Removed --enable-java-awt option.
6520 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6522 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
6523 (ZipEntry): Copy the `name' field.
6524 (clone): Implement JDK1.2 method.
6525 (setCompressedSize): ditto.
6528 2000-05-19 Tom Tromey <tromey@cygnus.com>
6530 * java/io/BufferedWriter.java: Merged with Classpath.
6531 * java/io/BufferedOutputStream.java: Merged with Classpath.
6533 2000-05-16 Andrew Haley <aph@cygnus.com>
6535 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
6536 build_ia64_frame_state.
6537 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
6540 2000-05-15 Warren Levy <warrenl@cygnus.com>
6542 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
6543 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
6544 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
6545 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
6546 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
6547 * gnu/gcj/beans/editors/FontEditor.java: Removed.
6548 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
6549 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
6550 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
6551 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
6552 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
6553 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
6554 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
6555 * gnu/gcj/beans/editors/StringEditor.java: Removed.
6556 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
6557 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
6558 * gnu/gcj/io/NullOutputStream.java: Removed.
6559 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
6560 * gnu/gcj/lang/ArrayHelper.java: Removed.
6561 * gnu/gcj/lang/ClassHelper.java: Removed.
6562 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
6564 * gnu/java/beans/BeanInfoEmbryo.java: New file.
6565 * gnu/java/beans/EmptyBeanInfo.java: New file.
6566 * gnu/java/beans/ExplicitBeanInfo.java: New file.
6567 * gnu/java/beans/IntrospectionIncubator.java: New file.
6568 * gnu/java/beans/editors/ColorEditor.java: New file.
6569 * gnu/java/beans/editors/FontEditor.java: New file.
6570 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
6571 * gnu/java/beans/editors/NativeByteEditor.java: New file.
6572 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
6573 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
6574 * gnu/java/beans/editors/NativeIntEditor.java: New file.
6575 * gnu/java/beans/editors/NativeLongEditor.java: New file.
6576 * gnu/java/beans/editors/NativeShortEditor.java: New file.
6577 * gnu/java/beans/editors/StringEditor.java: New file.
6578 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
6579 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
6580 * gnu/java/io/NullOutputStream.java: New file.
6581 * gnu/java/io/ObjectIdentityWrapper.java: New file.
6582 * gnu/java/lang/ArrayHelper.java: New file.
6583 * gnu/java/lang/ClassHelper.java: New file.
6584 * gnu/java/lang/reflect/TypeSignature.java: New file.
6586 * Makefile.am: Updated for moving Classpath files from gnu/gcj
6587 namespace back to the original Classpath gnu/java namespace.
6588 * Makefile.in: Rebuilt.
6590 * java/beans/Beans.java: Namespace change.
6591 * java/beans/EventSetDescriptor.java: Namespace change.
6592 * java/beans/Introspector.java: Namespace change.
6593 * java/beans/PropertyEditorManager.java: Namespace change.
6594 * java/io/ObjectInputStream.java: Namespace change.
6595 * java/io/ObjectOutputStream.java: Namespace change.
6596 * java/io/ObjectStreamClass.java: Namespace change.
6597 * java/io/ObjectStreamField.java: Namespace change.
6599 2000-04-21 Warren Levy <warrenl@cygnus.com>
6601 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
6602 now that compiler patch is available.
6603 Removed unneeded System.loadLibrary.
6604 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
6605 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
6607 2000-04-19 Andrew Haley <aph@cygnus.com>
6609 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
6610 and target classes have been initialized.
6612 2000-04-19 Andrew Haley <aph@cygnus.com>
6614 * java/lang/String.java: implement Serializable, Comparable.
6615 (compareTo (Object)): New method.
6617 2000-04-19 Warren Levy <warrenl@cygnus.com>
6619 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
6620 instead of getField to retrieve non-public field.
6621 (getSerialPersistantFields): Ditto.
6623 2000-04-18 Warren Levy <warrenl@cygnus.com>
6625 * mauve-libgcj: Turned off object serialization tests temporarily
6626 due to compiler error.
6628 2000-04-17 Warren Levy <warrenl@cygnus.com>
6630 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
6631 to avoid build problem.
6633 * mauve-libgcj: Turned on object serialization tests.
6635 2000-04-17 Tom Tromey <tromey@cygnus.com>
6637 * libgcj.spec.in (*lib): Added -lgcjawt.
6639 2000-04-17 Andrew Haley <aph@cygnus.com>
6641 * Makefile.am: Add new files:
6642 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
6644 * Makefile.in: Rebuilt.
6646 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
6647 interface that has no implementations.
6648 Check for an attempt to assign an abstract class to an interface.
6650 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
6651 if we fail to find MessageDigest.getInstance ("SHA").
6653 * gnu/gcj/io/SimpleSHSStream.java: New file.
6654 * gnu/gcj/io/natSimpleSHSStream.java: New file.
6655 * gnu/gcj/io/shs.cc: New file.
6656 * gnu/gcj/io/shs.h: new file.
6658 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
6661 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
6662 punctuation from the classname of an array element.
6664 * gcj/javaprims.h: Add SimpleDigestStream.
6666 2000-04-17 Andrew Haley <aph@cygnus.com>
6668 * java/lang/natClass.cc (getPrivateField): Make recursive calls
6669 to getPrivateField for superclasses.
6671 2000-04-14 Andrew Haley <aph@cygnus.com>
6673 * Makefile.am: Add new files:
6674 java/io/ObjectOutputStream$PutField.h,
6675 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
6676 java/io/natObjectOutputStream.cc
6677 * Makefile.in: Rebuilt.
6678 * gcj/Makefile.in: Rebuilt.
6679 * include/Makefile.in: Rebuilt.
6680 * java/lang/Class.h (getPrivateField): New method.
6681 (getPrivateMethod): Ditto.
6682 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
6683 and java::io::ObjectStreamClass our friends.
6684 * java/lang/natClass.cc (getPrivateField): New method.
6685 (getPrivateMethod): Ditto.
6686 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
6687 * gcj/javaprims.h: Add serialization classes.
6688 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
6689 (setByteField): Ditto.
6690 (setCharField): Ditto.
6691 (setDoubleField): Ditto.
6692 (setFloatField): Ditto.
6693 (setIntField): Ditto.
6694 (setLongField): Ditto.
6695 (setShortField): Ditto.
6696 (setObjectField): Ditto.
6697 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
6699 (getByteField): Ditto.
6700 (getCharField): Ditto.
6701 (getDoubleField): Ditto.
6702 (getFloatField): Ditto.
6703 (getIntField): Ditto.
6704 (getLongField): Ditto.
6705 (getShortField): Ditto.
6706 (getObjectField): Ditto.
6707 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
6709 (getSerialPersistantFields): Ditto.
6710 (getDefinedSUID): Ditto.
6711 * java/io/natObjectOutputStream.cc: New file.
6712 * java/io/natObjectInputStream.cc: New file.
6714 2000-04-13 Warren Levy <warrenl@cygnus.com>
6716 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
6717 problems. Revert to previous version to reproduce and when fixed.
6719 2000-04-13 Warren Levy <warrenl@cygnus.com>
6721 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
6722 * gnu/gcj/io/NullOutputStream.java: New file.
6723 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
6724 * java/io/BlockDataException.java: New file.
6725 * java/io/Externalizable.java: New file.
6726 * java/io/InvalidClassException.java: New file.
6727 * java/io/InvalidObjectException.java: New file.
6728 * java/io/NotActiveException.java: New file.
6729 * java/io/NotSerializableException.java: New file.
6730 * java/io/ObjectInput.java: New file.
6731 * java/io/ObjectInputStream.java: New file.
6732 * java/io/ObjectInputValidation.java: New file.
6733 * java/io/ObjectOutput.java: New file.
6734 * java/io/ObjectOutputStream.java: New file.
6735 * java/io/ObjectStreamClass.java: New file.
6736 * java/io/ObjectStreamConstants.java: New file.
6737 * java/io/ObjectStreamField.java: New file.
6738 * java/io/Replaceable.java: New file.
6739 * java/io/Resolvable.java: New file.
6740 * java/io/SerializablePermission.java: New file.
6741 * java/io/WriteAbortedException.java: New file.
6742 * java/security/BasicPermission.java: New file.
6743 * java/security/DigestOutputStream.java: New file.
6744 * java/security/Guard.java: New file.
6745 * java/security/Permission.java: New file.
6746 * java/security/PermissionCollection.java: New file.
6747 * Makefile.am: Added above files.
6748 * Makefile.in: Rebuilt.
6750 * java/beans/Beans.java (instantiate): Activated serialization code.
6751 * java/lang/SecurityManager.java (checkPermission): New method.
6753 2000-04-12 Warren Levy <warrenl@cygnus.com>
6755 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
6756 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
6757 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
6758 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
6759 * gnu/gcj/beans/editors/ColorEditor.java: New file.
6760 * gnu/gcj/beans/editors/FontEditor.java: New file.
6761 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
6762 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
6763 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
6764 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
6765 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
6766 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
6767 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
6768 * gnu/gcj/beans/editors/StringEditor.java: New file.
6769 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
6770 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
6771 * gnu/gcj/lang/ArrayHelper.java: New file.
6772 * gnu/gcj/lang/ClassHelper.java: New file.
6773 * java/beans/BeanDescriptor.java: New file.
6774 * java/beans/BeanInfo.java: New file.
6775 * java/beans/Beans.java: New file.
6776 * java/beans/Customizer.java: New file.
6777 * java/beans/DesignMode.java: New file.
6778 * java/beans/EventSetDescriptor.java: New file.
6779 * java/beans/FeatureDescriptor.java: New file.
6780 * java/beans/IndexedPropertyDescriptor.java: New file.
6781 * java/beans/IntrospectionException.java: New file.
6782 * java/beans/Introspector.java: New file.
6783 * java/beans/MethodDescriptor.java: New file.
6784 * java/beans/ParameterDescriptor.java: New file.
6785 * java/beans/PropertyChangeEvent.java: New file.
6786 * java/beans/PropertyChangeListener.java: New file.
6787 * java/beans/PropertyChangeSupport.java: New file.
6788 * java/beans/PropertyDescriptor.java: New file.
6789 * java/beans/PropertyEditor.java: New file.
6790 * java/beans/PropertyEditorManager.java: New file.
6791 * java/beans/PropertyEditorSupport.java: New file.
6792 * java/beans/PropertyVetoException.java: New file.
6793 * java/beans/SimpleBeanInfo.java: New file.
6794 * java/beans/VetoableChangeListener.java: New file.
6795 * java/beans/VetoableChangeSupport.java: New file.
6796 * java/beans/Visibility.java: New file.
6797 * java/beans/beancontext/BeanContext.java: New file.
6798 * java/beans/beancontext/BeanContextChild.java: New file.
6799 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6800 * java/beans/beancontext/BeanContextChildSupport.java: New file.
6801 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6802 * java/beans/beancontext/BeanContextEvent.java: New file.
6803 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6804 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6805 * java/beans/beancontext/BeanContextProxy.java: New file.
6806 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6808 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6809 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6811 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6812 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6814 * java/beans/beancontext/BeanContextServices.java: New file.
6815 * java/beans/beancontext/BeanContextServicesListener.java: New file.
6816 * java/util/AbstractCollection.java: New file.
6817 * java/util/AbstractList.java: New file.
6818 * java/util/Arrays.java: New file.
6819 * Makefile.am: Added above files.
6820 * Makefile.in: Rebuilt.
6822 2000-04-11 Warren Levy <warrenl@cygnus.com>
6824 * java/awt/AWTError.java: New file.
6825 * java/awt/AWTEvent.java: New file.
6826 * java/awt/AWTException.java: New file.
6827 * java/awt/ActiveEvent.java: New file.
6828 * java/awt/Adjustable.java: New file.
6829 * java/awt/BorderLayout.java: New file.
6830 * java/awt/Color.java: New file.
6831 * java/awt/Component.java: New file.
6832 * java/awt/Container.java: New file.
6833 * java/awt/Dimension.java: New file.
6834 * java/awt/Event.java: New file.
6835 * java/awt/Font.java: New file.
6836 * java/awt/Frame.java: New file.
6837 * java/awt/Graphics.java: New file.
6838 * java/awt/IllegalComponentStateException.java: New file.
6839 * java/awt/Image.java: New file.
6840 * java/awt/ItemSelectable.java: New file.
6841 * java/awt/LayoutManager.java: New file.
6842 * java/awt/LayoutManager2.java: New file.
6843 * java/awt/Menu.java: New file.
6844 * java/awt/MenuBar.java: New file.
6845 * java/awt/MenuComponent.java: New file.
6846 * java/awt/MenuContainer.java: New file.
6847 * java/awt/MenuItem.java: New file.
6848 * java/awt/Paint.java: New file.
6849 * java/awt/PaintContext.java: New file.
6850 * java/awt/Point.java: New file.
6851 * java/awt/Rectangle.java: New file.
6852 * java/awt/Shape.java: New file.
6853 * java/awt/TextArea.java: New file.
6854 * java/awt/TextComponent.java: New file.
6855 * java/awt/Toolkit.java: New file.
6856 * java/awt/Transparency.java: New file.
6857 * java/awt/Window.java: New file.
6858 * java/awt/natToolkit.cc: New file.
6859 * java/awt/event/AWTEventListener.java: New file.
6860 * java/awt/event/ActionEvent.java: New file.
6861 * java/awt/event/ActionListener.java: New file.
6862 * java/awt/event/AdjustmentEvent.java: New file.
6863 * java/awt/event/AdjustmentListener.java: New file.
6864 * java/awt/event/ComponentAdapter.java: New file.
6865 * java/awt/event/ComponentEvent.java: New file.
6866 * java/awt/event/ComponentListener.java: New file.
6867 * java/awt/event/ContainerAdapter.java: New file.
6868 * java/awt/event/ContainerEvent.java: New file.
6869 * java/awt/event/ContainerListener.java: New file.
6870 * java/awt/event/FocusAdapter.java: New file.
6871 * java/awt/event/FocusEvent.java: New file.
6872 * java/awt/event/FocusListener.java: New file.
6873 * java/awt/event/InputEvent.java: New file.
6874 * java/awt/event/InputMethodEvent.java: New file.
6875 * java/awt/event/InputMethodListener.java: New file.
6876 * java/awt/event/InvocationEvent.java: New file.
6877 * java/awt/event/ItemEvent.java: New file.
6878 * java/awt/event/ItemListener.java: New file.
6879 * java/awt/event/KeyAdapter.java: New file.
6880 * java/awt/event/KeyEvent.java: New file.
6881 * java/awt/event/KeyListener.java: New file.
6882 * java/awt/event/MouseAdapter.java: New file.
6883 * java/awt/event/MouseEvent.java: New file.
6884 * java/awt/event/MouseListener.java: New file.
6885 * java/awt/event/MouseMotionAdapter.java: New file.
6886 * java/awt/event/MouseMotionListener.java: New file.
6887 * java/awt/event/PaintEvent.java: New file.
6888 * java/awt/event/TextEvent.java: New file.
6889 * java/awt/event/TextListener.java: New file.
6890 * java/awt/event/WindowAdapter.java: New file.
6891 * java/awt/event/WindowEvent.java: New file.
6892 * java/awt/event/WindowListener.java: New file.
6893 * java/awt/geom/Dimension2D.java: New file.
6894 * java/awt/geom/Point2D.java: New file.
6895 * java/awt/peer/ComponentPeer.java: New file.
6896 * java/awt/peer/ContainerPeer.java: New file.
6897 * java/awt/peer/FramePeer.java: New file.
6898 * java/awt/peer/WindowPeer.java: New file.
6899 * java/util/Collection.java: New file.
6900 * java/util/Comparator.java: New file.
6901 * java/util/Iterator.java: New file.
6902 * java/util/List.java: New file.
6903 * java/util/ListIterator.java: New file.
6904 * Makefile.am: Added above files.
6905 * Makefile.in: Rebuilt.
6907 2000-04-10 Warren Levy <warrenl@cygnus.com>
6909 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6910 * java/lang/FirstThread.java: Ditto.
6911 * java/lang/StringBuffer.java: Ditto.
6912 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6914 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6915 Special case handled in java.math.BigInteger.
6916 * java/math/BigInteger.java (divide): Handle the special case when
6917 dividing by 1 and the high bit of the dividend is set.
6918 (setShiftRight): Handle case when count == 0.
6920 2000-04-05 Andrew Haley <aph@cygnus.com>
6922 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6925 2000-04-05 Andrew Haley <aph@cygnus.com>
6927 * sysdep/ia64.c (rse_address_add): Delete.
6928 (IS_NaT_COLLECTION_ADDR): Delete.
6929 (ia64_backtrace_helper): check for null unwind_info.
6931 * sysdep/ia64-frame.h: add calc_caller_bsp.
6933 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6936 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6937 (_Jv_remI): Likewise.
6938 (_Jv_divJ): Likewise.
6939 (_Jv_remJ): Likewise.
6941 * interpret.cc (continue1): Use divide subroutines to guarantee
6942 correct Java standard behaviour.
6943 Floating-point division should not abort; make it so.
6945 2000-03-29 Tom Tromey <tromey@cygnus.com>
6947 * configure: Rebuilt.
6948 * configure.in: Test against `libgcj_sjlj', not
6949 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6950 to be set even when using sjlj.
6952 2000-03-24 Andrew Haley <aph@cygnus.com>
6954 * Makefile.am: Add file addr2name.awk.
6955 * Makefile.in: Rebuilt.
6956 * addr2name.awk: New file.
6957 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6959 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6962 2000-03-22 Andrew Haley <aph@cygnus.com>
6964 * configure.host: Add -funwind-tables for IA64.
6965 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6966 * Makefile.in: Rebuilt.
6967 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6968 * sysdep/ia64.c: New file.
6969 * sysdep/ia64-frame.h: New file.
6970 * configure.in: Add sysdep/ia64.c for ia64.
6971 * configure: Rebuilt.
6973 2000-03-17 Andrew Haley <aph@cygnus.com>
6975 * java/lang/natString.cc: Remove `register' keyword.
6976 interpret.cc: ditto.
6978 2000-03-16 Andrew Haley <aph@cygnus.com>
6980 * configure.host (ia64): Enable interpreter.
6982 2000-03-14 Hans Boehm <boehm@acm.org>
6984 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6986 2000-03-14 Andrew Haley <aph@cygnus.com>
6988 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6991 2000-03-10 Andrew Haley <aph@cygnus.com>
6993 * java/lang/ieeefp.h: Import latest version from fdlibm.
6995 2000-03-14 Andrew Haley <aph@cygnus.com>
6997 * prims.cc (_Jv_ThrowSignal): New function.
6998 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
7000 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
7001 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
7002 * include/ppc-signal.h: New file.
7004 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
7006 * java/lang/Thread.java: Declare `data' as Object, not RawData.
7007 * java/lang/natThread.java (initialize_native): Cast `data' to
7009 * gnu/gcj/RawData.java: Clarify documentation.
7011 From Gregory R. Warnes <warnes@biostat.washington.edu>:
7012 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
7013 `jarFile', not `jarFileURL'.
7015 2000-05-15 Andrew Haley <aph@cygnus.com>
7017 * include/ppc-signal.h: New file.
7019 2000-05-11 Tom Tromey <tromey@cygnus.com>
7021 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
7022 file headers, don't include `size' in the skip call.
7024 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
7026 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
7027 Avoid arrayCopy() call where possible. Update `count' _after_ calling
7029 (replace): Reimplemented. Fix javadoc.
7030 (reverse): Call ensureCapacity_unsynchronized().
7031 (StringBuffer (String)): Use DEFAULT_CAPACITY.
7033 (replace): Calculate length for arraycopy() correctly.
7035 2000-05-09 Tom Tromey <tromey@cygnus.com>
7037 * java/lang/StringBuffer.java (toString): Don't mark buffer as
7039 (insert(int,char[],int,int): New method.
7040 (delete): New method from Classpath.
7041 (deleteCharAt): Likewise.
7042 (substring): Likewise.
7043 (shared): No longer private.
7044 Added JavaDoc comments from Classpath.
7045 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
7048 2000-05-07 Tom Tromey <tromey@cygnus.com>
7050 * Makefile.in: Rebuilt.
7051 * Makefile.am (LIBLINK): New macro.
7052 (libgcj_la_LINK): Use it.
7053 (libgcjawt_la_LINK): Likewise.
7055 2000-05-06 Tom Tromey <tromey@cygnus.com>
7057 * Makefile.in: Rebuilt.
7058 * Makefile.am (libgcj.zip): Don't pass -L to javac.
7060 2000-05-05 Tom Tromey <tromey@cygnus.com>
7062 Fix for PR libgcj/220:
7063 * Makefile.in: Rebuilt.
7064 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
7065 (jv_convert_LDFLAGS): Likewise.
7066 (libgcj_la_LDFLAGS): Likewise.
7067 (GCJLINK): New macro.
7068 (jv_convert_LINK): Use it.
7069 (gij_LINK): Likewise.
7070 (libgcj_la_LINK): New macro.
7071 (libgcjawt_la_LINK): Likewise.
7073 2000-05-04 Tom Tromey <tromey@cygnus.com>
7075 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
7077 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
7081 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
7083 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
7084 (_Jv_IsAssignableFrom): Ditto.
7085 (_Jv_IsInstanceOf): Ditto.
7086 (_Jv_CheckCast): Ditto.
7087 (_Jv_CheckArrayStore): Ditto.
7088 * java/lang/Class.h (_Jv_InitClass): Ditto.
7089 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
7094 (_Jv_MonitorExit): Ditto.
7095 * boehm.cc (_Jv_MarkObj): Ditto.
7096 (_Jv_MarkObj): Ditto.
7097 (_Jv_MarkArray): Ditto.
7098 * prims.cc (_Jv_AllocObject): Ditto.
7099 (_Jv_NewObjectArray): Ditto.
7100 (_Jv_NewPrimArray): Ditto.
7101 (_Jv_Malloc): Ditto.
7102 (_Jv_Realloc): Ditto.
7103 (_Jv_MallocUnchecked): Ditto.
7109 2000-05-04 Tom Tromey <tromey@cygnus.com>
7111 * java/util/Locale.java (Locale): Don't explicitly check for
7113 * java/util/Hashtable.java (containsKey): Don't explicitly check
7116 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
7118 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
7120 * java/text/StringCharacterIterator.java
7121 (StringCharacterIterator): Don't check for null.
7122 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
7124 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
7125 check for null pointer.
7126 (leaveGroup): Likewise.
7127 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
7129 (setData): Likewise.
7130 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
7133 2000-04-28 Jakub Jelinek <jakub@redhat.com>
7135 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
7136 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
7137 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
7138 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
7139 -rpath for in-gcc builds.
7140 * Makefile.in: Rebuilt.
7142 2000-04-28 Tom Tromey <tromey@cygnus.com>
7144 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
7147 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
7149 * libjava/java/lang/String.java (toString): Remove `final' hack.
7151 2000-04-05 Tom Tromey <tromey@cygnus.com>
7153 Runtime support for PR gcj/2:
7154 * prims.cc (_Jv_ThrowNullPointerException): New function.
7155 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
7157 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
7159 * prims.cc (_Jv_NewObjectArray): Fix typo.
7161 2000-04-26 Tom Tromey <tromey@cygnus.com>
7163 * Makefile.in: Rebuilt.
7164 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
7166 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
7168 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
7171 2000-04-22 Anthony Green <green@cygnus.com>
7173 * include/jvm.h (__builtin_expect): Define as unused for now.
7174 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
7178 (_Jv_MonitorExit): Ditto.
7179 * boehm.cc (_Jv_MarkObj): Ditto.
7180 (_Jv_MarkObj): Ditto.
7181 (_Jv_MarkArray): Ditto.
7182 (_Jv_AllocBytes): Ditto.
7183 * prims.cc (_Jv_AllocObject): Ditto.
7184 (_Jv_NewObjectArray): Ditto.
7185 (_Jv_NewPrimArray): Ditto.
7186 (_Jv_Malloc): Ditto.
7187 (_Jv_Realloc): Ditto.
7188 (_Jv_MallocUnchecked): Ditto.
7194 * include/Makefile.in: Rebuilt.
7195 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
7197 2000-04-21 Tom Tromey <tromey@cygnus.com>
7199 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
7200 Yet another new version from Classpath.
7202 Fix for PR libgcj/15:
7203 * java/util/natGregorianCalendar.cc (_REENTRANT,
7204 _POSIX_PTHREAD_SEMANTICS): Don't define.
7205 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
7206 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
7208 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
7210 * configure: Rebuilt.
7211 * configure.in: If using POSIX threads, define _REENTRANT if
7212 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
7213 GETHOSTBYNAME_R_NEEDS_REENTRANT.
7215 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7216 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
7217 version from Classpath.
7219 Fix for PR libgcj/213:
7220 * Makefile.in: Rebuilt.
7221 * Makefile.am (gij_SOURCES): Added gij.cc.
7222 (EXTRA_gij_SOURCES): Removed.
7223 (gij_LDADD): Removed gij.lo.
7224 (gij_DEPENDENCIES): Likewise.
7225 ($(gij_OBJECTS)): Depend on nat_headers.
7227 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
7228 `setURL', not `url.set'.
7230 2000-04-20 Tom Tromey <tromey@cygnus.com>
7232 Fix for PR java.io/204:
7233 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7234 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
7237 Fix for PR libgcj/212:
7238 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
7239 * include/jvm.h (_Jv_word, _Jv_word2): Define.
7240 * java/lang/Class.h (_Jv_word): Declare.
7242 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
7244 2000-04-19 Tom Tromey <tromey@cygnus.com>
7246 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
7247 doesn't have a loader.
7249 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
7251 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
7252 MAYBE_MARK to ptr_t, for compatibility with new GC version.
7254 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
7256 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
7258 (available): Initialize `where' to prevent bogus compiler warning.
7260 2000-04-12 Tom Tromey <tromey@cygnus.com>
7262 * java/lang/natString.cc (intern): Temporarily disable finalizer
7265 * java/lang/natString.cc (unintern): Added `obj' argument.
7266 (intern): Register finalizer for string.
7267 * java/lang/String.java (unintern): Now static; added obj
7270 2000-04-11 Tom Tromey <tromey@cygnus.com>
7272 * java/util/Vector.java (VectorEnumeration): Now `final'.
7273 * java/util/Hashtable.java (HashtableEntry): Now `final'.
7274 (HashtableEnumeration): Likewise.
7275 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
7276 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
7278 2000-04-10 Warren Levy <warrenl@cygnus.com>
7280 * java/io/ObjectStreamException.java: New file.
7281 * java/io/OptionalDataException.java: New file.
7282 * java/io/StreamCorruptedException.java: New file.
7283 * java/math/BigDecimal.java: New file.
7284 * java/sql/CallableStatement.java: New file.
7285 * java/sql/Connection.java: New file.
7286 * java/sql/DataTruncation.java: New file.
7287 * java/sql/DatabaseMetaData.java: New file.
7288 * java/sql/Date.java: New file.
7289 * java/sql/Driver.java: New file.
7290 * java/sql/DriverManager.java: New file.
7291 * java/sql/DriverPropertyInfo.java: New file.
7292 * java/sql/PreparedStatement.java: New file.
7293 * java/sql/ResultSet.java: New file.
7294 * java/sql/ResultSetMetaData.java: New file.
7295 * java/sql/SQLException.java: New file.
7296 * java/sql/SQLWarning.java: New file.
7297 * java/sql/Statement.java: New file.
7298 * java/sql/Time.java: New file.
7299 * java/sql/Timestamp.java: New file.
7300 * java/sql/Types.java: New file.
7301 * Makefile.am: Added above new files.
7302 * Makefile.in: Rebuilt.
7304 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
7305 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
7306 DatagramSocket constructor instead of null.
7308 2000-04-08 Anthony Green <green@cygnus.com>
7310 * include/posix-threads.h (_Jv_MutexUnlock): Replace
7313 2000-04-08 Anthony Green <green@cygnus.com>
7315 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
7316 (_Jv_MutexUnlock): Ditto.
7317 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
7318 (_Jv_MutexUnlock): Ditto.
7320 2000-04-08 Anthony Green <green@cygnus.com>
7322 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
7323 (ensureCapacity_unsynchronized): New private method.
7324 (append): Use ensureCapacity_unsynchronized.
7326 2000-04-08 Tom Tromey <tromey@cygnus.com>
7328 * Makefile.in: Rebuilt.
7329 * Makefile.am (awt_java_source_files): Added new files.
7330 * java/awt/IllegalComponentStateException.java: New file.
7331 * java/awt/ItemSelectable.java: New file.
7332 * java/awt/event/WindowEvent.java: Finished.
7333 * java/awt/event/TextEvent.java: Finished.
7334 * java/awt/event/ContainerEvent.java: New file.
7335 * java/awt/Component.java (getX, getY): New methods.
7336 * java/awt/event/PaintEvent.java: New file.
7337 * java/awt/event/MouseEvent.java: New file.
7338 * java/awt/ActiveEvent.java: New file.
7339 * java/awt/event/KeyEvent.java: Finished.
7340 * java/awt/event/ItemEvent.java: New file.
7341 * java/awt/Adjustable.java: New file.
7342 * java/awt/event/InputMethodEvent.java: New file.
7343 * java/awt/event/InputEvent.java: Finished.
7344 * java/awt/event/FocusEvent.java: New file.
7345 * java/awt/event/MouseMotionAdapter.java: New file.
7346 * java/awt/event/MouseAdapter.java: New file.
7347 * java/awt/event/KeyAdapter.java: New file.
7348 * java/awt/event/FocusAdapter.java: New file.
7349 * java/awt/event/ContainerAdapter.java: New file.
7350 * java/awt/event/ComponentEvent.java: Finished.
7351 * java/awt/event/AdjustmentEvent.java: New file.
7352 * java/awt/event/ComponentAdapter.java: New file.
7353 * java/awt/event/ActionEvent.java: Finished.
7354 * java/awt/event/MouseMotionListener.java: New file.
7355 * java/awt/event/MouseListener.java: New file.
7356 * java/awt/event/ItemListener.java: New file.
7357 * java/awt/event/InputMethodListener.java: New file.
7358 * java/awt/event/ContainerListener.java: New file.
7359 * java/awt/event/FocusListener.java: New file.
7360 * java/awt/event/ComponentListener.java: New file.
7361 * java/awt/event/AWTEventListener.java: New file.
7362 * java/awt/event/AdjustmentListener.java: New file.
7364 2000-04-08 Anthony Green <green@cygnus.com>
7366 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
7367 check when we have to.
7369 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
7372 * java/util/StringTokenizer.java: Minor optimization. Eliminates
7375 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
7376 inline hasMoreElements.
7378 2000-04-05 Tom Tromey <tromey@cygnus.com>
7380 * configure: Rebuilt.
7381 * configure.in: Recognize --enable-java-awt.
7382 (AWT): New conditional.
7383 * Makefile.in: Rebuilt.
7384 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
7386 (libgcjawt_la_SOURCES): New macro.
7387 (EXTRA_libgcjawt_la_SOURCES): Likewise.
7388 (libgcjawt_la_DEPENDENCIES): Likewise.
7389 (libgcjawt_la_LIBADD): Likewise.
7390 (libgcjawt_la_LDFLAGS): Likewise.
7391 (libgcj.zip): Depend on cond_java_awt_source_files
7392 (cond_awt_java_source_files): New macro.
7393 (MOSTLYCLEANFILES): Added awto_files.
7394 (awto_files): New macro. Use where javao_files used.
7395 (nat_headers): Use cond_awt_java_source_files.
7397 2000-04-04 Tom Tromey <tromey@cygnus.com>
7399 * Makefile.in: Rebuilt.
7400 * Makefile.am (awt_java_source_files): Added AWTException.java.
7401 * java/awt/AWTException.java: New file.
7403 2000-04-03 Tom Tromey <tromey@cygnus.com>
7405 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
7406 commentary from Alex.
7408 * Makefile.in: Rebuilt.
7409 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
7412 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
7414 * configure: Rebuilt.
7415 * configure.in: Add --disable-jvmpi.
7416 * include/config.h.in: Rebuilt.
7417 * acconfig.h: Add ENABLE_JVMPI.
7419 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
7420 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
7421 (_Jv_JVMPI_Notify_THREAD_END): New define.
7422 (_Jv_JVMPI_Notify_THREAD_END): New define.
7423 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
7424 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7425 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7427 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
7430 * java/lang/natThread.cc: Include JVMPI headers if necessary.
7431 (finish_): Generate JVMPI thread end events.
7432 (run_): Generate JVMPI thread start events.
7433 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
7434 preloaded JNI library.
7435 Include JVMPI headers if necessary.
7436 (run): Generate JVMPI thread start events.
7438 * boehm.cc: Define GC_disable and GC_enable.
7439 (_Jv_DisableGC): New function.
7440 (_Jv_EnableGC): New function.
7441 (disable_gc_mutex): Declare.
7442 * nogc.cc (_Jv_DisableGC): New function.
7443 (_Jv_EnableGC): New function.
7445 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
7446 (_Jv_JVMPI_Interface): Define.
7447 (jvmpiEnableEvent): New function.
7448 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
7450 * include/jvmpi.h: New file.
7452 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
7454 * Makefile.in: New #defines and friends for Thread.h.
7455 * Makefile.am: Ditto.
7456 * posix-threads.cc: (struct starter): Remove `object'.
7457 (_Jv_CondWait): Use interruptable condition variables and new
7458 recursive mutexes. New return codes on interrupt or non-ownership
7460 (_Jv_CondNotify): Ditto.
7461 (_Jv_CondNotifyAll): Ditto.
7462 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
7463 the target thread by signaling its wait condition.
7464 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
7465 not the starter struct. Initialize wait_mutex and wait_cond.
7466 (_Jv_MutexLock): New recursive mutex implementation. Moved from
7468 (_Jv_MutexUnlock): Ditto.
7469 (really_start): Set info->data->thread from pthread_self() to work
7470 around a race condition. Destroy wait_mutex and wait_cond when run()
7472 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
7473 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
7475 startable_flag: New private field.
7476 (Thread): Initialize `startable_flag'.
7477 (toString): Check for null thread group.
7478 * java/lang/natThread.cc: (struct natThread): New fields
7479 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
7480 (class locker): Removed.
7481 (initialize_native): Initialize `join_cond' and `join_mutex'.
7482 (interrupt): Now just calls _Jv_ThreadInterrupt().
7483 (join): Simplified. Just wait on the target thread's join condition.
7484 (finish_): Remove join list code. Unset thread group. Signal
7485 potential joiners by notifying the dying threads join_cond.
7486 (start): Check for illegal restarts.
7487 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
7489 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
7490 #defines and #ifdefs.
7491 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
7492 `wait_mutex', `next'.
7493 (struct _Jv_ConditionVariable_t): Define as a struct instead of
7494 directly mapping to pthread_cond_t.
7495 (struct _Jv_Mutex_t): New recursive implementation.
7496 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
7497 _Jv_HaveCondDestroy: Never define this for posix-threads.
7498 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
7499 (_Jv_CondNotifyAll): Ditto.
7500 (_Jv_MutexLock): Ditto.
7501 (_Jv_MutexUnlock): Ditto.
7502 (_Jv_MutexInit): Changed to reflect new mutex implementation.
7503 (_Jv_MutexDestroy): Ditto.
7504 (_Jv_CondDestroy): Removed.
7505 (_Jv_PthreadGetMutex): Removed.
7506 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
7507 error. Add a FIXME about this.
7508 (_Jv_CondNotifyAll): Ditto.
7509 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
7510 _JV_NOT_OWNER on other errors. Add FIXME.
7512 2000-03-26 Tom Tromey <tromey@cygnus.com>
7514 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
7516 (call): Don't throw exception here.
7518 2000-03-26 Tom Tromey <tromey@cygnus.com>
7520 * java/lang/mprec.h: Use SIZEOF_VOID_P.
7521 * interpret.cc: Use SIZEOF_VOID_P.
7522 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
7523 (_Jv_loadLong): Likewise.
7524 (_Jv_storeDouble): Likewise.
7525 * configure: Rebuilt.
7526 * configure.in: Check size of void*.
7528 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
7530 2000-03-26 Hans Boehm <boehm@acm.org>
7532 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
7533 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
7535 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
7536 __IEEE_LITTLE_ENDIAN appropriately on IA64.
7537 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
7538 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
7540 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
7541 (FFI_RAW_SIZE): Likewise.
7542 (_Jv_InterpMethod::ncode): Use them.
7543 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
7544 STORED): Define differently on a 64 bit machine.
7545 (continue1): Use ffi_java_raw_call when appropriate.
7547 2000-03-24 Warren Levy <warrenl@cygnus.com>
7549 * java/math/BigInteger.java(divide): Handle the special case when
7550 dividing by 1 and the high bit of the dividend is set.
7551 (setShiftRight): Handle case when count == 0.
7553 2000-03-24 Warren Levy <warrenl@cygnus.com>
7555 * java/awt/Font.java(isBold): Fix syntax error.
7557 * java/awt/Frame.java(postEvent): ditto.
7558 * java/awt/Menu.java(postEvent): ditto.
7559 * java/awt/MenuBar.java(postEvent): ditto.
7560 * java/awt/Toolkit.java(init): Included a stub.
7562 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7564 * java/awt/Event.java: Add all the event type constants.
7565 (Event): Implemented constructors.
7566 (controlDown): Implemented.
7567 (metaDown): Implemented.
7568 (paramString): Stubbed.
7569 (shiftDown): Implemented.
7570 (toString): Implemented.
7571 (translate): Implemented.
7573 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7575 * java/lang/natClass.cc (isInstance): Initialize `this'.
7576 (isAssignableFrom): Initialize `this' and `klass'.
7577 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
7578 implemented by any loaded class, so return false.
7579 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
7580 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
7582 2000-03-19 Warren Levy <warrenl@cygnus.com>
7584 * java/awt/Color.java: Specified java.io for Serializable.
7585 * java/awt/Toolkit.java: Imported java.net.URL.
7587 2000-03-19 Warren Levy <warrenl@cygnus.com>
7589 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
7591 2000-03-16 Warren Levy <warrenl@cygnus.com>
7593 * java/awt/Color.java: New file.
7594 * java/awt/Graphics.java: New file.
7595 * java/awt/Image.java: New file.
7596 * java/awt/Paint.java: New file.
7597 * java/awt/PaintContext.java: New file.
7598 * java/awt/Transparency.java: New file.
7599 * java/util/Collection.java: New file.
7600 * java/util/Comparator.java: New file.
7601 * java/util/Iterator.java: New file.
7602 * java/util/List.java: New file.
7603 * java/util/ListIterator.java: New file.
7604 * Makefile.am: Added above new files.
7605 * Makefile.in: Rebuilt.
7607 * java/awt/Font.java (PLAIN): New field.
7609 (ITALIC): New field.
7610 (ROMAN_BASELINE): New field.
7611 (CENTER_BASELINE): New field.
7612 (HANGING_BASELINE): New field.
7616 (pointSize): New field.
7617 (Font): Implemented constructor.
7618 (isPlain): Implemented method.
7619 (isBold): Implemented method.
7620 (isItalic): Implemented method.
7621 (getName): Implemented method.
7622 (getStyle): Implemented method.
7623 (getSize): Implemented method.
7624 (getSize2D): Implemented method.
7626 * java/awt/Frame.java (getFont): Stubbed.
7627 (postEvent): Stubbed.
7629 * java/awt/Menu.java (postEvent): Stubbed.
7630 * java/awt/MenuBar.java (getFont): Stubbed.
7631 (postEvent): Stubbed.
7632 * java/awt/Toolkit.java (getImage): Added abstract method.
7634 2000-03-15 Tom Tromey <tromey@cygnus.com>
7636 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
7638 * prims.cc (win32_exception_handler): Reformatted.
7640 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
7641 (_Jv_HaveMutexDestroy): Likewise.
7643 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
7645 * java/io/natFileDescriptorWin32.cc: New file.
7646 * java/io/natFileWin32.cc: New file.
7647 * java/net/natInetAddress.cc: Added conditional inclusion of
7648 Windows / Winsock headers.
7649 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
7650 inclusion of Windows / Winsock headers.
7651 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
7652 Windows / Winsock headers.
7653 * include/win32-signal.h: New file.
7654 * include/win32-threads.h: New file.
7655 * win32-threads.cc: New file.
7656 * exception.cc (win32_get_restart_frame): New function.
7657 * prims.cc (win32_exception_handler): New function.
7658 (main_init) Performs Winsock initialisation.
7659 (main_init) Installs exeception handler.
7661 2000-03-14 Tom Tromey <tromey@cygnus.com>
7663 * jni.cc (mangled_name): Fixed assertion.
7664 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
7665 turned assert into actual failure.
7667 2000-03-09 Warren Levy <warrenl@cygnus.com>
7669 * java/security/Key.java(serialVersionUID): Set to 0 for now.
7670 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
7671 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
7673 2000-03-09 Warren Levy <warrenl@cygnus.com>
7675 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
7676 * java/security/DigestException.java: New file.
7677 * java/security/GeneralSecurityException.java: New file.
7678 * java/security/InvalidAlgorithmParameterException.java: New file.
7679 * java/security/InvalidKeyException.java: New file.
7680 * java/security/InvalidParameterException.java: New file.
7681 * java/security/Key.java: New file.
7682 * java/security/KeyException.java: New file.
7683 * java/security/KeyPair.java: New file.
7684 * java/security/KeyPairGenerator.java: New file.
7685 * java/security/KeyPairGeneratorSpi.java: New file.
7686 * java/security/NoSuchProviderException.java: New file.
7687 * java/security/PrivateKey.java: New file.
7688 * java/security/Provider.java: New file.
7689 * java/security/PublicKey.java: New file.
7690 * java/security/SecureRandom.java: New file.
7691 * java/security/Security.java: New file.
7692 * java/security/Signature.java: New file.
7693 * java/security/SignatureException.java: New file.
7694 * java/security/interfaces/DSAKey.java: New file.
7695 * java/security/interfaces/DSAParams.java: New file.
7696 * java/security/interfaces/DSAPrivateKey.java: New file.
7697 * java/security/interfaces/DSAPublicKey.java: New file.
7698 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
7699 * java/security/interfaces/RSAPrivateKey.java: New file.
7700 * java/security/interfaces/RSAPublicKey.java: New file.
7701 * java/security/spec/AlgorithmParameterSpec.java: New file.
7702 * java/security/spec/InvalidKeySpecException.java: New file.
7703 * java/security/spec/InvalidParameterSpecException.java: New file.
7704 * java/security/spec/KeySpec.java: New file.
7705 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
7706 * java/security/spec/RSAPrivateKeySpec.java: New file.
7707 * java/security/spec/RSAPublicKeySpec.java: New file.
7708 * Makefile.am: Added above java.security files.
7709 * Makefile.in: Rebuilt.
7711 * java/security/MessageDigest.java: Rewritten.
7712 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
7714 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7718 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7720 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
7721 _Jv_PrepareConstantTimeTables.
7722 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
7723 classes should have an IDT, so don't return if klass is an array
7726 2000-03-08 Tom Tromey <tromey@cygnus.com>
7728 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
7729 of `void' to be created.
7731 2000-03-08 Warren Levy <warrenl@cygnus.com>
7733 * java/math/BigInteger.java(signum): Handle zero properly.
7735 2000-03-07 Tom Tromey <tromey@cygnus.com>
7737 * All files: Updated copyright information.
7738 * COPYING: New file.
7739 * COPYING.LIB: Removed.
7740 * LIBGCJ_LICENSE: We now use GPL + special exception.
7742 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7744 * resolve.cc (_Jv_SearchMethodInClass): New function.
7745 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
7746 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
7748 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7750 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
7751 (struct _Jv_ifaces): New declaration.
7752 JV_CLASS: New macro definition.
7753 (getComponentType): Relocate below isArray() for inlining.
7754 (getModifiers): Declare `inline'.
7755 (getSuperclass): Ditto.
7757 (isPrimitive): Ditto.
7758 (_Jv_IsAssignableFrom): New prototype.
7759 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
7761 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
7762 Check for JV_STATE_DONE before invoking initializeClass().
7763 (_Jv_PrepareConstantTimeTables): New prototype.
7764 (_Jv_GetInterfaces): Ditto.
7765 (_Jv_GenerateITable): Ditto.
7766 (_Jv_GetMethodString): Ditto.
7767 (_Jv_AppendPartialITable): Ditto.
7768 (_Jv_FindIIndex): Ditto.
7769 depth, ancestors, idt: New class fields.
7771 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
7772 inline function `_Jv_IsAssignableFrom'. Use that function.
7773 (isInstance): Declare `inline'.
7774 (initializeClass): Get lock on class before checking `state'. Unlock
7775 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
7777 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
7778 (_Jv_IsAssignableFrom): New inline function. Test assignability using
7779 class->depth and ancestor table.
7780 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7781 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7782 _Jv_IsAssignableFrom.
7783 (_Jv_CheckArrayStore): Ditto.
7784 (_Jv_LookupInterfaceMethodIdx): New function.
7785 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7786 (_Jv_PrepareConstantTimeTables): New function.
7787 (_Jv_IndexOf): Ditto.
7788 (_Jv_GetInterfaces): Ditto.
7789 (_Jv_GenerateITable): Ditto.
7790 (_Jv_GetMethodString): Ditto.
7791 (_Jv_AppendPartialITable): Ditto.
7792 iindex_mutex, iindex_mutex_initialized: New static fields.
7793 (_Jv_FindIIndex): New function.
7795 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7797 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7798 (_Jv_CheckArrayStore): Ditto.
7799 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7800 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7801 Moved to gcj/array.h.
7802 (_Jv_Realloc): New function.
7804 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7806 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7807 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7808 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7809 JvNewDoubleArray): Implementations moved from prims.cc and
7812 * gcj/javaprims.h (_Jv_Realloc): Prototype.
7814 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7816 2000-03-06 Tom Tromey <tromey@cygnus.com>
7818 * jni.cc (MARK_NONE): New define.
7819 (MARK_USER): Likewise.
7820 (MARK_SYSTEM): Likewise.
7821 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7823 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7824 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7825 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7826 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7828 (call): Use MARK_SYSTEM.
7829 (_Jv_GetJNIEnvNewFrame): New function.
7830 (_Jv_LookupJNIMethod): New function.
7831 (_Jv_JNI_PopSystemFrame): New function.
7832 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7834 2000-03-05 Tom Tromey <tromey@cygnus.com>
7836 Fix for PR libgcj/43:
7837 * include/Makefile.in: Rebuilt.
7838 * include/Makefile.am (include_HEADERS): New define.
7840 2000-03-05 Anthony Green <green@redhat.com>
7842 * gcj/javaprims.h ("Java"): Remove FirstThread.
7844 * configure.host: Fix __NO_MATH_INLNES botch.
7846 * Makefile.in: Rebuilt.
7847 * Makefile.am (nat_source_files): Move natFirstThread.cc.
7848 (gnu/gcj/runtime/FirstThread.h): Moved.
7849 (ordinary_java_source_files): Move FirstThread.java.
7850 * prims.cc: Deal with FirstThread movement.
7852 (_Jv_RunMain): Ditto.
7854 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7855 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7857 2000-03-05 Warren Levy <warrenl@cygnus.com>
7859 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7860 Handle null addresses.
7862 2000-03-04 Anthony Green <green@redhat.com>
7864 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7867 2000-03-04 Anthony Green <green@redhat.com>
7869 * configure: Rebuilt.
7870 * configure.in (ZLIBTESTSPEC): New macro.
7871 (GCTESTSPEC): New macro.
7872 (LIBGCJTESTSPEC): New macro.
7873 * libgcj-test.spec.in: New file.
7875 2000-03-02 Tom Tromey <tromey@cygnus.com>
7877 * include/java-interp.h: Don't include MethodInvocation.h.
7878 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7879 * Makefile.in: Rebuilt.
7880 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7881 (ordinary_java_source_files): Don't mention
7882 MethodInvocation.java.
7883 * gnu/gcj/runtime/MethodInvocation.java: Removed.
7884 * interpret.cc (MethodInvocation::continue1): Removed.
7885 (run): Handle exceptions here.
7886 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7888 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7890 (defineClass2): Removed.
7892 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7894 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7896 (hack_call): Removed.
7898 * java/lang/Class.h (Class): Removed hackRunInitializers,
7900 * java/lang/natClass.cc (hackRunInitializers): Removed.
7901 (initializeClass): Catch exceptions here.
7902 Include ExceptionInInitializerError.h.
7903 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7906 * java/lang/Object.h (Object): Don't mention hack12_6.
7907 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7909 * java/lang/Object.java (hack12_6): Removed.
7911 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7912 (start): Use run_, not run__.
7913 * java/lang/Thread.java (run_): Renamed from run__; old run_
7916 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7917 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7918 (_Jv_JNI_DefineClass): Likewise.
7919 (_Jv_JNI_ThrowNew): Likewise.
7920 (_Jv_JNI_AllocObject): Likewise.
7921 (_Jv_JNI_GetAnyMethodID): Likewise.
7922 (_Jv_JNI_CallAnyMethodV): Likewise.
7923 (_Jv_JNI_CallAnyMethodA): Likewise.
7924 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7925 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7926 (_Jv_JNI_GetAnyFieldID): Likewise.
7927 (_Jv_JNI_NewString): Likewise.
7928 (_Jv_JNI_NewStringUTF): Likewise.
7929 (_Jv_JNI_GetStringUTFChars): Likewise.
7930 (_Jv_JNI_NewObjectArray): Likewise.
7931 (_Jv_JNI_NewPrimitiveArray): Likewise.
7932 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7933 (_Jv_JNI_GetStringRegion): Likewise.
7934 (_Jv_JNI_GetStringUTFRegion): Likewise.
7935 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7936 (_Jv_JNI_MonitorEnter): Likewise.
7937 (_Jv_JNI_MonitorExit): Likewise.
7938 (_Jv_JNI_ToReflectedField): Likewise.
7939 (_Jv_JNI_ToReflectedMethod): Likewise.
7940 (_Jv_JNI_RegisterNatives): Likewise.
7941 (_Jv_JNI_AttachCurrentThread): Likewise.
7942 (_Jv_JNI_DestroyJavaVM): Likewise.
7944 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7946 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7947 error caused by the incorrect casting of a long to an int.
7949 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7951 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7952 SIGSEV caused by use of the wrong instance variable.
7954 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7956 * java/io/File.java (File(String, String)): For dirPath, treat an
7957 empty String the same as `null'.
7959 2000-02-26 Anthony Green <green@cygnus.com>
7961 * gnu/gcj/io/MimeTypes.java: Test for null.
7963 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7964 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7966 * java/net/URLConnection.java: Update copyright notice.
7968 2000-02-25 Tom Tromey <tromey@cygnus.com>
7970 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7973 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7975 * java/net/URLConnection.java (initializeDateFormats): New
7977 (getHeaderFieldDate): Call initializeDateFormats if required.
7978 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7980 Fix for PR libgcj/38.
7982 2000-02-24 Warren Levy <warrenl@cygnus.com>
7984 * java/math/BigInteger.java(ival): Made private.
7988 2000-02-20 Anthony Green <green@cygnus.com>
7990 * Makefile.in: Rebuilt.
7991 * Makefile.am (ordinary_java_source_files): Add
7992 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7994 * scripts/MakeDefaultMimeTypes.java: New file.
7995 * scripts/mime.types: New file.
7996 * scripts/classes.pl: Moved from top level.
7997 * classes.pl: Moved to scripts directory.
7999 * java/net/URLConnection.java: Implement guessContentTypeFromName.
8001 * gnu/gcj/io/MimeTypes.java: New file.
8002 * gnu/gcj/io/DefaultMimeTypes.java: New file.
8004 2000-02-20 Tom Tromey <tromey@cygnus.com>
8006 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
8008 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
8010 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
8013 2000-02-18 Tom Tromey <tromey@cygnus.com>
8015 * include/jvm.h (_Jv_GetJavaVM): Declare.
8016 * include/java-interp.h (_Jv_GetFirstMethod): New function.
8017 (_Jv_MethodBase::get_method): New method.
8018 (_Jv_JNIMethod::set_function): New method.
8019 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
8020 (_Jv_JNI_RegisterNatives): New function.
8021 (_Jv_JNIFunctions): Updated for new functions.
8022 (_Jv_GetJavaVM): New function.
8023 (_Jv_JNI_GetJavaVM): Use it. Now static.
8024 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
8025 is already a Java thread but does not have a JNIEnv yet.
8027 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
8030 2000-02-17 Tom Tromey <tromey@cygnus.com>
8032 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
8035 2000-02-16 Tom Tromey <tromey@cygnus.com>
8037 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
8039 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
8040 (_Jv_JNI_NewObject): Likewise.
8041 (_Jv_JNI_NewObjectA): Likewise.
8042 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
8043 as "return" type to _Jv_CallAnyMethodA.
8044 (_Jv_JNI_CallAnyMethodA): Likewise.
8045 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
8047 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
8050 2000-02-15 Tom Tromey <tromey@cygnus.com>
8052 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
8054 (init_cif): Added `rtype_p' argument.
8055 * include/java-interp.h (class _Jv_MethodBase): Added
8057 (class _Jv_InterpMethod): Removed args_raw_size.
8058 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
8059 * jni.cc (call): Pass JNIEnv and (for static methods only) the
8060 class pointer as well as the ordinary arguments.
8062 * jni.cc (mangled_name): Skip leading `(' in signature.
8064 * jni.cc (add_char): Added missing `else'.
8066 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
8069 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
8073 * java/lang/natRuntime.cc (_load): Include library path with
8076 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
8079 * java/lang/natThread.cc (dumpStack): Removed.
8080 * java/lang/Thread.java (dumpStack): Implemented.
8082 2000-02-15 Tom Tromey <tromey@cygnus.com>
8084 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
8085 with `lib' for loadLibrary. Fixes PR gcj/150.
8087 2000-02-14 Warren Levy <warrenl@cygnus.com>
8089 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
8091 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
8095 (modPow): Rewritten to not use the naive, slow, brute force approach.
8096 (isProbablePrime): Implemented.
8097 (testBit): Implemented.
8098 (flipBit): Implemented.
8099 (getLowestSetBit): Implemented.
8101 2000-02-16 Anthony Green <green@redhat.com>
8103 * configure.host: Use the same options for i386 and i486 as we do
8106 2000-02-12 Tom Tromey <tromey@cygnus.com>
8108 * java/io/File.java (createTempFile): Use low bits from counter,
8111 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
8113 * THANKS: More thanks.
8115 2000-02-11 Tom Tromey <tromey@cygnus.com>
8117 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
8118 astore instruction. From Hans Boehm.
8120 2000-02-11 Warren Levy <warrenl@cygnus.com>
8122 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
8123 (BigInteger(String)): New constructor.
8124 (not): Rewritten using version from Kawa's BitOps class.
8125 (valueOf): New private methods from Kawa's BitOps class.
8132 (andNot): Implemented.
8133 (clearBit): Implemented.
8134 (setBit): Implemented.
8135 (bitCount): Implemented.
8136 (toByteArray): Implemented.
8138 2000-02-11 Tom Tromey <tromey@cygnus.com>
8140 * java/io/File.java (nextValue): Now synchronized.
8142 2000-02-10 Tom Tromey <tromey@cygnus.com>
8144 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
8145 * java/io/FileDescriptor.java (EXCL): New static field.
8146 * java/io/File.java (tmpdir): New static field.
8147 (createTempFile): New method.
8148 (nextValue): New method.
8149 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
8152 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
8153 (jboolean): Declare as an attributed int, not a bool.
8154 (_Jv_func): Declare differently for C.
8156 * gnu/gcj/jni/natNativeThread.cc: New file.
8157 * gnu/gcj/jni/NativeThread.java: New file.
8158 * java/lang/Thread.java (data): Now a RawData.
8159 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
8161 * Makefile.in: Rebuilt.
8162 * Makefile.am (java/lang/Thread.h): New target.
8163 (ordinary_java_source_files): Added NativeThread.java.
8164 (nat_source_files): Added natNativeThread.cc.
8165 * java/lang/natThread.cc: Include <jni.h>
8166 (struct natThread): Added `jni_env' field.
8167 (_Jv_GetCurrentJNIEnv): New function.
8168 (_Jv_SetCurrentJNIEnv): Likewise.
8169 (initialize_native): Initialize jni_env.
8171 * jni.cc (ThreadGroupClass): New define.
8172 (_Jv_JNI_InvokeFunctions): New structure.
8173 (JNI_GetCreatedJavaVMs): New function.
8174 (the_vm): New global.
8175 (JNI_GetDefaultJavaVMInitArgs): New function.
8176 Include NativeThread.h.
8177 (NativeThreadClass): New define.
8178 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
8179 (_Jv_JNI_DestroyJavaVM): New function.
8180 (_Jv_JNI_AttachCurrentThread): New function.
8181 (_Jv_JNI_DetachCurrentThread): New function.
8182 (_Jv_JNI_GetEnv): New function.
8183 (JNI_CreateJavaVM): New function.
8184 (_Jv_JNI_GetJavaVM): New function.
8185 (_Jv_JNIFunctions): Added entry for GetJavaVM.
8186 * include/jni.h (JavaVMAttachArgs): New structure.
8187 (JNI_EDETACHED): New define.
8188 (JNI_EVERSION): Likewise.
8189 (JavaVM): Define properly.
8190 (struct JNIInvokeInterface): New structure.
8191 (class _Jv_JavaVM): New class.
8192 (JNI_OnLoad, JNI_OnUnload): Declare.
8193 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
8194 JNI_GetCreatedJavaVMs): Declare.
8195 (JavaVMInitArgs): New typedef.
8196 (JavaVMOption): Likewise.
8197 (JNI_ERR): New define.
8200 2000-02-10 Andrew Haley <aph@cygnus.com>
8202 * interpret.cc: Don't include fdlibm.h.
8203 Replace #if with #ifdef throughout.
8204 Declare extern __ieee754_fmod.
8205 (continue1): Remove op_getfield, op_getstatic, op_putfield,
8207 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
8208 Search class hierarchy for superclass vtable.
8210 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
8211 off the end of a pointer list.
8213 * java/lang/natThread.cc (stop): Don't abort, throw an exception
8217 2000-02-09 Tom Tromey <tromey@cygnus.com>
8219 * java/lang/natRuntime.cc (_load): Call add_library.
8220 (loadLibraryInternal): Likewise.
8222 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
8223 iconv_close when handle is not NULL. Thanks to Andrew Haley.
8224 (Output_iconv::finalize): Likewise.
8226 2000-02-08 Tom Tromey <tromey@cygnus.com>
8228 * java/util/Properties.java (setProperty): New method.
8229 (store): New method.
8231 2000-02-07 Tom Tromey <tromey@cygnus.com>
8233 * java/lang/Runtime.java (_load): Declare.
8234 (load, loadLibrary): Wrote in terms of _load.
8235 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
8237 (loadLibrary): Likewise.
8239 (_load): New method.
8240 (loadLibrary, load): Removed.
8242 * jni.cc (ThrowableClass): New define.
8243 (_Jv_JNI_Throw): Check argument.
8244 (_Jv_JNI_ThrowNew): Likewise.
8245 (wrap_value): Don't wrap object if it is NULL.
8246 (_Jv_JNI_DefineClass): Use wrap_value.
8247 (_Jv_JNI_FindClass): Likewise.
8248 (_Jv_JNI_GetSuperclass): Likewise.
8249 (_Jv_JNI_ExceptionOccurred): Likewise.
8250 (_Jv_JNI_AllocObject): Likewise.
8251 (_Jv_JNI_GetObjectClass): Likewise.
8252 (_Jv_JNI_NewString): Likewise.
8253 (_Jv_JNI_NewStringUTF): Likewise.
8254 (_Jv_JNI_NewObjectArray): Likewise.
8255 (_Jv_JNI_GetObjectArrayElement): Likewise.
8256 (_Jv_JNI_NewPrimitiveArray): Likewise.
8257 (_Jv_JNI_ToReflectedField): Likewise.
8258 (_Jv_JNI_ToReflectedMethod): Likewise.
8259 (_Jv_JNI_AllocObject): Check argument.
8260 (_Jv_JNI_NewObjectV): Likewise.
8261 (_Jv_JNI_NewObject): Likewise.
8262 (_Jv_JNI_NewObjectA): Likewise.
8263 (_Jv_JNI_GetObjectClass): Likewise.
8264 (_Jv_JNI_GetField): Likewise.
8265 (_Jv_JNI_SetField): Likewise.
8267 * interpret.cc (PUSHL): Don't use expression statement.
8272 * jni.cc (add_char): Conditional on INTERPRETER.
8273 (mangled_name): Likewise.
8275 * include/java-interp.h (class _Jv_MethodBase): Conditional on
8277 (class _Jv_JNIMethod): Likewise.
8279 2000-02-04 Warren Levy <warrenl@cygnus.com>
8281 * Makefile.am: Added MPN.java and BigInteger.java.
8282 * Makefile.in: Rebuilt.
8283 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
8285 * java/math/BigInteger.java: New file. Based primarily on
8286 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
8288 2000-02-04 Tom Tromey <tromey@cygnus.com>
8290 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
8292 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
8293 if the method is native.
8294 * resolve.cc (ncode): Don't handle native methods.
8295 (_Jv_JNIMethod::ncode): New method.
8296 (_Jv_PrepareClass): Handle native methods.
8297 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
8298 Include AbstractMethodError.h.
8299 (add_char): New function.
8300 (mangled_name): Likewise.
8301 * include/java-interp.h (class _Jv_JNIMethod): New class.
8302 (class _Jv_MethodBase): New class.
8303 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
8304 (_Jv_InterpClass): Changed `interpreted_methods' field to type
8307 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
8308 * java/lang/natRuntime.cc (libraries_size, libraries_count,
8309 libraries): New globals.
8310 (add_library): New function.
8311 (_Jv_FindSymbolInExecutable): New function.
8313 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
8316 2000-02-04 Andrew Haley <aph@cygnus.com>
8318 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
8319 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
8320 * java/lang/natThrowable.cc (printRawStackTrace): Rename
8321 printStackTrace to printRawStackTrace.
8323 2000-02-03 Tom Tromey <tromey@cygnus.com>
8325 * java/util/Calendar.java (toString): New method.
8326 * java/util/SimpleTimeZone.java (clone): New method.
8327 (toString): New method.
8328 * java/util/TimeZone.java (clone): New method.
8329 * java/text/SimpleDateFormat.java (clone): New method.
8330 * java/text/NumberFormat.java (clone): New method.
8331 (equals): New method.
8332 * java/text/Format.java (clone): New method.
8333 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
8335 (clone): New method.
8336 * java/text/DateFormat.java (clone): New method.
8337 * java/text/Collator.java (clone): New method.
8339 2000-02-03 Tom Tromey <tromey@cygnus.com>
8341 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
8344 2000-02-01 Tom Tromey <tromey@cygnus.com>
8346 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
8347 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
8348 constructing the closure if the function is native.
8349 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
8350 a template function, #if'd out, or static.
8351 Include <java-interp.h>.
8353 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
8355 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
8357 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
8358 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
8360 (wrap_value): New function.
8361 (_Jv_JNI_CallAnyMethodV): Use it.
8362 (_Jv_JNI_CallAnyMethodA): Likewise.
8363 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
8364 (_Jv_JNI_GetStaticField): Likewise.
8366 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
8367 (_Jv_JNI_GetStaticField): Likewise.
8369 2000-01-31 Tom Tromey <tromey@cygnus.com>
8371 * prims.cc (_Jv_MallocUnchecked): New function.
8372 (main_init): Call _Jv_JNI_Init.
8373 * include/jvm.h (_Jv_MallocUnchecked): Declare.
8374 (_Jv_JNI_Init): Declare.
8375 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
8377 (_Jv_JNI_NewGlobalRef): New function.
8378 (_Jv_JNI_DeleteGlobalRef): New function.
8379 (_Jv_JNI_DeleteLocalRef): New function.
8380 (_Jv_JNI_conversion_call): Initialize and clear local reference
8382 (_Jv_JNI_NewLocalRef): New function.
8383 (struct _Jv_JNI_LocalFrame): New structure.
8384 (_Jv_JNI_PushLocalFrame): New function.
8385 (_Jv_JNI_EnsureLocalCapacity): New function.
8386 (FRAME_SIZE): New define.
8387 (_Jv_JNI_GetStringChars): Mark string, not characters.
8388 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
8389 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
8390 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
8392 (_Jv_JNI_DefineClass): Make return value a local ref.
8393 (_Jv_JNI_FindClass): Likewise.
8394 (_Jv_JNI_GetSuperclass): Likewise.
8395 (_Jv_JNI_ExceptionOccurred): Likewise.
8396 (_Jv_JNI_AllocObject): Likewise.
8397 (_Jv_JNI_GetObjectClass): Likewise.
8398 (_Jv_JNI_CallAnyMethodV): Likewise.
8399 (_Jv_JNI_NewString): Likewise.
8400 (_Jv_JNI_NewStringUTF): Likewise.
8401 (_Jv_JNI_NewObjectArray): Likewise.
8402 (_Jv_JNI_GetObjectArrayElement): Likewise.
8403 (_Jv_JNI_ToReflectedField): Likewise.
8404 (_Jv_JNI_ToReflectedMethod): Likewise.
8405 (_Jv_JNIFunctions): Updated table for new functions.
8406 (_Jv_JNI_Init): New function.
8407 (mark_for_gc): Wrote.
8408 (unmark_for_gc): Wrote.
8409 * include/jni.h (struct JNINativeInterface): Removed name from
8410 PopLocalFrame parameter.
8411 (class _Jv_JNIEnv): Added `locals' field.
8413 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
8415 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
8418 2000-01-30 Tom Tromey <tromey@cygnus.com>
8420 * include/config.h.in: Rebuilt.
8421 * acconfig.h (HAVE_ICONV): Define.
8422 * configure: Rebuilt.
8423 * configure.in: Check for `iconv' function.
8424 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
8425 no specific encoder exists.
8426 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
8427 no specific encoder exists.
8428 * Makefile.in: Rebuilt.
8429 * Makefile.am (convert_source_files): Mention Input_iconv.java and
8431 (nat_source_files): Added natIconv.cc.
8432 * gnu/gcj/convert/natIconv.cc: New file.
8433 * gnu/gcj/convert/Input_iconv.java: New file.
8434 * gnu/gcj/convert/Output_iconv.java: New file.
8436 2000-01-28 Tom Tromey <tromey@cygnus.com>
8438 * Makefile.in: Rebuilt.
8439 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
8441 2000-01-26 Tom Tromey <tromey@cygnus.com>
8443 * gcj/method.h (JvNumMethods): Moved from Class.h.
8444 (JvGetFirstMethod): Likewise.
8445 * java/lang/Class.h (Object): Updated decl of
8446 _Jv_JNI_ToReflectedField.
8447 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
8448 * Makefile.in: Rebuilt.
8449 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
8450 argument of _Jv_JNI_ToReflectedField.
8451 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
8453 (java/lang/reflect/Method.h): Likewise.
8454 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
8456 (jweak): New typedef.
8457 (struct JNINativeInterface): Correctly declare remaining entries.
8458 * jni.cc: Include Class.h, ClassLoader.h.
8459 (_Jv_JNI_FindClass): New function.
8460 (_Jv_JNI_DefineClass): New function.
8461 (_Jv_JNI_conversion_call): New function.
8462 (_Jv_JNI_FindClass): Use current class loader to find class.
8463 (_Jv_JNI_ExceptionCheck): New function.
8464 (_Jv_JNI_FromReflectedField): Now static.
8465 (MethodClass): New define.
8466 (_Jv_JNI_FromReflectedMethod): New function.
8467 (_Jv_JNI_ToReflectedMethod): Likewise.
8469 (_Jv_JNI_IsAssignableFrom): Renamed.
8470 (_Jv_JNI_GetStringRegion): New function.
8471 Include StringIndexOutOfBoundsException.h.
8472 (_Jv_JNI_GetStringUTFRegion): New function.
8473 (_Jv_JNIFunctions): Updated for new functions.
8474 (_Jv_JNI_GetPrimitiveArrayCritical): New function
8475 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
8476 (_Jv_JNI_GetStringCritical): New function.
8477 (_Jv_JNI_ReleaseStringCritical): Likewise.
8478 (get_throwable): Removed.
8479 (GCJ_JV_JNIENV_FRIEND): Removed.
8480 (__GCJ_JNI_IMPL__): Define.
8483 * resolve.cc (get_ffi_type_from_signature): Handle case where
8486 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
8488 * interpret.cc (run): Don't call println.
8489 Don't include PrintStream.h.
8491 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
8492 nameIndex. Use "jint" as type for boffset.
8493 * java/lang/Class.h (struct _Jv_Method): Made accflags a
8495 (Class): Likewise. Also changed type of method_count,
8496 vtable_method_count, size_in_bytes, field_count,
8497 static_field_count, interface_count.
8498 * gcj/array.h (__JArray): Made `length' a const jsize, not an
8501 2000-01-21 Tom Tromey <tromey@cygnus.com>
8503 * java/lang/reflect/natConstructor.cc (newInstance): Use
8505 * include/jvm.h: Declare _Jv_CallAnyMethodA.
8506 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
8507 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
8510 (invoke): Use _Jv_CallAnyMethodA.
8512 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
8513 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
8515 (struct _Jv_Method): Added getNextMethod method.
8516 (JvNumMethods): New function.
8517 (JvGetFirstMethod): Likewise.
8518 * gcj/field.h (JvGetFirstStaticField): New function.
8519 (JvNumStaticFields): Likewise.
8520 (getNextField): Renamed from getNextInstanceField.
8521 (struct _Jv_Field): New method getClass.
8522 * jni.cc: Wrote many new functions.
8523 * include/jni.h (JNI_TRUE): Define.
8524 (JNI_FALSE): Likewise.
8525 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
8526 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
8527 jcharArray, jfloatArray, jdoubleArray): New typedefs.
8528 (jfieldID, jmethodID): Likewise.
8529 (JNI_COMMIT, JNI_ABORT): New defines.
8530 (JNINativeMethod): New struct.
8531 (struct JNINativeInterface): Correctly declared more entries.
8532 (class _Jv_JNIEnv): Added `ex' member.
8533 (JNI_VERSION_1_1): New define.
8534 (JNI_VERSION_1_2): Likewise.
8536 * boehm.cc (_Jv_MarkObj): Use getNextField, not
8537 getNextInstanceField.
8539 2000-01-20 Tom Tromey <tromey@cygnus.com>
8541 * resolve.cc (StringClass): Removed.
8542 * defineclass.cc (StringClass): Removed.
8544 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
8548 2000-01-19 Tom Tromey <tromey@cygnus.com>
8550 * interpret.cc (PC_REGISTER_ASM): Removed.
8552 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
8553 From Bryce McKinlay.
8555 * All files: Updated copyright to reflect Cygnus purchase.
8557 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
8559 * configure: Rebuilt.
8560 * configure.in: Recognize --disable-interpreter.
8562 2000-01-18 Andrew Haley <aph@cygnus.com>
8564 * name-finder.cc (lookup): Check for dladdr function.
8565 acconfig.h (HAVE_DLADDR): Add.
8566 configure.in: Check for HAVE_DLADDR
8568 include/config.h.in: Rebuilt.
8570 2000-01-17 Andrew Haley <aph@cygnus.com>
8572 * prims.cc (_Jv_RunMain): Set the name of this executable.
8574 2000-01-17 Tom Tromey <tromey@cygnus.com>
8576 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
8577 when backtrace can't be computed.
8579 * configure: Rebuilt.
8580 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
8582 * java/lang/Runtime.java (loadLibraryInternal): Declare.
8583 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
8584 (_Jv_FindClassInCache): Likewise.
8585 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
8586 (findSystemClass): Try to load class from compiled module.
8588 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
8589 (loadLibrary): Likewise.
8590 (lt_preloaded_symbols): Define.
8591 (loadLibraryInternal): New method.
8592 * include/config.h.in: Rebuilt.
8593 * acconfig.h (USE_LTDL): Added.
8594 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
8595 (INCLUDES): Added $(INCLTDL).
8596 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
8597 (libgcj_la_LIBADD): Likewise.
8598 * aclocal.m4, configure: Rebuilt.
8599 * configure.in: Added libltdl support.
8601 2000-01-15 Tom Tromey <tromey@cygnus.com>
8603 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
8605 2000-01-14 Andrew Haley <aph@cygnus.com>
8607 * java/lang/natThrowable.cc: New file.
8609 * java/lang/Throwable.java (fillInStackTrace): Make native.
8610 (printStackTrace): Call native method to do this.
8611 (Throwable): Call fillInStackTrace.
8612 (stackTrace): New variable.
8614 * include/jvm.h: Add _Jv_ThisExecutable functions.
8616 * prims.cc: (_Jv_execName): New variable.
8617 (catch_segv): Call fillInStackTrace.
8619 (_Jv_ThisExecutable): New functions.
8620 (JvRunMain): Set the name of this executable.
8622 * Makefile.am: Add java/lang/natThrowable.cc.
8624 * Makefile.in: Rebuilt.
8626 * acconfig.h: Add HAVE_PROC_SELF_EXE.
8628 * configure.in: Force link with __frame_state_for in
8629 FORCELIBGCCSPEC. Add new checks for backtrace.
8630 * include/config.h.in: Rebuilt.
8632 * name-finder.cc: New file.
8633 * include/name-finder.h: New file.
8635 2000-01-16 Anthony Green <green@cygnus.com>
8637 * java/lang/StringBuffer.java (StringBuffer): Don't special case
8640 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
8642 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
8644 2000-01-13 Tom Tromey <tromey@cygnus.com>
8646 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
8647 not system loader, as initiating loader.
8649 2000-01-11 Tom Tromey <tromey@cygnus.com>
8651 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
8652 HP/UX. From David Scott Urban.
8654 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
8656 * java/lang/natMath.cc (pow): Cast args to `double', not
8659 (IEEEremainder): Likewise.
8660 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
8661 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
8663 2000-01-09 Anthony Green <green@cygnus.com>
8665 * java/lang/natString.cc (init): Test for overflow condition
8666 during out of bounds check.
8667 (getChars): Throw StringIndexOutOfBoundsException, not
8668 ArrayIndexOutOfBoundsException.
8670 (regionMatches): Obey case option during string comparison.
8672 * configure.host (ligcj_interpreter): New variable. Enable
8673 interpreter by default on IA-32.
8674 * configure.in: Examine libgcj_interpreter.
8675 * configure: Rebuilt.
8677 2000-01-07 Tom Tromey <tromey@cygnus.com>
8679 * mauve-libgcj: Don't disable ClassTest.
8681 * java/lang/natClass.cc (getClasses): Wrote.
8683 2000-01-06 Tom Tromey <tromey@cygnus.com>
8685 * java/lang/natClass.cc (_getConstructors): Correctly check
8686 whether method name is the init name.
8687 (getMethod): Look at accflags on method in `klass', not `this'.
8689 2000-01-05 Tom Tromey <tromey@cygnus.com>
8691 * java/lang/natClass.cc (getMethod): Compute offset relative to
8692 `klass's methods table, not `this's table.
8694 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
8695 In unwrapping/widening case, check whether `k' is null, not
8696 whether it is primitive. Initialize `num' from `argelts', not
8697 `paramelts'. Correct create and pass arguments to ffi_call.
8698 Don't let presence of `this' argument affect index used to look in
8700 (COPY): Set appropriate element in `values' vector.
8702 * java/lang/natClass.cc: Include <gcj/method.h>.
8704 * java/lang/Class.h (_getMethods): Correctly declare as private,
8707 * java/lang/Class.h (_getMethods): Declare.
8708 * java/lang/Class.java (_getMethods): Declare.
8709 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
8710 (getDeclaredClasses): Always return empty array.
8711 (_getMethods): New method.
8712 (getMethods): Wrote.
8713 (getDeclaredMethod): Return `rmethod'.
8714 (finit_name): New global.
8715 (getDeclaredMethods): Check for finit_name.
8716 (_getMethods): Likewise.
8717 (getMethod): Only return public methods.
8719 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
8720 jboolean and select correct ffi type on that basis.
8721 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
8722 Constructor call always has `void' return type.
8724 2000-01-04 Tom Tromey <tromey@cygnus.com>
8726 * java/lang/Class.h (getSignature): Updated.
8727 * java/lang/Class.java (getSignature): Updated.
8728 * java/lang/natClass.cc (getSignature): Added `is_constructor'
8730 (getConstructor): Ensure constructor is public.
8731 (_getConstructors): Check for public-ness of constructor when
8732 `declared' is false, not when it is true.
8734 2000-01-04 Warren Levy <warrenl@cygnus.com>
8736 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
8738 (receive): Set the sender's address in the DatagramPacket.
8740 2000-01-04 Tom Tromey <tromey@cygnus.com>
8742 * java/lang/reflect/natConstructor.cc (newInstance): Pass
8743 declaring class as return_type argument to
8744 _Jv_CallNonvirtualMethodA.
8745 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
8746 constructor case, create object and use it as `this' argument.
8747 * java/lang/Class.h (_getConstructors): Declare.
8748 (_getFields): Declare.
8749 * java/lang/Class.java (getConstructors): Wrote.
8750 (_getConstructors): New native method.
8751 (getDeclaredConstructors): Wrote.
8752 (_getFields): Declare new native method.
8753 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
8755 (getMethod): Work correctly when class is primitive.
8756 (getDeclaredMethods): Likewise. Compute offset using `method',
8758 (getDeclaredMethod): Likewise.
8759 (getConstructor): Wrote.
8760 (ConstructorClass): New define.
8761 (getDeclaredConstructor): Wrote.
8762 (_getConstructors): New method.
8763 (_getFields): New method.
8766 * Makefile.in: Rebuilt.
8767 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
8769 * prims.cc: Remove `#pragma implementation'.
8770 * gcj/array.h: Remove `#pragma interface'.
8772 * prims.cc (_Jv_equaln): New function.
8773 * java/lang/Class.java (getSignature): Declare.
8774 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
8775 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
8777 (getSignature): New method.
8778 (getDeclaredMethod): Wrote.
8780 Include StringBuffer.h.
8781 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8782 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
8784 (getSignature): Declare.
8785 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8786 (_Jv_equaln): Declare.
8787 (_Jv_CallNonvirtualMethodA): Declare.
8788 * Makefile.in: Rebuilt.
8789 * Makefile.am (nat_source_files): Added natConstructor.cc.
8790 (java/lang/reflect/Constructor.h): New target.
8791 * java/lang/reflect/natConstructor.cc: New file.
8792 * java/lang/reflect/Constructor.java (newInstance): Now native.
8793 (declaringClass): Renamed from decl_class.
8794 (offset): Renamed from index.
8795 (getType): New native method.
8796 (getModifiers): Now native.
8797 (getParameterTypes): Call getType if required.
8798 (hashCode): Include hash code from declaring class.
8799 (modifiers): Removed.
8800 (toString): Call getType if required.
8801 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8802 * java/lang/reflect/natMethod.cc (hack_call): New method.
8803 Removed `#if 0' around FFI code.
8804 Include <gnu/gcj/RawData.h>.
8805 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
8806 IllegalArgumentException when argument object and class disagree.
8807 (_Jv_GetTypesFromSignature): New function.
8809 (ObjectClass): New define.
8810 (_Jv_CallNonvirtualMethodA): New function.
8811 * java/lang/reflect/Method.java (hack_trampoline): New method.
8812 (hack_call): New native method.