1 2001-11-18 Tom Tromey <tromey@redhat.com>
3 * verify.cc (_Jv_BytecodeVerifier::get_ushort): Use `jint' for
5 (_Jv_BytecodeVerifier::get_short): Likewise.
6 (_Jv_BytecodeVerifier::get_int): Likewise.
7 (_Jv_BytecodeVerifier::check_return_type): Reverse ordering of
10 * verify.cc (_Jv_BytecodeVerifier::pop_type): Put PC into error
12 (_Jv_BytecodeVerifier::pop64): Likewise.
13 (_Jv_BytecodeVerifier::pop32): Likewise.
14 (_Jv_BytecodeVerifier::pop_raw): Likewise.
15 (_Jv_BytecodeVerifier::pop_type): Promote the match type.
16 (type::set_initialized): Only modify uninitialized types.
17 (type::set_uninitialized): Fix shadowing bug. Simplify code.
19 * verify.cc: Include StringBuffer.h.
20 (verify_fail): Added pc argument. Use StringBuffer to construct
22 (_Jv_BytecodeVerifier::verify_instructions_0): Put PC into error
24 (_Jv_BytecodeVerifier::check_return_type): Likewise.
25 (_Jv_BytecodeVerifier::handle_field_or_method): Likewise.
26 (_Jv_BytecodeVerifier::check_constant): Likewise.
27 (_Jv_BytecodeVerifier::check_class_constant): Likewise.
28 (_Jv_BytecodeVerifier::check_pool_index): Likewise.
29 (_Jv_BytecodeVerifier::get_variable): Likewise.
30 (_Jv_BytecodeVerifier::branch_prepass): Likewise. Also, correctly
31 check exception handler endpoint.
32 (_Jv_BytecodeVerifier::verify_instructions_0): Correctly handle
33 wide arguments to current method.
34 (_Jv_BytecodeVerifier::check_wide_constant): New method.
35 (_Jv_BytecodeVerifier::verify_instructions_0) [op_ldc2_w]: Use
38 2001-11-17 Anthony Green <green@redhat.com>
40 * jni.cc (unwrap): Fix test for wrapped objects.
42 2001-11-16 Tom Tromey <tromey@redhat.com>
44 * verify.cc (_Jv_BytecodeVerifier::check_field_constant): Handle
45 case where field has primitive type.
47 * verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): New
49 (type::compatible): Use it.
50 (type::merge): Likewise.
51 (type::promote): Return a `type&'.
52 (get_one_type): Promote return value.
54 Re-merge with Classpath, from Brian Jones:
55 * java/lang/Integer.java (getInteger): Attempt to decode the value
56 of the system property instead of the name of the system property.
57 (parseInt): Throw NumberFormatException explicitly in the case of
58 a null argument in keeping with JDK 1.3.
60 2001-11-16 Mark Wielaard <mark@klomp.org>
62 * java/util/Timer.java (TaskQueue.isStopped): Remove method.
63 (Scheduler.run): Try to re-schedule task and ignore exception if
64 queue has been stopped.
66 2001-11-15 Tom Tromey <tromey@redhat.com>
68 * verify.cc (type::compatible): Use _Jv_IsAssignableFrom.
69 (type::merge): Likewise.
71 2001-11-14 Hans Boehm <Hans_Boehm@hp.com>
73 * java/lang/natString.cc: correct argument order for
76 2001-11-14 Tom Tromey <tromey@redhat.com>
78 * verify.cc (class _Jv_BytecodeVerifier) [op_dup2]: Fixed logic.
79 [op_dup_x2]: Likewise.
80 [op_dup2_x1]: Likewise.
81 [op_dup2_x2]: Likewise.
82 (branch_prepass): Added `op_newarray' case. Updated unrecognized
84 (verify_instructions_0): Updated unrecognized instruction error.
86 * java/lang/reflect/Constructor.java (toString): Use more
87 efficient form of Modifier.toString().
89 Re-merges with Classpath, from various people:
90 * java/lang/reflect/Modifier.java: Reindented.
91 (toString): Only trim trailing space if text was added to
93 * java/lang/reflect/ReflectPermission: Reindented.
95 Re-merges with Classpath, from various people:
96 * java/lang/Double.java (parseDouble): Fixed ordering of
98 * java/lang/reflect/AccessibleObject.java: Javadoc, reindented.
99 * java/lang/reflect/Member.java: Reindented.
100 * java/util/ConcurrentModificationException.java: Javadoc
102 * java/util/EmptyStackException.java: Likewise.
103 * java/util/NoSuchElementException.java: Likewise.
105 2001-11-13 Tom Tromey <tromey@redhat.com>
107 Fix for PR libgcj/4859:
108 * java/util/Timer.java (TaskQueue.isStopped): New method.
109 (Scheduler.run): Don't re-schedule task if queue has been
112 2001-11-07 Tom Tromey <tromey@redhat.com>
114 * Makefile.in: Rebuilt.
115 * Makefile.am (ordinary_java_source_files): Added JNIWeakRef.java.
116 * jni.cc: Include JNIWeakRef.h.
117 (unwrap): New function.
118 (_Jv_JNI_DefineClass): Use it.
119 (_Jv_JNI_GetSuperclass): Likewise.
120 (_Jv_JNI_IsAssignableFrom): Likewise.
121 (_Jv_JNI_Throw): Likewise.
122 (_Jv_JNI_ThrowNew): Likewise.
123 (_Jv_JNI_IsSameObject): Likewise.
124 (_Jv_JNI_AllocObject): Likewise.
125 (_Jv_JNI_GetObjectClass): Likewise.
126 (_Jv_JNI_IsInstanceOf): Likewise.
127 (_Jv_JNI_GetAnyMethodID): Likewise.
128 (array_from_valist): Likewise.
129 (_Jv_JNI_CallAnyMethodV): Likewise.
130 (_Jv_JNI_CallAnyMethodA): Likewise.
131 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
132 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
133 (_Jv_JNI_CallStaticMethodV): Likewise.
134 (_Jv_JNI_CallStaticMethod): Likewise.
135 (_Jv_JNI_CallStaticMethodA): Likewise.
136 (_Jv_JNI_NewObjectV): Likewise.
137 (_Jv_JNI_NewObject): Likewise.
138 (_Jv_JNI_NewObjectA): Likewise.
139 (_Jv_JNI_GetField): Likewise.
140 (_Jv_JNI_SetField): Likewise.
141 (_Jv_JNI_GetAnyFieldID): Likewise.
142 (_Jv_JNI_SetStaticField): Likewise.
143 (_Jv_JNI_GetStringLength): Likewise.
144 (_Jv_JNI_GetStringChars): Likewise.
145 (_Jv_JNI_ReleaseStringChars): Likewise.
146 (_Jv_JNI_GetStringUTFLength): Likewise
147 (_Jv_JNI_GetStringUTFChars): Likewise.
148 (_Jv_JNI_GetStringRegion): Likewise.
149 (_Jv_JNI_GetStringUTFRegion): Likewise.
150 (_Jv_JNI_GetStringCritical): Likewise.
151 (_Jv_JNI_GetArrayLength): Likewise.
152 (_Jv_JNI_NewObjectArray): Likewise.
153 (_Jv_JNI_GetObjectArrayElement): Likewise.
154 (_Jv_JNI_SetObjectArrayElement): Likewise.
155 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
156 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
157 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
158 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
159 (_Jv_JNI_MonitorEnter): Likewise.
160 (_Jv_JNI_MonitorExit): Likewise.
161 (_Jv_JNI_ToReflectedField): Likewise.
162 (_Jv_JNI_FromReflectedField): Likewise.
163 (_Jv_JNI_ToReflectedMethod): Likewise.
164 (_Jv_JNI_FromReflectedMethod): Likewise.
165 (_Jv_JNI_NewGlobalRef): Likewise.
166 (_Jv_JNI_DeleteGlobalRef): Likewise.
167 (_Jv_JNI_DeleteLocalRef): Likewise.
168 (_Jv_JNI_NewLocalRef): Likewise.
169 (_Jv_JNI_NewWeakGlobalRef): New function.
170 (_Jv_JNI_DeleteWeakGlobalRef): Likewise.
171 (_Jv_JNIFunctions): Updated for new methods.
173 * gnu/gcj/runtime/JNIWeakRef.java: New file.
175 2001-11-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
177 * boehm.cc (_Jv_GCCanReclaimSoftReference): Fix warning.
179 2001-11-09 Jeff Sturm <jsturm@one-point.com>
181 * verify.cc: Wrap in #ifdef INTERPRETER...#endif.
183 2001-11-07 Tom Tromey <tromey@redhat.com>
185 * verify.cc (skip_padding): Fail if padding byte is nonzero.
187 2001-11-06 Tom Tromey <tromey@redhat.com>
189 * HACKING: Make people commit their own patches.
191 2001-11-05 Tom Tromey <tromey@redhat.com>
193 * java/lang/Class.h (Class): Made _Jv_BytecodeVerifier a friend.
194 * Makefile.in: Rebuilt.
195 * Makefile.am (libgcj_la_SOURCES): Added verify.cc.
196 * verify.cc: New file.
197 * include/java-interp.h (_Jv_count_arguments): Declare.
198 (_Jv_VerifyMethod): Likewise.
199 (class _Jv_InterpMethod): Made _Jv_BytecodeVerifier a friend.
200 (class _Jv_InterpException): Likewise.
201 * resolve.cc (_Jv_count_arguments): Renamed from count_arguments.
202 No longer static. Updated callers.
203 * defineclass.cc (int_bits_to_float): Removed.
204 (long_bits_to_double): Likewise.
205 (prepare_pool_entry): Updated.
206 (handleCodeAttribute): Verify method (commented out for now).
208 2001-11-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
210 * java/util/ResourceBundle.java (class Security): Now static.
212 2001-11-04 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
214 * java/util/ResourceBundle.java (getClassContext): Removed.
215 (Security): New class, extends SecurityManger.
216 (getBundle): Use Security.getCallingClassLoader instead of
218 * java/util/natResourceBundle.cc: Removed.
220 2001-11-03 Tom Tromey <tromey@redhat.com>
222 * defineclass.cc (handleClassBegin): Use Object::class$, not
223 Class::class$, when initializing interface superclass.
225 2001-11-02 Hans Boehm <Hans_Boehm@hp.com>
227 * java/util/natResourceBundle.cc:getClassContext: return
228 array of Class instead of array of ClassLoader.
230 2001-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
232 * HACKING, gnu/gcj/xlib/Pixmap.java, gnu/gcj/xlib/XException.java,
233 gnu/java/rmi/rmic/RMIC.java, java/awt/Window.java,
234 java/awt/AWTEvent.java, java/io/ByteArrayOutputStream.java,
235 java/io/CharConversionException.java,
236 java/io/PipedInputStream.java, java/io/PipedReader.java,
237 java/io/PrintWriter.java, java/io/WriteAbortedException.java,
238 java/io/natFileWin32.cc, java/lang/Class.h,
239 java/lang/natClassLoader.cc, java/lang/natObject.cc,
240 java/lang/Package.java, java/net/BindException.java,
241 java/net/ConnectException.java, java/net/ProtocolException.java,
242 java/net/SocketException.java,
243 java/net/UnknownServiceException.java,
244 java/security/cert/X509Certificate.java,
245 java/security/interfaces/DSAKey.java,
246 java/security/SecureRandom.java, java/security/SignedObject.java,
247 java/sql/DatabaseMetaData.java,
248 java/text/DecimalFormatSymbols.java,
249 java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
250 java/util/jar/JarInputStream.java,
251 java/util/jar/JarOutputStream.java, java/util/Calendar.java,
252 java/util/Collections.java, java/util/GregorianCalendar.java,
253 java/util/HashMap.java, java/util/List.java,
254 java/util/Properties.java, java/util/Timer.java,
255 java/util/Vector.java, java/util/WeakHashMap.java,
256 javax/naming/NamingException.java,
257 testsuite/libjava.lang/Thread_Wait.java,
258 org/xml/sax/helpers/DefaultHandler.java,
259 org/xml/sax/HandlerBase.java, org/xml/sax/SAXParseException.java,
260 ChangeLog, acinclude.m4, aclocal.m4, posix-threads.cc: Fix
262 * configure: Regenerate.
264 2001-10-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
266 * jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM. Don't call
269 2001-10-29 Tom Tromey <tromey@redhat.com>
271 * java/util/zip/GZIPOutputStream.java (write(int)): New method.
272 Fixes PR libgcj/4728.
274 2001-10-27 Tom Tromey <tromey@redhat.com>
276 * include/jni.h (struct JNINativeInterface) [GetStringLength]:
277 Returns jsize, not jint.
279 2001-10-26 Tom Tromey <tromey@redhat.com>
281 * java/util/zip/Adler32.java: Use correct class name. (Re-merge
284 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
286 * java/lang/VMClassLoader.java (getPrimitiveClass): Now native. Now
287 takes a jchar type-code argument, not a string.
288 * java/lang/natClassLoader.cc (VMClassLoader::getPrimitiveClass):
289 New method. Just call _Jv_FindClassFromSignature.
290 * java/lang/Boolean.java (TYPE): Initialize from
291 VMClassLoader.getPrimitiveClass using type-code.
292 * java/lang/Character.java (TYPE): Likewise.
293 * java/lang/Double.java (TYPE): Likewise.
294 * java/lang/Float.java (TYPE): Likewise.
295 * java/lang/Integer.java (TYPE): Likewise.
296 * java/lang/Long.java (TYPE): Likewise.
297 * java/lang/Short.java (TYPE): Likewise.
298 * java/lang/Void.java (TYPE): Likewise.
300 2001-10-25 Hans Boehm <Hans_Boehm@hp.com>
302 * include/boehm-gc.h: Call thread local allocation functions
303 if THREAD_LOCAL_ALLOC is defined.
305 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
307 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Use
308 snprintf, not asprintf.
310 2001-10-24 Loren J. Rittle <ljrittle@acm.org>
312 * configure.in (case $THREADS): Add *-*-freebsd* configuration.
313 (HAVE_GETHOSTBYADDR_R): Create a valid, non-optimal
314 configuration when gethostbyaddr_r exists yet no prototype
316 * configure: Rebuilt.
317 * posix-threads.cc (INTR): Reuse path for LINUX_THREADS
318 with FREEBSD_THREADS. However, comment different reason.
320 2001-10-24 Tom Tromey <tromey@redhat.com>
321 Warren Levy <warrenl@redhat.com>
323 * Makefile.in: Rebuilt.
324 * Makefile.am (javax_source_files): New macro.
325 (ordinary_java_source_files): Added javax_source_files.
326 (libgcj.jar): Search javax for class files.
327 * javax/naming/LinkException.java (toString): Wrote.
328 (toString(boolean)): Likewise.
329 * javax/naming/ldap/InitialLdapContext.java: New file.
330 * javax/naming/directory/InitialDirContext.java: Wrote.
331 * javax/naming/spi/NamingManager.java (getPlusPath): Now has
332 package-private protection.
333 (getURLContext): Likewise.
334 (NamingManager): Likewise.
335 * javax/naming/spi/DirectoryManager.java: New file.
336 * javax/naming/directory/BasicAttributes.java: New file.
337 * javax/naming/directory/BasicAttribute.java: New file.
338 * javax/naming/spi/ResolveResult.java
339 (ResolveResult(Object,String)): Wrote.
340 (appendRemainingName): Uncommented body.
341 (appendRemainingComponent): Likewise.
342 * javax/naming/ldap/ControlFactory.java: New file.
343 * javax/naming/directory/AttributeModificationException.java
345 * javax/naming/spi/NamingManager.java (NamingManager): New
347 (setInitialContextFactoryBuilder): Wrote.
348 (getInitialContext): Look in system properties for class name as
349 well. Use Class.forName().
350 (getURLContext): Wrote.
352 (setObjectFactoryBuilder): Wrote.
353 (getObjectInstance): Wrote.
354 (getContinuationContext): Wrote.
355 (getPlusPath): New private method.
356 (getStateToBind): Wrote.
357 * javax/naming/CannotProceedException.java: Added missing methods &
359 * javax/naming/LinkException.java: Added missing methods & fields.
360 * javax/naming/ReferralException.java (ReferralException): Made
361 constructor protected per spec.
362 Added missing abstract methods.
363 * javax/naming/directory/Attribute.java: Updated copyright.
364 * javax/naming/directory/AttributeModificationException.java: Ditto.
365 * javax/naming/directory/Attributes.java: Ditto.
366 * javax/naming/directory/DirContext.java: Ditto.
367 * javax/naming/spi/NamingManager.java: Ditto.
368 * javax/naming/spi/ResolveResult.java: Added comment.
369 * javax/naming/directory/Attribute.java: Added missing interface
371 * javax/naming/directory/AttributeModificationException.java:
372 Added missing methods & fields.
373 * javax/naming/directory/directory/Attributes.java: Added missing
375 * javax/naming/directory/SearchControls.java: Maded serialized fields
377 * javax/naming/event/NamingEvent.java: Added comment.
378 * javax/naming/event/NamingExceptionEvent.java: Maded serialized field
380 * javax/naming/ldap/UnsolicitedNotificationEvent.java: Maded
381 serialized field private.
382 * javax/naming/spi/NamingManager.java: Added missing field and stubbed
384 * javax/naming/directory/DirContext.java: Added missing interface
386 * javax/naming/directory/InitialDirContext.java: Stubbed missing
388 * javax/naming/directory/ModificationItem.java: New class.
389 * javax/naming/directory/SearchResult.java: New class.
390 * javax/naming/directory/SearchControls.java: New class.
391 * javax/naming/event/EventContext.java: New class.
392 * javax/naming/event/EventDirContext.java: New class.
393 * javax/naming/event/NamespaceChangeListener.java: New class.
394 * javax/naming/event/NamingEvent.java: New class.
395 * javax/naming/event/NamingExceptionEvent.java: New class.
396 * javax/naming/event/NamingListener.java: New class.
397 * javax/naming/event/ObjectChangeListener.java: New class.
398 * javax/naming/ldap/Control.java: New class.
399 * javax/naming/ldap/ExtendedRequest.java: New class.
400 * javax/naming/ldap/ExtendedResponse.java: New class.
401 * javax/naming/ldap/HasControls.java: New class.
402 * javax/naming/ldap/LdapContext.java: New class.
403 * javax/naming/ldap/LdapReferralException.java: New class.
404 * javax/naming/ldap/UnsolicitedNotification.java: New class.
405 * javax/naming/ldap/UnsolicitedNotificationEvent.java: New class.
406 * javax/naming/ldap/UnsolicitedNotificationListener.java: New class.
407 * javax/naming/spi/DirObjectFactory.java: New class.
408 * javax/naming/spi/DirStateFactory.java: New class.
409 * javax/naming/spi/ObjectFactoryBuilder.java: New class.
410 * javax/naming/spi/ResolveResult.java: New class.
411 * javax/naming/spi/Resolver.java: New class.
412 * javax/naming/spi/StateFactory.java: New class.
413 * javax/naming/spi/ObjectFactory.java: Made an interface per spec.
414 * java/rmi/RemoteException.java: New class.
415 * javax/transaction/HeuristicCommitException.java: New class.
416 * javax/transaction/HeuristicMixedException.java: New class.
417 * javax/transaction/HeuristicRollbackException.java: New class.
418 * javax/transaction/NotSupportedException.java: New class.
419 * javax/transaction/RollbackException.java: New class.
420 * javax/transaction/Status.java: New class.
421 * javax/transaction/Synchronization.java: New class.
422 * javax/transaction/SystemException.java: New class.
423 * javax/transaction/Transaction.java: New class.
424 * javax/transaction/TransactionManager.java: New class.
425 * javax/transaction/UserTransaction.java: New class.
426 * javax/transaction/xa/XAException.java: Added public static fields.
427 * javax/transaction/xa/XAResource.java: New class.
428 * javax/transaction/xa/Xid.java: New class.
429 * javax/naming/CompoundName.java (CompoundName(String)): Reverse
430 elements if required. Handle case where quote is at end of
432 * javax/naming/CompoundName.java (CompoundName(String)): Handle
433 text left at end of parsing.
434 (toString): Handle empty element at beginning.
435 * javax/naming/CompositeName.java (toString): Handle empty element
437 (CompositeName(String)): Handle text left at end of parsing.
438 Correctly compute boundary condition for quoting.
439 * javax/naming/CompoundName.java: New file.
440 * javax/naming/CompositeName.java: New file.
441 * javax/naming/Binding.java: New file.
442 * javax/naming/LinkRef.java: New file.
443 * javax/naming/NameClassPair.java: New file.
444 * javax/naming/Reference.java (addrs, classFactory,
445 classFactoryLocation): New fields.
446 (className): Now protected.
447 (Reference): New constructors.
448 (add): Now public. Implemented.
449 (get(String)): Likewise.
450 (add(int,RefAddr)): New method.
454 (get(int)): Likewise.
456 (getFactoryClassLocation): Likewise.
457 (getFactoryClassName): Likewise.
458 (hashCode): Likewise.
461 (toString): Likewise.
462 * javax/transaction/xa/XAException.java: New file.
463 * javax/transaction/TransactionRolledbackException.java: New file.
464 * javax/transaction/TransactionRequiredException.java: New file.
465 * javax/transaction/InvalidTransactionException.java: New file.
466 * javax/naming/directory/SchemaViolationException.java: Use
467 correct package. Import NamingException.
468 * javax/naming/directory/NoSuchAttributeException.java,
469 javax/naming/directory/InvalidSearchFilterException.java,
470 javax/naming/directory/InvalidSearchControlsException.java,
471 javax/naming/directory/InvalidAttributesException.java,
472 javax/naming/directory/InvalidAttributeValueException.java,
473 javax/naming/directory/InvalidAttributeIdentifierException.java,
474 javax/naming/directory/AttributeModificationException.java,
475 javax/naming/directory/AttributeInUseException.java: Likewise.
476 * javax/naming/directory/InitialDirContext.java (getAttributes):
478 * javax/naming/RefAddr.java (RefAddr): Reindented.
479 (equals): Renamed and reindented.
480 * javax/naming/BinaryRefAddr.java (equals): Renamed and
483 2001-10-24 Tom Tromey <tromey@redhat.com>
485 * java/lang/reflect/Field.java: Made many methods private.
487 * java/sql/Types.java (Types): New constructor.
489 Tue Oct 23 23:52:18 2001 Anthony Green <green@redhat.com>
491 * gnu/gcj/runtime/natSharedLibLoader.cc: Only include dlfcn.h when
494 2001-10-23 Tom Tromey <tromey@redhat.com>
496 * java/lang/reflect/Field.java (Field): New constructor.
497 * java/lang/ClassLoader.java (defineClass(String,byte[],int,int)):
498 Throw ClassFormatError.
500 2001-10-23 Tom Tromey <tromey@redhat.com>
502 * java/util/PropertyResourceBundle.java (handleGetObject): Now
504 * java/util/ListResourceBundle.java (handleGetObject): Now public
507 * java/io/BufferedWriter.java (localFlush): Don't synchronize.
509 2001-10-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
511 * prims.cc (_Jv_Abort): Always print error message using fprintf,
512 don't try to allocate.
513 (_Jv_CreateJavaVM): Set gcj::runtimeInitialized.
514 * include/jvm.h (gcj::runtimeInitialized): New variable declaration.
515 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
516 duplicate class registration with JvFail if the runtime hasn't been
519 * java/io/BufferedWriter (write (String, int, int)): Remove redundant
521 (write (char[], int, int)): Likewise.
523 2001-10-22 Tom Tromey <tromey@redhat.com>
525 * java/util/GregorianCalendar.java (getGregorianChange): Removed
528 2001-10-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
530 * gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
531 * gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
532 * gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
533 * gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in output
536 2001-10-19 Mark Wielaard <mark@klomp.org>
538 * java/lang/Double.java: More Classpath merging
539 (isInfinite): Don't use doubleToLongBits
540 (isNaN (Object)): return v != v
541 (initIDs): make native
542 * java/lang/Float.java: Ditto
543 (isInfinite): Don't use floatToIntBits
544 (isNaN (Object)): return v != v
545 * java/lang/natDouble.cc: add empty initIDs()
547 2001-10-19 Mark Wielaard <mark@klomp.org>
549 * javax/naming/BinaryRefAddr.java: New file
550 * javax/naming/InitialContext.java: Compile fix
551 * javax/naming/InvalidNameException.java: Add comments
552 * javax/naming/Name.java: Ditto
553 * javax/naming/NamingException.java: Implement
554 * javax/naming/OperationNotSupportedException.java: Compile fix
555 * javax/naming/RefAddr.java: Implement
556 * javax/naming/StringRefAddr.java: Add comments and implement
557 * javax/naming/directory/InitialDirContext.java: Compile fix
559 2001-10-18 Tom Tromey <tromey@redhat.com>
561 * java/io/BufferedWriter.java (write(String,int,int)): Correctly
564 * java/security/Security.java (loadProviders): Removed unused
565 `pname' variable. Don't create `File' object. Don't update
567 (providerCount): Removed.
568 (insertProviderAt): Don't use `providerCount'.
569 (addProvider(Provider,int)): Likewise.
570 (removeProvider): Likewise.
571 (addProvider(Provider)): Rewrote.
572 (getProviders): Rewrote.
573 (getProvider): Don't use `providerCount'.
575 2001-10-17 Tom Tromey <tromey@redhat.com>
577 * gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
579 * java/security/SecureRandom.java (setSeed(long)): Don't set seed
580 if secureRandomSpi is not initialized.
582 * Makefile.in: Rebuilt.
583 * Makefile.am (secdir): New macro.
584 (install-data-local): Install new data files.
585 * java/security/classpath.security: New file.
586 * java/security/libgcj.security: New file.
588 * java/security/Security.java (loadProviders): Added `vendor'
590 Load both `classpath' and `java.vm.name' providers.
592 2001-10-17 Anthony Green <green@redhat.com>
594 * java/security/Security.java (loadProviders): Fix bug in how
595 providers are loaded.
597 2001-10-16 Tom Tromey <tromey@redhat.com>
599 * gcj/javaprims.h: Updated class list.
600 * java/util/Hashtable.java: Re-merged with Classpath.
602 2001-10-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
604 * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
606 Eliminate use of C++ static constructors.
607 * interpret.cc: Remove static Utf8Consts. Use namespace gcj.
609 * resolve.cc: Likewise.
610 * defineclass.cc: Likewise.
611 (_Jv_ClassReader::handleClassBegin): Synchronize call to
613 * include/jvm.h (void_signature, clinit_name, init_name, finit_name):
614 Declare in namespace gcj.
615 * java/lang/Class.h (Class): Remove initialization for primitive
617 (friend void _Jv_InitPrimClass): This is in prims.cc.
618 * prims.cc (_Jv_InitPrimClass): Do primitive type initialization
620 (void_signature, clinit_name, init_name, finit_name): Define in
622 (_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and
623 _Jv_InitializeSyncMutex from here. Initialize Utf8 constants.
624 Initialize primitive types.
625 * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
626 initialization routines. Don't synchronize.
627 * java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
630 2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
632 * java/util/HashMap.java (HashEntry.clone): Removed.
633 (HashMap(Map)): Use putAllInternal.
635 (putAllInternal): New method. Efficient counterpart to putAll which
637 * java/util/LinkedHashMap.java (rethread): Removed.
638 (putAllInternal): New method. Clear "head" and "tail".
639 (addEntry): New argument "callRemove". Don't call removeEldestEntry()
640 if callRemove == false.
642 * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
643 * Makefile.in: Rebuilt.
645 2001-10-15 Eric Blake <ebb9@email.byu.edu>
647 * java/util/Collection.java: Updated javadoc.
648 * java/util/Comparator.java: Updated javadoc.
649 * java/util/Enumeration.java: Updated javadoc.
650 * java/util/Iterator.java: Updated javadoc.
651 * java/util/List.java: Updated javadoc.
652 * java/util/ListIterator.java: Updated javadoc.
653 * java/util/Map.java: Updated javadoc.
654 * java/util/RandomAccess.java: New file.
655 * java/util/Set.java: Updated javadoc.
656 * java/util/SortedMap.java: Updated javadoc.
657 * java/util/SortedSet.java: Updated javadoc.
659 2001-10-15 Tom Tromey <tromey@redhat.com>
661 * java/lang/reflect/AccessibleObject.java (checkPermission):
663 Updated copyright information.
665 2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
667 * java/lang/natObject.cc (heavy_lock): Moved fields
668 old_client_data, old_finalization_proc near beginning.
669 (heavy_lock_finalization_proc): Now inline; changed type of
671 (JV_SYNC_TABLE_SZ): Now 2048.
673 (spin): `mp' now global.
674 (heavy_lock_obj_finalization_proc): Updated to correctly handle
675 heavy lock finalization.
676 (remove_all_heavy): New function.
677 (maybe_remove_all_heavy): Likewise.
678 (_Jv_MonitorEnter): Throw exception if object is NULL.
679 (_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
681 * include/jvm.h (_Jv_AllocTraceTwo): Declare.
682 * nogc.cc (_Jv_AllocTraceTwo): New function.
683 * boehm.cc (trace_two_vtable): New global.
684 (_Jv_AllocTraceTwo): New function.
686 2001-10-15 Tom Tromey <tromey@redhat.com>
688 * Makefile.in: Rebuilt.
689 * Makefile.am (awt_java_source_files): Added new file.
690 * java/beans/AppletInitializer.java: New file.
692 * java/net/SocketPermission.java (hostport, actions): Now
695 2001-10-14 Mark Wielaard <mark@klomp.org>
697 * java/lang/Double.java: Partial merge with Classpath
698 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
700 (static): new static block to load native libary (not used in libgcj)
701 (Double (String)): call parseDouble()
702 (byteValue): removed, already defined in superclass Number
703 (shortValue): likewise
704 (valueOf (String)): call new Double(String) directly
705 (compare (double,double)): new 1.4 method
706 (compareTo (Double)): call new compare(double,double) method
707 (initIDs): new private method (not used in libgcj)
708 * java/lang/Float.java: Partial merge with Classpath
709 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
711 (static): new static block to load native libary (not used in libgcj)
712 (Float (String)): call parseFloat()
713 (byteValue): removed, already defined in superclass Number
714 (shortValue): likewise
715 (valueOf (String)): call new Float(String) directly
716 (compare (float,float)): new 1.4 method
717 (compareTo (Float)): call new compare(double,double) method
719 2001-10-13 Tom Tromey <tromey@redhat.com>
721 * java/lang/SecurityManager.java (SecurityManager): Now public.
723 * java/security/AccessController.java (checkPermission): Now
724 throws AccessControlException.
725 * java/security/AllPermission.java: Class now final.
726 * java/security/Permission.java (getName): Now final.
728 (equals): New abstract method.
729 * java/security/PermissionCollection.java (linesep): Now private.
730 * java/security/Permissions.java: Class now final.
731 * java/security/Security.java (Security): New private
733 * java/security/UnresolvedPermission.java: Import
734 java.security.cert.Certificate. Class now final.
735 * java/security/acl/Group.java: Now extends Principal.
736 (isMember): Added Principal argument.
737 * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
739 * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
742 2001-10-12 Tom Tromey <tromey@redhat.com>
744 * Makefile.in: Rebuilt.
745 * Makefile.am (rmi_java_source_files): Added new files.
746 * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
748 * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
749 * gnu/java/rmi/rmic/Compile_gcj.java: New file.
750 * gnu/java/rmi/rmic/CompilerProcess.java: New file.
751 * gnu/java/rmi/rmic/Compiler.java: New file.
753 2001-10-11 Tom Tromey <tromey@redhat.com>
755 * configure: Rebuilt.
756 * configure.in: Recognize --disable-java-awt.
758 2001-10-10 Tom Tromey <tromey@redhat.com>
760 * gnu/gcj/runtime/natFinalizerThread.cc: New file.
761 * java/lang/natRuntime.cc: Include FinalizerThread.h.
762 (runFinalization): Call finalizerReady.
763 * nogc.cc (_Jv_GCInitializeFinalizers): New function.
764 * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
765 (_Jv_CreateJavaVM): Start the finalizer thread.
766 * no-threads.cc: Include InternalError.h.
767 (_Jv_ThreadStart): Throw InternalError.
768 (_Jv_ThreadInitData): Don't throw error if this is not the first
770 * Makefile.in: Rebuilt.
771 * Makefile.am (ordinary_java_source_files): Added
772 FinalizerThread.java.
773 (nat_source_files): Added natFinalizerThread.cc.
774 * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
775 * boehm.cc (_Jv_GCInitializeFinalizers): New function.
776 * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
777 * gnu/gcj/runtime/FinalizerThread.java: New file.
779 2001-10-09 Per Bothner <per@bothner.com>
781 * strtod.c (_strtod_r): Logic to check for missing digits
782 after exponent had 'else' attached to wrong 'if'.
784 2001-10-09 Mark Wielaard <mark@klomp.org>
786 * java/net/SocketImpl.java: Merge with Classpath
788 2001-10-08 Mark Wielaard <mark@klomp.org>
790 * java/net/DatagramSocketImpl.java: Merge with Classpath
792 2001-10-07 Mark Wielaard <mark@klomp.org>
794 * java/net/URLDecoder.java: Remerge with Classpath
795 * java/net/URLEncoder.java: Merge with Classpath
797 2001-10-08 Tom Tromey <tromey@redhat.com>
799 Fix for PR libgcj/4481:
800 * java/io/File.java (getParent): Handle case where path is "/".
801 (normalizePath): Use correct string for UNC leader.
803 2001-10-06 Mark Wielaard <mark@klomp.org>
805 * java/io/BufferedInputStream.java: Merge with Classpath
807 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
809 * defineclass.cc, java/awt/image/ColorModel.java,
810 java/awt/image/SampleModel.java, java/lang/Package.java,
811 java/security/cert/X509Extension.java: Fix spelling errors of
812 "separate" as "seperate", and corresponding spelling errors of
815 2001-10-05 Tom Tromey <tromey@redhat.com>
817 * java/text/DecimalFormat.java (format): Use localized minus sign
818 when generating exponent; never use `+'. Use floor to compute
821 2001-10-05 Mark Wielaard <mark@klomp.org>
823 * java/util/zip/Adler32.java: Merge with Classpath
824 * java/util/zip/CRC32.java: Ditto
825 * java/util/zip/Checksum.java: Ditto
826 * java/util/zip/DataFormatException.java: Ditto
827 * java/util/zip/ZipException.java: Ditto
829 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
831 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
833 2001-10-04 Mark Wielaard <mark@klomp.org>
835 * java/lang/reflect/Modifier.java: Merge with Classpath
837 2001-10-03 Mark Wielaard <mark@klomp.org>
839 * java/io/SequenceInputStream.java: Merge with Classpath
840 * java/io/StringBufferInputStream.java: Ditto
841 * java/util/Collections.java: Remerge with Classpath
843 2001-10-03 Tom Tromey <tromey@redhat.com>
845 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
848 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
850 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
851 * gij.cc (version): Use GCJVERSION.
853 2001-10-02 Mark Wielaard <mark@klomp.org>
855 * Makefile.am (core_java_source_files): add InheritableThreadLocal
856 * Makefile.in: regenerate
857 * gcj/javaprims.h: ditto
858 * java/lang/InheritableThreadLocal.java: new class from Classpath
859 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
860 call InheritableThreadLocal.newChildThread()
862 2001-10-01 Mark Wielaard <mark@klomp.org>
864 * Makefile.am: Add new classes
865 (core_java_source_files): CharSequence
866 (ordinary_java_source_files): Authenticator, PasswordAuthentication
867 * Makefile.in: regenerate
868 * gcj/javaprims.h: ditto
869 * java/lang/CharSequence: new class from Classpath
870 * java/lang/String.java: implements CharSequence
871 (subSequence (int,int)): new method
872 * java/lang/SubString.java: implements CharSequence
873 (subSequence (int,int)): new method
874 remerge comments with Classpath
875 * java/net/Authenticator.java: new class from Classpath
876 * java/net/PasswordAuthentication.java: ditto
878 2001-10-01 Tom Tromey <tromey@redhat.com>
880 * gcj/javaprims.h: Rebuilt class list.
881 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
882 (_Jv_GCCanReclaimSoftReference): New function.
883 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
884 (_Jv_GCCanReclaimSoftReference): Declare.
885 * java/lang/ref/Reference.java (referent): Now a RawData.
886 (create): Renamed from `created'. Added object argument.
887 (Reference): Don't initialize `referent' here.
888 * Makefile.in: Rebuilt.
889 * Makefile.am (nat_source_files): Added new file.
890 * java/lang/ref/natReference.cc: New file.
892 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
893 (_Jv_NewMultiArray): Use it. Check each array dimension.
894 (_Jv_NewMultiArray): Likewise.
895 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
897 * java/lang/reflect/natArray.cc (newInstance): Throw
898 IllegalArgumentException if there are no dimensions.
900 2001-10-01 Mark Wielaard <mark@klomp.org>
902 * java/io/FileWriter.java: Merge with Classpath.
903 * java/io/FilterInputStream.java: Ditto.
904 (mark): no longer synchronized
906 * java/io/FilterOutputStream.java: Merge with Classpath.
907 * java/io/FilterReader.java: Ditto.
908 (mark): no longer synchronized
910 * java/io/FilterWriter.java: Merge with Classpath.
911 * java/io/Writer.java: Ditto.
912 * java/lang/Compiler.java: Ditto.
913 * java/lang/Process.java: Ditto.
914 * java/lang/Void.java: Ditto.
915 * java/net/ContentHandler.java: Ditto.
916 * java/net/DatagramPacket.java: Ditto.
917 * java/net/MulticastSocket.java: Merge comments with Classpath.
919 2001-09-30 Mark Wielaard <mark@klomp.org>
921 * java/io/DataInput.java: Merge with Classpath.
922 * java/io/DataOutput.java: Idem.
923 * java/io/FilenameFilter.java: Idem.
924 * java/io/Serializable.java: Idem.
925 * java/lang/Cloneable.java: Idem.
926 * java/lang/Comparable.java: Idem.
927 * java/lang/Runnable.java: Idem.
928 * java/lang/reflect/Member.java: Idem.
929 * java/net/ContentHandlerFactory.java: Idem.
930 * java/net/FileNameMap.java: Idem.
931 * java/net/SocketImplFactory.java: Idem.
932 * java/net/SocketOptions.java: Idem.
933 * java/net/URLStreamHandlerFactory.java: Idem.
935 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
937 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
938 an uninitialized target class.
940 * gnu/gcj/protocol/file/Connection.java (connect): Throw
941 FileNotFoundException if appropriate.
942 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
943 IOException if we got a file: url with a hostname. Comment out protocol
944 switch to ftp for now.
945 * java/net/URL.java (URL): Include protocol name in exception message
946 when handler can't be found.
948 2001-09-28 Per Bothner <per@bothner.com>
950 * gnu/gcj/runtime/SharedLibLoader.java: New class.
951 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
952 * Makefile.am: Update accordingly.
953 * configure.in: Add AC_CHECK_LIB for dlopen.
954 * include/config.h.in: Add HAVE_DLOPEN.
956 2001-09-29 Jeff Sturm <jsturm@one-point.com>
958 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
959 * Makefile.in: Rebuilt.
961 2001-09-27 Tom Tromey <tromey@redhat.com>
963 * java/util/IdentityHashMap.java (containsKey): Use getHash.
967 (getHash): New method.
968 (tombstone, emptyslot): Now static final.
969 (put): Correctly determine when to rehash, and correctly rehash.
970 (containsKey, remove): Test against table length with `>='.
972 2001-09-26 Tom Tromey <tromey@redhat.com>
974 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
976 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
977 Re-merged with Classpath.
979 * java/io/DataInputStream.java (readChar): Use readFully.
981 (readLong): Likewise.
982 (readShort): Likewise.
983 (readUnsignedShort): Likewise.
985 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
987 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
988 IllegalThreadStateException if process hasn't exited yet.
989 * java/lang/natPosixProcess.cc (exitValue): Removed.
990 (waitFor): Only check thread interrupted status if waitpid() returned
991 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
994 * java/security/cert/X509Extension.java: Merge from classpath.
996 2001-09-22 Anthony Green <green@redhat.com>
998 * java/security/DummyKeyPairGenerator.java (initialize): New
999 method (with AlgorithmParameterSpec argument).
1001 2001-09-22 Anthony Green <green@redhat.com>
1003 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
1005 * gnu/java/security/provider/SHA1PRNG.java: Extend from
1007 (engineNextBytes): Fix order of memory copies.
1009 2001-09-21 Richard Henderson <rth@redhat.com>
1011 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
1012 add get_method, set_method, vtable_elt_size, new_vtable.
1013 (_Jv_ArrayVTable): Derive from _Jv_VTable.
1014 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
1015 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
1016 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
1018 2001-09-21 Richard Henderson <rth@redhat.com>
1020 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
1021 * java/lang/mprec.c (lo0bits): Fix paren typo.
1023 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1025 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
1026 blocking IO via pthread_kill().
1027 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
1028 interrupted status flag only if ::write returned an error.
1029 (write (jbyteArray, jint, jint): Likewise.
1030 (read (jint)): Likewise.
1031 (read (jbyteArray, jint, jint): Likewise.
1033 2001-09-19 Anthony Green <green@redhat.com>
1035 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
1038 2001-09-17 Andreas Jaeger <aj@suse.de>
1040 * jni.cc (array_from_valist): Use promoted types for va_arg.
1042 2001-09-16 Anthony Green <green@redhat.com>
1044 * gnu/java/locale/LocaleInformation.java: Extend
1045 LocaleInformation_en_US, not LocaleInformation_en.
1047 2001-09-16 Anthony Green <green@redhat.com>
1049 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
1051 2001-09-14 Tom Tromey <tromey@redhat.com>
1053 * java/util/TimeZone.java: Updated list of timezones from
1056 * java/lang/CloneNotSupportedException.java: Re-merged with
1059 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1061 * java/io/File.java (normalizePath): Use equals() not '==' for string
1064 * java/util/Hashtable.java (Enumerator): Ensure that if
1065 hasMoreElements() returns true, nextElement() will always return
1066 something even if the table has been modified.
1068 2001-09-12 Tom Tromey <tromey@redhat.com>
1070 * Makefile.in: Rebuilt.
1071 * Makefile.am (class-check): New target.
1073 2001-09-11 Tom Tromey <tromey@redhat.com>
1075 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
1077 2001-09-10 Tom Tromey <tromey@redhat.com>
1079 * java/util/Properties.java (load): Correctly read \u sequences.
1080 Report from Anthony Green.
1082 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
1084 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
1085 and $(MULTIBUILDTOP).
1086 * configure: Re-generate.
1088 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1090 * include/jvm.h (_Jv_AllocRawObj): New prototype.
1091 * boehm.cc (_Jv_AllocRawObj): Implement.
1092 * nogc.cc (_Jv_AllocRawObj): Likewise.
1093 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
1095 2001-09-06 Anthony Green <green@redhat.com>
1097 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
1098 redundant method calls.
1099 (emptyLocale): New private member.
1100 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
1103 2001-09-06 Tom Tromey <tromey@redhat.com>
1105 * java/text/RuleBasedCollator.java (clone): Rewrote.
1106 (RuleBasedCollator(RuleBasedCollator)): Removed.
1107 * java/text/MessageFormat.java: Re-merged from Classpath.
1108 * java/text/DecimalFormat.java: Re-merged from Classpath.
1110 2001-09-06 Anthony Green <green@redhat.com>
1112 * include/jvm.h: Declare _Jv_RegisterResource.
1113 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
1114 gnu/gcj/protocol/core/Connection.java,
1115 gnu/gcj/protocol/core/Handler.java,
1116 gnu/gcj/protocol/core/CoreInputStream.java,
1117 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
1118 * java/net/URL.java (setURLStreamHandler): Use
1119 gnu.gcj.protocol.core.Handler for the core protocol.
1120 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
1121 end of java.class.path.
1122 * Makefile.am (ordinary_java_source_files): Add new java files.
1123 (nat_source_files): Add new native code files.
1124 * Makefile.in: Rebuilt.
1126 2001-09-05 Tom Tromey <tromey@redhat.com>
1128 * java/util/Properties.java: Re-merged from Classpath.
1130 From Eric Blake, via Classpath:
1131 * java/lang/String.java (CaseInsensitiveComparator): New class.
1132 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
1134 * java/util/Date.java: Re-merged with Classpath.
1136 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
1138 2001-09-05 Corey Minyard <minyard@acm.org>
1139 Tom Tromey <tromey@redhat.com>
1141 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
1142 (_Jv_RegisterClassHookDefault): Throw error if a class is
1145 2001-09-05 Tom Tromey <tromey@redhat.com>
1147 * java/lang/natSystem.cc (init_properties): Default locale is
1150 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1152 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
1153 here, DecimalFormat.applyPattern() does not throw it.
1155 2001-09-04 Tom Tromey <tromey@redhat.com>
1157 * java/util/AbstractMap.java: Re-merged with Classpath.
1158 * java/util/IdentityHashMap.java: Re-merged with Classpath.
1160 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
1161 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
1162 gnu/gcj/text/LocaleData_en_US.java: Removed.
1163 * java/text/DateFormatSymbols.java (clone): Use Classpath
1165 (equals): Simplified.
1166 (DateFormatSymbols): Look in gnu.java.locale for information.
1167 (DateFormatSymbols(DateFormatSymbols)): Removed.
1168 (safeGetResource): Removed.
1169 (DateFormatSymbols): Throws MissingResourceException.
1170 (ampmsDefault, erasDefault, localPatternCharsDefault,
1171 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
1172 weekdaysDefault, zoneStringsDefault): Removed.
1173 * java/text/Collator.java (getAvailableLocales): Use modified
1174 Classpath implementation.
1175 (getInstance): Look in gnu.java.locale for information.
1177 * java/text/MessageFormat.java: Reindented.
1179 * java/text/FieldPosition.java: Merged with Classpath.
1180 * java/text/ParsePosition.java: Merged with Classpath.
1181 * java/text/Format.java: Merged with Classpath.
1182 * java/text/StringCharacterIterator.java
1183 (StringCharacterIterator(StringCharacterIterator,int,int)): New
1184 constructor from Classpath.
1185 * java/text/Annotation.java,
1186 java/text/AttributedCharacterIterator.java,
1187 java/text/AttributedString.java,
1188 java/text/AttributedStringIterator.java: New from Classpath.
1189 * java/text/CharacterIterator.java: Copied from Classpath.
1190 * java/text/ChoiceFormat.java: Reindented.
1192 * gnu/java/text/BaseBreakIterator.java,
1193 gnu/java/text/CharacterBreakIterator.java,
1194 gnu/java/text/LineBreakIterator.java,
1195 gnu/java/text/LocaleData_en.java,
1196 gnu/java/text/LocaleData_en_US.java,
1197 gnu/java/text/SentenceBreakIterator.java,
1198 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
1199 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
1201 * java/text/BreakIterator.java (getAvailableLocales): Use
1202 Classpath implementation.
1203 (getInstance): Look in gnu.java.locale for information.
1204 (getCharacterInstance, getLineInstance, getSentenceInstance,
1205 getWordInstance): Look in gnu.java.text for implementations.
1206 * java/text/DecimalFormatSymbols.java: Reindented
1207 (clone): Use Classpath implementation.
1208 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
1209 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
1211 * java/text/DateFormat.java: Merged with Classpath.
1212 (getAvailableLocales): Use Classpath implementation.
1213 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
1214 (computeInstance): Look in gnu.java.locale for information.
1215 * java/text/NumberFormat.java: Reindented.
1216 (computeInstance): Look in gnu.java.locale for information.
1217 (getAvailableLocales): Use implementation from Classpath.
1218 (setMaximumIntegerDigits): Likewise.
1219 (setMinimumIntegerDigits): Likewise.
1220 (setMaximumFractionDigits): Likewise.
1222 * java/text/DecimalFormat.java: Reindented.
1223 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
1224 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
1225 * Makefile.in: Rebuilt.
1226 * Makefile.am (ordinary_java_source_files): Added all new files.
1227 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
1228 * java/security/spec/AlgorithmParameterSpec.java,
1229 java/security/spec/KeySpec.java: Re-merged with Classpath.
1231 Fix for PR libgcj/4213:
1232 * Makefile.am (ordinary_java_source_files): Added new file.
1233 * gnu/gcj/text/LocaleData.java: New file.
1235 2001-09-03 Tom Tromey <tromey@redhat.com>
1237 * java/lang/reflect/natField.cc (set): Allow for case when the
1238 value is null. Fixes PR libgcj/4208.
1240 * gcj/javaprims.h: Regenerated class list.
1241 * java/lang/IllegalThreadStateException.java,
1242 java/lang/InstantiationException.java: Minor comment tweaks to
1243 satisfy libgcj `classes.pl' script.
1245 2001-09-01 Tom Tromey <tromey@redhat.com>
1247 * Makefile.in: Rebuilt.
1248 * Makefile.am (core_java_source_files): Added
1249 UnsupportedClassVersionError.
1250 * java/lang/UnsupportedClassVersionError.java: New file from
1253 * java/io/CharConversionException.java, java/io/EOFException.java,
1254 java/io/FileNotFoundException.java, java/io/IOException.java,
1255 java/io/InterruptedIOException.java,
1256 java/io/ObjectStreamException.java,
1257 java/io/OptionalDataException.java,
1258 java/io/StreamCorruptedException.java,
1259 java/io/SyncFailedException.java,
1260 java/io/UTFDataFormatException.java,
1261 java/io/UnsupportedEncodingException.java,
1262 java/lang/AbstractMethodError.java,
1263 java/lang/ArithmeticException.java,
1264 java/lang/ArrayIndexOutOfBoundsException.java,
1265 java/lang/ArrayStoreException.java,
1266 java/lang/ClassCastException.java,
1267 java/lang/ClassCircularityError.java,
1268 java/lang/ClassFormatError.java,
1269 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
1270 java/lang/Exception.java,
1271 java/lang/ExceptionInInitializerError.java,
1272 java/lang/IllegalAccessError.java,
1273 java/lang/IllegalAccessException.java,
1274 java/lang/IllegalArgumentException.java,
1275 java/lang/IllegalMonitorStateException.java,
1276 java/lang/IllegalStateException.java,
1277 java/lang/IllegalThreadStateException.java,
1278 java/lang/IncompatibleClassChangeError.java,
1279 java/lang/IndexOutOfBoundsException.java,
1280 java/lang/InstantiationError.java,
1281 java/lang/InstantiationException.java,
1282 java/lang/InternalError.java, java/lang/InterruptedException.java,
1283 java/lang/LinkageError.java,
1284 java/lang/NegativeArraySizeException.java,
1285 java/lang/NoClassDefFoundError.java,
1286 java/lang/NoSuchFieldError.java,
1287 java/lang/NoSuchFieldException.java,
1288 java/lang/NoSuchMethodError.java,
1289 java/lang/NoSuchMethodException.java,
1290 java/lang/NullPointerException.java,
1291 java/lang/NumberFormatException.java,
1292 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
1293 java/lang/SecurityException.java,
1294 java/lang/StackOverflowError.java,
1295 java/lang/StringIndexOutOfBoundsException.java,
1296 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
1297 java/lang/UnsatisfiedLinkError.java,
1298 java/lang/UnsupportedOperationException.java,
1299 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
1300 java/lang/reflect/InvocationTargetException.java,
1301 java/net/BindException.java, java/net/ConnectException.java,
1302 java/net/MalformedURLException.java,
1303 java/net/NoRouteToHostException.java,
1304 java/net/ProtocolException.java, java/net/SocketException.java,
1305 java/net/UnknownHostException.java,
1306 java/net/UnknownServiceException.java,
1307 java/text/ParseException.java: Copied from Classpath, thanks to
1308 Mark Wielaard who did the merge.
1310 * java/lang/System.java (getProperty): Use single argument form of
1311 SecurityManager.checkPropertyAccess.
1312 * Makefile.in: Rebuilt.
1313 * Makefile.am (core_java_source_files): Added VMSecurityManager.
1314 * java/lang/VMSecurityManager.java: New file.
1315 * java/lang/SecurityManager.java: Merged with Classpath.
1317 2001-08-31 Per Bothner <per@bothner.com>
1319 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
1320 (_Jv_RegisterClassHookDefault): Likewise.
1321 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
1322 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
1323 (_Jv_RegisterClassHookDefault): New.function.
1324 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
1326 * java/lang/ClassLoader.java (system): Remove static field.
1327 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
1328 directly instead of using it to set the system field.
1329 (loadClass): Use VMClassLoader.instance instead of system field.
1330 (findSystemClass): Similar.
1331 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
1332 than ClassLoader::system which no longer exists.
1333 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
1335 2001-08-31 Tom Tromey <tromey@redhat.com>
1337 * java/io/BufferedReader.java, java/io/ObjectInput.java,
1338 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
1339 Re-merged with Classpath.
1341 Re-merge with Classpath:
1342 * java/util/Comparator (equals): Added.
1343 * java/io/PipedWriter.java (write): Changed argument to `int'.
1345 * java/io/FileDescriptor.java (FileDescriptor()): New
1347 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
1349 * Makefile.in: Rebuilt.
1350 * Makefile.am (ordinary_java_source_files): Removed
1351 EnumerationChain, added DoubleEnumeration.
1352 (nat_source_files): Added natResourceBundle.cc.
1353 * java/util/natResourceBundle.cc: New file.
1354 * gnu/java/util/DoubleEnumeration.java: New file.
1355 * gnu/gcj/util/EnumerationChain.java: Removed.
1356 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
1357 * java/util/ResourceBundle.java: Merged with Classpath.
1358 * java/util/StringTokenizer.java: Merged with Classpath.
1359 * java/util/Locale.java: Merged with Classpath.
1360 * java/util/Random.java: Merged with Classpath.
1361 * java/util/PropertyResourceBundle.java: Merged with Classpath.
1362 * java/util/ListResourceBundle.java: Merged with Classpath.
1363 * java/util/ConcurrentModificationException.java: Re-merged with
1365 * java/util/EmptyStackException.java: Likewise.
1366 * java/util/MissingResourceException.java: Likewise.
1367 * java/util/NoSuchElementException.java: Likewise.
1368 * java/util/TooManyListenersException.java: Likewise.
1370 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
1371 * java/io/OptionalDataException.java: Merged with Classpath.
1373 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
1375 * exception.cc (PERSONALITY_FUNCTION): Simplify
1378 2001-08-31 Tom Tromey <tromey@redhat.com>
1380 * java/io/ByteArrayInputStream.java: Merged with Classpath.
1382 2001-08-30 Tom Tromey <tromey@redhat.com>
1384 * java/io/BufferedReader.java: Re-merged with Classpath.
1386 2001-08-28 Per Bothner <per@bothner.com>
1388 * java/math/BigInteger.java (init(int,Random)): New method.
1389 Move body of constructor <init>(int,Random)) here.
1390 Re-write it to avoid constructing unneeded temporaries.
1391 (<init>(int,int,Random)): Use new init method to avoid constructing
1392 extra temporary BigIntegers.
1394 2001-08-27 Tom Tromey <tromey@redhat.com>
1396 * java/rmi/activation/Activatable.java,
1397 java/rmi/activation/ActivateFailedException.java,
1398 java/rmi/activation/ActivationDesc.java,
1399 java/rmi/activation/ActivationException.java,
1400 java/rmi/activation/ActivationGroup.java,
1401 java/rmi/activation/ActivationGroupDesc.java,
1402 java/rmi/activation/ActivationGroupID.java,
1403 java/rmi/activation/ActivationID.java,
1404 java/rmi/activation/ActivationInstantiator.java,
1405 java/rmi/activation/ActivationMonitor.java,
1406 java/rmi/activation/ActivationSystem.java,
1407 java/rmi/activation/Activator.java,
1408 java/rmi/activation/UnknownGroupException.java,
1409 java/rmi/activation/UnknownObjectException.java,
1410 java/rmi/AccessException.java,
1411 java/rmi/AlreadyBoundException.java,
1412 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
1413 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
1414 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
1415 java/rmi/NotBoundException.java,
1416 java/rmi/RMISecurityException.java,
1417 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
1418 java/rmi/RemoteException.java, java/rmi/ServerError.java,
1419 java/rmi/ServerException.java,
1420 java/rmi/ServerRuntimeException.java,
1421 java/rmi/StubNotFoundException.java,
1422 java/rmi/UnexpectedException.java,
1423 java/rmi/UnknownHostException.java,
1424 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
1425 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
1426 java/rmi/registry/LocateRegistry.java,
1427 java/rmi/registry/Registry.java,
1428 java/rmi/registry/RegistryHandler.java,
1429 java/rmi/server/ExportException.java,
1430 java/rmi/server/LoaderHandler.java,
1431 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
1432 java/rmi/server/Operation.java,
1433 java/rmi/server/RMIClassLoader.java,
1434 java/rmi/server/RMIClientSocketFactory.java,
1435 java/rmi/server/RMIFailureHandler.java,
1436 java/rmi/server/RMIServerSocketFactory.java,
1437 java/rmi/server/RMISocketFactory.java,
1438 java/rmi/server/RemoteCall.java,
1439 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
1440 java/rmi/server/RemoteServer.java,
1441 java/rmi/server/RemoteStub.java,
1442 java/rmi/server/ServerCloneException.java,
1443 java/rmi/server/ServerNotActiveException.java,
1444 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
1445 java/rmi/server/SkeletonMismatchException.java,
1446 java/rmi/server/SkeletonNotFoundException.java,
1447 java/rmi/server/SocketSecurityException.java,
1448 java/rmi/server/UID.java,
1449 java/rmi/server/UnicastRemoteObject.java,
1450 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
1451 gnu/java/rmi/dgc/DGCImpl_Skel.java,
1452 gnu/java/rmi/dgc/DGCImpl_Stub.java,
1453 gnu/java/rmi/registry/RegistryImpl.java,
1454 gnu/java/rmi/registry/RegistryImpl_Skel.java,
1455 gnu/java/rmi/registry/RegistryImpl_Stub.java,
1456 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
1457 gnu/java/rmi/server/ProtocolConstants.java,
1458 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
1459 gnu/java/rmi/server/RMIHashes.java,
1460 gnu/java/rmi/server/RMIObjectInputStream.java,
1461 gnu/java/rmi/server/RMIObjectOutputStream.java,
1462 gnu/java/rmi/server/UnicastConnection.java,
1463 gnu/java/rmi/server/UnicastConnectionManager.java,
1464 gnu/java/rmi/server/UnicastRef.java,
1465 gnu/java/rmi/server/UnicastRemoteCall.java,
1466 gnu/java/rmi/server/UnicastRemoteStub.java,
1467 gnu/java/rmi/server/UnicastServer.java,
1468 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
1469 Kaffe. Relabelled classes to fit into Classpath tree.
1470 * Makefile.in: Rebuilt.
1471 * Makefile.am (rmi_java_source_files): New macro.
1472 (ordinary_java_source_files): Reference it.
1473 (bin_PROGRAMS): Added rmic and rmiregistry.
1474 (rmic_SOURCES): New macro.
1475 (EXTRA_rmic_SOURCES): Likewise.
1476 (rmic_LDFLAGS): Likewise.
1477 (rmic_LINK): Likewise.
1478 (rmic_LDADD): Likewise.
1479 (rmic_DEPENDENCIES): Likewise.
1480 (rmiregistry_SOURCES): New macro.
1481 (EXTRA_rmiregistry_SOURCES): Likewise.
1482 (rmiregistry_LDFLAGS): Likewise.
1483 (rmiregistry_LINK): Likewise.
1484 (rmiregistry_LDADD): Likewise.
1485 (rmiregistry_DEPENDENCIES): Likewise.
1487 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1489 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
1491 * Makefile.am: New friends for java/lang/Thread.h.
1492 * prims.cc (runFirst): Removed.
1493 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
1494 (_Jv_RunMain): Now takes either a klass or class name parameter.
1495 Create a gnu.gcj.runtime.FirstThread and attach the native thread
1496 to that, then run it using _Jv_ThreadRun. Remove special handling of
1497 jar files, instead pass is_jar parameter through to FirstThread.
1498 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
1499 of _Jv_AttachCurrentThread.
1500 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
1501 (run): New method. Take care of looking up main class manifest
1502 attribute and calling forName if necessary. Then call call_main.
1503 (call_main): New native method.
1504 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
1505 relocated from prims.cc. Look up and call main method.
1506 * java/lang/Thread.java (run_): Removed.
1507 * java/lang/natThread.cc (run_): Renamed to...
1508 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
1509 (_Jv_NotifyThreadStart): here. New function.
1510 (countStackFrames, destroy, resume, suspend, stop): Throw
1511 UnsupportedOperationExceptions rather than JvFail'ing.
1512 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
1513 Existing version wraps new variant.
1516 2001-08-23 Tom Tromey <tromey@redhat.com>
1518 * java/lang/reflect/Field.java (toString): Use
1519 Method.appendClassName.
1520 * java/lang/reflect/Constructor.java (toString): Use
1521 Method.appendClassName.
1522 * java/lang/reflect/Method.java: Reindented.
1523 (appendClassName): New method.
1525 * defineclass.cc (handleMethod ): Initialize `throws' field of
1527 (read_one_method_attribute): Handle Exceptions attribute.
1528 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
1529 (ObjectClass): Removed.
1530 (getType): Compute `exception_types'.
1531 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
1533 2001-08-21 Anthony Green <green@redhat.com>
1535 * java/lang/natClassLoader.cc (findClass): Search for
1536 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
1538 2001-08-21 Jeff Sturm <jsturm@one-point.com>
1540 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
1543 2001-08-20 Tom Tromey <tromey@redhat.com>
1545 * java/awt/GridBagConstraints.java: Removed comment.
1547 * jni.cc (nathash, nathash_count, nathash_size): New globals.
1548 (DELETED_ENTRY): New define.
1549 (hash): New function.
1550 (nathash_find_slot): Likewise.
1551 (natrehash): Likewise.
1552 (nathash_add): Likewise.
1553 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
1555 (nathash_find): New function.
1556 (_Jv_LookupJNIMethod): Use it. Synchronize body.
1557 (call): Synchronize around assignment.
1559 2001-08-17 Jeff Sturm <jsturm@one-point.com>
1561 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
1562 starting from zero offset.
1564 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1566 * boehm.cc: Include gc_local_alloc.h if appropriate.
1567 (GC_GENERIC_MALLOC): Don't define.
1568 (MAYBE_MARK): Redefine for GC 6.0.
1569 (_Jv_MarkObj): Mark class differently.
1570 (_Jv_AllocArray): Use GC_generic_malloc.
1572 2001-08-17 Mark J Roberts <mjr@anarcast.net>
1574 * java/math/BigInteger.java (randBytes): New method.
1575 (BigInteger(int,Random)): Use randBytes.
1577 2001-08-17 Tom Tromey <tromey@redhat.com>
1579 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
1581 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1583 * BigInteger.java: fix right shifts by nonzero multiples of 32.
1585 2001-08-15 Tom Tromey <tromey@redhat.com>
1587 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
1588 (local_ref_table, global_ref_table): Now IdentityHashMap.
1589 (_Jv_JNI_Init): Updated for new types.
1590 (mark_for_gc): Likewise.
1591 (unmark_for_gc): Likewise.
1592 * gcj/javaprims.h: Rebuilt class list.
1593 * Makefile.in: Rebuilt.
1594 * Makefile.am (core_java_source_files): Added new file.
1595 * java/util/IdentityHashMap.java: New file.
1597 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
1600 2001-08-09 Tom Tromey <tromey@redhat.com>
1602 * java/awt/image/SampleModel.java (getPixel): Set correct array
1603 element. From Chris Meyer.
1605 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
1607 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
1608 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
1610 2001-08-06 Tom Tromey <tromey@redhat.com>
1612 * java/io/InputStreamReader.java (refill): Only call refill on
1613 BufferedInputStream when appropriate constraints are met.
1615 2001-08-05 Tom Tromey <tromey@redhat.com>
1617 * java/io/StringWriter.java: Merged with Classpath.
1618 * java/io/InputStream.java: Merged with Classpath.
1619 * java/io/OutputStream.java: Merged with Classpath.
1620 * java/io/PushbackInputStream.java: Merged with Classpath.
1621 * java/io/CharArrayReader.java: Merged with Classpath.
1622 * java/io/CharArrayWriter.java: Merged with Classpath.
1624 2001-08-02 Tom Tromey <tromey@redhat.com>
1626 * prims.cc (JNI_OnLoad): Don't declare.
1627 (_JNI_OnLoad): Don't define.
1628 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
1630 2001-08-02 Tom Tromey <tromey@redhat.com>
1632 * java/io/RandomAccessFile.java (seek): Let seek go past end of
1634 (skipBytes): Don't fail if seeking past end of file.
1635 * java/io/FileInputStream.java (skip): Don't fail if seeking past
1637 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
1639 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
1641 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
1643 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
1645 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
1647 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
1648 to initialize global_ref_table/local_ref_table.
1650 2001-08-02 Tom Tromey <tromey@redhat.com>
1652 * configure: Rebuilt.
1653 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
1656 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1658 * include/posix.h (_POSIX_PII_SOCKET): Define.
1659 * configure.in (HAVE_SOCKLEN_T): Define.
1660 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
1662 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
1663 (java::net::PlainSocketImpl::accept): Use it.
1664 Fixes PRs libgcj/3694, libgcj/3696.
1666 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
1667 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
1668 * configure, include/config.h.in: Regenerate.
1669 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
1670 (mcastGrp): Likewise.
1671 (java::net::PlainDatagramSocketImpl::setOption): Guard against
1672 missing IPV6_MULTICAST_IF.
1673 Fixes PR libgcj/3694.
1675 2001-08-01 Jeff Sturm <jsturm@one-point.com>
1677 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
1679 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
1681 * Makefile.in: Rebuilt.
1682 * Makefile.am (GCJLINK): Added --tag=GCJ.
1683 (LIBLINK): Likewise.
1685 2001-07-30 Tom Tromey <tromey@redhat.com>
1687 * java/util/Date.java: Re-merged with Classpath.
1689 2001-07-30 Jeff Sturm <jsturm@one-point.com>
1691 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
1692 (_Jv_bind): New static function.
1693 (bind): Use _Jv_bind.
1694 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1695 (_Jv_bind, _Jv_connect): New static functions.
1696 (bind): Use _Jv_bind.
1697 (connect): Use _Jv_connect.
1699 2001-07-30 Tom Tromey <tromey@redhat.com>
1700 Corey Minyard <minyard@acm.org>
1702 * gnu/gcj/convert/natIconv.cc (done): New methods.
1703 * gnu/gcj/convert/Output_iconv.java (done): New method.
1704 * gnu/gcj/convert/Input_iconv.java (done): New method.
1705 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1707 (getDefaultEncodingClass): Removed.
1708 (getDefaultEncoder): Use getEncoder.
1710 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1712 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1714 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1716 (getDefaultDecodingClass): Removed.
1717 (getDefaultDecoder): Use getDecoder.
1718 (getDecoder): Look up decoder in cache.
1720 * java/lang/natString.cc (init): Call `done' on converter.
1721 (getBytes): Likewise.
1723 2001-07-30 Tom Tromey <tromey@redhat.com>
1725 * java/lang/Integer.java: Merged with Classpath.
1727 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1729 * java/util/GregorianCalendar.java (GregorianCalendar): Call
1730 setTimeInMillis() to set the default/current time.
1732 2001-07-29 Mark Wielaard <mark@klomp.org>
1734 * HACKING: add description on updating namespace
1736 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1738 * java/util/Calendar.java (set): Never recompute fields here. They
1739 will already be set if someone set time explicitly, and it can cause
1740 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1741 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1742 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1744 * java/text/SimpleDateFormat.java (defaultCentury): New field.
1745 (readObject): Call set2DigitYearStart if appropriate so that
1746 defaultCentury is calculated.
1747 (SimpleDateFormat): Don't bother clearing calendar here. Call
1748 computeCenturyStart().
1749 (set2DigitYearStart): Calculate and set defaultCentury.
1750 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1752 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1753 2 numeric digits, use the 80-20 heuristic to parse the value into a
1754 default century based on defaultCenturyStart.
1755 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1757 2001-07-25 Tom Tromey <tromey@redhat.com>
1759 * Makefile.in: Rebuilt.
1760 * Makefile.am (libgcj.jar): Correctly fail when bytecode
1763 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1765 * prims.cc (_JNI_OnLoad): New function.
1766 (JNI_OnLoad): Use it.
1767 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1769 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1771 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1772 Makefile.in: Regenerate.
1774 2001-07-24 Tom Tromey <tromey@redhat.com>
1776 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1779 2001-07-23 Tom Tromey <tromey@redhat.com>
1781 * gcj/javaprims.h: Rebuilt class list.
1782 * Makefile.in: Rebuilt.
1783 * Makefile.am (core_java_source_files): Added VMClassLoader.
1784 * java/lang/VMClassLoader.java: New file.
1785 * java/lang/Boolean.java: Merged with Classpath.
1786 * java/lang/Byte.java: Merged with Classpath.
1787 * java/lang/Integer.java: Merged with Classpath.
1788 * java/lang/Long.java: Merged with Classpath.
1789 * java/lang/Number.java: Merged with Classpath.
1790 * java/lang/Short.java: Merged with Classpath.
1792 2001-07-22 Jeff Sturm <jsturm@one-point.com>
1794 * configure.host: Enable hash synchronization for alpha*-*.
1795 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1797 * java/lang/natObject.cc (compare_and_swap, release_set,
1798 compare_and_swap_release): Added inline functions for alpha.
1800 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1802 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1803 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1804 back to old RFC 2133 variants if missing.
1806 2001-07-18 Tom Tromey <tromey@redhat.com>
1808 * java/io/natFileWin32.cc (_access): Renamed.
1810 * java/io/natFile.cc (_access): Renamed.
1812 * java/io/File.java (access, stat): Add leading `_' to name.
1813 Updated all callers.
1815 2001-07-18 Tom Tromey <tromey@redhat.com>
1818 * libgcj.spec.in (*lib): Added LIBICONV.
1819 * configure: Rebuilt.
1820 * configure.in: Call AM_ICONV. Don't check for iconv function.
1821 Add parameters to JV_HASH_SYNCHRONIZATION define.
1822 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1824 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1826 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1827 not by setting its size field.
1829 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1831 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1834 2001-07-12 Tom Tromey <tromey@redhat.com>
1835 David Brownell <david-b@pacbell.net>
1837 Fix for PR libgcj/3426:
1838 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1840 (read): Throw exception if character conversion fails.
1841 * java/io/BufferedInputStream.java (refill): Now package-private.
1842 * java/io/InputStreamReader.java (ready): Simplified.
1843 (refill): New method.
1846 2001-07-12 Tom Tromey <tromey@redhat.com>
1848 Report from Henner Zeller:
1849 * java/io/FileOutputStream.java (FileOutputStream): Throw
1850 FileNotFoundException, not IOException.
1852 2001-07-10 Anthony Green <green@redhat.com>
1854 * Makefile.in: Rebuilt.
1855 * Makefile.am: Add new files.
1856 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1857 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1858 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1859 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1860 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1861 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1862 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1863 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1864 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1865 org/w3c/dom/ranges/DocumentRange.java,
1866 org/w3c/dom/ranges/Range.java,
1867 org/w3c/dom/ranges/RangeException.java,
1868 org/w3c/dom/traversal/DocumentTraversal.java,
1869 org/w3c/dom/traversal/NodeFilter.java,
1870 org/w3c/dom/traversal/NodeIterator.java,
1871 org/w3c/dom/traversal/TreeWalker.java,
1872 org/xml/sax/ext/DeclHandler.java,
1873 org/xml/sax/ext/LexicalHandler.java,
1874 org/xml/sax/helpers/AttributeListImpl.java,
1875 org/xml/sax/helpers/AttributesImpl.java,
1876 org/xml/sax/helpers/DefaultHandler.java,
1877 org/xml/sax/helpers/LocatorImpl.java,
1878 org/xml/sax/helpers/NamespaceSupport.java,
1879 org/xml/sax/helpers/ParserAdapter.java,
1880 org/xml/sax/helpers/ParserFactory.java,
1881 org/xml/sax/helpers/XMLFilterImpl.java,
1882 org/xml/sax/helpers/XMLReaderAdapter.java,
1883 org/xml/sax/helpers/XMLReaderFactory.java,
1884 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1885 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1886 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1887 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1888 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1889 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1890 org/xml/sax/SAXNotRecognizedException.java,
1891 org/xml/sax/SAXNotSupportedException.java,
1892 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1893 org/xml/sax/XMLReader.java: New files.
1895 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1897 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1898 * Makefile.in: Regenerate.
1899 * java/lang/ThreadLocal.java: Initial import.
1901 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1903 * Makefile.am (libgcj.jar): Don't recursively make
1904 built_java_source_files. Avoid long command lines.
1905 Don't change to $(srcdir) to invoke javac.
1906 (libgcj.la, libgcjx.la); Avoid long command lines.
1907 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1908 * Makefile.in: Rebuilt.
1910 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1912 * include/i386-signal.h: Don't do anything with unsigned divide
1913 overflow except throw an exception.
1915 2001-07-05 Tom Tromey <tromey@redhat.com>
1918 * java/lang/Class.h (Class(void)): Now private. Removed
1919 implementation. From dmorsberger@sensysdl.com.
1921 2001-07-02 Tom Tromey <tromey@redhat.com>
1923 Fix for PR bootstrap/3281:
1924 * aclocal.m4, configure: Rebuilt.
1925 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1926 Correctly compute libgcj_basedir.
1927 (mkinstalldirs): Define and subst.
1929 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1932 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1935 2001-06-27 Tom Tromey <tromey@redhat.com>
1937 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1940 2001-06-25 Tom Tromey <tromey@redhat.com>
1942 * scripts/encodings.pl: Generate lower-case names. Updated URL
1943 for `character-sets' file.
1944 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1946 Rebuilt list of aliases.
1948 2001-06-25 Tom Tromey <tromey@redhat.com>
1950 * java/io/natFileDescriptorPosix.cc (open): Change error message
1951 formatting. From David Brownell.
1953 2001-06-21 Tom Tromey <tromey@redhat.com>
1955 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1958 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1960 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1961 extraneous/malformed sign word.
1963 2001-06-15 Tom Tromey <tromey@redhat.com>
1965 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1967 2001-06-15 Tom Tromey <tromey@redhat.com>
1969 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1970 NULL if no library on the list has the symbol.
1971 (init): Call add_library on the program itself.
1972 * prims.cc (JvRunMain): Initialize Runtime before searching for
1974 (_Jv_RunMain): Likewise.
1976 2001-06-15 Tom Tromey <tromey@redhat.com>
1978 * jni.cc (ClassClass): Removed; updated all users.
1979 (ObjectClass): Likewise.
1980 (ThrowableClass): Likewise.
1981 (MethodClass): Likewise.
1982 (ThreadGroupClass): Likewise.
1983 (local_ref_table): Renamed from `ref_table'.
1984 (global_ref_table): New global.
1985 (_Jv_JNI_Init): Initialize both ref tables.
1986 (mark_for_gc): Added `ref_table' parameter.
1987 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1989 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1990 (_Jv_JNI_DeleteGlobalRef): Likewise.
1991 (_Jv_JNI_DeleteLocalRef): Likewise.
1992 (_Jv_JNI_NewLocalRef): Likewise.
1993 (_Jv_JNI_PopLocalFrame): Likewise.
1994 (_Jv_JNI_GetStringChars): Likewise.
1995 (_Jv_JNI_ReleaseStringChars): Likewise.
1996 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1997 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1999 2001-06-14 Tom Tromey <tromey@redhat.com>
2001 Fix for PR libgcj/3144:
2002 * java/util/Date.java: Merged with Classpath.
2004 2001-06-12 Tom Tromey <tromey@redhat.com>
2006 * aclocal.m4, configure: Rebuilt.
2007 * acinclude.m4: Find configure.host in srcdir.
2009 2001-06-07 Tom Tromey <tromey@redhat.com>
2011 Fix for PR libgcj/3059:
2012 * java/lang/natSystem.cc (init_properties): Define `java.home'.
2013 * Makefile.in: Rebuilt.
2014 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
2016 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
2018 * exception.cc (cstdlib): Replaces stdlib.h.
2019 (_Jv_Throw): Use std::abort().
2020 (PERSONALITY_FUNCTION): Likewise.
2022 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
2024 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
2025 nothing, as in autoconf 2.50.
2026 * aclocal.m4, configure: Rebuilt.
2028 2001-06-08 Tom Tromey <tromey@redhat.com>
2030 * configure: Rebuilt.
2031 * configure.in: Compute new aux dir using `pwd'.
2033 2001-06-07 Tom Tromey <tromey@redhat.com>
2035 For PR bootstrap/3075:
2036 * configure, aclocal.m4, Makefile.am: Rebuilt.
2037 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
2038 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
2039 relative to libgcj_basedir.
2040 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
2041 AC_CANONICAL_SYSTEM here.
2042 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
2044 ($(extra_headers)): New target.
2046 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
2047 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2049 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
2050 table index is within allowed bounds. Ensure that we don't try to access
2051 class itable at a negative offset. Avoid an ancestor table lookup if
2052 source is a primitive type class.
2053 (isInstance): Remove redundant isPrimitive() check.
2055 2001-06-04 Tom Tromey <tromey@redhat.com>
2057 * java/security/PublicKey.java: Extend Key.
2058 * java/security/PrivateKey.java: Extend Key.
2060 2001-06-02 Anthony Green <green@redhat.com>
2062 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
2063 alternate when USE_LTDL not defined.
2065 2001-06-02 Anthony Green <green@redhat.com>
2067 * configure: Rebuild.
2068 * configure.in: Remove data_start hack.
2069 * libgcj.spec.in: Ditto.
2070 * Makefile.in: Rebuild.
2071 * Makefile.am: Ditto.
2072 * libgcjdata.c: Remove.
2074 2001-06-02 Anthony Green <green@redhat.com>
2076 * configure: Rebuild.
2077 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
2078 --without-libffi option. Tweak --disable-java-net processing.
2079 * Makefile.in: Rebuild.
2080 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
2081 * include/config.h.in: Rebuild.
2082 * acconfig.h (USE_LIBFFI): Define.
2083 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
2085 2001-06-02 Anthony Green <green@redhat.com>
2087 * configure: Rebuilt.
2088 * configure.in: Test for sigaction on native builds.
2089 * prims.cc: Check HAVE_SIGACTION.
2090 * include/config.h.in: Rebuilt.
2092 2001-05-31 Jeff Sturm <jsturm@one-point.com>
2094 * natFile.cc (get_entry): Removed functions.
2095 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
2096 Allocate enough storage for d_name if using readdir_r.
2098 2001-05-31 Tom Tromey <tromey@redhat.com>
2100 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
2102 (write): Loop until write completes. From Corey Minyard.
2104 2001-05-29 Laurent Guerby <guerby@acm.org>
2106 * java/awt/geom/Rectangle2D.java: fix doc typo.
2108 2001-05-31 Tom Tromey <tromey@redhat.com>
2110 * java/sql/DriverManager.java (getDrivers): Handle case where
2111 driver's class loader is null. From Corey Minyard.
2113 2001-05-29 Tom Tromey <tromey@redhat.com>
2115 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
2117 * configure: Rebuilt.
2118 * configure.in: Only add multilib support code if we just rebuilt
2121 2001-05-29 Andrew Haley <aph@redhat.com>
2123 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
2124 pointer: the dwarf unwinder in libgcc will do everything that's
2126 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
2127 more than we absolutely need to.
2128 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
2129 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
2131 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
2133 * configure: Rebuilt.
2134 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
2136 (SIGNAL_HANDLER): Use siginfo style handler.
2137 (INIT_SEGV): Likewise.
2138 (INIT_FPE): Likewise.
2139 * include/ppc-signal.h: Delete whole file.
2141 2001-05-24 Tom Tromey <tromey@redhat.com>
2143 * java/lang/natString.cc (init): Throw
2144 ArrayIndexOutOfBoundsException.
2145 (getChars): Likewise.
2146 (getBytes): Likewise.
2147 (valueOf): Likewise.
2149 * configure.in: Only allow hash synchronization when POSIX threads
2151 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
2152 of sync info object.
2154 2001-05-23 Tom Tromey <tromey@redhat.com>
2156 * Makefile.in: Rebuilt.
2157 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
2159 Revert patch of 2001-05-21:
2160 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
2161 (libgcj_la_LIBADD): Likewise.
2162 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
2163 (libgcjx_la_LIBADD): Likewise.
2165 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
2166 * gcj/Makefile.in: Rebuilt.
2167 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
2168 * gcj/javaprims.h: Include gcj/libgcj-config.h.
2169 * gcj/libgcj-config.h.in: New file.
2170 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
2171 * configure: Rebuilt.
2172 * configure.in: Enable hash synchronization by default on some
2174 (HASH_SYNC_SPEC): New subst.
2175 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
2176 Correctly use `test -z' instead of `test -n' in a couple places.
2177 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
2179 * configure.host (enable_java_net_default): Initialize.
2180 (enable_hash_synchronization_default): New variable.
2182 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
2184 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
2185 synchronization in use.
2186 (_Jv_MarkArray): Likewise.
2187 (_Jv_AllocBytes): Don't check return result.
2188 (handle_out_of_memory): New function.
2189 (_Jv_InitGC): Set GC_oom_fn.
2190 (trace_one_vtable): New global.
2191 (_Jv_AllocTraceOne): New function.
2192 * configure.in: Added --enable-hash-synchronization.
2193 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
2194 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
2195 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
2196 (_Jv_AllocArray): Likewise.
2197 (_Jv_AllocBytes): Likewise.
2198 (_Jv_AllocPtrFreeObject): New function.
2199 (_Jv_AllocTraceOne): Likewise.
2200 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
2202 (self_cache): New global.
2203 (_Jv_ThreadSelf_out_of_line): New function.
2204 * prims.cc (_Jv_AllocBytesChecked): Removed.
2205 (_Jv_ThrowNoMemory): New function.
2206 (_Jv_AllocObject): Don't check for null return from allocator.
2207 (_Jv_NewObjectArray): Likewise.
2208 (_Jv_AllocPtrFreeObject): New function.
2209 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
2210 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
2211 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
2212 * include/boehm-gc.h (_Jv_AllocObj): Define.
2213 (_Jv_AllocPtrFreeObj): Define.
2214 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
2215 (_Jv_ThrowNoMemory): Declare.
2216 (_Jv_AllocTraceOne): Declare.
2217 (_Jv_AllocBytesChecked): Removed.
2218 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
2219 _Jv_MutexUnlock): Handle LOCK_DEBUG.
2220 (_Jv_ThreadSelf): Handle case where system pthread_self() is
2222 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
2224 * java/lang/Object.h (sync_info): Conditional upon presence of
2225 hash synchronization.
2226 * java/lang/natObject.cc: Much new code to handle thin locks and
2227 hash synchronization.
2228 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
2231 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
2233 * gij.cc (version): Update copyright year.
2235 2001-05-22 Anthony Green <green@redhat.com>
2237 * configure.in: Tweak canadian cross test, and don't redefine GCJ
2240 2001-05-21 Per Bothner <per@bothner.com>
2242 Implement invocation interface; don't create new thread for main.
2243 * java/lang/Thread.java (gen_name): Make native.
2244 (<init>(Thread,THreadGroup,Runnable,String)): New private
2245 constructor, used by other constructors, and _Jv_AttachCurrentThread.
2246 * java/lang/natThread.cc (gen_name): New implementation.
2247 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
2248 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
2249 (_Jv_CreateJavaVM): New runtime initialization procedure.
2250 (runFirst): New proecdure - mostly code from old FirstThread::run.
2251 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
2252 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
2253 JvDetachCurrentThread): New inline wrappers.
2254 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
2255 _Jv_DetachCurrentThread): New declarations.
2256 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
2257 (getMain): new static method.
2258 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
2259 by runFirst in prims.cc.
2260 (java/lang/Thread.h): Update for new invocation interface.
2261 * include/posix-threads.h (_Jv_ThreadRegister,
2262 _Jv_ThreadUnRegister): New declarations.
2263 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2264 (really_start): Use new _Jv_ThreadRegister.
2265 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
2266 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
2267 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
2268 Complain of called when _Jv_OnlyThread already set.
2269 (_Jv_ThreadStart): Always JvFail.
2270 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
2271 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
2272 * win32-threads.cc (struct starter): Remove objet field -
2273 we use _Jv_Thread_t's new thread_obj field instead.
2274 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
2275 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2276 (really_start): Use new _Jv_ThreadRegister.
2277 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
2278 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
2279 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
2280 Removed - no longer needed with new invocation interface.
2281 * Makefile.am: Update for removed/added files.
2283 2001-05-21 Per Bothner <per@bothner.com>
2285 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
2286 (libgcj_la_LIBADD): Likewise.
2287 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
2289 2001-05-21 Per Bothner <per@bothner.com>
2291 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
2292 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
2293 taken from old Integer.toString code.
2294 (Integer::valueOf): Use _Jv_FormatInt.
2295 * java/lang/Integer.java (toString): Just use call String.valueOf.
2296 * java/lang/Long.java (toString): Fix typo in comment.
2297 * java/lang/String.java (valueOf(int)): Make native.
2298 * java/lang/StringBuffer.java (append(int)): Make native.
2299 * java/lang/natStringBuffer.cc: New file, for append(jint).
2300 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
2302 2001-05-21 Tom Tromey <tromey@redhat.com>
2304 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
2306 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
2308 * include/dwarf2-signal.h: New file.
2309 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
2310 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
2311 * configure: Rebuilt.
2313 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2315 * configure.in: Update boehm-gc include dir for new GC version.
2316 * configure: Rebuilt.
2317 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
2319 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
2320 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
2321 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
2324 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
2326 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
2327 (_Jv_MutexInit): Likewise.
2329 2001-05-18 Tom Tromey <tromey@redhat.com>
2331 * Makefile.in: Rebuilt.
2332 * Makefile.am (awt_java_source_files): Added Polygon.java.
2334 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2336 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
2337 * gcj/javaprims.h: ... here.
2338 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
2340 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
2342 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
2343 with length of ioffset table.
2344 (_Jv_IsAssignableFrom): Likewise.
2346 2001-05-17 Per Bothner <per@bothner.com>
2348 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
2350 2001-05-16 Tom Tromey <tromey@redhat.com>
2352 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
2355 2001-05-15 Tom Tromey <tromey@redhat.com>
2357 * java/util/GregorianCalendar.java (computeTime): Only call
2360 2001-05-14 Tom Tromey <tromey@redhat.com>
2362 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
2363 ZONE_OFFSET just before computing the time.
2365 2001-05-12 Zack Weinberg <zackw@stanford.edu>
2367 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
2368 * Makefile.in: Regenerate (by hand).
2369 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
2370 * doc/cni.sgml: Document #pragma GCC java_exceptions.
2372 2001-05-11 Richard Henderson <rth@redhat.com>
2374 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
2375 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
2377 2001-05-11 Richard Henderson <rth@redhat.com>
2379 * exception.cc: Include unwind-pe.h. Remove all pointer
2382 2001-05-10 Tom Tromey <tromey@redhat.com>
2384 * Makefile.in: Rebuilt.
2385 * Makefile.am (awt_java_source_files): Added Polygon.java.
2386 * java/awt/Polygon.java: New file.
2388 * java/awt/geom/AffineTransform.java
2389 (setToRotation(double,double,double)): New method.
2390 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
2391 (setToShear): Likewise.
2393 2001-05-10 Tom Tromey <tromey@redhat.com>
2395 * java/util/GregorianCalendar.java: Imported from Classpath.
2396 * gnu/java/locale/LocaleInformation_nl.java: New file from
2398 * gnu/java/locale/LocaleInformation_en.java: Likewise.
2399 * gnu/java/locale/LocaleInformation_de.java: Likewise.
2400 * gnu/java/locale/LocaleInformation.java: Likewise.
2401 * natGregorianCalendar.cc: Removed.
2402 * Makefile.in: Rebuilt.
2403 * Makefile.am (nat_source_files): Removed
2404 natGregorianCalendar.cc.
2406 2001-05-10 Tom Tromey <tromey@redhat.com>
2408 * java/text/SimpleDateFormat.java (computeCenturyStart): New
2410 (defaultCenturyStart): Use it.
2411 (readObject): Likewise.
2412 (SimpleDateFormat): Clear the calendar. Set the grouping on the
2414 (parse): Copy the calendar before modifying it. Correctly handle
2417 * java/util/Calendar.java (clear): Set field value(s) to 0.
2419 2001-05-10 Jeff Sturm <jsturm@one-point.com>
2421 * Calendar.java (get): Clear areFieldsSet if requested field
2423 (set): Unset fields that depend on new value.
2425 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2427 * java/lang/Class.h (_Jv_Self): New union type.
2428 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
2429 Jeff Sturm and Fergus Henderson.
2431 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2433 * java/lang/ClassLoader.java: Remove dead code fragment.
2435 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
2437 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2439 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2441 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
2443 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
2444 * configure.host (EXCEPTIONSPEC): New.
2445 * configure.in (EXCEPTIONSPEC): New.
2446 * configure: Rebuilt.
2448 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2450 * doc/*.texi: Remove generated documentation.
2452 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2454 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
2455 (performDelete): Fix #endif placement.
2457 2001-04-27 Zack Weinberg <zackw@stanford.edu>
2459 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
2460 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
2461 (_Jv_ThreadDestroyData): Use _Jv_Free.
2462 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
2465 2001-04-27 Tom Tromey <tromey@redhat.com>
2467 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2469 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2471 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
2473 * include/jni.h (struct JNINativeInterface): Fixed types in
2474 Get/Set*ArrayRegion declarations.
2475 (class _Jv_JNIEnv): Likewise.
2477 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
2479 * configure.in: Obtain THREADS with `gcc -v'.
2480 * configure: Rebuilt.
2482 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2485 * java/io/ObjectStreamClass.java (setClass): Calculate
2486 serialVersionUID for local class and compare it against the UID
2487 from the Object Stream. Throw InvalidClassException upon mismatch.
2488 (setUID): Renamed to...
2489 (getClassUID): this. Return the calculated class UID rather than
2490 setting uid field directly.
2491 (getDefinedSUID): Removed.
2492 * java/io/ObjectInputStream.java (resolveClass): Use the
2493 three-argument Class.forName().
2494 * java/io/InvalidClassException (toString): Don't include classname in
2495 result if it is null.
2497 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2499 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
2500 Wrap use of inet_pton in HAVE_INET6.
2502 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2504 java.security merge and ClassLoader compliance fixes.
2506 * java/lang/Class.h (Class): Include ProtectionDomain.h.
2507 New protectionDomain field.
2508 (forName): Add initialize parameter. Fixes declaration to comply with
2510 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
2511 variant. Honour "initialize" flag.
2512 (getProtectionDomain0): New method.
2513 * java/lang/Class.java: Fix forName() declaration.
2514 (getPackage): New method based on Classpath implementation.
2515 (getProtectionDomain0): New native method decl.
2516 (getProtectionDomain): New method.
2517 * java/lang/ClassLoader.java (getParent): Now final.
2518 (definedPackages): New field.
2520 (defineClass): New variant with protectionDomain argument.
2521 (definePackage): New.
2523 (findSystemClass): Now final.
2524 (getSystemResourceAsStream): Remove redundant "final" modifier.
2525 (getSystemResource): Remove redundant "final" modifier.
2526 (getResources): Now final.
2527 (protectionDomainPermission): New static field.
2528 (unknownProtectionDomain): Ditto.
2529 (defaultProtectionDomain): Ditto.
2530 (getSystemClassLoader): Now non-native.
2531 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
2532 arguments for Class.forName().
2533 * java/lang/Package.java: New file.
2534 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
2535 (instance): Static initialize singleton.
2536 (findClass): Override this, not findSystemClass.
2537 * java/lang/natClassLoader.cc (defineClass0): Set class's
2538 protectionDomain field as specified.
2539 (getSystemClassLoader): Removed.
2540 (findClass): Renamed from findSystemClass. Call the interpreter via
2541 URLClassLoader.findClass if loading class via dlopen fails.
2543 * java/security/*.java: java.security import/merge with Classpath.
2544 * java/security/acl/*.java: Likewise.
2545 * java/security/interfaces/*.java: Likewise.
2546 * java/security/spec/*.java: Likewise.
2547 * java/net/NetPermission.java: Likewise.
2548 * java/net/SocketPermission.java: Likewise.
2549 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
2551 * Makefile.am: Add new classes.
2552 * Makefile.in: Rebuilt.
2553 * gcj/javaprims.h: CNI namespace rebuild.
2555 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
2557 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
2558 for libtool tests. Pre-create gnu/classpath/Configuration.java.
2559 * configure: Rebuilt.
2561 2001-04-21 Tom Tromey <tromey@redhat.com>
2563 * Makefile.in: Rebuilt.
2564 * Makefile.am (awt_java_source_files): Added Line2D.java.
2565 * java/awt/geom/Line2D.java: Wrote.
2567 * java/awt/Menu.java (addNotify): Wrote.
2569 * java/awt/PopupMenu.java (addNotify): Implemented.
2572 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
2573 * java/awt/List.java (addNotify): Call super.addNotify.
2574 * java/awt/Label.java (addNotify): Call super.addNotify.
2575 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
2576 * java/awt/Dialog.java (addNotify): Call super.addNotify.
2577 * java/awt/Choice.java (addNotify): Call super.addNotify.
2578 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
2579 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
2581 * java/awt/List.java (replaceItem): Notify peer.
2583 * java/awt/geom/Rectangle2D.java
2584 (Float.setRect(float,float,float,float)): New method.
2586 * java/awt/event/ContainerEvent.java (getContainer): Now returns
2589 * java/awt/RenderingHints.java (Key): Class now public.
2591 * java/awt/Rectangle.java (Rectangle): Now implements
2593 (getPathIterator): Removed.
2595 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
2598 * java/awt/FileDialog.java: Wrote.
2600 * java/awt/EventQueue.java (isDispatchThread): Now public.
2601 (invokeLater): Likewise.
2603 * java/awt/Component.java (setCursor): Update peer.
2604 (getFontMetrics): Use peer.
2606 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
2609 2001-04-20 Tom Tromey <tromey@redhat.com>
2611 * java/awt/List.java: Wrote.
2612 * java/awt/Dialog.java: Wrote.
2614 2001-04-20 Warren Levy <warrenl@redhat.com>
2616 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
2617 * java/text/SimpleDateFormat.java
2618 (indexInArray): Removed private method.
2619 (processYear): Removed private method.
2620 (parseLenient): Removed private method.
2621 (parseLeadingZeros): Removed private method.
2622 (parseStrict): Removed private method.
2623 (expect): Added new private method.
2624 (parse): Reverted to pre-Classpath merge version with minor fixes.
2625 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
2628 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
2630 * java/io/File.java (normalizePath): New private method.
2631 (File (String)): Use normalizePath().
2632 (File (String, String)): Likewise.
2634 * Makefile.am (libffi_files): Removed.
2635 (libgcj.la): Link libffi as a convenience library instead of
2636 refering to its object files directly.
2637 * Makefile.in: Rebuilt.
2639 2001-04-08 Per Bothner <per@bothner.com>
2641 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
2642 Recalculate hash, since Utf8Const's hash is only 16 bits.
2644 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
2645 bits of hash to calculate step for chaining.
2647 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
2648 when 2/3 full, rather than 3/4 full.
2650 2001-04-06 Tom Tromey <tromey@redhat.com>
2652 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
2653 (wrap_value<T*>): New specialization.
2654 (_Jv_JNI_PopLocalFrame): Update env->locals.
2656 2001-04-05 Tom Tromey <tromey@redhat.com>
2658 * libtool-version: Updated current.
2660 2001-04-04 Andreas Jaeger <aj@suse.de>
2662 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2663 * gcj/Makefile.in: Rebuilt.
2664 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2665 * Makefile.in: Rebuilt.
2666 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2667 * testsuite/Makefile.in: Rebuild.
2668 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2669 * include/Makefile.in: Rebuild.
2671 2001-04-02 Zack Weinberg <zackw@stanford.edu>
2673 * testsuite/lib/libjava.exp: Correct typo: 'output from source
2674 compiled test', not 'execution from source compiled test'.
2675 Use UNTESTED, not XFAIL, for tests which are not run because
2676 they depend on a previous test which failed.
2678 2001-04-02 Richard Henderson <rth@redhat.com>
2680 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
2681 the same tree as gcc.
2682 * configure: Rebuilt.
2684 * exception.cc (_Jv_Throw): Clarify commentary.
2686 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
2688 * jni.cc (wrap_value<jclass>): New specialization.
2690 2001-04-02 Tom Tromey <tromey@redhat.com>
2692 * java/io/PrintStream.java (out): Removed field. Fixes PR
2694 (write): Call flush, not out.flush, per spec.
2695 (close): Flush output stream, per spec. Handle
2696 InterruptedIOException.
2697 (checkError): Likewise.
2698 (flush, print, write): Handle InterruptedIOException per spec.
2699 (PrintStream): Don't create BufferedOutputStream.
2700 (work_bytes): New field.
2701 (writeChars): Use work_bytes. Don't assume `out' is a
2702 BufferedOutputStream.
2704 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
2706 * java/text/MessageFormat.java (setLocale): Added missing `else'.
2709 2001-03-30 Tom Tromey <tromey@redhat.com>
2711 * jni.cc (add_char): Correctly encode non-ascii characters.
2712 (add_char): Define even when INTERPRETER not defined.
2713 (mangled_name): Likewise.
2714 (_Jv_GetJNIEnvNewFrame): Likewise.
2715 (_Jv_LookupJNIMethod): Likewise.
2717 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
2719 * configure.host: Enable interpreter for PPC.
2721 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
2723 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2724 to "file.separator", "path.separator", and "java.io.tmpdir" property
2726 * java/io/File.java: Likewise.
2727 * java/io/natFile.cc (init_native): Likewise.
2728 * java/io/natFileWin32.cc (init_native): Likewise.
2730 2001-04-01 Per Bothner <per@bothner.com>
2732 * java/lang/natString.cc (intern): If string's data does not point to
2733 this String, make a fresh String that does.
2735 * java/lang/natString.cc (unintern): Replace by static function.
2736 * java/lang/String.java (unintern): Remove method.
2738 2001-04-01 Per Bothner <per@bothner.com>
2740 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
2741 (finish): def.deflate needs to be called in a loop.
2742 (inbuf, inbufLength): New private fields.
2743 (write(int)): Use inbuf.
2744 (write(byte[],int,int): Check if pending output in inbuf.
2745 * ZipOutputStream.java: Don't use Deflater if stored.
2746 Use a Checksum object directly, not via a CheckedOutputStream.
2747 (uncompressed_size): New field,
2748 (closeEntry): Only write data_directory if needed.
2749 (write): If STORED, write directly.
2750 Always update crc, and uncompressed_size.
2751 (write_entry): Fix lots of protocol erors.
2753 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
2755 1.3-Compliant Implementation of java.io.File.
2756 * java/lang/natSystem.cc (init_properties): Get "file.separator",
2757 "path.separator", and "java.io.tmpdir" from the File class, instead
2758 of setting them explicitly.
2759 * java/io/File.java: Do not canonicalize paths for security manager
2760 checks. Call init_native() from static initializer. Do not pass path
2761 argument to native methods. New native method declarations. Some
2762 security manager checks moved to checkWrite().
2763 (equals): Check file system case sensitivity and act appropriatly.
2764 (hashCode): Likewise.
2765 (isHidden): New method implemented.
2766 (performList): Changed prototype. Now takes a class argument specifying
2767 the class of the returned array: Strings or File objects. Also added
2768 FileFilter argument.
2769 (listFiles): New variants with "File" return type implemented.
2770 (createTempFile): Use createNewFile(). Use maxPathLen.
2771 (setReadOnly): New method implemented.
2772 (listRoots): Likewise.
2773 (compareTo): Likewise.
2774 (setLastModified): Likewise.
2775 (checkWrite): New method.
2777 * java/io/natFile.cc: Various functions no longer take canonical path
2779 (stat): Handle ISHIDDEN query.
2780 (isAbsolute): Remove WIN32 cruft.
2781 (performList): New arguments. Handle returning either File[] or String[]
2782 arrays. Check with FileFilter or FilenameFilter arguments as
2783 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2784 (performSetReadOnly): New method implemented.
2785 (performListRoots): Likewise.
2786 (performSetLastModified): Likewise.
2787 (performCreate): Likewise.
2788 (init_native): New initialization function.
2789 * java/io/natFileWin32.cc: Various functions no longer take canonical
2791 (stat): Add FIXME about ISHIDDEN query.
2792 (performList): New arguments. Handle returning either File[] or String[]
2793 arrays. Check with FileFilter or FilenameFilter arguments as
2794 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2795 (performSetReadOnly): New. Stubbed.
2796 (performListRoots): Likewise.
2797 (performSetLastModified): Likewise.
2798 (performCreate): Likewise.
2799 (init_native) New initialization function.
2800 * configure.in: Check for utime() and chmod().
2801 * configure: Rebuilt.
2802 * include/config.h.in: Rebuilt.
2804 Resolves PR libgcj/1759.
2806 2001-03-28 Richard Henderson <rth@redhat.com>
2808 IA-64 ABI Exception Handling:
2809 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2810 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2811 Remove EXCEPTIONSPEC.
2812 * configure.host (libgcj_sjlj): Remove.
2813 * configure.in (EXCEPTIONSPEC): Remove.
2814 (enable-sjlj-exceptions): Detect if not specified.
2815 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2816 what header we're looking for.
2817 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2818 * Makefile.in, configure: Regenerate.
2819 * exception.cc: Don't declare libgcc2 stuff.
2820 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2821 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2822 (win32_get_restart_frame): Remove.
2823 (struct java_exception_header): New.
2824 (__gcj_exception_class): New.
2825 (get_exception_header_from_ue): New.
2826 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2827 (size_of_encoded_value, read_encoded_value): New.
2828 (read_uleb128, read_sleb128, parse_lsda_header): New.
2829 (get_ttype_entry, __gcj_personality_sj0): New.
2830 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2832 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2834 * javax/naming/InitialContext.java (init): Fix typo.
2835 (composeName): Remove unnecessary semicolon.
2836 (addToEnvironment): Remove unnecessary semicolon.
2837 (addToEnvironment): Use put() instead of add().
2839 * javax/naming/InitialContext.java (InitialContext):
2841 (destroySubcontext): Method doesn't return a result.
2842 * javax/naming/Context.java: Import java.util.Hashtable.
2843 * javax/naming/Name.java: Import java.util.Enumeration.
2845 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2847 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2848 objects in subdirectories.
2849 * Makefile.in: Rebuilt.
2851 2001-03-25 Richard Henderson <rth@redhat.com>
2853 * exception.cc (java_eh_info): Make value type jthrowable.
2854 (_Jv_type_matcher): Remove now unneeded cast.
2855 (_Jv_Throw): Make argument type jthrowable. Munge name
2856 for SJLJ_EXCEPTIONS here ...
2857 * gcj/cni.h: ... not here.
2859 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2861 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2862 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2863 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2864 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2865 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2866 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2867 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2868 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2869 java/lang/natDouble.cc, java/lang/natObject.cc,
2870 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2871 java/lang/natString.cc, java/lang/natSystem.cc,
2872 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2873 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2874 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2875 java/util/zip/natInflater.cc:
2876 Use throw, not JvThrow or _Jv_Throw.
2878 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2880 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2881 paramater, bump it to 1.
2882 * java/util/Hashtable.java (Hashtable): Likewise.
2884 2001-03-23 Per Bothner <per@bothner.com>
2886 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2887 check for errors, since we don't want to throw exception on
2888 overflow/underflow. Instead, trim whitespace, and then check that
2889 _strtod_r uses up all the rest of the string.
2891 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2892 ancestors array is invalid for interfaces, so do that *after*
2893 check that the target type is not an interface.
2895 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2897 * prims.cc (_Jv_FindClassFromSignature): Check return of
2898 recursive call. Do not abort on invalid signature; return NULL
2901 2001-03-22 Tom Tromey <tromey@redhat.com>
2903 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2904 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2906 * include/jvm.h (_Jv_ResolveField): Declare.
2907 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2908 * resolve.cc (_Jv_ResolveField): No longer conditional on
2911 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2913 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2914 for libtool hacking.
2915 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2916 to a temporary file, then invoke libtool with the -objectlist
2918 (libgcjx.la): Likewise.
2919 * Makefile.in: Rebuilt.
2921 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2923 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2925 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2927 * jni.cc (add_char): Handle `.' like `/'.
2929 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2931 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2932 initialize if exception_types is null.
2933 * java/lang/reflect/Constructor.java: Likewise.
2934 * java/lang/reflect/natConstructor.cc (getType): Initialize
2935 exception_types to an empty Object array.
2937 2001-03-21 Tom Tromey <tromey@redhat.com>
2939 * configure: Rebuilt.
2940 * configure.in (GCJFLAGS): Subst.
2941 * Makefile.in: Rebuilt.
2942 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2943 (gij_LDFLAGS): Likewise.
2944 (JC1FLAGS): Added GCJFLAGS and removed -g.
2946 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2947 read/write case. Fixes PR libgcj/2338.
2949 2001-03-20 Warren Levy <warrenl@redhat.com>
2951 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2952 and corrected SimpleTimeZone's for the timezones hash table.
2954 2001-03-19 Per Bothner <per@bothner.com>
2956 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2957 "canonicalize" "../../xxx" to "/xxx".
2959 2001-03-19 Mark Wielaard <mark@klomp.org>
2961 * java/util/ArrayList.java: Remove RCS keywords from comments
2962 * java/util/BasicMapEntry.java: idem
2963 * java/util/Dictionary.java: idem
2964 * java/util/HashSet.java: idem
2966 * java/util/EventObject.java: reindent
2967 * java/util/Properties.java: idem
2968 * java/util/SortedMap.java: idem
2970 * java/util/Enumeration.java: Merge with Classpath
2971 * java/util/EventListener.java: idem
2972 * java/util/Observable.java: idem
2973 * java/util/Observer.java: idem
2974 * java/util/Stack.java: idem
2976 2001-03-17 Tom Tromey <tromey@redhat.com>
2978 * java/lang/natString.cc (rehash): Don't bother with memset;
2979 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2981 (UNMASK_PTR): New macro.
2982 (intern): Unmask pointer before returning it. Register finalizer
2984 (unintern): Handle case where
2985 (MASK_PTR): New macro.
2986 (PTR_MAKSED): Likewise.
2987 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2989 2001-03-01 Andrew Haley <aph@redhat.com>
2991 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2992 stackTrace buffer to a correctly aligned pointer array.
2994 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2996 * java/lang/Runtime.java (_exit): Declare new package-private native.
2997 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2998 without a security manager check.
2999 (exit): Call _exit after security check.
3000 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
3002 * java/lang/System.java (setSecurityManager): If a security manager
3003 is already in place, call checkPermission.
3004 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
3005 throws an exception, try to deal with it gracefully.
3006 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3007 Only try to print the subordinate stack trace if "exception" is set.
3008 Print our class name first.
3010 2001-03-08 Tom Tromey <tromey@redhat.com>
3012 * java/io/ObjectStreamClass.java (setUID): Don't write interface
3013 info for array classes.
3014 Fixes PR libgcj/1971.
3016 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
3018 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
3021 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
3023 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
3024 instead of the new JDK1.2 API. This is simpler and makes
3025 back-porting the classes to JDK1.1 trivial.
3026 (readObject): likewise.
3028 2001-03-01 Per Bothner <per@bothner.com>
3030 Changes merged from Kawa's gnu.math.
3031 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
3032 (rshift(int[],int[],int,int): Removed - not needed.
3033 (gcd): Use rshift0 rather than rshift.
3034 * java/math/BigInteger.java (setShiftRight): Likewise.
3035 (divide): Simplify by using rshift0.
3036 (divide): Zero-extend results if high-order bit set.
3038 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
3040 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
3043 2001-02-23 Per Bothner <per@bothner.com>
3045 Change to sometimes include class name in ClassFormatError message.
3046 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
3047 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
3048 boolean instead of throwing ClassFormatError on failure.
3049 (throw_class_format_error): Change static function to method.
3050 (_Jv_ClassReader): New inline methods verify_identifier,
3051 two overloads of verify_classname, verify_field_signature, and
3052 verify_method_signature
3053 * include/java-interp.h: Update declarations to return bool.
3054 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
3055 ClassFormatError since _Jv_VerifyClassName now returns bool.
3057 2001-02-23 Per Bothner <per@bothner.com>
3059 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
3060 c++filt to select java-style output.
3062 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
3064 Fix for PR java/2040:
3065 * java/util/HashMap.java (HashMap): Don't throw exception for
3066 loadFactor > 1. Add exception messages.
3067 * java/util/Hashtable.java (Hashtable): Likewise.
3069 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
3071 Disable libgcjx by default.
3072 * configure.in: Add support for --enable-java-awt configure option.
3073 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
3074 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
3075 * Makefile.in: Rebuilt.
3076 * configure: Rebuilt.
3078 2001-02-20 Tom Tromey <tromey@redhat.com>
3080 * java/io/PipedWriter.java (flush): Throw exception if stream
3082 * java/io/OutputStreamWriter.java (write): Throw exception if
3084 (writeChars): Don't throw exception if stream closed.
3085 * java/io/CharArrayWriter.java (closed): New field.
3087 (flush): Throw exception if stream closed.
3088 (reset): Synchronize on correct lock. Allow stream to be
3090 (toCharArray, toString, writeTo): Synchronize.
3091 (write): Throwe exception if stream closed.
3092 * java/io/BufferedWriter.java (close): Clear `buffer'.
3093 (flush): Throw IOException if stream is closed.
3096 2001-02-16 Tom Tromey <tromey@cygnus.com>
3098 * java/lang/ThreadGroup.java (activeCount): Only include threads
3100 (enumerate): Likewise.
3102 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
3104 * java/lang/Integer.java (getInteger): Return default argument if
3105 property is not set. Don't call decode with null argument.
3106 * java/lang/Long.java (getLong): Likewise.
3108 * java/io/CharArrayReader.java (CharArrayReader): Throw
3109 IllegalArgumentException if constructor arguments are illegal.
3110 (ready): Return false if no more characters can be read.
3111 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
3113 2001-02-17 Mark Wielaard <mark@klomp.org>
3115 * java/util/TimerTask.java: New version from Classpath.
3117 2001-02-17 Mark Wielaard <mark@klomp.org>
3119 Remerge with Classpath
3120 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
3121 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
3122 (readByte): Use convertToByte().
3123 (readChar): Use convertToChar().
3124 (readInt): Use convertToInt().
3125 (readLong): Use convertToLong().
3126 (readShort): Use convertToShort().
3127 (readUnsignedByte): Use convertToUnsignedByte().
3128 (readUnsignedShort): Use convertToUnsignedShort().
3129 (readUTF): Use convertToUTF().
3131 (convertToBoolean): Resurrected.
3132 (convertToByte): Ditto.
3133 (convertToChar): Ditto.
3134 (convertToInt): Ditto.
3135 (convertToLong): Ditto.
3136 (convertToShort): Ditto.
3137 (convertToUnsignedByte): Ditto.
3138 (convertToUnsignedShort): Ditto.
3139 (convertToUTF): Ditto.
3141 2001-02-17 Mark Wielaard <mark@klomp.org>
3145 2001-02-17 Mark Wielaard <mark@klomp.org>
3147 * java/io/DataInputStream.java: update copyright notice
3148 * java/io/PrintWriter.java: idem
3149 * java/io/Reader.java: idem
3150 * java/io/StreamTokenizer.java: idem
3151 * java/io/StringReader.java: idem
3152 * java/lang/reflect/ReflectPermission.java: idem
3154 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
3156 * java/util/TreeSet.java (clone): Made subclass safe, use
3157 super.clone(), not new.
3158 * java/util/TreeMap.java (clone): Likewise.
3160 * java/util/TreeMap.java (nil): Made non-final.
3161 (clone): Create new nil node for copy.
3163 * java/util/HashSet.java (clone): Made subclass safe, use
3164 super.clone(), not new.
3166 2001-02-14 Andrew Haley <aph@redhat.com>
3168 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
3171 2001-02-15 Anthony Green <green@redhat.com>
3173 * defineclass.cc: Don't include alloca.h.
3174 (prepare_pool_entry): Convert alloca to __builtin_alloca.
3175 * interpret.cc (run_normal): Ditto.
3177 * java/lang/natDouble.cc (parseDouble): Ditto.
3179 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
3181 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
3183 * java/util/Collections.java (ReverseComparator): New static class.
3184 (reverseOrder): Return static instance of ReverseComparator.
3186 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
3187 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
3188 Rectangle.clone(), not Object.clone().
3190 * java/util/HashSet.java (clone): Remove try/catch.
3192 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
3193 * java/util/Collection.java: Likewise.
3194 * java/util/Comparator.java: Likewise.
3195 * java/util/Dictionary.java: Likewise.
3196 * java/util/Iterator.java: Likewise.
3197 * java/util/ListIterator.java: Likewise.
3198 * java/util/Map.java: Likewise.
3199 * java/util/Set.java: Likewise.
3201 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
3203 * java/util/TreeMap.java: New file.
3204 * java/util/TreeSet.java: New file.
3205 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
3206 * Makefile.in: Rebuilt.
3207 * java/util/HashSet.java (clone): Use constructor instead of calling
3209 * java/util/SortedSet.java: Sync with classpath.
3210 * java/util/HashMap.java (hash): Use if statement instead of ternary,
3213 * java/lang/natClass.cc (getSignature): Don't try to dereference
3214 param_types if it is null. Instead, take this to mean "no parameters".
3215 * java/lang/TreeMap.java (TreeIterator.next): Throw
3216 NoSuchElementException in preference to ConcurrentModificationException.
3217 (TreeIterator.remove): Throw IllegalStateException in preference to
3218 ConcurrentModificationException.
3219 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
3220 throw a NoSuchElementException.
3221 (SubMap.lastKey): Likewise.
3223 2001-02-13 Tom Tromey <tromey@redhat.com>
3225 * java/io/PipedReader.java (ready): Throw IOException if pipe
3227 * java/io/FilterReader.java (close): Don't clear `in'.
3228 * java/io/CharArrayReader.java (mark): Throw IOException if stream
3230 (read, ready, reset, skip): Added exception message.
3231 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
3232 Perform checkStatus check inside synchronized block.
3234 2001-02-13 Tom Tromey <tromey@redhat.com>
3236 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
3238 2001-02-13 Tom Tromey <tromey@redhat.com>
3240 Fix for PR libgcj/1351:
3241 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
3243 Include Thread.h and InterruptedIOException.h.
3245 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
3247 * java/io/BlockDataException.java: Removed.
3248 * java/io/ObjectInputStream.java (readObject): Throw
3249 StreamCorruptedException, not BlockDataException.
3250 * Makefile.am: Remove BlockDataException.
3251 * Makefile.in: Rebuild.
3253 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
3254 Tom Tromey <tromey@redhat.com>
3256 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
3259 2001-02-09 Tom Tromey <tromey@redhat.com>
3261 * java/util/Timer.java: New version from Classpath.
3263 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
3265 * java/lang/Double.java (doubleToRawLongBits): Now native.
3266 * java/lang/Float.java (floatToRawIntBits): Likewise.
3267 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
3268 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
3270 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
3272 * java/io/File.java (java.net): Imported.
3273 (getAbsoluteFile): Added.
3274 (getCanonicalPath): Likewise.
3277 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
3279 * java/lang/Byte.java: Remove redundant instanceof and null checks.
3280 * java/lang/Integer.java: Likewise.
3281 * java/lang/Long.java: Likewise.
3282 * java/lang/Short.java: Likewise.
3283 * java/lang/Double.java: Likewise.
3284 (doubleToRawLongBits): New method.
3285 * java/lang/Float.java: As above.
3286 (floatToRawIntBits): New method.
3288 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
3289 IOException if stream closed.
3291 2001-02-08 Tom Tromey <tromey@redhat.com>
3293 * java/lang/Float.java (parseFloat): New method.
3295 2001-02-08 Tom Tromey <tromey@redhat.com>
3297 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
3298 * java/io/InputStreamReader.java (ready, read): Throw IOException
3299 if stream has been closed.
3301 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3303 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
3304 Change sources.redhat.com and sourceware.cygnus.com references to
3307 2001-02-07 Tom Tromey <tromey@redhat.com>
3309 Fix for PR libgcj/1906:
3310 * java/text/MessageFormat.java (setLocale): Use named class
3313 (format(Object,StringBuffer,FieldPosition)): Special case if
3314 argument is an Object[].
3316 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
3318 * java/util/Arrays.java: Removed "cmp" methods.
3319 (qsort): Don't use "cmp".
3322 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
3324 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
3325 sort. Fix for PR java/1895.
3327 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
3329 * configure.host: Use sjlj-exceptions for Alpha.
3331 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
3333 * libgcj.spec.in: Don't force static libgcc into the executable.
3334 * configure.in (FORCELIBGCCSPEC): Removed.
3335 * configure: Rebuilt.
3337 2001-01-31 Tom Tromey <tromey@redhat.com>
3339 * Makefile.in: Rebuilt.
3340 * Makefile.am (LTCXXCOMPILE): New macro.
3342 2001-01-26 Andrew Haley <aph@redhat.com>
3344 (INIT_FPE): Use a direct system call to set the handler.
3346 2001-01-27 Richard Henderson <rth@redhat.com>
3348 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
3350 2001-01-27 Tom Tromey <tromey@redhat.com>
3352 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
3353 native interface structure.
3355 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
3357 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
3359 (read (byte[], int, int)): Only call readNextBlock() if the block
3360 buffer would actually be overrun. Increment blockDataPosition.
3361 (callReadMethod): Propagate exceptions from invocation target.
3362 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
3363 exceptions from invocation target.
3365 2001-01-26 Tom Tromey <tromey@redhat.com>
3367 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
3368 to internal representation.
3369 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
3370 _Jv_FindClassFromSignature.
3372 2001-01-26 Warren Levy <warrenl@redhat.com>
3374 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
3375 and timezone if they are available on the system.
3377 2001-01-24 Tom Tromey <tromey@redhat.com>
3379 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
3381 2001-01-24 Tom Tromey <tromey@redhat.com>
3383 * Makefile.in: Rebuilt.
3384 * Makefile.am (c_source_files): Added sf_fabs.c.
3385 * java/lang/sf_fabs.c: New file.
3387 2001-01-19 Warren Levy <warrenl@redhat.com>
3389 * java/text/SimpleDateFormat.java (format): Compute hour for cases
3390 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
3391 correctly. Adjust properly from 0-23 clock hour.
3393 2001-01-17 Mark Wielaard <mark@klomp.org>
3395 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
3397 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
3399 * java/lang/Class.h (isInterface): Move implementation from
3400 natClass.cc. Declare inline.
3401 (Class): Add default constructor.
3402 * java/lang/Object.h: Update comments.
3403 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
3404 initialize superclass, saving a call if super is already initialized.
3406 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
3408 * prims.cc (init_prim_class): Deleted.
3409 (DECLARE_PRIM_TYPE): Rewritten.
3410 * java/lang/Class.h (stdio.h): Include removed.
3411 (stddef.h): Included.
3412 (java/lang/reflect/Modifier.h): Likewise.
3413 (Class): Contructor now takes arguments, initializes fields.
3414 (initializePrim): Prototype deleted.
3415 * java/lang/natClass.cc (initializePrim): Deleted.
3417 2001-01-16 Warren Levy <warrenl@redhat.com>
3419 * java/math/BigInteger.java: Update Copyright year.
3421 2001-01-16 Hans Boehm <hans_boehm@hp.com>
3423 * java/math/BigInteger.java (setShiftRight): Only do negative shift
3426 2001-01-14 Mark Wielaard <mark@klomp.org>
3427 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
3428 (decode): Merge comments with Classpath, don't throw Exception
3430 2001-01-12 Tom Tromey <tromey@redhat.com>
3432 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
3436 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
3437 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
3438 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
3439 * gnu/awt/gtk/GtkLabelPeer.java: New file.
3440 * gnu/awt/gtk/GtkButtonPeer.java: New file.
3442 * java/lang/natSystem.cc: Include locale.h if it exists.
3443 * configure: Rebuilt.
3444 * configure.in: Check for locale.h.
3446 2001-01-11 Tom Tromey <tromey@redhat.com>
3448 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
3449 (Cursor(int), getPredefinedCursor): Throw exception if argument
3452 2001-01-03 Tom Tromey <tromey@redhat.com>
3454 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
3455 (getLocationOnScreen): Wrote.
3457 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
3459 * Makefile.am: Re-enable dependencies.
3460 * Makefile.in: Rebuilt.
3462 2001-01-10 Warren Levy <warrenl@redhat.com>
3464 * java/math/BigDecimal.java (divide): Fixed comment.
3466 2001-01-10 Warren Levy <warrenl@redhat.com>
3468 Fix for PR libgcj/1596:
3469 * java/math/BigDecimal.java (divide): Check newScale for validity.
3470 Ensure that BigInteger.pow() is called with a non-negative value.
3471 (setScale (int)): New public method.
3472 (setScale (int,int)): New public method.
3474 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
3476 Fix for PR libgcj/1338:
3477 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
3478 commentChar. Fixed typos in comments.
3480 2001-01-08 Warren Levy <warrenl@redhat.com>
3482 Fix for PR libgcj/1411:
3483 * Makefile.am: Removed java/util/natTimeZone.cc.
3484 * Makefile.in: Rebuilt.
3485 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
3486 missing localized timezone names.
3487 * java/lang/System.java (getDefaultTimeZoneId): New private method.
3488 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
3489 (init_properties): Set user.timezone property.
3490 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3491 default timezone names; removed non-standard ones. Use standard
3493 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
3495 * java/util/TimeZone.java: Add standard ID names per JCL; removed
3497 (getDefaultTimeZoneId): Removed.
3499 * java/util/natTimeZone.cc: Removed.
3501 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3503 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
3504 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
3505 (_Jv_GetArrayClass): New inline function.
3506 (arrayclass): New field.
3507 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
3508 _Jv_GetArrayElementFromElementType.
3509 (_Jv_NewPrimArray): Ditto.
3510 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
3511 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
3512 Set Modifier::ABSTRACT.
3513 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
3514 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
3515 Now synchronized. Array classes are now referenced from
3516 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
3517 Set array classes' accessibility flags correctly. Optimize so that
3518 all array classes share the same IDT.
3519 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
3520 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
3521 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
3522 in superclasses from overwriting classes own fields.
3523 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
3524 Modifier::isAbstract().
3525 (null_idt): New static field.
3526 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
3528 (_Jv_IndexOf): Made inline.
3529 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
3531 2001-01-08 Tom Tromey <tromey@redhat.com>
3533 Fix for PR java/1586:
3534 * Makefile.in: Rebuilt.
3535 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
3537 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3539 * Makefile.am: Use the new "-M -MF" option for generating dependencies
3540 from the c++ compiler.
3541 * Makefile.in: Rebuilt.
3543 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
3545 All files with updated copyright.
3546 * prims.cc (class _Jv_PrimClass): Removed.
3547 (init_prim_class): New function.
3548 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
3549 `_Jv_PrimClass' in primitive type declarations. Assign to the
3550 value returned by `init_prim_class.'
3551 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
3552 primitive type declarations.
3553 (JvPrimClass): Cast to `jclass' removed.
3554 * java/lang/Class.h (Class): New constructor.
3555 (Class): New copy constructor.
3556 (initializePrim): New prototype.
3557 (_Jv_PrimClass): Field removed.
3558 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
3559 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
3560 (class java::lang::Object): `finalize' moved up front.
3561 * java/lang/natClass.cc
3562 (isAssignableFrom): Turned outline.
3563 (isInstance): Likewise.
3564 (isInterface): Likewise, fixed indentation.
3565 (initializePrim): New function.
3567 2001-01-07 Anthony Green <green@redhat.com>
3569 * Makefile.am (texinfo): Add texinfo target for generating texinfo
3571 * Makefile.in: Rebuilt.
3573 * scripts/TexinfoDoclet.java: New file.
3575 * doc/java-applet.texi, doc/java-lang-reflect.texi,
3576 doc/java-awt-color.texi, doc/java-lang.texi,
3577 doc/java-awt-datatransfer.texi, doc/java-math.texi,
3578 doc/java-awt-event.texi, doc/java-net.texi,
3579 doc/java-awt-geom.texi, doc/java-security-spec.texi,
3580 doc/java-awt-image.texi, doc/java-security.texi,
3581 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
3582 doc/java-text.texi, doc/java-beans-beancontext.texi,
3583 doc/java-util-jar.texi, doc/java-beans.texi,
3584 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
3585 doc/java-lang-ref.texi: New files.
3587 2001-01-07 Anthony Green <green@redhat.com>
3589 * java/net/URLConnection.java (setDoOutput): URLConnection's may
3590 be used for both input and output, so don't clear doInput.
3592 * java/lang/StringBuffer.java: Fix comments.
3594 2001-01-06 Anthony Green <green@redhat.com>
3596 * java/beans/PropertyDescriptor.java: Fix comment.
3597 * java/io/PushbackReader.java: Fix comment.
3598 * java/io/ObjectStreamClass.java: Fix comment.
3599 * java/io/DataInputStream.java: Fix comment.
3600 * java/io/PipedInputStream.java: Fix comments.
3601 * java/io/PipedReader.java: Fix comments.
3602 * java/sql/DatabaseMetaData.java: Fix comments.
3604 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
3606 * java/io/PipedReader: Synchronize on "lock" instead of this.
3608 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
3610 * java/lang/Thread.java: Update comment.
3612 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
3613 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
3614 * java/io/PipedReader: New implementation based on new
3616 * java/io/PipedWriter: Updated to match new PipedReader.
3618 2001-01-03 Tom Tromey <tromey@redhat.com>
3620 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
3621 (getViewportSize): Insets include scrollbar size.
3622 (doLayout): Finished.
3623 (getScrollPosition): Wrote.
3624 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
3626 2001-01-02 Tom Tromey <tromey@redhat.com>
3628 * java/awt/ScrollPane.java: Wrote.
3629 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
3632 * java/awt/Panel.java (Panel()): Fixed.
3634 * java/awt/Component.java (isShowing): Return false if no peer
3635 exists, and true if component is visible and no parent exists.
3636 (getLocationOnScreen): Wrote.
3637 (getPreferredSize): Removed FIXME comment.
3638 (getMinimumSize): Likewise.
3639 (getAlignmentX, getAlignmentY): Wrote.
3641 (requestFocus): Wrote.
3642 (transferFocus): Wrote.
3643 (findNextFocusComponent): New method.
3644 (hasFocus()): Wrote.
3645 (checkImage): Wrote.
3646 (enableEvents): Call setEventMask on the peer.
3648 * java/awt/Container.java (list): Use super.list() to print self.
3649 (findNextFocusComponent): New method.
3650 (setLayout): Call invalidate.
3651 (findComponentAt): Wrote.
3653 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
3655 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
3656 the correct versions of various linuxthreads functions get linked.
3657 * Makefile.in: Rebuilt.
3658 * java/lang/natThread.cc (finalize_native): New static function. Call
3659 _Jv_ThreadDestroyData.
3660 (initialize_native): Register finalizer for "data".
3661 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
3662 (_Jv_ThreadDestroyData): New prototype.
3663 * include/win32-threads.h: Ditto.
3664 * include/no-threads.h: Ditto.
3665 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3666 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
3667 move mutex and condition variable destroy code from:
3668 (really_start): ...here.
3669 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
3670 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3671 (_Jv_ThreadDestroyData): Implemented.
3672 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
3673 (_Jv_AllocArray): Ditto.
3675 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
3677 * java/sql/DriverManager.java (getConnection): Don't set user/password
3680 2000-12-27 Warren Levy <warrenl@redhat.com>
3682 Fix for PR libgcj/1358:
3683 * java/lang/System.java: Update Copyright date properly.
3684 * java/util/Calendar.java: Fix typo in comment.
3685 (set): Set 24-hour clock hour instead of 12-hour clock hour.
3686 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
3687 initialize times. Spec says to set H:M:S values to zero only if
3689 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
3690 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
3691 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
3692 timezones and GMT offsets, being careful to account for units of
3693 milliseconds vs. seconds.
3695 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
3697 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3698 not be assigned to Object.
3700 Fix for PR libgcj/1516:
3701 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3703 (can_widen): Declared inline. Remove redundant checks for void
3704 arguments and char->short conversion. Add special case for boolean
3706 (ffi_type): Declared inline.
3707 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3709 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
3711 * java/sql/SQLWarning.java: Fixed typo in comment.
3713 2000-12-26 Tom Tromey <tromey@redhat.com>
3715 * java/awt/MenuItem.java (paramString): Now protected.
3717 * java/awt/MenuShortcut.java: Implements Serializable.
3719 * java/awt/MenuBar.java: Rewrote from scratch.
3721 * java/awt/MenuComponent.java (removeNotify): Wrote.
3722 Implements Serializable.
3724 * java/awt/GridBagConstraints.java (GridBagConstraints): New
3727 * java/awt/CheckboxMenuItem.java: Wrote.
3729 2000-12-25 Tom Tromey <tromey@redhat.com>
3731 * java/awt/MenuContainer.java: Fixed typo.
3733 * Makefile.in: Rebuilt.
3734 * Makefile.am (awt_java_source_files): Added SystemColor.java.
3735 * java/awt/SystemColor.java: New file.
3737 * java/awt/Color.java (rgba): Now package-private.
3739 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3741 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3744 * java/awt/MenuItem.java (addNotify): New method.
3745 (MenuItem(String,MenuShortcut)): New constructor.
3746 (setLabel): Notify peer of change.
3747 (setEnabled): Likewise.
3749 * java/awt/GridLayout.java (toString): New method.
3751 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3752 (FlowLayout): Check for LEADING and TRAILING.
3753 (setAlignment): Likewise.
3754 (layoutContainer): Handle component orientation.
3756 * java/awt/Component.java (orientatin): New field.
3757 (setComponentOrientation): Wrote.
3758 (getComponentOrientation): Wrote.
3760 * java/awt/Event.java (Event): Implements Serializable.
3761 (consumed): New field for serialization.
3762 * java/awt/Dimension.java (Dimension): Implements Serializable.
3763 * java/awt/Cursor.java (Cursor): Implements Serializable.
3764 * java/awt/Container.java (Container): No longer abstract.
3766 * java/awt/Choice.java: Wrote.
3767 * java/awt/Checkbox.java: Wrote.
3768 * java/awt/ItemSelectable.java: Documented.
3769 * java/awt/CheckboxGroup.java: Wrote.
3771 * java/awt/CardLayout.java (layoutContainer): Directly use fields
3773 (getSize): Likewise.
3775 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
3777 * java/io/FileDescriptor.java: Initialize fd to -1.
3778 Remove default constructor.
3780 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
3782 * java/lang/mprec.h: Change C9X reference to refer to C99.
3784 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
3786 * java/lang/Throwable.java (trace_enabled): New static field.
3787 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3788 trace_enabled not set.
3789 * prims.cc (main_init): Turn off trace_enabled while creating
3790 default exception objects.
3792 2000-12-21 Tom Tromey <tromey@redhat.com>
3794 * java/beans/PropertyChangeListener.java: Extends EventListener.
3795 * java/beans/VetoableChangeListener.java: Extends EventListener.
3797 * java/util/zip/Deflater.java (update, init): Now private.
3799 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
3801 * java/util/BasicMapEntry.java: Re-added.
3802 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3803 (putAll): Test for BasicMapEntry.
3804 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3805 (putAll): Test for BasicMapEntry.
3806 Change references from `HashMap.Entry' to `Entry' in various places.
3807 * Makefile.am: Add BasicMapEntry.java.
3808 * Makefile.in: Rebuilt.
3810 2000-12-18 Warren Levy <warrenl@redhat.com>
3812 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3813 need to set timezone to a valid non-null value. Partial fix for
3816 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3818 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3820 * java/awt/Button.java (addNotify): Likewise.
3821 * java/awt/Label.java (addNotify): Likewise.
3822 * java/awt/Panel.java (addNotify): Likewise.
3823 * java/awt/Scrollbar.java (addNotify): Likewise.
3824 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3825 Remove redundant null checks.
3827 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3829 * COPYING: Update to current
3830 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3831 to 19yy as example year in copyright notice).
3833 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3835 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3836 end-of-stream if avail_in is 0.
3838 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3840 * java/util/ArrayList.java (data): Declare transient.
3841 (serialPersistantFields): Removed.
3842 (readObject): Use defaultReadObject(), not readFields().
3843 (writeObject): Use defaultWriteObject(), not writeFields().
3845 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3847 * java/util/Hashtable.java (put): Remove `last' variable.
3848 Link new entry to head of list.
3849 * java/util/HashMap.java (put): Ditto.
3851 2000-12-15 Tom Tromey <tromey@redhat.com>
3853 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3854 loader to Class.forName.
3856 2000-12-14 Tom Tromey <tromey@redhat.com>
3858 * java/util/ResourceBundle.java
3859 (getBundle(String,Locale,ClassLoader)): New method.
3860 (trySomeGetBundle): Added `loader' argument.
3861 (partialGetBundle): Likewise.
3863 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3864 maximumFractionDigits, maximumIntegerDigits,
3865 minimumFractionDigits, minimumIntegerDigits): Now
3868 * java/lang/Thread.java (checkAccess): Now final.
3870 * java/lang/RuntimePermission.java: Class now final.
3872 * java/io/StringWriter.java (StringWriter(int)): Now public.
3874 * java/io/SerializablePermission.java (legal_names): Now private.
3876 * java/lang/Character.java: Updated UnicodeBlock constants.
3877 * scripts/blocks.pl: Special case private use and surrogate
3880 2000-12-12 Tom Tromey <tromey@redhat.com>
3882 * Makefile.in: Rebuilt.
3883 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3885 (GCJCOMPILE): Use it.
3888 2000-12-11 Tom Tromey <tromey@redhat.com>
3890 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3891 New static final fields.
3893 * scripts/classes.pl (scan): Skip lines with leading `*'.
3894 Fix for PR libgcj/378.
3896 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3898 * configure.in: Remove check for -fuse-divide-subroutine.
3899 * configure: Rebuilt.
3901 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3903 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3905 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3907 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3908 Remove BasicMapEntry.java and Bucket.java.
3909 * Makefile.in: Rebuilt.
3910 * java/util/HashMap.java: Rewritten.
3911 * java/util/HashSet.java: Imported from classpath.
3912 * java/util/WeakHashMap.java: Imported from classpath.
3913 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3914 * java/util/Bucket.java: Deleted.
3915 * java/util/BasicMapEntry.java: Deleted.
3916 * java/util/Collections.java (search): Use a for-loop, not iterator
3918 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3919 of elements in source.
3920 (max): Use a for-loop.
3922 (reverse): Keep track of positions instead of using Iterator's
3923 nextIndex() and previousIndex().
3924 (shuffle(List)): Initialize defaultRandom if required using
3925 double-check thread safety idiom. Call two-argument shuffle method
3926 using defaultRandom.
3927 (defaultRandom): New field.
3928 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3929 using previousIndex() and nextIndex().
3930 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3931 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3932 * java/util/AbstractMap.java (toString): Use StringBuffer.
3933 * java/lang/ref/PhantomReference.java: Imported from classpath.
3934 * java/lang/ref/SoftReference.java: Ditto.
3935 * java/lang/ref/Reference.java: Ditto.
3936 * java/lang/ref/WeakReference.java: Ditto.
3937 * java/lang/ref/ReferenceQueue.java: Ditto.
3939 2000-12-10 Richard Henderson <rth@redhat.com>
3941 * configure.host: Recognize alpha*-*, not alphaev6-*.
3943 2000-12-09 Anthony Green <green@redhat.com>
3945 * configure.host: Enable interpreter for Alpha.
3947 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3949 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3950 (ZIP): Points at fastjar instead of zip.
3951 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3952 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3953 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3954 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3955 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3956 ($(x_java_source_files:.java=.class):): Likewise.
3957 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3959 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3960 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3961 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3962 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3963 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3964 gnu/gcj/runtime/VMClassLoader.h:,
3965 java/io/ObjectInputStream$$GetField.h:,
3966 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3967 (Makefile.in): Rebuilt.
3969 2000-12-08 Tom Tromey <tromey@redhat.com>
3972 * configure: Rebuilt.
3973 * configure.in: Use echo, not `:', to create .d files.
3975 2000-12-08 Warren Levy <warrenl@redhat.com>
3977 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3978 NullPointerException so proper check of offset can be done.
3980 2000-12-08 Warren Levy <warrenl@redhat.com>
3982 * java/io/FileInputStream.java (close): Check if the fd is valid.
3983 * java/io/RandomAccessFile.java (close): Ditto.
3984 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3985 * java/net/PlainSocketImpl.java (close): Ditto.
3987 2000-12-06 Tom Tromey <tromey@redhat.com>
3989 * java/awt/GridBagConstraints.java: Filled in values for static
3992 * java/util/BitSet.java: Updated copyright notice.
3994 * Makefile.in: Rebuilt.
3995 * Makefile.am (awt_java_source_files): Added new file.
3996 * java/awt/GridBagConstraints.java: New file.
3998 2000-12-05 Tom Tromey <tromey@redhat.com>
4000 * java/text/Collator.java (decomposeCharacter, decmp, strength):
4001 Now package-private, not protected.
4002 * java/text/DateFormatSymbols.java (equals): Now private.
4003 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
4004 * java/util/BitSet.java: Class no longer final.
4006 2000-12-04 Warren Levy <warrenl@redhat.com>
4008 * java/util/TimeZone.java (getAvailableIDs): Activated commented
4009 out code dependent on compiler and library changes.
4011 2000-12-04 Warren Levy <warrenl@redhat.com>
4013 * java/io/FilePermission.java: Made class final per spec.
4014 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
4015 method name to match spec (fixed typo).
4016 * java/util/LinkedList.java: Implements List.
4018 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
4020 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
4021 Edgar Villanueva <edgarvil@home.com>.
4023 2000-12-03 Tom Tromey <tromey@redhat.com>
4025 * java/awt/geom/Point2D.java: Added protected constructor.
4026 (equals): New method.
4027 (Float.setLocation(float,float)): New method.
4028 * java/awt/geom/Dimension2D.java: Added protected constructor.
4029 * java/awt/geom/AffineTransform.java: Made all constants public.
4030 (concatenate): Fixed typo in name.
4031 * java/awt/event/WindowAdapter.java: Class now abstract.
4032 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
4033 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
4036 * java/awt/AWTError.java: Extend Error, not
4037 IllegalStateException.
4039 * Makefile.in: Rebuilt.
4040 * Makefile.am (awt_java_source_files): Added new file.
4041 * java/awt/geom/RoundRectangle2D.java: New file.
4043 * Makefile.in: Rebuilt.
4044 * Makefile.am (awt_java_source_files): Added new file.
4045 * java/awt/FlowLayout.java: New file.
4047 * Makefile.in: Rebuilt.
4048 * Makefile.am (awt_java_source_files): Added new file.
4049 * java/awt/GridLayout.java: New file.
4051 2000-12-02 Tom Tromey <tromey@redhat.com>
4053 * Makefile.in: Rebuilt.
4054 * Makefile.am (awt_java_source_files): Added new files.
4055 * java/awt/CardLayout.java: New file.
4056 * java/awt/AWTPermission.java: New file.
4058 2000-12-01 Tom Tromey <tromey@redhat.com>
4060 * java/util/Vector.java (insertElementAt): Unconditionally
4061 increment elementCount.
4062 (removeRange): Clear unused slots in vector.
4064 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
4066 * java/lang/natMath.cc: Declare fabsf() function.
4067 * java/lang/mprec.h: Don't include math.h.
4068 * java/lang/dtoa.c: Include string.h.
4069 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
4072 From Adam Welc <welc@cs.purdue.edu>:
4073 * java/util/LinkedList.java (removeFirst): Update `first' field.
4074 Handle the last == first case.
4075 (removeLast): Update `last' field. Handle the last == first case.
4077 2000-12-01 Warren Levy <warrenl@cygnus.com>
4079 * Makefile.am: Added entries for new java.sql modules.
4080 * Makefile.in: Rebuilt.
4082 2000-12-01 Warren Levy <warrenl@cygnus.com>
4084 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
4085 that aren't quite 1.2 compatible yet.
4087 2000-11-30 Warren Levy <warrenl@cygnus.com>
4089 * java/sql/Array.java: New file from classpath.
4090 * java/sql/BatchUpdateException.java: Ditto.
4091 * java/sql/Blob.java: Ditto.
4092 * java/sql/Clob.java: Ditto.
4093 * java/sql/Ref.java: Ditto.
4094 * java/sql/SQLData.java: Ditto.
4095 * java/sql/SQLInput.java: Ditto.
4096 * java/sql/SQLOutput.java: Ditto.
4097 * java/sql/Struct.java: Ditto.
4098 * java/sql/CallableStatement.java: Merged file from claspath.
4099 * java/sql/Connection.java: Ditto.
4100 * java/sql/DataTruncation.java: Ditto.
4101 * java/sql/DatabaseMetaData.java: Ditto.
4102 * java/sql/DriverManager.java: Ditto.
4103 * java/sql/PreparedStatement.java: Ditto.
4104 * java/sql/ResultSet.java: Ditto.
4105 * java/sql/ResultSetMetaData.java: Ditto.
4106 * java/sql/SQLException.java: Ditto.
4107 * java/sql/SQLWarning.java: Ditto.
4108 * java/sql/Statement.java: Ditto.
4109 * java/sql/Types.java: Ditto.
4111 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
4113 * java/lang/natSystem.cc (init_properties): Set user.language and
4115 * configure.in: Check for setlocale.
4116 * configure: Rebuilt.
4117 * include/config.h.in: Rebuilt.
4119 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
4120 the infate() call didn't deliver any output. Throw a ZipException if
4121 the needsDictionary() call returns true.
4122 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
4123 * java/io/InputStreamReader: Use the default buffer size for the
4124 contained BufferedInputStream.
4126 2000-11-28 Warren Levy <warrenl@cygnus.com>
4128 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
4129 more time zone entries.
4130 * java/text/SimpleDateFormat.java (format): Added case for
4133 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
4135 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
4136 directly rather than read() in all cases. Make primitive read
4137 implementations more efficient, as defined in JDK online docs.
4138 (skipBytes): Behave like the JDK's implementation.
4139 * java/io/BufferedReader.java: Merge classpath docs. Check for a
4140 closed stream with checkStatus() whenever an IOException can be
4142 (checkStatus): New private method.
4144 2000-11-27 Warren Levy <warrenl@cygnus.com>
4146 * Makefile.am: Added natTimeZone.cc.
4147 * Makefile.in: Rebuilt.
4148 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
4149 * java/text/DateFormatSymbols.java (ampms): Made package private.
4150 (eras): Made package private.
4151 (months): Made package private.
4152 (shortMonths): Made package private.
4153 (shortWeekdays): Made package private.
4154 (weekdays): Made package private.
4155 (formatPrefixes): New private field.
4156 (localPatternCharsDefault): Made private.
4157 (dateFormats): New package private field.
4158 (timeFormats): New package private field.
4159 (formatsForKey): New private method.
4160 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
4161 (DateFormatSymbols(DateFormatSymbols)): Ditto.
4162 * java/text/SimpleDateFormat.java: Merged with Classpath.
4163 * java/util/TimeZone.java: Merged with Classpath.
4164 * java/util/natTimeZone.cc: New file.
4166 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
4168 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
4169 (addElement): Don't increment elementCount twice. Doh.
4170 * java/util/ArrayList.java (add): Only call ensureCapacity if the
4171 array needs to be expanded.
4173 * java/util/Collections.java (UnmodifiableCollection): Implement
4175 (UnmodifiableList): Throw UnsupportedOperationException from
4176 modification methods. Set `l' from the one-parameter constructor.
4177 (UnmodifiableMap): Implement toString().
4178 (SynchronizedCollection): Ditto.
4179 (SynchronizedList): Set `l' from the one-parameter constructor.
4180 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
4181 (SynchronizedMap): Implement toString().
4183 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
4185 * javax/naming/NameParser.java,
4186 javax/naming/directory/AttributeInUseException.java,
4187 javax/naming/directory/AttributeModificationException.java,
4188 javax/naming/directory/InvalidAttributeIdentifierException.java,
4189 javax/naming/directory/InvalidAttributesException.java,
4190 javax/naming/directory/InvalidAttributeValueException.java,
4191 javax/naming/directory/InvalidSearchControlsException.java,
4192 javax/naming/directory/InvalidSearchFilterException.java,
4193 javax/naming/directory/NoSuchAttributeException.java,
4194 javax/naming/directory/SchemaViolationException.java: New files.
4196 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
4198 * javax/naming/InitialContext.java (rebind): Implement.
4199 (unbind): Implement.
4200 (rename): Implement.
4202 (listBindings): Implement.
4203 (destroySubcontext): Implement.
4204 (createSubcontext): Implement.
4205 (lookupLink): Implement.
4206 (getNameParser): Implement.
4207 (composeName): Implement.
4208 (addToEnvironment): Implement.
4210 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
4212 * javax/naming/AuthenticationException.java,
4213 javax/naming/AuthenticationNotSupportedException.java,
4214 javax/naming/CannotProceedException.java,
4215 javax/naming/CommunicationException.java,
4216 javax/naming/ConfigurationException.java,
4217 javax/naming/ContextNotEmptyException.java,
4218 javax/naming/InsufficientResourcesException.java,
4219 javax/naming/InterruptedNamingException.java,
4220 javax/naming/InvalidNameException.java,
4221 javax/naming/LimitExceededException.java,
4222 javax/naming/LinkException.java,
4223 javax/naming/LinkLoopException.java,
4224 javax/naming/MalformedLinkException.java,
4225 javax/naming/NameAlreadyBoundException.java,
4226 javax/naming/NameNotFoundException.java,
4227 javax/naming/NamingSecurityException.java,
4228 javax/naming/NoPermissionException.java,
4229 javax/naming/NotContextException.java,
4230 javax/naming/PartialResultException.java,
4231 javax/naming/ReferralException.java,
4232 javax/naming/ServiceUnavailableException.java,
4233 javax/naming/SizeLimitExceededException.java,
4234 javax/naming/TimeLimitExceededException.java: New files.
4236 * javax/naming/Name.java (clone): New method.
4237 (compareTo): New method.
4238 (isEmpty): New method.
4239 (getAll): New method.
4240 (getPrefix): New method.
4241 (getSuffix): New method.
4242 (startsWith): New method.
4243 (endsWith): New method.
4244 (addAll): New method.
4245 (addAll): New method.
4248 (remove): New method.
4250 * javax/naming/Context.java (lookup): New method.
4251 (rebind): New method.
4252 (unbind): New method.
4253 (rename): New method.
4255 (listBindings): New method.
4256 (destroySubcontext): New method.
4257 (createSubcontext): New method.
4258 (lookupLink): New method.
4259 (getNameParser): New method.
4260 (composeName): New method.
4261 (addToEnvironment): New method.
4262 (removeFromEnvironment): New method.
4263 (getEnvironment): New method.
4264 (close): New method.
4265 (getNameInNamespace): New method.
4267 * javax/naming/InitialContext.java (lookup): New method.
4268 (rebind): New method.
4269 (unbind): New method.
4270 (rename): New method.
4272 (listBindings): New method.
4273 (destroySubcontext): New method.
4274 (createSubcontext): New method.
4275 (lookupLink): New method.
4276 (getNameParser): New method.
4277 (composeName): New method.
4278 (addToEnvironment): New method.
4279 (removeFromEnvironment): New method.
4280 (getEnvironment): New method.
4281 (close): New method.
4282 (getNameInNamespace): New method.
4284 2000-11-26 Tom Tromey <tromey@cygnus.com>
4286 * Makefile.in: Rebuilt.
4287 * Makefile.am (core_java_source_files): Added
4288 RuntimePermission.java.
4289 * java/lang/RuntimePermission.java: Imported from Classpath.
4290 * java/lang/Thread.java (getContextClassLoader): Now
4291 synchronized. Added security code.
4292 (setContextClassLoader): Likewise.
4294 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
4295 length field of array.
4296 (_Jv_NewPrimArray): Likewise.
4297 * gcj/array.h (__JArray): `length' field now const. Added
4300 2000-11-26 Anthony Green <green@redhat.com>
4302 * javax/naming/spi/NamingManager.java,
4303 javax/naming/spi/ObjectFactory.java,
4304 javax/naming/spi/InitialContextFactory.java,
4305 javax/naming/spi/InitialContextFactoryBuilder.java,
4306 javax/naming/RefAddr.java, javax/naming/Reference.java,
4307 javax/naming/NamingException.java, javax/naming/Context.java,
4308 javax/naming/Referenceable.java,
4309 javax/naming/directory/InitialDirContext.java,
4310 javax/naming/directory/DirContext.java,
4311 javax/naming/directory/Attributes.java,
4312 javax/naming/directory/Attribute.java,
4313 javax/naming/StringRefAddr.java,
4314 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
4315 javax/naming/InitialContext.java,
4316 javax/naming/NoInitialContextException.java: New files.
4318 2000-11-25 Anthony Green <green@redhat.com>
4320 * prims.cc (_Jv_NewObjectArray): Undo placement change.
4321 (_Jv_NewPrimArray): Likewise.
4322 * gcj/array.h (__JArray): Undo const change. Removed constructor.
4323 (class JArray): Removed constructor.
4325 * java/lang/Thread.java (context_class_loader): New private data.
4326 (getContextClassLoader): New method.
4327 (setContextClassLoader): New method.
4328 (Thread): Initialize context_class_loader.
4330 * java/net/URLClassLoader.java: Import java.util.Enumeration.
4331 (getResource): Rename to findResource.
4332 (findResource): New method. Used to be getResource.
4333 (getResourceAsStream): Deleted.
4334 (jarFileize): Extracted logic from URLClassLoader constructor into
4335 this new private method.
4336 (addURL): New protected method.
4337 (URLClassLoader): Call jarFileize. Use addElement instead of
4339 (findResources): New method.
4341 * java/lang/ClassLoader.java: Import java.util.Enumeration.
4342 (getResource): Implement correct logic.
4343 (findResource): New method.
4344 (getResources): New method.
4345 (findClass): Create a ClassNotFoundException with the name of the
4346 class rather than nothing at all.
4347 (defineClass) Only throw ClassFormatError.
4349 * java/lang/Class.java (forName): New method.
4350 * java/lang/Class.h (forName): New method.
4351 * java/lang/natClass.cc (forName): New method.
4353 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4355 * java/lang/System.java (setProperties): Only call init_properties()
4356 if properties is null.
4357 (getProperties): Ditto.
4358 (getProperty): Ditto.
4359 (setProperty): Call init_properties if properties are null.
4360 (prop_init): Remove field.
4361 * java/lang/natSystem.cc (init_properties): Synchronize the entire
4362 method. Check for null properties after synchronizing instead of
4363 prop_init flag. Set the properties field last for thread safety.
4365 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
4366 test for gcj.dumpobjects property and enable object stream dumping
4368 (dumpElement): No longer native.
4369 (dumpElementln): Ditto.
4370 (setDump): Do not define.
4371 * java/io/natObjectInputStream.cc (dumpElement): Removed.
4372 (dumpElementln): Removed.
4375 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4377 * configure: Rebuilt.
4378 * Makefile.in: Rebuilt.
4379 * Makefile.am (built_java_source_files): Add Configuration.java.
4380 * configure.in: Add Configuration.java to CONFIG_FILES. Set
4381 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
4382 Create `gnu' directory in the build tree.
4383 * gnu/classpath/Configuration.java.in: New file.
4385 2000-11-24 Tom Tromey <tromey@cygnus.com>
4387 * prims.cc (_Jv_NewObjectArray): Use placement new to create
4389 (_Jv_NewPrimArray): Likewise.
4391 * gcj/array.h (__JArray): `length' field now const. Added
4393 (class JArray): Added constructor.
4395 2000-11-23 Mark Wielaard <mark@klomp.org>
4397 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
4400 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
4402 * java/util/Vector.java: Improve exception messages.
4403 (Vector): Check initialCapacity for IllegalArgumentException.
4404 (tromToSize): Don't check for elementCount == elementData.length
4406 (toArray): Don't try to set null marker if target array is the same
4407 length as the vector.
4409 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
4411 * Makefile.in: Rebuilt.
4412 * Makefile.am (core_java_source_files): Added Collections.java.
4413 * java/util/List.java: Merged from classpath.
4414 * java/util/Vector.java: Ditto.
4415 * java/util/Collections.java: From classpath.
4416 * java/util/ArrayList.java (addAll(Collection)): Call
4417 addAll(int,Collection) instead of duplicating code.
4418 (indexOf): Clean up int initialization.
4419 (clear): Set cleared array entries to null, to allow garbage
4421 * java/util/List.java: Minor formatting fixes.
4422 * java/util/SimpleTimeZone.java: ditto.
4424 2000-11-18 Tom Tromey <tromey@cygnus.com>
4426 * Makefile.in: Rebuilt.
4427 * Makefile.am (core_java_source_files): Added new files.
4428 * java/lang/reflect/ReflectPermission.java: New class.
4429 * java/io/FileFilter.java: From Classpath
4430 * java/io/FilePermission.java: From Classpath.
4432 2000-11-17 Tom Tromey <tromey@cygnus.com>
4434 * java/lang/reflect/AccessibleObject.java (isAccessible,
4435 setAccessible): Now public.
4437 * java/lang/natString.cc: Include Locale.h.
4438 (toUpperCase): Added `locale' argument. Handle locale
4440 (toLowerCase): Added `locale' argument. Handle locale
4442 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
4443 CAPITAL_I): New defines.
4444 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
4447 (toUpperCase, toLowerCase): New methods. Variants which accept
4450 * java/lang/ExceptionInInitializerError.java (printStackTrace):
4453 * java/util/PropertyPermission.java: Re-merged from Classpath.
4455 * java/text/RuleBasedCollator.java (getCollationElementIterator):
4457 * java/text/StringCharacterIterator.java: Reindented.
4458 (setText): New method.
4460 2000-11-17 Mark Wielaard <mark@klomp.org>
4462 Merge with Classpath (changes by Bryce McKinlay)
4463 * java/util/jar/*.java: Reformat all to unofficial standard coding
4464 style. No changes of substance.
4466 2000-11-17 Mark Wielaard <mark@klomp.org>
4468 * java/util/zip/*.java: Javadoc updates.
4470 2000-11-17 Tom Tromey <tromey@cygnus.com>
4472 * java/text/CollationKey.java: Implement Comparable.
4473 (compareTo(Object)): New method.
4474 * java/text/Collator.java (compare(Object,Object)): New method.
4475 Implement Comparator.
4477 * java/util/zip/InflaterInputStream.java (available): New method.
4478 (close): New method.
4479 (read, available, skip, fill): Throw exception if stream closed.
4480 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
4481 getNextEntry): Throw exception if closed.
4483 2000-11-16 Tom Tromey <tromey@cygnus.com>
4485 * java/io/PushbackReader.java: Merged with Classpath.
4486 * java/util/Arrays.java: Updated from Classpath.
4488 * scripts/blocks.pl: New file.
4489 * java/lang/Character.java (Subset): New class.
4490 (UnicodeBlock): New class.
4492 * java/lang/Math.java (toDegrees, toRadians): New methods.
4494 * java/lang/Float.java: Implement Comparable.
4495 (compareTo): New methods.
4496 * java/lang/Double.java: Implement Comparable.
4497 (compareTo): New methods.
4499 2000-11-16 Warren Levy <warrenl@cygnus.com>
4501 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
4503 (listeners): Made transient.
4504 (source): Renamed from 'bean'.
4505 (children): New field for serialization.
4506 (propertyChangeSupportSerializedDataVersion): Ditto.
4507 (serialVersionUID): Ditto.
4508 (writeObject): New serialization method.
4509 (readObject): New serialization method.
4510 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
4512 (listeners): Made transient.
4513 (source): Renamed from 'bean'.
4514 (children): New field for serialization.
4515 (vetoableChangeSupportSerializedDataVersion): Ditto.
4516 (serialVersionUID): Ditto.
4517 (writeObject): New serialization method.
4518 (readObject): New serialization method.
4519 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
4520 to allow constructor to have a return type (i.e. the class that the
4521 constructor constructs).
4523 2000-11-14 Tom Tromey <tromey@cygnus.com>
4525 * Makefile.in: Rebuilt.
4526 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
4529 2000-11-02 Warren Levy <warrenl@cygnus.com>
4531 * java/io/ObjectInputStream.java (readObject): Added code to
4532 conditionally dump out the serialized data.
4533 Handle ENDBLOCKDATA case a bit more gracefully since the current
4534 behavior doesn't seem to work as expected.
4535 (readStreamHeader): Added code for serialized data dumper.
4536 (readNextBlock): Ditto.
4537 (readFields): Ditto.
4538 (dump): New private static field for turning on/off dumper.
4539 (setDump): New native method.
4540 (dumpElement): New native method.
4541 (dumpElementln): New native method.
4542 * java/io/natObjectInputStream.cc (setDump): New method.
4543 (dumpElement): New method.
4544 (dumpElementln): New method.
4546 2000-11-02 Warren Levy <warrenl@cygnus.com>
4548 * java/net/InetAddress.java (addr): Renamed from 'address'.
4549 (address): New field to match Serialized Form doc.
4550 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4551 (family): New serialization field.
4552 (serialVersionUID): New field.
4553 (readObject): New method.
4554 (writeObject): New method.
4555 (getFamily): New native method.
4556 (InetAddress): Set family.
4557 * java/net/natInetAddress.cc (getFamily): New method.
4558 (addr): Renamed from 'address'.
4559 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4560 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
4561 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
4563 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
4565 * java/util/AbstractList.java (SubList): Make it a top-level private
4567 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
4569 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
4570 * Makefile.in: Rebuilt.
4572 2000-11-02 Tom Tromey <tromey@cygnus.com>
4574 * Makefile.in: Rebuilt.
4575 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
4578 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4580 * java/util/AbstractList.java (remove): Comment out modCount increment
4581 to work around compiler bug.
4584 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4586 * java/util/AbstractList.java: Throw messages with
4587 IndexOutOfBoundsExceptions.
4588 (listIterator()): Call listIterator(0).
4589 (size): New field. Initialize to size().
4590 (hasNext): Test position against size, not size().
4591 (remove): Increment knownMod by one instead of resetting it from
4594 (SubList.upMod): Removed.
4595 (SubList.set): Don't call upMod() or update knownMod.
4596 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
4597 (SubList.remove): Ditto.
4598 (SubList.addAll): Don't call backingList.size(). Increment size from
4600 (SubList.iterator): New method. Call listIterator(0).
4601 (SubList.listIterator): New method. Restore code to return an anonymous
4602 listIterator implementation (with some changes).
4603 * java/util/AbstractSequentialList.java: Throw messages with
4604 IndexOutOfBoundsExceptions.
4605 (addAll): Add a specnote.
4606 * java/util/ArrayList.java (removeRange): Get the math right.
4607 (addAll): Increment modCount _before_ creating iterator.
4608 * java/util/LinkedList.java: Rewritten, mostly.
4610 2000-11-01 Tom Tromey <tromey@cygnus.com>
4612 * scripts/encodings.pl: Added `ASCII' alias.
4613 * Makefile.in: Rebuilt.
4614 * Makefile.am (convert_source_files): Added new files.
4615 * gnu/gcj/convert/Input_ASCII.java: New file.
4616 * gnu/gcj/convert/Output_ASCII.java: New file.
4617 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
4618 out-of-range characters.
4619 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
4620 (read): Swap bytes if required. Treat `count' as character count,
4622 (write): Likewise. Also, handle case where iconv fails on a given
4624 (init): Put encoding into exception.
4625 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
4626 (static): Call iconv_init. Rebuilt alias list.
4627 (iconv_init): New private method.
4629 2000-11-01 Tom Tromey <tromey@cygnus.com>
4631 * Makefile.in: Rebuilt.
4632 * Makefile.am (install-exec-hook): Only make a single symlink, and
4633 remove the destination before making the link.
4634 * configure: Rebuilt.
4635 * configure.in: Call AC_PROG_LN_S.
4637 2000-10-31 Warren Levy <warrenl@cygnus.com>
4639 * jni.cc: Added include of java/lang/ThreadGroup.h.
4640 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
4641 per change of 2000-10-05.
4643 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
4645 * java/util/BitSet.java: Updated @specnote.
4647 * java/io/Reader.java: Merge docs from classpath.
4648 (skip): Synchronize on `lock'.
4649 * java/io/FileReader.java: Import correct implementation from
4651 * java/io/StringReader.java: Merge docs from classpath.
4652 (ready): Throw IOException if stream is closed.
4654 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
4656 * java/util/AbstractCollection.java (addAll): Use size() instead of
4657 hasNext() in iterator loop.
4659 (contains): Ditto. Simplify loop.
4660 (containsAll): Ditto.
4665 (toString): Ditto. Use string concatenation operators, not
4667 * java/util/AbstractList.java (addAll): Use size() instead of
4668 hasNext() in iterator loop.
4671 (indexOf): Ditto. Don't take null check outside of the loop.
4672 (iterator): Return an AbstractListItr instead of anonymous class.
4673 (lastIndexOf): Use a for loop bounded by size() instead of
4674 hasPrevious() in iterator loop.
4675 (listIterator): Return an AbstractListItr.
4676 (removeRange): Remove bounds checking code and docs.
4677 (AbstractListItr): New inner class. Code moved here from
4679 (SubList.iterator): Removed. Use default implementation from
4680 AbstractList instead.
4681 (SubList.listIterator): As above.
4682 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
4683 instead of hasNext() in iterator loop.
4684 (containsValue): Ditto.
4690 (toString): Ditto. Use string concatenation operators, not
4692 * java/util/AbstractSequentialList.java (addAll): Use a for loop
4693 bounded by size() instead of hasNext() in iterator loop.
4694 * java/util/AbstractSet.java (hashCode): Don't catch exception as
4695 part of normal execution flow. Do an explicit null check instead.
4696 * java/util/ArrayList.java (_iSize): Rename to `size'.
4697 (_arData): Rename to `data'.
4698 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4701 (removeRange): Make protected. Don't check bounds.
4702 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4704 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4706 (addAll (int, Collection)): Check lower bounds. Simplify exception
4708 (clone): Clone the data array too.
4709 (indexOf): Inline doesEqual().
4710 (lastIndexOf): Ditto.
4711 (clear): Don't set array data to null.
4712 (set): Check lower bounds. Simplify exception string.
4713 (toArray): Correct comment.
4714 (trimToSize): Don't update modCount, this is not a structural change.
4717 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4719 (toString): Declare `bit' as long, not int.
4720 (data): Made package-private, not private.
4722 2000-10-27 Warren Levy <warrenl@cygnus.com>
4724 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4725 array elements to true.
4727 2000-10-27 Warren Levy <warrenl@cygnus.com>
4729 * Makefile.am: Added locale files from Classpath.
4730 * Makefile.in: Rebuilt.
4731 * gnu/java/locale/Calendar.java: New file.
4732 * gnu/java/locale/Calendar_de.java: New file.
4733 * gnu/java/locale/Calendar_en.java: New file.
4734 * gnu/java/locale/Calendar_nl.java: New file.
4735 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4736 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4737 serialization compatibility.
4738 (scale): Made private.
4739 (serialVersionUID): New field.
4740 * java/math/BigInteger.java (ival): Made transient.
4741 (words): Made transient.
4742 (bitCount): New serialization field.
4744 (firstNonzeroByteNum): Ditto.
4745 (lowestSetBit): Ditto.
4748 (serialVersionUID): New field.
4749 (readObject): New method.
4750 (writeObject): New method.
4751 * java/util/BitSet.java (serialVersionUID): New field.
4752 * java/util/Calendar.java: Replaced with Classpath file.
4753 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4754 of getDefault() for TimeZone or Locale instead of passing nulls.
4755 * java/util/Locale.java (serialVersionUID): New field.
4756 (writeObject): New method.
4757 (readObject): New method.
4758 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4760 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
4762 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4763 (core_java_source_files): Put java.lang, java.io, and java.util here.
4764 (ordinary_java_source_files): Order so that core_java_source_files are
4766 (java_source_files): Reorder so that special_java_source_files are
4768 * configure.in: Don't pass -I flag to gcj.
4769 * Makefile.in: Rebuilt.
4770 * configure: Rebuilt.
4772 2000-10-25 Tom Tromey <tromey@cygnus.com>
4774 * Makefile.in: Rebuilt.
4775 * Makefile.am (install-exec-hook): New target.
4777 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
4779 * java/util/EventObject.java: Merged from classpath.
4781 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4784 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4786 * java/util/AbstractSet.java (equals): Re-installed original code.
4788 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4790 * Makefile.am: Added rules for libgcjx library.
4791 * Makefile.in: Rebuilt.
4792 * configure.in: Added check for X.
4793 * configure: Rebuilt.
4794 * gnu/awt/LightweightRedirector.java: New file.
4795 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4796 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4797 * gnu/awt/j2d/Graphics2DImpl.java: New file.
4798 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4799 * gnu/awt/j2d/MappedRaster.java: New file.
4800 * gnu/awt/xlib/XCanvasPeer.java: New file.
4801 * gnu/awt/xlib/XEventLoop.java: New file.
4802 * gnu/awt/xlib/XEventQueue.java: New file.
4803 * gnu/awt/xlib/XFontMetrics.java: New file.
4804 * gnu/awt/xlib/XFramePeer.java: New file.
4805 * gnu/awt/xlib/XGraphics.java: New file.
4806 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4807 * gnu/awt/xlib/XPanelPeer.java: New file.
4808 * gnu/awt/xlib/XToolkit.java: New file.
4809 * gnu/gcj/xlib/Clip.java: New file.
4810 * gnu/gcj/xlib/Colormap.java: New file.
4811 * gnu/gcj/xlib/Display.java: New file.
4812 * gnu/gcj/xlib/Drawable.java: New file.
4813 * gnu/gcj/xlib/Font.java: New file.
4814 * gnu/gcj/xlib/GC.java: New file.
4815 * gnu/gcj/xlib/Pixmap.java: New file.
4816 * gnu/gcj/xlib/Screen.java: New file.
4817 * gnu/gcj/xlib/Visual.java: New file.
4818 * gnu/gcj/xlib/WMSizeHints.java: New file.
4819 * gnu/gcj/xlib/Window.java: New file.
4820 * gnu/gcj/xlib/WindowAttributes.java: New file.
4821 * gnu/gcj/xlib/XAnyEvent.java: New file.
4822 * gnu/gcj/xlib/XButtonEvent.java: New file.
4823 * gnu/gcj/xlib/XColor.java: New file.
4824 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4825 * gnu/gcj/xlib/XConnectException.java: New file.
4826 * gnu/gcj/xlib/XEvent.java: New file.
4827 * gnu/gcj/xlib/XException.java: New file.
4828 * gnu/gcj/xlib/XExposeEvent.java: New file.
4829 * gnu/gcj/xlib/XID.java: New file.
4830 * gnu/gcj/xlib/XImage.java: New file.
4831 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4832 * gnu/gcj/xlib/natClip.cc: New file.
4833 * gnu/gcj/xlib/natColormap.cc: New file.
4834 * gnu/gcj/xlib/natDisplay.cc: New file.
4835 * gnu/gcj/xlib/natDrawable.cc: New file.
4836 * gnu/gcj/xlib/natFont.cc: New file.
4837 * gnu/gcj/xlib/natGC.cc: New file.
4838 * gnu/gcj/xlib/natPixmap.cc: New file.
4839 * gnu/gcj/xlib/natScreen.cc: New file.
4840 * gnu/gcj/xlib/natVisual.cc: New file.
4841 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4842 * gnu/gcj/xlib/natWindow.cc: New file.
4843 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4844 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4845 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4846 * gnu/gcj/xlib/natXColor.cc: New file.
4847 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4848 * gnu/gcj/xlib/natXException.cc: New file.
4849 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4850 * gnu/gcj/xlib/natXImage.cc: New file.
4851 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4852 * java/awt/EventDispatchThread.java: Start thead on creation.
4854 2000-10-20 Tom Tromey <tromey@cygnus.com>
4856 From Arno J. Klaassen:
4857 * interpret.cc: Include <stdlib.h> for alloca.
4858 * defineclass.cc: Include <stdlib.h> for alloca.
4860 * Makefile.in: Rebuilt.
4861 * Makefile.am: Include deps.mk.
4862 (GCJCOMPILE): Added -MD, -MT, and -MF.
4863 ($(javao_files)): Don't depend on libgcj.zip.
4864 (all-recursive): New target.
4865 (%.lo:%.cc): Do dependency tracking.
4866 ($(nat_headers)): Don't depend on libgcj.zip.
4867 * configure: Rebuilt.
4868 * configure.in: Make .d files and deps.mk.
4870 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4872 * exception.cc: Don't #include "exception".
4873 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4875 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4876 * Makefile.in: Updated.
4878 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4880 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4881 * java/awt/peer/ComponentPeer.java (disable): Removed.
4884 (minimumSize): Removed.
4885 (preferredSize): Removed.
4888 * java/awt/peer/ListPeer.java (addItem): Removed.
4890 (minimumSize): Removed.
4891 (preferredSize): Removed.
4892 (setMultipleSelections): Removed.
4893 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4894 (remove): Renamed from removeMenu.
4895 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4897 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4898 (remove): Renamed from removeItem.
4899 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4900 (getMinimumSize): Removed.
4901 (getPreferredSize): Removed.
4902 (minimumSize): Removed.
4903 (preferredSize): Removed.
4904 (replaceText): Removed.
4905 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4906 (preferredSize): Removed.
4907 (getMinimumSize): Removed.
4908 (getPreferredSize): Removed.
4909 (setEchoCharacter): Removed.
4911 2000-10-10 Warren Levy <warrenl@cygnus.com>
4913 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4914 * java/sql/Date.java (serialVersionUID): New field.
4915 * java/sql/Time.java (serialVersionUID): New field.
4916 * java/sql/Timestamp.java (serialVersionUID): New field.
4917 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4918 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4919 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4920 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4921 (readObject): New serialization method.
4922 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4923 (serialVersionOnStream): New field.
4924 (readObject): New serialization method.
4925 (getMonetaryDecimalSeparator): New method.
4926 (setMonetaryDecimalSeparator): New method.
4927 * java/text/NumberFormat.java (maxFractionDigits): New field.
4928 (maxIntegerDigits): New field.
4929 (minFractionDigits): New field.
4930 (minIntegerDigits): New field.
4931 (serialVersionOnStream): New field.
4932 (serialVersionUID): New field.
4933 (readObject): New serialization method.
4934 (writeObject): New serialization method.
4935 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4936 (serialVersionOnStream): New field.
4937 (serialVersionUID): New field.
4938 (readObject): New serialization method.
4940 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4942 * configure.in (GCJ): Avoid bogus error message when looking for
4943 (and not finding) gcj in the build tree.
4944 * configure: Rebuilt.
4946 2000-10-09 Tom Tromey <tromey@cygnus.com>
4948 * configure: Rebuilt.
4949 * configure.in: Include sys/types.h when checking for socklen_t.
4950 From Arno J. Klaassen.
4952 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4954 * include/jvm.h: Enable __builtin_expect().
4956 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4957 the main program. Fix for PR libgcj/341.
4959 2000-10-07 Tom Tromey <tromey@cygnus.com>
4961 * java/util/Properties.java: Merged with Classpath version.
4963 2000-10-05 Tom Tromey <tromey@cygnus.com>
4965 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4966 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4967 * java/lang/Class.h (Object): Added `class$' field.
4968 * java/lang/Object.h (Object): Added `class$' field.
4969 * defineclass.cc (ClassClass): Use `class$' form.
4970 (ClassObject): Likewise.
4971 * resolve.cc (ClassObject): Use `class$' form.
4972 (ObjectClass): Likewise.
4973 * interpret.cc (ClassError): Removed.
4974 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4976 (IntegerClass): Likewise.
4977 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4979 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4980 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4981 SerializableClass): Likewise.
4982 Include Serializable.h, Cloneable.h.
4983 * java/lang/natSystem.cc (SystemClass): Removed.
4984 (init_properties): Use `class$' form.
4985 * java/lang/natObject.cc (CloneableClass): Removed.
4986 (clone): Use `class$' form.
4987 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4988 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4989 ConstructorClass): Likewise.
4990 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4991 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4992 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4993 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4995 (ClassClass): Likewise.
4996 * include/jvm.h (StringClass): Use `class$' form.
4997 * prims.cc (ObjectClass): Removed.
4998 (_Jv_RunMain): Use `class$' form.
4999 (_Jv_AllocObject): Likewise.
5000 * jni.cc (ClassClass): Use `class$' form.
5001 (ThrowableClass): Likewise.
5002 (ObjectClass): Likewise.
5003 (MethodClass): Likewise.
5004 (ThreadGroupClass): Likewise.
5005 (NativeThreadClass): Likewise.
5006 * boehm.cc (ObjectClass): Removed.
5007 (ClassClass): Removed.
5008 (_Jv_MarkObj): Use `class$' form.
5009 * gcj/field.h (JvFieldIsRef): Use `class$' form.
5012 2000-10-05 Warren Levy <warrenl@cygnus.com>
5014 * Makefile.am: Removed java/io/Replaceable.java and
5015 java/io/Resolvable.java.
5016 * Makefile.in: Rebuilt.
5017 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
5019 * java/io/ObjectInputStream.java (processResolution): Fixed typo
5021 (processResolution): Handle readResolve method via reflection with
5022 removal of Resolvable interface.
5023 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
5024 method via reflection with removal of Replaceable interface.
5025 * java/io/Replaceable.java: Removed.
5026 * java/io/Resolvable.java: Removed.
5027 * java/security/Key.java (serialVersionUID): New field.
5028 * java/security/Provider.java (serialVersionUID): New field.
5029 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
5031 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
5033 * java/sql/DataTruncation.java (serialVersionUID): New field.
5034 * java/sql/SQLException.java (serialVersionUID): New field.
5035 * java/sql/SQLWarning.java (serialVersionUID): New field.
5036 * java/util/Date.java (serialVersionUID): New field.
5037 (millis): Made transient.
5038 (readObject): New method.
5039 (writeObject): New method.
5041 2000-10-05 Tom Tromey <tromey@cygnus.com>
5043 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
5045 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
5047 * prims.cc (_Jv_argv, _Jv_argc): New fields.
5048 (JvRunMain): Set _Jv_argv and _Jv_argc.
5049 * java/awt/Component.java: Minor fixes.
5050 * java/awt/Image.java (UndefinedProperty): Initialize final field.
5051 * java/awt/Toolkit.java (systemEventQueue): Removed.
5052 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
5053 * java/awt/Window.java (getToolkit): Don't call super.
5054 * java/awt/image/BufferedImage.java: Fix definite assignment errors.
5055 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
5056 * gnu/awt/gtk/GtkComponentPeer.java: New file.
5057 * gnu/awt/gtk/GtkContainerPeer.java: New file.
5058 * gnu/awt/gtk/GtkFramePeer.java: New file.
5059 * gnu/awt/gtk/GtkMainThread.java: New file.
5060 * gnu/awt/gtk/GtkToolkit.java: New file.
5061 * gnu/awt/gtk/GtkWindowPeer.java: New file.
5062 * gnu/awt/gtk/gtkcommon.cc: New file.
5063 * gnu/awt/gtk/gtkcommon.h: New file.
5064 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
5065 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
5066 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
5067 * gnu/awt/gtk/natGtkMainThread.cc: New file.
5068 * gnu/awt/gtk/natGtkToolkit.cc: New file.
5069 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
5071 2000-09-30 Tom Tromey <tromey@cygnus.com>
5073 * posix-threads.cc (_Jv_CondWait): Check to see if we are
5074 interrupted before modifying the cv's wait set.
5077 2000-09-30 Hans Boehm <boehm@acm.org>
5078 Bryce McKinlay <bryce@albatross.co.nz>
5080 Implement bitmap descriptor based marking for Boehm GC.
5082 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
5083 * configure: Rebuilt.
5084 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
5085 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
5086 method get_finalizer().
5087 (struct _Jv_ArrayVTable): Ditto. Declare method array with
5088 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
5089 (_Jv_AllocObj): Add new jclass parameter.
5090 (_Jv_AllocArray): Ditto.
5091 (_Jv_BuildGCDescr): New prototype.
5092 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
5093 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
5094 get_finalizer() instead of direct finalizer vtable offset.
5095 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
5096 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
5097 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
5098 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
5099 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
5100 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
5101 (_Jv_DetermineVTableIndex): Ditto.
5102 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
5103 calculations to account for new gc_descr field.
5104 * boehm.cc: #include gc_gcj.h.
5105 (obj_kind_x, obj_free_list): `#if 0'-ed away.
5106 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
5107 New commentary from HB. Mark the classes vtable.
5108 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
5109 (GC_DEFAULT_DESCR): New #define.
5110 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
5111 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
5112 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
5113 scan conservativly if size is less than min_heap_addr. Set vtable
5114 pointer of new object before returning.
5115 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
5116 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
5117 allocation for obj_kind_x.
5118 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
5119 (_Jv_AllocObj): Set vtable on returned object.
5120 (_Jv_AllocArray): Ditto.
5121 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
5122 (_Jv_NewPrimArray): Ditto.
5123 (_Jv_AllocObj): Declare as a friend.
5124 (_Jv_AllocArray): Ditto.
5125 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
5126 from &ObjectClass into new array class. Remove offset-by-one
5127 adjustments from `method' size calculations to account for gc_descr
5130 2000-09-26 Tom Tromey <tromey@cygnus.com>
5132 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
5133 `remove', not `add'.
5135 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5137 * java/lang/natSystem.cc (file_encoding): Added return statement.
5139 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5141 * Makefile.am: Re-work shell commands that exceeded command-line
5143 * Makefile.in: Rebuilt.
5145 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
5147 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
5148 * java/lang/natDouble.cc: Likewise.
5149 * java/lang/reflect/natMethod.cc: Likewise.
5150 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
5152 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
5154 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
5156 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
5157 * acinclude.m4: Arrange for automake to not bring in a new
5158 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
5159 * Makefile.am: Leave it up to automake to subst GCJ.
5160 * aclocal.m4, configure, Makefile.in: Rebuilt.
5162 2000-09-13 Tom Tromey <tromey@cygnus.com>
5164 * java/lang/reflect/natArray.cc (BooleanClass): New define.
5165 (get): Ensure Boolean class is initialized.
5166 * java/lang/reflect/natField.cc (BooleanClass): New define.
5167 (get): Ensure Boolean class is initialized.
5169 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
5171 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
5172 Initialize with anonymous class.
5173 (compareToIgnoreCase): New method.
5175 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
5176 (uncaughtException): Set had_uncaught_exception.
5177 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
5178 exit with error status if set.
5179 (_Jv_RunMain): Ditto.
5181 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
5183 * configure: Rebuilt with new ../libtool.m4.
5185 2000-09-11 Tom Tromey <tromey@cygnus.com>
5187 * java/lang/reflect/Field.java (toString): Don't rely on
5190 2000-09-08 Tom Tromey <tromey@cygnus.com>
5192 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
5193 default decoder use iconv.
5194 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
5195 Let default encoder use iconv.
5196 * configure: Rebuilt.
5197 * configure.in: Check for nl_langinfo and <langinfo.h>.
5198 * java/lang/natSystem.cc (file_encoding): New function.
5199 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
5201 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
5203 * acinclude.m4: Simplify the tests for CC and CXX.
5204 * aclocal.m4, configure: Rebuilt.
5206 * acinclude.m4: Include libtool macros from the source tree.
5207 * aclocal.m4, configure: Rebuilt.
5209 2000-09-08 Warren Levy <warrenl@cygnus.com>
5211 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
5212 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
5213 * java/io/File.java (writeObject): Added.
5214 (readObject): Added.
5215 (serialVersionUID): Added.
5216 * java/io/ObjectOutputStream.java (writeObject): Initialized
5217 fieldsAlreadyWritten before recursion rather than after.
5218 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
5219 * java/io/OptionalDataException.java (serialVersionUID): Added.
5220 (OptionalDataException): Made package private.
5221 * java/io/SyncFailedException.java (SyncFailedException): Removed
5222 default constructor to match spec.
5223 * java/lang/Boolean.java (serialVersionUID): Added.
5224 * java/lang/Byte.java (serialVersionUID): Added.
5225 * java/lang/Character.java (serialVersionUID): Added.
5226 * java/lang/Double.java (serialVersionUID): Added.
5227 * java/lang/Float.java (serialVersionUID): Added.
5228 * java/lang/Integer.java (serialVersionUID): Added.
5229 * java/lang/Long.java (serialVersionUID): Added.
5230 * java/lang/Number.java (serialVersionUID): Added.
5231 * java/lang/Short.java (serialVersionUID): Added.
5232 * java/lang/String.java (serialVersionUID): Added.
5233 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
5235 * java/lang/reflect/InvocationTargetException.java
5236 (serialVersionUID): Added.
5237 * java/net/URL.java (handler): Made transient.
5238 (hashCode): Added field for serialization, per spec. and use
5239 cached value if available.
5240 (serialVersionUID): Added.
5241 (URL): Initialize hashCode.
5242 (set): Adjust hashCode.
5243 (readObject): New Method to initialize the protocol handler when
5245 (writeObject): New method.
5246 * java/text/BreakIterator.java: Removed 'implements Serializable'.
5247 * java/text/Collator.java: Removed 'implements Serializable'.
5248 * java/util/GregorianCalendar.java (serialVersionUID): Added.
5249 * java/util/Properties.java (serialVersionUID): Added.
5250 * java/util/Random.java (serialVersionUID): Added.
5251 (seed): Made private.
5252 (nextNextGaussian): Made private.
5253 (haveNextNextGaussian): Made private.
5254 * java/util/Stack.java (serialVersionUID): Added.
5255 * java/util/TimeZone.java (serialVersionUID): Added.
5256 * java/util/Vector.java (serialVersionUID): Added.
5258 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
5260 * Makefile.am (Thread.h): Don't be friends with native threads
5262 * Makefile.in: Rebuilt.
5263 * java/lang/Thread.java (interrupt_flag): Make package-private.
5265 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
5267 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
5268 to avoid long long division.
5270 2000-09-06 Tom Tromey <tromey@cygnus.com>
5272 * java/lang/reflect/Constructor.java (toString): Use `getName' for
5274 * java/lang/reflect/Method.java (toString): Use `getName' for
5277 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
5278 `args' if method takes no parameters.
5280 Fix for PR java.lang/339:
5281 * java/lang/natPosixProcess.cc (fail): New function.
5282 (cleanup): New function.
5283 (startProcess): Use them. Create pipe so child can communicate
5284 exec failure back to parent.
5286 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5288 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
5290 (send): Undo last patch. Remove the label only.
5292 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
5294 * java/net/natInetAdress.cc: Ditto.
5296 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
5298 2000-09-05 Tom Tromey <tromey@cygnus.com>
5300 * doc/cni.sgml: Updated from master copy.
5302 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5304 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
5306 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
5308 * java/lang/fdlibm.h: #undef __P if previously defined.
5309 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
5310 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
5314 2000-09-04 Tom Tromey <tromey@cygnus.com>
5316 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
5319 2000-09-04 Anthony Green <green@redhat.com>
5321 Fix for PR java.io/203:
5322 * java/io/File.java (createTempFile): Obey directory argument.
5323 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
5324 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
5325 variable to set java.io.tmpdir on non-WIN32 systems.
5327 2000-09-04 Anthony Green <green@redhat.com>
5329 * java/io/File.java (deleteOnExit): New method.
5330 * gnu/gcj/runtime/FileDeleter.java: New class.
5331 * java/lang/natRuntime.cc (exit): Call
5332 FileDeleter.deleteOnExitNow()
5333 * Makefile.am: Add FileDeleter.java.
5334 * Makefile.in: Rebuilt.
5336 2000-09-02 Tom Tromey <tromey@cygnus.com>
5338 * Makefile.in: Rebuilt.
5339 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
5340 environment variable.
5342 2000-09-01 Andrew Haley <aph@redhat.com>
5344 * java/io/StreamTokenizer.java: Don't throw a
5345 NumberFormatException if a field is numeric as far as the
5346 StreamTokenizer is concerned but not as far as Double.valueOf() is
5347 concerned: return a zero instead.
5349 2000-08-30 Tom Tromey <tromey@cygnus.com>
5351 * Makefile.in: Rebuilt.
5352 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
5354 2000-08-28 Tom Tromey <tromey@cygnus.com>
5356 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
5357 gnu/gcj/awt/ComponentDataBlitOp.java,
5358 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
5359 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
5360 java/awt/color/ICC_ColorSpace.java,
5361 java/awt/color/ICC_Profile.java,
5362 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
5363 java/awt/image/ComponentColorModel.java,
5364 java/awt/image/ComponentSampleModel.java,
5365 java/awt/image/DataBuffer.java,
5366 java/awt/image/DataBufferByte.java,
5367 java/awt/image/DataBufferInt.java,
5368 java/awt/image/DataBufferUShort.java,
5369 java/awt/image/DirectColorModel.java,
5370 java/awt/image/IndexColorModel.java,
5371 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
5372 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
5373 java/awt/image/SinglePixelPackedSampleModel.java,
5374 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
5375 Removed Latin-1 copyright symbols.
5376 * java/util/zip/ZipFile.java: Indentation fixes.
5378 2000-08-27 Mark Wielaard <mark@klomp.org>
5380 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
5381 constructor, close can delete the file, finalize calls close.
5382 * java/util/jar/JarFile.java: Constructor that takes mode now
5385 2000-08-27 Anthony Green <green@redhat.com>
5387 * java/util/ArrayList.java, java/util/Timer.java,
5388 java/util/LinkedList.java, java/util/TimerTask.java,
5389 java/util/HashMap.java, java/util/AbstractMap.java,
5390 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
5391 java/util/SortedSet.java: Imported from GNU Classpath.
5392 * Makefile.in: Rebuilt.
5393 * Makefile.am: Added new files.
5395 2000-08-26 Anthony Green <green@redhat.com>
5397 * Makefile.in: Rebuilt.
5398 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
5401 * prims.cc: Include ClassLoader.h.
5402 (_Jv_RunMain): When executing jar files, classpath must be the jar
5403 file only. Lose our reference to the system ClassLoader in order
5404 to get a new one with the correct classpath.
5405 * java/lang/natSystem.cc (init_properties): When executing a jar
5406 file, only use the jar file for java.class.path.
5408 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
5409 for bytecode archives.
5411 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
5412 exists, but not Main-Class.
5414 2000-08-23 Mark Wielaard <mark@klomp.org>
5416 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
5417 return -1 when fill() has no more data for the Inflater.
5419 2000-08-23 Mark Wielaard <mark@klomp.org>
5421 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
5422 write(String) already does.
5424 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
5426 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
5427 to `alive_flag', call `init'.
5428 (init): New native method.
5429 * gnu/gcj/jni/natNativeThread.cc (init): New native method
5432 2000-08-21 Mark Wielaard <mark@klomp.org>
5434 * Makefile.in: Rebuilt.
5435 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
5437 (java/lang/reflect/Field.h): Likewise.
5438 (java/lang/reflect/Method.h): Likewise.
5439 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
5442 2000-08-21 Tom Tromey <tromey@cygnus.com>
5444 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
5447 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
5449 * java/lang/natSystem.cc (init_properties): Change sourceware
5450 reference to sources.redhat.com.
5452 * include/java-props.h: Add _Jv_Jar_Class_Path.
5453 * prims.cc: Ditto. Set it from `gij -jar file' option.
5455 * java/lang/natSystem.cc (init_properties): Set java.class.path
5457 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
5459 * java/util/PropertyPermission.java: Import from GNU Classpath.
5460 * Makefile.in: Rebuilt.
5461 * Makefile.am: Add java/util/PropertyPermission.java.
5462 * java/lang/System.java: Add setProperty method.
5464 * gij.cc (main): Add -jar option to execute jar files.
5465 (help): Describe -jar option.
5466 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
5467 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
5468 * gnu/gcj/runtime/FirstThread.java (main): New method.
5470 * java/util/jar/Attributes.java: Correct comment spelling.
5472 2000-08-20 Mark Wielaard <mark@klomp.org>
5474 * java/util/zip/Adler32.java: Make private variables really private
5475 * java/util/zip/CRC32.java: Make private variables really private
5476 * java/util/zip/CheckedInputStream.java: skip() could skip to much
5478 * java/util/zip/InflaterInputStream.java: skip() could skip to
5480 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
5481 * java/util/zip/ZipFile.java: size() new 1.2 method
5482 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
5483 ZipEntry. since 1.2 available() always returns just 1 or 0 when
5486 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
5488 * java/util/jar/JarFile.java: Don't call
5489 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
5492 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
5494 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
5495 Read the entire contents of the class file, not just what is
5498 * java/net/JarURLConnection.java: getEntry doesn't take any
5499 arguments. Return null if element is null.
5501 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
5502 size from the archive, not the inflated size.
5504 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
5505 java.util.zip.ZipFile.getEntry.
5507 * gij.cc (help): Change sourceware reference to
5510 2000-08-19 Tom Tromey <tromey@cygnus.com>
5512 * java/util/zip/ZipInputStream.java (createZipEntry):
5515 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
5517 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
5518 java/util/jar/JarException.java, java/util/jar/JarFile.java,
5519 java/util/jar/JarInputStream.java,
5520 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
5521 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
5522 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
5523 java/security/cert/CRL.java, java/security/cert/CRLException.java,
5524 java/security/cert/Certificate.java,
5525 java/security/cert/CertificateEncodingException.java,
5526 java/security/cert/CertificateException.java,
5527 java/security/cert/CertificateExpiredException.java,
5528 java/security/cert/CertificateFactory.java,
5529 java/security/cert/CertificateFactorySpi.java,
5530 java/security/cert/CertificateNotYetValidException.java,
5531 java/security/cert/CertificateParsingException.java,
5532 java/security/cert/X509CRL.java,
5533 java/security/cert/X509CRLEntry.java,
5534 java/security/cert/X509Certificate.java,
5535 java/security/cert/X509Extension.java: Imported from Classpath.
5536 * java/util/Hashtable.java: Imported from Classpath.
5538 * java/util/zip/ZipInputStream.java: Create stub for
5541 * gcj/javaprims.h: Updated class list.
5543 * Makefile.in, gcj/Makefile.in: Rebuilt.
5544 * Makefile.am (ordinary_java_source_files): Add these new classes.
5546 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5548 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
5549 * gnu/gcj/awt/GLightweightPeer.java: New file.
5550 * java/awt/BorderLayout.java: Implemented all methods.
5551 * java/awt/Button.java (actionListener, actionCommand): Renamed
5552 and modifier change.
5553 (addNotify): Call super.
5554 (dispatchEventImpl): New method.
5555 (getListeners): New method.
5556 (label): Made package-private, not private.
5557 * java/awt/Canvas.java: Implemented class body.
5558 * java/awt/Color.java (brighter): New method.
5559 (darker): New method.
5560 (hashCode): New method.
5561 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
5562 (getGraphicsConfiguration): Delegate to
5563 getGraphicsConfigurationImpl().
5564 (getGraphicsConfigurationImpl): New method.
5565 (getToolkit): Only return value from peer if not null.
5566 (isDisplayable): Check with parent.
5567 (isShowing): No parent implies not showing.
5568 (getForeground): Check parent property if local is null.
5569 (getBackground): Likewise.
5570 (getFont): Likewise.
5571 (setForeground): Inform peer.
5572 (setBackground): Likewise
5573 (setLocale): Invalidate component.
5574 (getColorModel): Implemented.
5575 (setLocation): Invalidate, or ignore if no change.
5576 (setSize): Invalidate, or ignore if no change.
5577 (setBounds): Invalidate, or ignore if no change.
5578 (isOpaque): By default, heavyweight implies opaque.
5579 (isLightweight): Implemented.
5580 (getMaximumSize): Implemented.
5581 (doLayout): Implemented, NOP.
5582 (validate): Implemented, NOP.
5583 (invalidate): Only propagate to parent if parent was valid.
5584 (getGraphics): Implemented.
5585 (getFontMetrics): Implemented.
5586 (update): Implemented.
5587 (paintAll): Implemented.
5588 (repaint): Implemented all repaint methods.
5589 (print): Implemented.
5590 (printAll): Implemented.
5591 (createImage): Implemented.
5592 (dispatchEvent): Give the peer a chance to handle the event.
5593 (dispatchEventImpl): Dispatch paint events.
5594 (enableEvents): Lightweights enable events on parent component.
5595 (coalesceEvents): Coalesce paint events, and select event type
5597 (coalescePaintEvents): New method.
5598 (processEvent): Fix unfortunate ordering of statements, and call
5599 correct method for MOUSE_CLICKED.
5600 (processPaintEvent): New method.
5601 (addNotify): Allow container to notify children before event
5602 mask is set in peer.
5603 (addNotifyContainerChildren): New method.
5604 (removeNotify): Visibility should not change on removeNotify.
5605 (paramString): Implemented.
5606 (list): Implemented two of the list methods.
5607 * Container (myInsets): Removed, insets are managed by peer.
5608 (getInsets): Query peer.
5609 (addImpl): Fix reparenting, enable events for lightweights,
5610 initialize component array.
5611 (validate): Call doLayout in validateTree() instead.
5612 (validateTree): Do nothing if already valid. Call beginValidate(),
5613 endValidate() on peer. Call validateTree() instead of validate()
5614 for children that are containers. Mark valid after validation of
5616 (setFont): Partial implementation.
5617 (paint): Implemented.
5618 (visitChildren): New method.
5619 (visitChild): New method.
5620 (update): Implemented.
5621 (print): Implemented.
5622 (paintComponents): Implemented.
5623 (printComponents): Consider translation and clipping.
5624 (getComponentAt): Ignore invisible children. Return this if no
5626 (addNotify): Call super.
5627 (addNotifyContainerChildren): New method.
5628 (paramString): Implemented.
5629 (list): Implemented.
5630 * java/awt/EventQueue (invokeAndWait): Get system event queue the
5632 (invokeLater): Likewise.
5633 (isDispatchThread): Likewise.
5634 * java/awt/FontMetrics (getLeading): Formula change.
5635 (getDescent): Consider leading also.
5636 (getMaxAscent): Default to getAscent().
5637 (getMaxDescent): Default to getDescent.
5638 (getMaxAdvance): Return value signifying unknown.
5639 (charWidth): Both methods implemented.
5640 (charsWidth): Implemented.
5641 (bytesWidth): Implemented.
5642 (getWidths): Implemented.
5643 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
5645 (Frame): Rearragend constuctor chaining to disallow null being
5646 passed as a graphics configuration.
5647 (getTitle): Return empty string if null.
5649 (getIconImage): New method.
5650 (setIconImage): New method.
5651 (finalize): New method.
5652 (setMenuBar): Notify peer.
5653 (isResizable): New method.
5654 (setResizable): New method.
5655 (getState): New method.
5657 (remove): Implemented.
5658 (removeNotify): New method.
5659 (getFrames): New method.
5660 * java/awt/Graphics.java: Implemented body of class.
5661 * java/awt/Graphics2D.java: New file.
5662 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
5663 * java/awt/Image.java: Implemented body of class.
5664 * java/awt/Panel.java (Panel): Call correct super constructor.
5665 (addNotify): Implemented.
5666 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
5667 * java/awt/RenderingHints.java: New file.
5668 * java/awt/Toolkit.java (createComponent): Implemented.
5669 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
5670 * java/awt/Window.java (Window): Two new constructors. Reordered
5671 constructor chaining.
5672 (getGraphicsConfigurationImpl): New method.
5673 (finalize): Call super.
5674 (addNotify): Call super.
5675 (pack): Do layout stuff.
5676 (show): Ensure that peer exists and that component is valid.
5677 (dispose): Dispose owned children.
5678 (getOwner): Simplify code, casting null pointers is valid.
5679 (getGraphicsConfiguration): Ask peer if local value is null.
5680 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
5682 * java/awt/image/BufferedImage.java: New file.
5683 * java/awt/image/RasterOp.java: New file.
5684 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
5685 More powerful replacement for getColorModel().
5686 (getColorModel) Removed.
5687 (setEventMask) New method.
5688 * Makefile.am: Added new files.
5689 * Makefile.in: Rebuilt.
5691 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
5693 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
5694 (finit_leg_name): New global.
5695 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5696 `$finit$'. This is a backward compatibility hack.
5697 (java::lang::Class::_getMethods): Likewise.
5699 2000-08-15 Andrew Haley <aph@cygnus.com>
5701 * include/jvm.h (_Jv_HashCode): New hash code.
5703 2000-08-15 Tom Tromey <tromey@cygnus.com>
5705 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5707 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
5709 * THANKS: More thanks.
5711 2000-08-10 Tom Tromey <tromey@cygnus.com>
5713 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5715 (connect): Likewise.
5717 (getOption): Likewise.
5718 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5719 case when errno not set.
5722 (receive): Likewise.
5723 (mcastGrp): Likewise.
5724 (setOption): Likewise.
5725 (getOption): Likewise.
5727 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
5728 John Stracke <francis@ecal.com>
5730 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5731 (connect): Don't falsely claim HTTP/1.1 compliance. Call
5733 (disconnect): Don't unset connected flag.
5734 (getHeaderField (String)): Call connect() if not connected.
5735 (getHeaderField (int)): Ditto.
5736 (getHeaderFieldKey): Ditto.
5737 (getHttpHeaders): Don't call connect().
5738 * java/net/HttpURLConnection.java (instanceFollowRedirects,
5739 gotResponseVals): New fields.
5740 (getResponseCode): Call getResponseVals() conditionally.
5741 (getResponseMessage): Ditto.
5742 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5744 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
5746 * Makefile.am: Move beans and applet classes to awt_java_source_files.
5747 * Makefile.in: Rebuilt.
5748 * java/awt/Color.java (getTransparency): New method.
5749 * java/awt/Component.java: Various updates.
5750 * java/awt/Container.java (removeNotify): Call super.removeNotify()
5751 after dealing with children.
5752 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5753 * java/awt/Window.java: Various new methods and updates.
5754 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5756 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5757 * java/awt/event/WindowEvent.java (paramString): Ditto.
5758 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5760 * java/awt/geom/Point2D.java (clone): Ditto.
5761 * java/awt/geom/RectangularShape.java (clone): Ditto.
5762 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5763 isAlphaPremultiplied): Make package-private, not private.
5765 2000-08-08 Tom Tromey <tromey@cygnus.com>
5767 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5768 surrogate characters.
5769 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5771 (write): Correct handling of surrogate characters.
5773 2000-08-07 Tom Tromey <tromey@cygnus.com>
5775 * java/lang/reflect/Method.java (hashCode): Use getName().
5776 (toString): Likewise.
5777 * java/lang/reflect/natMethod.cc (getType): Initialize
5780 * java/lang/reflect/Method.java (toString): Use Class.getName, not
5782 * java/lang/reflect/Field.java (toString): Correct formatting.
5785 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5787 (receive): Streamlined.
5789 2000-08-05 Tom Tromey <tromey@cygnus.com>
5791 * java/io/PrintWriter.java: Merged comments from Classpath.
5792 (printlnUnsynchronized): Removed.
5793 (println()): Print the separator.
5794 (println): Call println(), not printlnUnsynchronized.
5795 (out): Now protected, to match spec.
5797 2000-08-04 Tom Tromey <tromey@cygnus.com>
5799 * java/io/StreamTokenizer.java (TT_NONE): Now private.
5800 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5803 2000-08-03 Warren Levy <warrenl@cygnus.com>
5805 * java/io/ObjectInputStream.java (readFields): Turn off
5806 readDataFromBlock while reading via GetField.
5807 (GetField$1.get(String, Object)): Pass Class of default value to
5809 (getField): Allow for null default values.
5811 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5812 (PutField$1.put): Fixed calls of checkType in most of the put
5813 methods to pass the correct parameter.
5814 (PutField$1.put(String, Object)): Allow for null value arg.
5815 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5818 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5819 typo in spec'ed field name.
5820 (getSerialPersistentFields): Changed spelling of method to match
5821 the correct spelling of the spec'ed field name.
5823 2000-08-03 Tom Tromey <tromey@cygnus.com>
5825 * Makefile.in: Rebuilt.
5826 * Makefile.am (awt_java_source_files): Added new files.
5828 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5830 * Makefile.am: Add new AWT stubs.
5831 * java/awt/Canvas.java: New placeholder class.
5832 * java/awt/Checkbox.java: Ditto.
5833 * java/awt/CheckboxMenuItem.java: Ditto.
5834 * java/awt/Choice.java: Ditto.
5835 * java/awt/Dialog.java: Ditto.
5836 * java/awt/FileDialog.java: Ditto.
5837 * java/awt/List.java: Ditto.
5838 * java/awt/ScrollPane.java: Ditto.
5839 * java/awt/TextField.java: Ditto.
5840 * java/awt/datatransfer/Clipboard.java: Ditto.
5841 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5842 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5843 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5844 Some commented out. Partially implemented.
5845 * java/awt/natToolkit.cc: Removed file.
5847 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5849 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5850 Fixes "make -j" builds.
5851 * Makefile.in: Rebuild.
5853 2000-08-02 Tom Tromey <tromey@cygnus.com>
5855 * Makefile.in: Rebuilt.
5856 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5857 * java/net/natPlainSocketImpl.cc: Include posix.h.
5858 (accept): Use _Jv_select.
5859 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5860 (receive): Use _Jv_select.
5861 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5862 (available): Use _Jv_select.
5863 * java/lang/natSystem.cc: Include posix.h.
5864 (currentTimeMillis): Use _Jv_gettimeofday.
5865 * include/posix.h: New file.
5866 * posix.cc: New file.
5868 * scripts/encodings.pl: New file.
5869 * Makefile.in: Rebuilt.
5870 * Makefile.am (convert_source_files): Added IOConverter.java.
5871 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5873 (getDefaultDecodingClass): Canonicalize default encoding name.
5874 (getEncoder): Likewise.
5875 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5877 (getDefaultDecodingClass): Canonicalize default encoding name.
5878 (getDecoder): Likewise.
5879 * gnu/gcj/convert/IOConverter.java: New file.
5881 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5883 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5884 to match C declaration in ffi.h.
5885 * Makefile.am: Add java/awt/Button.java.
5886 * Makefile.in: Rebuilt.
5888 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5890 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5891 cast of the second argument to `ffi_raw_call' changed to match
5894 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5896 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5897 argument to `ffi_raw_call' changed to match prototype.
5899 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5901 * java/awt/Component.java (toString): Implemented.
5902 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5903 dispatchEvent() to dispatch the event.
5904 (removeImpl): Ditto.
5906 2000-07-30 Anthony Green <green@redhat.com>
5908 * java/awt/Component.java: Add treeLock object.
5909 (getTreeLock): Implement.
5910 (isShowing): Implement.
5912 2000-07-30 Tom Tromey <tromey@cygnus.com>
5914 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5916 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5918 * java/awt/Window.java (addNotify): Wrote.
5919 (addWindowListener): Wrote.
5921 (getWarningString): Wrote.
5922 (processEvent): Wrote.
5923 (processWindowEvent): Wrote.
5924 (removeWindowListener): Wrote.
5925 (show): Call validate(), setVisible().
5929 * java/awt/Toolkit.java (createWindow): Declare.
5931 * java/awt/Frame.java (addNotify): Use getToolkit to find
5934 * java/awt/Component.java (invalidate): Wrote.
5936 (getToolkit): Wrote.
5938 * java/awt/Container.java (addContainerListener): Removed
5940 (removeContainerListener): Likewise.
5942 (add(Component)): Use it.
5943 (add(String,Component)): Likewise.
5944 (add(Component,int)): Likewise.
5945 (add(Component,Object)): Likewise.
5946 (add(Component,Object,int)): Likewise.
5948 (getAlignmentX): Wrote.
5949 (getAlignmentY): Wrote.
5950 (getComponentAt): Wrote.
5951 (getMaximumSize): Wrote.
5952 (invalidate): Wrote.
5953 (list(PrintStream,int)): Wrote.
5954 (list(PrintWriter,int)): Wrote.
5955 (getMinimumSize): Wrote.
5956 (getPreferredSize): Wrote.
5957 (printComponents): Wrote.
5958 (processContainerEvent): Look at containerListener, not
5960 (remove): Added event processing and peer destruction.
5961 (removeAll): Use remove.
5962 (removeNotify): Wrote.
5964 (validateTree): Wrote.
5966 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5967 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5968 * java/awt/Container.java (addNotify): Don't create Container
5970 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5972 2000-07-30 Tom Tromey <tromey@cygnus.com>
5974 * java/awt/Container.java (remove(int)): Wrote.
5975 (remove(Component)): Wrote.
5976 (add(Component)): Wrote.
5977 (add(Component,int)): Wrote.
5979 (addNotify): Set our own peer.
5980 * java/awt/Scrollbar.java (listeners): Changed type.
5981 (Scrollbar): Don't initialize listeners.
5983 (setValue): Call setValues.
5984 (setMinimum): Likewise.
5985 (setMaxPriority): Likewise.
5986 (setVisibleAmount): Likewise.
5988 (setUnitIncrement): Forward to peer.
5989 (setLineIncrement): Call setUnitIncrement.
5990 (setPageIncrement): Call setBlockIncrement.
5991 (setBlockIncrement): Forward to peer.
5992 (addAdjustmentListener): Rewrote.
5993 (removeAdjustmentListener): Rewrote.
5994 (processAdjustmentEvent): Rewrote.
5995 (paramString): Wrote.
5996 * Makefile.in: Rebuilt.
5997 * Makefile.am (awt_java_source_files): Added Button.java.
5998 * java/awt/Button.java: New file.
5999 * java/awt/Toolkit.java (createLabel): Declare.
6000 (createButton): Likewise.
6001 (createScrollbar): Likewise.
6002 (createContainer): Likewise.
6003 * java/awt/Label.java (addNotify): Wrote.
6004 (setAlignment): Call setAlignment in the peer.
6005 (setText): Call setText in the peer.
6007 2000-07-28 Warren Levy <warrenl@cygnus.com>
6009 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
6010 NotSerializableException with just the class name.
6012 2000-07-26 Andrew Haley <aph@cygnus.com>
6014 * interpret.cc (continue1): Insert missing break into switch.
6016 2000-07-28 Warren Levy <warrenl@cygnus.com>
6018 * java/io/ObjectStreamException.java: Made constructors protected.
6020 2000-07-27 Tom Tromey <tromey@cygnus.com>
6022 * java/io/OutputStreamWriter.java (close): Only flush if not
6025 2000-07-27 Warren Levy <warrenl@cygnus.com>
6027 * mauve-libgcj: Activated serialization tests.
6028 * gcj/field.h (getModifiers): Mask off unknown flags.
6029 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
6030 spurious bits don't cause discrepancies.
6031 * java/io/ObjectOutputStream.java: Fixed typo in comment.
6032 * java/io/ObjectStreamClass.java: Fixed typos in comments.
6033 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
6034 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
6035 * java/lang/Throwable.java (serialVersionUID): New field.
6036 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
6037 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
6039 * java/lang/reflect/natMethod.cc: Ditto.
6040 * java/security/Key.java (serialVersionUID): Removed field for now.
6041 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
6042 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
6044 2000-07-22 Tom Tromey <tromey@cygnus.com>
6046 * java/awt/geom/RectangularShape.java (getPathIterator):
6049 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
6051 * libjava/java/awt/image/ColorModel.java: New file, replaces the
6052 stub libjava/java/awt/ColorModel.java which was located in the
6054 * libjava/java/awt/image/ComponentColorModel.java: New file.
6055 * libjava/java/awt/image/ComponentSampleModel.java: New file.
6056 * libjava/java/awt/image/DataBuffer.java: New file.
6057 * libjava/java/awt/image/DataBufferByte.java: New file.
6058 * libjava/java/awt/image/DataBufferInt.java: New file.
6059 * libjava/java/awt/image/DataBufferUShort.java: New file.
6060 * libjava/java/awt/image/DirectColorModel.java: New file.
6061 * libjava/java/awt/image/PackedColorModel.java: New file.
6062 * libjava/java/awt/image/Raster.java: New file.
6063 * libjava/java/awt/image/SampleModel.java: New file.
6064 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
6066 * libjava/java/awt/image/IndexColorModel.java: New file.
6067 * libjava/java/awt/image/ImageConsumer.java: Removed import of
6068 java.awt.ColorModel stub.
6070 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
6071 * gnu/gcj/util/Buffers.java: New file, utility class.
6073 * libjava/Makefile.am: Updated to include new files.
6074 * libjava/Makefile.in: Rebuilt.
6076 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
6078 * java/io/StreamTokenizer.java: Merged with classpath.
6080 2000-07-20 Tom Tromey <tromey@cygnus.com>
6082 * Makefile.in: Rebuilt.
6083 * Makefile.am (awt_java_source_files): Updated for new files.
6084 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
6085 * java/awt/Label.java: New file.
6086 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
6087 (createIntersection, createUnion, getBounds2D): New methods.
6088 * java/awt/Scrollbar.java: New file.
6089 * java/awt/Shape.java: Updated to 1.2.
6090 * java/awt/geom/AffineTransform.java: New file.
6091 * java/awt/geom/Ellipse2D.java: New file.
6092 * java/awt/geom/NoninvertibleTransformException.java: New file.
6093 * java/awt/geom/PathIterator.java: New file.
6094 * java/awt/geom/Rectangle2D.java: New file.
6095 * java/awt/geom/RectangularShape.java: New file.
6096 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
6097 * java/awt/geom/IllegalPathStateException.java: New file.
6099 * scripts/showval.java: New file.
6101 * scripts/classes.pl (scan): Print inner classes properly.
6102 * gcj/javaprims.h: Updated class list.
6104 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
6105 initialize String fields for interpreted classes. Fixes bug
6106 reported by Hans Boehm.
6108 * java/io/File.java (getParentFile): New method, from Classpath
6109 via Oskar Liljeblad.
6111 * java/util/Vector.java (remove(Object)): Implemented.
6113 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
6115 * java/lang/natThrowable.cc (fillInStackTrace): Check for
6116 zero return from backtrace().
6118 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
6120 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
6122 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
6123 before calling notifyAll().
6125 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
6127 Add missing files from last check-in:
6128 * java/awt/image/ImageConsumer.java: New file.
6129 * java/awt/image/ImageProducer.java: New file.
6130 * java/awt/image/ImageObserver.java: New file.
6132 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6134 Merged implementation of java.applet from classpath:
6135 * java/applet/Applet.java: New file.
6136 * java/applet/AppletContext.java: New file.
6137 * java/applet/AppletStub.java: New file.
6138 * java/applet/AudioClip.java: New file.
6140 * Makefile.am: Added new java.applet classes.
6141 * Makefile.in: Rebuilt.
6143 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6146 * java/util/ResourceBundle.java (getLocale): stub.
6147 * Makefile.am: Added new AWT classes.
6148 * Makefile.in: Rebuilt.
6149 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
6150 constructors. Fix toString() and paramString().
6151 * java/awt/AWTEventMulticaster.java: New class. Implemented.
6152 * java/awt/CheckboxGroup.java: New class.
6153 * java/awt/ColorModel.java: New class.
6154 * java/awt/Component.java: Added stubs for most methods. Implemented
6156 * java/awt/Container.java: ditto.
6157 * java/awt/ComponentOrientation.java: New class. Partly implemented.
6158 * java/awt/Cursor.java: ditto.
6159 * java/awt/Event.java: Fix paramString().
6160 * java/awt/EventQueue.java: New class. Implemented.
6161 * java/awt/Font.java: Added additional stub methods. Implemented
6163 * java/awt/FontMetrics.java: New class. Stubbed.
6164 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
6166 * java/awt/Insets.java: New class. Implemented.
6167 * java/awt/Menu.java: Add new methods. Partially implemented.
6168 * java/awt/MenuItem.java: Add new methods and fields. Partially
6170 * java/awt/MenuShortcut.java: New class. Implemented.
6171 * java/awt/Panel.java: New class. Placeholder.
6172 * java/awt/PopupMenu.java: New class. Stubbed.
6173 * java/awt/Rectangle.java: New class. Implemented.
6174 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
6175 * java/awt/event/ActionEvent.java: Implement paramString().
6176 * java/awt/event/AdjustmentEvent.java: Implement paramString().
6177 * java/awt/event/ComponentEvent.java: Implement paramString().
6178 * java/awt/event/ContainerEvent.java: Implement paramString().
6179 * java/awt/event/FocusEvent.java: Implement paramString().
6180 * java/awt/event/HierarchyBoundsAdapter.java: New class.
6181 * java/awt/event/HierarchyBoundsListener.java: New class.
6182 * java/awt/event/HierarchyEvent.java: New class.
6183 * java/awt/event/HierarchyListener.java: New class.
6184 * java/awt/event/InputMethodEvent.java: Implement paramString().
6185 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
6186 exception if !catchExceptions.
6187 * java/awt/event/ItemEvent.java: Implement paramString().
6188 * java/awt/event/KeyEvent.java: Implement paramString().
6189 * java/awt/event/MouseEvent.java: Implement paramString().
6190 * java/awt/event/PaintEvent.java: Implement paramString().
6191 * java/awt/event/TextEvent.java: Implement paramString().
6192 * java/awt/event/WindowEvent.java: Implement paramString().
6194 AWT Peer interfaces:
6195 * java/awt/peer/ButtonPeer.java: New file.
6196 * java/awt/peer/ListPeer.java: New file.
6197 * java/awt/peer/CanvasPeer.java: New file.
6198 * java/awt/peer/MenuBarPeer.java: New file.
6199 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
6200 * java/awt/peer/MenuComponentPeer.java: New file.
6201 * java/awt/peer/CheckboxPeer.java: New file.
6202 * java/awt/peer/MenuItemPeer.java: New file.
6203 * java/awt/peer/ChoicePeer.java: New file.
6204 * java/awt/peer/MenuPeer.java: New file.
6205 * java/awt/peer/ComponentPeer.java: Implemented.
6206 * java/awt/peer/PanelPeer.java: New file.
6207 * java/awt/peer/ContainerPeer.java: Implemented.
6208 * java/awt/peer/PopupMenuPeer.java: New file.
6209 * java/awt/peer/DialogPeer.java: New file.
6210 * java/awt/peer/ScrollPanePeer.java: New file.
6211 * java/awt/peer/FileDialogPeer.java: New file.
6212 * java/awt/peer/ScrollbarPeer.java: New file.
6213 * java/awt/peer/FontPeer.java: New file.
6214 * java/awt/peer/TextAreaPeer.java: New file.
6215 * java/awt/peer/FramePeer.java: Implemented.
6216 * java/awt/peer/TextComponentPeer.java: New file.
6217 * java/awt/peer/LabelPeer.java: New file.
6218 * java/awt/peer/TextFieldPeer.java: New file.
6219 * java/awt/peer/LightweightPeer.java: New file.
6220 * java/awt/peer/WindowPeer.java: Implemented.
6222 2000-07-06 Tom Tromey <tromey@cygnus.com>
6224 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
6225 Initialize static final String fields.
6227 2000-07-03 Tom Tromey <tromey@cygnus.com>
6229 * java/io/PrintWriter.java (print): Call write(String), not
6230 print(String). See PR libgcj/277.
6231 (print(String)): Use write, not out.write.
6233 2000-06-30 Tom Tromey <tromey@cygnus.com>
6235 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
6237 2000-06-27 Andrew Haley <aph@cygnus.com>
6239 * java/io/File.java (createTempFile): Close the FileDescriptor
6240 used to create a temp file. Fixes some of PR 203.
6241 * java/io/natFileDescriptorPosix.cc (open): Call garbage
6242 collection if we run out of file handles.
6244 2000-06-28 Warren Levy <warrenl@cygnus.com>
6246 * gnu/java/security/provider/Gnu.java: New file.
6247 * gnu/java/security/provider/SHA.java: New file.
6248 * gnu/java/security/provider/SHA1PRNG.java: New file.
6249 * Makefile.am: Added the above files.
6250 * Makefile.in: Rebuilt.
6252 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
6254 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
6256 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
6257 (destroyed_flag): Removed.
6258 (isDestroyed, removeGroup, removeThread): Test for parent == null.
6259 (activeCount): Added spec note.
6261 2000-06-27 Warren Levy <warrenl@cygnus.com>
6263 * java/security/Principal.java: New file.
6264 * Makefile.am: Added Principal.java.
6265 * Makefile.in: Rebuilt.
6267 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
6269 * java/awt/event/MouseEvent.java: Fixed coordinate space
6272 2000-06-27 Tom Tromey <tromey@cygnus.com>
6274 * java/io/PushbackInputStream.java (read): If there are characters
6275 in the buffer, don't also call super.read().
6276 * java/io/PushbackReader.java (read): If there are characters in
6277 the buffer, don't also call super.read().
6279 * java/lang/Double.java (valueOf): Call parseDouble().
6281 2000-06-26 Warren Levy <warrenl@cygnus.com>
6283 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
6284 (newVal): Renamed to newValue.
6285 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
6286 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
6287 (revokeNow): Renamed to invalidateRefs.
6288 * java/io/OptionalDataException.java: Updated FIXME.
6289 (eof): New placeholder field.
6291 * java/io/WriteAbortedException.java (message): Made transient.
6292 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
6293 * java/lang/Throwable.java (stackTrace): Made transient.
6294 * java/net/InetAddress.java: Made Serializable.
6295 * java/security/KeyPair.java: Made Serializable.
6296 * java/security/Provider.java: Replaced with Classpath version that
6297 implements serialization and proper methods.
6298 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
6299 (limits): Renamed to choiceLimits.
6301 2000-06-24 Tom Tromey <tromey@cygnus.com>
6303 * java/lang/natDouble.cc (parseDouble): Renamed from
6305 * java/lang/Double.java (parseDouble): Renamed from
6306 doubleValueOf. Now public.
6308 2000-06-23 Andrew Haley <aph@cygnus.com>
6310 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
6311 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
6313 2000-06-23 Tom Tromey <tromey@cygnus.com>
6315 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
6316 * java/lang/natDouble.cc: Always include <alloca.h>.
6317 Fix for PR libgcj/267.
6319 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
6321 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
6322 comply with classpath VM spec.
6323 (add(Group)): Rename to addGroup().
6324 * java/lang/Thread.java (Thread): Use addThread().
6325 * java/lang/natThread.cc (finish_): Use removeThread().
6327 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
6329 * java/lang/ThreadGroup.java: Merged with classpath.
6330 * prims.cc (_Jv_RunMain): Don't use `main_group'.
6331 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
6333 * java/lang/Thread.java (Thread): Bootstrap initial thread from
6334 ThreadGroup.root if Thread.currentThread is null. Honour the
6335 ThreadGroup's max priority setting.
6337 2000-06-18 Tom Tromey <tromey@cygnus.com>
6339 * java/lang/natClass.cc (forName): Removed dead code. Initialize
6340 returned class. For PR gcj/260.
6342 2000-06-16 Tom Tromey <tromey@cygnus.com>
6344 Fix for PR libgcj/261:
6345 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
6347 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
6348 argument. (This is a patch from long ago that somehow went
6351 2000-06-15 Tom Tromey <tromey@cygnus.com>
6353 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
6357 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
6359 Fix for PR java.lang/258:
6360 * prims.cc (_Jv_PrimClass): Set state of primitive class to
6361 JV_STATE_DONE, to prevent accidental initialization.
6362 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
6363 _Jv_InterfaceAssignableFrom if target is an interface and source is an
6364 interface or an abstract class. Remove redundant initializeClass calls.
6365 Remove duplicate if_idt test.
6366 (_Jv_InterfaceAssignableFrom): New function.
6367 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
6369 2000-05-31 Tom Tromey <tromey@cygnus.com>
6371 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
6372 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
6373 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
6374 (NUM_OBJECT_METHODS): New define.
6375 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
6376 `array_vtable' parameter. Added assertion.
6377 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
6380 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
6382 * gcj/cni.h: Include <string.h>.
6383 * defineclass.cc: Include <alloca.h>.
6384 * interpret.cc: Ditto.
6385 * gij.cc: Include <stdlib.h>.
6387 2000-05-30 Tom Tromey <tromey@cygnus.com>
6389 * include/name-finder.h: Include <sys/wait.h>.
6390 (_Jv_name_finder::pid): Now of type `pid_t'.
6391 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
6392 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
6395 2000-05-24 Warren Levy <warrenl@cygnus.com>
6397 * java/io/ObjectOutputStream.java (writeObject): Use component type
6398 when writing arrays.
6401 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6403 Fix for PR libgcj/226:
6404 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
6405 since this is an installed header.
6407 Fix for PR libgcj/228:
6408 * java/util/zip/ZipFile (getInputStream): Create inflater with
6411 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
6412 with DataFormatException.
6414 2000-05-20 Tom Tromey <tromey@cygnus.com>
6416 * Makefile.in: Rebuilt.
6417 * Makefile.am (hack1): Removed.
6418 (awto_files): Likewise.
6419 (libgcjawt_la_SOURCES): Likewise.
6420 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6421 (libgcjawt_la_DEPENDENCIES): Likewise.
6422 (libgcjawt_la_LIBADD): Likewise.
6423 (libgcjawt_la_LDFLAGS): Likewise.
6424 (libgcjawt_la_LINK): Likewise.
6425 ($(awt_java_source_files:.java=.class)): Likewise.
6426 (libgcj.zip): Don't depend on AWT files.
6427 (MOSTLYCLEANFILES): Don't include AWT files.
6428 ($(awto_files)): Removed.
6429 (nat_headers): Removed AWT files.
6430 (cond_awt_java_source_files): Removed.
6431 (ordinary_java_source_files): Added awt_java_source_files.
6432 * libgcj.spec.in (*lib): Removed -lgcjawt.
6433 * configure: Rebuilt.
6434 * configure.in: Removed --enable-java-awt option.
6436 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6438 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
6439 (ZipEntry): Copy the `name' field.
6440 (clone): Implement JDK1.2 method.
6441 (setCompressedSize): ditto.
6444 2000-05-19 Tom Tromey <tromey@cygnus.com>
6446 * java/io/BufferedWriter.java: Merged with Classpath.
6447 * java/io/BufferedOutputStream.java: Merged with Classpath.
6449 2000-05-16 Andrew Haley <aph@cygnus.com>
6451 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
6452 build_ia64_frame_state.
6453 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
6456 2000-05-15 Warren Levy <warrenl@cygnus.com>
6458 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
6459 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
6460 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
6461 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
6462 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
6463 * gnu/gcj/beans/editors/FontEditor.java: Removed.
6464 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
6465 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
6466 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
6467 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
6468 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
6469 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
6470 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
6471 * gnu/gcj/beans/editors/StringEditor.java: Removed.
6472 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
6473 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
6474 * gnu/gcj/io/NullOutputStream.java: Removed.
6475 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
6476 * gnu/gcj/lang/ArrayHelper.java: Removed.
6477 * gnu/gcj/lang/ClassHelper.java: Removed.
6478 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
6480 * gnu/java/beans/BeanInfoEmbryo.java: New file.
6481 * gnu/java/beans/EmptyBeanInfo.java: New file.
6482 * gnu/java/beans/ExplicitBeanInfo.java: New file.
6483 * gnu/java/beans/IntrospectionIncubator.java: New file.
6484 * gnu/java/beans/editors/ColorEditor.java: New file.
6485 * gnu/java/beans/editors/FontEditor.java: New file.
6486 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
6487 * gnu/java/beans/editors/NativeByteEditor.java: New file.
6488 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
6489 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
6490 * gnu/java/beans/editors/NativeIntEditor.java: New file.
6491 * gnu/java/beans/editors/NativeLongEditor.java: New file.
6492 * gnu/java/beans/editors/NativeShortEditor.java: New file.
6493 * gnu/java/beans/editors/StringEditor.java: New file.
6494 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
6495 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
6496 * gnu/java/io/NullOutputStream.java: New file.
6497 * gnu/java/io/ObjectIdentityWrapper.java: New file.
6498 * gnu/java/lang/ArrayHelper.java: New file.
6499 * gnu/java/lang/ClassHelper.java: New file.
6500 * gnu/java/lang/reflect/TypeSignature.java: New file.
6502 * Makefile.am: Updated for moving Classpath files from gnu/gcj
6503 namespace back to the original Classpath gnu/java namespace.
6504 * Makefile.in: Rebuilt.
6506 * java/beans/Beans.java: Namespace change.
6507 * java/beans/EventSetDescriptor.java: Namespace change.
6508 * java/beans/Introspector.java: Namespace change.
6509 * java/beans/PropertyEditorManager.java: Namespace change.
6510 * java/io/ObjectInputStream.java: Namespace change.
6511 * java/io/ObjectOutputStream.java: Namespace change.
6512 * java/io/ObjectStreamClass.java: Namespace change.
6513 * java/io/ObjectStreamField.java: Namespace change.
6515 2000-04-21 Warren Levy <warrenl@cygnus.com>
6517 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
6518 now that compiler patch is available.
6519 Removed unneeded System.loadLibrary.
6520 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
6521 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
6523 2000-04-19 Andrew Haley <aph@cygnus.com>
6525 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
6526 and target classes have been initialized.
6528 2000-04-19 Andrew Haley <aph@cygnus.com>
6530 * java/lang/String.java: implement Serializable, Comparable.
6531 (compareTo (Object)): New method.
6533 2000-04-19 Warren Levy <warrenl@cygnus.com>
6535 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
6536 instead of getField to retrieve non-public field.
6537 (getSerialPersistantFields): Ditto.
6539 2000-04-18 Warren Levy <warrenl@cygnus.com>
6541 * mauve-libgcj: Turned off object serialization tests temporarily
6542 due to compiler error.
6544 2000-04-17 Warren Levy <warrenl@cygnus.com>
6546 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
6547 to avoid build problem.
6549 * mauve-libgcj: Turned on object serialization tests.
6551 2000-04-17 Tom Tromey <tromey@cygnus.com>
6553 * libgcj.spec.in (*lib): Added -lgcjawt.
6555 2000-04-17 Andrew Haley <aph@cygnus.com>
6557 * Makefile.am: Add new files:
6558 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
6560 * Makefile.in: Rebuilt.
6562 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
6563 interface that has no implementations.
6564 Check for an attempt to assign an abstract class to an interface.
6566 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
6567 if we fail to find MessageDigest.getInstance ("SHA").
6569 * gnu/gcj/io/SimpleSHSStream.java: New file.
6570 * gnu/gcj/io/natSimpleSHSStream.java: New file.
6571 * gnu/gcj/io/shs.cc: New file.
6572 * gnu/gcj/io/shs.h: new file.
6574 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
6577 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
6578 punctuation from the classname of an array element.
6580 * gcj/javaprims.h: Add SimpleDigestStream.
6582 2000-04-17 Andrew Haley <aph@cygnus.com>
6584 * java/lang/natClass.cc (getPrivateField): Make recursive calls
6585 to getPrivateField for superclasses.
6587 2000-04-14 Andrew Haley <aph@cygnus.com>
6589 * Makefile.am: Add new files:
6590 java/io/ObjectOutputStream$PutField.h,
6591 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
6592 java/io/natObjectOutputStream.cc
6593 * Makefile.in: Rebuilt.
6594 * gcj/Makefile.in: Rebuilt.
6595 * include/Makefile.in: Rebuilt.
6596 * java/lang/Class.h (getPrivateField): New method.
6597 (getPrivateMethod): Ditto.
6598 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
6599 and java::io::ObjectStreamClass our friends.
6600 * java/lang/natClass.cc (getPrivateField): New method.
6601 (getPrivateMethod): Ditto.
6602 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
6603 * gcj/javaprims.h: Add serialization classes.
6604 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
6605 (setByteField): Ditto.
6606 (setCharField): Ditto.
6607 (setDoubleField): Ditto.
6608 (setFloatField): Ditto.
6609 (setIntField): Ditto.
6610 (setLongField): Ditto.
6611 (setShortField): Ditto.
6612 (setObjectField): Ditto.
6613 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
6615 (getByteField): Ditto.
6616 (getCharField): Ditto.
6617 (getDoubleField): Ditto.
6618 (getFloatField): Ditto.
6619 (getIntField): Ditto.
6620 (getLongField): Ditto.
6621 (getShortField): Ditto.
6622 (getObjectField): Ditto.
6623 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
6625 (getSerialPersistantFields): Ditto.
6626 (getDefinedSUID): Ditto.
6627 * java/io/natObjectOutputStream.cc: New file.
6628 * java/io/natObjectInputStream.cc: New file.
6630 2000-04-13 Warren Levy <warrenl@cygnus.com>
6632 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
6633 problems. Revert to previous version to reproduce and when fixed.
6635 2000-04-13 Warren Levy <warrenl@cygnus.com>
6637 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
6638 * gnu/gcj/io/NullOutputStream.java: New file.
6639 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
6640 * java/io/BlockDataException.java: New file.
6641 * java/io/Externalizable.java: New file.
6642 * java/io/InvalidClassException.java: New file.
6643 * java/io/InvalidObjectException.java: New file.
6644 * java/io/NotActiveException.java: New file.
6645 * java/io/NotSerializableException.java: New file.
6646 * java/io/ObjectInput.java: New file.
6647 * java/io/ObjectInputStream.java: New file.
6648 * java/io/ObjectInputValidation.java: New file.
6649 * java/io/ObjectOutput.java: New file.
6650 * java/io/ObjectOutputStream.java: New file.
6651 * java/io/ObjectStreamClass.java: New file.
6652 * java/io/ObjectStreamConstants.java: New file.
6653 * java/io/ObjectStreamField.java: New file.
6654 * java/io/Replaceable.java: New file.
6655 * java/io/Resolvable.java: New file.
6656 * java/io/SerializablePermission.java: New file.
6657 * java/io/WriteAbortedException.java: New file.
6658 * java/security/BasicPermission.java: New file.
6659 * java/security/DigestOutputStream.java: New file.
6660 * java/security/Guard.java: New file.
6661 * java/security/Permission.java: New file.
6662 * java/security/PermissionCollection.java: New file.
6663 * Makefile.am: Added above files.
6664 * Makefile.in: Rebuilt.
6666 * java/beans/Beans.java (instantiate): Activated serialization code.
6667 * java/lang/SecurityManager.java (checkPermission): New method.
6669 2000-04-12 Warren Levy <warrenl@cygnus.com>
6671 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
6672 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
6673 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
6674 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
6675 * gnu/gcj/beans/editors/ColorEditor.java: New file.
6676 * gnu/gcj/beans/editors/FontEditor.java: New file.
6677 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
6678 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
6679 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
6680 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
6681 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
6682 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
6683 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
6684 * gnu/gcj/beans/editors/StringEditor.java: New file.
6685 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
6686 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
6687 * gnu/gcj/lang/ArrayHelper.java: New file.
6688 * gnu/gcj/lang/ClassHelper.java: New file.
6689 * java/beans/BeanDescriptor.java: New file.
6690 * java/beans/BeanInfo.java: New file.
6691 * java/beans/Beans.java: New file.
6692 * java/beans/Customizer.java: New file.
6693 * java/beans/DesignMode.java: New file.
6694 * java/beans/EventSetDescriptor.java: New file.
6695 * java/beans/FeatureDescriptor.java: New file.
6696 * java/beans/IndexedPropertyDescriptor.java: New file.
6697 * java/beans/IntrospectionException.java: New file.
6698 * java/beans/Introspector.java: New file.
6699 * java/beans/MethodDescriptor.java: New file.
6700 * java/beans/ParameterDescriptor.java: New file.
6701 * java/beans/PropertyChangeEvent.java: New file.
6702 * java/beans/PropertyChangeListener.java: New file.
6703 * java/beans/PropertyChangeSupport.java: New file.
6704 * java/beans/PropertyDescriptor.java: New file.
6705 * java/beans/PropertyEditor.java: New file.
6706 * java/beans/PropertyEditorManager.java: New file.
6707 * java/beans/PropertyEditorSupport.java: New file.
6708 * java/beans/PropertyVetoException.java: New file.
6709 * java/beans/SimpleBeanInfo.java: New file.
6710 * java/beans/VetoableChangeListener.java: New file.
6711 * java/beans/VetoableChangeSupport.java: New file.
6712 * java/beans/Visibility.java: New file.
6713 * java/beans/beancontext/BeanContext.java: New file.
6714 * java/beans/beancontext/BeanContextChild.java: New file.
6715 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6716 * java/beans/beancontext/BeanContextChildSupport.java: New file.
6717 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6718 * java/beans/beancontext/BeanContextEvent.java: New file.
6719 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6720 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6721 * java/beans/beancontext/BeanContextProxy.java: New file.
6722 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6724 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6725 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6727 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6728 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6730 * java/beans/beancontext/BeanContextServices.java: New file.
6731 * java/beans/beancontext/BeanContextServicesListener.java: New file.
6732 * java/util/AbstractCollection.java: New file.
6733 * java/util/AbstractList.java: New file.
6734 * java/util/Arrays.java: New file.
6735 * Makefile.am: Added above files.
6736 * Makefile.in: Rebuilt.
6738 2000-04-11 Warren Levy <warrenl@cygnus.com>
6740 * java/awt/AWTError.java: New file.
6741 * java/awt/AWTEvent.java: New file.
6742 * java/awt/AWTException.java: New file.
6743 * java/awt/ActiveEvent.java: New file.
6744 * java/awt/Adjustable.java: New file.
6745 * java/awt/BorderLayout.java: New file.
6746 * java/awt/Color.java: New file.
6747 * java/awt/Component.java: New file.
6748 * java/awt/Container.java: New file.
6749 * java/awt/Dimension.java: New file.
6750 * java/awt/Event.java: New file.
6751 * java/awt/Font.java: New file.
6752 * java/awt/Frame.java: New file.
6753 * java/awt/Graphics.java: New file.
6754 * java/awt/IllegalComponentStateException.java: New file.
6755 * java/awt/Image.java: New file.
6756 * java/awt/ItemSelectable.java: New file.
6757 * java/awt/LayoutManager.java: New file.
6758 * java/awt/LayoutManager2.java: New file.
6759 * java/awt/Menu.java: New file.
6760 * java/awt/MenuBar.java: New file.
6761 * java/awt/MenuComponent.java: New file.
6762 * java/awt/MenuContainer.java: New file.
6763 * java/awt/MenuItem.java: New file.
6764 * java/awt/Paint.java: New file.
6765 * java/awt/PaintContext.java: New file.
6766 * java/awt/Point.java: New file.
6767 * java/awt/Rectangle.java: New file.
6768 * java/awt/Shape.java: New file.
6769 * java/awt/TextArea.java: New file.
6770 * java/awt/TextComponent.java: New file.
6771 * java/awt/Toolkit.java: New file.
6772 * java/awt/Transparency.java: New file.
6773 * java/awt/Window.java: New file.
6774 * java/awt/natToolkit.cc: New file.
6775 * java/awt/event/AWTEventListener.java: New file.
6776 * java/awt/event/ActionEvent.java: New file.
6777 * java/awt/event/ActionListener.java: New file.
6778 * java/awt/event/AdjustmentEvent.java: New file.
6779 * java/awt/event/AdjustmentListener.java: New file.
6780 * java/awt/event/ComponentAdapter.java: New file.
6781 * java/awt/event/ComponentEvent.java: New file.
6782 * java/awt/event/ComponentListener.java: New file.
6783 * java/awt/event/ContainerAdapter.java: New file.
6784 * java/awt/event/ContainerEvent.java: New file.
6785 * java/awt/event/ContainerListener.java: New file.
6786 * java/awt/event/FocusAdapter.java: New file.
6787 * java/awt/event/FocusEvent.java: New file.
6788 * java/awt/event/FocusListener.java: New file.
6789 * java/awt/event/InputEvent.java: New file.
6790 * java/awt/event/InputMethodEvent.java: New file.
6791 * java/awt/event/InputMethodListener.java: New file.
6792 * java/awt/event/InvocationEvent.java: New file.
6793 * java/awt/event/ItemEvent.java: New file.
6794 * java/awt/event/ItemListener.java: New file.
6795 * java/awt/event/KeyAdapter.java: New file.
6796 * java/awt/event/KeyEvent.java: New file.
6797 * java/awt/event/KeyListener.java: New file.
6798 * java/awt/event/MouseAdapter.java: New file.
6799 * java/awt/event/MouseEvent.java: New file.
6800 * java/awt/event/MouseListener.java: New file.
6801 * java/awt/event/MouseMotionAdapter.java: New file.
6802 * java/awt/event/MouseMotionListener.java: New file.
6803 * java/awt/event/PaintEvent.java: New file.
6804 * java/awt/event/TextEvent.java: New file.
6805 * java/awt/event/TextListener.java: New file.
6806 * java/awt/event/WindowAdapter.java: New file.
6807 * java/awt/event/WindowEvent.java: New file.
6808 * java/awt/event/WindowListener.java: New file.
6809 * java/awt/geom/Dimension2D.java: New file.
6810 * java/awt/geom/Point2D.java: New file.
6811 * java/awt/peer/ComponentPeer.java: New file.
6812 * java/awt/peer/ContainerPeer.java: New file.
6813 * java/awt/peer/FramePeer.java: New file.
6814 * java/awt/peer/WindowPeer.java: New file.
6815 * java/util/Collection.java: New file.
6816 * java/util/Comparator.java: New file.
6817 * java/util/Iterator.java: New file.
6818 * java/util/List.java: New file.
6819 * java/util/ListIterator.java: New file.
6820 * Makefile.am: Added above files.
6821 * Makefile.in: Rebuilt.
6823 2000-04-10 Warren Levy <warrenl@cygnus.com>
6825 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6826 * java/lang/FirstThread.java: Ditto.
6827 * java/lang/StringBuffer.java: Ditto.
6828 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6830 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6831 Special case handled in java.math.BigInteger.
6832 * java/math/BigInteger.java (divide): Handle the special case when
6833 dividing by 1 and the high bit of the dividend is set.
6834 (setShiftRight): Handle case when count == 0.
6836 2000-04-05 Andrew Haley <aph@cygnus.com>
6838 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6841 2000-04-05 Andrew Haley <aph@cygnus.com>
6843 * sysdep/ia64.c (rse_address_add): Delete.
6844 (IS_NaT_COLLECTION_ADDR): Delete.
6845 (ia64_backtrace_helper): check for null unwind_info.
6847 * sysdep/ia64-frame.h: add calc_caller_bsp.
6849 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6852 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6853 (_Jv_remI): Likewise.
6854 (_Jv_divJ): Likewise.
6855 (_Jv_remJ): Likewise.
6857 * interpret.cc (continue1): Use divide subroutines to guarantee
6858 correct Java standard behaviour.
6859 Floating-point division should not abort; make it so.
6861 2000-03-29 Tom Tromey <tromey@cygnus.com>
6863 * configure: Rebuilt.
6864 * configure.in: Test against `libgcj_sjlj', not
6865 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6866 to be set even when using sjlj.
6868 2000-03-24 Andrew Haley <aph@cygnus.com>
6870 * Makefile.am: Add file addr2name.awk.
6871 * Makefile.in: Rebuilt.
6872 * addr2name.awk: New file.
6873 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6875 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6878 2000-03-22 Andrew Haley <aph@cygnus.com>
6880 * configure.host: Add -funwind-tables for IA64.
6881 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6882 * Makefile.in: Rebuilt.
6883 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6884 * sysdep/ia64.c: New file.
6885 * sysdep/ia64-frame.h: New file.
6886 * configure.in: Add sysdep/ia64.c for ia64.
6887 * configure: Rebuilt.
6889 2000-03-17 Andrew Haley <aph@cygnus.com>
6891 * java/lang/natString.cc: Remove `register' keyword.
6892 interpret.cc: ditto.
6894 2000-03-16 Andrew Haley <aph@cygnus.com>
6896 * configure.host (ia64): Enable interpreter.
6898 2000-03-14 Hans Boehm <boehm@acm.org>
6900 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6902 2000-03-14 Andrew Haley <aph@cygnus.com>
6904 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6907 2000-03-10 Andrew Haley <aph@cygnus.com>
6909 * java/lang/ieeefp.h: Import latest version from fdlibm.
6911 2000-03-14 Andrew Haley <aph@cygnus.com>
6913 * prims.cc (_Jv_ThrowSignal): New function.
6914 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6916 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6917 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6918 * include/ppc-signal.h: New file.
6920 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6922 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6923 * java/lang/natThread.java (initialize_native): Cast `data' to
6925 * gnu/gcj/RawData.java: Clarify documentation.
6927 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6928 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6929 `jarFile', not `jarFileURL'.
6931 2000-05-15 Andrew Haley <aph@cygnus.com>
6933 * include/ppc-signal.h: New file.
6935 2000-05-11 Tom Tromey <tromey@cygnus.com>
6937 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6938 file headers, don't include `size' in the skip call.
6940 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6942 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6943 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6945 (replace): Reimplemented. Fix javadoc.
6946 (reverse): Call ensureCapacity_unsynchronized().
6947 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6949 (replace): Calculate length for arraycopy() correctly.
6951 2000-05-09 Tom Tromey <tromey@cygnus.com>
6953 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6955 (insert(int,char[],int,int): New method.
6956 (delete): New method from Classpath.
6957 (deleteCharAt): Likewise.
6958 (substring): Likewise.
6959 (shared): No longer private.
6960 Added JavaDoc comments from Classpath.
6961 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6964 2000-05-07 Tom Tromey <tromey@cygnus.com>
6966 * Makefile.in: Rebuilt.
6967 * Makefile.am (LIBLINK): New macro.
6968 (libgcj_la_LINK): Use it.
6969 (libgcjawt_la_LINK): Likewise.
6971 2000-05-06 Tom Tromey <tromey@cygnus.com>
6973 * Makefile.in: Rebuilt.
6974 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6976 2000-05-05 Tom Tromey <tromey@cygnus.com>
6978 Fix for PR libgcj/220:
6979 * Makefile.in: Rebuilt.
6980 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6981 (jv_convert_LDFLAGS): Likewise.
6982 (libgcj_la_LDFLAGS): Likewise.
6983 (GCJLINK): New macro.
6984 (jv_convert_LINK): Use it.
6985 (gij_LINK): Likewise.
6986 (libgcj_la_LINK): New macro.
6987 (libgcjawt_la_LINK): Likewise.
6989 2000-05-04 Tom Tromey <tromey@cygnus.com>
6991 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6993 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6997 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6999 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
7000 (_Jv_IsAssignableFrom): Ditto.
7001 (_Jv_IsInstanceOf): Ditto.
7002 (_Jv_CheckCast): Ditto.
7003 (_Jv_CheckArrayStore): Ditto.
7004 * java/lang/Class.h (_Jv_InitClass): Ditto.
7005 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
7010 (_Jv_MonitorExit): Ditto.
7011 * boehm.cc (_Jv_MarkObj): Ditto.
7012 (_Jv_MarkObj): Ditto.
7013 (_Jv_MarkArray): Ditto.
7014 * prims.cc (_Jv_AllocObject): Ditto.
7015 (_Jv_NewObjectArray): Ditto.
7016 (_Jv_NewPrimArray): Ditto.
7017 (_Jv_Malloc): Ditto.
7018 (_Jv_Realloc): Ditto.
7019 (_Jv_MallocUnchecked): Ditto.
7025 2000-05-04 Tom Tromey <tromey@cygnus.com>
7027 * java/util/Locale.java (Locale): Don't explicitly check for
7029 * java/util/Hashtable.java (containsKey): Don't explicitly check
7032 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
7034 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
7036 * java/text/StringCharacterIterator.java
7037 (StringCharacterIterator): Don't check for null.
7038 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
7040 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
7041 check for null pointer.
7042 (leaveGroup): Likewise.
7043 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
7045 (setData): Likewise.
7046 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
7049 2000-04-28 Jakub Jelinek <jakub@redhat.com>
7051 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
7052 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
7053 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
7054 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
7055 -rpath for in-gcc builds.
7056 * Makefile.in: Rebuilt.
7058 2000-04-28 Tom Tromey <tromey@cygnus.com>
7060 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
7063 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
7065 * libjava/java/lang/String.java (toString): Remove `final' hack.
7067 2000-04-05 Tom Tromey <tromey@cygnus.com>
7069 Runtime support for PR gcj/2:
7070 * prims.cc (_Jv_ThrowNullPointerException): New function.
7071 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
7073 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
7075 * prims.cc (_Jv_NewObjectArray): Fix typo.
7077 2000-04-26 Tom Tromey <tromey@cygnus.com>
7079 * Makefile.in: Rebuilt.
7080 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
7082 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
7084 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
7087 2000-04-22 Anthony Green <green@cygnus.com>
7089 * include/jvm.h (__builtin_expect): Define as unused for now.
7090 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
7094 (_Jv_MonitorExit): Ditto.
7095 * boehm.cc (_Jv_MarkObj): Ditto.
7096 (_Jv_MarkObj): Ditto.
7097 (_Jv_MarkArray): Ditto.
7098 (_Jv_AllocBytes): Ditto.
7099 * prims.cc (_Jv_AllocObject): Ditto.
7100 (_Jv_NewObjectArray): Ditto.
7101 (_Jv_NewPrimArray): Ditto.
7102 (_Jv_Malloc): Ditto.
7103 (_Jv_Realloc): Ditto.
7104 (_Jv_MallocUnchecked): Ditto.
7110 * include/Makefile.in: Rebuilt.
7111 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
7113 2000-04-21 Tom Tromey <tromey@cygnus.com>
7115 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
7116 Yet another new version from Classpath.
7118 Fix for PR libgcj/15:
7119 * java/util/natGregorianCalendar.cc (_REENTRANT,
7120 _POSIX_PTHREAD_SEMANTICS): Don't define.
7121 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
7122 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
7124 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
7126 * configure: Rebuilt.
7127 * configure.in: If using POSIX threads, define _REENTRANT if
7128 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
7129 GETHOSTBYNAME_R_NEEDS_REENTRANT.
7131 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7132 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
7133 version from Classpath.
7135 Fix for PR libgcj/213:
7136 * Makefile.in: Rebuilt.
7137 * Makefile.am (gij_SOURCES): Added gij.cc.
7138 (EXTRA_gij_SOURCES): Removed.
7139 (gij_LDADD): Removed gij.lo.
7140 (gij_DEPENDENCIES): Likewise.
7141 ($(gij_OBJECTS)): Depend on nat_headers.
7143 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
7144 `setURL', not `url.set'.
7146 2000-04-20 Tom Tromey <tromey@cygnus.com>
7148 Fix for PR java.io/204:
7149 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7150 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
7153 Fix for PR libgcj/212:
7154 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
7155 * include/jvm.h (_Jv_word, _Jv_word2): Define.
7156 * java/lang/Class.h (_Jv_word): Declare.
7158 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
7160 2000-04-19 Tom Tromey <tromey@cygnus.com>
7162 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
7163 doesn't have a loader.
7165 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
7167 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
7168 MAYBE_MARK to ptr_t, for compatibility with new GC version.
7170 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
7172 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
7174 (available): Initialize `where' to prevent bogus compiler warning.
7176 2000-04-12 Tom Tromey <tromey@cygnus.com>
7178 * java/lang/natString.cc (intern): Temporarily disable finalizer
7181 * java/lang/natString.cc (unintern): Added `obj' argument.
7182 (intern): Register finalizer for string.
7183 * java/lang/String.java (unintern): Now static; added obj
7186 2000-04-11 Tom Tromey <tromey@cygnus.com>
7188 * java/util/Vector.java (VectorEnumeration): Now `final'.
7189 * java/util/Hashtable.java (HashtableEntry): Now `final'.
7190 (HashtableEnumeration): Likewise.
7191 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
7192 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
7194 2000-04-10 Warren Levy <warrenl@cygnus.com>
7196 * java/io/ObjectStreamException.java: New file.
7197 * java/io/OptionalDataException.java: New file.
7198 * java/io/StreamCorruptedException.java: New file.
7199 * java/math/BigDecimal.java: New file.
7200 * java/sql/CallableStatement.java: New file.
7201 * java/sql/Connection.java: New file.
7202 * java/sql/DataTruncation.java: New file.
7203 * java/sql/DatabaseMetaData.java: New file.
7204 * java/sql/Date.java: New file.
7205 * java/sql/Driver.java: New file.
7206 * java/sql/DriverManager.java: New file.
7207 * java/sql/DriverPropertyInfo.java: New file.
7208 * java/sql/PreparedStatement.java: New file.
7209 * java/sql/ResultSet.java: New file.
7210 * java/sql/ResultSetMetaData.java: New file.
7211 * java/sql/SQLException.java: New file.
7212 * java/sql/SQLWarning.java: New file.
7213 * java/sql/Statement.java: New file.
7214 * java/sql/Time.java: New file.
7215 * java/sql/Timestamp.java: New file.
7216 * java/sql/Types.java: New file.
7217 * Makefile.am: Added above new files.
7218 * Makefile.in: Rebuilt.
7220 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
7221 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
7222 DatagramSocket constructor instead of null.
7224 2000-04-08 Anthony Green <green@cygnus.com>
7226 * include/posix-threads.h (_Jv_MutexUnlock): Replace
7229 2000-04-08 Anthony Green <green@cygnus.com>
7231 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
7232 (_Jv_MutexUnlock): Ditto.
7233 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
7234 (_Jv_MutexUnlock): Ditto.
7236 2000-04-08 Anthony Green <green@cygnus.com>
7238 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
7239 (ensureCapacity_unsynchronized): New private method.
7240 (append): Use ensureCapacity_unsynchronized.
7242 2000-04-08 Tom Tromey <tromey@cygnus.com>
7244 * Makefile.in: Rebuilt.
7245 * Makefile.am (awt_java_source_files): Added new files.
7246 * java/awt/IllegalComponentStateException.java: New file.
7247 * java/awt/ItemSelectable.java: New file.
7248 * java/awt/event/WindowEvent.java: Finished.
7249 * java/awt/event/TextEvent.java: Finished.
7250 * java/awt/event/ContainerEvent.java: New file.
7251 * java/awt/Component.java (getX, getY): New methods.
7252 * java/awt/event/PaintEvent.java: New file.
7253 * java/awt/event/MouseEvent.java: New file.
7254 * java/awt/ActiveEvent.java: New file.
7255 * java/awt/event/KeyEvent.java: Finished.
7256 * java/awt/event/ItemEvent.java: New file.
7257 * java/awt/Adjustable.java: New file.
7258 * java/awt/event/InputMethodEvent.java: New file.
7259 * java/awt/event/InputEvent.java: Finished.
7260 * java/awt/event/FocusEvent.java: New file.
7261 * java/awt/event/MouseMotionAdapter.java: New file.
7262 * java/awt/event/MouseAdapter.java: New file.
7263 * java/awt/event/KeyAdapter.java: New file.
7264 * java/awt/event/FocusAdapter.java: New file.
7265 * java/awt/event/ContainerAdapter.java: New file.
7266 * java/awt/event/ComponentEvent.java: Finished.
7267 * java/awt/event/AdjustmentEvent.java: New file.
7268 * java/awt/event/ComponentAdapter.java: New file.
7269 * java/awt/event/ActionEvent.java: Finished.
7270 * java/awt/event/MouseMotionListener.java: New file.
7271 * java/awt/event/MouseListener.java: New file.
7272 * java/awt/event/ItemListener.java: New file.
7273 * java/awt/event/InputMethodListener.java: New file.
7274 * java/awt/event/ContainerListener.java: New file.
7275 * java/awt/event/FocusListener.java: New file.
7276 * java/awt/event/ComponentListener.java: New file.
7277 * java/awt/event/AWTEventListener.java: New file.
7278 * java/awt/event/AdjustmentListener.java: New file.
7280 2000-04-08 Anthony Green <green@cygnus.com>
7282 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
7283 check when we have to.
7285 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
7288 * java/util/StringTokenizer.java: Minor optimization. Eliminates
7291 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
7292 inline hasMoreElements.
7294 2000-04-05 Tom Tromey <tromey@cygnus.com>
7296 * configure: Rebuilt.
7297 * configure.in: Recognize --enable-java-awt.
7298 (AWT): New conditional.
7299 * Makefile.in: Rebuilt.
7300 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
7302 (libgcjawt_la_SOURCES): New macro.
7303 (EXTRA_libgcjawt_la_SOURCES): Likewise.
7304 (libgcjawt_la_DEPENDENCIES): Likewise.
7305 (libgcjawt_la_LIBADD): Likewise.
7306 (libgcjawt_la_LDFLAGS): Likewise.
7307 (libgcj.zip): Depend on cond_java_awt_source_files
7308 (cond_awt_java_source_files): New macro.
7309 (MOSTLYCLEANFILES): Added awto_files.
7310 (awto_files): New macro. Use where javao_files used.
7311 (nat_headers): Use cond_awt_java_source_files.
7313 2000-04-04 Tom Tromey <tromey@cygnus.com>
7315 * Makefile.in: Rebuilt.
7316 * Makefile.am (awt_java_source_files): Added AWTException.java.
7317 * java/awt/AWTException.java: New file.
7319 2000-04-03 Tom Tromey <tromey@cygnus.com>
7321 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
7322 commentary from Alex.
7324 * Makefile.in: Rebuilt.
7325 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
7328 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
7330 * configure: Rebuilt.
7331 * configure.in: Add --disable-jvmpi.
7332 * include/config.h.in: Rebuilt.
7333 * acconfig.h: Add ENABLE_JVMPI.
7335 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
7336 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
7337 (_Jv_JVMPI_Notify_THREAD_END): New define.
7338 (_Jv_JVMPI_Notify_THREAD_END): New define.
7339 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
7340 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7341 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7343 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
7346 * java/lang/natThread.cc: Include JVMPI headers if necessary.
7347 (finish_): Generate JVMPI thread end events.
7348 (run_): Generate JVMPI thread start events.
7349 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
7350 preloaded JNI library.
7351 Include JVMPI headers if necessary.
7352 (run): Generate JVMPI thread start events.
7354 * boehm.cc: Define GC_disable and GC_enable.
7355 (_Jv_DisableGC): New function.
7356 (_Jv_EnableGC): New function.
7357 (disable_gc_mutex): Declare.
7358 * nogc.cc (_Jv_DisableGC): New function.
7359 (_Jv_EnableGC): New function.
7361 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
7362 (_Jv_JVMPI_Interface): Define.
7363 (jvmpiEnableEvent): New function.
7364 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
7366 * include/jvmpi.h: New file.
7368 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
7370 * Makefile.in: New #defines and friends for Thread.h.
7371 * Makefile.am: Ditto.
7372 * posix-threads.cc: (struct starter): Remove `object'.
7373 (_Jv_CondWait): Use interruptable condition variables and new
7374 recursive mutexes. New return codes on interrupt or non-ownership
7376 (_Jv_CondNotify): Ditto.
7377 (_Jv_CondNotifyAll): Ditto.
7378 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
7379 the target thread by signaling its wait condition.
7380 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
7381 not the starter struct. Initialize wait_mutex and wait_cond.
7382 (_Jv_MutexLock): New recursive mutex implementation. Moved from
7384 (_Jv_MutexUnlock): Ditto.
7385 (really_start): Set info->data->thread from pthread_self() to work
7386 around a race condition. Destroy wait_mutex and wait_cond when run()
7388 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
7389 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
7391 startable_flag: New private field.
7392 (Thread): Initialize `startable_flag'.
7393 (toString): Check for null thread group.
7394 * java/lang/natThread.cc: (struct natThread): New fields
7395 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
7396 (class locker): Removed.
7397 (initialize_native): Initialize `join_cond' and `join_mutex'.
7398 (interrupt): Now just calls _Jv_ThreadInterrupt().
7399 (join): Simplified. Just wait on the target thread's join condition.
7400 (finish_): Remove join list code. Unset thread group. Signal
7401 potential joiners by notifying the dying threads join_cond.
7402 (start): Check for illegal restarts.
7403 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
7405 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
7406 #defines and #ifdefs.
7407 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
7408 `wait_mutex', `next'.
7409 (struct _Jv_ConditionVariable_t): Define as a struct instead of
7410 directly mapping to pthread_cond_t.
7411 (struct _Jv_Mutex_t): New recursive implementation.
7412 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
7413 _Jv_HaveCondDestroy: Never define this for posix-threads.
7414 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
7415 (_Jv_CondNotifyAll): Ditto.
7416 (_Jv_MutexLock): Ditto.
7417 (_Jv_MutexUnlock): Ditto.
7418 (_Jv_MutexInit): Changed to reflect new mutex implementation.
7419 (_Jv_MutexDestroy): Ditto.
7420 (_Jv_CondDestroy): Removed.
7421 (_Jv_PthreadGetMutex): Removed.
7422 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
7423 error. Add a FIXME about this.
7424 (_Jv_CondNotifyAll): Ditto.
7425 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
7426 _JV_NOT_OWNER on other errors. Add FIXME.
7428 2000-03-26 Tom Tromey <tromey@cygnus.com>
7430 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
7432 (call): Don't throw exception here.
7434 2000-03-26 Tom Tromey <tromey@cygnus.com>
7436 * java/lang/mprec.h: Use SIZEOF_VOID_P.
7437 * interpret.cc: Use SIZEOF_VOID_P.
7438 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
7439 (_Jv_loadLong): Likewise.
7440 (_Jv_storeDouble): Likewise.
7441 * configure: Rebuilt.
7442 * configure.in: Check size of void*.
7444 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
7446 2000-03-26 Hans Boehm <boehm@acm.org>
7448 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
7449 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
7451 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
7452 __IEEE_LITTLE_ENDIAN appropriately on IA64.
7453 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
7454 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
7456 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
7457 (FFI_RAW_SIZE): Likewise.
7458 (_Jv_InterpMethod::ncode): Use them.
7459 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
7460 STORED): Define differently on a 64 bit machine.
7461 (continue1): Use ffi_java_raw_call when appropriate.
7463 2000-03-24 Warren Levy <warrenl@cygnus.com>
7465 * java/math/BigInteger.java(divide): Handle the special case when
7466 dividing by 1 and the high bit of the dividend is set.
7467 (setShiftRight): Handle case when count == 0.
7469 2000-03-24 Warren Levy <warrenl@cygnus.com>
7471 * java/awt/Font.java(isBold): Fix syntax error.
7473 * java/awt/Frame.java(postEvent): ditto.
7474 * java/awt/Menu.java(postEvent): ditto.
7475 * java/awt/MenuBar.java(postEvent): ditto.
7476 * java/awt/Toolkit.java(init): Included a stub.
7478 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7480 * java/awt/Event.java: Add all the event type constants.
7481 (Event): Implemented constructors.
7482 (controlDown): Implemented.
7483 (metaDown): Implemented.
7484 (paramString): Stubbed.
7485 (shiftDown): Implemented.
7486 (toString): Implemented.
7487 (translate): Implemented.
7489 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7491 * java/lang/natClass.cc (isInstance): Initialize `this'.
7492 (isAssignableFrom): Initialize `this' and `klass'.
7493 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
7494 implemented by any loaded class, so return false.
7495 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
7496 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
7498 2000-03-19 Warren Levy <warrenl@cygnus.com>
7500 * java/awt/Color.java: Specified java.io for Serializable.
7501 * java/awt/Toolkit.java: Imported java.net.URL.
7503 2000-03-19 Warren Levy <warrenl@cygnus.com>
7505 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
7507 2000-03-16 Warren Levy <warrenl@cygnus.com>
7509 * java/awt/Color.java: New file.
7510 * java/awt/Graphics.java: New file.
7511 * java/awt/Image.java: New file.
7512 * java/awt/Paint.java: New file.
7513 * java/awt/PaintContext.java: New file.
7514 * java/awt/Transparency.java: New file.
7515 * java/util/Collection.java: New file.
7516 * java/util/Comparator.java: New file.
7517 * java/util/Iterator.java: New file.
7518 * java/util/List.java: New file.
7519 * java/util/ListIterator.java: New file.
7520 * Makefile.am: Added above new files.
7521 * Makefile.in: Rebuilt.
7523 * java/awt/Font.java (PLAIN): New field.
7525 (ITALIC): New field.
7526 (ROMAN_BASELINE): New field.
7527 (CENTER_BASELINE): New field.
7528 (HANGING_BASELINE): New field.
7532 (pointSize): New field.
7533 (Font): Implemented constructor.
7534 (isPlain): Implemented method.
7535 (isBold): Implemented method.
7536 (isItalic): Implemented method.
7537 (getName): Implemented method.
7538 (getStyle): Implemented method.
7539 (getSize): Implemented method.
7540 (getSize2D): Implemented method.
7542 * java/awt/Frame.java (getFont): Stubbed.
7543 (postEvent): Stubbed.
7545 * java/awt/Menu.java (postEvent): Stubbed.
7546 * java/awt/MenuBar.java (getFont): Stubbed.
7547 (postEvent): Stubbed.
7548 * java/awt/Toolkit.java (getImage): Added abstract method.
7550 2000-03-15 Tom Tromey <tromey@cygnus.com>
7552 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
7554 * prims.cc (win32_exception_handler): Reformatted.
7556 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
7557 (_Jv_HaveMutexDestroy): Likewise.
7559 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
7561 * java/io/natFileDescriptorWin32.cc: New file.
7562 * java/io/natFileWin32.cc: New file.
7563 * java/net/natInetAddress.cc: Added conditional inclusion of
7564 Windows / Winsock headers.
7565 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
7566 inclusion of Windows / Winsock headers.
7567 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
7568 Windows / Winsock headers.
7569 * include/win32-signal.h: New file.
7570 * include/win32-threads.h: New file.
7571 * win32-threads.cc: New file.
7572 * exception.cc (win32_get_restart_frame): New function.
7573 * prims.cc (win32_exception_handler): New function.
7574 (main_init) Performs Winsock initialisation.
7575 (main_init) Installs exeception handler.
7577 2000-03-14 Tom Tromey <tromey@cygnus.com>
7579 * jni.cc (mangled_name): Fixed assertion.
7580 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
7581 turned assert into actual failure.
7583 2000-03-09 Warren Levy <warrenl@cygnus.com>
7585 * java/security/Key.java(serialVersionUID): Set to 0 for now.
7586 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
7587 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
7589 2000-03-09 Warren Levy <warrenl@cygnus.com>
7591 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
7592 * java/security/DigestException.java: New file.
7593 * java/security/GeneralSecurityException.java: New file.
7594 * java/security/InvalidAlgorithmParameterException.java: New file.
7595 * java/security/InvalidKeyException.java: New file.
7596 * java/security/InvalidParameterException.java: New file.
7597 * java/security/Key.java: New file.
7598 * java/security/KeyException.java: New file.
7599 * java/security/KeyPair.java: New file.
7600 * java/security/KeyPairGenerator.java: New file.
7601 * java/security/KeyPairGeneratorSpi.java: New file.
7602 * java/security/NoSuchProviderException.java: New file.
7603 * java/security/PrivateKey.java: New file.
7604 * java/security/Provider.java: New file.
7605 * java/security/PublicKey.java: New file.
7606 * java/security/SecureRandom.java: New file.
7607 * java/security/Security.java: New file.
7608 * java/security/Signature.java: New file.
7609 * java/security/SignatureException.java: New file.
7610 * java/security/interfaces/DSAKey.java: New file.
7611 * java/security/interfaces/DSAParams.java: New file.
7612 * java/security/interfaces/DSAPrivateKey.java: New file.
7613 * java/security/interfaces/DSAPublicKey.java: New file.
7614 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
7615 * java/security/interfaces/RSAPrivateKey.java: New file.
7616 * java/security/interfaces/RSAPublicKey.java: New file.
7617 * java/security/spec/AlgorithmParameterSpec.java: New file.
7618 * java/security/spec/InvalidKeySpecException.java: New file.
7619 * java/security/spec/InvalidParameterSpecException.java: New file.
7620 * java/security/spec/KeySpec.java: New file.
7621 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
7622 * java/security/spec/RSAPrivateKeySpec.java: New file.
7623 * java/security/spec/RSAPublicKeySpec.java: New file.
7624 * Makefile.am: Added above java.security files.
7625 * Makefile.in: Rebuilt.
7627 * java/security/MessageDigest.java: Rewritten.
7628 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
7630 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7634 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7636 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
7637 _Jv_PrepareConstantTimeTables.
7638 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
7639 classes should have an IDT, so don't return if klass is an array
7642 2000-03-08 Tom Tromey <tromey@cygnus.com>
7644 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
7645 of `void' to be created.
7647 2000-03-08 Warren Levy <warrenl@cygnus.com>
7649 * java/math/BigInteger.java(signum): Handle zero properly.
7651 2000-03-07 Tom Tromey <tromey@cygnus.com>
7653 * All files: Updated copyright information.
7654 * COPYING: New file.
7655 * COPYING.LIB: Removed.
7656 * LIBGCJ_LICENSE: We now use GPL + special exception.
7658 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7660 * resolve.cc (_Jv_SearchMethodInClass): New function.
7661 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
7662 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
7664 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7666 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
7667 (struct _Jv_ifaces): New declaration.
7668 JV_CLASS: New macro definition.
7669 (getComponentType): Relocate below isArray() for inlining.
7670 (getModifiers): Declare `inline'.
7671 (getSuperclass): Ditto.
7673 (isPrimitive): Ditto.
7674 (_Jv_IsAssignableFrom): New prototype.
7675 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
7677 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
7678 Check for JV_STATE_DONE before invoking initializeClass().
7679 (_Jv_PrepareConstantTimeTables): New prototype.
7680 (_Jv_GetInterfaces): Ditto.
7681 (_Jv_GenerateITable): Ditto.
7682 (_Jv_GetMethodString): Ditto.
7683 (_Jv_AppendPartialITable): Ditto.
7684 (_Jv_FindIIndex): Ditto.
7685 depth, ancestors, idt: New class fields.
7687 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
7688 inline function `_Jv_IsAssignableFrom'. Use that function.
7689 (isInstance): Declare `inline'.
7690 (initializeClass): Get lock on class before checking `state'. Unlock
7691 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
7693 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
7694 (_Jv_IsAssignableFrom): New inline function. Test assignability using
7695 class->depth and ancestor table.
7696 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7697 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7698 _Jv_IsAssignableFrom.
7699 (_Jv_CheckArrayStore): Ditto.
7700 (_Jv_LookupInterfaceMethodIdx): New function.
7701 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7702 (_Jv_PrepareConstantTimeTables): New function.
7703 (_Jv_IndexOf): Ditto.
7704 (_Jv_GetInterfaces): Ditto.
7705 (_Jv_GenerateITable): Ditto.
7706 (_Jv_GetMethodString): Ditto.
7707 (_Jv_AppendPartialITable): Ditto.
7708 iindex_mutex, iindex_mutex_initialized: New static fields.
7709 (_Jv_FindIIndex): New function.
7711 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7713 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7714 (_Jv_CheckArrayStore): Ditto.
7715 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7716 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7717 Moved to gcj/array.h.
7718 (_Jv_Realloc): New function.
7720 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7722 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7723 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7724 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7725 JvNewDoubleArray): Implementations moved from prims.cc and
7728 * gcj/javaprims.h (_Jv_Realloc): Prototype.
7730 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7732 2000-03-06 Tom Tromey <tromey@cygnus.com>
7734 * jni.cc (MARK_NONE): New define.
7735 (MARK_USER): Likewise.
7736 (MARK_SYSTEM): Likewise.
7737 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7739 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7740 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7741 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7742 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7744 (call): Use MARK_SYSTEM.
7745 (_Jv_GetJNIEnvNewFrame): New function.
7746 (_Jv_LookupJNIMethod): New function.
7747 (_Jv_JNI_PopSystemFrame): New function.
7748 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7750 2000-03-05 Tom Tromey <tromey@cygnus.com>
7752 Fix for PR libgcj/43:
7753 * include/Makefile.in: Rebuilt.
7754 * include/Makefile.am (include_HEADERS): New define.
7756 2000-03-05 Anthony Green <green@redhat.com>
7758 * gcj/javaprims.h ("Java"): Remove FirstThread.
7760 * configure.host: Fix __NO_MATH_INLNES botch.
7762 * Makefile.in: Rebuilt.
7763 * Makefile.am (nat_source_files): Move natFirstThread.cc.
7764 (gnu/gcj/runtime/FirstThread.h): Moved.
7765 (ordinary_java_source_files): Move FirstThread.java.
7766 * prims.cc: Deal with FirstThread movement.
7768 (_Jv_RunMain): Ditto.
7770 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7771 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7773 2000-03-05 Warren Levy <warrenl@cygnus.com>
7775 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7776 Handle null addresses.
7778 2000-03-04 Anthony Green <green@redhat.com>
7780 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7783 2000-03-04 Anthony Green <green@redhat.com>
7785 * configure: Rebuilt.
7786 * configure.in (ZLIBTESTSPEC): New macro.
7787 (GCTESTSPEC): New macro.
7788 (LIBGCJTESTSPEC): New macro.
7789 * libgcj-test.spec.in: New file.
7791 2000-03-02 Tom Tromey <tromey@cygnus.com>
7793 * include/java-interp.h: Don't include MethodInvocation.h.
7794 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7795 * Makefile.in: Rebuilt.
7796 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7797 (ordinary_java_source_files): Don't mention
7798 MethodInvocation.java.
7799 * gnu/gcj/runtime/MethodInvocation.java: Removed.
7800 * interpret.cc (MethodInvocation::continue1): Removed.
7801 (run): Handle exceptions here.
7802 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7804 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7806 (defineClass2): Removed.
7808 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7810 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7812 (hack_call): Removed.
7814 * java/lang/Class.h (Class): Removed hackRunInitializers,
7816 * java/lang/natClass.cc (hackRunInitializers): Removed.
7817 (initializeClass): Catch exceptions here.
7818 Include ExceptionInInitializerError.h.
7819 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7822 * java/lang/Object.h (Object): Don't mention hack12_6.
7823 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7825 * java/lang/Object.java (hack12_6): Removed.
7827 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7828 (start): Use run_, not run__.
7829 * java/lang/Thread.java (run_): Renamed from run__; old run_
7832 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7833 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7834 (_Jv_JNI_DefineClass): Likewise.
7835 (_Jv_JNI_ThrowNew): Likewise.
7836 (_Jv_JNI_AllocObject): Likewise.
7837 (_Jv_JNI_GetAnyMethodID): Likewise.
7838 (_Jv_JNI_CallAnyMethodV): Likewise.
7839 (_Jv_JNI_CallAnyMethodA): Likewise.
7840 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7841 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7842 (_Jv_JNI_GetAnyFieldID): Likewise.
7843 (_Jv_JNI_NewString): Likewise.
7844 (_Jv_JNI_NewStringUTF): Likewise.
7845 (_Jv_JNI_GetStringUTFChars): Likewise.
7846 (_Jv_JNI_NewObjectArray): Likewise.
7847 (_Jv_JNI_NewPrimitiveArray): Likewise.
7848 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7849 (_Jv_JNI_GetStringRegion): Likewise.
7850 (_Jv_JNI_GetStringUTFRegion): Likewise.
7851 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7852 (_Jv_JNI_MonitorEnter): Likewise.
7853 (_Jv_JNI_MonitorExit): Likewise.
7854 (_Jv_JNI_ToReflectedField): Likewise.
7855 (_Jv_JNI_ToReflectedMethod): Likewise.
7856 (_Jv_JNI_RegisterNatives): Likewise.
7857 (_Jv_JNI_AttachCurrentThread): Likewise.
7858 (_Jv_JNI_DestroyJavaVM): Likewise.
7860 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7862 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7863 error caused by the incorrect casting of a long to an int.
7865 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7867 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7868 SIGSEV caused by use of the wrong instance variable.
7870 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7872 * java/io/File.java (File(String, String)): For dirPath, treat an
7873 empty String the same as `null'.
7875 2000-02-26 Anthony Green <green@cygnus.com>
7877 * gnu/gcj/io/MimeTypes.java: Test for null.
7879 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7880 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7882 * java/net/URLConnection.java: Update copyright notice.
7884 2000-02-25 Tom Tromey <tromey@cygnus.com>
7886 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7889 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7891 * java/net/URLConnection.java (initializeDateFormats): New
7893 (getHeaderFieldDate): Call initializeDateFormats if required.
7894 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7896 Fix for PR libgcj/38.
7898 2000-02-24 Warren Levy <warrenl@cygnus.com>
7900 * java/math/BigInteger.java(ival): Made private.
7904 2000-02-20 Anthony Green <green@cygnus.com>
7906 * Makefile.in: Rebuilt.
7907 * Makefile.am (ordinary_java_source_files): Add
7908 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7910 * scripts/MakeDefaultMimeTypes.java: New file.
7911 * scripts/mime.types: New file.
7912 * scripts/classes.pl: Moved from top level.
7913 * classes.pl: Moved to scripts directory.
7915 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7917 * gnu/gcj/io/MimeTypes.java: New file.
7918 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7920 2000-02-20 Tom Tromey <tromey@cygnus.com>
7922 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7924 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7926 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7929 2000-02-18 Tom Tromey <tromey@cygnus.com>
7931 * include/jvm.h (_Jv_GetJavaVM): Declare.
7932 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7933 (_Jv_MethodBase::get_method): New method.
7934 (_Jv_JNIMethod::set_function): New method.
7935 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7936 (_Jv_JNI_RegisterNatives): New function.
7937 (_Jv_JNIFunctions): Updated for new functions.
7938 (_Jv_GetJavaVM): New function.
7939 (_Jv_JNI_GetJavaVM): Use it. Now static.
7940 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7941 is already a Java thread but does not have a JNIEnv yet.
7943 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7946 2000-02-17 Tom Tromey <tromey@cygnus.com>
7948 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7951 2000-02-16 Tom Tromey <tromey@cygnus.com>
7953 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7955 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7956 (_Jv_JNI_NewObject): Likewise.
7957 (_Jv_JNI_NewObjectA): Likewise.
7958 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7959 as "return" type to _Jv_CallAnyMethodA.
7960 (_Jv_JNI_CallAnyMethodA): Likewise.
7961 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7963 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7966 2000-02-15 Tom Tromey <tromey@cygnus.com>
7968 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7970 (init_cif): Added `rtype_p' argument.
7971 * include/java-interp.h (class _Jv_MethodBase): Added
7973 (class _Jv_InterpMethod): Removed args_raw_size.
7974 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7975 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7976 class pointer as well as the ordinary arguments.
7978 * jni.cc (mangled_name): Skip leading `(' in signature.
7980 * jni.cc (add_char): Added missing `else'.
7982 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7985 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7989 * java/lang/natRuntime.cc (_load): Include library path with
7992 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7995 * java/lang/natThread.cc (dumpStack): Removed.
7996 * java/lang/Thread.java (dumpStack): Implemented.
7998 2000-02-15 Tom Tromey <tromey@cygnus.com>
8000 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
8001 with `lib' for loadLibrary. Fixes PR gcj/150.
8003 2000-02-14 Warren Levy <warrenl@cygnus.com>
8005 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
8007 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
8011 (modPow): Rewritten to not use the naive, slow, brute force approach.
8012 (isProbablePrime): Implemented.
8013 (testBit): Implemented.
8014 (flipBit): Implemented.
8015 (getLowestSetBit): Implemented.
8017 2000-02-16 Anthony Green <green@redhat.com>
8019 * configure.host: Use the same options for i386 and i486 as we do
8022 2000-02-12 Tom Tromey <tromey@cygnus.com>
8024 * java/io/File.java (createTempFile): Use low bits from counter,
8027 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
8029 * THANKS: More thanks.
8031 2000-02-11 Tom Tromey <tromey@cygnus.com>
8033 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
8034 astore instruction. From Hans Boehm.
8036 2000-02-11 Warren Levy <warrenl@cygnus.com>
8038 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
8039 (BigInteger(String)): New constructor.
8040 (not): Rewritten using version from Kawa's BitOps class.
8041 (valueOf): New private methods from Kawa's BitOps class.
8048 (andNot): Implemented.
8049 (clearBit): Implemented.
8050 (setBit): Implemented.
8051 (bitCount): Implemented.
8052 (toByteArray): Implemented.
8054 2000-02-11 Tom Tromey <tromey@cygnus.com>
8056 * java/io/File.java (nextValue): Now synchronized.
8058 2000-02-10 Tom Tromey <tromey@cygnus.com>
8060 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
8061 * java/io/FileDescriptor.java (EXCL): New static field.
8062 * java/io/File.java (tmpdir): New static field.
8063 (createTempFile): New method.
8064 (nextValue): New method.
8065 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
8068 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
8069 (jboolean): Declare as an attributed int, not a bool.
8070 (_Jv_func): Declare differently for C.
8072 * gnu/gcj/jni/natNativeThread.cc: New file.
8073 * gnu/gcj/jni/NativeThread.java: New file.
8074 * java/lang/Thread.java (data): Now a RawData.
8075 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
8077 * Makefile.in: Rebuilt.
8078 * Makefile.am (java/lang/Thread.h): New target.
8079 (ordinary_java_source_files): Added NativeThread.java.
8080 (nat_source_files): Added natNativeThread.cc.
8081 * java/lang/natThread.cc: Include <jni.h>
8082 (struct natThread): Added `jni_env' field.
8083 (_Jv_GetCurrentJNIEnv): New function.
8084 (_Jv_SetCurrentJNIEnv): Likewise.
8085 (initialize_native): Initialize jni_env.
8087 * jni.cc (ThreadGroupClass): New define.
8088 (_Jv_JNI_InvokeFunctions): New structure.
8089 (JNI_GetCreatedJavaVMs): New function.
8090 (the_vm): New global.
8091 (JNI_GetDefaultJavaVMInitArgs): New function.
8092 Include NativeThread.h.
8093 (NativeThreadClass): New define.
8094 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
8095 (_Jv_JNI_DestroyJavaVM): New function.
8096 (_Jv_JNI_AttachCurrentThread): New function.
8097 (_Jv_JNI_DetachCurrentThread): New function.
8098 (_Jv_JNI_GetEnv): New function.
8099 (JNI_CreateJavaVM): New function.
8100 (_Jv_JNI_GetJavaVM): New function.
8101 (_Jv_JNIFunctions): Added entry for GetJavaVM.
8102 * include/jni.h (JavaVMAttachArgs): New structure.
8103 (JNI_EDETACHED): New define.
8104 (JNI_EVERSION): Likewise.
8105 (JavaVM): Define properly.
8106 (struct JNIInvokeInterface): New structure.
8107 (class _Jv_JavaVM): New class.
8108 (JNI_OnLoad, JNI_OnUnload): Declare.
8109 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
8110 JNI_GetCreatedJavaVMs): Declare.
8111 (JavaVMInitArgs): New typedef.
8112 (JavaVMOption): Likewise.
8113 (JNI_ERR): New define.
8116 2000-02-10 Andrew Haley <aph@cygnus.com>
8118 * interpret.cc: Don't include fdlibm.h.
8119 Replace #if with #ifdef throughout.
8120 Declare extern __ieee754_fmod.
8121 (continue1): Remove op_getfield, op_getstatic, op_putfield,
8123 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
8124 Search class hierarchy for superclass vtable.
8126 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
8127 off the end of a pointer list.
8129 * java/lang/natThread.cc (stop): Don't abort, throw an exception
8133 2000-02-09 Tom Tromey <tromey@cygnus.com>
8135 * java/lang/natRuntime.cc (_load): Call add_library.
8136 (loadLibraryInternal): Likewise.
8138 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
8139 iconv_close when handle is not NULL. Thanks to Andrew Haley.
8140 (Output_iconv::finalize): Likewise.
8142 2000-02-08 Tom Tromey <tromey@cygnus.com>
8144 * java/util/Properties.java (setProperty): New method.
8145 (store): New method.
8147 2000-02-07 Tom Tromey <tromey@cygnus.com>
8149 * java/lang/Runtime.java (_load): Declare.
8150 (load, loadLibrary): Wrote in terms of _load.
8151 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
8153 (loadLibrary): Likewise.
8155 (_load): New method.
8156 (loadLibrary, load): Removed.
8158 * jni.cc (ThrowableClass): New define.
8159 (_Jv_JNI_Throw): Check argument.
8160 (_Jv_JNI_ThrowNew): Likewise.
8161 (wrap_value): Don't wrap object if it is NULL.
8162 (_Jv_JNI_DefineClass): Use wrap_value.
8163 (_Jv_JNI_FindClass): Likewise.
8164 (_Jv_JNI_GetSuperclass): Likewise.
8165 (_Jv_JNI_ExceptionOccurred): Likewise.
8166 (_Jv_JNI_AllocObject): Likewise.
8167 (_Jv_JNI_GetObjectClass): Likewise.
8168 (_Jv_JNI_NewString): Likewise.
8169 (_Jv_JNI_NewStringUTF): Likewise.
8170 (_Jv_JNI_NewObjectArray): Likewise.
8171 (_Jv_JNI_GetObjectArrayElement): Likewise.
8172 (_Jv_JNI_NewPrimitiveArray): Likewise.
8173 (_Jv_JNI_ToReflectedField): Likewise.
8174 (_Jv_JNI_ToReflectedMethod): Likewise.
8175 (_Jv_JNI_AllocObject): Check argument.
8176 (_Jv_JNI_NewObjectV): Likewise.
8177 (_Jv_JNI_NewObject): Likewise.
8178 (_Jv_JNI_NewObjectA): Likewise.
8179 (_Jv_JNI_GetObjectClass): Likewise.
8180 (_Jv_JNI_GetField): Likewise.
8181 (_Jv_JNI_SetField): Likewise.
8183 * interpret.cc (PUSHL): Don't use expression statement.
8188 * jni.cc (add_char): Conditional on INTERPRETER.
8189 (mangled_name): Likewise.
8191 * include/java-interp.h (class _Jv_MethodBase): Conditional on
8193 (class _Jv_JNIMethod): Likewise.
8195 2000-02-04 Warren Levy <warrenl@cygnus.com>
8197 * Makefile.am: Added MPN.java and BigInteger.java.
8198 * Makefile.in: Rebuilt.
8199 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
8201 * java/math/BigInteger.java: New file. Based primarily on
8202 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
8204 2000-02-04 Tom Tromey <tromey@cygnus.com>
8206 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
8208 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
8209 if the method is native.
8210 * resolve.cc (ncode): Don't handle native methods.
8211 (_Jv_JNIMethod::ncode): New method.
8212 (_Jv_PrepareClass): Handle native methods.
8213 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
8214 Include AbstractMethodError.h.
8215 (add_char): New function.
8216 (mangled_name): Likewise.
8217 * include/java-interp.h (class _Jv_JNIMethod): New class.
8218 (class _Jv_MethodBase): New class.
8219 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
8220 (_Jv_InterpClass): Changed `interpreted_methods' field to type
8223 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
8224 * java/lang/natRuntime.cc (libraries_size, libraries_count,
8225 libraries): New globals.
8226 (add_library): New function.
8227 (_Jv_FindSymbolInExecutable): New function.
8229 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
8232 2000-02-04 Andrew Haley <aph@cygnus.com>
8234 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
8235 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
8236 * java/lang/natThrowable.cc (printRawStackTrace): Rename
8237 printStackTrace to printRawStackTrace.
8239 2000-02-03 Tom Tromey <tromey@cygnus.com>
8241 * java/util/Calendar.java (toString): New method.
8242 * java/util/SimpleTimeZone.java (clone): New method.
8243 (toString): New method.
8244 * java/util/TimeZone.java (clone): New method.
8245 * java/text/SimpleDateFormat.java (clone): New method.
8246 * java/text/NumberFormat.java (clone): New method.
8247 (equals): New method.
8248 * java/text/Format.java (clone): New method.
8249 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
8251 (clone): New method.
8252 * java/text/DateFormat.java (clone): New method.
8253 * java/text/Collator.java (clone): New method.
8255 2000-02-03 Tom Tromey <tromey@cygnus.com>
8257 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
8260 2000-02-01 Tom Tromey <tromey@cygnus.com>
8262 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
8263 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
8264 constructing the closure if the function is native.
8265 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
8266 a template function, #if'd out, or static.
8267 Include <java-interp.h>.
8269 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
8271 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
8273 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
8274 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
8276 (wrap_value): New function.
8277 (_Jv_JNI_CallAnyMethodV): Use it.
8278 (_Jv_JNI_CallAnyMethodA): Likewise.
8279 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
8280 (_Jv_JNI_GetStaticField): Likewise.
8282 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
8283 (_Jv_JNI_GetStaticField): Likewise.
8285 2000-01-31 Tom Tromey <tromey@cygnus.com>
8287 * prims.cc (_Jv_MallocUnchecked): New function.
8288 (main_init): Call _Jv_JNI_Init.
8289 * include/jvm.h (_Jv_MallocUnchecked): Declare.
8290 (_Jv_JNI_Init): Declare.
8291 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
8293 (_Jv_JNI_NewGlobalRef): New function.
8294 (_Jv_JNI_DeleteGlobalRef): New function.
8295 (_Jv_JNI_DeleteLocalRef): New function.
8296 (_Jv_JNI_conversion_call): Initialize and clear local reference
8298 (_Jv_JNI_NewLocalRef): New function.
8299 (struct _Jv_JNI_LocalFrame): New structure.
8300 (_Jv_JNI_PushLocalFrame): New function.
8301 (_Jv_JNI_EnsureLocalCapacity): New function.
8302 (FRAME_SIZE): New define.
8303 (_Jv_JNI_GetStringChars): Mark string, not characters.
8304 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
8305 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
8306 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
8308 (_Jv_JNI_DefineClass): Make return value a local ref.
8309 (_Jv_JNI_FindClass): Likewise.
8310 (_Jv_JNI_GetSuperclass): Likewise.
8311 (_Jv_JNI_ExceptionOccurred): Likewise.
8312 (_Jv_JNI_AllocObject): Likewise.
8313 (_Jv_JNI_GetObjectClass): Likewise.
8314 (_Jv_JNI_CallAnyMethodV): Likewise.
8315 (_Jv_JNI_NewString): Likewise.
8316 (_Jv_JNI_NewStringUTF): Likewise.
8317 (_Jv_JNI_NewObjectArray): Likewise.
8318 (_Jv_JNI_GetObjectArrayElement): Likewise.
8319 (_Jv_JNI_ToReflectedField): Likewise.
8320 (_Jv_JNI_ToReflectedMethod): Likewise.
8321 (_Jv_JNIFunctions): Updated table for new functions.
8322 (_Jv_JNI_Init): New function.
8323 (mark_for_gc): Wrote.
8324 (unmark_for_gc): Wrote.
8325 * include/jni.h (struct JNINativeInterface): Removed name from
8326 PopLocalFrame parameter.
8327 (class _Jv_JNIEnv): Added `locals' field.
8329 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
8331 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
8334 2000-01-30 Tom Tromey <tromey@cygnus.com>
8336 * include/config.h.in: Rebuilt.
8337 * acconfig.h (HAVE_ICONV): Define.
8338 * configure: Rebuilt.
8339 * configure.in: Check for `iconv' function.
8340 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
8341 no specific encoder exists.
8342 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
8343 no specific encoder exists.
8344 * Makefile.in: Rebuilt.
8345 * Makefile.am (convert_source_files): Mention Input_iconv.java and
8347 (nat_source_files): Added natIconv.cc.
8348 * gnu/gcj/convert/natIconv.cc: New file.
8349 * gnu/gcj/convert/Input_iconv.java: New file.
8350 * gnu/gcj/convert/Output_iconv.java: New file.
8352 2000-01-28 Tom Tromey <tromey@cygnus.com>
8354 * Makefile.in: Rebuilt.
8355 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
8357 2000-01-26 Tom Tromey <tromey@cygnus.com>
8359 * gcj/method.h (JvNumMethods): Moved from Class.h.
8360 (JvGetFirstMethod): Likewise.
8361 * java/lang/Class.h (Object): Updated decl of
8362 _Jv_JNI_ToReflectedField.
8363 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
8364 * Makefile.in: Rebuilt.
8365 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
8366 argument of _Jv_JNI_ToReflectedField.
8367 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
8369 (java/lang/reflect/Method.h): Likewise.
8370 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
8372 (jweak): New typedef.
8373 (struct JNINativeInterface): Correctly declare remaining entries.
8374 * jni.cc: Include Class.h, ClassLoader.h.
8375 (_Jv_JNI_FindClass): New function.
8376 (_Jv_JNI_DefineClass): New function.
8377 (_Jv_JNI_conversion_call): New function.
8378 (_Jv_JNI_FindClass): Use current class loader to find class.
8379 (_Jv_JNI_ExceptionCheck): New function.
8380 (_Jv_JNI_FromReflectedField): Now static.
8381 (MethodClass): New define.
8382 (_Jv_JNI_FromReflectedMethod): New function.
8383 (_Jv_JNI_ToReflectedMethod): Likewise.
8385 (_Jv_JNI_IsAssignableFrom): Renamed.
8386 (_Jv_JNI_GetStringRegion): New function.
8387 Include StringIndexOutOfBoundsException.h.
8388 (_Jv_JNI_GetStringUTFRegion): New function.
8389 (_Jv_JNIFunctions): Updated for new functions.
8390 (_Jv_JNI_GetPrimitiveArrayCritical): New function
8391 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
8392 (_Jv_JNI_GetStringCritical): New function.
8393 (_Jv_JNI_ReleaseStringCritical): Likewise.
8394 (get_throwable): Removed.
8395 (GCJ_JV_JNIENV_FRIEND): Removed.
8396 (__GCJ_JNI_IMPL__): Define.
8399 * resolve.cc (get_ffi_type_from_signature): Handle case where
8402 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
8404 * interpret.cc (run): Don't call println.
8405 Don't include PrintStream.h.
8407 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
8408 nameIndex. Use "jint" as type for boffset.
8409 * java/lang/Class.h (struct _Jv_Method): Made accflags a
8411 (Class): Likewise. Also changed type of method_count,
8412 vtable_method_count, size_in_bytes, field_count,
8413 static_field_count, interface_count.
8414 * gcj/array.h (__JArray): Made `length' a const jsize, not an
8417 2000-01-21 Tom Tromey <tromey@cygnus.com>
8419 * java/lang/reflect/natConstructor.cc (newInstance): Use
8421 * include/jvm.h: Declare _Jv_CallAnyMethodA.
8422 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
8423 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
8426 (invoke): Use _Jv_CallAnyMethodA.
8428 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
8429 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
8431 (struct _Jv_Method): Added getNextMethod method.
8432 (JvNumMethods): New function.
8433 (JvGetFirstMethod): Likewise.
8434 * gcj/field.h (JvGetFirstStaticField): New function.
8435 (JvNumStaticFields): Likewise.
8436 (getNextField): Renamed from getNextInstanceField.
8437 (struct _Jv_Field): New method getClass.
8438 * jni.cc: Wrote many new functions.
8439 * include/jni.h (JNI_TRUE): Define.
8440 (JNI_FALSE): Likewise.
8441 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
8442 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
8443 jcharArray, jfloatArray, jdoubleArray): New typedefs.
8444 (jfieldID, jmethodID): Likewise.
8445 (JNI_COMMIT, JNI_ABORT): New defines.
8446 (JNINativeMethod): New struct.
8447 (struct JNINativeInterface): Correctly declared more entries.
8448 (class _Jv_JNIEnv): Added `ex' member.
8449 (JNI_VERSION_1_1): New define.
8450 (JNI_VERSION_1_2): Likewise.
8452 * boehm.cc (_Jv_MarkObj): Use getNextField, not
8453 getNextInstanceField.
8455 2000-01-20 Tom Tromey <tromey@cygnus.com>
8457 * resolve.cc (StringClass): Removed.
8458 * defineclass.cc (StringClass): Removed.
8460 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
8464 2000-01-19 Tom Tromey <tromey@cygnus.com>
8466 * interpret.cc (PC_REGISTER_ASM): Removed.
8468 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
8469 From Bryce McKinlay.
8471 * All files: Updated copyright to reflect Cygnus purchase.
8473 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
8475 * configure: Rebuilt.
8476 * configure.in: Recognize --disable-interpreter.
8478 2000-01-18 Andrew Haley <aph@cygnus.com>
8480 * name-finder.cc (lookup): Check for dladdr function.
8481 acconfig.h (HAVE_DLADDR): Add.
8482 configure.in: Check for HAVE_DLADDR
8484 include/config.h.in: Rebuilt.
8486 2000-01-17 Andrew Haley <aph@cygnus.com>
8488 * prims.cc (_Jv_RunMain): Set the name of this executable.
8490 2000-01-17 Tom Tromey <tromey@cygnus.com>
8492 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
8493 when backtrace can't be computed.
8495 * configure: Rebuilt.
8496 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
8498 * java/lang/Runtime.java (loadLibraryInternal): Declare.
8499 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
8500 (_Jv_FindClassInCache): Likewise.
8501 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
8502 (findSystemClass): Try to load class from compiled module.
8504 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
8505 (loadLibrary): Likewise.
8506 (lt_preloaded_symbols): Define.
8507 (loadLibraryInternal): New method.
8508 * include/config.h.in: Rebuilt.
8509 * acconfig.h (USE_LTDL): Added.
8510 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
8511 (INCLUDES): Added $(INCLTDL).
8512 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
8513 (libgcj_la_LIBADD): Likewise.
8514 * aclocal.m4, configure: Rebuilt.
8515 * configure.in: Added libltdl support.
8517 2000-01-15 Tom Tromey <tromey@cygnus.com>
8519 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
8521 2000-01-14 Andrew Haley <aph@cygnus.com>
8523 * java/lang/natThrowable.cc: New file.
8525 * java/lang/Throwable.java (fillInStackTrace): Make native.
8526 (printStackTrace): Call native method to do this.
8527 (Throwable): Call fillInStackTrace.
8528 (stackTrace): New variable.
8530 * include/jvm.h: Add _Jv_ThisExecutable functions.
8532 * prims.cc: (_Jv_execName): New variable.
8533 (catch_segv): Call fillInStackTrace.
8535 (_Jv_ThisExecutable): New functions.
8536 (JvRunMain): Set the name of this executable.
8538 * Makefile.am: Add java/lang/natThrowable.cc.
8540 * Makefile.in: Rebuilt.
8542 * acconfig.h: Add HAVE_PROC_SELF_EXE.
8544 * configure.in: Force link with __frame_state_for in
8545 FORCELIBGCCSPEC. Add new checks for backtrace.
8546 * include/config.h.in: Rebuilt.
8548 * name-finder.cc: New file.
8549 * include/name-finder.h: New file.
8551 2000-01-16 Anthony Green <green@cygnus.com>
8553 * java/lang/StringBuffer.java (StringBuffer): Don't special case
8556 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
8558 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
8560 2000-01-13 Tom Tromey <tromey@cygnus.com>
8562 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
8563 not system loader, as initiating loader.
8565 2000-01-11 Tom Tromey <tromey@cygnus.com>
8567 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
8568 HP/UX. From David Scott Urban.
8570 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
8572 * java/lang/natMath.cc (pow): Cast args to `double', not
8575 (IEEEremainder): Likewise.
8576 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
8577 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
8579 2000-01-09 Anthony Green <green@cygnus.com>
8581 * java/lang/natString.cc (init): Test for overflow condition
8582 during out of bounds check.
8583 (getChars): Throw StringIndexOutOfBoundsException, not
8584 ArrayIndexOutOfBoundsException.
8586 (regionMatches): Obey case option during string comparison.
8588 * configure.host (ligcj_interpreter): New variable. Enable
8589 interpreter by default on IA-32.
8590 * configure.in: Examine libgcj_interpreter.
8591 * configure: Rebuilt.
8593 2000-01-07 Tom Tromey <tromey@cygnus.com>
8595 * mauve-libgcj: Don't disable ClassTest.
8597 * java/lang/natClass.cc (getClasses): Wrote.
8599 2000-01-06 Tom Tromey <tromey@cygnus.com>
8601 * java/lang/natClass.cc (_getConstructors): Correctly check
8602 whether method name is the init name.
8603 (getMethod): Look at accflags on method in `klass', not `this'.
8605 2000-01-05 Tom Tromey <tromey@cygnus.com>
8607 * java/lang/natClass.cc (getMethod): Compute offset relative to
8608 `klass's methods table, not `this's table.
8610 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
8611 In unwrapping/widening case, check whether `k' is null, not
8612 whether it is primitive. Initialize `num' from `argelts', not
8613 `paramelts'. Correct create and pass arguments to ffi_call.
8614 Don't let presence of `this' argument affect index used to look in
8616 (COPY): Set appropriate element in `values' vector.
8618 * java/lang/natClass.cc: Include <gcj/method.h>.
8620 * java/lang/Class.h (_getMethods): Correctly declare as private,
8623 * java/lang/Class.h (_getMethods): Declare.
8624 * java/lang/Class.java (_getMethods): Declare.
8625 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
8626 (getDeclaredClasses): Always return empty array.
8627 (_getMethods): New method.
8628 (getMethods): Wrote.
8629 (getDeclaredMethod): Return `rmethod'.
8630 (finit_name): New global.
8631 (getDeclaredMethods): Check for finit_name.
8632 (_getMethods): Likewise.
8633 (getMethod): Only return public methods.
8635 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
8636 jboolean and select correct ffi type on that basis.
8637 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
8638 Constructor call always has `void' return type.
8640 2000-01-04 Tom Tromey <tromey@cygnus.com>
8642 * java/lang/Class.h (getSignature): Updated.
8643 * java/lang/Class.java (getSignature): Updated.
8644 * java/lang/natClass.cc (getSignature): Added `is_constructor'
8646 (getConstructor): Ensure constructor is public.
8647 (_getConstructors): Check for public-ness of constructor when
8648 `declared' is false, not when it is true.
8650 2000-01-04 Warren Levy <warrenl@cygnus.com>
8652 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
8654 (receive): Set the sender's address in the DatagramPacket.
8656 2000-01-04 Tom Tromey <tromey@cygnus.com>
8658 * java/lang/reflect/natConstructor.cc (newInstance): Pass
8659 declaring class as return_type argument to
8660 _Jv_CallNonvirtualMethodA.
8661 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
8662 constructor case, create object and use it as `this' argument.
8663 * java/lang/Class.h (_getConstructors): Declare.
8664 (_getFields): Declare.
8665 * java/lang/Class.java (getConstructors): Wrote.
8666 (_getConstructors): New native method.
8667 (getDeclaredConstructors): Wrote.
8668 (_getFields): Declare new native method.
8669 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
8671 (getMethod): Work correctly when class is primitive.
8672 (getDeclaredMethods): Likewise. Compute offset using `method',
8674 (getDeclaredMethod): Likewise.
8675 (getConstructor): Wrote.
8676 (ConstructorClass): New define.
8677 (getDeclaredConstructor): Wrote.
8678 (_getConstructors): New method.
8679 (_getFields): New method.
8682 * Makefile.in: Rebuilt.
8683 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
8685 * prims.cc: Remove `#pragma implementation'.
8686 * gcj/array.h: Remove `#pragma interface'.
8688 * prims.cc (_Jv_equaln): New function.
8689 * java/lang/Class.java (getSignature): Declare.
8690 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
8691 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
8693 (getSignature): New method.
8694 (getDeclaredMethod): Wrote.
8696 Include StringBuffer.h.
8697 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8698 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
8700 (getSignature): Declare.
8701 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8702 (_Jv_equaln): Declare.
8703 (_Jv_CallNonvirtualMethodA): Declare.
8704 * Makefile.in: Rebuilt.
8705 * Makefile.am (nat_source_files): Added natConstructor.cc.
8706 (java/lang/reflect/Constructor.h): New target.
8707 * java/lang/reflect/natConstructor.cc: New file.
8708 * java/lang/reflect/Constructor.java (newInstance): Now native.
8709 (declaringClass): Renamed from decl_class.
8710 (offset): Renamed from index.
8711 (getType): New native method.
8712 (getModifiers): Now native.
8713 (getParameterTypes): Call getType if required.
8714 (hashCode): Include hash code from declaring class.
8715 (modifiers): Removed.
8716 (toString): Call getType if required.
8717 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8718 * java/lang/reflect/natMethod.cc (hack_call): New method.
8719 Removed `#if 0' around FFI code.
8720 Include <gnu/gcj/RawData.h>.
8721 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
8722 IllegalArgumentException when argument object and class disagree.
8723 (_Jv_GetTypesFromSignature): New function.
8725 (ObjectClass): New define.
8726 (_Jv_CallNonvirtualMethodA): New function.
8727 * java/lang/reflect/Method.java (hack_trampoline): New method.
8728 (hack_call): New native method.