1 2001-11-22 Tom Tromey <tromey@redhat.com>
3 * verify.cc (_Jv_BytecodeVerifier::branch_prepass): Use
4 java_opcode as type for switch.
6 (_Jv_BytecodeVerifier::verify_instructions_0): Likewise.
7 [op_invokevirtual]: Likewise.
8 * include/java-insns.h (java_opcode): Give enum a name.
10 2001-11-25 Tom Tromey <tromey@redhat.com>
12 Fix for PR libgcj/4583:
13 * java/math/BigDecimal.java (BigDecimal(double)): Rewrote.
14 (BigDecimal(String)): Likewise.
16 2001-11-19 Tom Tromey <tromey@redhat.com>
18 * verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_iinc]:
19 Uses two operand bytes, not one.
20 [op_arraylength]: Has no operands in bytecode.
21 (_Jv_BytecodeVerifier::push_jump): Fixed call to
22 check_no_uninitialized_objects.
23 (_Jv_BytecodeVerifier::push_exception_jump): Likewise.
24 (_Jv_BytecodeVerifier::handle_ret_insn): Likewise.
25 (_Jv_BytecodeVerifier::handle_jsr_insn): Likewise.
27 * verify.cc (_Jv_BytecodeVerifier::require_array_type): Special
28 case for boolean arrays.
30 * verify.cc (_Jv_BytecodeVerifier::compute_jump): Put PC into
33 * verify.cc (_Jv_BytecodeVerifier::verify_instructions_0)
34 [op_lshl, op_lshr, op_lushr]: Shift argument is an int, not a
37 2001-11-18 Tom Tromey <tromey@redhat.com>
39 * verify.cc (type::to_array): New method.
40 (_Jv_BytecodeVerifier::verify_instructions_0) [op_anewarray]:
41 Construct new array type.
43 * verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_sipush]:
44 Skip a short, not a byte.
45 [op_newarray]: Skip a byte, not a short.
47 * verify.cc (_Jv_BytecodeVerifier::get_type_val_for_signature):
50 * verify.cc (_Jv_BytecodeVerifier::get_ushort): Use `jint' for
52 (_Jv_BytecodeVerifier::get_short): Likewise.
53 (_Jv_BytecodeVerifier::get_int): Likewise.
54 (_Jv_BytecodeVerifier::check_return_type): Reverse ordering of
57 * verify.cc (_Jv_BytecodeVerifier::pop_type): Put PC into error
59 (_Jv_BytecodeVerifier::pop64): Likewise.
60 (_Jv_BytecodeVerifier::pop32): Likewise.
61 (_Jv_BytecodeVerifier::pop_raw): Likewise.
62 (_Jv_BytecodeVerifier::pop_type): Promote the match type.
63 (type::set_initialized): Only modify uninitialized types.
64 (type::set_uninitialized): Fix shadowing bug. Simplify code.
66 * verify.cc: Include StringBuffer.h.
67 (verify_fail): Added pc argument. Use StringBuffer to construct
69 (_Jv_BytecodeVerifier::verify_instructions_0): Put PC into error
71 (_Jv_BytecodeVerifier::check_return_type): Likewise.
72 (_Jv_BytecodeVerifier::handle_field_or_method): Likewise.
73 (_Jv_BytecodeVerifier::check_constant): Likewise.
74 (_Jv_BytecodeVerifier::check_class_constant): Likewise.
75 (_Jv_BytecodeVerifier::check_pool_index): Likewise.
76 (_Jv_BytecodeVerifier::get_variable): Likewise.
77 (_Jv_BytecodeVerifier::branch_prepass): Likewise. Also, correctly
78 check exception handler endpoint.
79 (_Jv_BytecodeVerifier::verify_instructions_0): Correctly handle
80 wide arguments to current method.
81 (_Jv_BytecodeVerifier::check_wide_constant): New method.
82 (_Jv_BytecodeVerifier::verify_instructions_0) [op_ldc2_w]: Use
85 2001-11-17 Anthony Green <green@redhat.com>
87 * jni.cc (unwrap): Fix test for wrapped objects.
89 2001-11-16 Tom Tromey <tromey@redhat.com>
91 * verify.cc (_Jv_BytecodeVerifier::check_field_constant): Handle
92 case where field has primitive type.
94 * verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): New
96 (type::compatible): Use it.
97 (type::merge): Likewise.
98 (type::promote): Return a `type&'.
99 (get_one_type): Promote return value.
101 Re-merge with Classpath, from Brian Jones:
102 * java/lang/Integer.java (getInteger): Attempt to decode the value
103 of the system property instead of the name of the system property.
104 (parseInt): Throw NumberFormatException explicitly in the case of
105 a null argument in keeping with JDK 1.3.
107 2001-11-16 Mark Wielaard <mark@klomp.org>
109 * java/util/Timer.java (TaskQueue.isStopped): Remove method.
110 (Scheduler.run): Try to re-schedule task and ignore exception if
111 queue has been stopped.
113 2001-11-15 Tom Tromey <tromey@redhat.com>
115 * verify.cc (type::compatible): Use _Jv_IsAssignableFrom.
116 (type::merge): Likewise.
118 2001-11-14 Hans Boehm <Hans_Boehm@hp.com>
120 * java/lang/natString.cc: correct argument order for
123 2001-11-14 Tom Tromey <tromey@redhat.com>
125 * verify.cc (class _Jv_BytecodeVerifier) [op_dup2]: Fixed logic.
126 [op_dup_x2]: Likewise.
127 [op_dup2_x1]: Likewise.
128 [op_dup2_x2]: Likewise.
129 (branch_prepass): Added `op_newarray' case. Updated unrecognized
131 (verify_instructions_0): Updated unrecognized instruction error.
133 * java/lang/reflect/Constructor.java (toString): Use more
134 efficient form of Modifier.toString().
136 Re-merges with Classpath, from various people:
137 * java/lang/reflect/Modifier.java: Reindented.
138 (toString): Only trim trailing space if text was added to
140 * java/lang/reflect/ReflectPermission: Reindented.
142 Re-merges with Classpath, from various people:
143 * java/lang/Double.java (parseDouble): Fixed ordering of
145 * java/lang/reflect/AccessibleObject.java: Javadoc, reindented.
146 * java/lang/reflect/Member.java: Reindented.
147 * java/util/ConcurrentModificationException.java: Javadoc
149 * java/util/EmptyStackException.java: Likewise.
150 * java/util/NoSuchElementException.java: Likewise.
152 2001-11-13 Tom Tromey <tromey@redhat.com>
154 Fix for PR libgcj/4859:
155 * java/util/Timer.java (TaskQueue.isStopped): New method.
156 (Scheduler.run): Don't re-schedule task if queue has been
159 2001-11-07 Tom Tromey <tromey@redhat.com>
161 * Makefile.in: Rebuilt.
162 * Makefile.am (ordinary_java_source_files): Added JNIWeakRef.java.
163 * jni.cc: Include JNIWeakRef.h.
164 (unwrap): New function.
165 (_Jv_JNI_DefineClass): Use it.
166 (_Jv_JNI_GetSuperclass): Likewise.
167 (_Jv_JNI_IsAssignableFrom): Likewise.
168 (_Jv_JNI_Throw): Likewise.
169 (_Jv_JNI_ThrowNew): Likewise.
170 (_Jv_JNI_IsSameObject): Likewise.
171 (_Jv_JNI_AllocObject): Likewise.
172 (_Jv_JNI_GetObjectClass): Likewise.
173 (_Jv_JNI_IsInstanceOf): Likewise.
174 (_Jv_JNI_GetAnyMethodID): Likewise.
175 (array_from_valist): Likewise.
176 (_Jv_JNI_CallAnyMethodV): Likewise.
177 (_Jv_JNI_CallAnyMethodA): Likewise.
178 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
179 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
180 (_Jv_JNI_CallStaticMethodV): Likewise.
181 (_Jv_JNI_CallStaticMethod): Likewise.
182 (_Jv_JNI_CallStaticMethodA): Likewise.
183 (_Jv_JNI_NewObjectV): Likewise.
184 (_Jv_JNI_NewObject): Likewise.
185 (_Jv_JNI_NewObjectA): Likewise.
186 (_Jv_JNI_GetField): Likewise.
187 (_Jv_JNI_SetField): Likewise.
188 (_Jv_JNI_GetAnyFieldID): Likewise.
189 (_Jv_JNI_SetStaticField): Likewise.
190 (_Jv_JNI_GetStringLength): Likewise.
191 (_Jv_JNI_GetStringChars): Likewise.
192 (_Jv_JNI_ReleaseStringChars): Likewise.
193 (_Jv_JNI_GetStringUTFLength): Likewise
194 (_Jv_JNI_GetStringUTFChars): Likewise.
195 (_Jv_JNI_GetStringRegion): Likewise.
196 (_Jv_JNI_GetStringUTFRegion): Likewise.
197 (_Jv_JNI_GetStringCritical): Likewise.
198 (_Jv_JNI_GetArrayLength): Likewise.
199 (_Jv_JNI_NewObjectArray): Likewise.
200 (_Jv_JNI_GetObjectArrayElement): Likewise.
201 (_Jv_JNI_SetObjectArrayElement): Likewise.
202 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
203 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
204 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
205 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
206 (_Jv_JNI_MonitorEnter): Likewise.
207 (_Jv_JNI_MonitorExit): Likewise.
208 (_Jv_JNI_ToReflectedField): Likewise.
209 (_Jv_JNI_FromReflectedField): Likewise.
210 (_Jv_JNI_ToReflectedMethod): Likewise.
211 (_Jv_JNI_FromReflectedMethod): Likewise.
212 (_Jv_JNI_NewGlobalRef): Likewise.
213 (_Jv_JNI_DeleteGlobalRef): Likewise.
214 (_Jv_JNI_DeleteLocalRef): Likewise.
215 (_Jv_JNI_NewLocalRef): Likewise.
216 (_Jv_JNI_NewWeakGlobalRef): New function.
217 (_Jv_JNI_DeleteWeakGlobalRef): Likewise.
218 (_Jv_JNIFunctions): Updated for new methods.
220 * gnu/gcj/runtime/JNIWeakRef.java: New file.
222 2001-11-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
224 * boehm.cc (_Jv_GCCanReclaimSoftReference): Fix warning.
226 2001-11-09 Jeff Sturm <jsturm@one-point.com>
228 * verify.cc: Wrap in #ifdef INTERPRETER...#endif.
230 2001-11-07 Tom Tromey <tromey@redhat.com>
232 * verify.cc (skip_padding): Fail if padding byte is nonzero.
234 2001-11-06 Tom Tromey <tromey@redhat.com>
236 * HACKING: Make people commit their own patches.
238 2001-11-05 Tom Tromey <tromey@redhat.com>
240 * java/lang/Class.h (Class): Made _Jv_BytecodeVerifier a friend.
241 * Makefile.in: Rebuilt.
242 * Makefile.am (libgcj_la_SOURCES): Added verify.cc.
243 * verify.cc: New file.
244 * include/java-interp.h (_Jv_count_arguments): Declare.
245 (_Jv_VerifyMethod): Likewise.
246 (class _Jv_InterpMethod): Made _Jv_BytecodeVerifier a friend.
247 (class _Jv_InterpException): Likewise.
248 * resolve.cc (_Jv_count_arguments): Renamed from count_arguments.
249 No longer static. Updated callers.
250 * defineclass.cc (int_bits_to_float): Removed.
251 (long_bits_to_double): Likewise.
252 (prepare_pool_entry): Updated.
253 (handleCodeAttribute): Verify method (commented out for now).
255 2001-11-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
257 * java/util/ResourceBundle.java (class Security): Now static.
259 2001-11-04 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
261 * java/util/ResourceBundle.java (getClassContext): Removed.
262 (Security): New class, extends SecurityManger.
263 (getBundle): Use Security.getCallingClassLoader instead of
265 * java/util/natResourceBundle.cc: Removed.
267 2001-11-03 Tom Tromey <tromey@redhat.com>
269 * defineclass.cc (handleClassBegin): Use Object::class$, not
270 Class::class$, when initializing interface superclass.
272 2001-11-02 Hans Boehm <Hans_Boehm@hp.com>
274 * java/util/natResourceBundle.cc:getClassContext: return
275 array of Class instead of array of ClassLoader.
277 2001-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
279 * HACKING, gnu/gcj/xlib/Pixmap.java, gnu/gcj/xlib/XException.java,
280 gnu/java/rmi/rmic/RMIC.java, java/awt/Window.java,
281 java/awt/AWTEvent.java, java/io/ByteArrayOutputStream.java,
282 java/io/CharConversionException.java,
283 java/io/PipedInputStream.java, java/io/PipedReader.java,
284 java/io/PrintWriter.java, java/io/WriteAbortedException.java,
285 java/io/natFileWin32.cc, java/lang/Class.h,
286 java/lang/natClassLoader.cc, java/lang/natObject.cc,
287 java/lang/Package.java, java/net/BindException.java,
288 java/net/ConnectException.java, java/net/ProtocolException.java,
289 java/net/SocketException.java,
290 java/net/UnknownServiceException.java,
291 java/security/cert/X509Certificate.java,
292 java/security/interfaces/DSAKey.java,
293 java/security/SecureRandom.java, java/security/SignedObject.java,
294 java/sql/DatabaseMetaData.java,
295 java/text/DecimalFormatSymbols.java,
296 java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
297 java/util/jar/JarInputStream.java,
298 java/util/jar/JarOutputStream.java, java/util/Calendar.java,
299 java/util/Collections.java, java/util/GregorianCalendar.java,
300 java/util/HashMap.java, java/util/List.java,
301 java/util/Properties.java, java/util/Timer.java,
302 java/util/Vector.java, java/util/WeakHashMap.java,
303 javax/naming/NamingException.java,
304 testsuite/libjava.lang/Thread_Wait.java,
305 org/xml/sax/helpers/DefaultHandler.java,
306 org/xml/sax/HandlerBase.java, org/xml/sax/SAXParseException.java,
307 ChangeLog, acinclude.m4, aclocal.m4, posix-threads.cc: Fix
309 * configure: Regenerate.
311 2001-10-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
313 * jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM. Don't call
316 2001-10-29 Tom Tromey <tromey@redhat.com>
318 * java/util/zip/GZIPOutputStream.java (write(int)): New method.
319 Fixes PR libgcj/4728.
321 2001-10-27 Tom Tromey <tromey@redhat.com>
323 * include/jni.h (struct JNINativeInterface) [GetStringLength]:
324 Returns jsize, not jint.
326 2001-10-26 Tom Tromey <tromey@redhat.com>
328 * java/util/zip/Adler32.java: Use correct class name. (Re-merge
331 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
333 * java/lang/VMClassLoader.java (getPrimitiveClass): Now native. Now
334 takes a jchar type-code argument, not a string.
335 * java/lang/natClassLoader.cc (VMClassLoader::getPrimitiveClass):
336 New method. Just call _Jv_FindClassFromSignature.
337 * java/lang/Boolean.java (TYPE): Initialize from
338 VMClassLoader.getPrimitiveClass using type-code.
339 * java/lang/Character.java (TYPE): Likewise.
340 * java/lang/Double.java (TYPE): Likewise.
341 * java/lang/Float.java (TYPE): Likewise.
342 * java/lang/Integer.java (TYPE): Likewise.
343 * java/lang/Long.java (TYPE): Likewise.
344 * java/lang/Short.java (TYPE): Likewise.
345 * java/lang/Void.java (TYPE): Likewise.
347 2001-10-25 Hans Boehm <Hans_Boehm@hp.com>
349 * include/boehm-gc.h: Call thread local allocation functions
350 if THREAD_LOCAL_ALLOC is defined.
352 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
354 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Use
355 snprintf, not asprintf.
357 2001-10-24 Loren J. Rittle <ljrittle@acm.org>
359 * configure.in (case $THREADS): Add *-*-freebsd* configuration.
360 (HAVE_GETHOSTBYADDR_R): Create a valid, non-optimal
361 configuration when gethostbyaddr_r exists yet no prototype
363 * configure: Rebuilt.
364 * posix-threads.cc (INTR): Reuse path for LINUX_THREADS
365 with FREEBSD_THREADS. However, comment different reason.
367 2001-10-24 Tom Tromey <tromey@redhat.com>
368 Warren Levy <warrenl@redhat.com>
370 * Makefile.in: Rebuilt.
371 * Makefile.am (javax_source_files): New macro.
372 (ordinary_java_source_files): Added javax_source_files.
373 (libgcj.jar): Search javax for class files.
374 * javax/naming/LinkException.java (toString): Wrote.
375 (toString(boolean)): Likewise.
376 * javax/naming/ldap/InitialLdapContext.java: New file.
377 * javax/naming/directory/InitialDirContext.java: Wrote.
378 * javax/naming/spi/NamingManager.java (getPlusPath): Now has
379 package-private protection.
380 (getURLContext): Likewise.
381 (NamingManager): Likewise.
382 * javax/naming/spi/DirectoryManager.java: New file.
383 * javax/naming/directory/BasicAttributes.java: New file.
384 * javax/naming/directory/BasicAttribute.java: New file.
385 * javax/naming/spi/ResolveResult.java
386 (ResolveResult(Object,String)): Wrote.
387 (appendRemainingName): Uncommented body.
388 (appendRemainingComponent): Likewise.
389 * javax/naming/ldap/ControlFactory.java: New file.
390 * javax/naming/directory/AttributeModificationException.java
392 * javax/naming/spi/NamingManager.java (NamingManager): New
394 (setInitialContextFactoryBuilder): Wrote.
395 (getInitialContext): Look in system properties for class name as
396 well. Use Class.forName().
397 (getURLContext): Wrote.
399 (setObjectFactoryBuilder): Wrote.
400 (getObjectInstance): Wrote.
401 (getContinuationContext): Wrote.
402 (getPlusPath): New private method.
403 (getStateToBind): Wrote.
404 * javax/naming/CannotProceedException.java: Added missing methods &
406 * javax/naming/LinkException.java: Added missing methods & fields.
407 * javax/naming/ReferralException.java (ReferralException): Made
408 constructor protected per spec.
409 Added missing abstract methods.
410 * javax/naming/directory/Attribute.java: Updated copyright.
411 * javax/naming/directory/AttributeModificationException.java: Ditto.
412 * javax/naming/directory/Attributes.java: Ditto.
413 * javax/naming/directory/DirContext.java: Ditto.
414 * javax/naming/spi/NamingManager.java: Ditto.
415 * javax/naming/spi/ResolveResult.java: Added comment.
416 * javax/naming/directory/Attribute.java: Added missing interface
418 * javax/naming/directory/AttributeModificationException.java:
419 Added missing methods & fields.
420 * javax/naming/directory/directory/Attributes.java: Added missing
422 * javax/naming/directory/SearchControls.java: Maded serialized fields
424 * javax/naming/event/NamingEvent.java: Added comment.
425 * javax/naming/event/NamingExceptionEvent.java: Maded serialized field
427 * javax/naming/ldap/UnsolicitedNotificationEvent.java: Maded
428 serialized field private.
429 * javax/naming/spi/NamingManager.java: Added missing field and stubbed
431 * javax/naming/directory/DirContext.java: Added missing interface
433 * javax/naming/directory/InitialDirContext.java: Stubbed missing
435 * javax/naming/directory/ModificationItem.java: New class.
436 * javax/naming/directory/SearchResult.java: New class.
437 * javax/naming/directory/SearchControls.java: New class.
438 * javax/naming/event/EventContext.java: New class.
439 * javax/naming/event/EventDirContext.java: New class.
440 * javax/naming/event/NamespaceChangeListener.java: New class.
441 * javax/naming/event/NamingEvent.java: New class.
442 * javax/naming/event/NamingExceptionEvent.java: New class.
443 * javax/naming/event/NamingListener.java: New class.
444 * javax/naming/event/ObjectChangeListener.java: New class.
445 * javax/naming/ldap/Control.java: New class.
446 * javax/naming/ldap/ExtendedRequest.java: New class.
447 * javax/naming/ldap/ExtendedResponse.java: New class.
448 * javax/naming/ldap/HasControls.java: New class.
449 * javax/naming/ldap/LdapContext.java: New class.
450 * javax/naming/ldap/LdapReferralException.java: New class.
451 * javax/naming/ldap/UnsolicitedNotification.java: New class.
452 * javax/naming/ldap/UnsolicitedNotificationEvent.java: New class.
453 * javax/naming/ldap/UnsolicitedNotificationListener.java: New class.
454 * javax/naming/spi/DirObjectFactory.java: New class.
455 * javax/naming/spi/DirStateFactory.java: New class.
456 * javax/naming/spi/ObjectFactoryBuilder.java: New class.
457 * javax/naming/spi/ResolveResult.java: New class.
458 * javax/naming/spi/Resolver.java: New class.
459 * javax/naming/spi/StateFactory.java: New class.
460 * javax/naming/spi/ObjectFactory.java: Made an interface per spec.
461 * java/rmi/RemoteException.java: New class.
462 * javax/transaction/HeuristicCommitException.java: New class.
463 * javax/transaction/HeuristicMixedException.java: New class.
464 * javax/transaction/HeuristicRollbackException.java: New class.
465 * javax/transaction/NotSupportedException.java: New class.
466 * javax/transaction/RollbackException.java: New class.
467 * javax/transaction/Status.java: New class.
468 * javax/transaction/Synchronization.java: New class.
469 * javax/transaction/SystemException.java: New class.
470 * javax/transaction/Transaction.java: New class.
471 * javax/transaction/TransactionManager.java: New class.
472 * javax/transaction/UserTransaction.java: New class.
473 * javax/transaction/xa/XAException.java: Added public static fields.
474 * javax/transaction/xa/XAResource.java: New class.
475 * javax/transaction/xa/Xid.java: New class.
476 * javax/naming/CompoundName.java (CompoundName(String)): Reverse
477 elements if required. Handle case where quote is at end of
479 * javax/naming/CompoundName.java (CompoundName(String)): Handle
480 text left at end of parsing.
481 (toString): Handle empty element at beginning.
482 * javax/naming/CompositeName.java (toString): Handle empty element
484 (CompositeName(String)): Handle text left at end of parsing.
485 Correctly compute boundary condition for quoting.
486 * javax/naming/CompoundName.java: New file.
487 * javax/naming/CompositeName.java: New file.
488 * javax/naming/Binding.java: New file.
489 * javax/naming/LinkRef.java: New file.
490 * javax/naming/NameClassPair.java: New file.
491 * javax/naming/Reference.java (addrs, classFactory,
492 classFactoryLocation): New fields.
493 (className): Now protected.
494 (Reference): New constructors.
495 (add): Now public. Implemented.
496 (get(String)): Likewise.
497 (add(int,RefAddr)): New method.
501 (get(int)): Likewise.
503 (getFactoryClassLocation): Likewise.
504 (getFactoryClassName): Likewise.
505 (hashCode): Likewise.
508 (toString): Likewise.
509 * javax/transaction/xa/XAException.java: New file.
510 * javax/transaction/TransactionRolledbackException.java: New file.
511 * javax/transaction/TransactionRequiredException.java: New file.
512 * javax/transaction/InvalidTransactionException.java: New file.
513 * javax/naming/directory/SchemaViolationException.java: Use
514 correct package. Import NamingException.
515 * javax/naming/directory/NoSuchAttributeException.java,
516 javax/naming/directory/InvalidSearchFilterException.java,
517 javax/naming/directory/InvalidSearchControlsException.java,
518 javax/naming/directory/InvalidAttributesException.java,
519 javax/naming/directory/InvalidAttributeValueException.java,
520 javax/naming/directory/InvalidAttributeIdentifierException.java,
521 javax/naming/directory/AttributeModificationException.java,
522 javax/naming/directory/AttributeInUseException.java: Likewise.
523 * javax/naming/directory/InitialDirContext.java (getAttributes):
525 * javax/naming/RefAddr.java (RefAddr): Reindented.
526 (equals): Renamed and reindented.
527 * javax/naming/BinaryRefAddr.java (equals): Renamed and
530 2001-10-24 Tom Tromey <tromey@redhat.com>
532 * java/lang/reflect/Field.java: Made many methods private.
534 * java/sql/Types.java (Types): New constructor.
536 Tue Oct 23 23:52:18 2001 Anthony Green <green@redhat.com>
538 * gnu/gcj/runtime/natSharedLibLoader.cc: Only include dlfcn.h when
541 2001-10-23 Tom Tromey <tromey@redhat.com>
543 * java/lang/reflect/Field.java (Field): New constructor.
544 * java/lang/ClassLoader.java (defineClass(String,byte[],int,int)):
545 Throw ClassFormatError.
547 2001-10-23 Tom Tromey <tromey@redhat.com>
549 * java/util/PropertyResourceBundle.java (handleGetObject): Now
551 * java/util/ListResourceBundle.java (handleGetObject): Now public
554 * java/io/BufferedWriter.java (localFlush): Don't synchronize.
556 2001-10-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
558 * prims.cc (_Jv_Abort): Always print error message using fprintf,
559 don't try to allocate.
560 (_Jv_CreateJavaVM): Set gcj::runtimeInitialized.
561 * include/jvm.h (gcj::runtimeInitialized): New variable declaration.
562 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
563 duplicate class registration with JvFail if the runtime hasn't been
566 * java/io/BufferedWriter (write (String, int, int)): Remove redundant
568 (write (char[], int, int)): Likewise.
570 2001-10-22 Tom Tromey <tromey@redhat.com>
572 * java/util/GregorianCalendar.java (getGregorianChange): Removed
575 2001-10-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
577 * gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
578 * gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
579 * gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
580 * gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in output
583 2001-10-19 Mark Wielaard <mark@klomp.org>
585 * java/lang/Double.java: More Classpath merging
586 (isInfinite): Don't use doubleToLongBits
587 (isNaN (Object)): return v != v
588 (initIDs): make native
589 * java/lang/Float.java: Ditto
590 (isInfinite): Don't use floatToIntBits
591 (isNaN (Object)): return v != v
592 * java/lang/natDouble.cc: add empty initIDs()
594 2001-10-19 Mark Wielaard <mark@klomp.org>
596 * javax/naming/BinaryRefAddr.java: New file
597 * javax/naming/InitialContext.java: Compile fix
598 * javax/naming/InvalidNameException.java: Add comments
599 * javax/naming/Name.java: Ditto
600 * javax/naming/NamingException.java: Implement
601 * javax/naming/OperationNotSupportedException.java: Compile fix
602 * javax/naming/RefAddr.java: Implement
603 * javax/naming/StringRefAddr.java: Add comments and implement
604 * javax/naming/directory/InitialDirContext.java: Compile fix
606 2001-10-18 Tom Tromey <tromey@redhat.com>
608 * java/io/BufferedWriter.java (write(String,int,int)): Correctly
611 * java/security/Security.java (loadProviders): Removed unused
612 `pname' variable. Don't create `File' object. Don't update
614 (providerCount): Removed.
615 (insertProviderAt): Don't use `providerCount'.
616 (addProvider(Provider,int)): Likewise.
617 (removeProvider): Likewise.
618 (addProvider(Provider)): Rewrote.
619 (getProviders): Rewrote.
620 (getProvider): Don't use `providerCount'.
622 2001-10-17 Tom Tromey <tromey@redhat.com>
624 * gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
626 * java/security/SecureRandom.java (setSeed(long)): Don't set seed
627 if secureRandomSpi is not initialized.
629 * Makefile.in: Rebuilt.
630 * Makefile.am (secdir): New macro.
631 (install-data-local): Install new data files.
632 * java/security/classpath.security: New file.
633 * java/security/libgcj.security: New file.
635 * java/security/Security.java (loadProviders): Added `vendor'
637 Load both `classpath' and `java.vm.name' providers.
639 2001-10-17 Anthony Green <green@redhat.com>
641 * java/security/Security.java (loadProviders): Fix bug in how
642 providers are loaded.
644 2001-10-16 Tom Tromey <tromey@redhat.com>
646 * gcj/javaprims.h: Updated class list.
647 * java/util/Hashtable.java: Re-merged with Classpath.
649 2001-10-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
651 * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
653 Eliminate use of C++ static constructors.
654 * interpret.cc: Remove static Utf8Consts. Use namespace gcj.
656 * resolve.cc: Likewise.
657 * defineclass.cc: Likewise.
658 (_Jv_ClassReader::handleClassBegin): Synchronize call to
660 * include/jvm.h (void_signature, clinit_name, init_name, finit_name):
661 Declare in namespace gcj.
662 * java/lang/Class.h (Class): Remove initialization for primitive
664 (friend void _Jv_InitPrimClass): This is in prims.cc.
665 * prims.cc (_Jv_InitPrimClass): Do primitive type initialization
667 (void_signature, clinit_name, init_name, finit_name): Define in
669 (_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and
670 _Jv_InitializeSyncMutex from here. Initialize Utf8 constants.
671 Initialize primitive types.
672 * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
673 initialization routines. Don't synchronize.
674 * java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
677 2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
679 * java/util/HashMap.java (HashEntry.clone): Removed.
680 (HashMap(Map)): Use putAllInternal.
682 (putAllInternal): New method. Efficient counterpart to putAll which
684 * java/util/LinkedHashMap.java (rethread): Removed.
685 (putAllInternal): New method. Clear "head" and "tail".
686 (addEntry): New argument "callRemove". Don't call removeEldestEntry()
687 if callRemove == false.
689 * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
690 * Makefile.in: Rebuilt.
692 2001-10-15 Eric Blake <ebb9@email.byu.edu>
694 * java/util/Collection.java: Updated javadoc.
695 * java/util/Comparator.java: Updated javadoc.
696 * java/util/Enumeration.java: Updated javadoc.
697 * java/util/Iterator.java: Updated javadoc.
698 * java/util/List.java: Updated javadoc.
699 * java/util/ListIterator.java: Updated javadoc.
700 * java/util/Map.java: Updated javadoc.
701 * java/util/RandomAccess.java: New file.
702 * java/util/Set.java: Updated javadoc.
703 * java/util/SortedMap.java: Updated javadoc.
704 * java/util/SortedSet.java: Updated javadoc.
706 2001-10-15 Tom Tromey <tromey@redhat.com>
708 * java/lang/reflect/AccessibleObject.java (checkPermission):
710 Updated copyright information.
712 2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
714 * java/lang/natObject.cc (heavy_lock): Moved fields
715 old_client_data, old_finalization_proc near beginning.
716 (heavy_lock_finalization_proc): Now inline; changed type of
718 (JV_SYNC_TABLE_SZ): Now 2048.
720 (spin): `mp' now global.
721 (heavy_lock_obj_finalization_proc): Updated to correctly handle
722 heavy lock finalization.
723 (remove_all_heavy): New function.
724 (maybe_remove_all_heavy): Likewise.
725 (_Jv_MonitorEnter): Throw exception if object is NULL.
726 (_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
728 * include/jvm.h (_Jv_AllocTraceTwo): Declare.
729 * nogc.cc (_Jv_AllocTraceTwo): New function.
730 * boehm.cc (trace_two_vtable): New global.
731 (_Jv_AllocTraceTwo): New function.
733 2001-10-15 Tom Tromey <tromey@redhat.com>
735 * Makefile.in: Rebuilt.
736 * Makefile.am (awt_java_source_files): Added new file.
737 * java/beans/AppletInitializer.java: New file.
739 * java/net/SocketPermission.java (hostport, actions): Now
742 2001-10-14 Mark Wielaard <mark@klomp.org>
744 * java/lang/Double.java: Partial merge with Classpath
745 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
747 (static): new static block to load native libary (not used in libgcj)
748 (Double (String)): call parseDouble()
749 (byteValue): removed, already defined in superclass Number
750 (shortValue): likewise
751 (valueOf (String)): call new Double(String) directly
752 (compare (double,double)): new 1.4 method
753 (compareTo (Double)): call new compare(double,double) method
754 (initIDs): new private method (not used in libgcj)
755 * java/lang/Float.java: Partial merge with Classpath
756 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
758 (static): new static block to load native libary (not used in libgcj)
759 (Float (String)): call parseFloat()
760 (byteValue): removed, already defined in superclass Number
761 (shortValue): likewise
762 (valueOf (String)): call new Float(String) directly
763 (compare (float,float)): new 1.4 method
764 (compareTo (Float)): call new compare(double,double) method
766 2001-10-13 Tom Tromey <tromey@redhat.com>
768 * java/lang/SecurityManager.java (SecurityManager): Now public.
770 * java/security/AccessController.java (checkPermission): Now
771 throws AccessControlException.
772 * java/security/AllPermission.java: Class now final.
773 * java/security/Permission.java (getName): Now final.
775 (equals): New abstract method.
776 * java/security/PermissionCollection.java (linesep): Now private.
777 * java/security/Permissions.java: Class now final.
778 * java/security/Security.java (Security): New private
780 * java/security/UnresolvedPermission.java: Import
781 java.security.cert.Certificate. Class now final.
782 * java/security/acl/Group.java: Now extends Principal.
783 (isMember): Added Principal argument.
784 * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
786 * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
789 2001-10-12 Tom Tromey <tromey@redhat.com>
791 * Makefile.in: Rebuilt.
792 * Makefile.am (rmi_java_source_files): Added new files.
793 * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
795 * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
796 * gnu/java/rmi/rmic/Compile_gcj.java: New file.
797 * gnu/java/rmi/rmic/CompilerProcess.java: New file.
798 * gnu/java/rmi/rmic/Compiler.java: New file.
800 2001-10-11 Tom Tromey <tromey@redhat.com>
802 * configure: Rebuilt.
803 * configure.in: Recognize --disable-java-awt.
805 2001-10-10 Tom Tromey <tromey@redhat.com>
807 * gnu/gcj/runtime/natFinalizerThread.cc: New file.
808 * java/lang/natRuntime.cc: Include FinalizerThread.h.
809 (runFinalization): Call finalizerReady.
810 * nogc.cc (_Jv_GCInitializeFinalizers): New function.
811 * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
812 (_Jv_CreateJavaVM): Start the finalizer thread.
813 * no-threads.cc: Include InternalError.h.
814 (_Jv_ThreadStart): Throw InternalError.
815 (_Jv_ThreadInitData): Don't throw error if this is not the first
817 * Makefile.in: Rebuilt.
818 * Makefile.am (ordinary_java_source_files): Added
819 FinalizerThread.java.
820 (nat_source_files): Added natFinalizerThread.cc.
821 * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
822 * boehm.cc (_Jv_GCInitializeFinalizers): New function.
823 * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
824 * gnu/gcj/runtime/FinalizerThread.java: New file.
826 2001-10-09 Per Bothner <per@bothner.com>
828 * strtod.c (_strtod_r): Logic to check for missing digits
829 after exponent had 'else' attached to wrong 'if'.
831 2001-10-09 Mark Wielaard <mark@klomp.org>
833 * java/net/SocketImpl.java: Merge with Classpath
835 2001-10-08 Mark Wielaard <mark@klomp.org>
837 * java/net/DatagramSocketImpl.java: Merge with Classpath
839 2001-10-07 Mark Wielaard <mark@klomp.org>
841 * java/net/URLDecoder.java: Remerge with Classpath
842 * java/net/URLEncoder.java: Merge with Classpath
844 2001-10-08 Tom Tromey <tromey@redhat.com>
846 Fix for PR libgcj/4481:
847 * java/io/File.java (getParent): Handle case where path is "/".
848 (normalizePath): Use correct string for UNC leader.
850 2001-10-06 Mark Wielaard <mark@klomp.org>
852 * java/io/BufferedInputStream.java: Merge with Classpath
854 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
856 * defineclass.cc, java/awt/image/ColorModel.java,
857 java/awt/image/SampleModel.java, java/lang/Package.java,
858 java/security/cert/X509Extension.java: Fix spelling errors of
859 "separate" as "seperate", and corresponding spelling errors of
862 2001-10-05 Tom Tromey <tromey@redhat.com>
864 * java/text/DecimalFormat.java (format): Use localized minus sign
865 when generating exponent; never use `+'. Use floor to compute
868 2001-10-05 Mark Wielaard <mark@klomp.org>
870 * java/util/zip/Adler32.java: Merge with Classpath
871 * java/util/zip/CRC32.java: Ditto
872 * java/util/zip/Checksum.java: Ditto
873 * java/util/zip/DataFormatException.java: Ditto
874 * java/util/zip/ZipException.java: Ditto
876 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
878 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
880 2001-10-04 Mark Wielaard <mark@klomp.org>
882 * java/lang/reflect/Modifier.java: Merge with Classpath
884 2001-10-03 Mark Wielaard <mark@klomp.org>
886 * java/io/SequenceInputStream.java: Merge with Classpath
887 * java/io/StringBufferInputStream.java: Ditto
888 * java/util/Collections.java: Remerge with Classpath
890 2001-10-03 Tom Tromey <tromey@redhat.com>
892 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
895 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
897 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
898 * gij.cc (version): Use GCJVERSION.
900 2001-10-02 Mark Wielaard <mark@klomp.org>
902 * Makefile.am (core_java_source_files): add InheritableThreadLocal
903 * Makefile.in: regenerate
904 * gcj/javaprims.h: ditto
905 * java/lang/InheritableThreadLocal.java: new class from Classpath
906 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
907 call InheritableThreadLocal.newChildThread()
909 2001-10-01 Mark Wielaard <mark@klomp.org>
911 * Makefile.am: Add new classes
912 (core_java_source_files): CharSequence
913 (ordinary_java_source_files): Authenticator, PasswordAuthentication
914 * Makefile.in: regenerate
915 * gcj/javaprims.h: ditto
916 * java/lang/CharSequence: new class from Classpath
917 * java/lang/String.java: implements CharSequence
918 (subSequence (int,int)): new method
919 * java/lang/SubString.java: implements CharSequence
920 (subSequence (int,int)): new method
921 remerge comments with Classpath
922 * java/net/Authenticator.java: new class from Classpath
923 * java/net/PasswordAuthentication.java: ditto
925 2001-10-01 Tom Tromey <tromey@redhat.com>
927 * gcj/javaprims.h: Rebuilt class list.
928 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
929 (_Jv_GCCanReclaimSoftReference): New function.
930 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
931 (_Jv_GCCanReclaimSoftReference): Declare.
932 * java/lang/ref/Reference.java (referent): Now a RawData.
933 (create): Renamed from `created'. Added object argument.
934 (Reference): Don't initialize `referent' here.
935 * Makefile.in: Rebuilt.
936 * Makefile.am (nat_source_files): Added new file.
937 * java/lang/ref/natReference.cc: New file.
939 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
940 (_Jv_NewMultiArray): Use it. Check each array dimension.
941 (_Jv_NewMultiArray): Likewise.
942 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
944 * java/lang/reflect/natArray.cc (newInstance): Throw
945 IllegalArgumentException if there are no dimensions.
947 2001-10-01 Mark Wielaard <mark@klomp.org>
949 * java/io/FileWriter.java: Merge with Classpath.
950 * java/io/FilterInputStream.java: Ditto.
951 (mark): no longer synchronized
953 * java/io/FilterOutputStream.java: Merge with Classpath.
954 * java/io/FilterReader.java: Ditto.
955 (mark): no longer synchronized
957 * java/io/FilterWriter.java: Merge with Classpath.
958 * java/io/Writer.java: Ditto.
959 * java/lang/Compiler.java: Ditto.
960 * java/lang/Process.java: Ditto.
961 * java/lang/Void.java: Ditto.
962 * java/net/ContentHandler.java: Ditto.
963 * java/net/DatagramPacket.java: Ditto.
964 * java/net/MulticastSocket.java: Merge comments with Classpath.
966 2001-09-30 Mark Wielaard <mark@klomp.org>
968 * java/io/DataInput.java: Merge with Classpath.
969 * java/io/DataOutput.java: Idem.
970 * java/io/FilenameFilter.java: Idem.
971 * java/io/Serializable.java: Idem.
972 * java/lang/Cloneable.java: Idem.
973 * java/lang/Comparable.java: Idem.
974 * java/lang/Runnable.java: Idem.
975 * java/lang/reflect/Member.java: Idem.
976 * java/net/ContentHandlerFactory.java: Idem.
977 * java/net/FileNameMap.java: Idem.
978 * java/net/SocketImplFactory.java: Idem.
979 * java/net/SocketOptions.java: Idem.
980 * java/net/URLStreamHandlerFactory.java: Idem.
982 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
984 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
985 an uninitialized target class.
987 * gnu/gcj/protocol/file/Connection.java (connect): Throw
988 FileNotFoundException if appropriate.
989 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
990 IOException if we got a file: url with a hostname. Comment out protocol
991 switch to ftp for now.
992 * java/net/URL.java (URL): Include protocol name in exception message
993 when handler can't be found.
995 2001-09-28 Per Bothner <per@bothner.com>
997 * gnu/gcj/runtime/SharedLibLoader.java: New class.
998 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
999 * Makefile.am: Update accordingly.
1000 * configure.in: Add AC_CHECK_LIB for dlopen.
1001 * include/config.h.in: Add HAVE_DLOPEN.
1003 2001-09-29 Jeff Sturm <jsturm@one-point.com>
1005 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
1006 * Makefile.in: Rebuilt.
1008 2001-09-27 Tom Tromey <tromey@redhat.com>
1010 * java/util/IdentityHashMap.java (containsKey): Use getHash.
1014 (getHash): New method.
1015 (tombstone, emptyslot): Now static final.
1016 (put): Correctly determine when to rehash, and correctly rehash.
1017 (containsKey, remove): Test against table length with `>='.
1019 2001-09-26 Tom Tromey <tromey@redhat.com>
1021 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
1023 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
1024 Re-merged with Classpath.
1026 * java/io/DataInputStream.java (readChar): Use readFully.
1027 (readInt): Likewise.
1028 (readLong): Likewise.
1029 (readShort): Likewise.
1030 (readUnsignedShort): Likewise.
1032 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1034 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
1035 IllegalThreadStateException if process hasn't exited yet.
1036 * java/lang/natPosixProcess.cc (exitValue): Removed.
1037 (waitFor): Only check thread interrupted status if waitpid() returned
1038 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
1041 * java/security/cert/X509Extension.java: Merge from classpath.
1043 2001-09-22 Anthony Green <green@redhat.com>
1045 * java/security/DummyKeyPairGenerator.java (initialize): New
1046 method (with AlgorithmParameterSpec argument).
1048 2001-09-22 Anthony Green <green@redhat.com>
1050 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
1052 * gnu/java/security/provider/SHA1PRNG.java: Extend from
1054 (engineNextBytes): Fix order of memory copies.
1056 2001-09-21 Richard Henderson <rth@redhat.com>
1058 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
1059 add get_method, set_method, vtable_elt_size, new_vtable.
1060 (_Jv_ArrayVTable): Derive from _Jv_VTable.
1061 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
1062 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
1063 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
1065 2001-09-21 Richard Henderson <rth@redhat.com>
1067 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
1068 * java/lang/mprec.c (lo0bits): Fix paren typo.
1070 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1072 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
1073 blocking IO via pthread_kill().
1074 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
1075 interrupted status flag only if ::write returned an error.
1076 (write (jbyteArray, jint, jint): Likewise.
1077 (read (jint)): Likewise.
1078 (read (jbyteArray, jint, jint): Likewise.
1080 2001-09-19 Anthony Green <green@redhat.com>
1082 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
1085 2001-09-17 Andreas Jaeger <aj@suse.de>
1087 * jni.cc (array_from_valist): Use promoted types for va_arg.
1089 2001-09-16 Anthony Green <green@redhat.com>
1091 * gnu/java/locale/LocaleInformation.java: Extend
1092 LocaleInformation_en_US, not LocaleInformation_en.
1094 2001-09-16 Anthony Green <green@redhat.com>
1096 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
1098 2001-09-14 Tom Tromey <tromey@redhat.com>
1100 * java/util/TimeZone.java: Updated list of timezones from
1103 * java/lang/CloneNotSupportedException.java: Re-merged with
1106 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1108 * java/io/File.java (normalizePath): Use equals() not '==' for string
1111 * java/util/Hashtable.java (Enumerator): Ensure that if
1112 hasMoreElements() returns true, nextElement() will always return
1113 something even if the table has been modified.
1115 2001-09-12 Tom Tromey <tromey@redhat.com>
1117 * Makefile.in: Rebuilt.
1118 * Makefile.am (class-check): New target.
1120 2001-09-11 Tom Tromey <tromey@redhat.com>
1122 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
1124 2001-09-10 Tom Tromey <tromey@redhat.com>
1126 * java/util/Properties.java (load): Correctly read \u sequences.
1127 Report from Anthony Green.
1129 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
1131 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
1132 and $(MULTIBUILDTOP).
1133 * configure: Re-generate.
1135 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1137 * include/jvm.h (_Jv_AllocRawObj): New prototype.
1138 * boehm.cc (_Jv_AllocRawObj): Implement.
1139 * nogc.cc (_Jv_AllocRawObj): Likewise.
1140 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
1142 2001-09-06 Anthony Green <green@redhat.com>
1144 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
1145 redundant method calls.
1146 (emptyLocale): New private member.
1147 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
1150 2001-09-06 Tom Tromey <tromey@redhat.com>
1152 * java/text/RuleBasedCollator.java (clone): Rewrote.
1153 (RuleBasedCollator(RuleBasedCollator)): Removed.
1154 * java/text/MessageFormat.java: Re-merged from Classpath.
1155 * java/text/DecimalFormat.java: Re-merged from Classpath.
1157 2001-09-06 Anthony Green <green@redhat.com>
1159 * include/jvm.h: Declare _Jv_RegisterResource.
1160 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
1161 gnu/gcj/protocol/core/Connection.java,
1162 gnu/gcj/protocol/core/Handler.java,
1163 gnu/gcj/protocol/core/CoreInputStream.java,
1164 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
1165 * java/net/URL.java (setURLStreamHandler): Use
1166 gnu.gcj.protocol.core.Handler for the core protocol.
1167 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
1168 end of java.class.path.
1169 * Makefile.am (ordinary_java_source_files): Add new java files.
1170 (nat_source_files): Add new native code files.
1171 * Makefile.in: Rebuilt.
1173 2001-09-05 Tom Tromey <tromey@redhat.com>
1175 * java/util/Properties.java: Re-merged from Classpath.
1177 From Eric Blake, via Classpath:
1178 * java/lang/String.java (CaseInsensitiveComparator): New class.
1179 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
1181 * java/util/Date.java: Re-merged with Classpath.
1183 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
1185 2001-09-05 Corey Minyard <minyard@acm.org>
1186 Tom Tromey <tromey@redhat.com>
1188 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
1189 (_Jv_RegisterClassHookDefault): Throw error if a class is
1192 2001-09-05 Tom Tromey <tromey@redhat.com>
1194 * java/lang/natSystem.cc (init_properties): Default locale is
1197 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1199 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
1200 here, DecimalFormat.applyPattern() does not throw it.
1202 2001-09-04 Tom Tromey <tromey@redhat.com>
1204 * java/util/AbstractMap.java: Re-merged with Classpath.
1205 * java/util/IdentityHashMap.java: Re-merged with Classpath.
1207 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
1208 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
1209 gnu/gcj/text/LocaleData_en_US.java: Removed.
1210 * java/text/DateFormatSymbols.java (clone): Use Classpath
1212 (equals): Simplified.
1213 (DateFormatSymbols): Look in gnu.java.locale for information.
1214 (DateFormatSymbols(DateFormatSymbols)): Removed.
1215 (safeGetResource): Removed.
1216 (DateFormatSymbols): Throws MissingResourceException.
1217 (ampmsDefault, erasDefault, localPatternCharsDefault,
1218 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
1219 weekdaysDefault, zoneStringsDefault): Removed.
1220 * java/text/Collator.java (getAvailableLocales): Use modified
1221 Classpath implementation.
1222 (getInstance): Look in gnu.java.locale for information.
1224 * java/text/MessageFormat.java: Reindented.
1226 * java/text/FieldPosition.java: Merged with Classpath.
1227 * java/text/ParsePosition.java: Merged with Classpath.
1228 * java/text/Format.java: Merged with Classpath.
1229 * java/text/StringCharacterIterator.java
1230 (StringCharacterIterator(StringCharacterIterator,int,int)): New
1231 constructor from Classpath.
1232 * java/text/Annotation.java,
1233 java/text/AttributedCharacterIterator.java,
1234 java/text/AttributedString.java,
1235 java/text/AttributedStringIterator.java: New from Classpath.
1236 * java/text/CharacterIterator.java: Copied from Classpath.
1237 * java/text/ChoiceFormat.java: Reindented.
1239 * gnu/java/text/BaseBreakIterator.java,
1240 gnu/java/text/CharacterBreakIterator.java,
1241 gnu/java/text/LineBreakIterator.java,
1242 gnu/java/text/LocaleData_en.java,
1243 gnu/java/text/LocaleData_en_US.java,
1244 gnu/java/text/SentenceBreakIterator.java,
1245 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
1246 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
1248 * java/text/BreakIterator.java (getAvailableLocales): Use
1249 Classpath implementation.
1250 (getInstance): Look in gnu.java.locale for information.
1251 (getCharacterInstance, getLineInstance, getSentenceInstance,
1252 getWordInstance): Look in gnu.java.text for implementations.
1253 * java/text/DecimalFormatSymbols.java: Reindented
1254 (clone): Use Classpath implementation.
1255 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
1256 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
1258 * java/text/DateFormat.java: Merged with Classpath.
1259 (getAvailableLocales): Use Classpath implementation.
1260 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
1261 (computeInstance): Look in gnu.java.locale for information.
1262 * java/text/NumberFormat.java: Reindented.
1263 (computeInstance): Look in gnu.java.locale for information.
1264 (getAvailableLocales): Use implementation from Classpath.
1265 (setMaximumIntegerDigits): Likewise.
1266 (setMinimumIntegerDigits): Likewise.
1267 (setMaximumFractionDigits): Likewise.
1269 * java/text/DecimalFormat.java: Reindented.
1270 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
1271 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
1272 * Makefile.in: Rebuilt.
1273 * Makefile.am (ordinary_java_source_files): Added all new files.
1274 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
1275 * java/security/spec/AlgorithmParameterSpec.java,
1276 java/security/spec/KeySpec.java: Re-merged with Classpath.
1278 Fix for PR libgcj/4213:
1279 * Makefile.am (ordinary_java_source_files): Added new file.
1280 * gnu/gcj/text/LocaleData.java: New file.
1282 2001-09-03 Tom Tromey <tromey@redhat.com>
1284 * java/lang/reflect/natField.cc (set): Allow for case when the
1285 value is null. Fixes PR libgcj/4208.
1287 * gcj/javaprims.h: Regenerated class list.
1288 * java/lang/IllegalThreadStateException.java,
1289 java/lang/InstantiationException.java: Minor comment tweaks to
1290 satisfy libgcj `classes.pl' script.
1292 2001-09-01 Tom Tromey <tromey@redhat.com>
1294 * Makefile.in: Rebuilt.
1295 * Makefile.am (core_java_source_files): Added
1296 UnsupportedClassVersionError.
1297 * java/lang/UnsupportedClassVersionError.java: New file from
1300 * java/io/CharConversionException.java, java/io/EOFException.java,
1301 java/io/FileNotFoundException.java, java/io/IOException.java,
1302 java/io/InterruptedIOException.java,
1303 java/io/ObjectStreamException.java,
1304 java/io/OptionalDataException.java,
1305 java/io/StreamCorruptedException.java,
1306 java/io/SyncFailedException.java,
1307 java/io/UTFDataFormatException.java,
1308 java/io/UnsupportedEncodingException.java,
1309 java/lang/AbstractMethodError.java,
1310 java/lang/ArithmeticException.java,
1311 java/lang/ArrayIndexOutOfBoundsException.java,
1312 java/lang/ArrayStoreException.java,
1313 java/lang/ClassCastException.java,
1314 java/lang/ClassCircularityError.java,
1315 java/lang/ClassFormatError.java,
1316 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
1317 java/lang/Exception.java,
1318 java/lang/ExceptionInInitializerError.java,
1319 java/lang/IllegalAccessError.java,
1320 java/lang/IllegalAccessException.java,
1321 java/lang/IllegalArgumentException.java,
1322 java/lang/IllegalMonitorStateException.java,
1323 java/lang/IllegalStateException.java,
1324 java/lang/IllegalThreadStateException.java,
1325 java/lang/IncompatibleClassChangeError.java,
1326 java/lang/IndexOutOfBoundsException.java,
1327 java/lang/InstantiationError.java,
1328 java/lang/InstantiationException.java,
1329 java/lang/InternalError.java, java/lang/InterruptedException.java,
1330 java/lang/LinkageError.java,
1331 java/lang/NegativeArraySizeException.java,
1332 java/lang/NoClassDefFoundError.java,
1333 java/lang/NoSuchFieldError.java,
1334 java/lang/NoSuchFieldException.java,
1335 java/lang/NoSuchMethodError.java,
1336 java/lang/NoSuchMethodException.java,
1337 java/lang/NullPointerException.java,
1338 java/lang/NumberFormatException.java,
1339 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
1340 java/lang/SecurityException.java,
1341 java/lang/StackOverflowError.java,
1342 java/lang/StringIndexOutOfBoundsException.java,
1343 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
1344 java/lang/UnsatisfiedLinkError.java,
1345 java/lang/UnsupportedOperationException.java,
1346 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
1347 java/lang/reflect/InvocationTargetException.java,
1348 java/net/BindException.java, java/net/ConnectException.java,
1349 java/net/MalformedURLException.java,
1350 java/net/NoRouteToHostException.java,
1351 java/net/ProtocolException.java, java/net/SocketException.java,
1352 java/net/UnknownHostException.java,
1353 java/net/UnknownServiceException.java,
1354 java/text/ParseException.java: Copied from Classpath, thanks to
1355 Mark Wielaard who did the merge.
1357 * java/lang/System.java (getProperty): Use single argument form of
1358 SecurityManager.checkPropertyAccess.
1359 * Makefile.in: Rebuilt.
1360 * Makefile.am (core_java_source_files): Added VMSecurityManager.
1361 * java/lang/VMSecurityManager.java: New file.
1362 * java/lang/SecurityManager.java: Merged with Classpath.
1364 2001-08-31 Per Bothner <per@bothner.com>
1366 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
1367 (_Jv_RegisterClassHookDefault): Likewise.
1368 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
1369 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
1370 (_Jv_RegisterClassHookDefault): New.function.
1371 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
1373 * java/lang/ClassLoader.java (system): Remove static field.
1374 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
1375 directly instead of using it to set the system field.
1376 (loadClass): Use VMClassLoader.instance instead of system field.
1377 (findSystemClass): Similar.
1378 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
1379 than ClassLoader::system which no longer exists.
1380 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
1382 2001-08-31 Tom Tromey <tromey@redhat.com>
1384 * java/io/BufferedReader.java, java/io/ObjectInput.java,
1385 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
1386 Re-merged with Classpath.
1388 Re-merge with Classpath:
1389 * java/util/Comparator (equals): Added.
1390 * java/io/PipedWriter.java (write): Changed argument to `int'.
1392 * java/io/FileDescriptor.java (FileDescriptor()): New
1394 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
1396 * Makefile.in: Rebuilt.
1397 * Makefile.am (ordinary_java_source_files): Removed
1398 EnumerationChain, added DoubleEnumeration.
1399 (nat_source_files): Added natResourceBundle.cc.
1400 * java/util/natResourceBundle.cc: New file.
1401 * gnu/java/util/DoubleEnumeration.java: New file.
1402 * gnu/gcj/util/EnumerationChain.java: Removed.
1403 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
1404 * java/util/ResourceBundle.java: Merged with Classpath.
1405 * java/util/StringTokenizer.java: Merged with Classpath.
1406 * java/util/Locale.java: Merged with Classpath.
1407 * java/util/Random.java: Merged with Classpath.
1408 * java/util/PropertyResourceBundle.java: Merged with Classpath.
1409 * java/util/ListResourceBundle.java: Merged with Classpath.
1410 * java/util/ConcurrentModificationException.java: Re-merged with
1412 * java/util/EmptyStackException.java: Likewise.
1413 * java/util/MissingResourceException.java: Likewise.
1414 * java/util/NoSuchElementException.java: Likewise.
1415 * java/util/TooManyListenersException.java: Likewise.
1417 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
1418 * java/io/OptionalDataException.java: Merged with Classpath.
1420 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
1422 * exception.cc (PERSONALITY_FUNCTION): Simplify
1425 2001-08-31 Tom Tromey <tromey@redhat.com>
1427 * java/io/ByteArrayInputStream.java: Merged with Classpath.
1429 2001-08-30 Tom Tromey <tromey@redhat.com>
1431 * java/io/BufferedReader.java: Re-merged with Classpath.
1433 2001-08-28 Per Bothner <per@bothner.com>
1435 * java/math/BigInteger.java (init(int,Random)): New method.
1436 Move body of constructor <init>(int,Random)) here.
1437 Re-write it to avoid constructing unneeded temporaries.
1438 (<init>(int,int,Random)): Use new init method to avoid constructing
1439 extra temporary BigIntegers.
1441 2001-08-27 Tom Tromey <tromey@redhat.com>
1443 * java/rmi/activation/Activatable.java,
1444 java/rmi/activation/ActivateFailedException.java,
1445 java/rmi/activation/ActivationDesc.java,
1446 java/rmi/activation/ActivationException.java,
1447 java/rmi/activation/ActivationGroup.java,
1448 java/rmi/activation/ActivationGroupDesc.java,
1449 java/rmi/activation/ActivationGroupID.java,
1450 java/rmi/activation/ActivationID.java,
1451 java/rmi/activation/ActivationInstantiator.java,
1452 java/rmi/activation/ActivationMonitor.java,
1453 java/rmi/activation/ActivationSystem.java,
1454 java/rmi/activation/Activator.java,
1455 java/rmi/activation/UnknownGroupException.java,
1456 java/rmi/activation/UnknownObjectException.java,
1457 java/rmi/AccessException.java,
1458 java/rmi/AlreadyBoundException.java,
1459 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
1460 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
1461 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
1462 java/rmi/NotBoundException.java,
1463 java/rmi/RMISecurityException.java,
1464 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
1465 java/rmi/RemoteException.java, java/rmi/ServerError.java,
1466 java/rmi/ServerException.java,
1467 java/rmi/ServerRuntimeException.java,
1468 java/rmi/StubNotFoundException.java,
1469 java/rmi/UnexpectedException.java,
1470 java/rmi/UnknownHostException.java,
1471 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
1472 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
1473 java/rmi/registry/LocateRegistry.java,
1474 java/rmi/registry/Registry.java,
1475 java/rmi/registry/RegistryHandler.java,
1476 java/rmi/server/ExportException.java,
1477 java/rmi/server/LoaderHandler.java,
1478 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
1479 java/rmi/server/Operation.java,
1480 java/rmi/server/RMIClassLoader.java,
1481 java/rmi/server/RMIClientSocketFactory.java,
1482 java/rmi/server/RMIFailureHandler.java,
1483 java/rmi/server/RMIServerSocketFactory.java,
1484 java/rmi/server/RMISocketFactory.java,
1485 java/rmi/server/RemoteCall.java,
1486 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
1487 java/rmi/server/RemoteServer.java,
1488 java/rmi/server/RemoteStub.java,
1489 java/rmi/server/ServerCloneException.java,
1490 java/rmi/server/ServerNotActiveException.java,
1491 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
1492 java/rmi/server/SkeletonMismatchException.java,
1493 java/rmi/server/SkeletonNotFoundException.java,
1494 java/rmi/server/SocketSecurityException.java,
1495 java/rmi/server/UID.java,
1496 java/rmi/server/UnicastRemoteObject.java,
1497 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
1498 gnu/java/rmi/dgc/DGCImpl_Skel.java,
1499 gnu/java/rmi/dgc/DGCImpl_Stub.java,
1500 gnu/java/rmi/registry/RegistryImpl.java,
1501 gnu/java/rmi/registry/RegistryImpl_Skel.java,
1502 gnu/java/rmi/registry/RegistryImpl_Stub.java,
1503 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
1504 gnu/java/rmi/server/ProtocolConstants.java,
1505 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
1506 gnu/java/rmi/server/RMIHashes.java,
1507 gnu/java/rmi/server/RMIObjectInputStream.java,
1508 gnu/java/rmi/server/RMIObjectOutputStream.java,
1509 gnu/java/rmi/server/UnicastConnection.java,
1510 gnu/java/rmi/server/UnicastConnectionManager.java,
1511 gnu/java/rmi/server/UnicastRef.java,
1512 gnu/java/rmi/server/UnicastRemoteCall.java,
1513 gnu/java/rmi/server/UnicastRemoteStub.java,
1514 gnu/java/rmi/server/UnicastServer.java,
1515 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
1516 Kaffe. Relabelled classes to fit into Classpath tree.
1517 * Makefile.in: Rebuilt.
1518 * Makefile.am (rmi_java_source_files): New macro.
1519 (ordinary_java_source_files): Reference it.
1520 (bin_PROGRAMS): Added rmic and rmiregistry.
1521 (rmic_SOURCES): New macro.
1522 (EXTRA_rmic_SOURCES): Likewise.
1523 (rmic_LDFLAGS): Likewise.
1524 (rmic_LINK): Likewise.
1525 (rmic_LDADD): Likewise.
1526 (rmic_DEPENDENCIES): Likewise.
1527 (rmiregistry_SOURCES): New macro.
1528 (EXTRA_rmiregistry_SOURCES): Likewise.
1529 (rmiregistry_LDFLAGS): Likewise.
1530 (rmiregistry_LINK): Likewise.
1531 (rmiregistry_LDADD): Likewise.
1532 (rmiregistry_DEPENDENCIES): Likewise.
1534 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1536 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
1538 * Makefile.am: New friends for java/lang/Thread.h.
1539 * prims.cc (runFirst): Removed.
1540 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
1541 (_Jv_RunMain): Now takes either a klass or class name parameter.
1542 Create a gnu.gcj.runtime.FirstThread and attach the native thread
1543 to that, then run it using _Jv_ThreadRun. Remove special handling of
1544 jar files, instead pass is_jar parameter through to FirstThread.
1545 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
1546 of _Jv_AttachCurrentThread.
1547 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
1548 (run): New method. Take care of looking up main class manifest
1549 attribute and calling forName if necessary. Then call call_main.
1550 (call_main): New native method.
1551 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
1552 relocated from prims.cc. Look up and call main method.
1553 * java/lang/Thread.java (run_): Removed.
1554 * java/lang/natThread.cc (run_): Renamed to...
1555 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
1556 (_Jv_NotifyThreadStart): here. New function.
1557 (countStackFrames, destroy, resume, suspend, stop): Throw
1558 UnsupportedOperationExceptions rather than JvFail'ing.
1559 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
1560 Existing version wraps new variant.
1563 2001-08-23 Tom Tromey <tromey@redhat.com>
1565 * java/lang/reflect/Field.java (toString): Use
1566 Method.appendClassName.
1567 * java/lang/reflect/Constructor.java (toString): Use
1568 Method.appendClassName.
1569 * java/lang/reflect/Method.java: Reindented.
1570 (appendClassName): New method.
1572 * defineclass.cc (handleMethod ): Initialize `throws' field of
1574 (read_one_method_attribute): Handle Exceptions attribute.
1575 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
1576 (ObjectClass): Removed.
1577 (getType): Compute `exception_types'.
1578 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
1580 2001-08-21 Anthony Green <green@redhat.com>
1582 * java/lang/natClassLoader.cc (findClass): Search for
1583 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
1585 2001-08-21 Jeff Sturm <jsturm@one-point.com>
1587 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
1590 2001-08-20 Tom Tromey <tromey@redhat.com>
1592 * java/awt/GridBagConstraints.java: Removed comment.
1594 * jni.cc (nathash, nathash_count, nathash_size): New globals.
1595 (DELETED_ENTRY): New define.
1596 (hash): New function.
1597 (nathash_find_slot): Likewise.
1598 (natrehash): Likewise.
1599 (nathash_add): Likewise.
1600 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
1602 (nathash_find): New function.
1603 (_Jv_LookupJNIMethod): Use it. Synchronize body.
1604 (call): Synchronize around assignment.
1606 2001-08-17 Jeff Sturm <jsturm@one-point.com>
1608 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
1609 starting from zero offset.
1611 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1613 * boehm.cc: Include gc_local_alloc.h if appropriate.
1614 (GC_GENERIC_MALLOC): Don't define.
1615 (MAYBE_MARK): Redefine for GC 6.0.
1616 (_Jv_MarkObj): Mark class differently.
1617 (_Jv_AllocArray): Use GC_generic_malloc.
1619 2001-08-17 Mark J Roberts <mjr@anarcast.net>
1621 * java/math/BigInteger.java (randBytes): New method.
1622 (BigInteger(int,Random)): Use randBytes.
1624 2001-08-17 Tom Tromey <tromey@redhat.com>
1626 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
1628 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1630 * BigInteger.java: fix right shifts by nonzero multiples of 32.
1632 2001-08-15 Tom Tromey <tromey@redhat.com>
1634 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
1635 (local_ref_table, global_ref_table): Now IdentityHashMap.
1636 (_Jv_JNI_Init): Updated for new types.
1637 (mark_for_gc): Likewise.
1638 (unmark_for_gc): Likewise.
1639 * gcj/javaprims.h: Rebuilt class list.
1640 * Makefile.in: Rebuilt.
1641 * Makefile.am (core_java_source_files): Added new file.
1642 * java/util/IdentityHashMap.java: New file.
1644 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
1647 2001-08-09 Tom Tromey <tromey@redhat.com>
1649 * java/awt/image/SampleModel.java (getPixel): Set correct array
1650 element. From Chris Meyer.
1652 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
1654 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
1655 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
1657 2001-08-06 Tom Tromey <tromey@redhat.com>
1659 * java/io/InputStreamReader.java (refill): Only call refill on
1660 BufferedInputStream when appropriate constraints are met.
1662 2001-08-05 Tom Tromey <tromey@redhat.com>
1664 * java/io/StringWriter.java: Merged with Classpath.
1665 * java/io/InputStream.java: Merged with Classpath.
1666 * java/io/OutputStream.java: Merged with Classpath.
1667 * java/io/PushbackInputStream.java: Merged with Classpath.
1668 * java/io/CharArrayReader.java: Merged with Classpath.
1669 * java/io/CharArrayWriter.java: Merged with Classpath.
1671 2001-08-02 Tom Tromey <tromey@redhat.com>
1673 * prims.cc (JNI_OnLoad): Don't declare.
1674 (_JNI_OnLoad): Don't define.
1675 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
1677 2001-08-02 Tom Tromey <tromey@redhat.com>
1679 * java/io/RandomAccessFile.java (seek): Let seek go past end of
1681 (skipBytes): Don't fail if seeking past end of file.
1682 * java/io/FileInputStream.java (skip): Don't fail if seeking past
1684 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
1686 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
1688 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
1690 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
1692 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
1694 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
1695 to initialize global_ref_table/local_ref_table.
1697 2001-08-02 Tom Tromey <tromey@redhat.com>
1699 * configure: Rebuilt.
1700 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
1703 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1705 * include/posix.h (_POSIX_PII_SOCKET): Define.
1706 * configure.in (HAVE_SOCKLEN_T): Define.
1707 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
1709 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
1710 (java::net::PlainSocketImpl::accept): Use it.
1711 Fixes PRs libgcj/3694, libgcj/3696.
1713 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
1714 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
1715 * configure, include/config.h.in: Regenerate.
1716 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
1717 (mcastGrp): Likewise.
1718 (java::net::PlainDatagramSocketImpl::setOption): Guard against
1719 missing IPV6_MULTICAST_IF.
1720 Fixes PR libgcj/3694.
1722 2001-08-01 Jeff Sturm <jsturm@one-point.com>
1724 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
1726 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
1728 * Makefile.in: Rebuilt.
1729 * Makefile.am (GCJLINK): Added --tag=GCJ.
1730 (LIBLINK): Likewise.
1732 2001-07-30 Tom Tromey <tromey@redhat.com>
1734 * java/util/Date.java: Re-merged with Classpath.
1736 2001-07-30 Jeff Sturm <jsturm@one-point.com>
1738 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
1739 (_Jv_bind): New static function.
1740 (bind): Use _Jv_bind.
1741 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1742 (_Jv_bind, _Jv_connect): New static functions.
1743 (bind): Use _Jv_bind.
1744 (connect): Use _Jv_connect.
1746 2001-07-30 Tom Tromey <tromey@redhat.com>
1747 Corey Minyard <minyard@acm.org>
1749 * gnu/gcj/convert/natIconv.cc (done): New methods.
1750 * gnu/gcj/convert/Output_iconv.java (done): New method.
1751 * gnu/gcj/convert/Input_iconv.java (done): New method.
1752 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1754 (getDefaultEncodingClass): Removed.
1755 (getDefaultEncoder): Use getEncoder.
1757 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1759 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1761 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1763 (getDefaultDecodingClass): Removed.
1764 (getDefaultDecoder): Use getDecoder.
1765 (getDecoder): Look up decoder in cache.
1767 * java/lang/natString.cc (init): Call `done' on converter.
1768 (getBytes): Likewise.
1770 2001-07-30 Tom Tromey <tromey@redhat.com>
1772 * java/lang/Integer.java: Merged with Classpath.
1774 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1776 * java/util/GregorianCalendar.java (GregorianCalendar): Call
1777 setTimeInMillis() to set the default/current time.
1779 2001-07-29 Mark Wielaard <mark@klomp.org>
1781 * HACKING: add description on updating namespace
1783 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1785 * java/util/Calendar.java (set): Never recompute fields here. They
1786 will already be set if someone set time explicitly, and it can cause
1787 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1788 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1789 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1791 * java/text/SimpleDateFormat.java (defaultCentury): New field.
1792 (readObject): Call set2DigitYearStart if appropriate so that
1793 defaultCentury is calculated.
1794 (SimpleDateFormat): Don't bother clearing calendar here. Call
1795 computeCenturyStart().
1796 (set2DigitYearStart): Calculate and set defaultCentury.
1797 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1799 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1800 2 numeric digits, use the 80-20 heuristic to parse the value into a
1801 default century based on defaultCenturyStart.
1802 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1804 2001-07-25 Tom Tromey <tromey@redhat.com>
1806 * Makefile.in: Rebuilt.
1807 * Makefile.am (libgcj.jar): Correctly fail when bytecode
1810 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1812 * prims.cc (_JNI_OnLoad): New function.
1813 (JNI_OnLoad): Use it.
1814 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1816 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1818 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1819 Makefile.in: Regenerate.
1821 2001-07-24 Tom Tromey <tromey@redhat.com>
1823 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1826 2001-07-23 Tom Tromey <tromey@redhat.com>
1828 * gcj/javaprims.h: Rebuilt class list.
1829 * Makefile.in: Rebuilt.
1830 * Makefile.am (core_java_source_files): Added VMClassLoader.
1831 * java/lang/VMClassLoader.java: New file.
1832 * java/lang/Boolean.java: Merged with Classpath.
1833 * java/lang/Byte.java: Merged with Classpath.
1834 * java/lang/Integer.java: Merged with Classpath.
1835 * java/lang/Long.java: Merged with Classpath.
1836 * java/lang/Number.java: Merged with Classpath.
1837 * java/lang/Short.java: Merged with Classpath.
1839 2001-07-22 Jeff Sturm <jsturm@one-point.com>
1841 * configure.host: Enable hash synchronization for alpha*-*.
1842 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1844 * java/lang/natObject.cc (compare_and_swap, release_set,
1845 compare_and_swap_release): Added inline functions for alpha.
1847 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1849 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1850 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1851 back to old RFC 2133 variants if missing.
1853 2001-07-18 Tom Tromey <tromey@redhat.com>
1855 * java/io/natFileWin32.cc (_access): Renamed.
1857 * java/io/natFile.cc (_access): Renamed.
1859 * java/io/File.java (access, stat): Add leading `_' to name.
1860 Updated all callers.
1862 2001-07-18 Tom Tromey <tromey@redhat.com>
1865 * libgcj.spec.in (*lib): Added LIBICONV.
1866 * configure: Rebuilt.
1867 * configure.in: Call AM_ICONV. Don't check for iconv function.
1868 Add parameters to JV_HASH_SYNCHRONIZATION define.
1869 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1871 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1873 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1874 not by setting its size field.
1876 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1878 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1881 2001-07-12 Tom Tromey <tromey@redhat.com>
1882 David Brownell <david-b@pacbell.net>
1884 Fix for PR libgcj/3426:
1885 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1887 (read): Throw exception if character conversion fails.
1888 * java/io/BufferedInputStream.java (refill): Now package-private.
1889 * java/io/InputStreamReader.java (ready): Simplified.
1890 (refill): New method.
1893 2001-07-12 Tom Tromey <tromey@redhat.com>
1895 Report from Henner Zeller:
1896 * java/io/FileOutputStream.java (FileOutputStream): Throw
1897 FileNotFoundException, not IOException.
1899 2001-07-10 Anthony Green <green@redhat.com>
1901 * Makefile.in: Rebuilt.
1902 * Makefile.am: Add new files.
1903 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1904 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1905 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1906 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1907 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1908 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1909 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1910 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1911 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1912 org/w3c/dom/ranges/DocumentRange.java,
1913 org/w3c/dom/ranges/Range.java,
1914 org/w3c/dom/ranges/RangeException.java,
1915 org/w3c/dom/traversal/DocumentTraversal.java,
1916 org/w3c/dom/traversal/NodeFilter.java,
1917 org/w3c/dom/traversal/NodeIterator.java,
1918 org/w3c/dom/traversal/TreeWalker.java,
1919 org/xml/sax/ext/DeclHandler.java,
1920 org/xml/sax/ext/LexicalHandler.java,
1921 org/xml/sax/helpers/AttributeListImpl.java,
1922 org/xml/sax/helpers/AttributesImpl.java,
1923 org/xml/sax/helpers/DefaultHandler.java,
1924 org/xml/sax/helpers/LocatorImpl.java,
1925 org/xml/sax/helpers/NamespaceSupport.java,
1926 org/xml/sax/helpers/ParserAdapter.java,
1927 org/xml/sax/helpers/ParserFactory.java,
1928 org/xml/sax/helpers/XMLFilterImpl.java,
1929 org/xml/sax/helpers/XMLReaderAdapter.java,
1930 org/xml/sax/helpers/XMLReaderFactory.java,
1931 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1932 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1933 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1934 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1935 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1936 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1937 org/xml/sax/SAXNotRecognizedException.java,
1938 org/xml/sax/SAXNotSupportedException.java,
1939 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1940 org/xml/sax/XMLReader.java: New files.
1942 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1944 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1945 * Makefile.in: Regenerate.
1946 * java/lang/ThreadLocal.java: Initial import.
1948 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1950 * Makefile.am (libgcj.jar): Don't recursively make
1951 built_java_source_files. Avoid long command lines.
1952 Don't change to $(srcdir) to invoke javac.
1953 (libgcj.la, libgcjx.la); Avoid long command lines.
1954 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1955 * Makefile.in: Rebuilt.
1957 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1959 * include/i386-signal.h: Don't do anything with unsigned divide
1960 overflow except throw an exception.
1962 2001-07-05 Tom Tromey <tromey@redhat.com>
1965 * java/lang/Class.h (Class(void)): Now private. Removed
1966 implementation. From dmorsberger@sensysdl.com.
1968 2001-07-02 Tom Tromey <tromey@redhat.com>
1970 Fix for PR bootstrap/3281:
1971 * aclocal.m4, configure: Rebuilt.
1972 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1973 Correctly compute libgcj_basedir.
1974 (mkinstalldirs): Define and subst.
1976 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1979 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1982 2001-06-27 Tom Tromey <tromey@redhat.com>
1984 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1987 2001-06-25 Tom Tromey <tromey@redhat.com>
1989 * scripts/encodings.pl: Generate lower-case names. Updated URL
1990 for `character-sets' file.
1991 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1993 Rebuilt list of aliases.
1995 2001-06-25 Tom Tromey <tromey@redhat.com>
1997 * java/io/natFileDescriptorPosix.cc (open): Change error message
1998 formatting. From David Brownell.
2000 2001-06-21 Tom Tromey <tromey@redhat.com>
2002 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
2005 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
2007 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
2008 extraneous/malformed sign word.
2010 2001-06-15 Tom Tromey <tromey@redhat.com>
2012 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
2014 2001-06-15 Tom Tromey <tromey@redhat.com>
2016 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
2017 NULL if no library on the list has the symbol.
2018 (init): Call add_library on the program itself.
2019 * prims.cc (JvRunMain): Initialize Runtime before searching for
2021 (_Jv_RunMain): Likewise.
2023 2001-06-15 Tom Tromey <tromey@redhat.com>
2025 * jni.cc (ClassClass): Removed; updated all users.
2026 (ObjectClass): Likewise.
2027 (ThrowableClass): Likewise.
2028 (MethodClass): Likewise.
2029 (ThreadGroupClass): Likewise.
2030 (local_ref_table): Renamed from `ref_table'.
2031 (global_ref_table): New global.
2032 (_Jv_JNI_Init): Initialize both ref tables.
2033 (mark_for_gc): Added `ref_table' parameter.
2034 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
2036 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
2037 (_Jv_JNI_DeleteGlobalRef): Likewise.
2038 (_Jv_JNI_DeleteLocalRef): Likewise.
2039 (_Jv_JNI_NewLocalRef): Likewise.
2040 (_Jv_JNI_PopLocalFrame): Likewise.
2041 (_Jv_JNI_GetStringChars): Likewise.
2042 (_Jv_JNI_ReleaseStringChars): Likewise.
2043 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
2044 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
2046 2001-06-14 Tom Tromey <tromey@redhat.com>
2048 Fix for PR libgcj/3144:
2049 * java/util/Date.java: Merged with Classpath.
2051 2001-06-12 Tom Tromey <tromey@redhat.com>
2053 * aclocal.m4, configure: Rebuilt.
2054 * acinclude.m4: Find configure.host in srcdir.
2056 2001-06-07 Tom Tromey <tromey@redhat.com>
2058 Fix for PR libgcj/3059:
2059 * java/lang/natSystem.cc (init_properties): Define `java.home'.
2060 * Makefile.in: Rebuilt.
2061 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
2063 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
2065 * exception.cc (cstdlib): Replaces stdlib.h.
2066 (_Jv_Throw): Use std::abort().
2067 (PERSONALITY_FUNCTION): Likewise.
2069 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2071 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
2072 nothing, as in autoconf 2.50.
2073 * aclocal.m4, configure: Rebuilt.
2075 2001-06-08 Tom Tromey <tromey@redhat.com>
2077 * configure: Rebuilt.
2078 * configure.in: Compute new aux dir using `pwd'.
2080 2001-06-07 Tom Tromey <tromey@redhat.com>
2082 For PR bootstrap/3075:
2083 * configure, aclocal.m4, Makefile.am: Rebuilt.
2084 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
2085 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
2086 relative to libgcj_basedir.
2087 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
2088 AC_CANONICAL_SYSTEM here.
2089 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
2091 ($(extra_headers)): New target.
2093 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
2094 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2096 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
2097 table index is within allowed bounds. Ensure that we don't try to access
2098 class itable at a negative offset. Avoid an ancestor table lookup if
2099 source is a primitive type class.
2100 (isInstance): Remove redundant isPrimitive() check.
2102 2001-06-04 Tom Tromey <tromey@redhat.com>
2104 * java/security/PublicKey.java: Extend Key.
2105 * java/security/PrivateKey.java: Extend Key.
2107 2001-06-02 Anthony Green <green@redhat.com>
2109 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
2110 alternate when USE_LTDL not defined.
2112 2001-06-02 Anthony Green <green@redhat.com>
2114 * configure: Rebuild.
2115 * configure.in: Remove data_start hack.
2116 * libgcj.spec.in: Ditto.
2117 * Makefile.in: Rebuild.
2118 * Makefile.am: Ditto.
2119 * libgcjdata.c: Remove.
2121 2001-06-02 Anthony Green <green@redhat.com>
2123 * configure: Rebuild.
2124 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
2125 --without-libffi option. Tweak --disable-java-net processing.
2126 * Makefile.in: Rebuild.
2127 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
2128 * include/config.h.in: Rebuild.
2129 * acconfig.h (USE_LIBFFI): Define.
2130 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
2132 2001-06-02 Anthony Green <green@redhat.com>
2134 * configure: Rebuilt.
2135 * configure.in: Test for sigaction on native builds.
2136 * prims.cc: Check HAVE_SIGACTION.
2137 * include/config.h.in: Rebuilt.
2139 2001-05-31 Jeff Sturm <jsturm@one-point.com>
2141 * natFile.cc (get_entry): Removed functions.
2142 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
2143 Allocate enough storage for d_name if using readdir_r.
2145 2001-05-31 Tom Tromey <tromey@redhat.com>
2147 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
2149 (write): Loop until write completes. From Corey Minyard.
2151 2001-05-29 Laurent Guerby <guerby@acm.org>
2153 * java/awt/geom/Rectangle2D.java: fix doc typo.
2155 2001-05-31 Tom Tromey <tromey@redhat.com>
2157 * java/sql/DriverManager.java (getDrivers): Handle case where
2158 driver's class loader is null. From Corey Minyard.
2160 2001-05-29 Tom Tromey <tromey@redhat.com>
2162 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
2164 * configure: Rebuilt.
2165 * configure.in: Only add multilib support code if we just rebuilt
2168 2001-05-29 Andrew Haley <aph@redhat.com>
2170 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
2171 pointer: the dwarf unwinder in libgcc will do everything that's
2173 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
2174 more than we absolutely need to.
2175 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
2176 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
2178 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
2180 * configure: Rebuilt.
2181 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
2183 (SIGNAL_HANDLER): Use siginfo style handler.
2184 (INIT_SEGV): Likewise.
2185 (INIT_FPE): Likewise.
2186 * include/ppc-signal.h: Delete whole file.
2188 2001-05-24 Tom Tromey <tromey@redhat.com>
2190 * java/lang/natString.cc (init): Throw
2191 ArrayIndexOutOfBoundsException.
2192 (getChars): Likewise.
2193 (getBytes): Likewise.
2194 (valueOf): Likewise.
2196 * configure.in: Only allow hash synchronization when POSIX threads
2198 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
2199 of sync info object.
2201 2001-05-23 Tom Tromey <tromey@redhat.com>
2203 * Makefile.in: Rebuilt.
2204 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
2206 Revert patch of 2001-05-21:
2207 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
2208 (libgcj_la_LIBADD): Likewise.
2209 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
2210 (libgcjx_la_LIBADD): Likewise.
2212 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
2213 * gcj/Makefile.in: Rebuilt.
2214 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
2215 * gcj/javaprims.h: Include gcj/libgcj-config.h.
2216 * gcj/libgcj-config.h.in: New file.
2217 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
2218 * configure: Rebuilt.
2219 * configure.in: Enable hash synchronization by default on some
2221 (HASH_SYNC_SPEC): New subst.
2222 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
2223 Correctly use `test -z' instead of `test -n' in a couple places.
2224 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
2226 * configure.host (enable_java_net_default): Initialize.
2227 (enable_hash_synchronization_default): New variable.
2229 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
2231 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
2232 synchronization in use.
2233 (_Jv_MarkArray): Likewise.
2234 (_Jv_AllocBytes): Don't check return result.
2235 (handle_out_of_memory): New function.
2236 (_Jv_InitGC): Set GC_oom_fn.
2237 (trace_one_vtable): New global.
2238 (_Jv_AllocTraceOne): New function.
2239 * configure.in: Added --enable-hash-synchronization.
2240 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
2241 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
2242 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
2243 (_Jv_AllocArray): Likewise.
2244 (_Jv_AllocBytes): Likewise.
2245 (_Jv_AllocPtrFreeObject): New function.
2246 (_Jv_AllocTraceOne): Likewise.
2247 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
2249 (self_cache): New global.
2250 (_Jv_ThreadSelf_out_of_line): New function.
2251 * prims.cc (_Jv_AllocBytesChecked): Removed.
2252 (_Jv_ThrowNoMemory): New function.
2253 (_Jv_AllocObject): Don't check for null return from allocator.
2254 (_Jv_NewObjectArray): Likewise.
2255 (_Jv_AllocPtrFreeObject): New function.
2256 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
2257 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
2258 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
2259 * include/boehm-gc.h (_Jv_AllocObj): Define.
2260 (_Jv_AllocPtrFreeObj): Define.
2261 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
2262 (_Jv_ThrowNoMemory): Declare.
2263 (_Jv_AllocTraceOne): Declare.
2264 (_Jv_AllocBytesChecked): Removed.
2265 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
2266 _Jv_MutexUnlock): Handle LOCK_DEBUG.
2267 (_Jv_ThreadSelf): Handle case where system pthread_self() is
2269 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
2271 * java/lang/Object.h (sync_info): Conditional upon presence of
2272 hash synchronization.
2273 * java/lang/natObject.cc: Much new code to handle thin locks and
2274 hash synchronization.
2275 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
2278 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
2280 * gij.cc (version): Update copyright year.
2282 2001-05-22 Anthony Green <green@redhat.com>
2284 * configure.in: Tweak canadian cross test, and don't redefine GCJ
2287 2001-05-21 Per Bothner <per@bothner.com>
2289 Implement invocation interface; don't create new thread for main.
2290 * java/lang/Thread.java (gen_name): Make native.
2291 (<init>(Thread,THreadGroup,Runnable,String)): New private
2292 constructor, used by other constructors, and _Jv_AttachCurrentThread.
2293 * java/lang/natThread.cc (gen_name): New implementation.
2294 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
2295 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
2296 (_Jv_CreateJavaVM): New runtime initialization procedure.
2297 (runFirst): New proecdure - mostly code from old FirstThread::run.
2298 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
2299 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
2300 JvDetachCurrentThread): New inline wrappers.
2301 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
2302 _Jv_DetachCurrentThread): New declarations.
2303 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
2304 (getMain): new static method.
2305 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
2306 by runFirst in prims.cc.
2307 (java/lang/Thread.h): Update for new invocation interface.
2308 * include/posix-threads.h (_Jv_ThreadRegister,
2309 _Jv_ThreadUnRegister): New declarations.
2310 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2311 (really_start): Use new _Jv_ThreadRegister.
2312 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
2313 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
2314 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
2315 Complain of called when _Jv_OnlyThread already set.
2316 (_Jv_ThreadStart): Always JvFail.
2317 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
2318 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
2319 * win32-threads.cc (struct starter): Remove objet field -
2320 we use _Jv_Thread_t's new thread_obj field instead.
2321 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
2322 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2323 (really_start): Use new _Jv_ThreadRegister.
2324 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
2325 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
2326 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
2327 Removed - no longer needed with new invocation interface.
2328 * Makefile.am: Update for removed/added files.
2330 2001-05-21 Per Bothner <per@bothner.com>
2332 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
2333 (libgcj_la_LIBADD): Likewise.
2334 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
2336 2001-05-21 Per Bothner <per@bothner.com>
2338 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
2339 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
2340 taken from old Integer.toString code.
2341 (Integer::valueOf): Use _Jv_FormatInt.
2342 * java/lang/Integer.java (toString): Just use call String.valueOf.
2343 * java/lang/Long.java (toString): Fix typo in comment.
2344 * java/lang/String.java (valueOf(int)): Make native.
2345 * java/lang/StringBuffer.java (append(int)): Make native.
2346 * java/lang/natStringBuffer.cc: New file, for append(jint).
2347 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
2349 2001-05-21 Tom Tromey <tromey@redhat.com>
2351 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
2353 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
2355 * include/dwarf2-signal.h: New file.
2356 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
2357 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
2358 * configure: Rebuilt.
2360 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2362 * configure.in: Update boehm-gc include dir for new GC version.
2363 * configure: Rebuilt.
2364 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
2366 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
2367 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
2368 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
2371 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
2373 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
2374 (_Jv_MutexInit): Likewise.
2376 2001-05-18 Tom Tromey <tromey@redhat.com>
2378 * Makefile.in: Rebuilt.
2379 * Makefile.am (awt_java_source_files): Added Polygon.java.
2381 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2383 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
2384 * gcj/javaprims.h: ... here.
2385 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
2387 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
2389 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
2390 with length of ioffset table.
2391 (_Jv_IsAssignableFrom): Likewise.
2393 2001-05-17 Per Bothner <per@bothner.com>
2395 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
2397 2001-05-16 Tom Tromey <tromey@redhat.com>
2399 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
2402 2001-05-15 Tom Tromey <tromey@redhat.com>
2404 * java/util/GregorianCalendar.java (computeTime): Only call
2407 2001-05-14 Tom Tromey <tromey@redhat.com>
2409 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
2410 ZONE_OFFSET just before computing the time.
2412 2001-05-12 Zack Weinberg <zackw@stanford.edu>
2414 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
2415 * Makefile.in: Regenerate (by hand).
2416 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
2417 * doc/cni.sgml: Document #pragma GCC java_exceptions.
2419 2001-05-11 Richard Henderson <rth@redhat.com>
2421 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
2422 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
2424 2001-05-11 Richard Henderson <rth@redhat.com>
2426 * exception.cc: Include unwind-pe.h. Remove all pointer
2429 2001-05-10 Tom Tromey <tromey@redhat.com>
2431 * Makefile.in: Rebuilt.
2432 * Makefile.am (awt_java_source_files): Added Polygon.java.
2433 * java/awt/Polygon.java: New file.
2435 * java/awt/geom/AffineTransform.java
2436 (setToRotation(double,double,double)): New method.
2437 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
2438 (setToShear): Likewise.
2440 2001-05-10 Tom Tromey <tromey@redhat.com>
2442 * java/util/GregorianCalendar.java: Imported from Classpath.
2443 * gnu/java/locale/LocaleInformation_nl.java: New file from
2445 * gnu/java/locale/LocaleInformation_en.java: Likewise.
2446 * gnu/java/locale/LocaleInformation_de.java: Likewise.
2447 * gnu/java/locale/LocaleInformation.java: Likewise.
2448 * natGregorianCalendar.cc: Removed.
2449 * Makefile.in: Rebuilt.
2450 * Makefile.am (nat_source_files): Removed
2451 natGregorianCalendar.cc.
2453 2001-05-10 Tom Tromey <tromey@redhat.com>
2455 * java/text/SimpleDateFormat.java (computeCenturyStart): New
2457 (defaultCenturyStart): Use it.
2458 (readObject): Likewise.
2459 (SimpleDateFormat): Clear the calendar. Set the grouping on the
2461 (parse): Copy the calendar before modifying it. Correctly handle
2464 * java/util/Calendar.java (clear): Set field value(s) to 0.
2466 2001-05-10 Jeff Sturm <jsturm@one-point.com>
2468 * Calendar.java (get): Clear areFieldsSet if requested field
2470 (set): Unset fields that depend on new value.
2472 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2474 * java/lang/Class.h (_Jv_Self): New union type.
2475 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
2476 Jeff Sturm and Fergus Henderson.
2478 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2480 * java/lang/ClassLoader.java: Remove dead code fragment.
2482 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
2484 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2486 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2488 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
2490 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
2491 * configure.host (EXCEPTIONSPEC): New.
2492 * configure.in (EXCEPTIONSPEC): New.
2493 * configure: Rebuilt.
2495 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2497 * doc/*.texi: Remove generated documentation.
2499 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2501 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
2502 (performDelete): Fix #endif placement.
2504 2001-04-27 Zack Weinberg <zackw@stanford.edu>
2506 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
2507 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
2508 (_Jv_ThreadDestroyData): Use _Jv_Free.
2509 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
2512 2001-04-27 Tom Tromey <tromey@redhat.com>
2514 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2516 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2518 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
2520 * include/jni.h (struct JNINativeInterface): Fixed types in
2521 Get/Set*ArrayRegion declarations.
2522 (class _Jv_JNIEnv): Likewise.
2524 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
2526 * configure.in: Obtain THREADS with `gcc -v'.
2527 * configure: Rebuilt.
2529 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2532 * java/io/ObjectStreamClass.java (setClass): Calculate
2533 serialVersionUID for local class and compare it against the UID
2534 from the Object Stream. Throw InvalidClassException upon mismatch.
2535 (setUID): Renamed to...
2536 (getClassUID): this. Return the calculated class UID rather than
2537 setting uid field directly.
2538 (getDefinedSUID): Removed.
2539 * java/io/ObjectInputStream.java (resolveClass): Use the
2540 three-argument Class.forName().
2541 * java/io/InvalidClassException (toString): Don't include classname in
2542 result if it is null.
2544 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2546 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
2547 Wrap use of inet_pton in HAVE_INET6.
2549 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2551 java.security merge and ClassLoader compliance fixes.
2553 * java/lang/Class.h (Class): Include ProtectionDomain.h.
2554 New protectionDomain field.
2555 (forName): Add initialize parameter. Fixes declaration to comply with
2557 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
2558 variant. Honour "initialize" flag.
2559 (getProtectionDomain0): New method.
2560 * java/lang/Class.java: Fix forName() declaration.
2561 (getPackage): New method based on Classpath implementation.
2562 (getProtectionDomain0): New native method decl.
2563 (getProtectionDomain): New method.
2564 * java/lang/ClassLoader.java (getParent): Now final.
2565 (definedPackages): New field.
2567 (defineClass): New variant with protectionDomain argument.
2568 (definePackage): New.
2570 (findSystemClass): Now final.
2571 (getSystemResourceAsStream): Remove redundant "final" modifier.
2572 (getSystemResource): Remove redundant "final" modifier.
2573 (getResources): Now final.
2574 (protectionDomainPermission): New static field.
2575 (unknownProtectionDomain): Ditto.
2576 (defaultProtectionDomain): Ditto.
2577 (getSystemClassLoader): Now non-native.
2578 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
2579 arguments for Class.forName().
2580 * java/lang/Package.java: New file.
2581 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
2582 (instance): Static initialize singleton.
2583 (findClass): Override this, not findSystemClass.
2584 * java/lang/natClassLoader.cc (defineClass0): Set class's
2585 protectionDomain field as specified.
2586 (getSystemClassLoader): Removed.
2587 (findClass): Renamed from findSystemClass. Call the interpreter via
2588 URLClassLoader.findClass if loading class via dlopen fails.
2590 * java/security/*.java: java.security import/merge with Classpath.
2591 * java/security/acl/*.java: Likewise.
2592 * java/security/interfaces/*.java: Likewise.
2593 * java/security/spec/*.java: Likewise.
2594 * java/net/NetPermission.java: Likewise.
2595 * java/net/SocketPermission.java: Likewise.
2596 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
2598 * Makefile.am: Add new classes.
2599 * Makefile.in: Rebuilt.
2600 * gcj/javaprims.h: CNI namespace rebuild.
2602 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
2604 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
2605 for libtool tests. Pre-create gnu/classpath/Configuration.java.
2606 * configure: Rebuilt.
2608 2001-04-21 Tom Tromey <tromey@redhat.com>
2610 * Makefile.in: Rebuilt.
2611 * Makefile.am (awt_java_source_files): Added Line2D.java.
2612 * java/awt/geom/Line2D.java: Wrote.
2614 * java/awt/Menu.java (addNotify): Wrote.
2616 * java/awt/PopupMenu.java (addNotify): Implemented.
2619 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
2620 * java/awt/List.java (addNotify): Call super.addNotify.
2621 * java/awt/Label.java (addNotify): Call super.addNotify.
2622 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
2623 * java/awt/Dialog.java (addNotify): Call super.addNotify.
2624 * java/awt/Choice.java (addNotify): Call super.addNotify.
2625 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
2626 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
2628 * java/awt/List.java (replaceItem): Notify peer.
2630 * java/awt/geom/Rectangle2D.java
2631 (Float.setRect(float,float,float,float)): New method.
2633 * java/awt/event/ContainerEvent.java (getContainer): Now returns
2636 * java/awt/RenderingHints.java (Key): Class now public.
2638 * java/awt/Rectangle.java (Rectangle): Now implements
2640 (getPathIterator): Removed.
2642 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
2645 * java/awt/FileDialog.java: Wrote.
2647 * java/awt/EventQueue.java (isDispatchThread): Now public.
2648 (invokeLater): Likewise.
2650 * java/awt/Component.java (setCursor): Update peer.
2651 (getFontMetrics): Use peer.
2653 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
2656 2001-04-20 Tom Tromey <tromey@redhat.com>
2658 * java/awt/List.java: Wrote.
2659 * java/awt/Dialog.java: Wrote.
2661 2001-04-20 Warren Levy <warrenl@redhat.com>
2663 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
2664 * java/text/SimpleDateFormat.java
2665 (indexInArray): Removed private method.
2666 (processYear): Removed private method.
2667 (parseLenient): Removed private method.
2668 (parseLeadingZeros): Removed private method.
2669 (parseStrict): Removed private method.
2670 (expect): Added new private method.
2671 (parse): Reverted to pre-Classpath merge version with minor fixes.
2672 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
2675 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
2677 * java/io/File.java (normalizePath): New private method.
2678 (File (String)): Use normalizePath().
2679 (File (String, String)): Likewise.
2681 * Makefile.am (libffi_files): Removed.
2682 (libgcj.la): Link libffi as a convenience library instead of
2683 refering to its object files directly.
2684 * Makefile.in: Rebuilt.
2686 2001-04-08 Per Bothner <per@bothner.com>
2688 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
2689 Recalculate hash, since Utf8Const's hash is only 16 bits.
2691 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
2692 bits of hash to calculate step for chaining.
2694 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
2695 when 2/3 full, rather than 3/4 full.
2697 2001-04-06 Tom Tromey <tromey@redhat.com>
2699 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
2700 (wrap_value<T*>): New specialization.
2701 (_Jv_JNI_PopLocalFrame): Update env->locals.
2703 2001-04-05 Tom Tromey <tromey@redhat.com>
2705 * libtool-version: Updated current.
2707 2001-04-04 Andreas Jaeger <aj@suse.de>
2709 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2710 * gcj/Makefile.in: Rebuilt.
2711 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2712 * Makefile.in: Rebuilt.
2713 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2714 * testsuite/Makefile.in: Rebuild.
2715 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2716 * include/Makefile.in: Rebuild.
2718 2001-04-02 Zack Weinberg <zackw@stanford.edu>
2720 * testsuite/lib/libjava.exp: Correct typo: 'output from source
2721 compiled test', not 'execution from source compiled test'.
2722 Use UNTESTED, not XFAIL, for tests which are not run because
2723 they depend on a previous test which failed.
2725 2001-04-02 Richard Henderson <rth@redhat.com>
2727 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
2728 the same tree as gcc.
2729 * configure: Rebuilt.
2731 * exception.cc (_Jv_Throw): Clarify commentary.
2733 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
2735 * jni.cc (wrap_value<jclass>): New specialization.
2737 2001-04-02 Tom Tromey <tromey@redhat.com>
2739 * java/io/PrintStream.java (out): Removed field. Fixes PR
2741 (write): Call flush, not out.flush, per spec.
2742 (close): Flush output stream, per spec. Handle
2743 InterruptedIOException.
2744 (checkError): Likewise.
2745 (flush, print, write): Handle InterruptedIOException per spec.
2746 (PrintStream): Don't create BufferedOutputStream.
2747 (work_bytes): New field.
2748 (writeChars): Use work_bytes. Don't assume `out' is a
2749 BufferedOutputStream.
2751 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
2753 * java/text/MessageFormat.java (setLocale): Added missing `else'.
2756 2001-03-30 Tom Tromey <tromey@redhat.com>
2758 * jni.cc (add_char): Correctly encode non-ascii characters.
2759 (add_char): Define even when INTERPRETER not defined.
2760 (mangled_name): Likewise.
2761 (_Jv_GetJNIEnvNewFrame): Likewise.
2762 (_Jv_LookupJNIMethod): Likewise.
2764 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
2766 * configure.host: Enable interpreter for PPC.
2768 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
2770 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2771 to "file.separator", "path.separator", and "java.io.tmpdir" property
2773 * java/io/File.java: Likewise.
2774 * java/io/natFile.cc (init_native): Likewise.
2775 * java/io/natFileWin32.cc (init_native): Likewise.
2777 2001-04-01 Per Bothner <per@bothner.com>
2779 * java/lang/natString.cc (intern): If string's data does not point to
2780 this String, make a fresh String that does.
2782 * java/lang/natString.cc (unintern): Replace by static function.
2783 * java/lang/String.java (unintern): Remove method.
2785 2001-04-01 Per Bothner <per@bothner.com>
2787 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
2788 (finish): def.deflate needs to be called in a loop.
2789 (inbuf, inbufLength): New private fields.
2790 (write(int)): Use inbuf.
2791 (write(byte[],int,int): Check if pending output in inbuf.
2792 * ZipOutputStream.java: Don't use Deflater if stored.
2793 Use a Checksum object directly, not via a CheckedOutputStream.
2794 (uncompressed_size): New field,
2795 (closeEntry): Only write data_directory if needed.
2796 (write): If STORED, write directly.
2797 Always update crc, and uncompressed_size.
2798 (write_entry): Fix lots of protocol erors.
2800 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
2802 1.3-Compliant Implementation of java.io.File.
2803 * java/lang/natSystem.cc (init_properties): Get "file.separator",
2804 "path.separator", and "java.io.tmpdir" from the File class, instead
2805 of setting them explicitly.
2806 * java/io/File.java: Do not canonicalize paths for security manager
2807 checks. Call init_native() from static initializer. Do not pass path
2808 argument to native methods. New native method declarations. Some
2809 security manager checks moved to checkWrite().
2810 (equals): Check file system case sensitivity and act appropriatly.
2811 (hashCode): Likewise.
2812 (isHidden): New method implemented.
2813 (performList): Changed prototype. Now takes a class argument specifying
2814 the class of the returned array: Strings or File objects. Also added
2815 FileFilter argument.
2816 (listFiles): New variants with "File" return type implemented.
2817 (createTempFile): Use createNewFile(). Use maxPathLen.
2818 (setReadOnly): New method implemented.
2819 (listRoots): Likewise.
2820 (compareTo): Likewise.
2821 (setLastModified): Likewise.
2822 (checkWrite): New method.
2824 * java/io/natFile.cc: Various functions no longer take canonical path
2826 (stat): Handle ISHIDDEN query.
2827 (isAbsolute): Remove WIN32 cruft.
2828 (performList): New arguments. Handle returning either File[] or String[]
2829 arrays. Check with FileFilter or FilenameFilter arguments as
2830 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2831 (performSetReadOnly): New method implemented.
2832 (performListRoots): Likewise.
2833 (performSetLastModified): Likewise.
2834 (performCreate): Likewise.
2835 (init_native): New initialization function.
2836 * java/io/natFileWin32.cc: Various functions no longer take canonical
2838 (stat): Add FIXME about ISHIDDEN query.
2839 (performList): New arguments. Handle returning either File[] or String[]
2840 arrays. Check with FileFilter or FilenameFilter arguments as
2841 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2842 (performSetReadOnly): New. Stubbed.
2843 (performListRoots): Likewise.
2844 (performSetLastModified): Likewise.
2845 (performCreate): Likewise.
2846 (init_native) New initialization function.
2847 * configure.in: Check for utime() and chmod().
2848 * configure: Rebuilt.
2849 * include/config.h.in: Rebuilt.
2851 Resolves PR libgcj/1759.
2853 2001-03-28 Richard Henderson <rth@redhat.com>
2855 IA-64 ABI Exception Handling:
2856 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2857 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2858 Remove EXCEPTIONSPEC.
2859 * configure.host (libgcj_sjlj): Remove.
2860 * configure.in (EXCEPTIONSPEC): Remove.
2861 (enable-sjlj-exceptions): Detect if not specified.
2862 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2863 what header we're looking for.
2864 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2865 * Makefile.in, configure: Regenerate.
2866 * exception.cc: Don't declare libgcc2 stuff.
2867 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2868 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2869 (win32_get_restart_frame): Remove.
2870 (struct java_exception_header): New.
2871 (__gcj_exception_class): New.
2872 (get_exception_header_from_ue): New.
2873 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2874 (size_of_encoded_value, read_encoded_value): New.
2875 (read_uleb128, read_sleb128, parse_lsda_header): New.
2876 (get_ttype_entry, __gcj_personality_sj0): New.
2877 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2879 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2881 * javax/naming/InitialContext.java (init): Fix typo.
2882 (composeName): Remove unnecessary semicolon.
2883 (addToEnvironment): Remove unnecessary semicolon.
2884 (addToEnvironment): Use put() instead of add().
2886 * javax/naming/InitialContext.java (InitialContext):
2888 (destroySubcontext): Method doesn't return a result.
2889 * javax/naming/Context.java: Import java.util.Hashtable.
2890 * javax/naming/Name.java: Import java.util.Enumeration.
2892 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2894 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2895 objects in subdirectories.
2896 * Makefile.in: Rebuilt.
2898 2001-03-25 Richard Henderson <rth@redhat.com>
2900 * exception.cc (java_eh_info): Make value type jthrowable.
2901 (_Jv_type_matcher): Remove now unneeded cast.
2902 (_Jv_Throw): Make argument type jthrowable. Munge name
2903 for SJLJ_EXCEPTIONS here ...
2904 * gcj/cni.h: ... not here.
2906 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2908 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2909 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2910 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2911 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2912 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2913 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2914 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2915 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2916 java/lang/natDouble.cc, java/lang/natObject.cc,
2917 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2918 java/lang/natString.cc, java/lang/natSystem.cc,
2919 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2920 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2921 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2922 java/util/zip/natInflater.cc:
2923 Use throw, not JvThrow or _Jv_Throw.
2925 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2927 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2928 paramater, bump it to 1.
2929 * java/util/Hashtable.java (Hashtable): Likewise.
2931 2001-03-23 Per Bothner <per@bothner.com>
2933 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2934 check for errors, since we don't want to throw exception on
2935 overflow/underflow. Instead, trim whitespace, and then check that
2936 _strtod_r uses up all the rest of the string.
2938 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2939 ancestors array is invalid for interfaces, so do that *after*
2940 check that the target type is not an interface.
2942 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2944 * prims.cc (_Jv_FindClassFromSignature): Check return of
2945 recursive call. Do not abort on invalid signature; return NULL
2948 2001-03-22 Tom Tromey <tromey@redhat.com>
2950 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2951 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2953 * include/jvm.h (_Jv_ResolveField): Declare.
2954 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2955 * resolve.cc (_Jv_ResolveField): No longer conditional on
2958 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2960 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2961 for libtool hacking.
2962 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2963 to a temporary file, then invoke libtool with the -objectlist
2965 (libgcjx.la): Likewise.
2966 * Makefile.in: Rebuilt.
2968 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2970 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2972 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2974 * jni.cc (add_char): Handle `.' like `/'.
2976 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2978 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2979 initialize if exception_types is null.
2980 * java/lang/reflect/Constructor.java: Likewise.
2981 * java/lang/reflect/natConstructor.cc (getType): Initialize
2982 exception_types to an empty Object array.
2984 2001-03-21 Tom Tromey <tromey@redhat.com>
2986 * configure: Rebuilt.
2987 * configure.in (GCJFLAGS): Subst.
2988 * Makefile.in: Rebuilt.
2989 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2990 (gij_LDFLAGS): Likewise.
2991 (JC1FLAGS): Added GCJFLAGS and removed -g.
2993 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2994 read/write case. Fixes PR libgcj/2338.
2996 2001-03-20 Warren Levy <warrenl@redhat.com>
2998 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2999 and corrected SimpleTimeZone's for the timezones hash table.
3001 2001-03-19 Per Bothner <per@bothner.com>
3003 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
3004 "canonicalize" "../../xxx" to "/xxx".
3006 2001-03-19 Mark Wielaard <mark@klomp.org>
3008 * java/util/ArrayList.java: Remove RCS keywords from comments
3009 * java/util/BasicMapEntry.java: idem
3010 * java/util/Dictionary.java: idem
3011 * java/util/HashSet.java: idem
3013 * java/util/EventObject.java: reindent
3014 * java/util/Properties.java: idem
3015 * java/util/SortedMap.java: idem
3017 * java/util/Enumeration.java: Merge with Classpath
3018 * java/util/EventListener.java: idem
3019 * java/util/Observable.java: idem
3020 * java/util/Observer.java: idem
3021 * java/util/Stack.java: idem
3023 2001-03-17 Tom Tromey <tromey@redhat.com>
3025 * java/lang/natString.cc (rehash): Don't bother with memset;
3026 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
3028 (UNMASK_PTR): New macro.
3029 (intern): Unmask pointer before returning it. Register finalizer
3031 (unintern): Handle case where
3032 (MASK_PTR): New macro.
3033 (PTR_MAKSED): Likewise.
3034 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
3036 2001-03-01 Andrew Haley <aph@redhat.com>
3038 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
3039 stackTrace buffer to a correctly aligned pointer array.
3041 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
3043 * java/lang/Runtime.java (_exit): Declare new package-private native.
3044 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
3045 without a security manager check.
3046 (exit): Call _exit after security check.
3047 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
3049 * java/lang/System.java (setSecurityManager): If a security manager
3050 is already in place, call checkPermission.
3051 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
3052 throws an exception, try to deal with it gracefully.
3053 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3054 Only try to print the subordinate stack trace if "exception" is set.
3055 Print our class name first.
3057 2001-03-08 Tom Tromey <tromey@redhat.com>
3059 * java/io/ObjectStreamClass.java (setUID): Don't write interface
3060 info for array classes.
3061 Fixes PR libgcj/1971.
3063 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
3065 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
3068 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
3070 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
3071 instead of the new JDK1.2 API. This is simpler and makes
3072 back-porting the classes to JDK1.1 trivial.
3073 (readObject): likewise.
3075 2001-03-01 Per Bothner <per@bothner.com>
3077 Changes merged from Kawa's gnu.math.
3078 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
3079 (rshift(int[],int[],int,int): Removed - not needed.
3080 (gcd): Use rshift0 rather than rshift.
3081 * java/math/BigInteger.java (setShiftRight): Likewise.
3082 (divide): Simplify by using rshift0.
3083 (divide): Zero-extend results if high-order bit set.
3085 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
3087 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
3090 2001-02-23 Per Bothner <per@bothner.com>
3092 Change to sometimes include class name in ClassFormatError message.
3093 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
3094 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
3095 boolean instead of throwing ClassFormatError on failure.
3096 (throw_class_format_error): Change static function to method.
3097 (_Jv_ClassReader): New inline methods verify_identifier,
3098 two overloads of verify_classname, verify_field_signature, and
3099 verify_method_signature
3100 * include/java-interp.h: Update declarations to return bool.
3101 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
3102 ClassFormatError since _Jv_VerifyClassName now returns bool.
3104 2001-02-23 Per Bothner <per@bothner.com>
3106 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
3107 c++filt to select java-style output.
3109 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
3111 Fix for PR java/2040:
3112 * java/util/HashMap.java (HashMap): Don't throw exception for
3113 loadFactor > 1. Add exception messages.
3114 * java/util/Hashtable.java (Hashtable): Likewise.
3116 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
3118 Disable libgcjx by default.
3119 * configure.in: Add support for --enable-java-awt configure option.
3120 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
3121 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
3122 * Makefile.in: Rebuilt.
3123 * configure: Rebuilt.
3125 2001-02-20 Tom Tromey <tromey@redhat.com>
3127 * java/io/PipedWriter.java (flush): Throw exception if stream
3129 * java/io/OutputStreamWriter.java (write): Throw exception if
3131 (writeChars): Don't throw exception if stream closed.
3132 * java/io/CharArrayWriter.java (closed): New field.
3134 (flush): Throw exception if stream closed.
3135 (reset): Synchronize on correct lock. Allow stream to be
3137 (toCharArray, toString, writeTo): Synchronize.
3138 (write): Throwe exception if stream closed.
3139 * java/io/BufferedWriter.java (close): Clear `buffer'.
3140 (flush): Throw IOException if stream is closed.
3143 2001-02-16 Tom Tromey <tromey@cygnus.com>
3145 * java/lang/ThreadGroup.java (activeCount): Only include threads
3147 (enumerate): Likewise.
3149 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
3151 * java/lang/Integer.java (getInteger): Return default argument if
3152 property is not set. Don't call decode with null argument.
3153 * java/lang/Long.java (getLong): Likewise.
3155 * java/io/CharArrayReader.java (CharArrayReader): Throw
3156 IllegalArgumentException if constructor arguments are illegal.
3157 (ready): Return false if no more characters can be read.
3158 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
3160 2001-02-17 Mark Wielaard <mark@klomp.org>
3162 * java/util/TimerTask.java: New version from Classpath.
3164 2001-02-17 Mark Wielaard <mark@klomp.org>
3166 Remerge with Classpath
3167 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
3168 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
3169 (readByte): Use convertToByte().
3170 (readChar): Use convertToChar().
3171 (readInt): Use convertToInt().
3172 (readLong): Use convertToLong().
3173 (readShort): Use convertToShort().
3174 (readUnsignedByte): Use convertToUnsignedByte().
3175 (readUnsignedShort): Use convertToUnsignedShort().
3176 (readUTF): Use convertToUTF().
3178 (convertToBoolean): Resurrected.
3179 (convertToByte): Ditto.
3180 (convertToChar): Ditto.
3181 (convertToInt): Ditto.
3182 (convertToLong): Ditto.
3183 (convertToShort): Ditto.
3184 (convertToUnsignedByte): Ditto.
3185 (convertToUnsignedShort): Ditto.
3186 (convertToUTF): Ditto.
3188 2001-02-17 Mark Wielaard <mark@klomp.org>
3192 2001-02-17 Mark Wielaard <mark@klomp.org>
3194 * java/io/DataInputStream.java: update copyright notice
3195 * java/io/PrintWriter.java: idem
3196 * java/io/Reader.java: idem
3197 * java/io/StreamTokenizer.java: idem
3198 * java/io/StringReader.java: idem
3199 * java/lang/reflect/ReflectPermission.java: idem
3201 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
3203 * java/util/TreeSet.java (clone): Made subclass safe, use
3204 super.clone(), not new.
3205 * java/util/TreeMap.java (clone): Likewise.
3207 * java/util/TreeMap.java (nil): Made non-final.
3208 (clone): Create new nil node for copy.
3210 * java/util/HashSet.java (clone): Made subclass safe, use
3211 super.clone(), not new.
3213 2001-02-14 Andrew Haley <aph@redhat.com>
3215 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
3218 2001-02-15 Anthony Green <green@redhat.com>
3220 * defineclass.cc: Don't include alloca.h.
3221 (prepare_pool_entry): Convert alloca to __builtin_alloca.
3222 * interpret.cc (run_normal): Ditto.
3224 * java/lang/natDouble.cc (parseDouble): Ditto.
3226 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
3228 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
3230 * java/util/Collections.java (ReverseComparator): New static class.
3231 (reverseOrder): Return static instance of ReverseComparator.
3233 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
3234 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
3235 Rectangle.clone(), not Object.clone().
3237 * java/util/HashSet.java (clone): Remove try/catch.
3239 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
3240 * java/util/Collection.java: Likewise.
3241 * java/util/Comparator.java: Likewise.
3242 * java/util/Dictionary.java: Likewise.
3243 * java/util/Iterator.java: Likewise.
3244 * java/util/ListIterator.java: Likewise.
3245 * java/util/Map.java: Likewise.
3246 * java/util/Set.java: Likewise.
3248 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
3250 * java/util/TreeMap.java: New file.
3251 * java/util/TreeSet.java: New file.
3252 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
3253 * Makefile.in: Rebuilt.
3254 * java/util/HashSet.java (clone): Use constructor instead of calling
3256 * java/util/SortedSet.java: Sync with classpath.
3257 * java/util/HashMap.java (hash): Use if statement instead of ternary,
3260 * java/lang/natClass.cc (getSignature): Don't try to dereference
3261 param_types if it is null. Instead, take this to mean "no parameters".
3262 * java/lang/TreeMap.java (TreeIterator.next): Throw
3263 NoSuchElementException in preference to ConcurrentModificationException.
3264 (TreeIterator.remove): Throw IllegalStateException in preference to
3265 ConcurrentModificationException.
3266 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
3267 throw a NoSuchElementException.
3268 (SubMap.lastKey): Likewise.
3270 2001-02-13 Tom Tromey <tromey@redhat.com>
3272 * java/io/PipedReader.java (ready): Throw IOException if pipe
3274 * java/io/FilterReader.java (close): Don't clear `in'.
3275 * java/io/CharArrayReader.java (mark): Throw IOException if stream
3277 (read, ready, reset, skip): Added exception message.
3278 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
3279 Perform checkStatus check inside synchronized block.
3281 2001-02-13 Tom Tromey <tromey@redhat.com>
3283 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
3285 2001-02-13 Tom Tromey <tromey@redhat.com>
3287 Fix for PR libgcj/1351:
3288 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
3290 Include Thread.h and InterruptedIOException.h.
3292 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
3294 * java/io/BlockDataException.java: Removed.
3295 * java/io/ObjectInputStream.java (readObject): Throw
3296 StreamCorruptedException, not BlockDataException.
3297 * Makefile.am: Remove BlockDataException.
3298 * Makefile.in: Rebuild.
3300 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
3301 Tom Tromey <tromey@redhat.com>
3303 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
3306 2001-02-09 Tom Tromey <tromey@redhat.com>
3308 * java/util/Timer.java: New version from Classpath.
3310 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
3312 * java/lang/Double.java (doubleToRawLongBits): Now native.
3313 * java/lang/Float.java (floatToRawIntBits): Likewise.
3314 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
3315 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
3317 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
3319 * java/io/File.java (java.net): Imported.
3320 (getAbsoluteFile): Added.
3321 (getCanonicalPath): Likewise.
3324 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
3326 * java/lang/Byte.java: Remove redundant instanceof and null checks.
3327 * java/lang/Integer.java: Likewise.
3328 * java/lang/Long.java: Likewise.
3329 * java/lang/Short.java: Likewise.
3330 * java/lang/Double.java: Likewise.
3331 (doubleToRawLongBits): New method.
3332 * java/lang/Float.java: As above.
3333 (floatToRawIntBits): New method.
3335 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
3336 IOException if stream closed.
3338 2001-02-08 Tom Tromey <tromey@redhat.com>
3340 * java/lang/Float.java (parseFloat): New method.
3342 2001-02-08 Tom Tromey <tromey@redhat.com>
3344 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
3345 * java/io/InputStreamReader.java (ready, read): Throw IOException
3346 if stream has been closed.
3348 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3350 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
3351 Change sources.redhat.com and sourceware.cygnus.com references to
3354 2001-02-07 Tom Tromey <tromey@redhat.com>
3356 Fix for PR libgcj/1906:
3357 * java/text/MessageFormat.java (setLocale): Use named class
3360 (format(Object,StringBuffer,FieldPosition)): Special case if
3361 argument is an Object[].
3363 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
3365 * java/util/Arrays.java: Removed "cmp" methods.
3366 (qsort): Don't use "cmp".
3369 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
3371 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
3372 sort. Fix for PR java/1895.
3374 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
3376 * configure.host: Use sjlj-exceptions for Alpha.
3378 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
3380 * libgcj.spec.in: Don't force static libgcc into the executable.
3381 * configure.in (FORCELIBGCCSPEC): Removed.
3382 * configure: Rebuilt.
3384 2001-01-31 Tom Tromey <tromey@redhat.com>
3386 * Makefile.in: Rebuilt.
3387 * Makefile.am (LTCXXCOMPILE): New macro.
3389 2001-01-26 Andrew Haley <aph@redhat.com>
3391 (INIT_FPE): Use a direct system call to set the handler.
3393 2001-01-27 Richard Henderson <rth@redhat.com>
3395 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
3397 2001-01-27 Tom Tromey <tromey@redhat.com>
3399 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
3400 native interface structure.
3402 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
3404 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
3406 (read (byte[], int, int)): Only call readNextBlock() if the block
3407 buffer would actually be overrun. Increment blockDataPosition.
3408 (callReadMethod): Propagate exceptions from invocation target.
3409 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
3410 exceptions from invocation target.
3412 2001-01-26 Tom Tromey <tromey@redhat.com>
3414 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
3415 to internal representation.
3416 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
3417 _Jv_FindClassFromSignature.
3419 2001-01-26 Warren Levy <warrenl@redhat.com>
3421 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
3422 and timezone if they are available on the system.
3424 2001-01-24 Tom Tromey <tromey@redhat.com>
3426 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
3428 2001-01-24 Tom Tromey <tromey@redhat.com>
3430 * Makefile.in: Rebuilt.
3431 * Makefile.am (c_source_files): Added sf_fabs.c.
3432 * java/lang/sf_fabs.c: New file.
3434 2001-01-19 Warren Levy <warrenl@redhat.com>
3436 * java/text/SimpleDateFormat.java (format): Compute hour for cases
3437 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
3438 correctly. Adjust properly from 0-23 clock hour.
3440 2001-01-17 Mark Wielaard <mark@klomp.org>
3442 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
3444 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
3446 * java/lang/Class.h (isInterface): Move implementation from
3447 natClass.cc. Declare inline.
3448 (Class): Add default constructor.
3449 * java/lang/Object.h: Update comments.
3450 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
3451 initialize superclass, saving a call if super is already initialized.
3453 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
3455 * prims.cc (init_prim_class): Deleted.
3456 (DECLARE_PRIM_TYPE): Rewritten.
3457 * java/lang/Class.h (stdio.h): Include removed.
3458 (stddef.h): Included.
3459 (java/lang/reflect/Modifier.h): Likewise.
3460 (Class): Contructor now takes arguments, initializes fields.
3461 (initializePrim): Prototype deleted.
3462 * java/lang/natClass.cc (initializePrim): Deleted.
3464 2001-01-16 Warren Levy <warrenl@redhat.com>
3466 * java/math/BigInteger.java: Update Copyright year.
3468 2001-01-16 Hans Boehm <hans_boehm@hp.com>
3470 * java/math/BigInteger.java (setShiftRight): Only do negative shift
3473 2001-01-14 Mark Wielaard <mark@klomp.org>
3474 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
3475 (decode): Merge comments with Classpath, don't throw Exception
3477 2001-01-12 Tom Tromey <tromey@redhat.com>
3479 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
3483 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
3484 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
3485 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
3486 * gnu/awt/gtk/GtkLabelPeer.java: New file.
3487 * gnu/awt/gtk/GtkButtonPeer.java: New file.
3489 * java/lang/natSystem.cc: Include locale.h if it exists.
3490 * configure: Rebuilt.
3491 * configure.in: Check for locale.h.
3493 2001-01-11 Tom Tromey <tromey@redhat.com>
3495 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
3496 (Cursor(int), getPredefinedCursor): Throw exception if argument
3499 2001-01-03 Tom Tromey <tromey@redhat.com>
3501 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
3502 (getLocationOnScreen): Wrote.
3504 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
3506 * Makefile.am: Re-enable dependencies.
3507 * Makefile.in: Rebuilt.
3509 2001-01-10 Warren Levy <warrenl@redhat.com>
3511 * java/math/BigDecimal.java (divide): Fixed comment.
3513 2001-01-10 Warren Levy <warrenl@redhat.com>
3515 Fix for PR libgcj/1596:
3516 * java/math/BigDecimal.java (divide): Check newScale for validity.
3517 Ensure that BigInteger.pow() is called with a non-negative value.
3518 (setScale (int)): New public method.
3519 (setScale (int,int)): New public method.
3521 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
3523 Fix for PR libgcj/1338:
3524 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
3525 commentChar. Fixed typos in comments.
3527 2001-01-08 Warren Levy <warrenl@redhat.com>
3529 Fix for PR libgcj/1411:
3530 * Makefile.am: Removed java/util/natTimeZone.cc.
3531 * Makefile.in: Rebuilt.
3532 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
3533 missing localized timezone names.
3534 * java/lang/System.java (getDefaultTimeZoneId): New private method.
3535 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
3536 (init_properties): Set user.timezone property.
3537 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3538 default timezone names; removed non-standard ones. Use standard
3540 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
3542 * java/util/TimeZone.java: Add standard ID names per JCL; removed
3544 (getDefaultTimeZoneId): Removed.
3546 * java/util/natTimeZone.cc: Removed.
3548 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3550 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
3551 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
3552 (_Jv_GetArrayClass): New inline function.
3553 (arrayclass): New field.
3554 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
3555 _Jv_GetArrayElementFromElementType.
3556 (_Jv_NewPrimArray): Ditto.
3557 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
3558 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
3559 Set Modifier::ABSTRACT.
3560 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
3561 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
3562 Now synchronized. Array classes are now referenced from
3563 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
3564 Set array classes' accessibility flags correctly. Optimize so that
3565 all array classes share the same IDT.
3566 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
3567 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
3568 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
3569 in superclasses from overwriting classes own fields.
3570 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
3571 Modifier::isAbstract().
3572 (null_idt): New static field.
3573 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
3575 (_Jv_IndexOf): Made inline.
3576 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
3578 2001-01-08 Tom Tromey <tromey@redhat.com>
3580 Fix for PR java/1586:
3581 * Makefile.in: Rebuilt.
3582 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
3584 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3586 * Makefile.am: Use the new "-M -MF" option for generating dependencies
3587 from the c++ compiler.
3588 * Makefile.in: Rebuilt.
3590 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
3592 All files with updated copyright.
3593 * prims.cc (class _Jv_PrimClass): Removed.
3594 (init_prim_class): New function.
3595 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
3596 `_Jv_PrimClass' in primitive type declarations. Assign to the
3597 value returned by `init_prim_class.'
3598 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
3599 primitive type declarations.
3600 (JvPrimClass): Cast to `jclass' removed.
3601 * java/lang/Class.h (Class): New constructor.
3602 (Class): New copy constructor.
3603 (initializePrim): New prototype.
3604 (_Jv_PrimClass): Field removed.
3605 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
3606 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
3607 (class java::lang::Object): `finalize' moved up front.
3608 * java/lang/natClass.cc
3609 (isAssignableFrom): Turned outline.
3610 (isInstance): Likewise.
3611 (isInterface): Likewise, fixed indentation.
3612 (initializePrim): New function.
3614 2001-01-07 Anthony Green <green@redhat.com>
3616 * Makefile.am (texinfo): Add texinfo target for generating texinfo
3618 * Makefile.in: Rebuilt.
3620 * scripts/TexinfoDoclet.java: New file.
3622 * doc/java-applet.texi, doc/java-lang-reflect.texi,
3623 doc/java-awt-color.texi, doc/java-lang.texi,
3624 doc/java-awt-datatransfer.texi, doc/java-math.texi,
3625 doc/java-awt-event.texi, doc/java-net.texi,
3626 doc/java-awt-geom.texi, doc/java-security-spec.texi,
3627 doc/java-awt-image.texi, doc/java-security.texi,
3628 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
3629 doc/java-text.texi, doc/java-beans-beancontext.texi,
3630 doc/java-util-jar.texi, doc/java-beans.texi,
3631 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
3632 doc/java-lang-ref.texi: New files.
3634 2001-01-07 Anthony Green <green@redhat.com>
3636 * java/net/URLConnection.java (setDoOutput): URLConnection's may
3637 be used for both input and output, so don't clear doInput.
3639 * java/lang/StringBuffer.java: Fix comments.
3641 2001-01-06 Anthony Green <green@redhat.com>
3643 * java/beans/PropertyDescriptor.java: Fix comment.
3644 * java/io/PushbackReader.java: Fix comment.
3645 * java/io/ObjectStreamClass.java: Fix comment.
3646 * java/io/DataInputStream.java: Fix comment.
3647 * java/io/PipedInputStream.java: Fix comments.
3648 * java/io/PipedReader.java: Fix comments.
3649 * java/sql/DatabaseMetaData.java: Fix comments.
3651 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
3653 * java/io/PipedReader: Synchronize on "lock" instead of this.
3655 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
3657 * java/lang/Thread.java: Update comment.
3659 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
3660 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
3661 * java/io/PipedReader: New implementation based on new
3663 * java/io/PipedWriter: Updated to match new PipedReader.
3665 2001-01-03 Tom Tromey <tromey@redhat.com>
3667 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
3668 (getViewportSize): Insets include scrollbar size.
3669 (doLayout): Finished.
3670 (getScrollPosition): Wrote.
3671 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
3673 2001-01-02 Tom Tromey <tromey@redhat.com>
3675 * java/awt/ScrollPane.java: Wrote.
3676 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
3679 * java/awt/Panel.java (Panel()): Fixed.
3681 * java/awt/Component.java (isShowing): Return false if no peer
3682 exists, and true if component is visible and no parent exists.
3683 (getLocationOnScreen): Wrote.
3684 (getPreferredSize): Removed FIXME comment.
3685 (getMinimumSize): Likewise.
3686 (getAlignmentX, getAlignmentY): Wrote.
3688 (requestFocus): Wrote.
3689 (transferFocus): Wrote.
3690 (findNextFocusComponent): New method.
3691 (hasFocus()): Wrote.
3692 (checkImage): Wrote.
3693 (enableEvents): Call setEventMask on the peer.
3695 * java/awt/Container.java (list): Use super.list() to print self.
3696 (findNextFocusComponent): New method.
3697 (setLayout): Call invalidate.
3698 (findComponentAt): Wrote.
3700 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
3702 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
3703 the correct versions of various linuxthreads functions get linked.
3704 * Makefile.in: Rebuilt.
3705 * java/lang/natThread.cc (finalize_native): New static function. Call
3706 _Jv_ThreadDestroyData.
3707 (initialize_native): Register finalizer for "data".
3708 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
3709 (_Jv_ThreadDestroyData): New prototype.
3710 * include/win32-threads.h: Ditto.
3711 * include/no-threads.h: Ditto.
3712 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3713 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
3714 move mutex and condition variable destroy code from:
3715 (really_start): ...here.
3716 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
3717 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3718 (_Jv_ThreadDestroyData): Implemented.
3719 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
3720 (_Jv_AllocArray): Ditto.
3722 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
3724 * java/sql/DriverManager.java (getConnection): Don't set user/password
3727 2000-12-27 Warren Levy <warrenl@redhat.com>
3729 Fix for PR libgcj/1358:
3730 * java/lang/System.java: Update Copyright date properly.
3731 * java/util/Calendar.java: Fix typo in comment.
3732 (set): Set 24-hour clock hour instead of 12-hour clock hour.
3733 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
3734 initialize times. Spec says to set H:M:S values to zero only if
3736 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
3737 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
3738 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
3739 timezones and GMT offsets, being careful to account for units of
3740 milliseconds vs. seconds.
3742 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
3744 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3745 not be assigned to Object.
3747 Fix for PR libgcj/1516:
3748 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3750 (can_widen): Declared inline. Remove redundant checks for void
3751 arguments and char->short conversion. Add special case for boolean
3753 (ffi_type): Declared inline.
3754 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3756 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
3758 * java/sql/SQLWarning.java: Fixed typo in comment.
3760 2000-12-26 Tom Tromey <tromey@redhat.com>
3762 * java/awt/MenuItem.java (paramString): Now protected.
3764 * java/awt/MenuShortcut.java: Implements Serializable.
3766 * java/awt/MenuBar.java: Rewrote from scratch.
3768 * java/awt/MenuComponent.java (removeNotify): Wrote.
3769 Implements Serializable.
3771 * java/awt/GridBagConstraints.java (GridBagConstraints): New
3774 * java/awt/CheckboxMenuItem.java: Wrote.
3776 2000-12-25 Tom Tromey <tromey@redhat.com>
3778 * java/awt/MenuContainer.java: Fixed typo.
3780 * Makefile.in: Rebuilt.
3781 * Makefile.am (awt_java_source_files): Added SystemColor.java.
3782 * java/awt/SystemColor.java: New file.
3784 * java/awt/Color.java (rgba): Now package-private.
3786 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3788 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3791 * java/awt/MenuItem.java (addNotify): New method.
3792 (MenuItem(String,MenuShortcut)): New constructor.
3793 (setLabel): Notify peer of change.
3794 (setEnabled): Likewise.
3796 * java/awt/GridLayout.java (toString): New method.
3798 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3799 (FlowLayout): Check for LEADING and TRAILING.
3800 (setAlignment): Likewise.
3801 (layoutContainer): Handle component orientation.
3803 * java/awt/Component.java (orientatin): New field.
3804 (setComponentOrientation): Wrote.
3805 (getComponentOrientation): Wrote.
3807 * java/awt/Event.java (Event): Implements Serializable.
3808 (consumed): New field for serialization.
3809 * java/awt/Dimension.java (Dimension): Implements Serializable.
3810 * java/awt/Cursor.java (Cursor): Implements Serializable.
3811 * java/awt/Container.java (Container): No longer abstract.
3813 * java/awt/Choice.java: Wrote.
3814 * java/awt/Checkbox.java: Wrote.
3815 * java/awt/ItemSelectable.java: Documented.
3816 * java/awt/CheckboxGroup.java: Wrote.
3818 * java/awt/CardLayout.java (layoutContainer): Directly use fields
3820 (getSize): Likewise.
3822 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
3824 * java/io/FileDescriptor.java: Initialize fd to -1.
3825 Remove default constructor.
3827 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
3829 * java/lang/mprec.h: Change C9X reference to refer to C99.
3831 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
3833 * java/lang/Throwable.java (trace_enabled): New static field.
3834 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3835 trace_enabled not set.
3836 * prims.cc (main_init): Turn off trace_enabled while creating
3837 default exception objects.
3839 2000-12-21 Tom Tromey <tromey@redhat.com>
3841 * java/beans/PropertyChangeListener.java: Extends EventListener.
3842 * java/beans/VetoableChangeListener.java: Extends EventListener.
3844 * java/util/zip/Deflater.java (update, init): Now private.
3846 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
3848 * java/util/BasicMapEntry.java: Re-added.
3849 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3850 (putAll): Test for BasicMapEntry.
3851 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3852 (putAll): Test for BasicMapEntry.
3853 Change references from `HashMap.Entry' to `Entry' in various places.
3854 * Makefile.am: Add BasicMapEntry.java.
3855 * Makefile.in: Rebuilt.
3857 2000-12-18 Warren Levy <warrenl@redhat.com>
3859 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3860 need to set timezone to a valid non-null value. Partial fix for
3863 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3865 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3867 * java/awt/Button.java (addNotify): Likewise.
3868 * java/awt/Label.java (addNotify): Likewise.
3869 * java/awt/Panel.java (addNotify): Likewise.
3870 * java/awt/Scrollbar.java (addNotify): Likewise.
3871 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3872 Remove redundant null checks.
3874 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3876 * COPYING: Update to current
3877 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3878 to 19yy as example year in copyright notice).
3880 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3882 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3883 end-of-stream if avail_in is 0.
3885 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3887 * java/util/ArrayList.java (data): Declare transient.
3888 (serialPersistantFields): Removed.
3889 (readObject): Use defaultReadObject(), not readFields().
3890 (writeObject): Use defaultWriteObject(), not writeFields().
3892 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3894 * java/util/Hashtable.java (put): Remove `last' variable.
3895 Link new entry to head of list.
3896 * java/util/HashMap.java (put): Ditto.
3898 2000-12-15 Tom Tromey <tromey@redhat.com>
3900 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3901 loader to Class.forName.
3903 2000-12-14 Tom Tromey <tromey@redhat.com>
3905 * java/util/ResourceBundle.java
3906 (getBundle(String,Locale,ClassLoader)): New method.
3907 (trySomeGetBundle): Added `loader' argument.
3908 (partialGetBundle): Likewise.
3910 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3911 maximumFractionDigits, maximumIntegerDigits,
3912 minimumFractionDigits, minimumIntegerDigits): Now
3915 * java/lang/Thread.java (checkAccess): Now final.
3917 * java/lang/RuntimePermission.java: Class now final.
3919 * java/io/StringWriter.java (StringWriter(int)): Now public.
3921 * java/io/SerializablePermission.java (legal_names): Now private.
3923 * java/lang/Character.java: Updated UnicodeBlock constants.
3924 * scripts/blocks.pl: Special case private use and surrogate
3927 2000-12-12 Tom Tromey <tromey@redhat.com>
3929 * Makefile.in: Rebuilt.
3930 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3932 (GCJCOMPILE): Use it.
3935 2000-12-11 Tom Tromey <tromey@redhat.com>
3937 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3938 New static final fields.
3940 * scripts/classes.pl (scan): Skip lines with leading `*'.
3941 Fix for PR libgcj/378.
3943 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3945 * configure.in: Remove check for -fuse-divide-subroutine.
3946 * configure: Rebuilt.
3948 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3950 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3952 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3954 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3955 Remove BasicMapEntry.java and Bucket.java.
3956 * Makefile.in: Rebuilt.
3957 * java/util/HashMap.java: Rewritten.
3958 * java/util/HashSet.java: Imported from classpath.
3959 * java/util/WeakHashMap.java: Imported from classpath.
3960 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3961 * java/util/Bucket.java: Deleted.
3962 * java/util/BasicMapEntry.java: Deleted.
3963 * java/util/Collections.java (search): Use a for-loop, not iterator
3965 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3966 of elements in source.
3967 (max): Use a for-loop.
3969 (reverse): Keep track of positions instead of using Iterator's
3970 nextIndex() and previousIndex().
3971 (shuffle(List)): Initialize defaultRandom if required using
3972 double-check thread safety idiom. Call two-argument shuffle method
3973 using defaultRandom.
3974 (defaultRandom): New field.
3975 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3976 using previousIndex() and nextIndex().
3977 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3978 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3979 * java/util/AbstractMap.java (toString): Use StringBuffer.
3980 * java/lang/ref/PhantomReference.java: Imported from classpath.
3981 * java/lang/ref/SoftReference.java: Ditto.
3982 * java/lang/ref/Reference.java: Ditto.
3983 * java/lang/ref/WeakReference.java: Ditto.
3984 * java/lang/ref/ReferenceQueue.java: Ditto.
3986 2000-12-10 Richard Henderson <rth@redhat.com>
3988 * configure.host: Recognize alpha*-*, not alphaev6-*.
3990 2000-12-09 Anthony Green <green@redhat.com>
3992 * configure.host: Enable interpreter for Alpha.
3994 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3996 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3997 (ZIP): Points at fastjar instead of zip.
3998 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3999 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
4000 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
4001 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
4002 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
4003 ($(x_java_source_files:.java=.class):): Likewise.
4004 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
4006 (CLEANFILES): libgcj.jar replaces libgcj.zip.
4007 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
4008 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
4009 java/lang/String.h:, java/lang/reflect/Constructor.h:,
4010 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
4011 gnu/gcj/runtime/VMClassLoader.h:,
4012 java/io/ObjectInputStream$$GetField.h:,
4013 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
4014 (Makefile.in): Rebuilt.
4016 2000-12-08 Tom Tromey <tromey@redhat.com>
4019 * configure: Rebuilt.
4020 * configure.in: Use echo, not `:', to create .d files.
4022 2000-12-08 Warren Levy <warrenl@redhat.com>
4024 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
4025 NullPointerException so proper check of offset can be done.
4027 2000-12-08 Warren Levy <warrenl@redhat.com>
4029 * java/io/FileInputStream.java (close): Check if the fd is valid.
4030 * java/io/RandomAccessFile.java (close): Ditto.
4031 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
4032 * java/net/PlainSocketImpl.java (close): Ditto.
4034 2000-12-06 Tom Tromey <tromey@redhat.com>
4036 * java/awt/GridBagConstraints.java: Filled in values for static
4039 * java/util/BitSet.java: Updated copyright notice.
4041 * Makefile.in: Rebuilt.
4042 * Makefile.am (awt_java_source_files): Added new file.
4043 * java/awt/GridBagConstraints.java: New file.
4045 2000-12-05 Tom Tromey <tromey@redhat.com>
4047 * java/text/Collator.java (decomposeCharacter, decmp, strength):
4048 Now package-private, not protected.
4049 * java/text/DateFormatSymbols.java (equals): Now private.
4050 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
4051 * java/util/BitSet.java: Class no longer final.
4053 2000-12-04 Warren Levy <warrenl@redhat.com>
4055 * java/util/TimeZone.java (getAvailableIDs): Activated commented
4056 out code dependent on compiler and library changes.
4058 2000-12-04 Warren Levy <warrenl@redhat.com>
4060 * java/io/FilePermission.java: Made class final per spec.
4061 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
4062 method name to match spec (fixed typo).
4063 * java/util/LinkedList.java: Implements List.
4065 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
4067 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
4068 Edgar Villanueva <edgarvil@home.com>.
4070 2000-12-03 Tom Tromey <tromey@redhat.com>
4072 * java/awt/geom/Point2D.java: Added protected constructor.
4073 (equals): New method.
4074 (Float.setLocation(float,float)): New method.
4075 * java/awt/geom/Dimension2D.java: Added protected constructor.
4076 * java/awt/geom/AffineTransform.java: Made all constants public.
4077 (concatenate): Fixed typo in name.
4078 * java/awt/event/WindowAdapter.java: Class now abstract.
4079 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
4080 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
4083 * java/awt/AWTError.java: Extend Error, not
4084 IllegalStateException.
4086 * Makefile.in: Rebuilt.
4087 * Makefile.am (awt_java_source_files): Added new file.
4088 * java/awt/geom/RoundRectangle2D.java: New file.
4090 * Makefile.in: Rebuilt.
4091 * Makefile.am (awt_java_source_files): Added new file.
4092 * java/awt/FlowLayout.java: New file.
4094 * Makefile.in: Rebuilt.
4095 * Makefile.am (awt_java_source_files): Added new file.
4096 * java/awt/GridLayout.java: New file.
4098 2000-12-02 Tom Tromey <tromey@redhat.com>
4100 * Makefile.in: Rebuilt.
4101 * Makefile.am (awt_java_source_files): Added new files.
4102 * java/awt/CardLayout.java: New file.
4103 * java/awt/AWTPermission.java: New file.
4105 2000-12-01 Tom Tromey <tromey@redhat.com>
4107 * java/util/Vector.java (insertElementAt): Unconditionally
4108 increment elementCount.
4109 (removeRange): Clear unused slots in vector.
4111 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
4113 * java/lang/natMath.cc: Declare fabsf() function.
4114 * java/lang/mprec.h: Don't include math.h.
4115 * java/lang/dtoa.c: Include string.h.
4116 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
4119 From Adam Welc <welc@cs.purdue.edu>:
4120 * java/util/LinkedList.java (removeFirst): Update `first' field.
4121 Handle the last == first case.
4122 (removeLast): Update `last' field. Handle the last == first case.
4124 2000-12-01 Warren Levy <warrenl@cygnus.com>
4126 * Makefile.am: Added entries for new java.sql modules.
4127 * Makefile.in: Rebuilt.
4129 2000-12-01 Warren Levy <warrenl@cygnus.com>
4131 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
4132 that aren't quite 1.2 compatible yet.
4134 2000-11-30 Warren Levy <warrenl@cygnus.com>
4136 * java/sql/Array.java: New file from classpath.
4137 * java/sql/BatchUpdateException.java: Ditto.
4138 * java/sql/Blob.java: Ditto.
4139 * java/sql/Clob.java: Ditto.
4140 * java/sql/Ref.java: Ditto.
4141 * java/sql/SQLData.java: Ditto.
4142 * java/sql/SQLInput.java: Ditto.
4143 * java/sql/SQLOutput.java: Ditto.
4144 * java/sql/Struct.java: Ditto.
4145 * java/sql/CallableStatement.java: Merged file from claspath.
4146 * java/sql/Connection.java: Ditto.
4147 * java/sql/DataTruncation.java: Ditto.
4148 * java/sql/DatabaseMetaData.java: Ditto.
4149 * java/sql/DriverManager.java: Ditto.
4150 * java/sql/PreparedStatement.java: Ditto.
4151 * java/sql/ResultSet.java: Ditto.
4152 * java/sql/ResultSetMetaData.java: Ditto.
4153 * java/sql/SQLException.java: Ditto.
4154 * java/sql/SQLWarning.java: Ditto.
4155 * java/sql/Statement.java: Ditto.
4156 * java/sql/Types.java: Ditto.
4158 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
4160 * java/lang/natSystem.cc (init_properties): Set user.language and
4162 * configure.in: Check for setlocale.
4163 * configure: Rebuilt.
4164 * include/config.h.in: Rebuilt.
4166 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
4167 the infate() call didn't deliver any output. Throw a ZipException if
4168 the needsDictionary() call returns true.
4169 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
4170 * java/io/InputStreamReader: Use the default buffer size for the
4171 contained BufferedInputStream.
4173 2000-11-28 Warren Levy <warrenl@cygnus.com>
4175 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
4176 more time zone entries.
4177 * java/text/SimpleDateFormat.java (format): Added case for
4180 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
4182 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
4183 directly rather than read() in all cases. Make primitive read
4184 implementations more efficient, as defined in JDK online docs.
4185 (skipBytes): Behave like the JDK's implementation.
4186 * java/io/BufferedReader.java: Merge classpath docs. Check for a
4187 closed stream with checkStatus() whenever an IOException can be
4189 (checkStatus): New private method.
4191 2000-11-27 Warren Levy <warrenl@cygnus.com>
4193 * Makefile.am: Added natTimeZone.cc.
4194 * Makefile.in: Rebuilt.
4195 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
4196 * java/text/DateFormatSymbols.java (ampms): Made package private.
4197 (eras): Made package private.
4198 (months): Made package private.
4199 (shortMonths): Made package private.
4200 (shortWeekdays): Made package private.
4201 (weekdays): Made package private.
4202 (formatPrefixes): New private field.
4203 (localPatternCharsDefault): Made private.
4204 (dateFormats): New package private field.
4205 (timeFormats): New package private field.
4206 (formatsForKey): New private method.
4207 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
4208 (DateFormatSymbols(DateFormatSymbols)): Ditto.
4209 * java/text/SimpleDateFormat.java: Merged with Classpath.
4210 * java/util/TimeZone.java: Merged with Classpath.
4211 * java/util/natTimeZone.cc: New file.
4213 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
4215 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
4216 (addElement): Don't increment elementCount twice. Doh.
4217 * java/util/ArrayList.java (add): Only call ensureCapacity if the
4218 array needs to be expanded.
4220 * java/util/Collections.java (UnmodifiableCollection): Implement
4222 (UnmodifiableList): Throw UnsupportedOperationException from
4223 modification methods. Set `l' from the one-parameter constructor.
4224 (UnmodifiableMap): Implement toString().
4225 (SynchronizedCollection): Ditto.
4226 (SynchronizedList): Set `l' from the one-parameter constructor.
4227 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
4228 (SynchronizedMap): Implement toString().
4230 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
4232 * javax/naming/NameParser.java,
4233 javax/naming/directory/AttributeInUseException.java,
4234 javax/naming/directory/AttributeModificationException.java,
4235 javax/naming/directory/InvalidAttributeIdentifierException.java,
4236 javax/naming/directory/InvalidAttributesException.java,
4237 javax/naming/directory/InvalidAttributeValueException.java,
4238 javax/naming/directory/InvalidSearchControlsException.java,
4239 javax/naming/directory/InvalidSearchFilterException.java,
4240 javax/naming/directory/NoSuchAttributeException.java,
4241 javax/naming/directory/SchemaViolationException.java: New files.
4243 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
4245 * javax/naming/InitialContext.java (rebind): Implement.
4246 (unbind): Implement.
4247 (rename): Implement.
4249 (listBindings): Implement.
4250 (destroySubcontext): Implement.
4251 (createSubcontext): Implement.
4252 (lookupLink): Implement.
4253 (getNameParser): Implement.
4254 (composeName): Implement.
4255 (addToEnvironment): Implement.
4257 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
4259 * javax/naming/AuthenticationException.java,
4260 javax/naming/AuthenticationNotSupportedException.java,
4261 javax/naming/CannotProceedException.java,
4262 javax/naming/CommunicationException.java,
4263 javax/naming/ConfigurationException.java,
4264 javax/naming/ContextNotEmptyException.java,
4265 javax/naming/InsufficientResourcesException.java,
4266 javax/naming/InterruptedNamingException.java,
4267 javax/naming/InvalidNameException.java,
4268 javax/naming/LimitExceededException.java,
4269 javax/naming/LinkException.java,
4270 javax/naming/LinkLoopException.java,
4271 javax/naming/MalformedLinkException.java,
4272 javax/naming/NameAlreadyBoundException.java,
4273 javax/naming/NameNotFoundException.java,
4274 javax/naming/NamingSecurityException.java,
4275 javax/naming/NoPermissionException.java,
4276 javax/naming/NotContextException.java,
4277 javax/naming/PartialResultException.java,
4278 javax/naming/ReferralException.java,
4279 javax/naming/ServiceUnavailableException.java,
4280 javax/naming/SizeLimitExceededException.java,
4281 javax/naming/TimeLimitExceededException.java: New files.
4283 * javax/naming/Name.java (clone): New method.
4284 (compareTo): New method.
4285 (isEmpty): New method.
4286 (getAll): New method.
4287 (getPrefix): New method.
4288 (getSuffix): New method.
4289 (startsWith): New method.
4290 (endsWith): New method.
4291 (addAll): New method.
4292 (addAll): New method.
4295 (remove): New method.
4297 * javax/naming/Context.java (lookup): New method.
4298 (rebind): New method.
4299 (unbind): New method.
4300 (rename): New method.
4302 (listBindings): New method.
4303 (destroySubcontext): New method.
4304 (createSubcontext): New method.
4305 (lookupLink): New method.
4306 (getNameParser): New method.
4307 (composeName): New method.
4308 (addToEnvironment): New method.
4309 (removeFromEnvironment): New method.
4310 (getEnvironment): New method.
4311 (close): New method.
4312 (getNameInNamespace): New method.
4314 * javax/naming/InitialContext.java (lookup): New method.
4315 (rebind): New method.
4316 (unbind): New method.
4317 (rename): New method.
4319 (listBindings): New method.
4320 (destroySubcontext): New method.
4321 (createSubcontext): New method.
4322 (lookupLink): New method.
4323 (getNameParser): New method.
4324 (composeName): New method.
4325 (addToEnvironment): New method.
4326 (removeFromEnvironment): New method.
4327 (getEnvironment): New method.
4328 (close): New method.
4329 (getNameInNamespace): New method.
4331 2000-11-26 Tom Tromey <tromey@cygnus.com>
4333 * Makefile.in: Rebuilt.
4334 * Makefile.am (core_java_source_files): Added
4335 RuntimePermission.java.
4336 * java/lang/RuntimePermission.java: Imported from Classpath.
4337 * java/lang/Thread.java (getContextClassLoader): Now
4338 synchronized. Added security code.
4339 (setContextClassLoader): Likewise.
4341 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
4342 length field of array.
4343 (_Jv_NewPrimArray): Likewise.
4344 * gcj/array.h (__JArray): `length' field now const. Added
4347 2000-11-26 Anthony Green <green@redhat.com>
4349 * javax/naming/spi/NamingManager.java,
4350 javax/naming/spi/ObjectFactory.java,
4351 javax/naming/spi/InitialContextFactory.java,
4352 javax/naming/spi/InitialContextFactoryBuilder.java,
4353 javax/naming/RefAddr.java, javax/naming/Reference.java,
4354 javax/naming/NamingException.java, javax/naming/Context.java,
4355 javax/naming/Referenceable.java,
4356 javax/naming/directory/InitialDirContext.java,
4357 javax/naming/directory/DirContext.java,
4358 javax/naming/directory/Attributes.java,
4359 javax/naming/directory/Attribute.java,
4360 javax/naming/StringRefAddr.java,
4361 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
4362 javax/naming/InitialContext.java,
4363 javax/naming/NoInitialContextException.java: New files.
4365 2000-11-25 Anthony Green <green@redhat.com>
4367 * prims.cc (_Jv_NewObjectArray): Undo placement change.
4368 (_Jv_NewPrimArray): Likewise.
4369 * gcj/array.h (__JArray): Undo const change. Removed constructor.
4370 (class JArray): Removed constructor.
4372 * java/lang/Thread.java (context_class_loader): New private data.
4373 (getContextClassLoader): New method.
4374 (setContextClassLoader): New method.
4375 (Thread): Initialize context_class_loader.
4377 * java/net/URLClassLoader.java: Import java.util.Enumeration.
4378 (getResource): Rename to findResource.
4379 (findResource): New method. Used to be getResource.
4380 (getResourceAsStream): Deleted.
4381 (jarFileize): Extracted logic from URLClassLoader constructor into
4382 this new private method.
4383 (addURL): New protected method.
4384 (URLClassLoader): Call jarFileize. Use addElement instead of
4386 (findResources): New method.
4388 * java/lang/ClassLoader.java: Import java.util.Enumeration.
4389 (getResource): Implement correct logic.
4390 (findResource): New method.
4391 (getResources): New method.
4392 (findClass): Create a ClassNotFoundException with the name of the
4393 class rather than nothing at all.
4394 (defineClass) Only throw ClassFormatError.
4396 * java/lang/Class.java (forName): New method.
4397 * java/lang/Class.h (forName): New method.
4398 * java/lang/natClass.cc (forName): New method.
4400 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4402 * java/lang/System.java (setProperties): Only call init_properties()
4403 if properties is null.
4404 (getProperties): Ditto.
4405 (getProperty): Ditto.
4406 (setProperty): Call init_properties if properties are null.
4407 (prop_init): Remove field.
4408 * java/lang/natSystem.cc (init_properties): Synchronize the entire
4409 method. Check for null properties after synchronizing instead of
4410 prop_init flag. Set the properties field last for thread safety.
4412 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
4413 test for gcj.dumpobjects property and enable object stream dumping
4415 (dumpElement): No longer native.
4416 (dumpElementln): Ditto.
4417 (setDump): Do not define.
4418 * java/io/natObjectInputStream.cc (dumpElement): Removed.
4419 (dumpElementln): Removed.
4422 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4424 * configure: Rebuilt.
4425 * Makefile.in: Rebuilt.
4426 * Makefile.am (built_java_source_files): Add Configuration.java.
4427 * configure.in: Add Configuration.java to CONFIG_FILES. Set
4428 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
4429 Create `gnu' directory in the build tree.
4430 * gnu/classpath/Configuration.java.in: New file.
4432 2000-11-24 Tom Tromey <tromey@cygnus.com>
4434 * prims.cc (_Jv_NewObjectArray): Use placement new to create
4436 (_Jv_NewPrimArray): Likewise.
4438 * gcj/array.h (__JArray): `length' field now const. Added
4440 (class JArray): Added constructor.
4442 2000-11-23 Mark Wielaard <mark@klomp.org>
4444 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
4447 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
4449 * java/util/Vector.java: Improve exception messages.
4450 (Vector): Check initialCapacity for IllegalArgumentException.
4451 (tromToSize): Don't check for elementCount == elementData.length
4453 (toArray): Don't try to set null marker if target array is the same
4454 length as the vector.
4456 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
4458 * Makefile.in: Rebuilt.
4459 * Makefile.am (core_java_source_files): Added Collections.java.
4460 * java/util/List.java: Merged from classpath.
4461 * java/util/Vector.java: Ditto.
4462 * java/util/Collections.java: From classpath.
4463 * java/util/ArrayList.java (addAll(Collection)): Call
4464 addAll(int,Collection) instead of duplicating code.
4465 (indexOf): Clean up int initialization.
4466 (clear): Set cleared array entries to null, to allow garbage
4468 * java/util/List.java: Minor formatting fixes.
4469 * java/util/SimpleTimeZone.java: ditto.
4471 2000-11-18 Tom Tromey <tromey@cygnus.com>
4473 * Makefile.in: Rebuilt.
4474 * Makefile.am (core_java_source_files): Added new files.
4475 * java/lang/reflect/ReflectPermission.java: New class.
4476 * java/io/FileFilter.java: From Classpath
4477 * java/io/FilePermission.java: From Classpath.
4479 2000-11-17 Tom Tromey <tromey@cygnus.com>
4481 * java/lang/reflect/AccessibleObject.java (isAccessible,
4482 setAccessible): Now public.
4484 * java/lang/natString.cc: Include Locale.h.
4485 (toUpperCase): Added `locale' argument. Handle locale
4487 (toLowerCase): Added `locale' argument. Handle locale
4489 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
4490 CAPITAL_I): New defines.
4491 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
4494 (toUpperCase, toLowerCase): New methods. Variants which accept
4497 * java/lang/ExceptionInInitializerError.java (printStackTrace):
4500 * java/util/PropertyPermission.java: Re-merged from Classpath.
4502 * java/text/RuleBasedCollator.java (getCollationElementIterator):
4504 * java/text/StringCharacterIterator.java: Reindented.
4505 (setText): New method.
4507 2000-11-17 Mark Wielaard <mark@klomp.org>
4509 Merge with Classpath (changes by Bryce McKinlay)
4510 * java/util/jar/*.java: Reformat all to unofficial standard coding
4511 style. No changes of substance.
4513 2000-11-17 Mark Wielaard <mark@klomp.org>
4515 * java/util/zip/*.java: Javadoc updates.
4517 2000-11-17 Tom Tromey <tromey@cygnus.com>
4519 * java/text/CollationKey.java: Implement Comparable.
4520 (compareTo(Object)): New method.
4521 * java/text/Collator.java (compare(Object,Object)): New method.
4522 Implement Comparator.
4524 * java/util/zip/InflaterInputStream.java (available): New method.
4525 (close): New method.
4526 (read, available, skip, fill): Throw exception if stream closed.
4527 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
4528 getNextEntry): Throw exception if closed.
4530 2000-11-16 Tom Tromey <tromey@cygnus.com>
4532 * java/io/PushbackReader.java: Merged with Classpath.
4533 * java/util/Arrays.java: Updated from Classpath.
4535 * scripts/blocks.pl: New file.
4536 * java/lang/Character.java (Subset): New class.
4537 (UnicodeBlock): New class.
4539 * java/lang/Math.java (toDegrees, toRadians): New methods.
4541 * java/lang/Float.java: Implement Comparable.
4542 (compareTo): New methods.
4543 * java/lang/Double.java: Implement Comparable.
4544 (compareTo): New methods.
4546 2000-11-16 Warren Levy <warrenl@cygnus.com>
4548 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
4550 (listeners): Made transient.
4551 (source): Renamed from 'bean'.
4552 (children): New field for serialization.
4553 (propertyChangeSupportSerializedDataVersion): Ditto.
4554 (serialVersionUID): Ditto.
4555 (writeObject): New serialization method.
4556 (readObject): New serialization method.
4557 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
4559 (listeners): Made transient.
4560 (source): Renamed from 'bean'.
4561 (children): New field for serialization.
4562 (vetoableChangeSupportSerializedDataVersion): Ditto.
4563 (serialVersionUID): Ditto.
4564 (writeObject): New serialization method.
4565 (readObject): New serialization method.
4566 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
4567 to allow constructor to have a return type (i.e. the class that the
4568 constructor constructs).
4570 2000-11-14 Tom Tromey <tromey@cygnus.com>
4572 * Makefile.in: Rebuilt.
4573 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
4576 2000-11-02 Warren Levy <warrenl@cygnus.com>
4578 * java/io/ObjectInputStream.java (readObject): Added code to
4579 conditionally dump out the serialized data.
4580 Handle ENDBLOCKDATA case a bit more gracefully since the current
4581 behavior doesn't seem to work as expected.
4582 (readStreamHeader): Added code for serialized data dumper.
4583 (readNextBlock): Ditto.
4584 (readFields): Ditto.
4585 (dump): New private static field for turning on/off dumper.
4586 (setDump): New native method.
4587 (dumpElement): New native method.
4588 (dumpElementln): New native method.
4589 * java/io/natObjectInputStream.cc (setDump): New method.
4590 (dumpElement): New method.
4591 (dumpElementln): New method.
4593 2000-11-02 Warren Levy <warrenl@cygnus.com>
4595 * java/net/InetAddress.java (addr): Renamed from 'address'.
4596 (address): New field to match Serialized Form doc.
4597 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4598 (family): New serialization field.
4599 (serialVersionUID): New field.
4600 (readObject): New method.
4601 (writeObject): New method.
4602 (getFamily): New native method.
4603 (InetAddress): Set family.
4604 * java/net/natInetAddress.cc (getFamily): New method.
4605 (addr): Renamed from 'address'.
4606 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4607 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
4608 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
4610 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
4612 * java/util/AbstractList.java (SubList): Make it a top-level private
4614 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
4616 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
4617 * Makefile.in: Rebuilt.
4619 2000-11-02 Tom Tromey <tromey@cygnus.com>
4621 * Makefile.in: Rebuilt.
4622 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
4625 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4627 * java/util/AbstractList.java (remove): Comment out modCount increment
4628 to work around compiler bug.
4631 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4633 * java/util/AbstractList.java: Throw messages with
4634 IndexOutOfBoundsExceptions.
4635 (listIterator()): Call listIterator(0).
4636 (size): New field. Initialize to size().
4637 (hasNext): Test position against size, not size().
4638 (remove): Increment knownMod by one instead of resetting it from
4641 (SubList.upMod): Removed.
4642 (SubList.set): Don't call upMod() or update knownMod.
4643 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
4644 (SubList.remove): Ditto.
4645 (SubList.addAll): Don't call backingList.size(). Increment size from
4647 (SubList.iterator): New method. Call listIterator(0).
4648 (SubList.listIterator): New method. Restore code to return an anonymous
4649 listIterator implementation (with some changes).
4650 * java/util/AbstractSequentialList.java: Throw messages with
4651 IndexOutOfBoundsExceptions.
4652 (addAll): Add a specnote.
4653 * java/util/ArrayList.java (removeRange): Get the math right.
4654 (addAll): Increment modCount _before_ creating iterator.
4655 * java/util/LinkedList.java: Rewritten, mostly.
4657 2000-11-01 Tom Tromey <tromey@cygnus.com>
4659 * scripts/encodings.pl: Added `ASCII' alias.
4660 * Makefile.in: Rebuilt.
4661 * Makefile.am (convert_source_files): Added new files.
4662 * gnu/gcj/convert/Input_ASCII.java: New file.
4663 * gnu/gcj/convert/Output_ASCII.java: New file.
4664 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
4665 out-of-range characters.
4666 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
4667 (read): Swap bytes if required. Treat `count' as character count,
4669 (write): Likewise. Also, handle case where iconv fails on a given
4671 (init): Put encoding into exception.
4672 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
4673 (static): Call iconv_init. Rebuilt alias list.
4674 (iconv_init): New private method.
4676 2000-11-01 Tom Tromey <tromey@cygnus.com>
4678 * Makefile.in: Rebuilt.
4679 * Makefile.am (install-exec-hook): Only make a single symlink, and
4680 remove the destination before making the link.
4681 * configure: Rebuilt.
4682 * configure.in: Call AC_PROG_LN_S.
4684 2000-10-31 Warren Levy <warrenl@cygnus.com>
4686 * jni.cc: Added include of java/lang/ThreadGroup.h.
4687 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
4688 per change of 2000-10-05.
4690 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
4692 * java/util/BitSet.java: Updated @specnote.
4694 * java/io/Reader.java: Merge docs from classpath.
4695 (skip): Synchronize on `lock'.
4696 * java/io/FileReader.java: Import correct implementation from
4698 * java/io/StringReader.java: Merge docs from classpath.
4699 (ready): Throw IOException if stream is closed.
4701 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
4703 * java/util/AbstractCollection.java (addAll): Use size() instead of
4704 hasNext() in iterator loop.
4706 (contains): Ditto. Simplify loop.
4707 (containsAll): Ditto.
4712 (toString): Ditto. Use string concatenation operators, not
4714 * java/util/AbstractList.java (addAll): Use size() instead of
4715 hasNext() in iterator loop.
4718 (indexOf): Ditto. Don't take null check outside of the loop.
4719 (iterator): Return an AbstractListItr instead of anonymous class.
4720 (lastIndexOf): Use a for loop bounded by size() instead of
4721 hasPrevious() in iterator loop.
4722 (listIterator): Return an AbstractListItr.
4723 (removeRange): Remove bounds checking code and docs.
4724 (AbstractListItr): New inner class. Code moved here from
4726 (SubList.iterator): Removed. Use default implementation from
4727 AbstractList instead.
4728 (SubList.listIterator): As above.
4729 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
4730 instead of hasNext() in iterator loop.
4731 (containsValue): Ditto.
4737 (toString): Ditto. Use string concatenation operators, not
4739 * java/util/AbstractSequentialList.java (addAll): Use a for loop
4740 bounded by size() instead of hasNext() in iterator loop.
4741 * java/util/AbstractSet.java (hashCode): Don't catch exception as
4742 part of normal execution flow. Do an explicit null check instead.
4743 * java/util/ArrayList.java (_iSize): Rename to `size'.
4744 (_arData): Rename to `data'.
4745 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4748 (removeRange): Make protected. Don't check bounds.
4749 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4751 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4753 (addAll (int, Collection)): Check lower bounds. Simplify exception
4755 (clone): Clone the data array too.
4756 (indexOf): Inline doesEqual().
4757 (lastIndexOf): Ditto.
4758 (clear): Don't set array data to null.
4759 (set): Check lower bounds. Simplify exception string.
4760 (toArray): Correct comment.
4761 (trimToSize): Don't update modCount, this is not a structural change.
4764 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4766 (toString): Declare `bit' as long, not int.
4767 (data): Made package-private, not private.
4769 2000-10-27 Warren Levy <warrenl@cygnus.com>
4771 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4772 array elements to true.
4774 2000-10-27 Warren Levy <warrenl@cygnus.com>
4776 * Makefile.am: Added locale files from Classpath.
4777 * Makefile.in: Rebuilt.
4778 * gnu/java/locale/Calendar.java: New file.
4779 * gnu/java/locale/Calendar_de.java: New file.
4780 * gnu/java/locale/Calendar_en.java: New file.
4781 * gnu/java/locale/Calendar_nl.java: New file.
4782 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4783 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4784 serialization compatibility.
4785 (scale): Made private.
4786 (serialVersionUID): New field.
4787 * java/math/BigInteger.java (ival): Made transient.
4788 (words): Made transient.
4789 (bitCount): New serialization field.
4791 (firstNonzeroByteNum): Ditto.
4792 (lowestSetBit): Ditto.
4795 (serialVersionUID): New field.
4796 (readObject): New method.
4797 (writeObject): New method.
4798 * java/util/BitSet.java (serialVersionUID): New field.
4799 * java/util/Calendar.java: Replaced with Classpath file.
4800 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4801 of getDefault() for TimeZone or Locale instead of passing nulls.
4802 * java/util/Locale.java (serialVersionUID): New field.
4803 (writeObject): New method.
4804 (readObject): New method.
4805 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4807 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
4809 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4810 (core_java_source_files): Put java.lang, java.io, and java.util here.
4811 (ordinary_java_source_files): Order so that core_java_source_files are
4813 (java_source_files): Reorder so that special_java_source_files are
4815 * configure.in: Don't pass -I flag to gcj.
4816 * Makefile.in: Rebuilt.
4817 * configure: Rebuilt.
4819 2000-10-25 Tom Tromey <tromey@cygnus.com>
4821 * Makefile.in: Rebuilt.
4822 * Makefile.am (install-exec-hook): New target.
4824 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
4826 * java/util/EventObject.java: Merged from classpath.
4828 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4831 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4833 * java/util/AbstractSet.java (equals): Re-installed original code.
4835 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4837 * Makefile.am: Added rules for libgcjx library.
4838 * Makefile.in: Rebuilt.
4839 * configure.in: Added check for X.
4840 * configure: Rebuilt.
4841 * gnu/awt/LightweightRedirector.java: New file.
4842 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4843 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4844 * gnu/awt/j2d/Graphics2DImpl.java: New file.
4845 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4846 * gnu/awt/j2d/MappedRaster.java: New file.
4847 * gnu/awt/xlib/XCanvasPeer.java: New file.
4848 * gnu/awt/xlib/XEventLoop.java: New file.
4849 * gnu/awt/xlib/XEventQueue.java: New file.
4850 * gnu/awt/xlib/XFontMetrics.java: New file.
4851 * gnu/awt/xlib/XFramePeer.java: New file.
4852 * gnu/awt/xlib/XGraphics.java: New file.
4853 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4854 * gnu/awt/xlib/XPanelPeer.java: New file.
4855 * gnu/awt/xlib/XToolkit.java: New file.
4856 * gnu/gcj/xlib/Clip.java: New file.
4857 * gnu/gcj/xlib/Colormap.java: New file.
4858 * gnu/gcj/xlib/Display.java: New file.
4859 * gnu/gcj/xlib/Drawable.java: New file.
4860 * gnu/gcj/xlib/Font.java: New file.
4861 * gnu/gcj/xlib/GC.java: New file.
4862 * gnu/gcj/xlib/Pixmap.java: New file.
4863 * gnu/gcj/xlib/Screen.java: New file.
4864 * gnu/gcj/xlib/Visual.java: New file.
4865 * gnu/gcj/xlib/WMSizeHints.java: New file.
4866 * gnu/gcj/xlib/Window.java: New file.
4867 * gnu/gcj/xlib/WindowAttributes.java: New file.
4868 * gnu/gcj/xlib/XAnyEvent.java: New file.
4869 * gnu/gcj/xlib/XButtonEvent.java: New file.
4870 * gnu/gcj/xlib/XColor.java: New file.
4871 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4872 * gnu/gcj/xlib/XConnectException.java: New file.
4873 * gnu/gcj/xlib/XEvent.java: New file.
4874 * gnu/gcj/xlib/XException.java: New file.
4875 * gnu/gcj/xlib/XExposeEvent.java: New file.
4876 * gnu/gcj/xlib/XID.java: New file.
4877 * gnu/gcj/xlib/XImage.java: New file.
4878 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4879 * gnu/gcj/xlib/natClip.cc: New file.
4880 * gnu/gcj/xlib/natColormap.cc: New file.
4881 * gnu/gcj/xlib/natDisplay.cc: New file.
4882 * gnu/gcj/xlib/natDrawable.cc: New file.
4883 * gnu/gcj/xlib/natFont.cc: New file.
4884 * gnu/gcj/xlib/natGC.cc: New file.
4885 * gnu/gcj/xlib/natPixmap.cc: New file.
4886 * gnu/gcj/xlib/natScreen.cc: New file.
4887 * gnu/gcj/xlib/natVisual.cc: New file.
4888 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4889 * gnu/gcj/xlib/natWindow.cc: New file.
4890 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4891 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4892 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4893 * gnu/gcj/xlib/natXColor.cc: New file.
4894 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4895 * gnu/gcj/xlib/natXException.cc: New file.
4896 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4897 * gnu/gcj/xlib/natXImage.cc: New file.
4898 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4899 * java/awt/EventDispatchThread.java: Start thead on creation.
4901 2000-10-20 Tom Tromey <tromey@cygnus.com>
4903 From Arno J. Klaassen:
4904 * interpret.cc: Include <stdlib.h> for alloca.
4905 * defineclass.cc: Include <stdlib.h> for alloca.
4907 * Makefile.in: Rebuilt.
4908 * Makefile.am: Include deps.mk.
4909 (GCJCOMPILE): Added -MD, -MT, and -MF.
4910 ($(javao_files)): Don't depend on libgcj.zip.
4911 (all-recursive): New target.
4912 (%.lo:%.cc): Do dependency tracking.
4913 ($(nat_headers)): Don't depend on libgcj.zip.
4914 * configure: Rebuilt.
4915 * configure.in: Make .d files and deps.mk.
4917 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4919 * exception.cc: Don't #include "exception".
4920 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4922 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4923 * Makefile.in: Updated.
4925 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4927 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4928 * java/awt/peer/ComponentPeer.java (disable): Removed.
4931 (minimumSize): Removed.
4932 (preferredSize): Removed.
4935 * java/awt/peer/ListPeer.java (addItem): Removed.
4937 (minimumSize): Removed.
4938 (preferredSize): Removed.
4939 (setMultipleSelections): Removed.
4940 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4941 (remove): Renamed from removeMenu.
4942 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4944 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4945 (remove): Renamed from removeItem.
4946 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4947 (getMinimumSize): Removed.
4948 (getPreferredSize): Removed.
4949 (minimumSize): Removed.
4950 (preferredSize): Removed.
4951 (replaceText): Removed.
4952 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4953 (preferredSize): Removed.
4954 (getMinimumSize): Removed.
4955 (getPreferredSize): Removed.
4956 (setEchoCharacter): Removed.
4958 2000-10-10 Warren Levy <warrenl@cygnus.com>
4960 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4961 * java/sql/Date.java (serialVersionUID): New field.
4962 * java/sql/Time.java (serialVersionUID): New field.
4963 * java/sql/Timestamp.java (serialVersionUID): New field.
4964 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4965 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4966 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4967 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4968 (readObject): New serialization method.
4969 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4970 (serialVersionOnStream): New field.
4971 (readObject): New serialization method.
4972 (getMonetaryDecimalSeparator): New method.
4973 (setMonetaryDecimalSeparator): New method.
4974 * java/text/NumberFormat.java (maxFractionDigits): New field.
4975 (maxIntegerDigits): New field.
4976 (minFractionDigits): New field.
4977 (minIntegerDigits): New field.
4978 (serialVersionOnStream): New field.
4979 (serialVersionUID): New field.
4980 (readObject): New serialization method.
4981 (writeObject): New serialization method.
4982 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4983 (serialVersionOnStream): New field.
4984 (serialVersionUID): New field.
4985 (readObject): New serialization method.
4987 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4989 * configure.in (GCJ): Avoid bogus error message when looking for
4990 (and not finding) gcj in the build tree.
4991 * configure: Rebuilt.
4993 2000-10-09 Tom Tromey <tromey@cygnus.com>
4995 * configure: Rebuilt.
4996 * configure.in: Include sys/types.h when checking for socklen_t.
4997 From Arno J. Klaassen.
4999 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
5001 * include/jvm.h: Enable __builtin_expect().
5003 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
5004 the main program. Fix for PR libgcj/341.
5006 2000-10-07 Tom Tromey <tromey@cygnus.com>
5008 * java/util/Properties.java: Merged with Classpath version.
5010 2000-10-05 Tom Tromey <tromey@cygnus.com>
5012 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
5013 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
5014 * java/lang/Class.h (Object): Added `class$' field.
5015 * java/lang/Object.h (Object): Added `class$' field.
5016 * defineclass.cc (ClassClass): Use `class$' form.
5017 (ClassObject): Likewise.
5018 * resolve.cc (ClassObject): Use `class$' form.
5019 (ObjectClass): Likewise.
5020 * interpret.cc (ClassError): Removed.
5021 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
5023 (IntegerClass): Likewise.
5024 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
5026 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
5027 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
5028 SerializableClass): Likewise.
5029 Include Serializable.h, Cloneable.h.
5030 * java/lang/natSystem.cc (SystemClass): Removed.
5031 (init_properties): Use `class$' form.
5032 * java/lang/natObject.cc (CloneableClass): Removed.
5033 (clone): Use `class$' form.
5034 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
5035 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
5036 ConstructorClass): Likewise.
5037 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
5038 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
5039 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
5040 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
5042 (ClassClass): Likewise.
5043 * include/jvm.h (StringClass): Use `class$' form.
5044 * prims.cc (ObjectClass): Removed.
5045 (_Jv_RunMain): Use `class$' form.
5046 (_Jv_AllocObject): Likewise.
5047 * jni.cc (ClassClass): Use `class$' form.
5048 (ThrowableClass): Likewise.
5049 (ObjectClass): Likewise.
5050 (MethodClass): Likewise.
5051 (ThreadGroupClass): Likewise.
5052 (NativeThreadClass): Likewise.
5053 * boehm.cc (ObjectClass): Removed.
5054 (ClassClass): Removed.
5055 (_Jv_MarkObj): Use `class$' form.
5056 * gcj/field.h (JvFieldIsRef): Use `class$' form.
5059 2000-10-05 Warren Levy <warrenl@cygnus.com>
5061 * Makefile.am: Removed java/io/Replaceable.java and
5062 java/io/Resolvable.java.
5063 * Makefile.in: Rebuilt.
5064 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
5066 * java/io/ObjectInputStream.java (processResolution): Fixed typo
5068 (processResolution): Handle readResolve method via reflection with
5069 removal of Resolvable interface.
5070 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
5071 method via reflection with removal of Replaceable interface.
5072 * java/io/Replaceable.java: Removed.
5073 * java/io/Resolvable.java: Removed.
5074 * java/security/Key.java (serialVersionUID): New field.
5075 * java/security/Provider.java (serialVersionUID): New field.
5076 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
5078 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
5080 * java/sql/DataTruncation.java (serialVersionUID): New field.
5081 * java/sql/SQLException.java (serialVersionUID): New field.
5082 * java/sql/SQLWarning.java (serialVersionUID): New field.
5083 * java/util/Date.java (serialVersionUID): New field.
5084 (millis): Made transient.
5085 (readObject): New method.
5086 (writeObject): New method.
5088 2000-10-05 Tom Tromey <tromey@cygnus.com>
5090 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
5092 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
5094 * prims.cc (_Jv_argv, _Jv_argc): New fields.
5095 (JvRunMain): Set _Jv_argv and _Jv_argc.
5096 * java/awt/Component.java: Minor fixes.
5097 * java/awt/Image.java (UndefinedProperty): Initialize final field.
5098 * java/awt/Toolkit.java (systemEventQueue): Removed.
5099 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
5100 * java/awt/Window.java (getToolkit): Don't call super.
5101 * java/awt/image/BufferedImage.java: Fix definite assignment errors.
5102 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
5103 * gnu/awt/gtk/GtkComponentPeer.java: New file.
5104 * gnu/awt/gtk/GtkContainerPeer.java: New file.
5105 * gnu/awt/gtk/GtkFramePeer.java: New file.
5106 * gnu/awt/gtk/GtkMainThread.java: New file.
5107 * gnu/awt/gtk/GtkToolkit.java: New file.
5108 * gnu/awt/gtk/GtkWindowPeer.java: New file.
5109 * gnu/awt/gtk/gtkcommon.cc: New file.
5110 * gnu/awt/gtk/gtkcommon.h: New file.
5111 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
5112 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
5113 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
5114 * gnu/awt/gtk/natGtkMainThread.cc: New file.
5115 * gnu/awt/gtk/natGtkToolkit.cc: New file.
5116 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
5118 2000-09-30 Tom Tromey <tromey@cygnus.com>
5120 * posix-threads.cc (_Jv_CondWait): Check to see if we are
5121 interrupted before modifying the cv's wait set.
5124 2000-09-30 Hans Boehm <boehm@acm.org>
5125 Bryce McKinlay <bryce@albatross.co.nz>
5127 Implement bitmap descriptor based marking for Boehm GC.
5129 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
5130 * configure: Rebuilt.
5131 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
5132 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
5133 method get_finalizer().
5134 (struct _Jv_ArrayVTable): Ditto. Declare method array with
5135 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
5136 (_Jv_AllocObj): Add new jclass parameter.
5137 (_Jv_AllocArray): Ditto.
5138 (_Jv_BuildGCDescr): New prototype.
5139 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
5140 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
5141 get_finalizer() instead of direct finalizer vtable offset.
5142 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
5143 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
5144 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
5145 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
5146 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
5147 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
5148 (_Jv_DetermineVTableIndex): Ditto.
5149 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
5150 calculations to account for new gc_descr field.
5151 * boehm.cc: #include gc_gcj.h.
5152 (obj_kind_x, obj_free_list): `#if 0'-ed away.
5153 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
5154 New commentary from HB. Mark the classes vtable.
5155 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
5156 (GC_DEFAULT_DESCR): New #define.
5157 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
5158 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
5159 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
5160 scan conservativly if size is less than min_heap_addr. Set vtable
5161 pointer of new object before returning.
5162 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
5163 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
5164 allocation for obj_kind_x.
5165 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
5166 (_Jv_AllocObj): Set vtable on returned object.
5167 (_Jv_AllocArray): Ditto.
5168 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
5169 (_Jv_NewPrimArray): Ditto.
5170 (_Jv_AllocObj): Declare as a friend.
5171 (_Jv_AllocArray): Ditto.
5172 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
5173 from &ObjectClass into new array class. Remove offset-by-one
5174 adjustments from `method' size calculations to account for gc_descr
5177 2000-09-26 Tom Tromey <tromey@cygnus.com>
5179 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
5180 `remove', not `add'.
5182 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5184 * java/lang/natSystem.cc (file_encoding): Added return statement.
5186 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5188 * Makefile.am: Re-work shell commands that exceeded command-line
5190 * Makefile.in: Rebuilt.
5192 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
5194 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
5195 * java/lang/natDouble.cc: Likewise.
5196 * java/lang/reflect/natMethod.cc: Likewise.
5197 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
5199 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
5201 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
5203 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
5204 * acinclude.m4: Arrange for automake to not bring in a new
5205 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
5206 * Makefile.am: Leave it up to automake to subst GCJ.
5207 * aclocal.m4, configure, Makefile.in: Rebuilt.
5209 2000-09-13 Tom Tromey <tromey@cygnus.com>
5211 * java/lang/reflect/natArray.cc (BooleanClass): New define.
5212 (get): Ensure Boolean class is initialized.
5213 * java/lang/reflect/natField.cc (BooleanClass): New define.
5214 (get): Ensure Boolean class is initialized.
5216 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
5218 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
5219 Initialize with anonymous class.
5220 (compareToIgnoreCase): New method.
5222 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
5223 (uncaughtException): Set had_uncaught_exception.
5224 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
5225 exit with error status if set.
5226 (_Jv_RunMain): Ditto.
5228 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
5230 * configure: Rebuilt with new ../libtool.m4.
5232 2000-09-11 Tom Tromey <tromey@cygnus.com>
5234 * java/lang/reflect/Field.java (toString): Don't rely on
5237 2000-09-08 Tom Tromey <tromey@cygnus.com>
5239 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
5240 default decoder use iconv.
5241 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
5242 Let default encoder use iconv.
5243 * configure: Rebuilt.
5244 * configure.in: Check for nl_langinfo and <langinfo.h>.
5245 * java/lang/natSystem.cc (file_encoding): New function.
5246 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
5248 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
5250 * acinclude.m4: Simplify the tests for CC and CXX.
5251 * aclocal.m4, configure: Rebuilt.
5253 * acinclude.m4: Include libtool macros from the source tree.
5254 * aclocal.m4, configure: Rebuilt.
5256 2000-09-08 Warren Levy <warrenl@cygnus.com>
5258 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
5259 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
5260 * java/io/File.java (writeObject): Added.
5261 (readObject): Added.
5262 (serialVersionUID): Added.
5263 * java/io/ObjectOutputStream.java (writeObject): Initialized
5264 fieldsAlreadyWritten before recursion rather than after.
5265 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
5266 * java/io/OptionalDataException.java (serialVersionUID): Added.
5267 (OptionalDataException): Made package private.
5268 * java/io/SyncFailedException.java (SyncFailedException): Removed
5269 default constructor to match spec.
5270 * java/lang/Boolean.java (serialVersionUID): Added.
5271 * java/lang/Byte.java (serialVersionUID): Added.
5272 * java/lang/Character.java (serialVersionUID): Added.
5273 * java/lang/Double.java (serialVersionUID): Added.
5274 * java/lang/Float.java (serialVersionUID): Added.
5275 * java/lang/Integer.java (serialVersionUID): Added.
5276 * java/lang/Long.java (serialVersionUID): Added.
5277 * java/lang/Number.java (serialVersionUID): Added.
5278 * java/lang/Short.java (serialVersionUID): Added.
5279 * java/lang/String.java (serialVersionUID): Added.
5280 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
5282 * java/lang/reflect/InvocationTargetException.java
5283 (serialVersionUID): Added.
5284 * java/net/URL.java (handler): Made transient.
5285 (hashCode): Added field for serialization, per spec. and use
5286 cached value if available.
5287 (serialVersionUID): Added.
5288 (URL): Initialize hashCode.
5289 (set): Adjust hashCode.
5290 (readObject): New Method to initialize the protocol handler when
5292 (writeObject): New method.
5293 * java/text/BreakIterator.java: Removed 'implements Serializable'.
5294 * java/text/Collator.java: Removed 'implements Serializable'.
5295 * java/util/GregorianCalendar.java (serialVersionUID): Added.
5296 * java/util/Properties.java (serialVersionUID): Added.
5297 * java/util/Random.java (serialVersionUID): Added.
5298 (seed): Made private.
5299 (nextNextGaussian): Made private.
5300 (haveNextNextGaussian): Made private.
5301 * java/util/Stack.java (serialVersionUID): Added.
5302 * java/util/TimeZone.java (serialVersionUID): Added.
5303 * java/util/Vector.java (serialVersionUID): Added.
5305 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
5307 * Makefile.am (Thread.h): Don't be friends with native threads
5309 * Makefile.in: Rebuilt.
5310 * java/lang/Thread.java (interrupt_flag): Make package-private.
5312 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
5314 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
5315 to avoid long long division.
5317 2000-09-06 Tom Tromey <tromey@cygnus.com>
5319 * java/lang/reflect/Constructor.java (toString): Use `getName' for
5321 * java/lang/reflect/Method.java (toString): Use `getName' for
5324 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
5325 `args' if method takes no parameters.
5327 Fix for PR java.lang/339:
5328 * java/lang/natPosixProcess.cc (fail): New function.
5329 (cleanup): New function.
5330 (startProcess): Use them. Create pipe so child can communicate
5331 exec failure back to parent.
5333 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5335 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
5337 (send): Undo last patch. Remove the label only.
5339 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
5341 * java/net/natInetAdress.cc: Ditto.
5343 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
5345 2000-09-05 Tom Tromey <tromey@cygnus.com>
5347 * doc/cni.sgml: Updated from master copy.
5349 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5351 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
5353 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
5355 * java/lang/fdlibm.h: #undef __P if previously defined.
5356 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
5357 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
5361 2000-09-04 Tom Tromey <tromey@cygnus.com>
5363 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
5366 2000-09-04 Anthony Green <green@redhat.com>
5368 Fix for PR java.io/203:
5369 * java/io/File.java (createTempFile): Obey directory argument.
5370 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
5371 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
5372 variable to set java.io.tmpdir on non-WIN32 systems.
5374 2000-09-04 Anthony Green <green@redhat.com>
5376 * java/io/File.java (deleteOnExit): New method.
5377 * gnu/gcj/runtime/FileDeleter.java: New class.
5378 * java/lang/natRuntime.cc (exit): Call
5379 FileDeleter.deleteOnExitNow()
5380 * Makefile.am: Add FileDeleter.java.
5381 * Makefile.in: Rebuilt.
5383 2000-09-02 Tom Tromey <tromey@cygnus.com>
5385 * Makefile.in: Rebuilt.
5386 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
5387 environment variable.
5389 2000-09-01 Andrew Haley <aph@redhat.com>
5391 * java/io/StreamTokenizer.java: Don't throw a
5392 NumberFormatException if a field is numeric as far as the
5393 StreamTokenizer is concerned but not as far as Double.valueOf() is
5394 concerned: return a zero instead.
5396 2000-08-30 Tom Tromey <tromey@cygnus.com>
5398 * Makefile.in: Rebuilt.
5399 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
5401 2000-08-28 Tom Tromey <tromey@cygnus.com>
5403 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
5404 gnu/gcj/awt/ComponentDataBlitOp.java,
5405 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
5406 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
5407 java/awt/color/ICC_ColorSpace.java,
5408 java/awt/color/ICC_Profile.java,
5409 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
5410 java/awt/image/ComponentColorModel.java,
5411 java/awt/image/ComponentSampleModel.java,
5412 java/awt/image/DataBuffer.java,
5413 java/awt/image/DataBufferByte.java,
5414 java/awt/image/DataBufferInt.java,
5415 java/awt/image/DataBufferUShort.java,
5416 java/awt/image/DirectColorModel.java,
5417 java/awt/image/IndexColorModel.java,
5418 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
5419 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
5420 java/awt/image/SinglePixelPackedSampleModel.java,
5421 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
5422 Removed Latin-1 copyright symbols.
5423 * java/util/zip/ZipFile.java: Indentation fixes.
5425 2000-08-27 Mark Wielaard <mark@klomp.org>
5427 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
5428 constructor, close can delete the file, finalize calls close.
5429 * java/util/jar/JarFile.java: Constructor that takes mode now
5432 2000-08-27 Anthony Green <green@redhat.com>
5434 * java/util/ArrayList.java, java/util/Timer.java,
5435 java/util/LinkedList.java, java/util/TimerTask.java,
5436 java/util/HashMap.java, java/util/AbstractMap.java,
5437 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
5438 java/util/SortedSet.java: Imported from GNU Classpath.
5439 * Makefile.in: Rebuilt.
5440 * Makefile.am: Added new files.
5442 2000-08-26 Anthony Green <green@redhat.com>
5444 * Makefile.in: Rebuilt.
5445 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
5448 * prims.cc: Include ClassLoader.h.
5449 (_Jv_RunMain): When executing jar files, classpath must be the jar
5450 file only. Lose our reference to the system ClassLoader in order
5451 to get a new one with the correct classpath.
5452 * java/lang/natSystem.cc (init_properties): When executing a jar
5453 file, only use the jar file for java.class.path.
5455 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
5456 for bytecode archives.
5458 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
5459 exists, but not Main-Class.
5461 2000-08-23 Mark Wielaard <mark@klomp.org>
5463 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
5464 return -1 when fill() has no more data for the Inflater.
5466 2000-08-23 Mark Wielaard <mark@klomp.org>
5468 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
5469 write(String) already does.
5471 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
5473 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
5474 to `alive_flag', call `init'.
5475 (init): New native method.
5476 * gnu/gcj/jni/natNativeThread.cc (init): New native method
5479 2000-08-21 Mark Wielaard <mark@klomp.org>
5481 * Makefile.in: Rebuilt.
5482 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
5484 (java/lang/reflect/Field.h): Likewise.
5485 (java/lang/reflect/Method.h): Likewise.
5486 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
5489 2000-08-21 Tom Tromey <tromey@cygnus.com>
5491 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
5494 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
5496 * java/lang/natSystem.cc (init_properties): Change sourceware
5497 reference to sources.redhat.com.
5499 * include/java-props.h: Add _Jv_Jar_Class_Path.
5500 * prims.cc: Ditto. Set it from `gij -jar file' option.
5502 * java/lang/natSystem.cc (init_properties): Set java.class.path
5504 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
5506 * java/util/PropertyPermission.java: Import from GNU Classpath.
5507 * Makefile.in: Rebuilt.
5508 * Makefile.am: Add java/util/PropertyPermission.java.
5509 * java/lang/System.java: Add setProperty method.
5511 * gij.cc (main): Add -jar option to execute jar files.
5512 (help): Describe -jar option.
5513 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
5514 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
5515 * gnu/gcj/runtime/FirstThread.java (main): New method.
5517 * java/util/jar/Attributes.java: Correct comment spelling.
5519 2000-08-20 Mark Wielaard <mark@klomp.org>
5521 * java/util/zip/Adler32.java: Make private variables really private
5522 * java/util/zip/CRC32.java: Make private variables really private
5523 * java/util/zip/CheckedInputStream.java: skip() could skip to much
5525 * java/util/zip/InflaterInputStream.java: skip() could skip to
5527 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
5528 * java/util/zip/ZipFile.java: size() new 1.2 method
5529 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
5530 ZipEntry. since 1.2 available() always returns just 1 or 0 when
5533 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
5535 * java/util/jar/JarFile.java: Don't call
5536 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
5539 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
5541 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
5542 Read the entire contents of the class file, not just what is
5545 * java/net/JarURLConnection.java: getEntry doesn't take any
5546 arguments. Return null if element is null.
5548 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
5549 size from the archive, not the inflated size.
5551 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
5552 java.util.zip.ZipFile.getEntry.
5554 * gij.cc (help): Change sourceware reference to
5557 2000-08-19 Tom Tromey <tromey@cygnus.com>
5559 * java/util/zip/ZipInputStream.java (createZipEntry):
5562 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
5564 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
5565 java/util/jar/JarException.java, java/util/jar/JarFile.java,
5566 java/util/jar/JarInputStream.java,
5567 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
5568 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
5569 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
5570 java/security/cert/CRL.java, java/security/cert/CRLException.java,
5571 java/security/cert/Certificate.java,
5572 java/security/cert/CertificateEncodingException.java,
5573 java/security/cert/CertificateException.java,
5574 java/security/cert/CertificateExpiredException.java,
5575 java/security/cert/CertificateFactory.java,
5576 java/security/cert/CertificateFactorySpi.java,
5577 java/security/cert/CertificateNotYetValidException.java,
5578 java/security/cert/CertificateParsingException.java,
5579 java/security/cert/X509CRL.java,
5580 java/security/cert/X509CRLEntry.java,
5581 java/security/cert/X509Certificate.java,
5582 java/security/cert/X509Extension.java: Imported from Classpath.
5583 * java/util/Hashtable.java: Imported from Classpath.
5585 * java/util/zip/ZipInputStream.java: Create stub for
5588 * gcj/javaprims.h: Updated class list.
5590 * Makefile.in, gcj/Makefile.in: Rebuilt.
5591 * Makefile.am (ordinary_java_source_files): Add these new classes.
5593 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5595 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
5596 * gnu/gcj/awt/GLightweightPeer.java: New file.
5597 * java/awt/BorderLayout.java: Implemented all methods.
5598 * java/awt/Button.java (actionListener, actionCommand): Renamed
5599 and modifier change.
5600 (addNotify): Call super.
5601 (dispatchEventImpl): New method.
5602 (getListeners): New method.
5603 (label): Made package-private, not private.
5604 * java/awt/Canvas.java: Implemented class body.
5605 * java/awt/Color.java (brighter): New method.
5606 (darker): New method.
5607 (hashCode): New method.
5608 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
5609 (getGraphicsConfiguration): Delegate to
5610 getGraphicsConfigurationImpl().
5611 (getGraphicsConfigurationImpl): New method.
5612 (getToolkit): Only return value from peer if not null.
5613 (isDisplayable): Check with parent.
5614 (isShowing): No parent implies not showing.
5615 (getForeground): Check parent property if local is null.
5616 (getBackground): Likewise.
5617 (getFont): Likewise.
5618 (setForeground): Inform peer.
5619 (setBackground): Likewise
5620 (setLocale): Invalidate component.
5621 (getColorModel): Implemented.
5622 (setLocation): Invalidate, or ignore if no change.
5623 (setSize): Invalidate, or ignore if no change.
5624 (setBounds): Invalidate, or ignore if no change.
5625 (isOpaque): By default, heavyweight implies opaque.
5626 (isLightweight): Implemented.
5627 (getMaximumSize): Implemented.
5628 (doLayout): Implemented, NOP.
5629 (validate): Implemented, NOP.
5630 (invalidate): Only propagate to parent if parent was valid.
5631 (getGraphics): Implemented.
5632 (getFontMetrics): Implemented.
5633 (update): Implemented.
5634 (paintAll): Implemented.
5635 (repaint): Implemented all repaint methods.
5636 (print): Implemented.
5637 (printAll): Implemented.
5638 (createImage): Implemented.
5639 (dispatchEvent): Give the peer a chance to handle the event.
5640 (dispatchEventImpl): Dispatch paint events.
5641 (enableEvents): Lightweights enable events on parent component.
5642 (coalesceEvents): Coalesce paint events, and select event type
5644 (coalescePaintEvents): New method.
5645 (processEvent): Fix unfortunate ordering of statements, and call
5646 correct method for MOUSE_CLICKED.
5647 (processPaintEvent): New method.
5648 (addNotify): Allow container to notify children before event
5649 mask is set in peer.
5650 (addNotifyContainerChildren): New method.
5651 (removeNotify): Visibility should not change on removeNotify.
5652 (paramString): Implemented.
5653 (list): Implemented two of the list methods.
5654 * Container (myInsets): Removed, insets are managed by peer.
5655 (getInsets): Query peer.
5656 (addImpl): Fix reparenting, enable events for lightweights,
5657 initialize component array.
5658 (validate): Call doLayout in validateTree() instead.
5659 (validateTree): Do nothing if already valid. Call beginValidate(),
5660 endValidate() on peer. Call validateTree() instead of validate()
5661 for children that are containers. Mark valid after validation of
5663 (setFont): Partial implementation.
5664 (paint): Implemented.
5665 (visitChildren): New method.
5666 (visitChild): New method.
5667 (update): Implemented.
5668 (print): Implemented.
5669 (paintComponents): Implemented.
5670 (printComponents): Consider translation and clipping.
5671 (getComponentAt): Ignore invisible children. Return this if no
5673 (addNotify): Call super.
5674 (addNotifyContainerChildren): New method.
5675 (paramString): Implemented.
5676 (list): Implemented.
5677 * java/awt/EventQueue (invokeAndWait): Get system event queue the
5679 (invokeLater): Likewise.
5680 (isDispatchThread): Likewise.
5681 * java/awt/FontMetrics (getLeading): Formula change.
5682 (getDescent): Consider leading also.
5683 (getMaxAscent): Default to getAscent().
5684 (getMaxDescent): Default to getDescent.
5685 (getMaxAdvance): Return value signifying unknown.
5686 (charWidth): Both methods implemented.
5687 (charsWidth): Implemented.
5688 (bytesWidth): Implemented.
5689 (getWidths): Implemented.
5690 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
5692 (Frame): Rearragend constuctor chaining to disallow null being
5693 passed as a graphics configuration.
5694 (getTitle): Return empty string if null.
5696 (getIconImage): New method.
5697 (setIconImage): New method.
5698 (finalize): New method.
5699 (setMenuBar): Notify peer.
5700 (isResizable): New method.
5701 (setResizable): New method.
5702 (getState): New method.
5704 (remove): Implemented.
5705 (removeNotify): New method.
5706 (getFrames): New method.
5707 * java/awt/Graphics.java: Implemented body of class.
5708 * java/awt/Graphics2D.java: New file.
5709 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
5710 * java/awt/Image.java: Implemented body of class.
5711 * java/awt/Panel.java (Panel): Call correct super constructor.
5712 (addNotify): Implemented.
5713 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
5714 * java/awt/RenderingHints.java: New file.
5715 * java/awt/Toolkit.java (createComponent): Implemented.
5716 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
5717 * java/awt/Window.java (Window): Two new constructors. Reordered
5718 constructor chaining.
5719 (getGraphicsConfigurationImpl): New method.
5720 (finalize): Call super.
5721 (addNotify): Call super.
5722 (pack): Do layout stuff.
5723 (show): Ensure that peer exists and that component is valid.
5724 (dispose): Dispose owned children.
5725 (getOwner): Simplify code, casting null pointers is valid.
5726 (getGraphicsConfiguration): Ask peer if local value is null.
5727 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
5729 * java/awt/image/BufferedImage.java: New file.
5730 * java/awt/image/RasterOp.java: New file.
5731 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
5732 More powerful replacement for getColorModel().
5733 (getColorModel) Removed.
5734 (setEventMask) New method.
5735 * Makefile.am: Added new files.
5736 * Makefile.in: Rebuilt.
5738 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
5740 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
5741 (finit_leg_name): New global.
5742 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5743 `$finit$'. This is a backward compatibility hack.
5744 (java::lang::Class::_getMethods): Likewise.
5746 2000-08-15 Andrew Haley <aph@cygnus.com>
5748 * include/jvm.h (_Jv_HashCode): New hash code.
5750 2000-08-15 Tom Tromey <tromey@cygnus.com>
5752 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5754 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
5756 * THANKS: More thanks.
5758 2000-08-10 Tom Tromey <tromey@cygnus.com>
5760 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5762 (connect): Likewise.
5764 (getOption): Likewise.
5765 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5766 case when errno not set.
5769 (receive): Likewise.
5770 (mcastGrp): Likewise.
5771 (setOption): Likewise.
5772 (getOption): Likewise.
5774 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
5775 John Stracke <francis@ecal.com>
5777 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5778 (connect): Don't falsely claim HTTP/1.1 compliance. Call
5780 (disconnect): Don't unset connected flag.
5781 (getHeaderField (String)): Call connect() if not connected.
5782 (getHeaderField (int)): Ditto.
5783 (getHeaderFieldKey): Ditto.
5784 (getHttpHeaders): Don't call connect().
5785 * java/net/HttpURLConnection.java (instanceFollowRedirects,
5786 gotResponseVals): New fields.
5787 (getResponseCode): Call getResponseVals() conditionally.
5788 (getResponseMessage): Ditto.
5789 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5791 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
5793 * Makefile.am: Move beans and applet classes to awt_java_source_files.
5794 * Makefile.in: Rebuilt.
5795 * java/awt/Color.java (getTransparency): New method.
5796 * java/awt/Component.java: Various updates.
5797 * java/awt/Container.java (removeNotify): Call super.removeNotify()
5798 after dealing with children.
5799 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5800 * java/awt/Window.java: Various new methods and updates.
5801 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5803 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5804 * java/awt/event/WindowEvent.java (paramString): Ditto.
5805 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5807 * java/awt/geom/Point2D.java (clone): Ditto.
5808 * java/awt/geom/RectangularShape.java (clone): Ditto.
5809 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5810 isAlphaPremultiplied): Make package-private, not private.
5812 2000-08-08 Tom Tromey <tromey@cygnus.com>
5814 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5815 surrogate characters.
5816 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5818 (write): Correct handling of surrogate characters.
5820 2000-08-07 Tom Tromey <tromey@cygnus.com>
5822 * java/lang/reflect/Method.java (hashCode): Use getName().
5823 (toString): Likewise.
5824 * java/lang/reflect/natMethod.cc (getType): Initialize
5827 * java/lang/reflect/Method.java (toString): Use Class.getName, not
5829 * java/lang/reflect/Field.java (toString): Correct formatting.
5832 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5834 (receive): Streamlined.
5836 2000-08-05 Tom Tromey <tromey@cygnus.com>
5838 * java/io/PrintWriter.java: Merged comments from Classpath.
5839 (printlnUnsynchronized): Removed.
5840 (println()): Print the separator.
5841 (println): Call println(), not printlnUnsynchronized.
5842 (out): Now protected, to match spec.
5844 2000-08-04 Tom Tromey <tromey@cygnus.com>
5846 * java/io/StreamTokenizer.java (TT_NONE): Now private.
5847 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5850 2000-08-03 Warren Levy <warrenl@cygnus.com>
5852 * java/io/ObjectInputStream.java (readFields): Turn off
5853 readDataFromBlock while reading via GetField.
5854 (GetField$1.get(String, Object)): Pass Class of default value to
5856 (getField): Allow for null default values.
5858 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5859 (PutField$1.put): Fixed calls of checkType in most of the put
5860 methods to pass the correct parameter.
5861 (PutField$1.put(String, Object)): Allow for null value arg.
5862 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5865 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5866 typo in spec'ed field name.
5867 (getSerialPersistentFields): Changed spelling of method to match
5868 the correct spelling of the spec'ed field name.
5870 2000-08-03 Tom Tromey <tromey@cygnus.com>
5872 * Makefile.in: Rebuilt.
5873 * Makefile.am (awt_java_source_files): Added new files.
5875 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5877 * Makefile.am: Add new AWT stubs.
5878 * java/awt/Canvas.java: New placeholder class.
5879 * java/awt/Checkbox.java: Ditto.
5880 * java/awt/CheckboxMenuItem.java: Ditto.
5881 * java/awt/Choice.java: Ditto.
5882 * java/awt/Dialog.java: Ditto.
5883 * java/awt/FileDialog.java: Ditto.
5884 * java/awt/List.java: Ditto.
5885 * java/awt/ScrollPane.java: Ditto.
5886 * java/awt/TextField.java: Ditto.
5887 * java/awt/datatransfer/Clipboard.java: Ditto.
5888 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5889 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5890 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5891 Some commented out. Partially implemented.
5892 * java/awt/natToolkit.cc: Removed file.
5894 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5896 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5897 Fixes "make -j" builds.
5898 * Makefile.in: Rebuild.
5900 2000-08-02 Tom Tromey <tromey@cygnus.com>
5902 * Makefile.in: Rebuilt.
5903 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5904 * java/net/natPlainSocketImpl.cc: Include posix.h.
5905 (accept): Use _Jv_select.
5906 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5907 (receive): Use _Jv_select.
5908 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5909 (available): Use _Jv_select.
5910 * java/lang/natSystem.cc: Include posix.h.
5911 (currentTimeMillis): Use _Jv_gettimeofday.
5912 * include/posix.h: New file.
5913 * posix.cc: New file.
5915 * scripts/encodings.pl: New file.
5916 * Makefile.in: Rebuilt.
5917 * Makefile.am (convert_source_files): Added IOConverter.java.
5918 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5920 (getDefaultDecodingClass): Canonicalize default encoding name.
5921 (getEncoder): Likewise.
5922 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5924 (getDefaultDecodingClass): Canonicalize default encoding name.
5925 (getDecoder): Likewise.
5926 * gnu/gcj/convert/IOConverter.java: New file.
5928 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5930 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5931 to match C declaration in ffi.h.
5932 * Makefile.am: Add java/awt/Button.java.
5933 * Makefile.in: Rebuilt.
5935 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5937 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5938 cast of the second argument to `ffi_raw_call' changed to match
5941 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5943 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5944 argument to `ffi_raw_call' changed to match prototype.
5946 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5948 * java/awt/Component.java (toString): Implemented.
5949 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5950 dispatchEvent() to dispatch the event.
5951 (removeImpl): Ditto.
5953 2000-07-30 Anthony Green <green@redhat.com>
5955 * java/awt/Component.java: Add treeLock object.
5956 (getTreeLock): Implement.
5957 (isShowing): Implement.
5959 2000-07-30 Tom Tromey <tromey@cygnus.com>
5961 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5963 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5965 * java/awt/Window.java (addNotify): Wrote.
5966 (addWindowListener): Wrote.
5968 (getWarningString): Wrote.
5969 (processEvent): Wrote.
5970 (processWindowEvent): Wrote.
5971 (removeWindowListener): Wrote.
5972 (show): Call validate(), setVisible().
5976 * java/awt/Toolkit.java (createWindow): Declare.
5978 * java/awt/Frame.java (addNotify): Use getToolkit to find
5981 * java/awt/Component.java (invalidate): Wrote.
5983 (getToolkit): Wrote.
5985 * java/awt/Container.java (addContainerListener): Removed
5987 (removeContainerListener): Likewise.
5989 (add(Component)): Use it.
5990 (add(String,Component)): Likewise.
5991 (add(Component,int)): Likewise.
5992 (add(Component,Object)): Likewise.
5993 (add(Component,Object,int)): Likewise.
5995 (getAlignmentX): Wrote.
5996 (getAlignmentY): Wrote.
5997 (getComponentAt): Wrote.
5998 (getMaximumSize): Wrote.
5999 (invalidate): Wrote.
6000 (list(PrintStream,int)): Wrote.
6001 (list(PrintWriter,int)): Wrote.
6002 (getMinimumSize): Wrote.
6003 (getPreferredSize): Wrote.
6004 (printComponents): Wrote.
6005 (processContainerEvent): Look at containerListener, not
6007 (remove): Added event processing and peer destruction.
6008 (removeAll): Use remove.
6009 (removeNotify): Wrote.
6011 (validateTree): Wrote.
6013 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
6014 * java/awt/Label.java (addNotify): Do nothing if peer exists.
6015 * java/awt/Container.java (addNotify): Don't create Container
6017 * java/awt/Button.java (addNotify): Do nothing if peer exists.
6019 2000-07-30 Tom Tromey <tromey@cygnus.com>
6021 * java/awt/Container.java (remove(int)): Wrote.
6022 (remove(Component)): Wrote.
6023 (add(Component)): Wrote.
6024 (add(Component,int)): Wrote.
6026 (addNotify): Set our own peer.
6027 * java/awt/Scrollbar.java (listeners): Changed type.
6028 (Scrollbar): Don't initialize listeners.
6030 (setValue): Call setValues.
6031 (setMinimum): Likewise.
6032 (setMaxPriority): Likewise.
6033 (setVisibleAmount): Likewise.
6035 (setUnitIncrement): Forward to peer.
6036 (setLineIncrement): Call setUnitIncrement.
6037 (setPageIncrement): Call setBlockIncrement.
6038 (setBlockIncrement): Forward to peer.
6039 (addAdjustmentListener): Rewrote.
6040 (removeAdjustmentListener): Rewrote.
6041 (processAdjustmentEvent): Rewrote.
6042 (paramString): Wrote.
6043 * Makefile.in: Rebuilt.
6044 * Makefile.am (awt_java_source_files): Added Button.java.
6045 * java/awt/Button.java: New file.
6046 * java/awt/Toolkit.java (createLabel): Declare.
6047 (createButton): Likewise.
6048 (createScrollbar): Likewise.
6049 (createContainer): Likewise.
6050 * java/awt/Label.java (addNotify): Wrote.
6051 (setAlignment): Call setAlignment in the peer.
6052 (setText): Call setText in the peer.
6054 2000-07-28 Warren Levy <warrenl@cygnus.com>
6056 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
6057 NotSerializableException with just the class name.
6059 2000-07-26 Andrew Haley <aph@cygnus.com>
6061 * interpret.cc (continue1): Insert missing break into switch.
6063 2000-07-28 Warren Levy <warrenl@cygnus.com>
6065 * java/io/ObjectStreamException.java: Made constructors protected.
6067 2000-07-27 Tom Tromey <tromey@cygnus.com>
6069 * java/io/OutputStreamWriter.java (close): Only flush if not
6072 2000-07-27 Warren Levy <warrenl@cygnus.com>
6074 * mauve-libgcj: Activated serialization tests.
6075 * gcj/field.h (getModifiers): Mask off unknown flags.
6076 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
6077 spurious bits don't cause discrepancies.
6078 * java/io/ObjectOutputStream.java: Fixed typo in comment.
6079 * java/io/ObjectStreamClass.java: Fixed typos in comments.
6080 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
6081 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
6082 * java/lang/Throwable.java (serialVersionUID): New field.
6083 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
6084 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
6086 * java/lang/reflect/natMethod.cc: Ditto.
6087 * java/security/Key.java (serialVersionUID): Removed field for now.
6088 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
6089 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
6091 2000-07-22 Tom Tromey <tromey@cygnus.com>
6093 * java/awt/geom/RectangularShape.java (getPathIterator):
6096 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
6098 * libjava/java/awt/image/ColorModel.java: New file, replaces the
6099 stub libjava/java/awt/ColorModel.java which was located in the
6101 * libjava/java/awt/image/ComponentColorModel.java: New file.
6102 * libjava/java/awt/image/ComponentSampleModel.java: New file.
6103 * libjava/java/awt/image/DataBuffer.java: New file.
6104 * libjava/java/awt/image/DataBufferByte.java: New file.
6105 * libjava/java/awt/image/DataBufferInt.java: New file.
6106 * libjava/java/awt/image/DataBufferUShort.java: New file.
6107 * libjava/java/awt/image/DirectColorModel.java: New file.
6108 * libjava/java/awt/image/PackedColorModel.java: New file.
6109 * libjava/java/awt/image/Raster.java: New file.
6110 * libjava/java/awt/image/SampleModel.java: New file.
6111 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
6113 * libjava/java/awt/image/IndexColorModel.java: New file.
6114 * libjava/java/awt/image/ImageConsumer.java: Removed import of
6115 java.awt.ColorModel stub.
6117 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
6118 * gnu/gcj/util/Buffers.java: New file, utility class.
6120 * libjava/Makefile.am: Updated to include new files.
6121 * libjava/Makefile.in: Rebuilt.
6123 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
6125 * java/io/StreamTokenizer.java: Merged with classpath.
6127 2000-07-20 Tom Tromey <tromey@cygnus.com>
6129 * Makefile.in: Rebuilt.
6130 * Makefile.am (awt_java_source_files): Updated for new files.
6131 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
6132 * java/awt/Label.java: New file.
6133 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
6134 (createIntersection, createUnion, getBounds2D): New methods.
6135 * java/awt/Scrollbar.java: New file.
6136 * java/awt/Shape.java: Updated to 1.2.
6137 * java/awt/geom/AffineTransform.java: New file.
6138 * java/awt/geom/Ellipse2D.java: New file.
6139 * java/awt/geom/NoninvertibleTransformException.java: New file.
6140 * java/awt/geom/PathIterator.java: New file.
6141 * java/awt/geom/Rectangle2D.java: New file.
6142 * java/awt/geom/RectangularShape.java: New file.
6143 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
6144 * java/awt/geom/IllegalPathStateException.java: New file.
6146 * scripts/showval.java: New file.
6148 * scripts/classes.pl (scan): Print inner classes properly.
6149 * gcj/javaprims.h: Updated class list.
6151 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
6152 initialize String fields for interpreted classes. Fixes bug
6153 reported by Hans Boehm.
6155 * java/io/File.java (getParentFile): New method, from Classpath
6156 via Oskar Liljeblad.
6158 * java/util/Vector.java (remove(Object)): Implemented.
6160 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
6162 * java/lang/natThrowable.cc (fillInStackTrace): Check for
6163 zero return from backtrace().
6165 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
6167 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
6169 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
6170 before calling notifyAll().
6172 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
6174 Add missing files from last check-in:
6175 * java/awt/image/ImageConsumer.java: New file.
6176 * java/awt/image/ImageProducer.java: New file.
6177 * java/awt/image/ImageObserver.java: New file.
6179 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6181 Merged implementation of java.applet from classpath:
6182 * java/applet/Applet.java: New file.
6183 * java/applet/AppletContext.java: New file.
6184 * java/applet/AppletStub.java: New file.
6185 * java/applet/AudioClip.java: New file.
6187 * Makefile.am: Added new java.applet classes.
6188 * Makefile.in: Rebuilt.
6190 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6193 * java/util/ResourceBundle.java (getLocale): stub.
6194 * Makefile.am: Added new AWT classes.
6195 * Makefile.in: Rebuilt.
6196 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
6197 constructors. Fix toString() and paramString().
6198 * java/awt/AWTEventMulticaster.java: New class. Implemented.
6199 * java/awt/CheckboxGroup.java: New class.
6200 * java/awt/ColorModel.java: New class.
6201 * java/awt/Component.java: Added stubs for most methods. Implemented
6203 * java/awt/Container.java: ditto.
6204 * java/awt/ComponentOrientation.java: New class. Partly implemented.
6205 * java/awt/Cursor.java: ditto.
6206 * java/awt/Event.java: Fix paramString().
6207 * java/awt/EventQueue.java: New class. Implemented.
6208 * java/awt/Font.java: Added additional stub methods. Implemented
6210 * java/awt/FontMetrics.java: New class. Stubbed.
6211 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
6213 * java/awt/Insets.java: New class. Implemented.
6214 * java/awt/Menu.java: Add new methods. Partially implemented.
6215 * java/awt/MenuItem.java: Add new methods and fields. Partially
6217 * java/awt/MenuShortcut.java: New class. Implemented.
6218 * java/awt/Panel.java: New class. Placeholder.
6219 * java/awt/PopupMenu.java: New class. Stubbed.
6220 * java/awt/Rectangle.java: New class. Implemented.
6221 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
6222 * java/awt/event/ActionEvent.java: Implement paramString().
6223 * java/awt/event/AdjustmentEvent.java: Implement paramString().
6224 * java/awt/event/ComponentEvent.java: Implement paramString().
6225 * java/awt/event/ContainerEvent.java: Implement paramString().
6226 * java/awt/event/FocusEvent.java: Implement paramString().
6227 * java/awt/event/HierarchyBoundsAdapter.java: New class.
6228 * java/awt/event/HierarchyBoundsListener.java: New class.
6229 * java/awt/event/HierarchyEvent.java: New class.
6230 * java/awt/event/HierarchyListener.java: New class.
6231 * java/awt/event/InputMethodEvent.java: Implement paramString().
6232 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
6233 exception if !catchExceptions.
6234 * java/awt/event/ItemEvent.java: Implement paramString().
6235 * java/awt/event/KeyEvent.java: Implement paramString().
6236 * java/awt/event/MouseEvent.java: Implement paramString().
6237 * java/awt/event/PaintEvent.java: Implement paramString().
6238 * java/awt/event/TextEvent.java: Implement paramString().
6239 * java/awt/event/WindowEvent.java: Implement paramString().
6241 AWT Peer interfaces:
6242 * java/awt/peer/ButtonPeer.java: New file.
6243 * java/awt/peer/ListPeer.java: New file.
6244 * java/awt/peer/CanvasPeer.java: New file.
6245 * java/awt/peer/MenuBarPeer.java: New file.
6246 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
6247 * java/awt/peer/MenuComponentPeer.java: New file.
6248 * java/awt/peer/CheckboxPeer.java: New file.
6249 * java/awt/peer/MenuItemPeer.java: New file.
6250 * java/awt/peer/ChoicePeer.java: New file.
6251 * java/awt/peer/MenuPeer.java: New file.
6252 * java/awt/peer/ComponentPeer.java: Implemented.
6253 * java/awt/peer/PanelPeer.java: New file.
6254 * java/awt/peer/ContainerPeer.java: Implemented.
6255 * java/awt/peer/PopupMenuPeer.java: New file.
6256 * java/awt/peer/DialogPeer.java: New file.
6257 * java/awt/peer/ScrollPanePeer.java: New file.
6258 * java/awt/peer/FileDialogPeer.java: New file.
6259 * java/awt/peer/ScrollbarPeer.java: New file.
6260 * java/awt/peer/FontPeer.java: New file.
6261 * java/awt/peer/TextAreaPeer.java: New file.
6262 * java/awt/peer/FramePeer.java: Implemented.
6263 * java/awt/peer/TextComponentPeer.java: New file.
6264 * java/awt/peer/LabelPeer.java: New file.
6265 * java/awt/peer/TextFieldPeer.java: New file.
6266 * java/awt/peer/LightweightPeer.java: New file.
6267 * java/awt/peer/WindowPeer.java: Implemented.
6269 2000-07-06 Tom Tromey <tromey@cygnus.com>
6271 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
6272 Initialize static final String fields.
6274 2000-07-03 Tom Tromey <tromey@cygnus.com>
6276 * java/io/PrintWriter.java (print): Call write(String), not
6277 print(String). See PR libgcj/277.
6278 (print(String)): Use write, not out.write.
6280 2000-06-30 Tom Tromey <tromey@cygnus.com>
6282 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
6284 2000-06-27 Andrew Haley <aph@cygnus.com>
6286 * java/io/File.java (createTempFile): Close the FileDescriptor
6287 used to create a temp file. Fixes some of PR 203.
6288 * java/io/natFileDescriptorPosix.cc (open): Call garbage
6289 collection if we run out of file handles.
6291 2000-06-28 Warren Levy <warrenl@cygnus.com>
6293 * gnu/java/security/provider/Gnu.java: New file.
6294 * gnu/java/security/provider/SHA.java: New file.
6295 * gnu/java/security/provider/SHA1PRNG.java: New file.
6296 * Makefile.am: Added the above files.
6297 * Makefile.in: Rebuilt.
6299 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
6301 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
6303 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
6304 (destroyed_flag): Removed.
6305 (isDestroyed, removeGroup, removeThread): Test for parent == null.
6306 (activeCount): Added spec note.
6308 2000-06-27 Warren Levy <warrenl@cygnus.com>
6310 * java/security/Principal.java: New file.
6311 * Makefile.am: Added Principal.java.
6312 * Makefile.in: Rebuilt.
6314 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
6316 * java/awt/event/MouseEvent.java: Fixed coordinate space
6319 2000-06-27 Tom Tromey <tromey@cygnus.com>
6321 * java/io/PushbackInputStream.java (read): If there are characters
6322 in the buffer, don't also call super.read().
6323 * java/io/PushbackReader.java (read): If there are characters in
6324 the buffer, don't also call super.read().
6326 * java/lang/Double.java (valueOf): Call parseDouble().
6328 2000-06-26 Warren Levy <warrenl@cygnus.com>
6330 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
6331 (newVal): Renamed to newValue.
6332 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
6333 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
6334 (revokeNow): Renamed to invalidateRefs.
6335 * java/io/OptionalDataException.java: Updated FIXME.
6336 (eof): New placeholder field.
6338 * java/io/WriteAbortedException.java (message): Made transient.
6339 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
6340 * java/lang/Throwable.java (stackTrace): Made transient.
6341 * java/net/InetAddress.java: Made Serializable.
6342 * java/security/KeyPair.java: Made Serializable.
6343 * java/security/Provider.java: Replaced with Classpath version that
6344 implements serialization and proper methods.
6345 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
6346 (limits): Renamed to choiceLimits.
6348 2000-06-24 Tom Tromey <tromey@cygnus.com>
6350 * java/lang/natDouble.cc (parseDouble): Renamed from
6352 * java/lang/Double.java (parseDouble): Renamed from
6353 doubleValueOf. Now public.
6355 2000-06-23 Andrew Haley <aph@cygnus.com>
6357 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
6358 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
6360 2000-06-23 Tom Tromey <tromey@cygnus.com>
6362 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
6363 * java/lang/natDouble.cc: Always include <alloca.h>.
6364 Fix for PR libgcj/267.
6366 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
6368 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
6369 comply with classpath VM spec.
6370 (add(Group)): Rename to addGroup().
6371 * java/lang/Thread.java (Thread): Use addThread().
6372 * java/lang/natThread.cc (finish_): Use removeThread().
6374 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
6376 * java/lang/ThreadGroup.java: Merged with classpath.
6377 * prims.cc (_Jv_RunMain): Don't use `main_group'.
6378 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
6380 * java/lang/Thread.java (Thread): Bootstrap initial thread from
6381 ThreadGroup.root if Thread.currentThread is null. Honour the
6382 ThreadGroup's max priority setting.
6384 2000-06-18 Tom Tromey <tromey@cygnus.com>
6386 * java/lang/natClass.cc (forName): Removed dead code. Initialize
6387 returned class. For PR gcj/260.
6389 2000-06-16 Tom Tromey <tromey@cygnus.com>
6391 Fix for PR libgcj/261:
6392 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
6394 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
6395 argument. (This is a patch from long ago that somehow went
6398 2000-06-15 Tom Tromey <tromey@cygnus.com>
6400 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
6404 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
6406 Fix for PR java.lang/258:
6407 * prims.cc (_Jv_PrimClass): Set state of primitive class to
6408 JV_STATE_DONE, to prevent accidental initialization.
6409 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
6410 _Jv_InterfaceAssignableFrom if target is an interface and source is an
6411 interface or an abstract class. Remove redundant initializeClass calls.
6412 Remove duplicate if_idt test.
6413 (_Jv_InterfaceAssignableFrom): New function.
6414 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
6416 2000-05-31 Tom Tromey <tromey@cygnus.com>
6418 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
6419 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
6420 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
6421 (NUM_OBJECT_METHODS): New define.
6422 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
6423 `array_vtable' parameter. Added assertion.
6424 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
6427 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
6429 * gcj/cni.h: Include <string.h>.
6430 * defineclass.cc: Include <alloca.h>.
6431 * interpret.cc: Ditto.
6432 * gij.cc: Include <stdlib.h>.
6434 2000-05-30 Tom Tromey <tromey@cygnus.com>
6436 * include/name-finder.h: Include <sys/wait.h>.
6437 (_Jv_name_finder::pid): Now of type `pid_t'.
6438 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
6439 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
6442 2000-05-24 Warren Levy <warrenl@cygnus.com>
6444 * java/io/ObjectOutputStream.java (writeObject): Use component type
6445 when writing arrays.
6448 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6450 Fix for PR libgcj/226:
6451 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
6452 since this is an installed header.
6454 Fix for PR libgcj/228:
6455 * java/util/zip/ZipFile (getInputStream): Create inflater with
6458 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
6459 with DataFormatException.
6461 2000-05-20 Tom Tromey <tromey@cygnus.com>
6463 * Makefile.in: Rebuilt.
6464 * Makefile.am (hack1): Removed.
6465 (awto_files): Likewise.
6466 (libgcjawt_la_SOURCES): Likewise.
6467 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6468 (libgcjawt_la_DEPENDENCIES): Likewise.
6469 (libgcjawt_la_LIBADD): Likewise.
6470 (libgcjawt_la_LDFLAGS): Likewise.
6471 (libgcjawt_la_LINK): Likewise.
6472 ($(awt_java_source_files:.java=.class)): Likewise.
6473 (libgcj.zip): Don't depend on AWT files.
6474 (MOSTLYCLEANFILES): Don't include AWT files.
6475 ($(awto_files)): Removed.
6476 (nat_headers): Removed AWT files.
6477 (cond_awt_java_source_files): Removed.
6478 (ordinary_java_source_files): Added awt_java_source_files.
6479 * libgcj.spec.in (*lib): Removed -lgcjawt.
6480 * configure: Rebuilt.
6481 * configure.in: Removed --enable-java-awt option.
6483 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6485 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
6486 (ZipEntry): Copy the `name' field.
6487 (clone): Implement JDK1.2 method.
6488 (setCompressedSize): ditto.
6491 2000-05-19 Tom Tromey <tromey@cygnus.com>
6493 * java/io/BufferedWriter.java: Merged with Classpath.
6494 * java/io/BufferedOutputStream.java: Merged with Classpath.
6496 2000-05-16 Andrew Haley <aph@cygnus.com>
6498 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
6499 build_ia64_frame_state.
6500 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
6503 2000-05-15 Warren Levy <warrenl@cygnus.com>
6505 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
6506 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
6507 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
6508 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
6509 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
6510 * gnu/gcj/beans/editors/FontEditor.java: Removed.
6511 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
6512 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
6513 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
6514 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
6515 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
6516 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
6517 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
6518 * gnu/gcj/beans/editors/StringEditor.java: Removed.
6519 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
6520 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
6521 * gnu/gcj/io/NullOutputStream.java: Removed.
6522 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
6523 * gnu/gcj/lang/ArrayHelper.java: Removed.
6524 * gnu/gcj/lang/ClassHelper.java: Removed.
6525 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
6527 * gnu/java/beans/BeanInfoEmbryo.java: New file.
6528 * gnu/java/beans/EmptyBeanInfo.java: New file.
6529 * gnu/java/beans/ExplicitBeanInfo.java: New file.
6530 * gnu/java/beans/IntrospectionIncubator.java: New file.
6531 * gnu/java/beans/editors/ColorEditor.java: New file.
6532 * gnu/java/beans/editors/FontEditor.java: New file.
6533 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
6534 * gnu/java/beans/editors/NativeByteEditor.java: New file.
6535 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
6536 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
6537 * gnu/java/beans/editors/NativeIntEditor.java: New file.
6538 * gnu/java/beans/editors/NativeLongEditor.java: New file.
6539 * gnu/java/beans/editors/NativeShortEditor.java: New file.
6540 * gnu/java/beans/editors/StringEditor.java: New file.
6541 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
6542 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
6543 * gnu/java/io/NullOutputStream.java: New file.
6544 * gnu/java/io/ObjectIdentityWrapper.java: New file.
6545 * gnu/java/lang/ArrayHelper.java: New file.
6546 * gnu/java/lang/ClassHelper.java: New file.
6547 * gnu/java/lang/reflect/TypeSignature.java: New file.
6549 * Makefile.am: Updated for moving Classpath files from gnu/gcj
6550 namespace back to the original Classpath gnu/java namespace.
6551 * Makefile.in: Rebuilt.
6553 * java/beans/Beans.java: Namespace change.
6554 * java/beans/EventSetDescriptor.java: Namespace change.
6555 * java/beans/Introspector.java: Namespace change.
6556 * java/beans/PropertyEditorManager.java: Namespace change.
6557 * java/io/ObjectInputStream.java: Namespace change.
6558 * java/io/ObjectOutputStream.java: Namespace change.
6559 * java/io/ObjectStreamClass.java: Namespace change.
6560 * java/io/ObjectStreamField.java: Namespace change.
6562 2000-04-21 Warren Levy <warrenl@cygnus.com>
6564 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
6565 now that compiler patch is available.
6566 Removed unneeded System.loadLibrary.
6567 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
6568 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
6570 2000-04-19 Andrew Haley <aph@cygnus.com>
6572 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
6573 and target classes have been initialized.
6575 2000-04-19 Andrew Haley <aph@cygnus.com>
6577 * java/lang/String.java: implement Serializable, Comparable.
6578 (compareTo (Object)): New method.
6580 2000-04-19 Warren Levy <warrenl@cygnus.com>
6582 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
6583 instead of getField to retrieve non-public field.
6584 (getSerialPersistantFields): Ditto.
6586 2000-04-18 Warren Levy <warrenl@cygnus.com>
6588 * mauve-libgcj: Turned off object serialization tests temporarily
6589 due to compiler error.
6591 2000-04-17 Warren Levy <warrenl@cygnus.com>
6593 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
6594 to avoid build problem.
6596 * mauve-libgcj: Turned on object serialization tests.
6598 2000-04-17 Tom Tromey <tromey@cygnus.com>
6600 * libgcj.spec.in (*lib): Added -lgcjawt.
6602 2000-04-17 Andrew Haley <aph@cygnus.com>
6604 * Makefile.am: Add new files:
6605 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
6607 * Makefile.in: Rebuilt.
6609 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
6610 interface that has no implementations.
6611 Check for an attempt to assign an abstract class to an interface.
6613 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
6614 if we fail to find MessageDigest.getInstance ("SHA").
6616 * gnu/gcj/io/SimpleSHSStream.java: New file.
6617 * gnu/gcj/io/natSimpleSHSStream.java: New file.
6618 * gnu/gcj/io/shs.cc: New file.
6619 * gnu/gcj/io/shs.h: new file.
6621 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
6624 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
6625 punctuation from the classname of an array element.
6627 * gcj/javaprims.h: Add SimpleDigestStream.
6629 2000-04-17 Andrew Haley <aph@cygnus.com>
6631 * java/lang/natClass.cc (getPrivateField): Make recursive calls
6632 to getPrivateField for superclasses.
6634 2000-04-14 Andrew Haley <aph@cygnus.com>
6636 * Makefile.am: Add new files:
6637 java/io/ObjectOutputStream$PutField.h,
6638 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
6639 java/io/natObjectOutputStream.cc
6640 * Makefile.in: Rebuilt.
6641 * gcj/Makefile.in: Rebuilt.
6642 * include/Makefile.in: Rebuilt.
6643 * java/lang/Class.h (getPrivateField): New method.
6644 (getPrivateMethod): Ditto.
6645 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
6646 and java::io::ObjectStreamClass our friends.
6647 * java/lang/natClass.cc (getPrivateField): New method.
6648 (getPrivateMethod): Ditto.
6649 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
6650 * gcj/javaprims.h: Add serialization classes.
6651 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
6652 (setByteField): Ditto.
6653 (setCharField): Ditto.
6654 (setDoubleField): Ditto.
6655 (setFloatField): Ditto.
6656 (setIntField): Ditto.
6657 (setLongField): Ditto.
6658 (setShortField): Ditto.
6659 (setObjectField): Ditto.
6660 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
6662 (getByteField): Ditto.
6663 (getCharField): Ditto.
6664 (getDoubleField): Ditto.
6665 (getFloatField): Ditto.
6666 (getIntField): Ditto.
6667 (getLongField): Ditto.
6668 (getShortField): Ditto.
6669 (getObjectField): Ditto.
6670 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
6672 (getSerialPersistantFields): Ditto.
6673 (getDefinedSUID): Ditto.
6674 * java/io/natObjectOutputStream.cc: New file.
6675 * java/io/natObjectInputStream.cc: New file.
6677 2000-04-13 Warren Levy <warrenl@cygnus.com>
6679 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
6680 problems. Revert to previous version to reproduce and when fixed.
6682 2000-04-13 Warren Levy <warrenl@cygnus.com>
6684 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
6685 * gnu/gcj/io/NullOutputStream.java: New file.
6686 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
6687 * java/io/BlockDataException.java: New file.
6688 * java/io/Externalizable.java: New file.
6689 * java/io/InvalidClassException.java: New file.
6690 * java/io/InvalidObjectException.java: New file.
6691 * java/io/NotActiveException.java: New file.
6692 * java/io/NotSerializableException.java: New file.
6693 * java/io/ObjectInput.java: New file.
6694 * java/io/ObjectInputStream.java: New file.
6695 * java/io/ObjectInputValidation.java: New file.
6696 * java/io/ObjectOutput.java: New file.
6697 * java/io/ObjectOutputStream.java: New file.
6698 * java/io/ObjectStreamClass.java: New file.
6699 * java/io/ObjectStreamConstants.java: New file.
6700 * java/io/ObjectStreamField.java: New file.
6701 * java/io/Replaceable.java: New file.
6702 * java/io/Resolvable.java: New file.
6703 * java/io/SerializablePermission.java: New file.
6704 * java/io/WriteAbortedException.java: New file.
6705 * java/security/BasicPermission.java: New file.
6706 * java/security/DigestOutputStream.java: New file.
6707 * java/security/Guard.java: New file.
6708 * java/security/Permission.java: New file.
6709 * java/security/PermissionCollection.java: New file.
6710 * Makefile.am: Added above files.
6711 * Makefile.in: Rebuilt.
6713 * java/beans/Beans.java (instantiate): Activated serialization code.
6714 * java/lang/SecurityManager.java (checkPermission): New method.
6716 2000-04-12 Warren Levy <warrenl@cygnus.com>
6718 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
6719 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
6720 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
6721 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
6722 * gnu/gcj/beans/editors/ColorEditor.java: New file.
6723 * gnu/gcj/beans/editors/FontEditor.java: New file.
6724 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
6725 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
6726 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
6727 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
6728 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
6729 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
6730 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
6731 * gnu/gcj/beans/editors/StringEditor.java: New file.
6732 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
6733 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
6734 * gnu/gcj/lang/ArrayHelper.java: New file.
6735 * gnu/gcj/lang/ClassHelper.java: New file.
6736 * java/beans/BeanDescriptor.java: New file.
6737 * java/beans/BeanInfo.java: New file.
6738 * java/beans/Beans.java: New file.
6739 * java/beans/Customizer.java: New file.
6740 * java/beans/DesignMode.java: New file.
6741 * java/beans/EventSetDescriptor.java: New file.
6742 * java/beans/FeatureDescriptor.java: New file.
6743 * java/beans/IndexedPropertyDescriptor.java: New file.
6744 * java/beans/IntrospectionException.java: New file.
6745 * java/beans/Introspector.java: New file.
6746 * java/beans/MethodDescriptor.java: New file.
6747 * java/beans/ParameterDescriptor.java: New file.
6748 * java/beans/PropertyChangeEvent.java: New file.
6749 * java/beans/PropertyChangeListener.java: New file.
6750 * java/beans/PropertyChangeSupport.java: New file.
6751 * java/beans/PropertyDescriptor.java: New file.
6752 * java/beans/PropertyEditor.java: New file.
6753 * java/beans/PropertyEditorManager.java: New file.
6754 * java/beans/PropertyEditorSupport.java: New file.
6755 * java/beans/PropertyVetoException.java: New file.
6756 * java/beans/SimpleBeanInfo.java: New file.
6757 * java/beans/VetoableChangeListener.java: New file.
6758 * java/beans/VetoableChangeSupport.java: New file.
6759 * java/beans/Visibility.java: New file.
6760 * java/beans/beancontext/BeanContext.java: New file.
6761 * java/beans/beancontext/BeanContextChild.java: New file.
6762 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6763 * java/beans/beancontext/BeanContextChildSupport.java: New file.
6764 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6765 * java/beans/beancontext/BeanContextEvent.java: New file.
6766 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6767 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6768 * java/beans/beancontext/BeanContextProxy.java: New file.
6769 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6771 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6772 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6774 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6775 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6777 * java/beans/beancontext/BeanContextServices.java: New file.
6778 * java/beans/beancontext/BeanContextServicesListener.java: New file.
6779 * java/util/AbstractCollection.java: New file.
6780 * java/util/AbstractList.java: New file.
6781 * java/util/Arrays.java: New file.
6782 * Makefile.am: Added above files.
6783 * Makefile.in: Rebuilt.
6785 2000-04-11 Warren Levy <warrenl@cygnus.com>
6787 * java/awt/AWTError.java: New file.
6788 * java/awt/AWTEvent.java: New file.
6789 * java/awt/AWTException.java: New file.
6790 * java/awt/ActiveEvent.java: New file.
6791 * java/awt/Adjustable.java: New file.
6792 * java/awt/BorderLayout.java: New file.
6793 * java/awt/Color.java: New file.
6794 * java/awt/Component.java: New file.
6795 * java/awt/Container.java: New file.
6796 * java/awt/Dimension.java: New file.
6797 * java/awt/Event.java: New file.
6798 * java/awt/Font.java: New file.
6799 * java/awt/Frame.java: New file.
6800 * java/awt/Graphics.java: New file.
6801 * java/awt/IllegalComponentStateException.java: New file.
6802 * java/awt/Image.java: New file.
6803 * java/awt/ItemSelectable.java: New file.
6804 * java/awt/LayoutManager.java: New file.
6805 * java/awt/LayoutManager2.java: New file.
6806 * java/awt/Menu.java: New file.
6807 * java/awt/MenuBar.java: New file.
6808 * java/awt/MenuComponent.java: New file.
6809 * java/awt/MenuContainer.java: New file.
6810 * java/awt/MenuItem.java: New file.
6811 * java/awt/Paint.java: New file.
6812 * java/awt/PaintContext.java: New file.
6813 * java/awt/Point.java: New file.
6814 * java/awt/Rectangle.java: New file.
6815 * java/awt/Shape.java: New file.
6816 * java/awt/TextArea.java: New file.
6817 * java/awt/TextComponent.java: New file.
6818 * java/awt/Toolkit.java: New file.
6819 * java/awt/Transparency.java: New file.
6820 * java/awt/Window.java: New file.
6821 * java/awt/natToolkit.cc: New file.
6822 * java/awt/event/AWTEventListener.java: New file.
6823 * java/awt/event/ActionEvent.java: New file.
6824 * java/awt/event/ActionListener.java: New file.
6825 * java/awt/event/AdjustmentEvent.java: New file.
6826 * java/awt/event/AdjustmentListener.java: New file.
6827 * java/awt/event/ComponentAdapter.java: New file.
6828 * java/awt/event/ComponentEvent.java: New file.
6829 * java/awt/event/ComponentListener.java: New file.
6830 * java/awt/event/ContainerAdapter.java: New file.
6831 * java/awt/event/ContainerEvent.java: New file.
6832 * java/awt/event/ContainerListener.java: New file.
6833 * java/awt/event/FocusAdapter.java: New file.
6834 * java/awt/event/FocusEvent.java: New file.
6835 * java/awt/event/FocusListener.java: New file.
6836 * java/awt/event/InputEvent.java: New file.
6837 * java/awt/event/InputMethodEvent.java: New file.
6838 * java/awt/event/InputMethodListener.java: New file.
6839 * java/awt/event/InvocationEvent.java: New file.
6840 * java/awt/event/ItemEvent.java: New file.
6841 * java/awt/event/ItemListener.java: New file.
6842 * java/awt/event/KeyAdapter.java: New file.
6843 * java/awt/event/KeyEvent.java: New file.
6844 * java/awt/event/KeyListener.java: New file.
6845 * java/awt/event/MouseAdapter.java: New file.
6846 * java/awt/event/MouseEvent.java: New file.
6847 * java/awt/event/MouseListener.java: New file.
6848 * java/awt/event/MouseMotionAdapter.java: New file.
6849 * java/awt/event/MouseMotionListener.java: New file.
6850 * java/awt/event/PaintEvent.java: New file.
6851 * java/awt/event/TextEvent.java: New file.
6852 * java/awt/event/TextListener.java: New file.
6853 * java/awt/event/WindowAdapter.java: New file.
6854 * java/awt/event/WindowEvent.java: New file.
6855 * java/awt/event/WindowListener.java: New file.
6856 * java/awt/geom/Dimension2D.java: New file.
6857 * java/awt/geom/Point2D.java: New file.
6858 * java/awt/peer/ComponentPeer.java: New file.
6859 * java/awt/peer/ContainerPeer.java: New file.
6860 * java/awt/peer/FramePeer.java: New file.
6861 * java/awt/peer/WindowPeer.java: New file.
6862 * java/util/Collection.java: New file.
6863 * java/util/Comparator.java: New file.
6864 * java/util/Iterator.java: New file.
6865 * java/util/List.java: New file.
6866 * java/util/ListIterator.java: New file.
6867 * Makefile.am: Added above files.
6868 * Makefile.in: Rebuilt.
6870 2000-04-10 Warren Levy <warrenl@cygnus.com>
6872 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6873 * java/lang/FirstThread.java: Ditto.
6874 * java/lang/StringBuffer.java: Ditto.
6875 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6877 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6878 Special case handled in java.math.BigInteger.
6879 * java/math/BigInteger.java (divide): Handle the special case when
6880 dividing by 1 and the high bit of the dividend is set.
6881 (setShiftRight): Handle case when count == 0.
6883 2000-04-05 Andrew Haley <aph@cygnus.com>
6885 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6888 2000-04-05 Andrew Haley <aph@cygnus.com>
6890 * sysdep/ia64.c (rse_address_add): Delete.
6891 (IS_NaT_COLLECTION_ADDR): Delete.
6892 (ia64_backtrace_helper): check for null unwind_info.
6894 * sysdep/ia64-frame.h: add calc_caller_bsp.
6896 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6899 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6900 (_Jv_remI): Likewise.
6901 (_Jv_divJ): Likewise.
6902 (_Jv_remJ): Likewise.
6904 * interpret.cc (continue1): Use divide subroutines to guarantee
6905 correct Java standard behaviour.
6906 Floating-point division should not abort; make it so.
6908 2000-03-29 Tom Tromey <tromey@cygnus.com>
6910 * configure: Rebuilt.
6911 * configure.in: Test against `libgcj_sjlj', not
6912 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6913 to be set even when using sjlj.
6915 2000-03-24 Andrew Haley <aph@cygnus.com>
6917 * Makefile.am: Add file addr2name.awk.
6918 * Makefile.in: Rebuilt.
6919 * addr2name.awk: New file.
6920 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6922 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6925 2000-03-22 Andrew Haley <aph@cygnus.com>
6927 * configure.host: Add -funwind-tables for IA64.
6928 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6929 * Makefile.in: Rebuilt.
6930 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6931 * sysdep/ia64.c: New file.
6932 * sysdep/ia64-frame.h: New file.
6933 * configure.in: Add sysdep/ia64.c for ia64.
6934 * configure: Rebuilt.
6936 2000-03-17 Andrew Haley <aph@cygnus.com>
6938 * java/lang/natString.cc: Remove `register' keyword.
6939 interpret.cc: ditto.
6941 2000-03-16 Andrew Haley <aph@cygnus.com>
6943 * configure.host (ia64): Enable interpreter.
6945 2000-03-14 Hans Boehm <boehm@acm.org>
6947 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6949 2000-03-14 Andrew Haley <aph@cygnus.com>
6951 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6954 2000-03-10 Andrew Haley <aph@cygnus.com>
6956 * java/lang/ieeefp.h: Import latest version from fdlibm.
6958 2000-03-14 Andrew Haley <aph@cygnus.com>
6960 * prims.cc (_Jv_ThrowSignal): New function.
6961 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6963 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6964 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6965 * include/ppc-signal.h: New file.
6967 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6969 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6970 * java/lang/natThread.java (initialize_native): Cast `data' to
6972 * gnu/gcj/RawData.java: Clarify documentation.
6974 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6975 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6976 `jarFile', not `jarFileURL'.
6978 2000-05-15 Andrew Haley <aph@cygnus.com>
6980 * include/ppc-signal.h: New file.
6982 2000-05-11 Tom Tromey <tromey@cygnus.com>
6984 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6985 file headers, don't include `size' in the skip call.
6987 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6989 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6990 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6992 (replace): Reimplemented. Fix javadoc.
6993 (reverse): Call ensureCapacity_unsynchronized().
6994 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6996 (replace): Calculate length for arraycopy() correctly.
6998 2000-05-09 Tom Tromey <tromey@cygnus.com>
7000 * java/lang/StringBuffer.java (toString): Don't mark buffer as
7002 (insert(int,char[],int,int): New method.
7003 (delete): New method from Classpath.
7004 (deleteCharAt): Likewise.
7005 (substring): Likewise.
7006 (shared): No longer private.
7007 Added JavaDoc comments from Classpath.
7008 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
7011 2000-05-07 Tom Tromey <tromey@cygnus.com>
7013 * Makefile.in: Rebuilt.
7014 * Makefile.am (LIBLINK): New macro.
7015 (libgcj_la_LINK): Use it.
7016 (libgcjawt_la_LINK): Likewise.
7018 2000-05-06 Tom Tromey <tromey@cygnus.com>
7020 * Makefile.in: Rebuilt.
7021 * Makefile.am (libgcj.zip): Don't pass -L to javac.
7023 2000-05-05 Tom Tromey <tromey@cygnus.com>
7025 Fix for PR libgcj/220:
7026 * Makefile.in: Rebuilt.
7027 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
7028 (jv_convert_LDFLAGS): Likewise.
7029 (libgcj_la_LDFLAGS): Likewise.
7030 (GCJLINK): New macro.
7031 (jv_convert_LINK): Use it.
7032 (gij_LINK): Likewise.
7033 (libgcj_la_LINK): New macro.
7034 (libgcjawt_la_LINK): Likewise.
7036 2000-05-04 Tom Tromey <tromey@cygnus.com>
7038 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
7040 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
7044 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
7046 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
7047 (_Jv_IsAssignableFrom): Ditto.
7048 (_Jv_IsInstanceOf): Ditto.
7049 (_Jv_CheckCast): Ditto.
7050 (_Jv_CheckArrayStore): Ditto.
7051 * java/lang/Class.h (_Jv_InitClass): Ditto.
7052 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
7057 (_Jv_MonitorExit): Ditto.
7058 * boehm.cc (_Jv_MarkObj): Ditto.
7059 (_Jv_MarkObj): Ditto.
7060 (_Jv_MarkArray): Ditto.
7061 * prims.cc (_Jv_AllocObject): Ditto.
7062 (_Jv_NewObjectArray): Ditto.
7063 (_Jv_NewPrimArray): Ditto.
7064 (_Jv_Malloc): Ditto.
7065 (_Jv_Realloc): Ditto.
7066 (_Jv_MallocUnchecked): Ditto.
7072 2000-05-04 Tom Tromey <tromey@cygnus.com>
7074 * java/util/Locale.java (Locale): Don't explicitly check for
7076 * java/util/Hashtable.java (containsKey): Don't explicitly check
7079 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
7081 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
7083 * java/text/StringCharacterIterator.java
7084 (StringCharacterIterator): Don't check for null.
7085 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
7087 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
7088 check for null pointer.
7089 (leaveGroup): Likewise.
7090 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
7092 (setData): Likewise.
7093 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
7096 2000-04-28 Jakub Jelinek <jakub@redhat.com>
7098 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
7099 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
7100 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
7101 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
7102 -rpath for in-gcc builds.
7103 * Makefile.in: Rebuilt.
7105 2000-04-28 Tom Tromey <tromey@cygnus.com>
7107 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
7110 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
7112 * libjava/java/lang/String.java (toString): Remove `final' hack.
7114 2000-04-05 Tom Tromey <tromey@cygnus.com>
7116 Runtime support for PR gcj/2:
7117 * prims.cc (_Jv_ThrowNullPointerException): New function.
7118 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
7120 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
7122 * prims.cc (_Jv_NewObjectArray): Fix typo.
7124 2000-04-26 Tom Tromey <tromey@cygnus.com>
7126 * Makefile.in: Rebuilt.
7127 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
7129 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
7131 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
7134 2000-04-22 Anthony Green <green@cygnus.com>
7136 * include/jvm.h (__builtin_expect): Define as unused for now.
7137 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
7141 (_Jv_MonitorExit): Ditto.
7142 * boehm.cc (_Jv_MarkObj): Ditto.
7143 (_Jv_MarkObj): Ditto.
7144 (_Jv_MarkArray): Ditto.
7145 (_Jv_AllocBytes): Ditto.
7146 * prims.cc (_Jv_AllocObject): Ditto.
7147 (_Jv_NewObjectArray): Ditto.
7148 (_Jv_NewPrimArray): Ditto.
7149 (_Jv_Malloc): Ditto.
7150 (_Jv_Realloc): Ditto.
7151 (_Jv_MallocUnchecked): Ditto.
7157 * include/Makefile.in: Rebuilt.
7158 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
7160 2000-04-21 Tom Tromey <tromey@cygnus.com>
7162 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
7163 Yet another new version from Classpath.
7165 Fix for PR libgcj/15:
7166 * java/util/natGregorianCalendar.cc (_REENTRANT,
7167 _POSIX_PTHREAD_SEMANTICS): Don't define.
7168 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
7169 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
7171 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
7173 * configure: Rebuilt.
7174 * configure.in: If using POSIX threads, define _REENTRANT if
7175 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
7176 GETHOSTBYNAME_R_NEEDS_REENTRANT.
7178 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7179 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
7180 version from Classpath.
7182 Fix for PR libgcj/213:
7183 * Makefile.in: Rebuilt.
7184 * Makefile.am (gij_SOURCES): Added gij.cc.
7185 (EXTRA_gij_SOURCES): Removed.
7186 (gij_LDADD): Removed gij.lo.
7187 (gij_DEPENDENCIES): Likewise.
7188 ($(gij_OBJECTS)): Depend on nat_headers.
7190 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
7191 `setURL', not `url.set'.
7193 2000-04-20 Tom Tromey <tromey@cygnus.com>
7195 Fix for PR java.io/204:
7196 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7197 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
7200 Fix for PR libgcj/212:
7201 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
7202 * include/jvm.h (_Jv_word, _Jv_word2): Define.
7203 * java/lang/Class.h (_Jv_word): Declare.
7205 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
7207 2000-04-19 Tom Tromey <tromey@cygnus.com>
7209 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
7210 doesn't have a loader.
7212 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
7214 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
7215 MAYBE_MARK to ptr_t, for compatibility with new GC version.
7217 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
7219 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
7221 (available): Initialize `where' to prevent bogus compiler warning.
7223 2000-04-12 Tom Tromey <tromey@cygnus.com>
7225 * java/lang/natString.cc (intern): Temporarily disable finalizer
7228 * java/lang/natString.cc (unintern): Added `obj' argument.
7229 (intern): Register finalizer for string.
7230 * java/lang/String.java (unintern): Now static; added obj
7233 2000-04-11 Tom Tromey <tromey@cygnus.com>
7235 * java/util/Vector.java (VectorEnumeration): Now `final'.
7236 * java/util/Hashtable.java (HashtableEntry): Now `final'.
7237 (HashtableEnumeration): Likewise.
7238 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
7239 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
7241 2000-04-10 Warren Levy <warrenl@cygnus.com>
7243 * java/io/ObjectStreamException.java: New file.
7244 * java/io/OptionalDataException.java: New file.
7245 * java/io/StreamCorruptedException.java: New file.
7246 * java/math/BigDecimal.java: New file.
7247 * java/sql/CallableStatement.java: New file.
7248 * java/sql/Connection.java: New file.
7249 * java/sql/DataTruncation.java: New file.
7250 * java/sql/DatabaseMetaData.java: New file.
7251 * java/sql/Date.java: New file.
7252 * java/sql/Driver.java: New file.
7253 * java/sql/DriverManager.java: New file.
7254 * java/sql/DriverPropertyInfo.java: New file.
7255 * java/sql/PreparedStatement.java: New file.
7256 * java/sql/ResultSet.java: New file.
7257 * java/sql/ResultSetMetaData.java: New file.
7258 * java/sql/SQLException.java: New file.
7259 * java/sql/SQLWarning.java: New file.
7260 * java/sql/Statement.java: New file.
7261 * java/sql/Time.java: New file.
7262 * java/sql/Timestamp.java: New file.
7263 * java/sql/Types.java: New file.
7264 * Makefile.am: Added above new files.
7265 * Makefile.in: Rebuilt.
7267 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
7268 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
7269 DatagramSocket constructor instead of null.
7271 2000-04-08 Anthony Green <green@cygnus.com>
7273 * include/posix-threads.h (_Jv_MutexUnlock): Replace
7276 2000-04-08 Anthony Green <green@cygnus.com>
7278 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
7279 (_Jv_MutexUnlock): Ditto.
7280 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
7281 (_Jv_MutexUnlock): Ditto.
7283 2000-04-08 Anthony Green <green@cygnus.com>
7285 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
7286 (ensureCapacity_unsynchronized): New private method.
7287 (append): Use ensureCapacity_unsynchronized.
7289 2000-04-08 Tom Tromey <tromey@cygnus.com>
7291 * Makefile.in: Rebuilt.
7292 * Makefile.am (awt_java_source_files): Added new files.
7293 * java/awt/IllegalComponentStateException.java: New file.
7294 * java/awt/ItemSelectable.java: New file.
7295 * java/awt/event/WindowEvent.java: Finished.
7296 * java/awt/event/TextEvent.java: Finished.
7297 * java/awt/event/ContainerEvent.java: New file.
7298 * java/awt/Component.java (getX, getY): New methods.
7299 * java/awt/event/PaintEvent.java: New file.
7300 * java/awt/event/MouseEvent.java: New file.
7301 * java/awt/ActiveEvent.java: New file.
7302 * java/awt/event/KeyEvent.java: Finished.
7303 * java/awt/event/ItemEvent.java: New file.
7304 * java/awt/Adjustable.java: New file.
7305 * java/awt/event/InputMethodEvent.java: New file.
7306 * java/awt/event/InputEvent.java: Finished.
7307 * java/awt/event/FocusEvent.java: New file.
7308 * java/awt/event/MouseMotionAdapter.java: New file.
7309 * java/awt/event/MouseAdapter.java: New file.
7310 * java/awt/event/KeyAdapter.java: New file.
7311 * java/awt/event/FocusAdapter.java: New file.
7312 * java/awt/event/ContainerAdapter.java: New file.
7313 * java/awt/event/ComponentEvent.java: Finished.
7314 * java/awt/event/AdjustmentEvent.java: New file.
7315 * java/awt/event/ComponentAdapter.java: New file.
7316 * java/awt/event/ActionEvent.java: Finished.
7317 * java/awt/event/MouseMotionListener.java: New file.
7318 * java/awt/event/MouseListener.java: New file.
7319 * java/awt/event/ItemListener.java: New file.
7320 * java/awt/event/InputMethodListener.java: New file.
7321 * java/awt/event/ContainerListener.java: New file.
7322 * java/awt/event/FocusListener.java: New file.
7323 * java/awt/event/ComponentListener.java: New file.
7324 * java/awt/event/AWTEventListener.java: New file.
7325 * java/awt/event/AdjustmentListener.java: New file.
7327 2000-04-08 Anthony Green <green@cygnus.com>
7329 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
7330 check when we have to.
7332 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
7335 * java/util/StringTokenizer.java: Minor optimization. Eliminates
7338 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
7339 inline hasMoreElements.
7341 2000-04-05 Tom Tromey <tromey@cygnus.com>
7343 * configure: Rebuilt.
7344 * configure.in: Recognize --enable-java-awt.
7345 (AWT): New conditional.
7346 * Makefile.in: Rebuilt.
7347 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
7349 (libgcjawt_la_SOURCES): New macro.
7350 (EXTRA_libgcjawt_la_SOURCES): Likewise.
7351 (libgcjawt_la_DEPENDENCIES): Likewise.
7352 (libgcjawt_la_LIBADD): Likewise.
7353 (libgcjawt_la_LDFLAGS): Likewise.
7354 (libgcj.zip): Depend on cond_java_awt_source_files
7355 (cond_awt_java_source_files): New macro.
7356 (MOSTLYCLEANFILES): Added awto_files.
7357 (awto_files): New macro. Use where javao_files used.
7358 (nat_headers): Use cond_awt_java_source_files.
7360 2000-04-04 Tom Tromey <tromey@cygnus.com>
7362 * Makefile.in: Rebuilt.
7363 * Makefile.am (awt_java_source_files): Added AWTException.java.
7364 * java/awt/AWTException.java: New file.
7366 2000-04-03 Tom Tromey <tromey@cygnus.com>
7368 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
7369 commentary from Alex.
7371 * Makefile.in: Rebuilt.
7372 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
7375 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
7377 * configure: Rebuilt.
7378 * configure.in: Add --disable-jvmpi.
7379 * include/config.h.in: Rebuilt.
7380 * acconfig.h: Add ENABLE_JVMPI.
7382 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
7383 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
7384 (_Jv_JVMPI_Notify_THREAD_END): New define.
7385 (_Jv_JVMPI_Notify_THREAD_END): New define.
7386 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
7387 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7388 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7390 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
7393 * java/lang/natThread.cc: Include JVMPI headers if necessary.
7394 (finish_): Generate JVMPI thread end events.
7395 (run_): Generate JVMPI thread start events.
7396 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
7397 preloaded JNI library.
7398 Include JVMPI headers if necessary.
7399 (run): Generate JVMPI thread start events.
7401 * boehm.cc: Define GC_disable and GC_enable.
7402 (_Jv_DisableGC): New function.
7403 (_Jv_EnableGC): New function.
7404 (disable_gc_mutex): Declare.
7405 * nogc.cc (_Jv_DisableGC): New function.
7406 (_Jv_EnableGC): New function.
7408 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
7409 (_Jv_JVMPI_Interface): Define.
7410 (jvmpiEnableEvent): New function.
7411 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
7413 * include/jvmpi.h: New file.
7415 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
7417 * Makefile.in: New #defines and friends for Thread.h.
7418 * Makefile.am: Ditto.
7419 * posix-threads.cc: (struct starter): Remove `object'.
7420 (_Jv_CondWait): Use interruptable condition variables and new
7421 recursive mutexes. New return codes on interrupt or non-ownership
7423 (_Jv_CondNotify): Ditto.
7424 (_Jv_CondNotifyAll): Ditto.
7425 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
7426 the target thread by signaling its wait condition.
7427 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
7428 not the starter struct. Initialize wait_mutex and wait_cond.
7429 (_Jv_MutexLock): New recursive mutex implementation. Moved from
7431 (_Jv_MutexUnlock): Ditto.
7432 (really_start): Set info->data->thread from pthread_self() to work
7433 around a race condition. Destroy wait_mutex and wait_cond when run()
7435 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
7436 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
7438 startable_flag: New private field.
7439 (Thread): Initialize `startable_flag'.
7440 (toString): Check for null thread group.
7441 * java/lang/natThread.cc: (struct natThread): New fields
7442 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
7443 (class locker): Removed.
7444 (initialize_native): Initialize `join_cond' and `join_mutex'.
7445 (interrupt): Now just calls _Jv_ThreadInterrupt().
7446 (join): Simplified. Just wait on the target thread's join condition.
7447 (finish_): Remove join list code. Unset thread group. Signal
7448 potential joiners by notifying the dying threads join_cond.
7449 (start): Check for illegal restarts.
7450 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
7452 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
7453 #defines and #ifdefs.
7454 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
7455 `wait_mutex', `next'.
7456 (struct _Jv_ConditionVariable_t): Define as a struct instead of
7457 directly mapping to pthread_cond_t.
7458 (struct _Jv_Mutex_t): New recursive implementation.
7459 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
7460 _Jv_HaveCondDestroy: Never define this for posix-threads.
7461 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
7462 (_Jv_CondNotifyAll): Ditto.
7463 (_Jv_MutexLock): Ditto.
7464 (_Jv_MutexUnlock): Ditto.
7465 (_Jv_MutexInit): Changed to reflect new mutex implementation.
7466 (_Jv_MutexDestroy): Ditto.
7467 (_Jv_CondDestroy): Removed.
7468 (_Jv_PthreadGetMutex): Removed.
7469 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
7470 error. Add a FIXME about this.
7471 (_Jv_CondNotifyAll): Ditto.
7472 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
7473 _JV_NOT_OWNER on other errors. Add FIXME.
7475 2000-03-26 Tom Tromey <tromey@cygnus.com>
7477 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
7479 (call): Don't throw exception here.
7481 2000-03-26 Tom Tromey <tromey@cygnus.com>
7483 * java/lang/mprec.h: Use SIZEOF_VOID_P.
7484 * interpret.cc: Use SIZEOF_VOID_P.
7485 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
7486 (_Jv_loadLong): Likewise.
7487 (_Jv_storeDouble): Likewise.
7488 * configure: Rebuilt.
7489 * configure.in: Check size of void*.
7491 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
7493 2000-03-26 Hans Boehm <boehm@acm.org>
7495 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
7496 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
7498 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
7499 __IEEE_LITTLE_ENDIAN appropriately on IA64.
7500 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
7501 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
7503 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
7504 (FFI_RAW_SIZE): Likewise.
7505 (_Jv_InterpMethod::ncode): Use them.
7506 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
7507 STORED): Define differently on a 64 bit machine.
7508 (continue1): Use ffi_java_raw_call when appropriate.
7510 2000-03-24 Warren Levy <warrenl@cygnus.com>
7512 * java/math/BigInteger.java(divide): Handle the special case when
7513 dividing by 1 and the high bit of the dividend is set.
7514 (setShiftRight): Handle case when count == 0.
7516 2000-03-24 Warren Levy <warrenl@cygnus.com>
7518 * java/awt/Font.java(isBold): Fix syntax error.
7520 * java/awt/Frame.java(postEvent): ditto.
7521 * java/awt/Menu.java(postEvent): ditto.
7522 * java/awt/MenuBar.java(postEvent): ditto.
7523 * java/awt/Toolkit.java(init): Included a stub.
7525 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7527 * java/awt/Event.java: Add all the event type constants.
7528 (Event): Implemented constructors.
7529 (controlDown): Implemented.
7530 (metaDown): Implemented.
7531 (paramString): Stubbed.
7532 (shiftDown): Implemented.
7533 (toString): Implemented.
7534 (translate): Implemented.
7536 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7538 * java/lang/natClass.cc (isInstance): Initialize `this'.
7539 (isAssignableFrom): Initialize `this' and `klass'.
7540 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
7541 implemented by any loaded class, so return false.
7542 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
7543 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
7545 2000-03-19 Warren Levy <warrenl@cygnus.com>
7547 * java/awt/Color.java: Specified java.io for Serializable.
7548 * java/awt/Toolkit.java: Imported java.net.URL.
7550 2000-03-19 Warren Levy <warrenl@cygnus.com>
7552 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
7554 2000-03-16 Warren Levy <warrenl@cygnus.com>
7556 * java/awt/Color.java: New file.
7557 * java/awt/Graphics.java: New file.
7558 * java/awt/Image.java: New file.
7559 * java/awt/Paint.java: New file.
7560 * java/awt/PaintContext.java: New file.
7561 * java/awt/Transparency.java: New file.
7562 * java/util/Collection.java: New file.
7563 * java/util/Comparator.java: New file.
7564 * java/util/Iterator.java: New file.
7565 * java/util/List.java: New file.
7566 * java/util/ListIterator.java: New file.
7567 * Makefile.am: Added above new files.
7568 * Makefile.in: Rebuilt.
7570 * java/awt/Font.java (PLAIN): New field.
7572 (ITALIC): New field.
7573 (ROMAN_BASELINE): New field.
7574 (CENTER_BASELINE): New field.
7575 (HANGING_BASELINE): New field.
7579 (pointSize): New field.
7580 (Font): Implemented constructor.
7581 (isPlain): Implemented method.
7582 (isBold): Implemented method.
7583 (isItalic): Implemented method.
7584 (getName): Implemented method.
7585 (getStyle): Implemented method.
7586 (getSize): Implemented method.
7587 (getSize2D): Implemented method.
7589 * java/awt/Frame.java (getFont): Stubbed.
7590 (postEvent): Stubbed.
7592 * java/awt/Menu.java (postEvent): Stubbed.
7593 * java/awt/MenuBar.java (getFont): Stubbed.
7594 (postEvent): Stubbed.
7595 * java/awt/Toolkit.java (getImage): Added abstract method.
7597 2000-03-15 Tom Tromey <tromey@cygnus.com>
7599 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
7601 * prims.cc (win32_exception_handler): Reformatted.
7603 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
7604 (_Jv_HaveMutexDestroy): Likewise.
7606 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
7608 * java/io/natFileDescriptorWin32.cc: New file.
7609 * java/io/natFileWin32.cc: New file.
7610 * java/net/natInetAddress.cc: Added conditional inclusion of
7611 Windows / Winsock headers.
7612 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
7613 inclusion of Windows / Winsock headers.
7614 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
7615 Windows / Winsock headers.
7616 * include/win32-signal.h: New file.
7617 * include/win32-threads.h: New file.
7618 * win32-threads.cc: New file.
7619 * exception.cc (win32_get_restart_frame): New function.
7620 * prims.cc (win32_exception_handler): New function.
7621 (main_init) Performs Winsock initialisation.
7622 (main_init) Installs exeception handler.
7624 2000-03-14 Tom Tromey <tromey@cygnus.com>
7626 * jni.cc (mangled_name): Fixed assertion.
7627 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
7628 turned assert into actual failure.
7630 2000-03-09 Warren Levy <warrenl@cygnus.com>
7632 * java/security/Key.java(serialVersionUID): Set to 0 for now.
7633 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
7634 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
7636 2000-03-09 Warren Levy <warrenl@cygnus.com>
7638 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
7639 * java/security/DigestException.java: New file.
7640 * java/security/GeneralSecurityException.java: New file.
7641 * java/security/InvalidAlgorithmParameterException.java: New file.
7642 * java/security/InvalidKeyException.java: New file.
7643 * java/security/InvalidParameterException.java: New file.
7644 * java/security/Key.java: New file.
7645 * java/security/KeyException.java: New file.
7646 * java/security/KeyPair.java: New file.
7647 * java/security/KeyPairGenerator.java: New file.
7648 * java/security/KeyPairGeneratorSpi.java: New file.
7649 * java/security/NoSuchProviderException.java: New file.
7650 * java/security/PrivateKey.java: New file.
7651 * java/security/Provider.java: New file.
7652 * java/security/PublicKey.java: New file.
7653 * java/security/SecureRandom.java: New file.
7654 * java/security/Security.java: New file.
7655 * java/security/Signature.java: New file.
7656 * java/security/SignatureException.java: New file.
7657 * java/security/interfaces/DSAKey.java: New file.
7658 * java/security/interfaces/DSAParams.java: New file.
7659 * java/security/interfaces/DSAPrivateKey.java: New file.
7660 * java/security/interfaces/DSAPublicKey.java: New file.
7661 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
7662 * java/security/interfaces/RSAPrivateKey.java: New file.
7663 * java/security/interfaces/RSAPublicKey.java: New file.
7664 * java/security/spec/AlgorithmParameterSpec.java: New file.
7665 * java/security/spec/InvalidKeySpecException.java: New file.
7666 * java/security/spec/InvalidParameterSpecException.java: New file.
7667 * java/security/spec/KeySpec.java: New file.
7668 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
7669 * java/security/spec/RSAPrivateKeySpec.java: New file.
7670 * java/security/spec/RSAPublicKeySpec.java: New file.
7671 * Makefile.am: Added above java.security files.
7672 * Makefile.in: Rebuilt.
7674 * java/security/MessageDigest.java: Rewritten.
7675 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
7677 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7681 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7683 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
7684 _Jv_PrepareConstantTimeTables.
7685 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
7686 classes should have an IDT, so don't return if klass is an array
7689 2000-03-08 Tom Tromey <tromey@cygnus.com>
7691 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
7692 of `void' to be created.
7694 2000-03-08 Warren Levy <warrenl@cygnus.com>
7696 * java/math/BigInteger.java(signum): Handle zero properly.
7698 2000-03-07 Tom Tromey <tromey@cygnus.com>
7700 * All files: Updated copyright information.
7701 * COPYING: New file.
7702 * COPYING.LIB: Removed.
7703 * LIBGCJ_LICENSE: We now use GPL + special exception.
7705 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7707 * resolve.cc (_Jv_SearchMethodInClass): New function.
7708 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
7709 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
7711 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7713 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
7714 (struct _Jv_ifaces): New declaration.
7715 JV_CLASS: New macro definition.
7716 (getComponentType): Relocate below isArray() for inlining.
7717 (getModifiers): Declare `inline'.
7718 (getSuperclass): Ditto.
7720 (isPrimitive): Ditto.
7721 (_Jv_IsAssignableFrom): New prototype.
7722 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
7724 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
7725 Check for JV_STATE_DONE before invoking initializeClass().
7726 (_Jv_PrepareConstantTimeTables): New prototype.
7727 (_Jv_GetInterfaces): Ditto.
7728 (_Jv_GenerateITable): Ditto.
7729 (_Jv_GetMethodString): Ditto.
7730 (_Jv_AppendPartialITable): Ditto.
7731 (_Jv_FindIIndex): Ditto.
7732 depth, ancestors, idt: New class fields.
7734 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
7735 inline function `_Jv_IsAssignableFrom'. Use that function.
7736 (isInstance): Declare `inline'.
7737 (initializeClass): Get lock on class before checking `state'. Unlock
7738 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
7740 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
7741 (_Jv_IsAssignableFrom): New inline function. Test assignability using
7742 class->depth and ancestor table.
7743 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7744 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7745 _Jv_IsAssignableFrom.
7746 (_Jv_CheckArrayStore): Ditto.
7747 (_Jv_LookupInterfaceMethodIdx): New function.
7748 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7749 (_Jv_PrepareConstantTimeTables): New function.
7750 (_Jv_IndexOf): Ditto.
7751 (_Jv_GetInterfaces): Ditto.
7752 (_Jv_GenerateITable): Ditto.
7753 (_Jv_GetMethodString): Ditto.
7754 (_Jv_AppendPartialITable): Ditto.
7755 iindex_mutex, iindex_mutex_initialized: New static fields.
7756 (_Jv_FindIIndex): New function.
7758 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7760 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7761 (_Jv_CheckArrayStore): Ditto.
7762 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7763 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7764 Moved to gcj/array.h.
7765 (_Jv_Realloc): New function.
7767 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7769 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7770 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7771 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7772 JvNewDoubleArray): Implementations moved from prims.cc and
7775 * gcj/javaprims.h (_Jv_Realloc): Prototype.
7777 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7779 2000-03-06 Tom Tromey <tromey@cygnus.com>
7781 * jni.cc (MARK_NONE): New define.
7782 (MARK_USER): Likewise.
7783 (MARK_SYSTEM): Likewise.
7784 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7786 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7787 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7788 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7789 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7791 (call): Use MARK_SYSTEM.
7792 (_Jv_GetJNIEnvNewFrame): New function.
7793 (_Jv_LookupJNIMethod): New function.
7794 (_Jv_JNI_PopSystemFrame): New function.
7795 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7797 2000-03-05 Tom Tromey <tromey@cygnus.com>
7799 Fix for PR libgcj/43:
7800 * include/Makefile.in: Rebuilt.
7801 * include/Makefile.am (include_HEADERS): New define.
7803 2000-03-05 Anthony Green <green@redhat.com>
7805 * gcj/javaprims.h ("Java"): Remove FirstThread.
7807 * configure.host: Fix __NO_MATH_INLNES botch.
7809 * Makefile.in: Rebuilt.
7810 * Makefile.am (nat_source_files): Move natFirstThread.cc.
7811 (gnu/gcj/runtime/FirstThread.h): Moved.
7812 (ordinary_java_source_files): Move FirstThread.java.
7813 * prims.cc: Deal with FirstThread movement.
7815 (_Jv_RunMain): Ditto.
7817 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7818 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7820 2000-03-05 Warren Levy <warrenl@cygnus.com>
7822 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7823 Handle null addresses.
7825 2000-03-04 Anthony Green <green@redhat.com>
7827 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7830 2000-03-04 Anthony Green <green@redhat.com>
7832 * configure: Rebuilt.
7833 * configure.in (ZLIBTESTSPEC): New macro.
7834 (GCTESTSPEC): New macro.
7835 (LIBGCJTESTSPEC): New macro.
7836 * libgcj-test.spec.in: New file.
7838 2000-03-02 Tom Tromey <tromey@cygnus.com>
7840 * include/java-interp.h: Don't include MethodInvocation.h.
7841 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7842 * Makefile.in: Rebuilt.
7843 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7844 (ordinary_java_source_files): Don't mention
7845 MethodInvocation.java.
7846 * gnu/gcj/runtime/MethodInvocation.java: Removed.
7847 * interpret.cc (MethodInvocation::continue1): Removed.
7848 (run): Handle exceptions here.
7849 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7851 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7853 (defineClass2): Removed.
7855 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7857 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7859 (hack_call): Removed.
7861 * java/lang/Class.h (Class): Removed hackRunInitializers,
7863 * java/lang/natClass.cc (hackRunInitializers): Removed.
7864 (initializeClass): Catch exceptions here.
7865 Include ExceptionInInitializerError.h.
7866 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7869 * java/lang/Object.h (Object): Don't mention hack12_6.
7870 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7872 * java/lang/Object.java (hack12_6): Removed.
7874 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7875 (start): Use run_, not run__.
7876 * java/lang/Thread.java (run_): Renamed from run__; old run_
7879 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7880 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7881 (_Jv_JNI_DefineClass): Likewise.
7882 (_Jv_JNI_ThrowNew): Likewise.
7883 (_Jv_JNI_AllocObject): Likewise.
7884 (_Jv_JNI_GetAnyMethodID): Likewise.
7885 (_Jv_JNI_CallAnyMethodV): Likewise.
7886 (_Jv_JNI_CallAnyMethodA): Likewise.
7887 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7888 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7889 (_Jv_JNI_GetAnyFieldID): Likewise.
7890 (_Jv_JNI_NewString): Likewise.
7891 (_Jv_JNI_NewStringUTF): Likewise.
7892 (_Jv_JNI_GetStringUTFChars): Likewise.
7893 (_Jv_JNI_NewObjectArray): Likewise.
7894 (_Jv_JNI_NewPrimitiveArray): Likewise.
7895 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7896 (_Jv_JNI_GetStringRegion): Likewise.
7897 (_Jv_JNI_GetStringUTFRegion): Likewise.
7898 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7899 (_Jv_JNI_MonitorEnter): Likewise.
7900 (_Jv_JNI_MonitorExit): Likewise.
7901 (_Jv_JNI_ToReflectedField): Likewise.
7902 (_Jv_JNI_ToReflectedMethod): Likewise.
7903 (_Jv_JNI_RegisterNatives): Likewise.
7904 (_Jv_JNI_AttachCurrentThread): Likewise.
7905 (_Jv_JNI_DestroyJavaVM): Likewise.
7907 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7909 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7910 error caused by the incorrect casting of a long to an int.
7912 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7914 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7915 SIGSEV caused by use of the wrong instance variable.
7917 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7919 * java/io/File.java (File(String, String)): For dirPath, treat an
7920 empty String the same as `null'.
7922 2000-02-26 Anthony Green <green@cygnus.com>
7924 * gnu/gcj/io/MimeTypes.java: Test for null.
7926 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7927 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7929 * java/net/URLConnection.java: Update copyright notice.
7931 2000-02-25 Tom Tromey <tromey@cygnus.com>
7933 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7936 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7938 * java/net/URLConnection.java (initializeDateFormats): New
7940 (getHeaderFieldDate): Call initializeDateFormats if required.
7941 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7943 Fix for PR libgcj/38.
7945 2000-02-24 Warren Levy <warrenl@cygnus.com>
7947 * java/math/BigInteger.java(ival): Made private.
7951 2000-02-20 Anthony Green <green@cygnus.com>
7953 * Makefile.in: Rebuilt.
7954 * Makefile.am (ordinary_java_source_files): Add
7955 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7957 * scripts/MakeDefaultMimeTypes.java: New file.
7958 * scripts/mime.types: New file.
7959 * scripts/classes.pl: Moved from top level.
7960 * classes.pl: Moved to scripts directory.
7962 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7964 * gnu/gcj/io/MimeTypes.java: New file.
7965 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7967 2000-02-20 Tom Tromey <tromey@cygnus.com>
7969 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7971 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7973 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7976 2000-02-18 Tom Tromey <tromey@cygnus.com>
7978 * include/jvm.h (_Jv_GetJavaVM): Declare.
7979 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7980 (_Jv_MethodBase::get_method): New method.
7981 (_Jv_JNIMethod::set_function): New method.
7982 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7983 (_Jv_JNI_RegisterNatives): New function.
7984 (_Jv_JNIFunctions): Updated for new functions.
7985 (_Jv_GetJavaVM): New function.
7986 (_Jv_JNI_GetJavaVM): Use it. Now static.
7987 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7988 is already a Java thread but does not have a JNIEnv yet.
7990 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7993 2000-02-17 Tom Tromey <tromey@cygnus.com>
7995 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7998 2000-02-16 Tom Tromey <tromey@cygnus.com>
8000 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
8002 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
8003 (_Jv_JNI_NewObject): Likewise.
8004 (_Jv_JNI_NewObjectA): Likewise.
8005 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
8006 as "return" type to _Jv_CallAnyMethodA.
8007 (_Jv_JNI_CallAnyMethodA): Likewise.
8008 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
8010 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
8013 2000-02-15 Tom Tromey <tromey@cygnus.com>
8015 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
8017 (init_cif): Added `rtype_p' argument.
8018 * include/java-interp.h (class _Jv_MethodBase): Added
8020 (class _Jv_InterpMethod): Removed args_raw_size.
8021 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
8022 * jni.cc (call): Pass JNIEnv and (for static methods only) the
8023 class pointer as well as the ordinary arguments.
8025 * jni.cc (mangled_name): Skip leading `(' in signature.
8027 * jni.cc (add_char): Added missing `else'.
8029 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
8032 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
8036 * java/lang/natRuntime.cc (_load): Include library path with
8039 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
8042 * java/lang/natThread.cc (dumpStack): Removed.
8043 * java/lang/Thread.java (dumpStack): Implemented.
8045 2000-02-15 Tom Tromey <tromey@cygnus.com>
8047 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
8048 with `lib' for loadLibrary. Fixes PR gcj/150.
8050 2000-02-14 Warren Levy <warrenl@cygnus.com>
8052 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
8054 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
8058 (modPow): Rewritten to not use the naive, slow, brute force approach.
8059 (isProbablePrime): Implemented.
8060 (testBit): Implemented.
8061 (flipBit): Implemented.
8062 (getLowestSetBit): Implemented.
8064 2000-02-16 Anthony Green <green@redhat.com>
8066 * configure.host: Use the same options for i386 and i486 as we do
8069 2000-02-12 Tom Tromey <tromey@cygnus.com>
8071 * java/io/File.java (createTempFile): Use low bits from counter,
8074 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
8076 * THANKS: More thanks.
8078 2000-02-11 Tom Tromey <tromey@cygnus.com>
8080 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
8081 astore instruction. From Hans Boehm.
8083 2000-02-11 Warren Levy <warrenl@cygnus.com>
8085 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
8086 (BigInteger(String)): New constructor.
8087 (not): Rewritten using version from Kawa's BitOps class.
8088 (valueOf): New private methods from Kawa's BitOps class.
8095 (andNot): Implemented.
8096 (clearBit): Implemented.
8097 (setBit): Implemented.
8098 (bitCount): Implemented.
8099 (toByteArray): Implemented.
8101 2000-02-11 Tom Tromey <tromey@cygnus.com>
8103 * java/io/File.java (nextValue): Now synchronized.
8105 2000-02-10 Tom Tromey <tromey@cygnus.com>
8107 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
8108 * java/io/FileDescriptor.java (EXCL): New static field.
8109 * java/io/File.java (tmpdir): New static field.
8110 (createTempFile): New method.
8111 (nextValue): New method.
8112 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
8115 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
8116 (jboolean): Declare as an attributed int, not a bool.
8117 (_Jv_func): Declare differently for C.
8119 * gnu/gcj/jni/natNativeThread.cc: New file.
8120 * gnu/gcj/jni/NativeThread.java: New file.
8121 * java/lang/Thread.java (data): Now a RawData.
8122 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
8124 * Makefile.in: Rebuilt.
8125 * Makefile.am (java/lang/Thread.h): New target.
8126 (ordinary_java_source_files): Added NativeThread.java.
8127 (nat_source_files): Added natNativeThread.cc.
8128 * java/lang/natThread.cc: Include <jni.h>
8129 (struct natThread): Added `jni_env' field.
8130 (_Jv_GetCurrentJNIEnv): New function.
8131 (_Jv_SetCurrentJNIEnv): Likewise.
8132 (initialize_native): Initialize jni_env.
8134 * jni.cc (ThreadGroupClass): New define.
8135 (_Jv_JNI_InvokeFunctions): New structure.
8136 (JNI_GetCreatedJavaVMs): New function.
8137 (the_vm): New global.
8138 (JNI_GetDefaultJavaVMInitArgs): New function.
8139 Include NativeThread.h.
8140 (NativeThreadClass): New define.
8141 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
8142 (_Jv_JNI_DestroyJavaVM): New function.
8143 (_Jv_JNI_AttachCurrentThread): New function.
8144 (_Jv_JNI_DetachCurrentThread): New function.
8145 (_Jv_JNI_GetEnv): New function.
8146 (JNI_CreateJavaVM): New function.
8147 (_Jv_JNI_GetJavaVM): New function.
8148 (_Jv_JNIFunctions): Added entry for GetJavaVM.
8149 * include/jni.h (JavaVMAttachArgs): New structure.
8150 (JNI_EDETACHED): New define.
8151 (JNI_EVERSION): Likewise.
8152 (JavaVM): Define properly.
8153 (struct JNIInvokeInterface): New structure.
8154 (class _Jv_JavaVM): New class.
8155 (JNI_OnLoad, JNI_OnUnload): Declare.
8156 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
8157 JNI_GetCreatedJavaVMs): Declare.
8158 (JavaVMInitArgs): New typedef.
8159 (JavaVMOption): Likewise.
8160 (JNI_ERR): New define.
8163 2000-02-10 Andrew Haley <aph@cygnus.com>
8165 * interpret.cc: Don't include fdlibm.h.
8166 Replace #if with #ifdef throughout.
8167 Declare extern __ieee754_fmod.
8168 (continue1): Remove op_getfield, op_getstatic, op_putfield,
8170 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
8171 Search class hierarchy for superclass vtable.
8173 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
8174 off the end of a pointer list.
8176 * java/lang/natThread.cc (stop): Don't abort, throw an exception
8180 2000-02-09 Tom Tromey <tromey@cygnus.com>
8182 * java/lang/natRuntime.cc (_load): Call add_library.
8183 (loadLibraryInternal): Likewise.
8185 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
8186 iconv_close when handle is not NULL. Thanks to Andrew Haley.
8187 (Output_iconv::finalize): Likewise.
8189 2000-02-08 Tom Tromey <tromey@cygnus.com>
8191 * java/util/Properties.java (setProperty): New method.
8192 (store): New method.
8194 2000-02-07 Tom Tromey <tromey@cygnus.com>
8196 * java/lang/Runtime.java (_load): Declare.
8197 (load, loadLibrary): Wrote in terms of _load.
8198 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
8200 (loadLibrary): Likewise.
8202 (_load): New method.
8203 (loadLibrary, load): Removed.
8205 * jni.cc (ThrowableClass): New define.
8206 (_Jv_JNI_Throw): Check argument.
8207 (_Jv_JNI_ThrowNew): Likewise.
8208 (wrap_value): Don't wrap object if it is NULL.
8209 (_Jv_JNI_DefineClass): Use wrap_value.
8210 (_Jv_JNI_FindClass): Likewise.
8211 (_Jv_JNI_GetSuperclass): Likewise.
8212 (_Jv_JNI_ExceptionOccurred): Likewise.
8213 (_Jv_JNI_AllocObject): Likewise.
8214 (_Jv_JNI_GetObjectClass): Likewise.
8215 (_Jv_JNI_NewString): Likewise.
8216 (_Jv_JNI_NewStringUTF): Likewise.
8217 (_Jv_JNI_NewObjectArray): Likewise.
8218 (_Jv_JNI_GetObjectArrayElement): Likewise.
8219 (_Jv_JNI_NewPrimitiveArray): Likewise.
8220 (_Jv_JNI_ToReflectedField): Likewise.
8221 (_Jv_JNI_ToReflectedMethod): Likewise.
8222 (_Jv_JNI_AllocObject): Check argument.
8223 (_Jv_JNI_NewObjectV): Likewise.
8224 (_Jv_JNI_NewObject): Likewise.
8225 (_Jv_JNI_NewObjectA): Likewise.
8226 (_Jv_JNI_GetObjectClass): Likewise.
8227 (_Jv_JNI_GetField): Likewise.
8228 (_Jv_JNI_SetField): Likewise.
8230 * interpret.cc (PUSHL): Don't use expression statement.
8235 * jni.cc (add_char): Conditional on INTERPRETER.
8236 (mangled_name): Likewise.
8238 * include/java-interp.h (class _Jv_MethodBase): Conditional on
8240 (class _Jv_JNIMethod): Likewise.
8242 2000-02-04 Warren Levy <warrenl@cygnus.com>
8244 * Makefile.am: Added MPN.java and BigInteger.java.
8245 * Makefile.in: Rebuilt.
8246 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
8248 * java/math/BigInteger.java: New file. Based primarily on
8249 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
8251 2000-02-04 Tom Tromey <tromey@cygnus.com>
8253 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
8255 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
8256 if the method is native.
8257 * resolve.cc (ncode): Don't handle native methods.
8258 (_Jv_JNIMethod::ncode): New method.
8259 (_Jv_PrepareClass): Handle native methods.
8260 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
8261 Include AbstractMethodError.h.
8262 (add_char): New function.
8263 (mangled_name): Likewise.
8264 * include/java-interp.h (class _Jv_JNIMethod): New class.
8265 (class _Jv_MethodBase): New class.
8266 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
8267 (_Jv_InterpClass): Changed `interpreted_methods' field to type
8270 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
8271 * java/lang/natRuntime.cc (libraries_size, libraries_count,
8272 libraries): New globals.
8273 (add_library): New function.
8274 (_Jv_FindSymbolInExecutable): New function.
8276 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
8279 2000-02-04 Andrew Haley <aph@cygnus.com>
8281 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
8282 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
8283 * java/lang/natThrowable.cc (printRawStackTrace): Rename
8284 printStackTrace to printRawStackTrace.
8286 2000-02-03 Tom Tromey <tromey@cygnus.com>
8288 * java/util/Calendar.java (toString): New method.
8289 * java/util/SimpleTimeZone.java (clone): New method.
8290 (toString): New method.
8291 * java/util/TimeZone.java (clone): New method.
8292 * java/text/SimpleDateFormat.java (clone): New method.
8293 * java/text/NumberFormat.java (clone): New method.
8294 (equals): New method.
8295 * java/text/Format.java (clone): New method.
8296 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
8298 (clone): New method.
8299 * java/text/DateFormat.java (clone): New method.
8300 * java/text/Collator.java (clone): New method.
8302 2000-02-03 Tom Tromey <tromey@cygnus.com>
8304 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
8307 2000-02-01 Tom Tromey <tromey@cygnus.com>
8309 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
8310 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
8311 constructing the closure if the function is native.
8312 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
8313 a template function, #if'd out, or static.
8314 Include <java-interp.h>.
8316 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
8318 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
8320 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
8321 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
8323 (wrap_value): New function.
8324 (_Jv_JNI_CallAnyMethodV): Use it.
8325 (_Jv_JNI_CallAnyMethodA): Likewise.
8326 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
8327 (_Jv_JNI_GetStaticField): Likewise.
8329 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
8330 (_Jv_JNI_GetStaticField): Likewise.
8332 2000-01-31 Tom Tromey <tromey@cygnus.com>
8334 * prims.cc (_Jv_MallocUnchecked): New function.
8335 (main_init): Call _Jv_JNI_Init.
8336 * include/jvm.h (_Jv_MallocUnchecked): Declare.
8337 (_Jv_JNI_Init): Declare.
8338 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
8340 (_Jv_JNI_NewGlobalRef): New function.
8341 (_Jv_JNI_DeleteGlobalRef): New function.
8342 (_Jv_JNI_DeleteLocalRef): New function.
8343 (_Jv_JNI_conversion_call): Initialize and clear local reference
8345 (_Jv_JNI_NewLocalRef): New function.
8346 (struct _Jv_JNI_LocalFrame): New structure.
8347 (_Jv_JNI_PushLocalFrame): New function.
8348 (_Jv_JNI_EnsureLocalCapacity): New function.
8349 (FRAME_SIZE): New define.
8350 (_Jv_JNI_GetStringChars): Mark string, not characters.
8351 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
8352 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
8353 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
8355 (_Jv_JNI_DefineClass): Make return value a local ref.
8356 (_Jv_JNI_FindClass): Likewise.
8357 (_Jv_JNI_GetSuperclass): Likewise.
8358 (_Jv_JNI_ExceptionOccurred): Likewise.
8359 (_Jv_JNI_AllocObject): Likewise.
8360 (_Jv_JNI_GetObjectClass): Likewise.
8361 (_Jv_JNI_CallAnyMethodV): Likewise.
8362 (_Jv_JNI_NewString): Likewise.
8363 (_Jv_JNI_NewStringUTF): Likewise.
8364 (_Jv_JNI_NewObjectArray): Likewise.
8365 (_Jv_JNI_GetObjectArrayElement): Likewise.
8366 (_Jv_JNI_ToReflectedField): Likewise.
8367 (_Jv_JNI_ToReflectedMethod): Likewise.
8368 (_Jv_JNIFunctions): Updated table for new functions.
8369 (_Jv_JNI_Init): New function.
8370 (mark_for_gc): Wrote.
8371 (unmark_for_gc): Wrote.
8372 * include/jni.h (struct JNINativeInterface): Removed name from
8373 PopLocalFrame parameter.
8374 (class _Jv_JNIEnv): Added `locals' field.
8376 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
8378 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
8381 2000-01-30 Tom Tromey <tromey@cygnus.com>
8383 * include/config.h.in: Rebuilt.
8384 * acconfig.h (HAVE_ICONV): Define.
8385 * configure: Rebuilt.
8386 * configure.in: Check for `iconv' function.
8387 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
8388 no specific encoder exists.
8389 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
8390 no specific encoder exists.
8391 * Makefile.in: Rebuilt.
8392 * Makefile.am (convert_source_files): Mention Input_iconv.java and
8394 (nat_source_files): Added natIconv.cc.
8395 * gnu/gcj/convert/natIconv.cc: New file.
8396 * gnu/gcj/convert/Input_iconv.java: New file.
8397 * gnu/gcj/convert/Output_iconv.java: New file.
8399 2000-01-28 Tom Tromey <tromey@cygnus.com>
8401 * Makefile.in: Rebuilt.
8402 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
8404 2000-01-26 Tom Tromey <tromey@cygnus.com>
8406 * gcj/method.h (JvNumMethods): Moved from Class.h.
8407 (JvGetFirstMethod): Likewise.
8408 * java/lang/Class.h (Object): Updated decl of
8409 _Jv_JNI_ToReflectedField.
8410 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
8411 * Makefile.in: Rebuilt.
8412 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
8413 argument of _Jv_JNI_ToReflectedField.
8414 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
8416 (java/lang/reflect/Method.h): Likewise.
8417 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
8419 (jweak): New typedef.
8420 (struct JNINativeInterface): Correctly declare remaining entries.
8421 * jni.cc: Include Class.h, ClassLoader.h.
8422 (_Jv_JNI_FindClass): New function.
8423 (_Jv_JNI_DefineClass): New function.
8424 (_Jv_JNI_conversion_call): New function.
8425 (_Jv_JNI_FindClass): Use current class loader to find class.
8426 (_Jv_JNI_ExceptionCheck): New function.
8427 (_Jv_JNI_FromReflectedField): Now static.
8428 (MethodClass): New define.
8429 (_Jv_JNI_FromReflectedMethod): New function.
8430 (_Jv_JNI_ToReflectedMethod): Likewise.
8432 (_Jv_JNI_IsAssignableFrom): Renamed.
8433 (_Jv_JNI_GetStringRegion): New function.
8434 Include StringIndexOutOfBoundsException.h.
8435 (_Jv_JNI_GetStringUTFRegion): New function.
8436 (_Jv_JNIFunctions): Updated for new functions.
8437 (_Jv_JNI_GetPrimitiveArrayCritical): New function
8438 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
8439 (_Jv_JNI_GetStringCritical): New function.
8440 (_Jv_JNI_ReleaseStringCritical): Likewise.
8441 (get_throwable): Removed.
8442 (GCJ_JV_JNIENV_FRIEND): Removed.
8443 (__GCJ_JNI_IMPL__): Define.
8446 * resolve.cc (get_ffi_type_from_signature): Handle case where
8449 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
8451 * interpret.cc (run): Don't call println.
8452 Don't include PrintStream.h.
8454 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
8455 nameIndex. Use "jint" as type for boffset.
8456 * java/lang/Class.h (struct _Jv_Method): Made accflags a
8458 (Class): Likewise. Also changed type of method_count,
8459 vtable_method_count, size_in_bytes, field_count,
8460 static_field_count, interface_count.
8461 * gcj/array.h (__JArray): Made `length' a const jsize, not an
8464 2000-01-21 Tom Tromey <tromey@cygnus.com>
8466 * java/lang/reflect/natConstructor.cc (newInstance): Use
8468 * include/jvm.h: Declare _Jv_CallAnyMethodA.
8469 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
8470 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
8473 (invoke): Use _Jv_CallAnyMethodA.
8475 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
8476 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
8478 (struct _Jv_Method): Added getNextMethod method.
8479 (JvNumMethods): New function.
8480 (JvGetFirstMethod): Likewise.
8481 * gcj/field.h (JvGetFirstStaticField): New function.
8482 (JvNumStaticFields): Likewise.
8483 (getNextField): Renamed from getNextInstanceField.
8484 (struct _Jv_Field): New method getClass.
8485 * jni.cc: Wrote many new functions.
8486 * include/jni.h (JNI_TRUE): Define.
8487 (JNI_FALSE): Likewise.
8488 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
8489 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
8490 jcharArray, jfloatArray, jdoubleArray): New typedefs.
8491 (jfieldID, jmethodID): Likewise.
8492 (JNI_COMMIT, JNI_ABORT): New defines.
8493 (JNINativeMethod): New struct.
8494 (struct JNINativeInterface): Correctly declared more entries.
8495 (class _Jv_JNIEnv): Added `ex' member.
8496 (JNI_VERSION_1_1): New define.
8497 (JNI_VERSION_1_2): Likewise.
8499 * boehm.cc (_Jv_MarkObj): Use getNextField, not
8500 getNextInstanceField.
8502 2000-01-20 Tom Tromey <tromey@cygnus.com>
8504 * resolve.cc (StringClass): Removed.
8505 * defineclass.cc (StringClass): Removed.
8507 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
8511 2000-01-19 Tom Tromey <tromey@cygnus.com>
8513 * interpret.cc (PC_REGISTER_ASM): Removed.
8515 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
8516 From Bryce McKinlay.
8518 * All files: Updated copyright to reflect Cygnus purchase.
8520 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
8522 * configure: Rebuilt.
8523 * configure.in: Recognize --disable-interpreter.
8525 2000-01-18 Andrew Haley <aph@cygnus.com>
8527 * name-finder.cc (lookup): Check for dladdr function.
8528 acconfig.h (HAVE_DLADDR): Add.
8529 configure.in: Check for HAVE_DLADDR
8531 include/config.h.in: Rebuilt.
8533 2000-01-17 Andrew Haley <aph@cygnus.com>
8535 * prims.cc (_Jv_RunMain): Set the name of this executable.
8537 2000-01-17 Tom Tromey <tromey@cygnus.com>
8539 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
8540 when backtrace can't be computed.
8542 * configure: Rebuilt.
8543 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
8545 * java/lang/Runtime.java (loadLibraryInternal): Declare.
8546 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
8547 (_Jv_FindClassInCache): Likewise.
8548 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
8549 (findSystemClass): Try to load class from compiled module.
8551 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
8552 (loadLibrary): Likewise.
8553 (lt_preloaded_symbols): Define.
8554 (loadLibraryInternal): New method.
8555 * include/config.h.in: Rebuilt.
8556 * acconfig.h (USE_LTDL): Added.
8557 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
8558 (INCLUDES): Added $(INCLTDL).
8559 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
8560 (libgcj_la_LIBADD): Likewise.
8561 * aclocal.m4, configure: Rebuilt.
8562 * configure.in: Added libltdl support.
8564 2000-01-15 Tom Tromey <tromey@cygnus.com>
8566 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
8568 2000-01-14 Andrew Haley <aph@cygnus.com>
8570 * java/lang/natThrowable.cc: New file.
8572 * java/lang/Throwable.java (fillInStackTrace): Make native.
8573 (printStackTrace): Call native method to do this.
8574 (Throwable): Call fillInStackTrace.
8575 (stackTrace): New variable.
8577 * include/jvm.h: Add _Jv_ThisExecutable functions.
8579 * prims.cc: (_Jv_execName): New variable.
8580 (catch_segv): Call fillInStackTrace.
8582 (_Jv_ThisExecutable): New functions.
8583 (JvRunMain): Set the name of this executable.
8585 * Makefile.am: Add java/lang/natThrowable.cc.
8587 * Makefile.in: Rebuilt.
8589 * acconfig.h: Add HAVE_PROC_SELF_EXE.
8591 * configure.in: Force link with __frame_state_for in
8592 FORCELIBGCCSPEC. Add new checks for backtrace.
8593 * include/config.h.in: Rebuilt.
8595 * name-finder.cc: New file.
8596 * include/name-finder.h: New file.
8598 2000-01-16 Anthony Green <green@cygnus.com>
8600 * java/lang/StringBuffer.java (StringBuffer): Don't special case
8603 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
8605 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
8607 2000-01-13 Tom Tromey <tromey@cygnus.com>
8609 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
8610 not system loader, as initiating loader.
8612 2000-01-11 Tom Tromey <tromey@cygnus.com>
8614 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
8615 HP/UX. From David Scott Urban.
8617 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
8619 * java/lang/natMath.cc (pow): Cast args to `double', not
8622 (IEEEremainder): Likewise.
8623 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
8624 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
8626 2000-01-09 Anthony Green <green@cygnus.com>
8628 * java/lang/natString.cc (init): Test for overflow condition
8629 during out of bounds check.
8630 (getChars): Throw StringIndexOutOfBoundsException, not
8631 ArrayIndexOutOfBoundsException.
8633 (regionMatches): Obey case option during string comparison.
8635 * configure.host (ligcj_interpreter): New variable. Enable
8636 interpreter by default on IA-32.
8637 * configure.in: Examine libgcj_interpreter.
8638 * configure: Rebuilt.
8640 2000-01-07 Tom Tromey <tromey@cygnus.com>
8642 * mauve-libgcj: Don't disable ClassTest.
8644 * java/lang/natClass.cc (getClasses): Wrote.
8646 2000-01-06 Tom Tromey <tromey@cygnus.com>
8648 * java/lang/natClass.cc (_getConstructors): Correctly check
8649 whether method name is the init name.
8650 (getMethod): Look at accflags on method in `klass', not `this'.
8652 2000-01-05 Tom Tromey <tromey@cygnus.com>
8654 * java/lang/natClass.cc (getMethod): Compute offset relative to
8655 `klass's methods table, not `this's table.
8657 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
8658 In unwrapping/widening case, check whether `k' is null, not
8659 whether it is primitive. Initialize `num' from `argelts', not
8660 `paramelts'. Correct create and pass arguments to ffi_call.
8661 Don't let presence of `this' argument affect index used to look in
8663 (COPY): Set appropriate element in `values' vector.
8665 * java/lang/natClass.cc: Include <gcj/method.h>.
8667 * java/lang/Class.h (_getMethods): Correctly declare as private,
8670 * java/lang/Class.h (_getMethods): Declare.
8671 * java/lang/Class.java (_getMethods): Declare.
8672 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
8673 (getDeclaredClasses): Always return empty array.
8674 (_getMethods): New method.
8675 (getMethods): Wrote.
8676 (getDeclaredMethod): Return `rmethod'.
8677 (finit_name): New global.
8678 (getDeclaredMethods): Check for finit_name.
8679 (_getMethods): Likewise.
8680 (getMethod): Only return public methods.
8682 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
8683 jboolean and select correct ffi type on that basis.
8684 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
8685 Constructor call always has `void' return type.
8687 2000-01-04 Tom Tromey <tromey@cygnus.com>
8689 * java/lang/Class.h (getSignature): Updated.
8690 * java/lang/Class.java (getSignature): Updated.
8691 * java/lang/natClass.cc (getSignature): Added `is_constructor'
8693 (getConstructor): Ensure constructor is public.
8694 (_getConstructors): Check for public-ness of constructor when
8695 `declared' is false, not when it is true.
8697 2000-01-04 Warren Levy <warrenl@cygnus.com>
8699 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
8701 (receive): Set the sender's address in the DatagramPacket.
8703 2000-01-04 Tom Tromey <tromey@cygnus.com>
8705 * java/lang/reflect/natConstructor.cc (newInstance): Pass
8706 declaring class as return_type argument to
8707 _Jv_CallNonvirtualMethodA.
8708 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
8709 constructor case, create object and use it as `this' argument.
8710 * java/lang/Class.h (_getConstructors): Declare.
8711 (_getFields): Declare.
8712 * java/lang/Class.java (getConstructors): Wrote.
8713 (_getConstructors): New native method.
8714 (getDeclaredConstructors): Wrote.
8715 (_getFields): Declare new native method.
8716 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
8718 (getMethod): Work correctly when class is primitive.
8719 (getDeclaredMethods): Likewise. Compute offset using `method',
8721 (getDeclaredMethod): Likewise.
8722 (getConstructor): Wrote.
8723 (ConstructorClass): New define.
8724 (getDeclaredConstructor): Wrote.
8725 (_getConstructors): New method.
8726 (_getFields): New method.
8729 * Makefile.in: Rebuilt.
8730 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
8732 * prims.cc: Remove `#pragma implementation'.
8733 * gcj/array.h: Remove `#pragma interface'.
8735 * prims.cc (_Jv_equaln): New function.
8736 * java/lang/Class.java (getSignature): Declare.
8737 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
8738 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
8740 (getSignature): New method.
8741 (getDeclaredMethod): Wrote.
8743 Include StringBuffer.h.
8744 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8745 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
8747 (getSignature): Declare.
8748 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8749 (_Jv_equaln): Declare.
8750 (_Jv_CallNonvirtualMethodA): Declare.
8751 * Makefile.in: Rebuilt.
8752 * Makefile.am (nat_source_files): Added natConstructor.cc.
8753 (java/lang/reflect/Constructor.h): New target.
8754 * java/lang/reflect/natConstructor.cc: New file.
8755 * java/lang/reflect/Constructor.java (newInstance): Now native.
8756 (declaringClass): Renamed from decl_class.
8757 (offset): Renamed from index.
8758 (getType): New native method.
8759 (getModifiers): Now native.
8760 (getParameterTypes): Call getType if required.
8761 (hashCode): Include hash code from declaring class.
8762 (modifiers): Removed.
8763 (toString): Call getType if required.
8764 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8765 * java/lang/reflect/natMethod.cc (hack_call): New method.
8766 Removed `#if 0' around FFI code.
8767 Include <gnu/gcj/RawData.h>.
8768 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
8769 IllegalArgumentException when argument object and class disagree.
8770 (_Jv_GetTypesFromSignature): New function.
8772 (ObjectClass): New define.
8773 (_Jv_CallNonvirtualMethodA): New function.
8774 * java/lang/reflect/Method.java (hack_trampoline): New method.
8775 (hack_call): New native method.