1 2001-11-16 Tom Tromey <tromey@redhat.com>
3 Re-merge with Classpath, from Brian Jones:
4 * java/lang/Integer.java (getInteger): Attempt to decode the value
5 of the system property instead of the name of the system property.
6 (parseInt): Throw NumberFormatException explicitly in the case of
7 a null argument in keeping with JDK 1.3.
9 2001-11-16 Mark Wielaard <mark@klomp.org>
11 * java/util/Timer.java (TaskQueue.isStopped): Remove method.
12 (Scheduler.run): Try to re-schedule task and ignore exception if
13 queue has been stopped.
15 2001-11-15 Tom Tromey <tromey@redhat.com>
17 * verify.cc (type::compatible): Use _Jv_IsAssignableFrom.
18 (type::merge): Likewise.
20 2001-11-14 Hans Boehm <Hans_Boehm@hp.com>
22 * java/lang/natString.cc: correct argument order for
25 2001-11-14 Tom Tromey <tromey@redhat.com>
27 * verify.cc (class _Jv_BytecodeVerifier) [op_dup2]: Fixed logic.
28 [op_dup_x2]: Likewise.
29 [op_dup2_x1]: Likewise.
30 [op_dup2_x2]: Likewise.
31 (branch_prepass): Added `op_newarray' case. Updated unrecognized
33 (verify_instructions_0): Updated unrecognized instruction error.
35 * java/lang/reflect/Constructor.java (toString): Use more
36 efficient form of Modifier.toString().
38 Re-merges with Classpath, from various people:
39 * java/lang/reflect/Modifier.java: Reindented.
40 (toString): Only trim trailing space if text was added to
42 * java/lang/reflect/ReflectPermission: Reindented.
44 Re-merges with Classpath, from various people:
45 * java/lang/Double.java (parseDouble): Fixed ordering of
47 * java/lang/reflect/AccessibleObject.java: Javadoc, reindented.
48 * java/lang/reflect/Member.java: Reindented.
49 * java/util/ConcurrentModificationException.java: Javadoc
51 * java/util/EmptyStackException.java: Likewise.
52 * java/util/NoSuchElementException.java: Likewise.
54 2001-11-13 Tom Tromey <tromey@redhat.com>
56 Fix for PR libgcj/4859:
57 * java/util/Timer.java (TaskQueue.isStopped): New method.
58 (Scheduler.run): Don't re-schedule task if queue has been
61 2001-11-07 Tom Tromey <tromey@redhat.com>
63 * Makefile.in: Rebuilt.
64 * Makefile.am (ordinary_java_source_files): Added JNIWeakRef.java.
65 * jni.cc: Include JNIWeakRef.h.
66 (unwrap): New function.
67 (_Jv_JNI_DefineClass): Use it.
68 (_Jv_JNI_GetSuperclass): Likewise.
69 (_Jv_JNI_IsAssignableFrom): Likewise.
70 (_Jv_JNI_Throw): Likewise.
71 (_Jv_JNI_ThrowNew): Likewise.
72 (_Jv_JNI_IsSameObject): Likewise.
73 (_Jv_JNI_AllocObject): Likewise.
74 (_Jv_JNI_GetObjectClass): Likewise.
75 (_Jv_JNI_IsInstanceOf): Likewise.
76 (_Jv_JNI_GetAnyMethodID): Likewise.
77 (array_from_valist): Likewise.
78 (_Jv_JNI_CallAnyMethodV): Likewise.
79 (_Jv_JNI_CallAnyMethodA): Likewise.
80 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
81 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
82 (_Jv_JNI_CallStaticMethodV): Likewise.
83 (_Jv_JNI_CallStaticMethod): Likewise.
84 (_Jv_JNI_CallStaticMethodA): Likewise.
85 (_Jv_JNI_NewObjectV): Likewise.
86 (_Jv_JNI_NewObject): Likewise.
87 (_Jv_JNI_NewObjectA): Likewise.
88 (_Jv_JNI_GetField): Likewise.
89 (_Jv_JNI_SetField): Likewise.
90 (_Jv_JNI_GetAnyFieldID): Likewise.
91 (_Jv_JNI_SetStaticField): Likewise.
92 (_Jv_JNI_GetStringLength): Likewise.
93 (_Jv_JNI_GetStringChars): Likewise.
94 (_Jv_JNI_ReleaseStringChars): Likewise.
95 (_Jv_JNI_GetStringUTFLength): Likewise
96 (_Jv_JNI_GetStringUTFChars): Likewise.
97 (_Jv_JNI_GetStringRegion): Likewise.
98 (_Jv_JNI_GetStringUTFRegion): Likewise.
99 (_Jv_JNI_GetStringCritical): Likewise.
100 (_Jv_JNI_GetArrayLength): Likewise.
101 (_Jv_JNI_NewObjectArray): Likewise.
102 (_Jv_JNI_GetObjectArrayElement): Likewise.
103 (_Jv_JNI_SetObjectArrayElement): Likewise.
104 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
105 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
106 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
107 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
108 (_Jv_JNI_MonitorEnter): Likewise.
109 (_Jv_JNI_MonitorExit): Likewise.
110 (_Jv_JNI_ToReflectedField): Likewise.
111 (_Jv_JNI_FromReflectedField): Likewise.
112 (_Jv_JNI_ToReflectedMethod): Likewise.
113 (_Jv_JNI_FromReflectedMethod): Likewise.
114 (_Jv_JNI_NewGlobalRef): Likewise.
115 (_Jv_JNI_DeleteGlobalRef): Likewise.
116 (_Jv_JNI_DeleteLocalRef): Likewise.
117 (_Jv_JNI_NewLocalRef): Likewise.
118 (_Jv_JNI_NewWeakGlobalRef): New function.
119 (_Jv_JNI_DeleteWeakGlobalRef): Likewise.
120 (_Jv_JNIFunctions): Updated for new methods.
122 * gnu/gcj/runtime/JNIWeakRef.java: New file.
124 2001-11-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
126 * boehm.cc (_Jv_GCCanReclaimSoftReference): Fix warning.
128 2001-11-09 Jeff Sturm <jsturm@one-point.com>
130 * verify.cc: Wrap in #ifdef INTERPRETER...#endif.
132 2001-11-07 Tom Tromey <tromey@redhat.com>
134 * verify.cc (skip_padding): Fail if padding byte is nonzero.
136 2001-11-06 Tom Tromey <tromey@redhat.com>
138 * HACKING: Make people commit their own patches.
140 2001-11-05 Tom Tromey <tromey@redhat.com>
142 * java/lang/Class.h (Class): Made _Jv_BytecodeVerifier a friend.
143 * Makefile.in: Rebuilt.
144 * Makefile.am (libgcj_la_SOURCES): Added verify.cc.
145 * verify.cc: New file.
146 * include/java-interp.h (_Jv_count_arguments): Declare.
147 (_Jv_VerifyMethod): Likewise.
148 (class _Jv_InterpMethod): Made _Jv_BytecodeVerifier a friend.
149 (class _Jv_InterpException): Likewise.
150 * resolve.cc (_Jv_count_arguments): Renamed from count_arguments.
151 No longer static. Updated callers.
152 * defineclass.cc (int_bits_to_float): Removed.
153 (long_bits_to_double): Likewise.
154 (prepare_pool_entry): Updated.
155 (handleCodeAttribute): Verify method (commented out for now).
157 2001-11-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
159 * java/util/ResourceBundle.java (class Security): Now static.
161 2001-11-04 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
163 * java/util/ResourceBundle.java (getClassContext): Removed.
164 (Security): New class, extends SecurityManger.
165 (getBundle): Use Security.getCallingClassLoader instead of
167 * java/util/natResourceBundle.cc: Removed.
169 2001-11-03 Tom Tromey <tromey@redhat.com>
171 * defineclass.cc (handleClassBegin): Use Object::class$, not
172 Class::class$, when initializing interface superclass.
174 2001-11-02 Hans Boehm <Hans_Boehm@hp.com>
176 * java/util/natResourceBundle.cc:getClassContext: return
177 array of Class instead of array of ClassLoader.
179 2001-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
181 * HACKING, gnu/gcj/xlib/Pixmap.java, gnu/gcj/xlib/XException.java,
182 gnu/java/rmi/rmic/RMIC.java, java/awt/Window.java,
183 java/awt/AWTEvent.java, java/io/ByteArrayOutputStream.java,
184 java/io/CharConversionException.java,
185 java/io/PipedInputStream.java, java/io/PipedReader.java,
186 java/io/PrintWriter.java, java/io/WriteAbortedException.java,
187 java/io/natFileWin32.cc, java/lang/Class.h,
188 java/lang/natClassLoader.cc, java/lang/natObject.cc,
189 java/lang/Package.java, java/net/BindException.java,
190 java/net/ConnectException.java, java/net/ProtocolException.java,
191 java/net/SocketException.java,
192 java/net/UnknownServiceException.java,
193 java/security/cert/X509Certificate.java,
194 java/security/interfaces/DSAKey.java,
195 java/security/SecureRandom.java, java/security/SignedObject.java,
196 java/sql/DatabaseMetaData.java,
197 java/text/DecimalFormatSymbols.java,
198 java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
199 java/util/jar/JarInputStream.java,
200 java/util/jar/JarOutputStream.java, java/util/Calendar.java,
201 java/util/Collections.java, java/util/GregorianCalendar.java,
202 java/util/HashMap.java, java/util/List.java,
203 java/util/Properties.java, java/util/Timer.java,
204 java/util/Vector.java, java/util/WeakHashMap.java,
205 javax/naming/NamingException.java,
206 testsuite/libjava.lang/Thread_Wait.java,
207 org/xml/sax/helpers/DefaultHandler.java,
208 org/xml/sax/HandlerBase.java, org/xml/sax/SAXParseException.java,
209 ChangeLog, acinclude.m4, aclocal.m4, posix-threads.cc: Fix
211 * configure: Regenerate.
213 2001-10-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
215 * jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM. Don't call
218 2001-10-29 Tom Tromey <tromey@redhat.com>
220 * java/util/zip/GZIPOutputStream.java (write(int)): New method.
221 Fixes PR libgcj/4728.
223 2001-10-27 Tom Tromey <tromey@redhat.com>
225 * include/jni.h (struct JNINativeInterface) [GetStringLength]:
226 Returns jsize, not jint.
228 2001-10-26 Tom Tromey <tromey@redhat.com>
230 * java/util/zip/Adler32.java: Use correct class name. (Re-merge
233 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
235 * java/lang/VMClassLoader.java (getPrimitiveClass): Now native. Now
236 takes a jchar type-code argument, not a string.
237 * java/lang/natClassLoader.cc (VMClassLoader::getPrimitiveClass):
238 New method. Just call _Jv_FindClassFromSignature.
239 * java/lang/Boolean.java (TYPE): Initialize from
240 VMClassLoader.getPrimitiveClass using type-code.
241 * java/lang/Character.java (TYPE): Likewise.
242 * java/lang/Double.java (TYPE): Likewise.
243 * java/lang/Float.java (TYPE): Likewise.
244 * java/lang/Integer.java (TYPE): Likewise.
245 * java/lang/Long.java (TYPE): Likewise.
246 * java/lang/Short.java (TYPE): Likewise.
247 * java/lang/Void.java (TYPE): Likewise.
249 2001-10-25 Hans Boehm <Hans_Boehm@hp.com>
251 * include/boehm-gc.h: Call thread local allocation functions
252 if THREAD_LOCAL_ALLOC is defined.
254 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
256 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Use
257 snprintf, not asprintf.
259 2001-10-24 Loren J. Rittle <ljrittle@acm.org>
261 * configure.in (case $THREADS): Add *-*-freebsd* configuration.
262 (HAVE_GETHOSTBYADDR_R): Create a valid, non-optimal
263 configuration when gethostbyaddr_r exists yet no prototype
265 * configure: Rebuilt.
266 * posix-threads.cc (INTR): Reuse path for LINUX_THREADS
267 with FREEBSD_THREADS. However, comment different reason.
269 2001-10-24 Tom Tromey <tromey@redhat.com>
270 Warren Levy <warrenl@redhat.com>
272 * Makefile.in: Rebuilt.
273 * Makefile.am (javax_source_files): New macro.
274 (ordinary_java_source_files): Added javax_source_files.
275 (libgcj.jar): Search javax for class files.
276 * javax/naming/LinkException.java (toString): Wrote.
277 (toString(boolean)): Likewise.
278 * javax/naming/ldap/InitialLdapContext.java: New file.
279 * javax/naming/directory/InitialDirContext.java: Wrote.
280 * javax/naming/spi/NamingManager.java (getPlusPath): Now has
281 package-private protection.
282 (getURLContext): Likewise.
283 (NamingManager): Likewise.
284 * javax/naming/spi/DirectoryManager.java: New file.
285 * javax/naming/directory/BasicAttributes.java: New file.
286 * javax/naming/directory/BasicAttribute.java: New file.
287 * javax/naming/spi/ResolveResult.java
288 (ResolveResult(Object,String)): Wrote.
289 (appendRemainingName): Uncommented body.
290 (appendRemainingComponent): Likewise.
291 * javax/naming/ldap/ControlFactory.java: New file.
292 * javax/naming/directory/AttributeModificationException.java
294 * javax/naming/spi/NamingManager.java (NamingManager): New
296 (setInitialContextFactoryBuilder): Wrote.
297 (getInitialContext): Look in system properties for class name as
298 well. Use Class.forName().
299 (getURLContext): Wrote.
301 (setObjectFactoryBuilder): Wrote.
302 (getObjectInstance): Wrote.
303 (getContinuationContext): Wrote.
304 (getPlusPath): New private method.
305 (getStateToBind): Wrote.
306 * javax/naming/CannotProceedException.java: Added missing methods &
308 * javax/naming/LinkException.java: Added missing methods & fields.
309 * javax/naming/ReferralException.java (ReferralException): Made
310 constructor protected per spec.
311 Added missing abstract methods.
312 * javax/naming/directory/Attribute.java: Updated copyright.
313 * javax/naming/directory/AttributeModificationException.java: Ditto.
314 * javax/naming/directory/Attributes.java: Ditto.
315 * javax/naming/directory/DirContext.java: Ditto.
316 * javax/naming/spi/NamingManager.java: Ditto.
317 * javax/naming/spi/ResolveResult.java: Added comment.
318 * javax/naming/directory/Attribute.java: Added missing interface
320 * javax/naming/directory/AttributeModificationException.java:
321 Added missing methods & fields.
322 * javax/naming/directory/directory/Attributes.java: Added missing
324 * javax/naming/directory/SearchControls.java: Maded serialized fields
326 * javax/naming/event/NamingEvent.java: Added comment.
327 * javax/naming/event/NamingExceptionEvent.java: Maded serialized field
329 * javax/naming/ldap/UnsolicitedNotificationEvent.java: Maded
330 serialized field private.
331 * javax/naming/spi/NamingManager.java: Added missing field and stubbed
333 * javax/naming/directory/DirContext.java: Added missing interface
335 * javax/naming/directory/InitialDirContext.java: Stubbed missing
337 * javax/naming/directory/ModificationItem.java: New class.
338 * javax/naming/directory/SearchResult.java: New class.
339 * javax/naming/directory/SearchControls.java: New class.
340 * javax/naming/event/EventContext.java: New class.
341 * javax/naming/event/EventDirContext.java: New class.
342 * javax/naming/event/NamespaceChangeListener.java: New class.
343 * javax/naming/event/NamingEvent.java: New class.
344 * javax/naming/event/NamingExceptionEvent.java: New class.
345 * javax/naming/event/NamingListener.java: New class.
346 * javax/naming/event/ObjectChangeListener.java: New class.
347 * javax/naming/ldap/Control.java: New class.
348 * javax/naming/ldap/ExtendedRequest.java: New class.
349 * javax/naming/ldap/ExtendedResponse.java: New class.
350 * javax/naming/ldap/HasControls.java: New class.
351 * javax/naming/ldap/LdapContext.java: New class.
352 * javax/naming/ldap/LdapReferralException.java: New class.
353 * javax/naming/ldap/UnsolicitedNotification.java: New class.
354 * javax/naming/ldap/UnsolicitedNotificationEvent.java: New class.
355 * javax/naming/ldap/UnsolicitedNotificationListener.java: New class.
356 * javax/naming/spi/DirObjectFactory.java: New class.
357 * javax/naming/spi/DirStateFactory.java: New class.
358 * javax/naming/spi/ObjectFactoryBuilder.java: New class.
359 * javax/naming/spi/ResolveResult.java: New class.
360 * javax/naming/spi/Resolver.java: New class.
361 * javax/naming/spi/StateFactory.java: New class.
362 * javax/naming/spi/ObjectFactory.java: Made an interface per spec.
363 * java/rmi/RemoteException.java: New class.
364 * javax/transaction/HeuristicCommitException.java: New class.
365 * javax/transaction/HeuristicMixedException.java: New class.
366 * javax/transaction/HeuristicRollbackException.java: New class.
367 * javax/transaction/NotSupportedException.java: New class.
368 * javax/transaction/RollbackException.java: New class.
369 * javax/transaction/Status.java: New class.
370 * javax/transaction/Synchronization.java: New class.
371 * javax/transaction/SystemException.java: New class.
372 * javax/transaction/Transaction.java: New class.
373 * javax/transaction/TransactionManager.java: New class.
374 * javax/transaction/UserTransaction.java: New class.
375 * javax/transaction/xa/XAException.java: Added public static fields.
376 * javax/transaction/xa/XAResource.java: New class.
377 * javax/transaction/xa/Xid.java: New class.
378 * javax/naming/CompoundName.java (CompoundName(String)): Reverse
379 elements if required. Handle case where quote is at end of
381 * javax/naming/CompoundName.java (CompoundName(String)): Handle
382 text left at end of parsing.
383 (toString): Handle empty element at beginning.
384 * javax/naming/CompositeName.java (toString): Handle empty element
386 (CompositeName(String)): Handle text left at end of parsing.
387 Correctly compute boundary condition for quoting.
388 * javax/naming/CompoundName.java: New file.
389 * javax/naming/CompositeName.java: New file.
390 * javax/naming/Binding.java: New file.
391 * javax/naming/LinkRef.java: New file.
392 * javax/naming/NameClassPair.java: New file.
393 * javax/naming/Reference.java (addrs, classFactory,
394 classFactoryLocation): New fields.
395 (className): Now protected.
396 (Reference): New constructors.
397 (add): Now public. Implemented.
398 (get(String)): Likewise.
399 (add(int,RefAddr)): New method.
403 (get(int)): Likewise.
405 (getFactoryClassLocation): Likewise.
406 (getFactoryClassName): Likewise.
407 (hashCode): Likewise.
410 (toString): Likewise.
411 * javax/transaction/xa/XAException.java: New file.
412 * javax/transaction/TransactionRolledbackException.java: New file.
413 * javax/transaction/TransactionRequiredException.java: New file.
414 * javax/transaction/InvalidTransactionException.java: New file.
415 * javax/naming/directory/SchemaViolationException.java: Use
416 correct package. Import NamingException.
417 * javax/naming/directory/NoSuchAttributeException.java,
418 javax/naming/directory/InvalidSearchFilterException.java,
419 javax/naming/directory/InvalidSearchControlsException.java,
420 javax/naming/directory/InvalidAttributesException.java,
421 javax/naming/directory/InvalidAttributeValueException.java,
422 javax/naming/directory/InvalidAttributeIdentifierException.java,
423 javax/naming/directory/AttributeModificationException.java,
424 javax/naming/directory/AttributeInUseException.java: Likewise.
425 * javax/naming/directory/InitialDirContext.java (getAttributes):
427 * javax/naming/RefAddr.java (RefAddr): Reindented.
428 (equals): Renamed and reindented.
429 * javax/naming/BinaryRefAddr.java (equals): Renamed and
432 2001-10-24 Tom Tromey <tromey@redhat.com>
434 * java/lang/reflect/Field.java: Made many methods private.
436 * java/sql/Types.java (Types): New constructor.
438 Tue Oct 23 23:52:18 2001 Anthony Green <green@redhat.com>
440 * gnu/gcj/runtime/natSharedLibLoader.cc: Only include dlfcn.h when
443 2001-10-23 Tom Tromey <tromey@redhat.com>
445 * java/lang/reflect/Field.java (Field): New constructor.
446 * java/lang/ClassLoader.java (defineClass(String,byte[],int,int)):
447 Throw ClassFormatError.
449 2001-10-23 Tom Tromey <tromey@redhat.com>
451 * java/util/PropertyResourceBundle.java (handleGetObject): Now
453 * java/util/ListResourceBundle.java (handleGetObject): Now public
456 * java/io/BufferedWriter.java (localFlush): Don't synchronize.
458 2001-10-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
460 * prims.cc (_Jv_Abort): Always print error message using fprintf,
461 don't try to allocate.
462 (_Jv_CreateJavaVM): Set gcj::runtimeInitialized.
463 * include/jvm.h (gcj::runtimeInitialized): New variable declaration.
464 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
465 duplicate class registration with JvFail if the runtime hasn't been
468 * java/io/BufferedWriter (write (String, int, int)): Remove redundant
470 (write (char[], int, int)): Likewise.
472 2001-10-22 Tom Tromey <tromey@redhat.com>
474 * java/util/GregorianCalendar.java (getGregorianChange): Removed
477 2001-10-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
479 * gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
480 * gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
481 * gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
482 * gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in output
485 2001-10-19 Mark Wielaard <mark@klomp.org>
487 * java/lang/Double.java: More Classpath merging
488 (isInfinite): Don't use doubleToLongBits
489 (isNaN (Object)): return v != v
490 (initIDs): make native
491 * java/lang/Float.java: Ditto
492 (isInfinite): Don't use floatToIntBits
493 (isNaN (Object)): return v != v
494 * java/lang/natDouble.cc: add empty initIDs()
496 2001-10-19 Mark Wielaard <mark@klomp.org>
498 * javax/naming/BinaryRefAddr.java: New file
499 * javax/naming/InitialContext.java: Compile fix
500 * javax/naming/InvalidNameException.java: Add comments
501 * javax/naming/Name.java: Ditto
502 * javax/naming/NamingException.java: Implement
503 * javax/naming/OperationNotSupportedException.java: Compile fix
504 * javax/naming/RefAddr.java: Implement
505 * javax/naming/StringRefAddr.java: Add comments and implement
506 * javax/naming/directory/InitialDirContext.java: Compile fix
508 2001-10-18 Tom Tromey <tromey@redhat.com>
510 * java/io/BufferedWriter.java (write(String,int,int)): Correctly
513 * java/security/Security.java (loadProviders): Removed unused
514 `pname' variable. Don't create `File' object. Don't update
516 (providerCount): Removed.
517 (insertProviderAt): Don't use `providerCount'.
518 (addProvider(Provider,int)): Likewise.
519 (removeProvider): Likewise.
520 (addProvider(Provider)): Rewrote.
521 (getProviders): Rewrote.
522 (getProvider): Don't use `providerCount'.
524 2001-10-17 Tom Tromey <tromey@redhat.com>
526 * gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
528 * java/security/SecureRandom.java (setSeed(long)): Don't set seed
529 if secureRandomSpi is not initialized.
531 * Makefile.in: Rebuilt.
532 * Makefile.am (secdir): New macro.
533 (install-data-local): Install new data files.
534 * java/security/classpath.security: New file.
535 * java/security/libgcj.security: New file.
537 * java/security/Security.java (loadProviders): Added `vendor'
539 Load both `classpath' and `java.vm.name' providers.
541 2001-10-17 Anthony Green <green@redhat.com>
543 * java/security/Security.java (loadProviders): Fix bug in how
544 providers are loaded.
546 2001-10-16 Tom Tromey <tromey@redhat.com>
548 * gcj/javaprims.h: Updated class list.
549 * java/util/Hashtable.java: Re-merged with Classpath.
551 2001-10-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
553 * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
555 Eliminate use of C++ static constructors.
556 * interpret.cc: Remove static Utf8Consts. Use namespace gcj.
558 * resolve.cc: Likewise.
559 * defineclass.cc: Likewise.
560 (_Jv_ClassReader::handleClassBegin): Synchronize call to
562 * include/jvm.h (void_signature, clinit_name, init_name, finit_name):
563 Declare in namespace gcj.
564 * java/lang/Class.h (Class): Remove initialization for primitive
566 (friend void _Jv_InitPrimClass): This is in prims.cc.
567 * prims.cc (_Jv_InitPrimClass): Do primitive type initialization
569 (void_signature, clinit_name, init_name, finit_name): Define in
571 (_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and
572 _Jv_InitializeSyncMutex from here. Initialize Utf8 constants.
573 Initialize primitive types.
574 * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
575 initialization routines. Don't synchronize.
576 * java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
579 2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
581 * java/util/HashMap.java (HashEntry.clone): Removed.
582 (HashMap(Map)): Use putAllInternal.
584 (putAllInternal): New method. Efficient counterpart to putAll which
586 * java/util/LinkedHashMap.java (rethread): Removed.
587 (putAllInternal): New method. Clear "head" and "tail".
588 (addEntry): New argument "callRemove". Don't call removeEldestEntry()
589 if callRemove == false.
591 * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
592 * Makefile.in: Rebuilt.
594 2001-10-15 Eric Blake <ebb9@email.byu.edu>
596 * java/util/Collection.java: Updated javadoc.
597 * java/util/Comparator.java: Updated javadoc.
598 * java/util/Enumeration.java: Updated javadoc.
599 * java/util/Iterator.java: Updated javadoc.
600 * java/util/List.java: Updated javadoc.
601 * java/util/ListIterator.java: Updated javadoc.
602 * java/util/Map.java: Updated javadoc.
603 * java/util/RandomAccess.java: New file.
604 * java/util/Set.java: Updated javadoc.
605 * java/util/SortedMap.java: Updated javadoc.
606 * java/util/SortedSet.java: Updated javadoc.
608 2001-10-15 Tom Tromey <tromey@redhat.com>
610 * java/lang/reflect/AccessibleObject.java (checkPermission):
612 Updated copyright information.
614 2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
616 * java/lang/natObject.cc (heavy_lock): Moved fields
617 old_client_data, old_finalization_proc near beginning.
618 (heavy_lock_finalization_proc): Now inline; changed type of
620 (JV_SYNC_TABLE_SZ): Now 2048.
622 (spin): `mp' now global.
623 (heavy_lock_obj_finalization_proc): Updated to correctly handle
624 heavy lock finalization.
625 (remove_all_heavy): New function.
626 (maybe_remove_all_heavy): Likewise.
627 (_Jv_MonitorEnter): Throw exception if object is NULL.
628 (_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
630 * include/jvm.h (_Jv_AllocTraceTwo): Declare.
631 * nogc.cc (_Jv_AllocTraceTwo): New function.
632 * boehm.cc (trace_two_vtable): New global.
633 (_Jv_AllocTraceTwo): New function.
635 2001-10-15 Tom Tromey <tromey@redhat.com>
637 * Makefile.in: Rebuilt.
638 * Makefile.am (awt_java_source_files): Added new file.
639 * java/beans/AppletInitializer.java: New file.
641 * java/net/SocketPermission.java (hostport, actions): Now
644 2001-10-14 Mark Wielaard <mark@klomp.org>
646 * java/lang/Double.java: Partial merge with Classpath
647 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
649 (static): new static block to load native libary (not used in libgcj)
650 (Double (String)): call parseDouble()
651 (byteValue): removed, already defined in superclass Number
652 (shortValue): likewise
653 (valueOf (String)): call new Double(String) directly
654 (compare (double,double)): new 1.4 method
655 (compareTo (Double)): call new compare(double,double) method
656 (initIDs): new private method (not used in libgcj)
657 * java/lang/Float.java: Partial merge with Classpath
658 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
660 (static): new static block to load native libary (not used in libgcj)
661 (Float (String)): call parseFloat()
662 (byteValue): removed, already defined in superclass Number
663 (shortValue): likewise
664 (valueOf (String)): call new Float(String) directly
665 (compare (float,float)): new 1.4 method
666 (compareTo (Float)): call new compare(double,double) method
668 2001-10-13 Tom Tromey <tromey@redhat.com>
670 * java/lang/SecurityManager.java (SecurityManager): Now public.
672 * java/security/AccessController.java (checkPermission): Now
673 throws AccessControlException.
674 * java/security/AllPermission.java: Class now final.
675 * java/security/Permission.java (getName): Now final.
677 (equals): New abstract method.
678 * java/security/PermissionCollection.java (linesep): Now private.
679 * java/security/Permissions.java: Class now final.
680 * java/security/Security.java (Security): New private
682 * java/security/UnresolvedPermission.java: Import
683 java.security.cert.Certificate. Class now final.
684 * java/security/acl/Group.java: Now extends Principal.
685 (isMember): Added Principal argument.
686 * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
688 * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
691 2001-10-12 Tom Tromey <tromey@redhat.com>
693 * Makefile.in: Rebuilt.
694 * Makefile.am (rmi_java_source_files): Added new files.
695 * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
697 * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
698 * gnu/java/rmi/rmic/Compile_gcj.java: New file.
699 * gnu/java/rmi/rmic/CompilerProcess.java: New file.
700 * gnu/java/rmi/rmic/Compiler.java: New file.
702 2001-10-11 Tom Tromey <tromey@redhat.com>
704 * configure: Rebuilt.
705 * configure.in: Recognize --disable-java-awt.
707 2001-10-10 Tom Tromey <tromey@redhat.com>
709 * gnu/gcj/runtime/natFinalizerThread.cc: New file.
710 * java/lang/natRuntime.cc: Include FinalizerThread.h.
711 (runFinalization): Call finalizerReady.
712 * nogc.cc (_Jv_GCInitializeFinalizers): New function.
713 * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
714 (_Jv_CreateJavaVM): Start the finalizer thread.
715 * no-threads.cc: Include InternalError.h.
716 (_Jv_ThreadStart): Throw InternalError.
717 (_Jv_ThreadInitData): Don't throw error if this is not the first
719 * Makefile.in: Rebuilt.
720 * Makefile.am (ordinary_java_source_files): Added
721 FinalizerThread.java.
722 (nat_source_files): Added natFinalizerThread.cc.
723 * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
724 * boehm.cc (_Jv_GCInitializeFinalizers): New function.
725 * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
726 * gnu/gcj/runtime/FinalizerThread.java: New file.
728 2001-10-09 Per Bothner <per@bothner.com>
730 * strtod.c (_strtod_r): Logic to check for missing digits
731 after exponent had 'else' attached to wrong 'if'.
733 2001-10-09 Mark Wielaard <mark@klomp.org>
735 * java/net/SocketImpl.java: Merge with Classpath
737 2001-10-08 Mark Wielaard <mark@klomp.org>
739 * java/net/DatagramSocketImpl.java: Merge with Classpath
741 2001-10-07 Mark Wielaard <mark@klomp.org>
743 * java/net/URLDecoder.java: Remerge with Classpath
744 * java/net/URLEncoder.java: Merge with Classpath
746 2001-10-08 Tom Tromey <tromey@redhat.com>
748 Fix for PR libgcj/4481:
749 * java/io/File.java (getParent): Handle case where path is "/".
750 (normalizePath): Use correct string for UNC leader.
752 2001-10-06 Mark Wielaard <mark@klomp.org>
754 * java/io/BufferedInputStream.java: Merge with Classpath
756 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
758 * defineclass.cc, java/awt/image/ColorModel.java,
759 java/awt/image/SampleModel.java, java/lang/Package.java,
760 java/security/cert/X509Extension.java: Fix spelling errors of
761 "separate" as "seperate", and corresponding spelling errors of
764 2001-10-05 Tom Tromey <tromey@redhat.com>
766 * java/text/DecimalFormat.java (format): Use localized minus sign
767 when generating exponent; never use `+'. Use floor to compute
770 2001-10-05 Mark Wielaard <mark@klomp.org>
772 * java/util/zip/Adler32.java: Merge with Classpath
773 * java/util/zip/CRC32.java: Ditto
774 * java/util/zip/Checksum.java: Ditto
775 * java/util/zip/DataFormatException.java: Ditto
776 * java/util/zip/ZipException.java: Ditto
778 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
780 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
782 2001-10-04 Mark Wielaard <mark@klomp.org>
784 * java/lang/reflect/Modifier.java: Merge with Classpath
786 2001-10-03 Mark Wielaard <mark@klomp.org>
788 * java/io/SequenceInputStream.java: Merge with Classpath
789 * java/io/StringBufferInputStream.java: Ditto
790 * java/util/Collections.java: Remerge with Classpath
792 2001-10-03 Tom Tromey <tromey@redhat.com>
794 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
797 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
799 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
800 * gij.cc (version): Use GCJVERSION.
802 2001-10-02 Mark Wielaard <mark@klomp.org>
804 * Makefile.am (core_java_source_files): add InheritableThreadLocal
805 * Makefile.in: regenerate
806 * gcj/javaprims.h: ditto
807 * java/lang/InheritableThreadLocal.java: new class from Classpath
808 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
809 call InheritableThreadLocal.newChildThread()
811 2001-10-01 Mark Wielaard <mark@klomp.org>
813 * Makefile.am: Add new classes
814 (core_java_source_files): CharSequence
815 (ordinary_java_source_files): Authenticator, PasswordAuthentication
816 * Makefile.in: regenerate
817 * gcj/javaprims.h: ditto
818 * java/lang/CharSequence: new class from Classpath
819 * java/lang/String.java: implements CharSequence
820 (subSequence (int,int)): new method
821 * java/lang/SubString.java: implements CharSequence
822 (subSequence (int,int)): new method
823 remerge comments with Classpath
824 * java/net/Authenticator.java: new class from Classpath
825 * java/net/PasswordAuthentication.java: ditto
827 2001-10-01 Tom Tromey <tromey@redhat.com>
829 * gcj/javaprims.h: Rebuilt class list.
830 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
831 (_Jv_GCCanReclaimSoftReference): New function.
832 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
833 (_Jv_GCCanReclaimSoftReference): Declare.
834 * java/lang/ref/Reference.java (referent): Now a RawData.
835 (create): Renamed from `created'. Added object argument.
836 (Reference): Don't initialize `referent' here.
837 * Makefile.in: Rebuilt.
838 * Makefile.am (nat_source_files): Added new file.
839 * java/lang/ref/natReference.cc: New file.
841 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
842 (_Jv_NewMultiArray): Use it. Check each array dimension.
843 (_Jv_NewMultiArray): Likewise.
844 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
846 * java/lang/reflect/natArray.cc (newInstance): Throw
847 IllegalArgumentException if there are no dimensions.
849 2001-10-01 Mark Wielaard <mark@klomp.org>
851 * java/io/FileWriter.java: Merge with Classpath.
852 * java/io/FilterInputStream.java: Ditto.
853 (mark): no longer synchronized
855 * java/io/FilterOutputStream.java: Merge with Classpath.
856 * java/io/FilterReader.java: Ditto.
857 (mark): no longer synchronized
859 * java/io/FilterWriter.java: Merge with Classpath.
860 * java/io/Writer.java: Ditto.
861 * java/lang/Compiler.java: Ditto.
862 * java/lang/Process.java: Ditto.
863 * java/lang/Void.java: Ditto.
864 * java/net/ContentHandler.java: Ditto.
865 * java/net/DatagramPacket.java: Ditto.
866 * java/net/MulticastSocket.java: Merge comments with Classpath.
868 2001-09-30 Mark Wielaard <mark@klomp.org>
870 * java/io/DataInput.java: Merge with Classpath.
871 * java/io/DataOutput.java: Idem.
872 * java/io/FilenameFilter.java: Idem.
873 * java/io/Serializable.java: Idem.
874 * java/lang/Cloneable.java: Idem.
875 * java/lang/Comparable.java: Idem.
876 * java/lang/Runnable.java: Idem.
877 * java/lang/reflect/Member.java: Idem.
878 * java/net/ContentHandlerFactory.java: Idem.
879 * java/net/FileNameMap.java: Idem.
880 * java/net/SocketImplFactory.java: Idem.
881 * java/net/SocketOptions.java: Idem.
882 * java/net/URLStreamHandlerFactory.java: Idem.
884 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
886 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
887 an uninitialized target class.
889 * gnu/gcj/protocol/file/Connection.java (connect): Throw
890 FileNotFoundException if appropriate.
891 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
892 IOException if we got a file: url with a hostname. Comment out protocol
893 switch to ftp for now.
894 * java/net/URL.java (URL): Include protocol name in exception message
895 when handler can't be found.
897 2001-09-28 Per Bothner <per@bothner.com>
899 * gnu/gcj/runtime/SharedLibLoader.java: New class.
900 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
901 * Makefile.am: Update accordingly.
902 * configure.in: Add AC_CHECK_LIB for dlopen.
903 * include/config.h.in: Add HAVE_DLOPEN.
905 2001-09-29 Jeff Sturm <jsturm@one-point.com>
907 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
908 * Makefile.in: Rebuilt.
910 2001-09-27 Tom Tromey <tromey@redhat.com>
912 * java/util/IdentityHashMap.java (containsKey): Use getHash.
916 (getHash): New method.
917 (tombstone, emptyslot): Now static final.
918 (put): Correctly determine when to rehash, and correctly rehash.
919 (containsKey, remove): Test against table length with `>='.
921 2001-09-26 Tom Tromey <tromey@redhat.com>
923 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
925 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
926 Re-merged with Classpath.
928 * java/io/DataInputStream.java (readChar): Use readFully.
930 (readLong): Likewise.
931 (readShort): Likewise.
932 (readUnsignedShort): Likewise.
934 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
936 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
937 IllegalThreadStateException if process hasn't exited yet.
938 * java/lang/natPosixProcess.cc (exitValue): Removed.
939 (waitFor): Only check thread interrupted status if waitpid() returned
940 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
943 * java/security/cert/X509Extension.java: Merge from classpath.
945 2001-09-22 Anthony Green <green@redhat.com>
947 * java/security/DummyKeyPairGenerator.java (initialize): New
948 method (with AlgorithmParameterSpec argument).
950 2001-09-22 Anthony Green <green@redhat.com>
952 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
954 * gnu/java/security/provider/SHA1PRNG.java: Extend from
956 (engineNextBytes): Fix order of memory copies.
958 2001-09-21 Richard Henderson <rth@redhat.com>
960 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
961 add get_method, set_method, vtable_elt_size, new_vtable.
962 (_Jv_ArrayVTable): Derive from _Jv_VTable.
963 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
964 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
965 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
967 2001-09-21 Richard Henderson <rth@redhat.com>
969 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
970 * java/lang/mprec.c (lo0bits): Fix paren typo.
972 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
974 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
975 blocking IO via pthread_kill().
976 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
977 interrupted status flag only if ::write returned an error.
978 (write (jbyteArray, jint, jint): Likewise.
979 (read (jint)): Likewise.
980 (read (jbyteArray, jint, jint): Likewise.
982 2001-09-19 Anthony Green <green@redhat.com>
984 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
987 2001-09-17 Andreas Jaeger <aj@suse.de>
989 * jni.cc (array_from_valist): Use promoted types for va_arg.
991 2001-09-16 Anthony Green <green@redhat.com>
993 * gnu/java/locale/LocaleInformation.java: Extend
994 LocaleInformation_en_US, not LocaleInformation_en.
996 2001-09-16 Anthony Green <green@redhat.com>
998 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
1000 2001-09-14 Tom Tromey <tromey@redhat.com>
1002 * java/util/TimeZone.java: Updated list of timezones from
1005 * java/lang/CloneNotSupportedException.java: Re-merged with
1008 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1010 * java/io/File.java (normalizePath): Use equals() not '==' for string
1013 * java/util/Hashtable.java (Enumerator): Ensure that if
1014 hasMoreElements() returns true, nextElement() will always return
1015 something even if the table has been modified.
1017 2001-09-12 Tom Tromey <tromey@redhat.com>
1019 * Makefile.in: Rebuilt.
1020 * Makefile.am (class-check): New target.
1022 2001-09-11 Tom Tromey <tromey@redhat.com>
1024 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
1026 2001-09-10 Tom Tromey <tromey@redhat.com>
1028 * java/util/Properties.java (load): Correctly read \u sequences.
1029 Report from Anthony Green.
1031 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
1033 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
1034 and $(MULTIBUILDTOP).
1035 * configure: Re-generate.
1037 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1039 * include/jvm.h (_Jv_AllocRawObj): New prototype.
1040 * boehm.cc (_Jv_AllocRawObj): Implement.
1041 * nogc.cc (_Jv_AllocRawObj): Likewise.
1042 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
1044 2001-09-06 Anthony Green <green@redhat.com>
1046 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
1047 redundant method calls.
1048 (emptyLocale): New private member.
1049 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
1052 2001-09-06 Tom Tromey <tromey@redhat.com>
1054 * java/text/RuleBasedCollator.java (clone): Rewrote.
1055 (RuleBasedCollator(RuleBasedCollator)): Removed.
1056 * java/text/MessageFormat.java: Re-merged from Classpath.
1057 * java/text/DecimalFormat.java: Re-merged from Classpath.
1059 2001-09-06 Anthony Green <green@redhat.com>
1061 * include/jvm.h: Declare _Jv_RegisterResource.
1062 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
1063 gnu/gcj/protocol/core/Connection.java,
1064 gnu/gcj/protocol/core/Handler.java,
1065 gnu/gcj/protocol/core/CoreInputStream.java,
1066 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
1067 * java/net/URL.java (setURLStreamHandler): Use
1068 gnu.gcj.protocol.core.Handler for the core protocol.
1069 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
1070 end of java.class.path.
1071 * Makefile.am (ordinary_java_source_files): Add new java files.
1072 (nat_source_files): Add new native code files.
1073 * Makefile.in: Rebuilt.
1075 2001-09-05 Tom Tromey <tromey@redhat.com>
1077 * java/util/Properties.java: Re-merged from Classpath.
1079 From Eric Blake, via Classpath:
1080 * java/lang/String.java (CaseInsensitiveComparator): New class.
1081 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
1083 * java/util/Date.java: Re-merged with Classpath.
1085 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
1087 2001-09-05 Corey Minyard <minyard@acm.org>
1088 Tom Tromey <tromey@redhat.com>
1090 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
1091 (_Jv_RegisterClassHookDefault): Throw error if a class is
1094 2001-09-05 Tom Tromey <tromey@redhat.com>
1096 * java/lang/natSystem.cc (init_properties): Default locale is
1099 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1101 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
1102 here, DecimalFormat.applyPattern() does not throw it.
1104 2001-09-04 Tom Tromey <tromey@redhat.com>
1106 * java/util/AbstractMap.java: Re-merged with Classpath.
1107 * java/util/IdentityHashMap.java: Re-merged with Classpath.
1109 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
1110 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
1111 gnu/gcj/text/LocaleData_en_US.java: Removed.
1112 * java/text/DateFormatSymbols.java (clone): Use Classpath
1114 (equals): Simplified.
1115 (DateFormatSymbols): Look in gnu.java.locale for information.
1116 (DateFormatSymbols(DateFormatSymbols)): Removed.
1117 (safeGetResource): Removed.
1118 (DateFormatSymbols): Throws MissingResourceException.
1119 (ampmsDefault, erasDefault, localPatternCharsDefault,
1120 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
1121 weekdaysDefault, zoneStringsDefault): Removed.
1122 * java/text/Collator.java (getAvailableLocales): Use modified
1123 Classpath implementation.
1124 (getInstance): Look in gnu.java.locale for information.
1126 * java/text/MessageFormat.java: Reindented.
1128 * java/text/FieldPosition.java: Merged with Classpath.
1129 * java/text/ParsePosition.java: Merged with Classpath.
1130 * java/text/Format.java: Merged with Classpath.
1131 * java/text/StringCharacterIterator.java
1132 (StringCharacterIterator(StringCharacterIterator,int,int)): New
1133 constructor from Classpath.
1134 * java/text/Annotation.java,
1135 java/text/AttributedCharacterIterator.java,
1136 java/text/AttributedString.java,
1137 java/text/AttributedStringIterator.java: New from Classpath.
1138 * java/text/CharacterIterator.java: Copied from Classpath.
1139 * java/text/ChoiceFormat.java: Reindented.
1141 * gnu/java/text/BaseBreakIterator.java,
1142 gnu/java/text/CharacterBreakIterator.java,
1143 gnu/java/text/LineBreakIterator.java,
1144 gnu/java/text/LocaleData_en.java,
1145 gnu/java/text/LocaleData_en_US.java,
1146 gnu/java/text/SentenceBreakIterator.java,
1147 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
1148 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
1150 * java/text/BreakIterator.java (getAvailableLocales): Use
1151 Classpath implementation.
1152 (getInstance): Look in gnu.java.locale for information.
1153 (getCharacterInstance, getLineInstance, getSentenceInstance,
1154 getWordInstance): Look in gnu.java.text for implementations.
1155 * java/text/DecimalFormatSymbols.java: Reindented
1156 (clone): Use Classpath implementation.
1157 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
1158 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
1160 * java/text/DateFormat.java: Merged with Classpath.
1161 (getAvailableLocales): Use Classpath implementation.
1162 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
1163 (computeInstance): Look in gnu.java.locale for information.
1164 * java/text/NumberFormat.java: Reindented.
1165 (computeInstance): Look in gnu.java.locale for information.
1166 (getAvailableLocales): Use implementation from Classpath.
1167 (setMaximumIntegerDigits): Likewise.
1168 (setMinimumIntegerDigits): Likewise.
1169 (setMaximumFractionDigits): Likewise.
1171 * java/text/DecimalFormat.java: Reindented.
1172 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
1173 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
1174 * Makefile.in: Rebuilt.
1175 * Makefile.am (ordinary_java_source_files): Added all new files.
1176 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
1177 * java/security/spec/AlgorithmParameterSpec.java,
1178 java/security/spec/KeySpec.java: Re-merged with Classpath.
1180 Fix for PR libgcj/4213:
1181 * Makefile.am (ordinary_java_source_files): Added new file.
1182 * gnu/gcj/text/LocaleData.java: New file.
1184 2001-09-03 Tom Tromey <tromey@redhat.com>
1186 * java/lang/reflect/natField.cc (set): Allow for case when the
1187 value is null. Fixes PR libgcj/4208.
1189 * gcj/javaprims.h: Regenerated class list.
1190 * java/lang/IllegalThreadStateException.java,
1191 java/lang/InstantiationException.java: Minor comment tweaks to
1192 satisfy libgcj `classes.pl' script.
1194 2001-09-01 Tom Tromey <tromey@redhat.com>
1196 * Makefile.in: Rebuilt.
1197 * Makefile.am (core_java_source_files): Added
1198 UnsupportedClassVersionError.
1199 * java/lang/UnsupportedClassVersionError.java: New file from
1202 * java/io/CharConversionException.java, java/io/EOFException.java,
1203 java/io/FileNotFoundException.java, java/io/IOException.java,
1204 java/io/InterruptedIOException.java,
1205 java/io/ObjectStreamException.java,
1206 java/io/OptionalDataException.java,
1207 java/io/StreamCorruptedException.java,
1208 java/io/SyncFailedException.java,
1209 java/io/UTFDataFormatException.java,
1210 java/io/UnsupportedEncodingException.java,
1211 java/lang/AbstractMethodError.java,
1212 java/lang/ArithmeticException.java,
1213 java/lang/ArrayIndexOutOfBoundsException.java,
1214 java/lang/ArrayStoreException.java,
1215 java/lang/ClassCastException.java,
1216 java/lang/ClassCircularityError.java,
1217 java/lang/ClassFormatError.java,
1218 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
1219 java/lang/Exception.java,
1220 java/lang/ExceptionInInitializerError.java,
1221 java/lang/IllegalAccessError.java,
1222 java/lang/IllegalAccessException.java,
1223 java/lang/IllegalArgumentException.java,
1224 java/lang/IllegalMonitorStateException.java,
1225 java/lang/IllegalStateException.java,
1226 java/lang/IllegalThreadStateException.java,
1227 java/lang/IncompatibleClassChangeError.java,
1228 java/lang/IndexOutOfBoundsException.java,
1229 java/lang/InstantiationError.java,
1230 java/lang/InstantiationException.java,
1231 java/lang/InternalError.java, java/lang/InterruptedException.java,
1232 java/lang/LinkageError.java,
1233 java/lang/NegativeArraySizeException.java,
1234 java/lang/NoClassDefFoundError.java,
1235 java/lang/NoSuchFieldError.java,
1236 java/lang/NoSuchFieldException.java,
1237 java/lang/NoSuchMethodError.java,
1238 java/lang/NoSuchMethodException.java,
1239 java/lang/NullPointerException.java,
1240 java/lang/NumberFormatException.java,
1241 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
1242 java/lang/SecurityException.java,
1243 java/lang/StackOverflowError.java,
1244 java/lang/StringIndexOutOfBoundsException.java,
1245 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
1246 java/lang/UnsatisfiedLinkError.java,
1247 java/lang/UnsupportedOperationException.java,
1248 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
1249 java/lang/reflect/InvocationTargetException.java,
1250 java/net/BindException.java, java/net/ConnectException.java,
1251 java/net/MalformedURLException.java,
1252 java/net/NoRouteToHostException.java,
1253 java/net/ProtocolException.java, java/net/SocketException.java,
1254 java/net/UnknownHostException.java,
1255 java/net/UnknownServiceException.java,
1256 java/text/ParseException.java: Copied from Classpath, thanks to
1257 Mark Wielaard who did the merge.
1259 * java/lang/System.java (getProperty): Use single argument form of
1260 SecurityManager.checkPropertyAccess.
1261 * Makefile.in: Rebuilt.
1262 * Makefile.am (core_java_source_files): Added VMSecurityManager.
1263 * java/lang/VMSecurityManager.java: New file.
1264 * java/lang/SecurityManager.java: Merged with Classpath.
1266 2001-08-31 Per Bothner <per@bothner.com>
1268 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
1269 (_Jv_RegisterClassHookDefault): Likewise.
1270 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
1271 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
1272 (_Jv_RegisterClassHookDefault): New.function.
1273 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
1275 * java/lang/ClassLoader.java (system): Remove static field.
1276 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
1277 directly instead of using it to set the system field.
1278 (loadClass): Use VMClassLoader.instance instead of system field.
1279 (findSystemClass): Similar.
1280 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
1281 than ClassLoader::system which no longer exists.
1282 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
1284 2001-08-31 Tom Tromey <tromey@redhat.com>
1286 * java/io/BufferedReader.java, java/io/ObjectInput.java,
1287 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
1288 Re-merged with Classpath.
1290 Re-merge with Classpath:
1291 * java/util/Comparator (equals): Added.
1292 * java/io/PipedWriter.java (write): Changed argument to `int'.
1294 * java/io/FileDescriptor.java (FileDescriptor()): New
1296 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
1298 * Makefile.in: Rebuilt.
1299 * Makefile.am (ordinary_java_source_files): Removed
1300 EnumerationChain, added DoubleEnumeration.
1301 (nat_source_files): Added natResourceBundle.cc.
1302 * java/util/natResourceBundle.cc: New file.
1303 * gnu/java/util/DoubleEnumeration.java: New file.
1304 * gnu/gcj/util/EnumerationChain.java: Removed.
1305 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
1306 * java/util/ResourceBundle.java: Merged with Classpath.
1307 * java/util/StringTokenizer.java: Merged with Classpath.
1308 * java/util/Locale.java: Merged with Classpath.
1309 * java/util/Random.java: Merged with Classpath.
1310 * java/util/PropertyResourceBundle.java: Merged with Classpath.
1311 * java/util/ListResourceBundle.java: Merged with Classpath.
1312 * java/util/ConcurrentModificationException.java: Re-merged with
1314 * java/util/EmptyStackException.java: Likewise.
1315 * java/util/MissingResourceException.java: Likewise.
1316 * java/util/NoSuchElementException.java: Likewise.
1317 * java/util/TooManyListenersException.java: Likewise.
1319 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
1320 * java/io/OptionalDataException.java: Merged with Classpath.
1322 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
1324 * exception.cc (PERSONALITY_FUNCTION): Simplify
1327 2001-08-31 Tom Tromey <tromey@redhat.com>
1329 * java/io/ByteArrayInputStream.java: Merged with Classpath.
1331 2001-08-30 Tom Tromey <tromey@redhat.com>
1333 * java/io/BufferedReader.java: Re-merged with Classpath.
1335 2001-08-28 Per Bothner <per@bothner.com>
1337 * java/math/BigInteger.java (init(int,Random)): New method.
1338 Move body of constructor <init>(int,Random)) here.
1339 Re-write it to avoid constructing unneeded temporaries.
1340 (<init>(int,int,Random)): Use new init method to avoid constructing
1341 extra temporary BigIntegers.
1343 2001-08-27 Tom Tromey <tromey@redhat.com>
1345 * java/rmi/activation/Activatable.java,
1346 java/rmi/activation/ActivateFailedException.java,
1347 java/rmi/activation/ActivationDesc.java,
1348 java/rmi/activation/ActivationException.java,
1349 java/rmi/activation/ActivationGroup.java,
1350 java/rmi/activation/ActivationGroupDesc.java,
1351 java/rmi/activation/ActivationGroupID.java,
1352 java/rmi/activation/ActivationID.java,
1353 java/rmi/activation/ActivationInstantiator.java,
1354 java/rmi/activation/ActivationMonitor.java,
1355 java/rmi/activation/ActivationSystem.java,
1356 java/rmi/activation/Activator.java,
1357 java/rmi/activation/UnknownGroupException.java,
1358 java/rmi/activation/UnknownObjectException.java,
1359 java/rmi/AccessException.java,
1360 java/rmi/AlreadyBoundException.java,
1361 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
1362 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
1363 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
1364 java/rmi/NotBoundException.java,
1365 java/rmi/RMISecurityException.java,
1366 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
1367 java/rmi/RemoteException.java, java/rmi/ServerError.java,
1368 java/rmi/ServerException.java,
1369 java/rmi/ServerRuntimeException.java,
1370 java/rmi/StubNotFoundException.java,
1371 java/rmi/UnexpectedException.java,
1372 java/rmi/UnknownHostException.java,
1373 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
1374 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
1375 java/rmi/registry/LocateRegistry.java,
1376 java/rmi/registry/Registry.java,
1377 java/rmi/registry/RegistryHandler.java,
1378 java/rmi/server/ExportException.java,
1379 java/rmi/server/LoaderHandler.java,
1380 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
1381 java/rmi/server/Operation.java,
1382 java/rmi/server/RMIClassLoader.java,
1383 java/rmi/server/RMIClientSocketFactory.java,
1384 java/rmi/server/RMIFailureHandler.java,
1385 java/rmi/server/RMIServerSocketFactory.java,
1386 java/rmi/server/RMISocketFactory.java,
1387 java/rmi/server/RemoteCall.java,
1388 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
1389 java/rmi/server/RemoteServer.java,
1390 java/rmi/server/RemoteStub.java,
1391 java/rmi/server/ServerCloneException.java,
1392 java/rmi/server/ServerNotActiveException.java,
1393 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
1394 java/rmi/server/SkeletonMismatchException.java,
1395 java/rmi/server/SkeletonNotFoundException.java,
1396 java/rmi/server/SocketSecurityException.java,
1397 java/rmi/server/UID.java,
1398 java/rmi/server/UnicastRemoteObject.java,
1399 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
1400 gnu/java/rmi/dgc/DGCImpl_Skel.java,
1401 gnu/java/rmi/dgc/DGCImpl_Stub.java,
1402 gnu/java/rmi/registry/RegistryImpl.java,
1403 gnu/java/rmi/registry/RegistryImpl_Skel.java,
1404 gnu/java/rmi/registry/RegistryImpl_Stub.java,
1405 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
1406 gnu/java/rmi/server/ProtocolConstants.java,
1407 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
1408 gnu/java/rmi/server/RMIHashes.java,
1409 gnu/java/rmi/server/RMIObjectInputStream.java,
1410 gnu/java/rmi/server/RMIObjectOutputStream.java,
1411 gnu/java/rmi/server/UnicastConnection.java,
1412 gnu/java/rmi/server/UnicastConnectionManager.java,
1413 gnu/java/rmi/server/UnicastRef.java,
1414 gnu/java/rmi/server/UnicastRemoteCall.java,
1415 gnu/java/rmi/server/UnicastRemoteStub.java,
1416 gnu/java/rmi/server/UnicastServer.java,
1417 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
1418 Kaffe. Relabelled classes to fit into Classpath tree.
1419 * Makefile.in: Rebuilt.
1420 * Makefile.am (rmi_java_source_files): New macro.
1421 (ordinary_java_source_files): Reference it.
1422 (bin_PROGRAMS): Added rmic and rmiregistry.
1423 (rmic_SOURCES): New macro.
1424 (EXTRA_rmic_SOURCES): Likewise.
1425 (rmic_LDFLAGS): Likewise.
1426 (rmic_LINK): Likewise.
1427 (rmic_LDADD): Likewise.
1428 (rmic_DEPENDENCIES): Likewise.
1429 (rmiregistry_SOURCES): New macro.
1430 (EXTRA_rmiregistry_SOURCES): Likewise.
1431 (rmiregistry_LDFLAGS): Likewise.
1432 (rmiregistry_LINK): Likewise.
1433 (rmiregistry_LDADD): Likewise.
1434 (rmiregistry_DEPENDENCIES): Likewise.
1436 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1438 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
1440 * Makefile.am: New friends for java/lang/Thread.h.
1441 * prims.cc (runFirst): Removed.
1442 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
1443 (_Jv_RunMain): Now takes either a klass or class name parameter.
1444 Create a gnu.gcj.runtime.FirstThread and attach the native thread
1445 to that, then run it using _Jv_ThreadRun. Remove special handling of
1446 jar files, instead pass is_jar parameter through to FirstThread.
1447 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
1448 of _Jv_AttachCurrentThread.
1449 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
1450 (run): New method. Take care of looking up main class manifest
1451 attribute and calling forName if necessary. Then call call_main.
1452 (call_main): New native method.
1453 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
1454 relocated from prims.cc. Look up and call main method.
1455 * java/lang/Thread.java (run_): Removed.
1456 * java/lang/natThread.cc (run_): Renamed to...
1457 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
1458 (_Jv_NotifyThreadStart): here. New function.
1459 (countStackFrames, destroy, resume, suspend, stop): Throw
1460 UnsupportedOperationExceptions rather than JvFail'ing.
1461 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
1462 Existing version wraps new variant.
1465 2001-08-23 Tom Tromey <tromey@redhat.com>
1467 * java/lang/reflect/Field.java (toString): Use
1468 Method.appendClassName.
1469 * java/lang/reflect/Constructor.java (toString): Use
1470 Method.appendClassName.
1471 * java/lang/reflect/Method.java: Reindented.
1472 (appendClassName): New method.
1474 * defineclass.cc (handleMethod ): Initialize `throws' field of
1476 (read_one_method_attribute): Handle Exceptions attribute.
1477 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
1478 (ObjectClass): Removed.
1479 (getType): Compute `exception_types'.
1480 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
1482 2001-08-21 Anthony Green <green@redhat.com>
1484 * java/lang/natClassLoader.cc (findClass): Search for
1485 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
1487 2001-08-21 Jeff Sturm <jsturm@one-point.com>
1489 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
1492 2001-08-20 Tom Tromey <tromey@redhat.com>
1494 * java/awt/GridBagConstraints.java: Removed comment.
1496 * jni.cc (nathash, nathash_count, nathash_size): New globals.
1497 (DELETED_ENTRY): New define.
1498 (hash): New function.
1499 (nathash_find_slot): Likewise.
1500 (natrehash): Likewise.
1501 (nathash_add): Likewise.
1502 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
1504 (nathash_find): New function.
1505 (_Jv_LookupJNIMethod): Use it. Synchronize body.
1506 (call): Synchronize around assignment.
1508 2001-08-17 Jeff Sturm <jsturm@one-point.com>
1510 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
1511 starting from zero offset.
1513 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1515 * boehm.cc: Include gc_local_alloc.h if appropriate.
1516 (GC_GENERIC_MALLOC): Don't define.
1517 (MAYBE_MARK): Redefine for GC 6.0.
1518 (_Jv_MarkObj): Mark class differently.
1519 (_Jv_AllocArray): Use GC_generic_malloc.
1521 2001-08-17 Mark J Roberts <mjr@anarcast.net>
1523 * java/math/BigInteger.java (randBytes): New method.
1524 (BigInteger(int,Random)): Use randBytes.
1526 2001-08-17 Tom Tromey <tromey@redhat.com>
1528 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
1530 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1532 * BigInteger.java: fix right shifts by nonzero multiples of 32.
1534 2001-08-15 Tom Tromey <tromey@redhat.com>
1536 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
1537 (local_ref_table, global_ref_table): Now IdentityHashMap.
1538 (_Jv_JNI_Init): Updated for new types.
1539 (mark_for_gc): Likewise.
1540 (unmark_for_gc): Likewise.
1541 * gcj/javaprims.h: Rebuilt class list.
1542 * Makefile.in: Rebuilt.
1543 * Makefile.am (core_java_source_files): Added new file.
1544 * java/util/IdentityHashMap.java: New file.
1546 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
1549 2001-08-09 Tom Tromey <tromey@redhat.com>
1551 * java/awt/image/SampleModel.java (getPixel): Set correct array
1552 element. From Chris Meyer.
1554 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
1556 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
1557 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
1559 2001-08-06 Tom Tromey <tromey@redhat.com>
1561 * java/io/InputStreamReader.java (refill): Only call refill on
1562 BufferedInputStream when appropriate constraints are met.
1564 2001-08-05 Tom Tromey <tromey@redhat.com>
1566 * java/io/StringWriter.java: Merged with Classpath.
1567 * java/io/InputStream.java: Merged with Classpath.
1568 * java/io/OutputStream.java: Merged with Classpath.
1569 * java/io/PushbackInputStream.java: Merged with Classpath.
1570 * java/io/CharArrayReader.java: Merged with Classpath.
1571 * java/io/CharArrayWriter.java: Merged with Classpath.
1573 2001-08-02 Tom Tromey <tromey@redhat.com>
1575 * prims.cc (JNI_OnLoad): Don't declare.
1576 (_JNI_OnLoad): Don't define.
1577 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
1579 2001-08-02 Tom Tromey <tromey@redhat.com>
1581 * java/io/RandomAccessFile.java (seek): Let seek go past end of
1583 (skipBytes): Don't fail if seeking past end of file.
1584 * java/io/FileInputStream.java (skip): Don't fail if seeking past
1586 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
1588 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
1590 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
1592 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
1594 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
1596 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
1597 to initialize global_ref_table/local_ref_table.
1599 2001-08-02 Tom Tromey <tromey@redhat.com>
1601 * configure: Rebuilt.
1602 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
1605 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1607 * include/posix.h (_POSIX_PII_SOCKET): Define.
1608 * configure.in (HAVE_SOCKLEN_T): Define.
1609 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
1611 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
1612 (java::net::PlainSocketImpl::accept): Use it.
1613 Fixes PRs libgcj/3694, libgcj/3696.
1615 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
1616 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
1617 * configure, include/config.h.in: Regenerate.
1618 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
1619 (mcastGrp): Likewise.
1620 (java::net::PlainDatagramSocketImpl::setOption): Guard against
1621 missing IPV6_MULTICAST_IF.
1622 Fixes PR libgcj/3694.
1624 2001-08-01 Jeff Sturm <jsturm@one-point.com>
1626 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
1628 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
1630 * Makefile.in: Rebuilt.
1631 * Makefile.am (GCJLINK): Added --tag=GCJ.
1632 (LIBLINK): Likewise.
1634 2001-07-30 Tom Tromey <tromey@redhat.com>
1636 * java/util/Date.java: Re-merged with Classpath.
1638 2001-07-30 Jeff Sturm <jsturm@one-point.com>
1640 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
1641 (_Jv_bind): New static function.
1642 (bind): Use _Jv_bind.
1643 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1644 (_Jv_bind, _Jv_connect): New static functions.
1645 (bind): Use _Jv_bind.
1646 (connect): Use _Jv_connect.
1648 2001-07-30 Tom Tromey <tromey@redhat.com>
1649 Corey Minyard <minyard@acm.org>
1651 * gnu/gcj/convert/natIconv.cc (done): New methods.
1652 * gnu/gcj/convert/Output_iconv.java (done): New method.
1653 * gnu/gcj/convert/Input_iconv.java (done): New method.
1654 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1656 (getDefaultEncodingClass): Removed.
1657 (getDefaultEncoder): Use getEncoder.
1659 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1661 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1663 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1665 (getDefaultDecodingClass): Removed.
1666 (getDefaultDecoder): Use getDecoder.
1667 (getDecoder): Look up decoder in cache.
1669 * java/lang/natString.cc (init): Call `done' on converter.
1670 (getBytes): Likewise.
1672 2001-07-30 Tom Tromey <tromey@redhat.com>
1674 * java/lang/Integer.java: Merged with Classpath.
1676 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1678 * java/util/GregorianCalendar.java (GregorianCalendar): Call
1679 setTimeInMillis() to set the default/current time.
1681 2001-07-29 Mark Wielaard <mark@klomp.org>
1683 * HACKING: add description on updating namespace
1685 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1687 * java/util/Calendar.java (set): Never recompute fields here. They
1688 will already be set if someone set time explicitly, and it can cause
1689 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1690 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1691 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1693 * java/text/SimpleDateFormat.java (defaultCentury): New field.
1694 (readObject): Call set2DigitYearStart if appropriate so that
1695 defaultCentury is calculated.
1696 (SimpleDateFormat): Don't bother clearing calendar here. Call
1697 computeCenturyStart().
1698 (set2DigitYearStart): Calculate and set defaultCentury.
1699 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1701 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1702 2 numeric digits, use the 80-20 heuristic to parse the value into a
1703 default century based on defaultCenturyStart.
1704 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1706 2001-07-25 Tom Tromey <tromey@redhat.com>
1708 * Makefile.in: Rebuilt.
1709 * Makefile.am (libgcj.jar): Correctly fail when bytecode
1712 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1714 * prims.cc (_JNI_OnLoad): New function.
1715 (JNI_OnLoad): Use it.
1716 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1718 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1720 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1721 Makefile.in: Regenerate.
1723 2001-07-24 Tom Tromey <tromey@redhat.com>
1725 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1728 2001-07-23 Tom Tromey <tromey@redhat.com>
1730 * gcj/javaprims.h: Rebuilt class list.
1731 * Makefile.in: Rebuilt.
1732 * Makefile.am (core_java_source_files): Added VMClassLoader.
1733 * java/lang/VMClassLoader.java: New file.
1734 * java/lang/Boolean.java: Merged with Classpath.
1735 * java/lang/Byte.java: Merged with Classpath.
1736 * java/lang/Integer.java: Merged with Classpath.
1737 * java/lang/Long.java: Merged with Classpath.
1738 * java/lang/Number.java: Merged with Classpath.
1739 * java/lang/Short.java: Merged with Classpath.
1741 2001-07-22 Jeff Sturm <jsturm@one-point.com>
1743 * configure.host: Enable hash synchronization for alpha*-*.
1744 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1746 * java/lang/natObject.cc (compare_and_swap, release_set,
1747 compare_and_swap_release): Added inline functions for alpha.
1749 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1751 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1752 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1753 back to old RFC 2133 variants if missing.
1755 2001-07-18 Tom Tromey <tromey@redhat.com>
1757 * java/io/natFileWin32.cc (_access): Renamed.
1759 * java/io/natFile.cc (_access): Renamed.
1761 * java/io/File.java (access, stat): Add leading `_' to name.
1762 Updated all callers.
1764 2001-07-18 Tom Tromey <tromey@redhat.com>
1767 * libgcj.spec.in (*lib): Added LIBICONV.
1768 * configure: Rebuilt.
1769 * configure.in: Call AM_ICONV. Don't check for iconv function.
1770 Add parameters to JV_HASH_SYNCHRONIZATION define.
1771 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1773 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1775 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1776 not by setting its size field.
1778 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1780 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1783 2001-07-12 Tom Tromey <tromey@redhat.com>
1784 David Brownell <david-b@pacbell.net>
1786 Fix for PR libgcj/3426:
1787 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1789 (read): Throw exception if character conversion fails.
1790 * java/io/BufferedInputStream.java (refill): Now package-private.
1791 * java/io/InputStreamReader.java (ready): Simplified.
1792 (refill): New method.
1795 2001-07-12 Tom Tromey <tromey@redhat.com>
1797 Report from Henner Zeller:
1798 * java/io/FileOutputStream.java (FileOutputStream): Throw
1799 FileNotFoundException, not IOException.
1801 2001-07-10 Anthony Green <green@redhat.com>
1803 * Makefile.in: Rebuilt.
1804 * Makefile.am: Add new files.
1805 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1806 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1807 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1808 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1809 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1810 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1811 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1812 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1813 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1814 org/w3c/dom/ranges/DocumentRange.java,
1815 org/w3c/dom/ranges/Range.java,
1816 org/w3c/dom/ranges/RangeException.java,
1817 org/w3c/dom/traversal/DocumentTraversal.java,
1818 org/w3c/dom/traversal/NodeFilter.java,
1819 org/w3c/dom/traversal/NodeIterator.java,
1820 org/w3c/dom/traversal/TreeWalker.java,
1821 org/xml/sax/ext/DeclHandler.java,
1822 org/xml/sax/ext/LexicalHandler.java,
1823 org/xml/sax/helpers/AttributeListImpl.java,
1824 org/xml/sax/helpers/AttributesImpl.java,
1825 org/xml/sax/helpers/DefaultHandler.java,
1826 org/xml/sax/helpers/LocatorImpl.java,
1827 org/xml/sax/helpers/NamespaceSupport.java,
1828 org/xml/sax/helpers/ParserAdapter.java,
1829 org/xml/sax/helpers/ParserFactory.java,
1830 org/xml/sax/helpers/XMLFilterImpl.java,
1831 org/xml/sax/helpers/XMLReaderAdapter.java,
1832 org/xml/sax/helpers/XMLReaderFactory.java,
1833 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1834 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1835 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1836 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1837 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1838 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1839 org/xml/sax/SAXNotRecognizedException.java,
1840 org/xml/sax/SAXNotSupportedException.java,
1841 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1842 org/xml/sax/XMLReader.java: New files.
1844 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1846 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1847 * Makefile.in: Regenerate.
1848 * java/lang/ThreadLocal.java: Initial import.
1850 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1852 * Makefile.am (libgcj.jar): Don't recursively make
1853 built_java_source_files. Avoid long command lines.
1854 Don't change to $(srcdir) to invoke javac.
1855 (libgcj.la, libgcjx.la); Avoid long command lines.
1856 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1857 * Makefile.in: Rebuilt.
1859 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1861 * include/i386-signal.h: Don't do anything with unsigned divide
1862 overflow except throw an exception.
1864 2001-07-05 Tom Tromey <tromey@redhat.com>
1867 * java/lang/Class.h (Class(void)): Now private. Removed
1868 implementation. From dmorsberger@sensysdl.com.
1870 2001-07-02 Tom Tromey <tromey@redhat.com>
1872 Fix for PR bootstrap/3281:
1873 * aclocal.m4, configure: Rebuilt.
1874 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1875 Correctly compute libgcj_basedir.
1876 (mkinstalldirs): Define and subst.
1878 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1881 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1884 2001-06-27 Tom Tromey <tromey@redhat.com>
1886 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1889 2001-06-25 Tom Tromey <tromey@redhat.com>
1891 * scripts/encodings.pl: Generate lower-case names. Updated URL
1892 for `character-sets' file.
1893 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1895 Rebuilt list of aliases.
1897 2001-06-25 Tom Tromey <tromey@redhat.com>
1899 * java/io/natFileDescriptorPosix.cc (open): Change error message
1900 formatting. From David Brownell.
1902 2001-06-21 Tom Tromey <tromey@redhat.com>
1904 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1907 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1909 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1910 extraneous/malformed sign word.
1912 2001-06-15 Tom Tromey <tromey@redhat.com>
1914 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1916 2001-06-15 Tom Tromey <tromey@redhat.com>
1918 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1919 NULL if no library on the list has the symbol.
1920 (init): Call add_library on the program itself.
1921 * prims.cc (JvRunMain): Initialize Runtime before searching for
1923 (_Jv_RunMain): Likewise.
1925 2001-06-15 Tom Tromey <tromey@redhat.com>
1927 * jni.cc (ClassClass): Removed; updated all users.
1928 (ObjectClass): Likewise.
1929 (ThrowableClass): Likewise.
1930 (MethodClass): Likewise.
1931 (ThreadGroupClass): Likewise.
1932 (local_ref_table): Renamed from `ref_table'.
1933 (global_ref_table): New global.
1934 (_Jv_JNI_Init): Initialize both ref tables.
1935 (mark_for_gc): Added `ref_table' parameter.
1936 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1938 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1939 (_Jv_JNI_DeleteGlobalRef): Likewise.
1940 (_Jv_JNI_DeleteLocalRef): Likewise.
1941 (_Jv_JNI_NewLocalRef): Likewise.
1942 (_Jv_JNI_PopLocalFrame): Likewise.
1943 (_Jv_JNI_GetStringChars): Likewise.
1944 (_Jv_JNI_ReleaseStringChars): Likewise.
1945 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1946 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1948 2001-06-14 Tom Tromey <tromey@redhat.com>
1950 Fix for PR libgcj/3144:
1951 * java/util/Date.java: Merged with Classpath.
1953 2001-06-12 Tom Tromey <tromey@redhat.com>
1955 * aclocal.m4, configure: Rebuilt.
1956 * acinclude.m4: Find configure.host in srcdir.
1958 2001-06-07 Tom Tromey <tromey@redhat.com>
1960 Fix for PR libgcj/3059:
1961 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1962 * Makefile.in: Rebuilt.
1963 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1965 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1967 * exception.cc (cstdlib): Replaces stdlib.h.
1968 (_Jv_Throw): Use std::abort().
1969 (PERSONALITY_FUNCTION): Likewise.
1971 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1973 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1974 nothing, as in autoconf 2.50.
1975 * aclocal.m4, configure: Rebuilt.
1977 2001-06-08 Tom Tromey <tromey@redhat.com>
1979 * configure: Rebuilt.
1980 * configure.in: Compute new aux dir using `pwd'.
1982 2001-06-07 Tom Tromey <tromey@redhat.com>
1984 For PR bootstrap/3075:
1985 * configure, aclocal.m4, Makefile.am: Rebuilt.
1986 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1987 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1988 relative to libgcj_basedir.
1989 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1990 AC_CANONICAL_SYSTEM here.
1991 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1993 ($(extra_headers)): New target.
1995 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1996 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1998 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1999 table index is within allowed bounds. Ensure that we don't try to access
2000 class itable at a negative offset. Avoid an ancestor table lookup if
2001 source is a primitive type class.
2002 (isInstance): Remove redundant isPrimitive() check.
2004 2001-06-04 Tom Tromey <tromey@redhat.com>
2006 * java/security/PublicKey.java: Extend Key.
2007 * java/security/PrivateKey.java: Extend Key.
2009 2001-06-02 Anthony Green <green@redhat.com>
2011 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
2012 alternate when USE_LTDL not defined.
2014 2001-06-02 Anthony Green <green@redhat.com>
2016 * configure: Rebuild.
2017 * configure.in: Remove data_start hack.
2018 * libgcj.spec.in: Ditto.
2019 * Makefile.in: Rebuild.
2020 * Makefile.am: Ditto.
2021 * libgcjdata.c: Remove.
2023 2001-06-02 Anthony Green <green@redhat.com>
2025 * configure: Rebuild.
2026 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
2027 --without-libffi option. Tweak --disable-java-net processing.
2028 * Makefile.in: Rebuild.
2029 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
2030 * include/config.h.in: Rebuild.
2031 * acconfig.h (USE_LIBFFI): Define.
2032 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
2034 2001-06-02 Anthony Green <green@redhat.com>
2036 * configure: Rebuilt.
2037 * configure.in: Test for sigaction on native builds.
2038 * prims.cc: Check HAVE_SIGACTION.
2039 * include/config.h.in: Rebuilt.
2041 2001-05-31 Jeff Sturm <jsturm@one-point.com>
2043 * natFile.cc (get_entry): Removed functions.
2044 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
2045 Allocate enough storage for d_name if using readdir_r.
2047 2001-05-31 Tom Tromey <tromey@redhat.com>
2049 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
2051 (write): Loop until write completes. From Corey Minyard.
2053 2001-05-29 Laurent Guerby <guerby@acm.org>
2055 * java/awt/geom/Rectangle2D.java: fix doc typo.
2057 2001-05-31 Tom Tromey <tromey@redhat.com>
2059 * java/sql/DriverManager.java (getDrivers): Handle case where
2060 driver's class loader is null. From Corey Minyard.
2062 2001-05-29 Tom Tromey <tromey@redhat.com>
2064 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
2066 * configure: Rebuilt.
2067 * configure.in: Only add multilib support code if we just rebuilt
2070 2001-05-29 Andrew Haley <aph@redhat.com>
2072 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
2073 pointer: the dwarf unwinder in libgcc will do everything that's
2075 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
2076 more than we absolutely need to.
2077 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
2078 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
2080 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
2082 * configure: Rebuilt.
2083 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
2085 (SIGNAL_HANDLER): Use siginfo style handler.
2086 (INIT_SEGV): Likewise.
2087 (INIT_FPE): Likewise.
2088 * include/ppc-signal.h: Delete whole file.
2090 2001-05-24 Tom Tromey <tromey@redhat.com>
2092 * java/lang/natString.cc (init): Throw
2093 ArrayIndexOutOfBoundsException.
2094 (getChars): Likewise.
2095 (getBytes): Likewise.
2096 (valueOf): Likewise.
2098 * configure.in: Only allow hash synchronization when POSIX threads
2100 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
2101 of sync info object.
2103 2001-05-23 Tom Tromey <tromey@redhat.com>
2105 * Makefile.in: Rebuilt.
2106 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
2108 Revert patch of 2001-05-21:
2109 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
2110 (libgcj_la_LIBADD): Likewise.
2111 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
2112 (libgcjx_la_LIBADD): Likewise.
2114 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
2115 * gcj/Makefile.in: Rebuilt.
2116 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
2117 * gcj/javaprims.h: Include gcj/libgcj-config.h.
2118 * gcj/libgcj-config.h.in: New file.
2119 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
2120 * configure: Rebuilt.
2121 * configure.in: Enable hash synchronization by default on some
2123 (HASH_SYNC_SPEC): New subst.
2124 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
2125 Correctly use `test -z' instead of `test -n' in a couple places.
2126 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
2128 * configure.host (enable_java_net_default): Initialize.
2129 (enable_hash_synchronization_default): New variable.
2131 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
2133 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
2134 synchronization in use.
2135 (_Jv_MarkArray): Likewise.
2136 (_Jv_AllocBytes): Don't check return result.
2137 (handle_out_of_memory): New function.
2138 (_Jv_InitGC): Set GC_oom_fn.
2139 (trace_one_vtable): New global.
2140 (_Jv_AllocTraceOne): New function.
2141 * configure.in: Added --enable-hash-synchronization.
2142 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
2143 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
2144 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
2145 (_Jv_AllocArray): Likewise.
2146 (_Jv_AllocBytes): Likewise.
2147 (_Jv_AllocPtrFreeObject): New function.
2148 (_Jv_AllocTraceOne): Likewise.
2149 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
2151 (self_cache): New global.
2152 (_Jv_ThreadSelf_out_of_line): New function.
2153 * prims.cc (_Jv_AllocBytesChecked): Removed.
2154 (_Jv_ThrowNoMemory): New function.
2155 (_Jv_AllocObject): Don't check for null return from allocator.
2156 (_Jv_NewObjectArray): Likewise.
2157 (_Jv_AllocPtrFreeObject): New function.
2158 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
2159 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
2160 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
2161 * include/boehm-gc.h (_Jv_AllocObj): Define.
2162 (_Jv_AllocPtrFreeObj): Define.
2163 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
2164 (_Jv_ThrowNoMemory): Declare.
2165 (_Jv_AllocTraceOne): Declare.
2166 (_Jv_AllocBytesChecked): Removed.
2167 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
2168 _Jv_MutexUnlock): Handle LOCK_DEBUG.
2169 (_Jv_ThreadSelf): Handle case where system pthread_self() is
2171 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
2173 * java/lang/Object.h (sync_info): Conditional upon presence of
2174 hash synchronization.
2175 * java/lang/natObject.cc: Much new code to handle thin locks and
2176 hash synchronization.
2177 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
2180 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
2182 * gij.cc (version): Update copyright year.
2184 2001-05-22 Anthony Green <green@redhat.com>
2186 * configure.in: Tweak canadian cross test, and don't redefine GCJ
2189 2001-05-21 Per Bothner <per@bothner.com>
2191 Implement invocation interface; don't create new thread for main.
2192 * java/lang/Thread.java (gen_name): Make native.
2193 (<init>(Thread,THreadGroup,Runnable,String)): New private
2194 constructor, used by other constructors, and _Jv_AttachCurrentThread.
2195 * java/lang/natThread.cc (gen_name): New implementation.
2196 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
2197 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
2198 (_Jv_CreateJavaVM): New runtime initialization procedure.
2199 (runFirst): New proecdure - mostly code from old FirstThread::run.
2200 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
2201 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
2202 JvDetachCurrentThread): New inline wrappers.
2203 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
2204 _Jv_DetachCurrentThread): New declarations.
2205 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
2206 (getMain): new static method.
2207 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
2208 by runFirst in prims.cc.
2209 (java/lang/Thread.h): Update for new invocation interface.
2210 * include/posix-threads.h (_Jv_ThreadRegister,
2211 _Jv_ThreadUnRegister): New declarations.
2212 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2213 (really_start): Use new _Jv_ThreadRegister.
2214 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
2215 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
2216 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
2217 Complain of called when _Jv_OnlyThread already set.
2218 (_Jv_ThreadStart): Always JvFail.
2219 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
2220 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
2221 * win32-threads.cc (struct starter): Remove objet field -
2222 we use _Jv_Thread_t's new thread_obj field instead.
2223 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
2224 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2225 (really_start): Use new _Jv_ThreadRegister.
2226 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
2227 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
2228 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
2229 Removed - no longer needed with new invocation interface.
2230 * Makefile.am: Update for removed/added files.
2232 2001-05-21 Per Bothner <per@bothner.com>
2234 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
2235 (libgcj_la_LIBADD): Likewise.
2236 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
2238 2001-05-21 Per Bothner <per@bothner.com>
2240 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
2241 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
2242 taken from old Integer.toString code.
2243 (Integer::valueOf): Use _Jv_FormatInt.
2244 * java/lang/Integer.java (toString): Just use call String.valueOf.
2245 * java/lang/Long.java (toString): Fix typo in comment.
2246 * java/lang/String.java (valueOf(int)): Make native.
2247 * java/lang/StringBuffer.java (append(int)): Make native.
2248 * java/lang/natStringBuffer.cc: New file, for append(jint).
2249 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
2251 2001-05-21 Tom Tromey <tromey@redhat.com>
2253 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
2255 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
2257 * include/dwarf2-signal.h: New file.
2258 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
2259 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
2260 * configure: Rebuilt.
2262 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2264 * configure.in: Update boehm-gc include dir for new GC version.
2265 * configure: Rebuilt.
2266 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
2268 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
2269 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
2270 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
2273 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
2275 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
2276 (_Jv_MutexInit): Likewise.
2278 2001-05-18 Tom Tromey <tromey@redhat.com>
2280 * Makefile.in: Rebuilt.
2281 * Makefile.am (awt_java_source_files): Added Polygon.java.
2283 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2285 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
2286 * gcj/javaprims.h: ... here.
2287 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
2289 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
2291 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
2292 with length of ioffset table.
2293 (_Jv_IsAssignableFrom): Likewise.
2295 2001-05-17 Per Bothner <per@bothner.com>
2297 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
2299 2001-05-16 Tom Tromey <tromey@redhat.com>
2301 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
2304 2001-05-15 Tom Tromey <tromey@redhat.com>
2306 * java/util/GregorianCalendar.java (computeTime): Only call
2309 2001-05-14 Tom Tromey <tromey@redhat.com>
2311 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
2312 ZONE_OFFSET just before computing the time.
2314 2001-05-12 Zack Weinberg <zackw@stanford.edu>
2316 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
2317 * Makefile.in: Regenerate (by hand).
2318 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
2319 * doc/cni.sgml: Document #pragma GCC java_exceptions.
2321 2001-05-11 Richard Henderson <rth@redhat.com>
2323 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
2324 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
2326 2001-05-11 Richard Henderson <rth@redhat.com>
2328 * exception.cc: Include unwind-pe.h. Remove all pointer
2331 2001-05-10 Tom Tromey <tromey@redhat.com>
2333 * Makefile.in: Rebuilt.
2334 * Makefile.am (awt_java_source_files): Added Polygon.java.
2335 * java/awt/Polygon.java: New file.
2337 * java/awt/geom/AffineTransform.java
2338 (setToRotation(double,double,double)): New method.
2339 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
2340 (setToShear): Likewise.
2342 2001-05-10 Tom Tromey <tromey@redhat.com>
2344 * java/util/GregorianCalendar.java: Imported from Classpath.
2345 * gnu/java/locale/LocaleInformation_nl.java: New file from
2347 * gnu/java/locale/LocaleInformation_en.java: Likewise.
2348 * gnu/java/locale/LocaleInformation_de.java: Likewise.
2349 * gnu/java/locale/LocaleInformation.java: Likewise.
2350 * natGregorianCalendar.cc: Removed.
2351 * Makefile.in: Rebuilt.
2352 * Makefile.am (nat_source_files): Removed
2353 natGregorianCalendar.cc.
2355 2001-05-10 Tom Tromey <tromey@redhat.com>
2357 * java/text/SimpleDateFormat.java (computeCenturyStart): New
2359 (defaultCenturyStart): Use it.
2360 (readObject): Likewise.
2361 (SimpleDateFormat): Clear the calendar. Set the grouping on the
2363 (parse): Copy the calendar before modifying it. Correctly handle
2366 * java/util/Calendar.java (clear): Set field value(s) to 0.
2368 2001-05-10 Jeff Sturm <jsturm@one-point.com>
2370 * Calendar.java (get): Clear areFieldsSet if requested field
2372 (set): Unset fields that depend on new value.
2374 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2376 * java/lang/Class.h (_Jv_Self): New union type.
2377 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
2378 Jeff Sturm and Fergus Henderson.
2380 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2382 * java/lang/ClassLoader.java: Remove dead code fragment.
2384 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
2386 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2388 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2390 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
2392 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
2393 * configure.host (EXCEPTIONSPEC): New.
2394 * configure.in (EXCEPTIONSPEC): New.
2395 * configure: Rebuilt.
2397 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2399 * doc/*.texi: Remove generated documentation.
2401 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2403 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
2404 (performDelete): Fix #endif placement.
2406 2001-04-27 Zack Weinberg <zackw@stanford.edu>
2408 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
2409 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
2410 (_Jv_ThreadDestroyData): Use _Jv_Free.
2411 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
2414 2001-04-27 Tom Tromey <tromey@redhat.com>
2416 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2418 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2420 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
2422 * include/jni.h (struct JNINativeInterface): Fixed types in
2423 Get/Set*ArrayRegion declarations.
2424 (class _Jv_JNIEnv): Likewise.
2426 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
2428 * configure.in: Obtain THREADS with `gcc -v'.
2429 * configure: Rebuilt.
2431 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2434 * java/io/ObjectStreamClass.java (setClass): Calculate
2435 serialVersionUID for local class and compare it against the UID
2436 from the Object Stream. Throw InvalidClassException upon mismatch.
2437 (setUID): Renamed to...
2438 (getClassUID): this. Return the calculated class UID rather than
2439 setting uid field directly.
2440 (getDefinedSUID): Removed.
2441 * java/io/ObjectInputStream.java (resolveClass): Use the
2442 three-argument Class.forName().
2443 * java/io/InvalidClassException (toString): Don't include classname in
2444 result if it is null.
2446 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2448 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
2449 Wrap use of inet_pton in HAVE_INET6.
2451 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2453 java.security merge and ClassLoader compliance fixes.
2455 * java/lang/Class.h (Class): Include ProtectionDomain.h.
2456 New protectionDomain field.
2457 (forName): Add initialize parameter. Fixes declaration to comply with
2459 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
2460 variant. Honour "initialize" flag.
2461 (getProtectionDomain0): New method.
2462 * java/lang/Class.java: Fix forName() declaration.
2463 (getPackage): New method based on Classpath implementation.
2464 (getProtectionDomain0): New native method decl.
2465 (getProtectionDomain): New method.
2466 * java/lang/ClassLoader.java (getParent): Now final.
2467 (definedPackages): New field.
2469 (defineClass): New variant with protectionDomain argument.
2470 (definePackage): New.
2472 (findSystemClass): Now final.
2473 (getSystemResourceAsStream): Remove redundant "final" modifier.
2474 (getSystemResource): Remove redundant "final" modifier.
2475 (getResources): Now final.
2476 (protectionDomainPermission): New static field.
2477 (unknownProtectionDomain): Ditto.
2478 (defaultProtectionDomain): Ditto.
2479 (getSystemClassLoader): Now non-native.
2480 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
2481 arguments for Class.forName().
2482 * java/lang/Package.java: New file.
2483 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
2484 (instance): Static initialize singleton.
2485 (findClass): Override this, not findSystemClass.
2486 * java/lang/natClassLoader.cc (defineClass0): Set class's
2487 protectionDomain field as specified.
2488 (getSystemClassLoader): Removed.
2489 (findClass): Renamed from findSystemClass. Call the interpreter via
2490 URLClassLoader.findClass if loading class via dlopen fails.
2492 * java/security/*.java: java.security import/merge with Classpath.
2493 * java/security/acl/*.java: Likewise.
2494 * java/security/interfaces/*.java: Likewise.
2495 * java/security/spec/*.java: Likewise.
2496 * java/net/NetPermission.java: Likewise.
2497 * java/net/SocketPermission.java: Likewise.
2498 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
2500 * Makefile.am: Add new classes.
2501 * Makefile.in: Rebuilt.
2502 * gcj/javaprims.h: CNI namespace rebuild.
2504 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
2506 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
2507 for libtool tests. Pre-create gnu/classpath/Configuration.java.
2508 * configure: Rebuilt.
2510 2001-04-21 Tom Tromey <tromey@redhat.com>
2512 * Makefile.in: Rebuilt.
2513 * Makefile.am (awt_java_source_files): Added Line2D.java.
2514 * java/awt/geom/Line2D.java: Wrote.
2516 * java/awt/Menu.java (addNotify): Wrote.
2518 * java/awt/PopupMenu.java (addNotify): Implemented.
2521 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
2522 * java/awt/List.java (addNotify): Call super.addNotify.
2523 * java/awt/Label.java (addNotify): Call super.addNotify.
2524 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
2525 * java/awt/Dialog.java (addNotify): Call super.addNotify.
2526 * java/awt/Choice.java (addNotify): Call super.addNotify.
2527 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
2528 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
2530 * java/awt/List.java (replaceItem): Notify peer.
2532 * java/awt/geom/Rectangle2D.java
2533 (Float.setRect(float,float,float,float)): New method.
2535 * java/awt/event/ContainerEvent.java (getContainer): Now returns
2538 * java/awt/RenderingHints.java (Key): Class now public.
2540 * java/awt/Rectangle.java (Rectangle): Now implements
2542 (getPathIterator): Removed.
2544 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
2547 * java/awt/FileDialog.java: Wrote.
2549 * java/awt/EventQueue.java (isDispatchThread): Now public.
2550 (invokeLater): Likewise.
2552 * java/awt/Component.java (setCursor): Update peer.
2553 (getFontMetrics): Use peer.
2555 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
2558 2001-04-20 Tom Tromey <tromey@redhat.com>
2560 * java/awt/List.java: Wrote.
2561 * java/awt/Dialog.java: Wrote.
2563 2001-04-20 Warren Levy <warrenl@redhat.com>
2565 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
2566 * java/text/SimpleDateFormat.java
2567 (indexInArray): Removed private method.
2568 (processYear): Removed private method.
2569 (parseLenient): Removed private method.
2570 (parseLeadingZeros): Removed private method.
2571 (parseStrict): Removed private method.
2572 (expect): Added new private method.
2573 (parse): Reverted to pre-Classpath merge version with minor fixes.
2574 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
2577 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
2579 * java/io/File.java (normalizePath): New private method.
2580 (File (String)): Use normalizePath().
2581 (File (String, String)): Likewise.
2583 * Makefile.am (libffi_files): Removed.
2584 (libgcj.la): Link libffi as a convenience library instead of
2585 refering to its object files directly.
2586 * Makefile.in: Rebuilt.
2588 2001-04-08 Per Bothner <per@bothner.com>
2590 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
2591 Recalculate hash, since Utf8Const's hash is only 16 bits.
2593 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
2594 bits of hash to calculate step for chaining.
2596 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
2597 when 2/3 full, rather than 3/4 full.
2599 2001-04-06 Tom Tromey <tromey@redhat.com>
2601 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
2602 (wrap_value<T*>): New specialization.
2603 (_Jv_JNI_PopLocalFrame): Update env->locals.
2605 2001-04-05 Tom Tromey <tromey@redhat.com>
2607 * libtool-version: Updated current.
2609 2001-04-04 Andreas Jaeger <aj@suse.de>
2611 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2612 * gcj/Makefile.in: Rebuilt.
2613 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2614 * Makefile.in: Rebuilt.
2615 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2616 * testsuite/Makefile.in: Rebuild.
2617 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2618 * include/Makefile.in: Rebuild.
2620 2001-04-02 Zack Weinberg <zackw@stanford.edu>
2622 * testsuite/lib/libjava.exp: Correct typo: 'output from source
2623 compiled test', not 'execution from source compiled test'.
2624 Use UNTESTED, not XFAIL, for tests which are not run because
2625 they depend on a previous test which failed.
2627 2001-04-02 Richard Henderson <rth@redhat.com>
2629 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
2630 the same tree as gcc.
2631 * configure: Rebuilt.
2633 * exception.cc (_Jv_Throw): Clarify commentary.
2635 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
2637 * jni.cc (wrap_value<jclass>): New specialization.
2639 2001-04-02 Tom Tromey <tromey@redhat.com>
2641 * java/io/PrintStream.java (out): Removed field. Fixes PR
2643 (write): Call flush, not out.flush, per spec.
2644 (close): Flush output stream, per spec. Handle
2645 InterruptedIOException.
2646 (checkError): Likewise.
2647 (flush, print, write): Handle InterruptedIOException per spec.
2648 (PrintStream): Don't create BufferedOutputStream.
2649 (work_bytes): New field.
2650 (writeChars): Use work_bytes. Don't assume `out' is a
2651 BufferedOutputStream.
2653 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
2655 * java/text/MessageFormat.java (setLocale): Added missing `else'.
2658 2001-03-30 Tom Tromey <tromey@redhat.com>
2660 * jni.cc (add_char): Correctly encode non-ascii characters.
2661 (add_char): Define even when INTERPRETER not defined.
2662 (mangled_name): Likewise.
2663 (_Jv_GetJNIEnvNewFrame): Likewise.
2664 (_Jv_LookupJNIMethod): Likewise.
2666 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
2668 * configure.host: Enable interpreter for PPC.
2670 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
2672 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2673 to "file.separator", "path.separator", and "java.io.tmpdir" property
2675 * java/io/File.java: Likewise.
2676 * java/io/natFile.cc (init_native): Likewise.
2677 * java/io/natFileWin32.cc (init_native): Likewise.
2679 2001-04-01 Per Bothner <per@bothner.com>
2681 * java/lang/natString.cc (intern): If string's data does not point to
2682 this String, make a fresh String that does.
2684 * java/lang/natString.cc (unintern): Replace by static function.
2685 * java/lang/String.java (unintern): Remove method.
2687 2001-04-01 Per Bothner <per@bothner.com>
2689 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
2690 (finish): def.deflate needs to be called in a loop.
2691 (inbuf, inbufLength): New private fields.
2692 (write(int)): Use inbuf.
2693 (write(byte[],int,int): Check if pending output in inbuf.
2694 * ZipOutputStream.java: Don't use Deflater if stored.
2695 Use a Checksum object directly, not via a CheckedOutputStream.
2696 (uncompressed_size): New field,
2697 (closeEntry): Only write data_directory if needed.
2698 (write): If STORED, write directly.
2699 Always update crc, and uncompressed_size.
2700 (write_entry): Fix lots of protocol erors.
2702 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
2704 1.3-Compliant Implementation of java.io.File.
2705 * java/lang/natSystem.cc (init_properties): Get "file.separator",
2706 "path.separator", and "java.io.tmpdir" from the File class, instead
2707 of setting them explicitly.
2708 * java/io/File.java: Do not canonicalize paths for security manager
2709 checks. Call init_native() from static initializer. Do not pass path
2710 argument to native methods. New native method declarations. Some
2711 security manager checks moved to checkWrite().
2712 (equals): Check file system case sensitivity and act appropriatly.
2713 (hashCode): Likewise.
2714 (isHidden): New method implemented.
2715 (performList): Changed prototype. Now takes a class argument specifying
2716 the class of the returned array: Strings or File objects. Also added
2717 FileFilter argument.
2718 (listFiles): New variants with "File" return type implemented.
2719 (createTempFile): Use createNewFile(). Use maxPathLen.
2720 (setReadOnly): New method implemented.
2721 (listRoots): Likewise.
2722 (compareTo): Likewise.
2723 (setLastModified): Likewise.
2724 (checkWrite): New method.
2726 * java/io/natFile.cc: Various functions no longer take canonical path
2728 (stat): Handle ISHIDDEN query.
2729 (isAbsolute): Remove WIN32 cruft.
2730 (performList): New arguments. Handle returning either File[] or String[]
2731 arrays. Check with FileFilter or FilenameFilter arguments as
2732 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2733 (performSetReadOnly): New method implemented.
2734 (performListRoots): Likewise.
2735 (performSetLastModified): Likewise.
2736 (performCreate): Likewise.
2737 (init_native): New initialization function.
2738 * java/io/natFileWin32.cc: Various functions no longer take canonical
2740 (stat): Add FIXME about ISHIDDEN query.
2741 (performList): New arguments. Handle returning either File[] or String[]
2742 arrays. Check with FileFilter or FilenameFilter arguments as
2743 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2744 (performSetReadOnly): New. Stubbed.
2745 (performListRoots): Likewise.
2746 (performSetLastModified): Likewise.
2747 (performCreate): Likewise.
2748 (init_native) New initialization function.
2749 * configure.in: Check for utime() and chmod().
2750 * configure: Rebuilt.
2751 * include/config.h.in: Rebuilt.
2753 Resolves PR libgcj/1759.
2755 2001-03-28 Richard Henderson <rth@redhat.com>
2757 IA-64 ABI Exception Handling:
2758 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2759 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2760 Remove EXCEPTIONSPEC.
2761 * configure.host (libgcj_sjlj): Remove.
2762 * configure.in (EXCEPTIONSPEC): Remove.
2763 (enable-sjlj-exceptions): Detect if not specified.
2764 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2765 what header we're looking for.
2766 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2767 * Makefile.in, configure: Regenerate.
2768 * exception.cc: Don't declare libgcc2 stuff.
2769 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2770 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2771 (win32_get_restart_frame): Remove.
2772 (struct java_exception_header): New.
2773 (__gcj_exception_class): New.
2774 (get_exception_header_from_ue): New.
2775 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2776 (size_of_encoded_value, read_encoded_value): New.
2777 (read_uleb128, read_sleb128, parse_lsda_header): New.
2778 (get_ttype_entry, __gcj_personality_sj0): New.
2779 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2781 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2783 * javax/naming/InitialContext.java (init): Fix typo.
2784 (composeName): Remove unnecessary semicolon.
2785 (addToEnvironment): Remove unnecessary semicolon.
2786 (addToEnvironment): Use put() instead of add().
2788 * javax/naming/InitialContext.java (InitialContext):
2790 (destroySubcontext): Method doesn't return a result.
2791 * javax/naming/Context.java: Import java.util.Hashtable.
2792 * javax/naming/Name.java: Import java.util.Enumeration.
2794 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2796 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2797 objects in subdirectories.
2798 * Makefile.in: Rebuilt.
2800 2001-03-25 Richard Henderson <rth@redhat.com>
2802 * exception.cc (java_eh_info): Make value type jthrowable.
2803 (_Jv_type_matcher): Remove now unneeded cast.
2804 (_Jv_Throw): Make argument type jthrowable. Munge name
2805 for SJLJ_EXCEPTIONS here ...
2806 * gcj/cni.h: ... not here.
2808 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2810 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2811 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2812 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2813 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2814 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2815 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2816 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2817 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2818 java/lang/natDouble.cc, java/lang/natObject.cc,
2819 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2820 java/lang/natString.cc, java/lang/natSystem.cc,
2821 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2822 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2823 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2824 java/util/zip/natInflater.cc:
2825 Use throw, not JvThrow or _Jv_Throw.
2827 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2829 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2830 paramater, bump it to 1.
2831 * java/util/Hashtable.java (Hashtable): Likewise.
2833 2001-03-23 Per Bothner <per@bothner.com>
2835 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2836 check for errors, since we don't want to throw exception on
2837 overflow/underflow. Instead, trim whitespace, and then check that
2838 _strtod_r uses up all the rest of the string.
2840 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2841 ancestors array is invalid for interfaces, so do that *after*
2842 check that the target type is not an interface.
2844 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2846 * prims.cc (_Jv_FindClassFromSignature): Check return of
2847 recursive call. Do not abort on invalid signature; return NULL
2850 2001-03-22 Tom Tromey <tromey@redhat.com>
2852 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2853 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2855 * include/jvm.h (_Jv_ResolveField): Declare.
2856 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2857 * resolve.cc (_Jv_ResolveField): No longer conditional on
2860 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2862 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2863 for libtool hacking.
2864 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2865 to a temporary file, then invoke libtool with the -objectlist
2867 (libgcjx.la): Likewise.
2868 * Makefile.in: Rebuilt.
2870 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2872 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2874 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2876 * jni.cc (add_char): Handle `.' like `/'.
2878 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2880 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2881 initialize if exception_types is null.
2882 * java/lang/reflect/Constructor.java: Likewise.
2883 * java/lang/reflect/natConstructor.cc (getType): Initialize
2884 exception_types to an empty Object array.
2886 2001-03-21 Tom Tromey <tromey@redhat.com>
2888 * configure: Rebuilt.
2889 * configure.in (GCJFLAGS): Subst.
2890 * Makefile.in: Rebuilt.
2891 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2892 (gij_LDFLAGS): Likewise.
2893 (JC1FLAGS): Added GCJFLAGS and removed -g.
2895 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2896 read/write case. Fixes PR libgcj/2338.
2898 2001-03-20 Warren Levy <warrenl@redhat.com>
2900 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2901 and corrected SimpleTimeZone's for the timezones hash table.
2903 2001-03-19 Per Bothner <per@bothner.com>
2905 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2906 "canonicalize" "../../xxx" to "/xxx".
2908 2001-03-19 Mark Wielaard <mark@klomp.org>
2910 * java/util/ArrayList.java: Remove RCS keywords from comments
2911 * java/util/BasicMapEntry.java: idem
2912 * java/util/Dictionary.java: idem
2913 * java/util/HashSet.java: idem
2915 * java/util/EventObject.java: reindent
2916 * java/util/Properties.java: idem
2917 * java/util/SortedMap.java: idem
2919 * java/util/Enumeration.java: Merge with Classpath
2920 * java/util/EventListener.java: idem
2921 * java/util/Observable.java: idem
2922 * java/util/Observer.java: idem
2923 * java/util/Stack.java: idem
2925 2001-03-17 Tom Tromey <tromey@redhat.com>
2927 * java/lang/natString.cc (rehash): Don't bother with memset;
2928 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2930 (UNMASK_PTR): New macro.
2931 (intern): Unmask pointer before returning it. Register finalizer
2933 (unintern): Handle case where
2934 (MASK_PTR): New macro.
2935 (PTR_MAKSED): Likewise.
2936 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2938 2001-03-01 Andrew Haley <aph@redhat.com>
2940 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2941 stackTrace buffer to a correctly aligned pointer array.
2943 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2945 * java/lang/Runtime.java (_exit): Declare new package-private native.
2946 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2947 without a security manager check.
2948 (exit): Call _exit after security check.
2949 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2951 * java/lang/System.java (setSecurityManager): If a security manager
2952 is already in place, call checkPermission.
2953 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2954 throws an exception, try to deal with it gracefully.
2955 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2956 Only try to print the subordinate stack trace if "exception" is set.
2957 Print our class name first.
2959 2001-03-08 Tom Tromey <tromey@redhat.com>
2961 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2962 info for array classes.
2963 Fixes PR libgcj/1971.
2965 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2967 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2970 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2972 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2973 instead of the new JDK1.2 API. This is simpler and makes
2974 back-porting the classes to JDK1.1 trivial.
2975 (readObject): likewise.
2977 2001-03-01 Per Bothner <per@bothner.com>
2979 Changes merged from Kawa's gnu.math.
2980 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2981 (rshift(int[],int[],int,int): Removed - not needed.
2982 (gcd): Use rshift0 rather than rshift.
2983 * java/math/BigInteger.java (setShiftRight): Likewise.
2984 (divide): Simplify by using rshift0.
2985 (divide): Zero-extend results if high-order bit set.
2987 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2989 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2992 2001-02-23 Per Bothner <per@bothner.com>
2994 Change to sometimes include class name in ClassFormatError message.
2995 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2996 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2997 boolean instead of throwing ClassFormatError on failure.
2998 (throw_class_format_error): Change static function to method.
2999 (_Jv_ClassReader): New inline methods verify_identifier,
3000 two overloads of verify_classname, verify_field_signature, and
3001 verify_method_signature
3002 * include/java-interp.h: Update declarations to return bool.
3003 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
3004 ClassFormatError since _Jv_VerifyClassName now returns bool.
3006 2001-02-23 Per Bothner <per@bothner.com>
3008 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
3009 c++filt to select java-style output.
3011 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
3013 Fix for PR java/2040:
3014 * java/util/HashMap.java (HashMap): Don't throw exception for
3015 loadFactor > 1. Add exception messages.
3016 * java/util/Hashtable.java (Hashtable): Likewise.
3018 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
3020 Disable libgcjx by default.
3021 * configure.in: Add support for --enable-java-awt configure option.
3022 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
3023 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
3024 * Makefile.in: Rebuilt.
3025 * configure: Rebuilt.
3027 2001-02-20 Tom Tromey <tromey@redhat.com>
3029 * java/io/PipedWriter.java (flush): Throw exception if stream
3031 * java/io/OutputStreamWriter.java (write): Throw exception if
3033 (writeChars): Don't throw exception if stream closed.
3034 * java/io/CharArrayWriter.java (closed): New field.
3036 (flush): Throw exception if stream closed.
3037 (reset): Synchronize on correct lock. Allow stream to be
3039 (toCharArray, toString, writeTo): Synchronize.
3040 (write): Throwe exception if stream closed.
3041 * java/io/BufferedWriter.java (close): Clear `buffer'.
3042 (flush): Throw IOException if stream is closed.
3045 2001-02-16 Tom Tromey <tromey@cygnus.com>
3047 * java/lang/ThreadGroup.java (activeCount): Only include threads
3049 (enumerate): Likewise.
3051 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
3053 * java/lang/Integer.java (getInteger): Return default argument if
3054 property is not set. Don't call decode with null argument.
3055 * java/lang/Long.java (getLong): Likewise.
3057 * java/io/CharArrayReader.java (CharArrayReader): Throw
3058 IllegalArgumentException if constructor arguments are illegal.
3059 (ready): Return false if no more characters can be read.
3060 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
3062 2001-02-17 Mark Wielaard <mark@klomp.org>
3064 * java/util/TimerTask.java: New version from Classpath.
3066 2001-02-17 Mark Wielaard <mark@klomp.org>
3068 Remerge with Classpath
3069 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
3070 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
3071 (readByte): Use convertToByte().
3072 (readChar): Use convertToChar().
3073 (readInt): Use convertToInt().
3074 (readLong): Use convertToLong().
3075 (readShort): Use convertToShort().
3076 (readUnsignedByte): Use convertToUnsignedByte().
3077 (readUnsignedShort): Use convertToUnsignedShort().
3078 (readUTF): Use convertToUTF().
3080 (convertToBoolean): Resurrected.
3081 (convertToByte): Ditto.
3082 (convertToChar): Ditto.
3083 (convertToInt): Ditto.
3084 (convertToLong): Ditto.
3085 (convertToShort): Ditto.
3086 (convertToUnsignedByte): Ditto.
3087 (convertToUnsignedShort): Ditto.
3088 (convertToUTF): Ditto.
3090 2001-02-17 Mark Wielaard <mark@klomp.org>
3094 2001-02-17 Mark Wielaard <mark@klomp.org>
3096 * java/io/DataInputStream.java: update copyright notice
3097 * java/io/PrintWriter.java: idem
3098 * java/io/Reader.java: idem
3099 * java/io/StreamTokenizer.java: idem
3100 * java/io/StringReader.java: idem
3101 * java/lang/reflect/ReflectPermission.java: idem
3103 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
3105 * java/util/TreeSet.java (clone): Made subclass safe, use
3106 super.clone(), not new.
3107 * java/util/TreeMap.java (clone): Likewise.
3109 * java/util/TreeMap.java (nil): Made non-final.
3110 (clone): Create new nil node for copy.
3112 * java/util/HashSet.java (clone): Made subclass safe, use
3113 super.clone(), not new.
3115 2001-02-14 Andrew Haley <aph@redhat.com>
3117 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
3120 2001-02-15 Anthony Green <green@redhat.com>
3122 * defineclass.cc: Don't include alloca.h.
3123 (prepare_pool_entry): Convert alloca to __builtin_alloca.
3124 * interpret.cc (run_normal): Ditto.
3126 * java/lang/natDouble.cc (parseDouble): Ditto.
3128 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
3130 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
3132 * java/util/Collections.java (ReverseComparator): New static class.
3133 (reverseOrder): Return static instance of ReverseComparator.
3135 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
3136 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
3137 Rectangle.clone(), not Object.clone().
3139 * java/util/HashSet.java (clone): Remove try/catch.
3141 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
3142 * java/util/Collection.java: Likewise.
3143 * java/util/Comparator.java: Likewise.
3144 * java/util/Dictionary.java: Likewise.
3145 * java/util/Iterator.java: Likewise.
3146 * java/util/ListIterator.java: Likewise.
3147 * java/util/Map.java: Likewise.
3148 * java/util/Set.java: Likewise.
3150 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
3152 * java/util/TreeMap.java: New file.
3153 * java/util/TreeSet.java: New file.
3154 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
3155 * Makefile.in: Rebuilt.
3156 * java/util/HashSet.java (clone): Use constructor instead of calling
3158 * java/util/SortedSet.java: Sync with classpath.
3159 * java/util/HashMap.java (hash): Use if statement instead of ternary,
3162 * java/lang/natClass.cc (getSignature): Don't try to dereference
3163 param_types if it is null. Instead, take this to mean "no parameters".
3164 * java/lang/TreeMap.java (TreeIterator.next): Throw
3165 NoSuchElementException in preference to ConcurrentModificationException.
3166 (TreeIterator.remove): Throw IllegalStateException in preference to
3167 ConcurrentModificationException.
3168 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
3169 throw a NoSuchElementException.
3170 (SubMap.lastKey): Likewise.
3172 2001-02-13 Tom Tromey <tromey@redhat.com>
3174 * java/io/PipedReader.java (ready): Throw IOException if pipe
3176 * java/io/FilterReader.java (close): Don't clear `in'.
3177 * java/io/CharArrayReader.java (mark): Throw IOException if stream
3179 (read, ready, reset, skip): Added exception message.
3180 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
3181 Perform checkStatus check inside synchronized block.
3183 2001-02-13 Tom Tromey <tromey@redhat.com>
3185 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
3187 2001-02-13 Tom Tromey <tromey@redhat.com>
3189 Fix for PR libgcj/1351:
3190 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
3192 Include Thread.h and InterruptedIOException.h.
3194 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
3196 * java/io/BlockDataException.java: Removed.
3197 * java/io/ObjectInputStream.java (readObject): Throw
3198 StreamCorruptedException, not BlockDataException.
3199 * Makefile.am: Remove BlockDataException.
3200 * Makefile.in: Rebuild.
3202 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
3203 Tom Tromey <tromey@redhat.com>
3205 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
3208 2001-02-09 Tom Tromey <tromey@redhat.com>
3210 * java/util/Timer.java: New version from Classpath.
3212 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
3214 * java/lang/Double.java (doubleToRawLongBits): Now native.
3215 * java/lang/Float.java (floatToRawIntBits): Likewise.
3216 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
3217 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
3219 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
3221 * java/io/File.java (java.net): Imported.
3222 (getAbsoluteFile): Added.
3223 (getCanonicalPath): Likewise.
3226 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
3228 * java/lang/Byte.java: Remove redundant instanceof and null checks.
3229 * java/lang/Integer.java: Likewise.
3230 * java/lang/Long.java: Likewise.
3231 * java/lang/Short.java: Likewise.
3232 * java/lang/Double.java: Likewise.
3233 (doubleToRawLongBits): New method.
3234 * java/lang/Float.java: As above.
3235 (floatToRawIntBits): New method.
3237 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
3238 IOException if stream closed.
3240 2001-02-08 Tom Tromey <tromey@redhat.com>
3242 * java/lang/Float.java (parseFloat): New method.
3244 2001-02-08 Tom Tromey <tromey@redhat.com>
3246 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
3247 * java/io/InputStreamReader.java (ready, read): Throw IOException
3248 if stream has been closed.
3250 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3252 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
3253 Change sources.redhat.com and sourceware.cygnus.com references to
3256 2001-02-07 Tom Tromey <tromey@redhat.com>
3258 Fix for PR libgcj/1906:
3259 * java/text/MessageFormat.java (setLocale): Use named class
3262 (format(Object,StringBuffer,FieldPosition)): Special case if
3263 argument is an Object[].
3265 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
3267 * java/util/Arrays.java: Removed "cmp" methods.
3268 (qsort): Don't use "cmp".
3271 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
3273 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
3274 sort. Fix for PR java/1895.
3276 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
3278 * configure.host: Use sjlj-exceptions for Alpha.
3280 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
3282 * libgcj.spec.in: Don't force static libgcc into the executable.
3283 * configure.in (FORCELIBGCCSPEC): Removed.
3284 * configure: Rebuilt.
3286 2001-01-31 Tom Tromey <tromey@redhat.com>
3288 * Makefile.in: Rebuilt.
3289 * Makefile.am (LTCXXCOMPILE): New macro.
3291 2001-01-26 Andrew Haley <aph@redhat.com>
3293 (INIT_FPE): Use a direct system call to set the handler.
3295 2001-01-27 Richard Henderson <rth@redhat.com>
3297 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
3299 2001-01-27 Tom Tromey <tromey@redhat.com>
3301 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
3302 native interface structure.
3304 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
3306 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
3308 (read (byte[], int, int)): Only call readNextBlock() if the block
3309 buffer would actually be overrun. Increment blockDataPosition.
3310 (callReadMethod): Propagate exceptions from invocation target.
3311 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
3312 exceptions from invocation target.
3314 2001-01-26 Tom Tromey <tromey@redhat.com>
3316 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
3317 to internal representation.
3318 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
3319 _Jv_FindClassFromSignature.
3321 2001-01-26 Warren Levy <warrenl@redhat.com>
3323 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
3324 and timezone if they are available on the system.
3326 2001-01-24 Tom Tromey <tromey@redhat.com>
3328 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
3330 2001-01-24 Tom Tromey <tromey@redhat.com>
3332 * Makefile.in: Rebuilt.
3333 * Makefile.am (c_source_files): Added sf_fabs.c.
3334 * java/lang/sf_fabs.c: New file.
3336 2001-01-19 Warren Levy <warrenl@redhat.com>
3338 * java/text/SimpleDateFormat.java (format): Compute hour for cases
3339 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
3340 correctly. Adjust properly from 0-23 clock hour.
3342 2001-01-17 Mark Wielaard <mark@klomp.org>
3344 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
3346 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
3348 * java/lang/Class.h (isInterface): Move implementation from
3349 natClass.cc. Declare inline.
3350 (Class): Add default constructor.
3351 * java/lang/Object.h: Update comments.
3352 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
3353 initialize superclass, saving a call if super is already initialized.
3355 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
3357 * prims.cc (init_prim_class): Deleted.
3358 (DECLARE_PRIM_TYPE): Rewritten.
3359 * java/lang/Class.h (stdio.h): Include removed.
3360 (stddef.h): Included.
3361 (java/lang/reflect/Modifier.h): Likewise.
3362 (Class): Contructor now takes arguments, initializes fields.
3363 (initializePrim): Prototype deleted.
3364 * java/lang/natClass.cc (initializePrim): Deleted.
3366 2001-01-16 Warren Levy <warrenl@redhat.com>
3368 * java/math/BigInteger.java: Update Copyright year.
3370 2001-01-16 Hans Boehm <hans_boehm@hp.com>
3372 * java/math/BigInteger.java (setShiftRight): Only do negative shift
3375 2001-01-14 Mark Wielaard <mark@klomp.org>
3376 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
3377 (decode): Merge comments with Classpath, don't throw Exception
3379 2001-01-12 Tom Tromey <tromey@redhat.com>
3381 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
3385 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
3386 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
3387 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
3388 * gnu/awt/gtk/GtkLabelPeer.java: New file.
3389 * gnu/awt/gtk/GtkButtonPeer.java: New file.
3391 * java/lang/natSystem.cc: Include locale.h if it exists.
3392 * configure: Rebuilt.
3393 * configure.in: Check for locale.h.
3395 2001-01-11 Tom Tromey <tromey@redhat.com>
3397 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
3398 (Cursor(int), getPredefinedCursor): Throw exception if argument
3401 2001-01-03 Tom Tromey <tromey@redhat.com>
3403 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
3404 (getLocationOnScreen): Wrote.
3406 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
3408 * Makefile.am: Re-enable dependencies.
3409 * Makefile.in: Rebuilt.
3411 2001-01-10 Warren Levy <warrenl@redhat.com>
3413 * java/math/BigDecimal.java (divide): Fixed comment.
3415 2001-01-10 Warren Levy <warrenl@redhat.com>
3417 Fix for PR libgcj/1596:
3418 * java/math/BigDecimal.java (divide): Check newScale for validity.
3419 Ensure that BigInteger.pow() is called with a non-negative value.
3420 (setScale (int)): New public method.
3421 (setScale (int,int)): New public method.
3423 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
3425 Fix for PR libgcj/1338:
3426 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
3427 commentChar. Fixed typos in comments.
3429 2001-01-08 Warren Levy <warrenl@redhat.com>
3431 Fix for PR libgcj/1411:
3432 * Makefile.am: Removed java/util/natTimeZone.cc.
3433 * Makefile.in: Rebuilt.
3434 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
3435 missing localized timezone names.
3436 * java/lang/System.java (getDefaultTimeZoneId): New private method.
3437 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
3438 (init_properties): Set user.timezone property.
3439 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3440 default timezone names; removed non-standard ones. Use standard
3442 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
3444 * java/util/TimeZone.java: Add standard ID names per JCL; removed
3446 (getDefaultTimeZoneId): Removed.
3448 * java/util/natTimeZone.cc: Removed.
3450 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3452 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
3453 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
3454 (_Jv_GetArrayClass): New inline function.
3455 (arrayclass): New field.
3456 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
3457 _Jv_GetArrayElementFromElementType.
3458 (_Jv_NewPrimArray): Ditto.
3459 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
3460 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
3461 Set Modifier::ABSTRACT.
3462 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
3463 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
3464 Now synchronized. Array classes are now referenced from
3465 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
3466 Set array classes' accessibility flags correctly. Optimize so that
3467 all array classes share the same IDT.
3468 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
3469 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
3470 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
3471 in superclasses from overwriting classes own fields.
3472 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
3473 Modifier::isAbstract().
3474 (null_idt): New static field.
3475 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
3477 (_Jv_IndexOf): Made inline.
3478 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
3480 2001-01-08 Tom Tromey <tromey@redhat.com>
3482 Fix for PR java/1586:
3483 * Makefile.in: Rebuilt.
3484 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
3486 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3488 * Makefile.am: Use the new "-M -MF" option for generating dependencies
3489 from the c++ compiler.
3490 * Makefile.in: Rebuilt.
3492 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
3494 All files with updated copyright.
3495 * prims.cc (class _Jv_PrimClass): Removed.
3496 (init_prim_class): New function.
3497 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
3498 `_Jv_PrimClass' in primitive type declarations. Assign to the
3499 value returned by `init_prim_class.'
3500 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
3501 primitive type declarations.
3502 (JvPrimClass): Cast to `jclass' removed.
3503 * java/lang/Class.h (Class): New constructor.
3504 (Class): New copy constructor.
3505 (initializePrim): New prototype.
3506 (_Jv_PrimClass): Field removed.
3507 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
3508 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
3509 (class java::lang::Object): `finalize' moved up front.
3510 * java/lang/natClass.cc
3511 (isAssignableFrom): Turned outline.
3512 (isInstance): Likewise.
3513 (isInterface): Likewise, fixed indentation.
3514 (initializePrim): New function.
3516 2001-01-07 Anthony Green <green@redhat.com>
3518 * Makefile.am (texinfo): Add texinfo target for generating texinfo
3520 * Makefile.in: Rebuilt.
3522 * scripts/TexinfoDoclet.java: New file.
3524 * doc/java-applet.texi, doc/java-lang-reflect.texi,
3525 doc/java-awt-color.texi, doc/java-lang.texi,
3526 doc/java-awt-datatransfer.texi, doc/java-math.texi,
3527 doc/java-awt-event.texi, doc/java-net.texi,
3528 doc/java-awt-geom.texi, doc/java-security-spec.texi,
3529 doc/java-awt-image.texi, doc/java-security.texi,
3530 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
3531 doc/java-text.texi, doc/java-beans-beancontext.texi,
3532 doc/java-util-jar.texi, doc/java-beans.texi,
3533 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
3534 doc/java-lang-ref.texi: New files.
3536 2001-01-07 Anthony Green <green@redhat.com>
3538 * java/net/URLConnection.java (setDoOutput): URLConnection's may
3539 be used for both input and output, so don't clear doInput.
3541 * java/lang/StringBuffer.java: Fix comments.
3543 2001-01-06 Anthony Green <green@redhat.com>
3545 * java/beans/PropertyDescriptor.java: Fix comment.
3546 * java/io/PushbackReader.java: Fix comment.
3547 * java/io/ObjectStreamClass.java: Fix comment.
3548 * java/io/DataInputStream.java: Fix comment.
3549 * java/io/PipedInputStream.java: Fix comments.
3550 * java/io/PipedReader.java: Fix comments.
3551 * java/sql/DatabaseMetaData.java: Fix comments.
3553 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
3555 * java/io/PipedReader: Synchronize on "lock" instead of this.
3557 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
3559 * java/lang/Thread.java: Update comment.
3561 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
3562 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
3563 * java/io/PipedReader: New implementation based on new
3565 * java/io/PipedWriter: Updated to match new PipedReader.
3567 2001-01-03 Tom Tromey <tromey@redhat.com>
3569 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
3570 (getViewportSize): Insets include scrollbar size.
3571 (doLayout): Finished.
3572 (getScrollPosition): Wrote.
3573 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
3575 2001-01-02 Tom Tromey <tromey@redhat.com>
3577 * java/awt/ScrollPane.java: Wrote.
3578 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
3581 * java/awt/Panel.java (Panel()): Fixed.
3583 * java/awt/Component.java (isShowing): Return false if no peer
3584 exists, and true if component is visible and no parent exists.
3585 (getLocationOnScreen): Wrote.
3586 (getPreferredSize): Removed FIXME comment.
3587 (getMinimumSize): Likewise.
3588 (getAlignmentX, getAlignmentY): Wrote.
3590 (requestFocus): Wrote.
3591 (transferFocus): Wrote.
3592 (findNextFocusComponent): New method.
3593 (hasFocus()): Wrote.
3594 (checkImage): Wrote.
3595 (enableEvents): Call setEventMask on the peer.
3597 * java/awt/Container.java (list): Use super.list() to print self.
3598 (findNextFocusComponent): New method.
3599 (setLayout): Call invalidate.
3600 (findComponentAt): Wrote.
3602 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
3604 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
3605 the correct versions of various linuxthreads functions get linked.
3606 * Makefile.in: Rebuilt.
3607 * java/lang/natThread.cc (finalize_native): New static function. Call
3608 _Jv_ThreadDestroyData.
3609 (initialize_native): Register finalizer for "data".
3610 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
3611 (_Jv_ThreadDestroyData): New prototype.
3612 * include/win32-threads.h: Ditto.
3613 * include/no-threads.h: Ditto.
3614 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3615 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
3616 move mutex and condition variable destroy code from:
3617 (really_start): ...here.
3618 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
3619 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3620 (_Jv_ThreadDestroyData): Implemented.
3621 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
3622 (_Jv_AllocArray): Ditto.
3624 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
3626 * java/sql/DriverManager.java (getConnection): Don't set user/password
3629 2000-12-27 Warren Levy <warrenl@redhat.com>
3631 Fix for PR libgcj/1358:
3632 * java/lang/System.java: Update Copyright date properly.
3633 * java/util/Calendar.java: Fix typo in comment.
3634 (set): Set 24-hour clock hour instead of 12-hour clock hour.
3635 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
3636 initialize times. Spec says to set H:M:S values to zero only if
3638 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
3639 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
3640 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
3641 timezones and GMT offsets, being careful to account for units of
3642 milliseconds vs. seconds.
3644 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
3646 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3647 not be assigned to Object.
3649 Fix for PR libgcj/1516:
3650 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3652 (can_widen): Declared inline. Remove redundant checks for void
3653 arguments and char->short conversion. Add special case for boolean
3655 (ffi_type): Declared inline.
3656 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3658 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
3660 * java/sql/SQLWarning.java: Fixed typo in comment.
3662 2000-12-26 Tom Tromey <tromey@redhat.com>
3664 * java/awt/MenuItem.java (paramString): Now protected.
3666 * java/awt/MenuShortcut.java: Implements Serializable.
3668 * java/awt/MenuBar.java: Rewrote from scratch.
3670 * java/awt/MenuComponent.java (removeNotify): Wrote.
3671 Implements Serializable.
3673 * java/awt/GridBagConstraints.java (GridBagConstraints): New
3676 * java/awt/CheckboxMenuItem.java: Wrote.
3678 2000-12-25 Tom Tromey <tromey@redhat.com>
3680 * java/awt/MenuContainer.java: Fixed typo.
3682 * Makefile.in: Rebuilt.
3683 * Makefile.am (awt_java_source_files): Added SystemColor.java.
3684 * java/awt/SystemColor.java: New file.
3686 * java/awt/Color.java (rgba): Now package-private.
3688 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3690 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3693 * java/awt/MenuItem.java (addNotify): New method.
3694 (MenuItem(String,MenuShortcut)): New constructor.
3695 (setLabel): Notify peer of change.
3696 (setEnabled): Likewise.
3698 * java/awt/GridLayout.java (toString): New method.
3700 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3701 (FlowLayout): Check for LEADING and TRAILING.
3702 (setAlignment): Likewise.
3703 (layoutContainer): Handle component orientation.
3705 * java/awt/Component.java (orientatin): New field.
3706 (setComponentOrientation): Wrote.
3707 (getComponentOrientation): Wrote.
3709 * java/awt/Event.java (Event): Implements Serializable.
3710 (consumed): New field for serialization.
3711 * java/awt/Dimension.java (Dimension): Implements Serializable.
3712 * java/awt/Cursor.java (Cursor): Implements Serializable.
3713 * java/awt/Container.java (Container): No longer abstract.
3715 * java/awt/Choice.java: Wrote.
3716 * java/awt/Checkbox.java: Wrote.
3717 * java/awt/ItemSelectable.java: Documented.
3718 * java/awt/CheckboxGroup.java: Wrote.
3720 * java/awt/CardLayout.java (layoutContainer): Directly use fields
3722 (getSize): Likewise.
3724 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
3726 * java/io/FileDescriptor.java: Initialize fd to -1.
3727 Remove default constructor.
3729 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
3731 * java/lang/mprec.h: Change C9X reference to refer to C99.
3733 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
3735 * java/lang/Throwable.java (trace_enabled): New static field.
3736 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3737 trace_enabled not set.
3738 * prims.cc (main_init): Turn off trace_enabled while creating
3739 default exception objects.
3741 2000-12-21 Tom Tromey <tromey@redhat.com>
3743 * java/beans/PropertyChangeListener.java: Extends EventListener.
3744 * java/beans/VetoableChangeListener.java: Extends EventListener.
3746 * java/util/zip/Deflater.java (update, init): Now private.
3748 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
3750 * java/util/BasicMapEntry.java: Re-added.
3751 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3752 (putAll): Test for BasicMapEntry.
3753 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3754 (putAll): Test for BasicMapEntry.
3755 Change references from `HashMap.Entry' to `Entry' in various places.
3756 * Makefile.am: Add BasicMapEntry.java.
3757 * Makefile.in: Rebuilt.
3759 2000-12-18 Warren Levy <warrenl@redhat.com>
3761 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3762 need to set timezone to a valid non-null value. Partial fix for
3765 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3767 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3769 * java/awt/Button.java (addNotify): Likewise.
3770 * java/awt/Label.java (addNotify): Likewise.
3771 * java/awt/Panel.java (addNotify): Likewise.
3772 * java/awt/Scrollbar.java (addNotify): Likewise.
3773 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3774 Remove redundant null checks.
3776 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3778 * COPYING: Update to current
3779 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3780 to 19yy as example year in copyright notice).
3782 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3784 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3785 end-of-stream if avail_in is 0.
3787 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3789 * java/util/ArrayList.java (data): Declare transient.
3790 (serialPersistantFields): Removed.
3791 (readObject): Use defaultReadObject(), not readFields().
3792 (writeObject): Use defaultWriteObject(), not writeFields().
3794 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3796 * java/util/Hashtable.java (put): Remove `last' variable.
3797 Link new entry to head of list.
3798 * java/util/HashMap.java (put): Ditto.
3800 2000-12-15 Tom Tromey <tromey@redhat.com>
3802 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3803 loader to Class.forName.
3805 2000-12-14 Tom Tromey <tromey@redhat.com>
3807 * java/util/ResourceBundle.java
3808 (getBundle(String,Locale,ClassLoader)): New method.
3809 (trySomeGetBundle): Added `loader' argument.
3810 (partialGetBundle): Likewise.
3812 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3813 maximumFractionDigits, maximumIntegerDigits,
3814 minimumFractionDigits, minimumIntegerDigits): Now
3817 * java/lang/Thread.java (checkAccess): Now final.
3819 * java/lang/RuntimePermission.java: Class now final.
3821 * java/io/StringWriter.java (StringWriter(int)): Now public.
3823 * java/io/SerializablePermission.java (legal_names): Now private.
3825 * java/lang/Character.java: Updated UnicodeBlock constants.
3826 * scripts/blocks.pl: Special case private use and surrogate
3829 2000-12-12 Tom Tromey <tromey@redhat.com>
3831 * Makefile.in: Rebuilt.
3832 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3834 (GCJCOMPILE): Use it.
3837 2000-12-11 Tom Tromey <tromey@redhat.com>
3839 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3840 New static final fields.
3842 * scripts/classes.pl (scan): Skip lines with leading `*'.
3843 Fix for PR libgcj/378.
3845 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3847 * configure.in: Remove check for -fuse-divide-subroutine.
3848 * configure: Rebuilt.
3850 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3852 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3854 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3856 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3857 Remove BasicMapEntry.java and Bucket.java.
3858 * Makefile.in: Rebuilt.
3859 * java/util/HashMap.java: Rewritten.
3860 * java/util/HashSet.java: Imported from classpath.
3861 * java/util/WeakHashMap.java: Imported from classpath.
3862 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3863 * java/util/Bucket.java: Deleted.
3864 * java/util/BasicMapEntry.java: Deleted.
3865 * java/util/Collections.java (search): Use a for-loop, not iterator
3867 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3868 of elements in source.
3869 (max): Use a for-loop.
3871 (reverse): Keep track of positions instead of using Iterator's
3872 nextIndex() and previousIndex().
3873 (shuffle(List)): Initialize defaultRandom if required using
3874 double-check thread safety idiom. Call two-argument shuffle method
3875 using defaultRandom.
3876 (defaultRandom): New field.
3877 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3878 using previousIndex() and nextIndex().
3879 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3880 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3881 * java/util/AbstractMap.java (toString): Use StringBuffer.
3882 * java/lang/ref/PhantomReference.java: Imported from classpath.
3883 * java/lang/ref/SoftReference.java: Ditto.
3884 * java/lang/ref/Reference.java: Ditto.
3885 * java/lang/ref/WeakReference.java: Ditto.
3886 * java/lang/ref/ReferenceQueue.java: Ditto.
3888 2000-12-10 Richard Henderson <rth@redhat.com>
3890 * configure.host: Recognize alpha*-*, not alphaev6-*.
3892 2000-12-09 Anthony Green <green@redhat.com>
3894 * configure.host: Enable interpreter for Alpha.
3896 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3898 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3899 (ZIP): Points at fastjar instead of zip.
3900 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3901 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3902 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3903 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3904 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3905 ($(x_java_source_files:.java=.class):): Likewise.
3906 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3908 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3909 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3910 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3911 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3912 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3913 gnu/gcj/runtime/VMClassLoader.h:,
3914 java/io/ObjectInputStream$$GetField.h:,
3915 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3916 (Makefile.in): Rebuilt.
3918 2000-12-08 Tom Tromey <tromey@redhat.com>
3921 * configure: Rebuilt.
3922 * configure.in: Use echo, not `:', to create .d files.
3924 2000-12-08 Warren Levy <warrenl@redhat.com>
3926 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3927 NullPointerException so proper check of offset can be done.
3929 2000-12-08 Warren Levy <warrenl@redhat.com>
3931 * java/io/FileInputStream.java (close): Check if the fd is valid.
3932 * java/io/RandomAccessFile.java (close): Ditto.
3933 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3934 * java/net/PlainSocketImpl.java (close): Ditto.
3936 2000-12-06 Tom Tromey <tromey@redhat.com>
3938 * java/awt/GridBagConstraints.java: Filled in values for static
3941 * java/util/BitSet.java: Updated copyright notice.
3943 * Makefile.in: Rebuilt.
3944 * Makefile.am (awt_java_source_files): Added new file.
3945 * java/awt/GridBagConstraints.java: New file.
3947 2000-12-05 Tom Tromey <tromey@redhat.com>
3949 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3950 Now package-private, not protected.
3951 * java/text/DateFormatSymbols.java (equals): Now private.
3952 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3953 * java/util/BitSet.java: Class no longer final.
3955 2000-12-04 Warren Levy <warrenl@redhat.com>
3957 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3958 out code dependent on compiler and library changes.
3960 2000-12-04 Warren Levy <warrenl@redhat.com>
3962 * java/io/FilePermission.java: Made class final per spec.
3963 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3964 method name to match spec (fixed typo).
3965 * java/util/LinkedList.java: Implements List.
3967 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3969 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3970 Edgar Villanueva <edgarvil@home.com>.
3972 2000-12-03 Tom Tromey <tromey@redhat.com>
3974 * java/awt/geom/Point2D.java: Added protected constructor.
3975 (equals): New method.
3976 (Float.setLocation(float,float)): New method.
3977 * java/awt/geom/Dimension2D.java: Added protected constructor.
3978 * java/awt/geom/AffineTransform.java: Made all constants public.
3979 (concatenate): Fixed typo in name.
3980 * java/awt/event/WindowAdapter.java: Class now abstract.
3981 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3982 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3985 * java/awt/AWTError.java: Extend Error, not
3986 IllegalStateException.
3988 * Makefile.in: Rebuilt.
3989 * Makefile.am (awt_java_source_files): Added new file.
3990 * java/awt/geom/RoundRectangle2D.java: New file.
3992 * Makefile.in: Rebuilt.
3993 * Makefile.am (awt_java_source_files): Added new file.
3994 * java/awt/FlowLayout.java: New file.
3996 * Makefile.in: Rebuilt.
3997 * Makefile.am (awt_java_source_files): Added new file.
3998 * java/awt/GridLayout.java: New file.
4000 2000-12-02 Tom Tromey <tromey@redhat.com>
4002 * Makefile.in: Rebuilt.
4003 * Makefile.am (awt_java_source_files): Added new files.
4004 * java/awt/CardLayout.java: New file.
4005 * java/awt/AWTPermission.java: New file.
4007 2000-12-01 Tom Tromey <tromey@redhat.com>
4009 * java/util/Vector.java (insertElementAt): Unconditionally
4010 increment elementCount.
4011 (removeRange): Clear unused slots in vector.
4013 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
4015 * java/lang/natMath.cc: Declare fabsf() function.
4016 * java/lang/mprec.h: Don't include math.h.
4017 * java/lang/dtoa.c: Include string.h.
4018 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
4021 From Adam Welc <welc@cs.purdue.edu>:
4022 * java/util/LinkedList.java (removeFirst): Update `first' field.
4023 Handle the last == first case.
4024 (removeLast): Update `last' field. Handle the last == first case.
4026 2000-12-01 Warren Levy <warrenl@cygnus.com>
4028 * Makefile.am: Added entries for new java.sql modules.
4029 * Makefile.in: Rebuilt.
4031 2000-12-01 Warren Levy <warrenl@cygnus.com>
4033 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
4034 that aren't quite 1.2 compatible yet.
4036 2000-11-30 Warren Levy <warrenl@cygnus.com>
4038 * java/sql/Array.java: New file from classpath.
4039 * java/sql/BatchUpdateException.java: Ditto.
4040 * java/sql/Blob.java: Ditto.
4041 * java/sql/Clob.java: Ditto.
4042 * java/sql/Ref.java: Ditto.
4043 * java/sql/SQLData.java: Ditto.
4044 * java/sql/SQLInput.java: Ditto.
4045 * java/sql/SQLOutput.java: Ditto.
4046 * java/sql/Struct.java: Ditto.
4047 * java/sql/CallableStatement.java: Merged file from claspath.
4048 * java/sql/Connection.java: Ditto.
4049 * java/sql/DataTruncation.java: Ditto.
4050 * java/sql/DatabaseMetaData.java: Ditto.
4051 * java/sql/DriverManager.java: Ditto.
4052 * java/sql/PreparedStatement.java: Ditto.
4053 * java/sql/ResultSet.java: Ditto.
4054 * java/sql/ResultSetMetaData.java: Ditto.
4055 * java/sql/SQLException.java: Ditto.
4056 * java/sql/SQLWarning.java: Ditto.
4057 * java/sql/Statement.java: Ditto.
4058 * java/sql/Types.java: Ditto.
4060 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
4062 * java/lang/natSystem.cc (init_properties): Set user.language and
4064 * configure.in: Check for setlocale.
4065 * configure: Rebuilt.
4066 * include/config.h.in: Rebuilt.
4068 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
4069 the infate() call didn't deliver any output. Throw a ZipException if
4070 the needsDictionary() call returns true.
4071 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
4072 * java/io/InputStreamReader: Use the default buffer size for the
4073 contained BufferedInputStream.
4075 2000-11-28 Warren Levy <warrenl@cygnus.com>
4077 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
4078 more time zone entries.
4079 * java/text/SimpleDateFormat.java (format): Added case for
4082 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
4084 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
4085 directly rather than read() in all cases. Make primitive read
4086 implementations more efficient, as defined in JDK online docs.
4087 (skipBytes): Behave like the JDK's implementation.
4088 * java/io/BufferedReader.java: Merge classpath docs. Check for a
4089 closed stream with checkStatus() whenever an IOException can be
4091 (checkStatus): New private method.
4093 2000-11-27 Warren Levy <warrenl@cygnus.com>
4095 * Makefile.am: Added natTimeZone.cc.
4096 * Makefile.in: Rebuilt.
4097 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
4098 * java/text/DateFormatSymbols.java (ampms): Made package private.
4099 (eras): Made package private.
4100 (months): Made package private.
4101 (shortMonths): Made package private.
4102 (shortWeekdays): Made package private.
4103 (weekdays): Made package private.
4104 (formatPrefixes): New private field.
4105 (localPatternCharsDefault): Made private.
4106 (dateFormats): New package private field.
4107 (timeFormats): New package private field.
4108 (formatsForKey): New private method.
4109 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
4110 (DateFormatSymbols(DateFormatSymbols)): Ditto.
4111 * java/text/SimpleDateFormat.java: Merged with Classpath.
4112 * java/util/TimeZone.java: Merged with Classpath.
4113 * java/util/natTimeZone.cc: New file.
4115 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
4117 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
4118 (addElement): Don't increment elementCount twice. Doh.
4119 * java/util/ArrayList.java (add): Only call ensureCapacity if the
4120 array needs to be expanded.
4122 * java/util/Collections.java (UnmodifiableCollection): Implement
4124 (UnmodifiableList): Throw UnsupportedOperationException from
4125 modification methods. Set `l' from the one-parameter constructor.
4126 (UnmodifiableMap): Implement toString().
4127 (SynchronizedCollection): Ditto.
4128 (SynchronizedList): Set `l' from the one-parameter constructor.
4129 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
4130 (SynchronizedMap): Implement toString().
4132 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
4134 * javax/naming/NameParser.java,
4135 javax/naming/directory/AttributeInUseException.java,
4136 javax/naming/directory/AttributeModificationException.java,
4137 javax/naming/directory/InvalidAttributeIdentifierException.java,
4138 javax/naming/directory/InvalidAttributesException.java,
4139 javax/naming/directory/InvalidAttributeValueException.java,
4140 javax/naming/directory/InvalidSearchControlsException.java,
4141 javax/naming/directory/InvalidSearchFilterException.java,
4142 javax/naming/directory/NoSuchAttributeException.java,
4143 javax/naming/directory/SchemaViolationException.java: New files.
4145 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
4147 * javax/naming/InitialContext.java (rebind): Implement.
4148 (unbind): Implement.
4149 (rename): Implement.
4151 (listBindings): Implement.
4152 (destroySubcontext): Implement.
4153 (createSubcontext): Implement.
4154 (lookupLink): Implement.
4155 (getNameParser): Implement.
4156 (composeName): Implement.
4157 (addToEnvironment): Implement.
4159 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
4161 * javax/naming/AuthenticationException.java,
4162 javax/naming/AuthenticationNotSupportedException.java,
4163 javax/naming/CannotProceedException.java,
4164 javax/naming/CommunicationException.java,
4165 javax/naming/ConfigurationException.java,
4166 javax/naming/ContextNotEmptyException.java,
4167 javax/naming/InsufficientResourcesException.java,
4168 javax/naming/InterruptedNamingException.java,
4169 javax/naming/InvalidNameException.java,
4170 javax/naming/LimitExceededException.java,
4171 javax/naming/LinkException.java,
4172 javax/naming/LinkLoopException.java,
4173 javax/naming/MalformedLinkException.java,
4174 javax/naming/NameAlreadyBoundException.java,
4175 javax/naming/NameNotFoundException.java,
4176 javax/naming/NamingSecurityException.java,
4177 javax/naming/NoPermissionException.java,
4178 javax/naming/NotContextException.java,
4179 javax/naming/PartialResultException.java,
4180 javax/naming/ReferralException.java,
4181 javax/naming/ServiceUnavailableException.java,
4182 javax/naming/SizeLimitExceededException.java,
4183 javax/naming/TimeLimitExceededException.java: New files.
4185 * javax/naming/Name.java (clone): New method.
4186 (compareTo): New method.
4187 (isEmpty): New method.
4188 (getAll): New method.
4189 (getPrefix): New method.
4190 (getSuffix): New method.
4191 (startsWith): New method.
4192 (endsWith): New method.
4193 (addAll): New method.
4194 (addAll): New method.
4197 (remove): New method.
4199 * javax/naming/Context.java (lookup): New method.
4200 (rebind): New method.
4201 (unbind): New method.
4202 (rename): New method.
4204 (listBindings): New method.
4205 (destroySubcontext): New method.
4206 (createSubcontext): New method.
4207 (lookupLink): New method.
4208 (getNameParser): New method.
4209 (composeName): New method.
4210 (addToEnvironment): New method.
4211 (removeFromEnvironment): New method.
4212 (getEnvironment): New method.
4213 (close): New method.
4214 (getNameInNamespace): New method.
4216 * javax/naming/InitialContext.java (lookup): New method.
4217 (rebind): New method.
4218 (unbind): New method.
4219 (rename): New method.
4221 (listBindings): New method.
4222 (destroySubcontext): New method.
4223 (createSubcontext): New method.
4224 (lookupLink): New method.
4225 (getNameParser): New method.
4226 (composeName): New method.
4227 (addToEnvironment): New method.
4228 (removeFromEnvironment): New method.
4229 (getEnvironment): New method.
4230 (close): New method.
4231 (getNameInNamespace): New method.
4233 2000-11-26 Tom Tromey <tromey@cygnus.com>
4235 * Makefile.in: Rebuilt.
4236 * Makefile.am (core_java_source_files): Added
4237 RuntimePermission.java.
4238 * java/lang/RuntimePermission.java: Imported from Classpath.
4239 * java/lang/Thread.java (getContextClassLoader): Now
4240 synchronized. Added security code.
4241 (setContextClassLoader): Likewise.
4243 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
4244 length field of array.
4245 (_Jv_NewPrimArray): Likewise.
4246 * gcj/array.h (__JArray): `length' field now const. Added
4249 2000-11-26 Anthony Green <green@redhat.com>
4251 * javax/naming/spi/NamingManager.java,
4252 javax/naming/spi/ObjectFactory.java,
4253 javax/naming/spi/InitialContextFactory.java,
4254 javax/naming/spi/InitialContextFactoryBuilder.java,
4255 javax/naming/RefAddr.java, javax/naming/Reference.java,
4256 javax/naming/NamingException.java, javax/naming/Context.java,
4257 javax/naming/Referenceable.java,
4258 javax/naming/directory/InitialDirContext.java,
4259 javax/naming/directory/DirContext.java,
4260 javax/naming/directory/Attributes.java,
4261 javax/naming/directory/Attribute.java,
4262 javax/naming/StringRefAddr.java,
4263 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
4264 javax/naming/InitialContext.java,
4265 javax/naming/NoInitialContextException.java: New files.
4267 2000-11-25 Anthony Green <green@redhat.com>
4269 * prims.cc (_Jv_NewObjectArray): Undo placement change.
4270 (_Jv_NewPrimArray): Likewise.
4271 * gcj/array.h (__JArray): Undo const change. Removed constructor.
4272 (class JArray): Removed constructor.
4274 * java/lang/Thread.java (context_class_loader): New private data.
4275 (getContextClassLoader): New method.
4276 (setContextClassLoader): New method.
4277 (Thread): Initialize context_class_loader.
4279 * java/net/URLClassLoader.java: Import java.util.Enumeration.
4280 (getResource): Rename to findResource.
4281 (findResource): New method. Used to be getResource.
4282 (getResourceAsStream): Deleted.
4283 (jarFileize): Extracted logic from URLClassLoader constructor into
4284 this new private method.
4285 (addURL): New protected method.
4286 (URLClassLoader): Call jarFileize. Use addElement instead of
4288 (findResources): New method.
4290 * java/lang/ClassLoader.java: Import java.util.Enumeration.
4291 (getResource): Implement correct logic.
4292 (findResource): New method.
4293 (getResources): New method.
4294 (findClass): Create a ClassNotFoundException with the name of the
4295 class rather than nothing at all.
4296 (defineClass) Only throw ClassFormatError.
4298 * java/lang/Class.java (forName): New method.
4299 * java/lang/Class.h (forName): New method.
4300 * java/lang/natClass.cc (forName): New method.
4302 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4304 * java/lang/System.java (setProperties): Only call init_properties()
4305 if properties is null.
4306 (getProperties): Ditto.
4307 (getProperty): Ditto.
4308 (setProperty): Call init_properties if properties are null.
4309 (prop_init): Remove field.
4310 * java/lang/natSystem.cc (init_properties): Synchronize the entire
4311 method. Check for null properties after synchronizing instead of
4312 prop_init flag. Set the properties field last for thread safety.
4314 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
4315 test for gcj.dumpobjects property and enable object stream dumping
4317 (dumpElement): No longer native.
4318 (dumpElementln): Ditto.
4319 (setDump): Do not define.
4320 * java/io/natObjectInputStream.cc (dumpElement): Removed.
4321 (dumpElementln): Removed.
4324 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4326 * configure: Rebuilt.
4327 * Makefile.in: Rebuilt.
4328 * Makefile.am (built_java_source_files): Add Configuration.java.
4329 * configure.in: Add Configuration.java to CONFIG_FILES. Set
4330 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
4331 Create `gnu' directory in the build tree.
4332 * gnu/classpath/Configuration.java.in: New file.
4334 2000-11-24 Tom Tromey <tromey@cygnus.com>
4336 * prims.cc (_Jv_NewObjectArray): Use placement new to create
4338 (_Jv_NewPrimArray): Likewise.
4340 * gcj/array.h (__JArray): `length' field now const. Added
4342 (class JArray): Added constructor.
4344 2000-11-23 Mark Wielaard <mark@klomp.org>
4346 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
4349 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
4351 * java/util/Vector.java: Improve exception messages.
4352 (Vector): Check initialCapacity for IllegalArgumentException.
4353 (tromToSize): Don't check for elementCount == elementData.length
4355 (toArray): Don't try to set null marker if target array is the same
4356 length as the vector.
4358 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
4360 * Makefile.in: Rebuilt.
4361 * Makefile.am (core_java_source_files): Added Collections.java.
4362 * java/util/List.java: Merged from classpath.
4363 * java/util/Vector.java: Ditto.
4364 * java/util/Collections.java: From classpath.
4365 * java/util/ArrayList.java (addAll(Collection)): Call
4366 addAll(int,Collection) instead of duplicating code.
4367 (indexOf): Clean up int initialization.
4368 (clear): Set cleared array entries to null, to allow garbage
4370 * java/util/List.java: Minor formatting fixes.
4371 * java/util/SimpleTimeZone.java: ditto.
4373 2000-11-18 Tom Tromey <tromey@cygnus.com>
4375 * Makefile.in: Rebuilt.
4376 * Makefile.am (core_java_source_files): Added new files.
4377 * java/lang/reflect/ReflectPermission.java: New class.
4378 * java/io/FileFilter.java: From Classpath
4379 * java/io/FilePermission.java: From Classpath.
4381 2000-11-17 Tom Tromey <tromey@cygnus.com>
4383 * java/lang/reflect/AccessibleObject.java (isAccessible,
4384 setAccessible): Now public.
4386 * java/lang/natString.cc: Include Locale.h.
4387 (toUpperCase): Added `locale' argument. Handle locale
4389 (toLowerCase): Added `locale' argument. Handle locale
4391 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
4392 CAPITAL_I): New defines.
4393 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
4396 (toUpperCase, toLowerCase): New methods. Variants which accept
4399 * java/lang/ExceptionInInitializerError.java (printStackTrace):
4402 * java/util/PropertyPermission.java: Re-merged from Classpath.
4404 * java/text/RuleBasedCollator.java (getCollationElementIterator):
4406 * java/text/StringCharacterIterator.java: Reindented.
4407 (setText): New method.
4409 2000-11-17 Mark Wielaard <mark@klomp.org>
4411 Merge with Classpath (changes by Bryce McKinlay)
4412 * java/util/jar/*.java: Reformat all to unofficial standard coding
4413 style. No changes of substance.
4415 2000-11-17 Mark Wielaard <mark@klomp.org>
4417 * java/util/zip/*.java: Javadoc updates.
4419 2000-11-17 Tom Tromey <tromey@cygnus.com>
4421 * java/text/CollationKey.java: Implement Comparable.
4422 (compareTo(Object)): New method.
4423 * java/text/Collator.java (compare(Object,Object)): New method.
4424 Implement Comparator.
4426 * java/util/zip/InflaterInputStream.java (available): New method.
4427 (close): New method.
4428 (read, available, skip, fill): Throw exception if stream closed.
4429 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
4430 getNextEntry): Throw exception if closed.
4432 2000-11-16 Tom Tromey <tromey@cygnus.com>
4434 * java/io/PushbackReader.java: Merged with Classpath.
4435 * java/util/Arrays.java: Updated from Classpath.
4437 * scripts/blocks.pl: New file.
4438 * java/lang/Character.java (Subset): New class.
4439 (UnicodeBlock): New class.
4441 * java/lang/Math.java (toDegrees, toRadians): New methods.
4443 * java/lang/Float.java: Implement Comparable.
4444 (compareTo): New methods.
4445 * java/lang/Double.java: Implement Comparable.
4446 (compareTo): New methods.
4448 2000-11-16 Warren Levy <warrenl@cygnus.com>
4450 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
4452 (listeners): Made transient.
4453 (source): Renamed from 'bean'.
4454 (children): New field for serialization.
4455 (propertyChangeSupportSerializedDataVersion): Ditto.
4456 (serialVersionUID): Ditto.
4457 (writeObject): New serialization method.
4458 (readObject): New serialization method.
4459 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
4461 (listeners): Made transient.
4462 (source): Renamed from 'bean'.
4463 (children): New field for serialization.
4464 (vetoableChangeSupportSerializedDataVersion): Ditto.
4465 (serialVersionUID): Ditto.
4466 (writeObject): New serialization method.
4467 (readObject): New serialization method.
4468 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
4469 to allow constructor to have a return type (i.e. the class that the
4470 constructor constructs).
4472 2000-11-14 Tom Tromey <tromey@cygnus.com>
4474 * Makefile.in: Rebuilt.
4475 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
4478 2000-11-02 Warren Levy <warrenl@cygnus.com>
4480 * java/io/ObjectInputStream.java (readObject): Added code to
4481 conditionally dump out the serialized data.
4482 Handle ENDBLOCKDATA case a bit more gracefully since the current
4483 behavior doesn't seem to work as expected.
4484 (readStreamHeader): Added code for serialized data dumper.
4485 (readNextBlock): Ditto.
4486 (readFields): Ditto.
4487 (dump): New private static field for turning on/off dumper.
4488 (setDump): New native method.
4489 (dumpElement): New native method.
4490 (dumpElementln): New native method.
4491 * java/io/natObjectInputStream.cc (setDump): New method.
4492 (dumpElement): New method.
4493 (dumpElementln): New method.
4495 2000-11-02 Warren Levy <warrenl@cygnus.com>
4497 * java/net/InetAddress.java (addr): Renamed from 'address'.
4498 (address): New field to match Serialized Form doc.
4499 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4500 (family): New serialization field.
4501 (serialVersionUID): New field.
4502 (readObject): New method.
4503 (writeObject): New method.
4504 (getFamily): New native method.
4505 (InetAddress): Set family.
4506 * java/net/natInetAddress.cc (getFamily): New method.
4507 (addr): Renamed from 'address'.
4508 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4509 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
4510 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
4512 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
4514 * java/util/AbstractList.java (SubList): Make it a top-level private
4516 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
4518 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
4519 * Makefile.in: Rebuilt.
4521 2000-11-02 Tom Tromey <tromey@cygnus.com>
4523 * Makefile.in: Rebuilt.
4524 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
4527 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4529 * java/util/AbstractList.java (remove): Comment out modCount increment
4530 to work around compiler bug.
4533 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4535 * java/util/AbstractList.java: Throw messages with
4536 IndexOutOfBoundsExceptions.
4537 (listIterator()): Call listIterator(0).
4538 (size): New field. Initialize to size().
4539 (hasNext): Test position against size, not size().
4540 (remove): Increment knownMod by one instead of resetting it from
4543 (SubList.upMod): Removed.
4544 (SubList.set): Don't call upMod() or update knownMod.
4545 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
4546 (SubList.remove): Ditto.
4547 (SubList.addAll): Don't call backingList.size(). Increment size from
4549 (SubList.iterator): New method. Call listIterator(0).
4550 (SubList.listIterator): New method. Restore code to return an anonymous
4551 listIterator implementation (with some changes).
4552 * java/util/AbstractSequentialList.java: Throw messages with
4553 IndexOutOfBoundsExceptions.
4554 (addAll): Add a specnote.
4555 * java/util/ArrayList.java (removeRange): Get the math right.
4556 (addAll): Increment modCount _before_ creating iterator.
4557 * java/util/LinkedList.java: Rewritten, mostly.
4559 2000-11-01 Tom Tromey <tromey@cygnus.com>
4561 * scripts/encodings.pl: Added `ASCII' alias.
4562 * Makefile.in: Rebuilt.
4563 * Makefile.am (convert_source_files): Added new files.
4564 * gnu/gcj/convert/Input_ASCII.java: New file.
4565 * gnu/gcj/convert/Output_ASCII.java: New file.
4566 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
4567 out-of-range characters.
4568 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
4569 (read): Swap bytes if required. Treat `count' as character count,
4571 (write): Likewise. Also, handle case where iconv fails on a given
4573 (init): Put encoding into exception.
4574 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
4575 (static): Call iconv_init. Rebuilt alias list.
4576 (iconv_init): New private method.
4578 2000-11-01 Tom Tromey <tromey@cygnus.com>
4580 * Makefile.in: Rebuilt.
4581 * Makefile.am (install-exec-hook): Only make a single symlink, and
4582 remove the destination before making the link.
4583 * configure: Rebuilt.
4584 * configure.in: Call AC_PROG_LN_S.
4586 2000-10-31 Warren Levy <warrenl@cygnus.com>
4588 * jni.cc: Added include of java/lang/ThreadGroup.h.
4589 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
4590 per change of 2000-10-05.
4592 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
4594 * java/util/BitSet.java: Updated @specnote.
4596 * java/io/Reader.java: Merge docs from classpath.
4597 (skip): Synchronize on `lock'.
4598 * java/io/FileReader.java: Import correct implementation from
4600 * java/io/StringReader.java: Merge docs from classpath.
4601 (ready): Throw IOException if stream is closed.
4603 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
4605 * java/util/AbstractCollection.java (addAll): Use size() instead of
4606 hasNext() in iterator loop.
4608 (contains): Ditto. Simplify loop.
4609 (containsAll): Ditto.
4614 (toString): Ditto. Use string concatenation operators, not
4616 * java/util/AbstractList.java (addAll): Use size() instead of
4617 hasNext() in iterator loop.
4620 (indexOf): Ditto. Don't take null check outside of the loop.
4621 (iterator): Return an AbstractListItr instead of anonymous class.
4622 (lastIndexOf): Use a for loop bounded by size() instead of
4623 hasPrevious() in iterator loop.
4624 (listIterator): Return an AbstractListItr.
4625 (removeRange): Remove bounds checking code and docs.
4626 (AbstractListItr): New inner class. Code moved here from
4628 (SubList.iterator): Removed. Use default implementation from
4629 AbstractList instead.
4630 (SubList.listIterator): As above.
4631 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
4632 instead of hasNext() in iterator loop.
4633 (containsValue): Ditto.
4639 (toString): Ditto. Use string concatenation operators, not
4641 * java/util/AbstractSequentialList.java (addAll): Use a for loop
4642 bounded by size() instead of hasNext() in iterator loop.
4643 * java/util/AbstractSet.java (hashCode): Don't catch exception as
4644 part of normal execution flow. Do an explicit null check instead.
4645 * java/util/ArrayList.java (_iSize): Rename to `size'.
4646 (_arData): Rename to `data'.
4647 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4650 (removeRange): Make protected. Don't check bounds.
4651 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4653 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4655 (addAll (int, Collection)): Check lower bounds. Simplify exception
4657 (clone): Clone the data array too.
4658 (indexOf): Inline doesEqual().
4659 (lastIndexOf): Ditto.
4660 (clear): Don't set array data to null.
4661 (set): Check lower bounds. Simplify exception string.
4662 (toArray): Correct comment.
4663 (trimToSize): Don't update modCount, this is not a structural change.
4666 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4668 (toString): Declare `bit' as long, not int.
4669 (data): Made package-private, not private.
4671 2000-10-27 Warren Levy <warrenl@cygnus.com>
4673 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4674 array elements to true.
4676 2000-10-27 Warren Levy <warrenl@cygnus.com>
4678 * Makefile.am: Added locale files from Classpath.
4679 * Makefile.in: Rebuilt.
4680 * gnu/java/locale/Calendar.java: New file.
4681 * gnu/java/locale/Calendar_de.java: New file.
4682 * gnu/java/locale/Calendar_en.java: New file.
4683 * gnu/java/locale/Calendar_nl.java: New file.
4684 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4685 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4686 serialization compatibility.
4687 (scale): Made private.
4688 (serialVersionUID): New field.
4689 * java/math/BigInteger.java (ival): Made transient.
4690 (words): Made transient.
4691 (bitCount): New serialization field.
4693 (firstNonzeroByteNum): Ditto.
4694 (lowestSetBit): Ditto.
4697 (serialVersionUID): New field.
4698 (readObject): New method.
4699 (writeObject): New method.
4700 * java/util/BitSet.java (serialVersionUID): New field.
4701 * java/util/Calendar.java: Replaced with Classpath file.
4702 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4703 of getDefault() for TimeZone or Locale instead of passing nulls.
4704 * java/util/Locale.java (serialVersionUID): New field.
4705 (writeObject): New method.
4706 (readObject): New method.
4707 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4709 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
4711 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4712 (core_java_source_files): Put java.lang, java.io, and java.util here.
4713 (ordinary_java_source_files): Order so that core_java_source_files are
4715 (java_source_files): Reorder so that special_java_source_files are
4717 * configure.in: Don't pass -I flag to gcj.
4718 * Makefile.in: Rebuilt.
4719 * configure: Rebuilt.
4721 2000-10-25 Tom Tromey <tromey@cygnus.com>
4723 * Makefile.in: Rebuilt.
4724 * Makefile.am (install-exec-hook): New target.
4726 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
4728 * java/util/EventObject.java: Merged from classpath.
4730 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4733 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4735 * java/util/AbstractSet.java (equals): Re-installed original code.
4737 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4739 * Makefile.am: Added rules for libgcjx library.
4740 * Makefile.in: Rebuilt.
4741 * configure.in: Added check for X.
4742 * configure: Rebuilt.
4743 * gnu/awt/LightweightRedirector.java: New file.
4744 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4745 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4746 * gnu/awt/j2d/Graphics2DImpl.java: New file.
4747 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4748 * gnu/awt/j2d/MappedRaster.java: New file.
4749 * gnu/awt/xlib/XCanvasPeer.java: New file.
4750 * gnu/awt/xlib/XEventLoop.java: New file.
4751 * gnu/awt/xlib/XEventQueue.java: New file.
4752 * gnu/awt/xlib/XFontMetrics.java: New file.
4753 * gnu/awt/xlib/XFramePeer.java: New file.
4754 * gnu/awt/xlib/XGraphics.java: New file.
4755 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4756 * gnu/awt/xlib/XPanelPeer.java: New file.
4757 * gnu/awt/xlib/XToolkit.java: New file.
4758 * gnu/gcj/xlib/Clip.java: New file.
4759 * gnu/gcj/xlib/Colormap.java: New file.
4760 * gnu/gcj/xlib/Display.java: New file.
4761 * gnu/gcj/xlib/Drawable.java: New file.
4762 * gnu/gcj/xlib/Font.java: New file.
4763 * gnu/gcj/xlib/GC.java: New file.
4764 * gnu/gcj/xlib/Pixmap.java: New file.
4765 * gnu/gcj/xlib/Screen.java: New file.
4766 * gnu/gcj/xlib/Visual.java: New file.
4767 * gnu/gcj/xlib/WMSizeHints.java: New file.
4768 * gnu/gcj/xlib/Window.java: New file.
4769 * gnu/gcj/xlib/WindowAttributes.java: New file.
4770 * gnu/gcj/xlib/XAnyEvent.java: New file.
4771 * gnu/gcj/xlib/XButtonEvent.java: New file.
4772 * gnu/gcj/xlib/XColor.java: New file.
4773 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4774 * gnu/gcj/xlib/XConnectException.java: New file.
4775 * gnu/gcj/xlib/XEvent.java: New file.
4776 * gnu/gcj/xlib/XException.java: New file.
4777 * gnu/gcj/xlib/XExposeEvent.java: New file.
4778 * gnu/gcj/xlib/XID.java: New file.
4779 * gnu/gcj/xlib/XImage.java: New file.
4780 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4781 * gnu/gcj/xlib/natClip.cc: New file.
4782 * gnu/gcj/xlib/natColormap.cc: New file.
4783 * gnu/gcj/xlib/natDisplay.cc: New file.
4784 * gnu/gcj/xlib/natDrawable.cc: New file.
4785 * gnu/gcj/xlib/natFont.cc: New file.
4786 * gnu/gcj/xlib/natGC.cc: New file.
4787 * gnu/gcj/xlib/natPixmap.cc: New file.
4788 * gnu/gcj/xlib/natScreen.cc: New file.
4789 * gnu/gcj/xlib/natVisual.cc: New file.
4790 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4791 * gnu/gcj/xlib/natWindow.cc: New file.
4792 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4793 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4794 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4795 * gnu/gcj/xlib/natXColor.cc: New file.
4796 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4797 * gnu/gcj/xlib/natXException.cc: New file.
4798 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4799 * gnu/gcj/xlib/natXImage.cc: New file.
4800 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4801 * java/awt/EventDispatchThread.java: Start thead on creation.
4803 2000-10-20 Tom Tromey <tromey@cygnus.com>
4805 From Arno J. Klaassen:
4806 * interpret.cc: Include <stdlib.h> for alloca.
4807 * defineclass.cc: Include <stdlib.h> for alloca.
4809 * Makefile.in: Rebuilt.
4810 * Makefile.am: Include deps.mk.
4811 (GCJCOMPILE): Added -MD, -MT, and -MF.
4812 ($(javao_files)): Don't depend on libgcj.zip.
4813 (all-recursive): New target.
4814 (%.lo:%.cc): Do dependency tracking.
4815 ($(nat_headers)): Don't depend on libgcj.zip.
4816 * configure: Rebuilt.
4817 * configure.in: Make .d files and deps.mk.
4819 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4821 * exception.cc: Don't #include "exception".
4822 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4824 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4825 * Makefile.in: Updated.
4827 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4829 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4830 * java/awt/peer/ComponentPeer.java (disable): Removed.
4833 (minimumSize): Removed.
4834 (preferredSize): Removed.
4837 * java/awt/peer/ListPeer.java (addItem): Removed.
4839 (minimumSize): Removed.
4840 (preferredSize): Removed.
4841 (setMultipleSelections): Removed.
4842 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4843 (remove): Renamed from removeMenu.
4844 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4846 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4847 (remove): Renamed from removeItem.
4848 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4849 (getMinimumSize): Removed.
4850 (getPreferredSize): Removed.
4851 (minimumSize): Removed.
4852 (preferredSize): Removed.
4853 (replaceText): Removed.
4854 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4855 (preferredSize): Removed.
4856 (getMinimumSize): Removed.
4857 (getPreferredSize): Removed.
4858 (setEchoCharacter): Removed.
4860 2000-10-10 Warren Levy <warrenl@cygnus.com>
4862 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4863 * java/sql/Date.java (serialVersionUID): New field.
4864 * java/sql/Time.java (serialVersionUID): New field.
4865 * java/sql/Timestamp.java (serialVersionUID): New field.
4866 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4867 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4868 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4869 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4870 (readObject): New serialization method.
4871 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4872 (serialVersionOnStream): New field.
4873 (readObject): New serialization method.
4874 (getMonetaryDecimalSeparator): New method.
4875 (setMonetaryDecimalSeparator): New method.
4876 * java/text/NumberFormat.java (maxFractionDigits): New field.
4877 (maxIntegerDigits): New field.
4878 (minFractionDigits): New field.
4879 (minIntegerDigits): New field.
4880 (serialVersionOnStream): New field.
4881 (serialVersionUID): New field.
4882 (readObject): New serialization method.
4883 (writeObject): New serialization method.
4884 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4885 (serialVersionOnStream): New field.
4886 (serialVersionUID): New field.
4887 (readObject): New serialization method.
4889 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4891 * configure.in (GCJ): Avoid bogus error message when looking for
4892 (and not finding) gcj in the build tree.
4893 * configure: Rebuilt.
4895 2000-10-09 Tom Tromey <tromey@cygnus.com>
4897 * configure: Rebuilt.
4898 * configure.in: Include sys/types.h when checking for socklen_t.
4899 From Arno J. Klaassen.
4901 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4903 * include/jvm.h: Enable __builtin_expect().
4905 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4906 the main program. Fix for PR libgcj/341.
4908 2000-10-07 Tom Tromey <tromey@cygnus.com>
4910 * java/util/Properties.java: Merged with Classpath version.
4912 2000-10-05 Tom Tromey <tromey@cygnus.com>
4914 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4915 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4916 * java/lang/Class.h (Object): Added `class$' field.
4917 * java/lang/Object.h (Object): Added `class$' field.
4918 * defineclass.cc (ClassClass): Use `class$' form.
4919 (ClassObject): Likewise.
4920 * resolve.cc (ClassObject): Use `class$' form.
4921 (ObjectClass): Likewise.
4922 * interpret.cc (ClassError): Removed.
4923 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4925 (IntegerClass): Likewise.
4926 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4928 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4929 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4930 SerializableClass): Likewise.
4931 Include Serializable.h, Cloneable.h.
4932 * java/lang/natSystem.cc (SystemClass): Removed.
4933 (init_properties): Use `class$' form.
4934 * java/lang/natObject.cc (CloneableClass): Removed.
4935 (clone): Use `class$' form.
4936 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4937 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4938 ConstructorClass): Likewise.
4939 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4940 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4941 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4942 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4944 (ClassClass): Likewise.
4945 * include/jvm.h (StringClass): Use `class$' form.
4946 * prims.cc (ObjectClass): Removed.
4947 (_Jv_RunMain): Use `class$' form.
4948 (_Jv_AllocObject): Likewise.
4949 * jni.cc (ClassClass): Use `class$' form.
4950 (ThrowableClass): Likewise.
4951 (ObjectClass): Likewise.
4952 (MethodClass): Likewise.
4953 (ThreadGroupClass): Likewise.
4954 (NativeThreadClass): Likewise.
4955 * boehm.cc (ObjectClass): Removed.
4956 (ClassClass): Removed.
4957 (_Jv_MarkObj): Use `class$' form.
4958 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4961 2000-10-05 Warren Levy <warrenl@cygnus.com>
4963 * Makefile.am: Removed java/io/Replaceable.java and
4964 java/io/Resolvable.java.
4965 * Makefile.in: Rebuilt.
4966 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4968 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4970 (processResolution): Handle readResolve method via reflection with
4971 removal of Resolvable interface.
4972 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4973 method via reflection with removal of Replaceable interface.
4974 * java/io/Replaceable.java: Removed.
4975 * java/io/Resolvable.java: Removed.
4976 * java/security/Key.java (serialVersionUID): New field.
4977 * java/security/Provider.java (serialVersionUID): New field.
4978 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4980 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4982 * java/sql/DataTruncation.java (serialVersionUID): New field.
4983 * java/sql/SQLException.java (serialVersionUID): New field.
4984 * java/sql/SQLWarning.java (serialVersionUID): New field.
4985 * java/util/Date.java (serialVersionUID): New field.
4986 (millis): Made transient.
4987 (readObject): New method.
4988 (writeObject): New method.
4990 2000-10-05 Tom Tromey <tromey@cygnus.com>
4992 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4994 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4996 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4997 (JvRunMain): Set _Jv_argv and _Jv_argc.
4998 * java/awt/Component.java: Minor fixes.
4999 * java/awt/Image.java (UndefinedProperty): Initialize final field.
5000 * java/awt/Toolkit.java (systemEventQueue): Removed.
5001 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
5002 * java/awt/Window.java (getToolkit): Don't call super.
5003 * java/awt/image/BufferedImage.java: Fix definite assignment errors.
5004 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
5005 * gnu/awt/gtk/GtkComponentPeer.java: New file.
5006 * gnu/awt/gtk/GtkContainerPeer.java: New file.
5007 * gnu/awt/gtk/GtkFramePeer.java: New file.
5008 * gnu/awt/gtk/GtkMainThread.java: New file.
5009 * gnu/awt/gtk/GtkToolkit.java: New file.
5010 * gnu/awt/gtk/GtkWindowPeer.java: New file.
5011 * gnu/awt/gtk/gtkcommon.cc: New file.
5012 * gnu/awt/gtk/gtkcommon.h: New file.
5013 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
5014 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
5015 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
5016 * gnu/awt/gtk/natGtkMainThread.cc: New file.
5017 * gnu/awt/gtk/natGtkToolkit.cc: New file.
5018 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
5020 2000-09-30 Tom Tromey <tromey@cygnus.com>
5022 * posix-threads.cc (_Jv_CondWait): Check to see if we are
5023 interrupted before modifying the cv's wait set.
5026 2000-09-30 Hans Boehm <boehm@acm.org>
5027 Bryce McKinlay <bryce@albatross.co.nz>
5029 Implement bitmap descriptor based marking for Boehm GC.
5031 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
5032 * configure: Rebuilt.
5033 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
5034 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
5035 method get_finalizer().
5036 (struct _Jv_ArrayVTable): Ditto. Declare method array with
5037 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
5038 (_Jv_AllocObj): Add new jclass parameter.
5039 (_Jv_AllocArray): Ditto.
5040 (_Jv_BuildGCDescr): New prototype.
5041 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
5042 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
5043 get_finalizer() instead of direct finalizer vtable offset.
5044 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
5045 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
5046 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
5047 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
5048 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
5049 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
5050 (_Jv_DetermineVTableIndex): Ditto.
5051 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
5052 calculations to account for new gc_descr field.
5053 * boehm.cc: #include gc_gcj.h.
5054 (obj_kind_x, obj_free_list): `#if 0'-ed away.
5055 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
5056 New commentary from HB. Mark the classes vtable.
5057 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
5058 (GC_DEFAULT_DESCR): New #define.
5059 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
5060 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
5061 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
5062 scan conservativly if size is less than min_heap_addr. Set vtable
5063 pointer of new object before returning.
5064 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
5065 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
5066 allocation for obj_kind_x.
5067 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
5068 (_Jv_AllocObj): Set vtable on returned object.
5069 (_Jv_AllocArray): Ditto.
5070 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
5071 (_Jv_NewPrimArray): Ditto.
5072 (_Jv_AllocObj): Declare as a friend.
5073 (_Jv_AllocArray): Ditto.
5074 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
5075 from &ObjectClass into new array class. Remove offset-by-one
5076 adjustments from `method' size calculations to account for gc_descr
5079 2000-09-26 Tom Tromey <tromey@cygnus.com>
5081 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
5082 `remove', not `add'.
5084 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5086 * java/lang/natSystem.cc (file_encoding): Added return statement.
5088 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5090 * Makefile.am: Re-work shell commands that exceeded command-line
5092 * Makefile.in: Rebuilt.
5094 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
5096 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
5097 * java/lang/natDouble.cc: Likewise.
5098 * java/lang/reflect/natMethod.cc: Likewise.
5099 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
5101 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
5103 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
5105 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
5106 * acinclude.m4: Arrange for automake to not bring in a new
5107 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
5108 * Makefile.am: Leave it up to automake to subst GCJ.
5109 * aclocal.m4, configure, Makefile.in: Rebuilt.
5111 2000-09-13 Tom Tromey <tromey@cygnus.com>
5113 * java/lang/reflect/natArray.cc (BooleanClass): New define.
5114 (get): Ensure Boolean class is initialized.
5115 * java/lang/reflect/natField.cc (BooleanClass): New define.
5116 (get): Ensure Boolean class is initialized.
5118 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
5120 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
5121 Initialize with anonymous class.
5122 (compareToIgnoreCase): New method.
5124 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
5125 (uncaughtException): Set had_uncaught_exception.
5126 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
5127 exit with error status if set.
5128 (_Jv_RunMain): Ditto.
5130 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
5132 * configure: Rebuilt with new ../libtool.m4.
5134 2000-09-11 Tom Tromey <tromey@cygnus.com>
5136 * java/lang/reflect/Field.java (toString): Don't rely on
5139 2000-09-08 Tom Tromey <tromey@cygnus.com>
5141 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
5142 default decoder use iconv.
5143 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
5144 Let default encoder use iconv.
5145 * configure: Rebuilt.
5146 * configure.in: Check for nl_langinfo and <langinfo.h>.
5147 * java/lang/natSystem.cc (file_encoding): New function.
5148 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
5150 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
5152 * acinclude.m4: Simplify the tests for CC and CXX.
5153 * aclocal.m4, configure: Rebuilt.
5155 * acinclude.m4: Include libtool macros from the source tree.
5156 * aclocal.m4, configure: Rebuilt.
5158 2000-09-08 Warren Levy <warrenl@cygnus.com>
5160 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
5161 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
5162 * java/io/File.java (writeObject): Added.
5163 (readObject): Added.
5164 (serialVersionUID): Added.
5165 * java/io/ObjectOutputStream.java (writeObject): Initialized
5166 fieldsAlreadyWritten before recursion rather than after.
5167 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
5168 * java/io/OptionalDataException.java (serialVersionUID): Added.
5169 (OptionalDataException): Made package private.
5170 * java/io/SyncFailedException.java (SyncFailedException): Removed
5171 default constructor to match spec.
5172 * java/lang/Boolean.java (serialVersionUID): Added.
5173 * java/lang/Byte.java (serialVersionUID): Added.
5174 * java/lang/Character.java (serialVersionUID): Added.
5175 * java/lang/Double.java (serialVersionUID): Added.
5176 * java/lang/Float.java (serialVersionUID): Added.
5177 * java/lang/Integer.java (serialVersionUID): Added.
5178 * java/lang/Long.java (serialVersionUID): Added.
5179 * java/lang/Number.java (serialVersionUID): Added.
5180 * java/lang/Short.java (serialVersionUID): Added.
5181 * java/lang/String.java (serialVersionUID): Added.
5182 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
5184 * java/lang/reflect/InvocationTargetException.java
5185 (serialVersionUID): Added.
5186 * java/net/URL.java (handler): Made transient.
5187 (hashCode): Added field for serialization, per spec. and use
5188 cached value if available.
5189 (serialVersionUID): Added.
5190 (URL): Initialize hashCode.
5191 (set): Adjust hashCode.
5192 (readObject): New Method to initialize the protocol handler when
5194 (writeObject): New method.
5195 * java/text/BreakIterator.java: Removed 'implements Serializable'.
5196 * java/text/Collator.java: Removed 'implements Serializable'.
5197 * java/util/GregorianCalendar.java (serialVersionUID): Added.
5198 * java/util/Properties.java (serialVersionUID): Added.
5199 * java/util/Random.java (serialVersionUID): Added.
5200 (seed): Made private.
5201 (nextNextGaussian): Made private.
5202 (haveNextNextGaussian): Made private.
5203 * java/util/Stack.java (serialVersionUID): Added.
5204 * java/util/TimeZone.java (serialVersionUID): Added.
5205 * java/util/Vector.java (serialVersionUID): Added.
5207 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
5209 * Makefile.am (Thread.h): Don't be friends with native threads
5211 * Makefile.in: Rebuilt.
5212 * java/lang/Thread.java (interrupt_flag): Make package-private.
5214 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
5216 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
5217 to avoid long long division.
5219 2000-09-06 Tom Tromey <tromey@cygnus.com>
5221 * java/lang/reflect/Constructor.java (toString): Use `getName' for
5223 * java/lang/reflect/Method.java (toString): Use `getName' for
5226 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
5227 `args' if method takes no parameters.
5229 Fix for PR java.lang/339:
5230 * java/lang/natPosixProcess.cc (fail): New function.
5231 (cleanup): New function.
5232 (startProcess): Use them. Create pipe so child can communicate
5233 exec failure back to parent.
5235 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5237 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
5239 (send): Undo last patch. Remove the label only.
5241 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
5243 * java/net/natInetAdress.cc: Ditto.
5245 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
5247 2000-09-05 Tom Tromey <tromey@cygnus.com>
5249 * doc/cni.sgml: Updated from master copy.
5251 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5253 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
5255 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
5257 * java/lang/fdlibm.h: #undef __P if previously defined.
5258 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
5259 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
5263 2000-09-04 Tom Tromey <tromey@cygnus.com>
5265 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
5268 2000-09-04 Anthony Green <green@redhat.com>
5270 Fix for PR java.io/203:
5271 * java/io/File.java (createTempFile): Obey directory argument.
5272 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
5273 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
5274 variable to set java.io.tmpdir on non-WIN32 systems.
5276 2000-09-04 Anthony Green <green@redhat.com>
5278 * java/io/File.java (deleteOnExit): New method.
5279 * gnu/gcj/runtime/FileDeleter.java: New class.
5280 * java/lang/natRuntime.cc (exit): Call
5281 FileDeleter.deleteOnExitNow()
5282 * Makefile.am: Add FileDeleter.java.
5283 * Makefile.in: Rebuilt.
5285 2000-09-02 Tom Tromey <tromey@cygnus.com>
5287 * Makefile.in: Rebuilt.
5288 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
5289 environment variable.
5291 2000-09-01 Andrew Haley <aph@redhat.com>
5293 * java/io/StreamTokenizer.java: Don't throw a
5294 NumberFormatException if a field is numeric as far as the
5295 StreamTokenizer is concerned but not as far as Double.valueOf() is
5296 concerned: return a zero instead.
5298 2000-08-30 Tom Tromey <tromey@cygnus.com>
5300 * Makefile.in: Rebuilt.
5301 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
5303 2000-08-28 Tom Tromey <tromey@cygnus.com>
5305 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
5306 gnu/gcj/awt/ComponentDataBlitOp.java,
5307 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
5308 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
5309 java/awt/color/ICC_ColorSpace.java,
5310 java/awt/color/ICC_Profile.java,
5311 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
5312 java/awt/image/ComponentColorModel.java,
5313 java/awt/image/ComponentSampleModel.java,
5314 java/awt/image/DataBuffer.java,
5315 java/awt/image/DataBufferByte.java,
5316 java/awt/image/DataBufferInt.java,
5317 java/awt/image/DataBufferUShort.java,
5318 java/awt/image/DirectColorModel.java,
5319 java/awt/image/IndexColorModel.java,
5320 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
5321 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
5322 java/awt/image/SinglePixelPackedSampleModel.java,
5323 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
5324 Removed Latin-1 copyright symbols.
5325 * java/util/zip/ZipFile.java: Indentation fixes.
5327 2000-08-27 Mark Wielaard <mark@klomp.org>
5329 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
5330 constructor, close can delete the file, finalize calls close.
5331 * java/util/jar/JarFile.java: Constructor that takes mode now
5334 2000-08-27 Anthony Green <green@redhat.com>
5336 * java/util/ArrayList.java, java/util/Timer.java,
5337 java/util/LinkedList.java, java/util/TimerTask.java,
5338 java/util/HashMap.java, java/util/AbstractMap.java,
5339 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
5340 java/util/SortedSet.java: Imported from GNU Classpath.
5341 * Makefile.in: Rebuilt.
5342 * Makefile.am: Added new files.
5344 2000-08-26 Anthony Green <green@redhat.com>
5346 * Makefile.in: Rebuilt.
5347 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
5350 * prims.cc: Include ClassLoader.h.
5351 (_Jv_RunMain): When executing jar files, classpath must be the jar
5352 file only. Lose our reference to the system ClassLoader in order
5353 to get a new one with the correct classpath.
5354 * java/lang/natSystem.cc (init_properties): When executing a jar
5355 file, only use the jar file for java.class.path.
5357 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
5358 for bytecode archives.
5360 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
5361 exists, but not Main-Class.
5363 2000-08-23 Mark Wielaard <mark@klomp.org>
5365 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
5366 return -1 when fill() has no more data for the Inflater.
5368 2000-08-23 Mark Wielaard <mark@klomp.org>
5370 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
5371 write(String) already does.
5373 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
5375 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
5376 to `alive_flag', call `init'.
5377 (init): New native method.
5378 * gnu/gcj/jni/natNativeThread.cc (init): New native method
5381 2000-08-21 Mark Wielaard <mark@klomp.org>
5383 * Makefile.in: Rebuilt.
5384 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
5386 (java/lang/reflect/Field.h): Likewise.
5387 (java/lang/reflect/Method.h): Likewise.
5388 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
5391 2000-08-21 Tom Tromey <tromey@cygnus.com>
5393 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
5396 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
5398 * java/lang/natSystem.cc (init_properties): Change sourceware
5399 reference to sources.redhat.com.
5401 * include/java-props.h: Add _Jv_Jar_Class_Path.
5402 * prims.cc: Ditto. Set it from `gij -jar file' option.
5404 * java/lang/natSystem.cc (init_properties): Set java.class.path
5406 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
5408 * java/util/PropertyPermission.java: Import from GNU Classpath.
5409 * Makefile.in: Rebuilt.
5410 * Makefile.am: Add java/util/PropertyPermission.java.
5411 * java/lang/System.java: Add setProperty method.
5413 * gij.cc (main): Add -jar option to execute jar files.
5414 (help): Describe -jar option.
5415 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
5416 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
5417 * gnu/gcj/runtime/FirstThread.java (main): New method.
5419 * java/util/jar/Attributes.java: Correct comment spelling.
5421 2000-08-20 Mark Wielaard <mark@klomp.org>
5423 * java/util/zip/Adler32.java: Make private variables really private
5424 * java/util/zip/CRC32.java: Make private variables really private
5425 * java/util/zip/CheckedInputStream.java: skip() could skip to much
5427 * java/util/zip/InflaterInputStream.java: skip() could skip to
5429 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
5430 * java/util/zip/ZipFile.java: size() new 1.2 method
5431 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
5432 ZipEntry. since 1.2 available() always returns just 1 or 0 when
5435 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
5437 * java/util/jar/JarFile.java: Don't call
5438 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
5441 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
5443 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
5444 Read the entire contents of the class file, not just what is
5447 * java/net/JarURLConnection.java: getEntry doesn't take any
5448 arguments. Return null if element is null.
5450 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
5451 size from the archive, not the inflated size.
5453 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
5454 java.util.zip.ZipFile.getEntry.
5456 * gij.cc (help): Change sourceware reference to
5459 2000-08-19 Tom Tromey <tromey@cygnus.com>
5461 * java/util/zip/ZipInputStream.java (createZipEntry):
5464 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
5466 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
5467 java/util/jar/JarException.java, java/util/jar/JarFile.java,
5468 java/util/jar/JarInputStream.java,
5469 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
5470 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
5471 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
5472 java/security/cert/CRL.java, java/security/cert/CRLException.java,
5473 java/security/cert/Certificate.java,
5474 java/security/cert/CertificateEncodingException.java,
5475 java/security/cert/CertificateException.java,
5476 java/security/cert/CertificateExpiredException.java,
5477 java/security/cert/CertificateFactory.java,
5478 java/security/cert/CertificateFactorySpi.java,
5479 java/security/cert/CertificateNotYetValidException.java,
5480 java/security/cert/CertificateParsingException.java,
5481 java/security/cert/X509CRL.java,
5482 java/security/cert/X509CRLEntry.java,
5483 java/security/cert/X509Certificate.java,
5484 java/security/cert/X509Extension.java: Imported from Classpath.
5485 * java/util/Hashtable.java: Imported from Classpath.
5487 * java/util/zip/ZipInputStream.java: Create stub for
5490 * gcj/javaprims.h: Updated class list.
5492 * Makefile.in, gcj/Makefile.in: Rebuilt.
5493 * Makefile.am (ordinary_java_source_files): Add these new classes.
5495 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5497 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
5498 * gnu/gcj/awt/GLightweightPeer.java: New file.
5499 * java/awt/BorderLayout.java: Implemented all methods.
5500 * java/awt/Button.java (actionListener, actionCommand): Renamed
5501 and modifier change.
5502 (addNotify): Call super.
5503 (dispatchEventImpl): New method.
5504 (getListeners): New method.
5505 (label): Made package-private, not private.
5506 * java/awt/Canvas.java: Implemented class body.
5507 * java/awt/Color.java (brighter): New method.
5508 (darker): New method.
5509 (hashCode): New method.
5510 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
5511 (getGraphicsConfiguration): Delegate to
5512 getGraphicsConfigurationImpl().
5513 (getGraphicsConfigurationImpl): New method.
5514 (getToolkit): Only return value from peer if not null.
5515 (isDisplayable): Check with parent.
5516 (isShowing): No parent implies not showing.
5517 (getForeground): Check parent property if local is null.
5518 (getBackground): Likewise.
5519 (getFont): Likewise.
5520 (setForeground): Inform peer.
5521 (setBackground): Likewise
5522 (setLocale): Invalidate component.
5523 (getColorModel): Implemented.
5524 (setLocation): Invalidate, or ignore if no change.
5525 (setSize): Invalidate, or ignore if no change.
5526 (setBounds): Invalidate, or ignore if no change.
5527 (isOpaque): By default, heavyweight implies opaque.
5528 (isLightweight): Implemented.
5529 (getMaximumSize): Implemented.
5530 (doLayout): Implemented, NOP.
5531 (validate): Implemented, NOP.
5532 (invalidate): Only propagate to parent if parent was valid.
5533 (getGraphics): Implemented.
5534 (getFontMetrics): Implemented.
5535 (update): Implemented.
5536 (paintAll): Implemented.
5537 (repaint): Implemented all repaint methods.
5538 (print): Implemented.
5539 (printAll): Implemented.
5540 (createImage): Implemented.
5541 (dispatchEvent): Give the peer a chance to handle the event.
5542 (dispatchEventImpl): Dispatch paint events.
5543 (enableEvents): Lightweights enable events on parent component.
5544 (coalesceEvents): Coalesce paint events, and select event type
5546 (coalescePaintEvents): New method.
5547 (processEvent): Fix unfortunate ordering of statements, and call
5548 correct method for MOUSE_CLICKED.
5549 (processPaintEvent): New method.
5550 (addNotify): Allow container to notify children before event
5551 mask is set in peer.
5552 (addNotifyContainerChildren): New method.
5553 (removeNotify): Visibility should not change on removeNotify.
5554 (paramString): Implemented.
5555 (list): Implemented two of the list methods.
5556 * Container (myInsets): Removed, insets are managed by peer.
5557 (getInsets): Query peer.
5558 (addImpl): Fix reparenting, enable events for lightweights,
5559 initialize component array.
5560 (validate): Call doLayout in validateTree() instead.
5561 (validateTree): Do nothing if already valid. Call beginValidate(),
5562 endValidate() on peer. Call validateTree() instead of validate()
5563 for children that are containers. Mark valid after validation of
5565 (setFont): Partial implementation.
5566 (paint): Implemented.
5567 (visitChildren): New method.
5568 (visitChild): New method.
5569 (update): Implemented.
5570 (print): Implemented.
5571 (paintComponents): Implemented.
5572 (printComponents): Consider translation and clipping.
5573 (getComponentAt): Ignore invisible children. Return this if no
5575 (addNotify): Call super.
5576 (addNotifyContainerChildren): New method.
5577 (paramString): Implemented.
5578 (list): Implemented.
5579 * java/awt/EventQueue (invokeAndWait): Get system event queue the
5581 (invokeLater): Likewise.
5582 (isDispatchThread): Likewise.
5583 * java/awt/FontMetrics (getLeading): Formula change.
5584 (getDescent): Consider leading also.
5585 (getMaxAscent): Default to getAscent().
5586 (getMaxDescent): Default to getDescent.
5587 (getMaxAdvance): Return value signifying unknown.
5588 (charWidth): Both methods implemented.
5589 (charsWidth): Implemented.
5590 (bytesWidth): Implemented.
5591 (getWidths): Implemented.
5592 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
5594 (Frame): Rearragend constuctor chaining to disallow null being
5595 passed as a graphics configuration.
5596 (getTitle): Return empty string if null.
5598 (getIconImage): New method.
5599 (setIconImage): New method.
5600 (finalize): New method.
5601 (setMenuBar): Notify peer.
5602 (isResizable): New method.
5603 (setResizable): New method.
5604 (getState): New method.
5606 (remove): Implemented.
5607 (removeNotify): New method.
5608 (getFrames): New method.
5609 * java/awt/Graphics.java: Implemented body of class.
5610 * java/awt/Graphics2D.java: New file.
5611 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
5612 * java/awt/Image.java: Implemented body of class.
5613 * java/awt/Panel.java (Panel): Call correct super constructor.
5614 (addNotify): Implemented.
5615 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
5616 * java/awt/RenderingHints.java: New file.
5617 * java/awt/Toolkit.java (createComponent): Implemented.
5618 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
5619 * java/awt/Window.java (Window): Two new constructors. Reordered
5620 constructor chaining.
5621 (getGraphicsConfigurationImpl): New method.
5622 (finalize): Call super.
5623 (addNotify): Call super.
5624 (pack): Do layout stuff.
5625 (show): Ensure that peer exists and that component is valid.
5626 (dispose): Dispose owned children.
5627 (getOwner): Simplify code, casting null pointers is valid.
5628 (getGraphicsConfiguration): Ask peer if local value is null.
5629 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
5631 * java/awt/image/BufferedImage.java: New file.
5632 * java/awt/image/RasterOp.java: New file.
5633 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
5634 More powerful replacement for getColorModel().
5635 (getColorModel) Removed.
5636 (setEventMask) New method.
5637 * Makefile.am: Added new files.
5638 * Makefile.in: Rebuilt.
5640 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
5642 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
5643 (finit_leg_name): New global.
5644 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5645 `$finit$'. This is a backward compatibility hack.
5646 (java::lang::Class::_getMethods): Likewise.
5648 2000-08-15 Andrew Haley <aph@cygnus.com>
5650 * include/jvm.h (_Jv_HashCode): New hash code.
5652 2000-08-15 Tom Tromey <tromey@cygnus.com>
5654 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5656 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
5658 * THANKS: More thanks.
5660 2000-08-10 Tom Tromey <tromey@cygnus.com>
5662 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5664 (connect): Likewise.
5666 (getOption): Likewise.
5667 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5668 case when errno not set.
5671 (receive): Likewise.
5672 (mcastGrp): Likewise.
5673 (setOption): Likewise.
5674 (getOption): Likewise.
5676 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
5677 John Stracke <francis@ecal.com>
5679 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5680 (connect): Don't falsely claim HTTP/1.1 compliance. Call
5682 (disconnect): Don't unset connected flag.
5683 (getHeaderField (String)): Call connect() if not connected.
5684 (getHeaderField (int)): Ditto.
5685 (getHeaderFieldKey): Ditto.
5686 (getHttpHeaders): Don't call connect().
5687 * java/net/HttpURLConnection.java (instanceFollowRedirects,
5688 gotResponseVals): New fields.
5689 (getResponseCode): Call getResponseVals() conditionally.
5690 (getResponseMessage): Ditto.
5691 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5693 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
5695 * Makefile.am: Move beans and applet classes to awt_java_source_files.
5696 * Makefile.in: Rebuilt.
5697 * java/awt/Color.java (getTransparency): New method.
5698 * java/awt/Component.java: Various updates.
5699 * java/awt/Container.java (removeNotify): Call super.removeNotify()
5700 after dealing with children.
5701 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5702 * java/awt/Window.java: Various new methods and updates.
5703 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5705 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5706 * java/awt/event/WindowEvent.java (paramString): Ditto.
5707 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5709 * java/awt/geom/Point2D.java (clone): Ditto.
5710 * java/awt/geom/RectangularShape.java (clone): Ditto.
5711 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5712 isAlphaPremultiplied): Make package-private, not private.
5714 2000-08-08 Tom Tromey <tromey@cygnus.com>
5716 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5717 surrogate characters.
5718 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5720 (write): Correct handling of surrogate characters.
5722 2000-08-07 Tom Tromey <tromey@cygnus.com>
5724 * java/lang/reflect/Method.java (hashCode): Use getName().
5725 (toString): Likewise.
5726 * java/lang/reflect/natMethod.cc (getType): Initialize
5729 * java/lang/reflect/Method.java (toString): Use Class.getName, not
5731 * java/lang/reflect/Field.java (toString): Correct formatting.
5734 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5736 (receive): Streamlined.
5738 2000-08-05 Tom Tromey <tromey@cygnus.com>
5740 * java/io/PrintWriter.java: Merged comments from Classpath.
5741 (printlnUnsynchronized): Removed.
5742 (println()): Print the separator.
5743 (println): Call println(), not printlnUnsynchronized.
5744 (out): Now protected, to match spec.
5746 2000-08-04 Tom Tromey <tromey@cygnus.com>
5748 * java/io/StreamTokenizer.java (TT_NONE): Now private.
5749 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5752 2000-08-03 Warren Levy <warrenl@cygnus.com>
5754 * java/io/ObjectInputStream.java (readFields): Turn off
5755 readDataFromBlock while reading via GetField.
5756 (GetField$1.get(String, Object)): Pass Class of default value to
5758 (getField): Allow for null default values.
5760 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5761 (PutField$1.put): Fixed calls of checkType in most of the put
5762 methods to pass the correct parameter.
5763 (PutField$1.put(String, Object)): Allow for null value arg.
5764 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5767 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5768 typo in spec'ed field name.
5769 (getSerialPersistentFields): Changed spelling of method to match
5770 the correct spelling of the spec'ed field name.
5772 2000-08-03 Tom Tromey <tromey@cygnus.com>
5774 * Makefile.in: Rebuilt.
5775 * Makefile.am (awt_java_source_files): Added new files.
5777 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5779 * Makefile.am: Add new AWT stubs.
5780 * java/awt/Canvas.java: New placeholder class.
5781 * java/awt/Checkbox.java: Ditto.
5782 * java/awt/CheckboxMenuItem.java: Ditto.
5783 * java/awt/Choice.java: Ditto.
5784 * java/awt/Dialog.java: Ditto.
5785 * java/awt/FileDialog.java: Ditto.
5786 * java/awt/List.java: Ditto.
5787 * java/awt/ScrollPane.java: Ditto.
5788 * java/awt/TextField.java: Ditto.
5789 * java/awt/datatransfer/Clipboard.java: Ditto.
5790 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5791 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5792 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5793 Some commented out. Partially implemented.
5794 * java/awt/natToolkit.cc: Removed file.
5796 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5798 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5799 Fixes "make -j" builds.
5800 * Makefile.in: Rebuild.
5802 2000-08-02 Tom Tromey <tromey@cygnus.com>
5804 * Makefile.in: Rebuilt.
5805 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5806 * java/net/natPlainSocketImpl.cc: Include posix.h.
5807 (accept): Use _Jv_select.
5808 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5809 (receive): Use _Jv_select.
5810 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5811 (available): Use _Jv_select.
5812 * java/lang/natSystem.cc: Include posix.h.
5813 (currentTimeMillis): Use _Jv_gettimeofday.
5814 * include/posix.h: New file.
5815 * posix.cc: New file.
5817 * scripts/encodings.pl: New file.
5818 * Makefile.in: Rebuilt.
5819 * Makefile.am (convert_source_files): Added IOConverter.java.
5820 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5822 (getDefaultDecodingClass): Canonicalize default encoding name.
5823 (getEncoder): Likewise.
5824 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5826 (getDefaultDecodingClass): Canonicalize default encoding name.
5827 (getDecoder): Likewise.
5828 * gnu/gcj/convert/IOConverter.java: New file.
5830 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5832 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5833 to match C declaration in ffi.h.
5834 * Makefile.am: Add java/awt/Button.java.
5835 * Makefile.in: Rebuilt.
5837 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5839 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5840 cast of the second argument to `ffi_raw_call' changed to match
5843 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5845 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5846 argument to `ffi_raw_call' changed to match prototype.
5848 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5850 * java/awt/Component.java (toString): Implemented.
5851 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5852 dispatchEvent() to dispatch the event.
5853 (removeImpl): Ditto.
5855 2000-07-30 Anthony Green <green@redhat.com>
5857 * java/awt/Component.java: Add treeLock object.
5858 (getTreeLock): Implement.
5859 (isShowing): Implement.
5861 2000-07-30 Tom Tromey <tromey@cygnus.com>
5863 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5865 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5867 * java/awt/Window.java (addNotify): Wrote.
5868 (addWindowListener): Wrote.
5870 (getWarningString): Wrote.
5871 (processEvent): Wrote.
5872 (processWindowEvent): Wrote.
5873 (removeWindowListener): Wrote.
5874 (show): Call validate(), setVisible().
5878 * java/awt/Toolkit.java (createWindow): Declare.
5880 * java/awt/Frame.java (addNotify): Use getToolkit to find
5883 * java/awt/Component.java (invalidate): Wrote.
5885 (getToolkit): Wrote.
5887 * java/awt/Container.java (addContainerListener): Removed
5889 (removeContainerListener): Likewise.
5891 (add(Component)): Use it.
5892 (add(String,Component)): Likewise.
5893 (add(Component,int)): Likewise.
5894 (add(Component,Object)): Likewise.
5895 (add(Component,Object,int)): Likewise.
5897 (getAlignmentX): Wrote.
5898 (getAlignmentY): Wrote.
5899 (getComponentAt): Wrote.
5900 (getMaximumSize): Wrote.
5901 (invalidate): Wrote.
5902 (list(PrintStream,int)): Wrote.
5903 (list(PrintWriter,int)): Wrote.
5904 (getMinimumSize): Wrote.
5905 (getPreferredSize): Wrote.
5906 (printComponents): Wrote.
5907 (processContainerEvent): Look at containerListener, not
5909 (remove): Added event processing and peer destruction.
5910 (removeAll): Use remove.
5911 (removeNotify): Wrote.
5913 (validateTree): Wrote.
5915 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5916 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5917 * java/awt/Container.java (addNotify): Don't create Container
5919 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5921 2000-07-30 Tom Tromey <tromey@cygnus.com>
5923 * java/awt/Container.java (remove(int)): Wrote.
5924 (remove(Component)): Wrote.
5925 (add(Component)): Wrote.
5926 (add(Component,int)): Wrote.
5928 (addNotify): Set our own peer.
5929 * java/awt/Scrollbar.java (listeners): Changed type.
5930 (Scrollbar): Don't initialize listeners.
5932 (setValue): Call setValues.
5933 (setMinimum): Likewise.
5934 (setMaxPriority): Likewise.
5935 (setVisibleAmount): Likewise.
5937 (setUnitIncrement): Forward to peer.
5938 (setLineIncrement): Call setUnitIncrement.
5939 (setPageIncrement): Call setBlockIncrement.
5940 (setBlockIncrement): Forward to peer.
5941 (addAdjustmentListener): Rewrote.
5942 (removeAdjustmentListener): Rewrote.
5943 (processAdjustmentEvent): Rewrote.
5944 (paramString): Wrote.
5945 * Makefile.in: Rebuilt.
5946 * Makefile.am (awt_java_source_files): Added Button.java.
5947 * java/awt/Button.java: New file.
5948 * java/awt/Toolkit.java (createLabel): Declare.
5949 (createButton): Likewise.
5950 (createScrollbar): Likewise.
5951 (createContainer): Likewise.
5952 * java/awt/Label.java (addNotify): Wrote.
5953 (setAlignment): Call setAlignment in the peer.
5954 (setText): Call setText in the peer.
5956 2000-07-28 Warren Levy <warrenl@cygnus.com>
5958 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5959 NotSerializableException with just the class name.
5961 2000-07-26 Andrew Haley <aph@cygnus.com>
5963 * interpret.cc (continue1): Insert missing break into switch.
5965 2000-07-28 Warren Levy <warrenl@cygnus.com>
5967 * java/io/ObjectStreamException.java: Made constructors protected.
5969 2000-07-27 Tom Tromey <tromey@cygnus.com>
5971 * java/io/OutputStreamWriter.java (close): Only flush if not
5974 2000-07-27 Warren Levy <warrenl@cygnus.com>
5976 * mauve-libgcj: Activated serialization tests.
5977 * gcj/field.h (getModifiers): Mask off unknown flags.
5978 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5979 spurious bits don't cause discrepancies.
5980 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5981 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5982 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5983 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5984 * java/lang/Throwable.java (serialVersionUID): New field.
5985 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5986 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5988 * java/lang/reflect/natMethod.cc: Ditto.
5989 * java/security/Key.java (serialVersionUID): Removed field for now.
5990 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5991 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5993 2000-07-22 Tom Tromey <tromey@cygnus.com>
5995 * java/awt/geom/RectangularShape.java (getPathIterator):
5998 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
6000 * libjava/java/awt/image/ColorModel.java: New file, replaces the
6001 stub libjava/java/awt/ColorModel.java which was located in the
6003 * libjava/java/awt/image/ComponentColorModel.java: New file.
6004 * libjava/java/awt/image/ComponentSampleModel.java: New file.
6005 * libjava/java/awt/image/DataBuffer.java: New file.
6006 * libjava/java/awt/image/DataBufferByte.java: New file.
6007 * libjava/java/awt/image/DataBufferInt.java: New file.
6008 * libjava/java/awt/image/DataBufferUShort.java: New file.
6009 * libjava/java/awt/image/DirectColorModel.java: New file.
6010 * libjava/java/awt/image/PackedColorModel.java: New file.
6011 * libjava/java/awt/image/Raster.java: New file.
6012 * libjava/java/awt/image/SampleModel.java: New file.
6013 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
6015 * libjava/java/awt/image/IndexColorModel.java: New file.
6016 * libjava/java/awt/image/ImageConsumer.java: Removed import of
6017 java.awt.ColorModel stub.
6019 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
6020 * gnu/gcj/util/Buffers.java: New file, utility class.
6022 * libjava/Makefile.am: Updated to include new files.
6023 * libjava/Makefile.in: Rebuilt.
6025 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
6027 * java/io/StreamTokenizer.java: Merged with classpath.
6029 2000-07-20 Tom Tromey <tromey@cygnus.com>
6031 * Makefile.in: Rebuilt.
6032 * Makefile.am (awt_java_source_files): Updated for new files.
6033 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
6034 * java/awt/Label.java: New file.
6035 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
6036 (createIntersection, createUnion, getBounds2D): New methods.
6037 * java/awt/Scrollbar.java: New file.
6038 * java/awt/Shape.java: Updated to 1.2.
6039 * java/awt/geom/AffineTransform.java: New file.
6040 * java/awt/geom/Ellipse2D.java: New file.
6041 * java/awt/geom/NoninvertibleTransformException.java: New file.
6042 * java/awt/geom/PathIterator.java: New file.
6043 * java/awt/geom/Rectangle2D.java: New file.
6044 * java/awt/geom/RectangularShape.java: New file.
6045 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
6046 * java/awt/geom/IllegalPathStateException.java: New file.
6048 * scripts/showval.java: New file.
6050 * scripts/classes.pl (scan): Print inner classes properly.
6051 * gcj/javaprims.h: Updated class list.
6053 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
6054 initialize String fields for interpreted classes. Fixes bug
6055 reported by Hans Boehm.
6057 * java/io/File.java (getParentFile): New method, from Classpath
6058 via Oskar Liljeblad.
6060 * java/util/Vector.java (remove(Object)): Implemented.
6062 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
6064 * java/lang/natThrowable.cc (fillInStackTrace): Check for
6065 zero return from backtrace().
6067 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
6069 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
6071 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
6072 before calling notifyAll().
6074 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
6076 Add missing files from last check-in:
6077 * java/awt/image/ImageConsumer.java: New file.
6078 * java/awt/image/ImageProducer.java: New file.
6079 * java/awt/image/ImageObserver.java: New file.
6081 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6083 Merged implementation of java.applet from classpath:
6084 * java/applet/Applet.java: New file.
6085 * java/applet/AppletContext.java: New file.
6086 * java/applet/AppletStub.java: New file.
6087 * java/applet/AudioClip.java: New file.
6089 * Makefile.am: Added new java.applet classes.
6090 * Makefile.in: Rebuilt.
6092 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6095 * java/util/ResourceBundle.java (getLocale): stub.
6096 * Makefile.am: Added new AWT classes.
6097 * Makefile.in: Rebuilt.
6098 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
6099 constructors. Fix toString() and paramString().
6100 * java/awt/AWTEventMulticaster.java: New class. Implemented.
6101 * java/awt/CheckboxGroup.java: New class.
6102 * java/awt/ColorModel.java: New class.
6103 * java/awt/Component.java: Added stubs for most methods. Implemented
6105 * java/awt/Container.java: ditto.
6106 * java/awt/ComponentOrientation.java: New class. Partly implemented.
6107 * java/awt/Cursor.java: ditto.
6108 * java/awt/Event.java: Fix paramString().
6109 * java/awt/EventQueue.java: New class. Implemented.
6110 * java/awt/Font.java: Added additional stub methods. Implemented
6112 * java/awt/FontMetrics.java: New class. Stubbed.
6113 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
6115 * java/awt/Insets.java: New class. Implemented.
6116 * java/awt/Menu.java: Add new methods. Partially implemented.
6117 * java/awt/MenuItem.java: Add new methods and fields. Partially
6119 * java/awt/MenuShortcut.java: New class. Implemented.
6120 * java/awt/Panel.java: New class. Placeholder.
6121 * java/awt/PopupMenu.java: New class. Stubbed.
6122 * java/awt/Rectangle.java: New class. Implemented.
6123 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
6124 * java/awt/event/ActionEvent.java: Implement paramString().
6125 * java/awt/event/AdjustmentEvent.java: Implement paramString().
6126 * java/awt/event/ComponentEvent.java: Implement paramString().
6127 * java/awt/event/ContainerEvent.java: Implement paramString().
6128 * java/awt/event/FocusEvent.java: Implement paramString().
6129 * java/awt/event/HierarchyBoundsAdapter.java: New class.
6130 * java/awt/event/HierarchyBoundsListener.java: New class.
6131 * java/awt/event/HierarchyEvent.java: New class.
6132 * java/awt/event/HierarchyListener.java: New class.
6133 * java/awt/event/InputMethodEvent.java: Implement paramString().
6134 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
6135 exception if !catchExceptions.
6136 * java/awt/event/ItemEvent.java: Implement paramString().
6137 * java/awt/event/KeyEvent.java: Implement paramString().
6138 * java/awt/event/MouseEvent.java: Implement paramString().
6139 * java/awt/event/PaintEvent.java: Implement paramString().
6140 * java/awt/event/TextEvent.java: Implement paramString().
6141 * java/awt/event/WindowEvent.java: Implement paramString().
6143 AWT Peer interfaces:
6144 * java/awt/peer/ButtonPeer.java: New file.
6145 * java/awt/peer/ListPeer.java: New file.
6146 * java/awt/peer/CanvasPeer.java: New file.
6147 * java/awt/peer/MenuBarPeer.java: New file.
6148 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
6149 * java/awt/peer/MenuComponentPeer.java: New file.
6150 * java/awt/peer/CheckboxPeer.java: New file.
6151 * java/awt/peer/MenuItemPeer.java: New file.
6152 * java/awt/peer/ChoicePeer.java: New file.
6153 * java/awt/peer/MenuPeer.java: New file.
6154 * java/awt/peer/ComponentPeer.java: Implemented.
6155 * java/awt/peer/PanelPeer.java: New file.
6156 * java/awt/peer/ContainerPeer.java: Implemented.
6157 * java/awt/peer/PopupMenuPeer.java: New file.
6158 * java/awt/peer/DialogPeer.java: New file.
6159 * java/awt/peer/ScrollPanePeer.java: New file.
6160 * java/awt/peer/FileDialogPeer.java: New file.
6161 * java/awt/peer/ScrollbarPeer.java: New file.
6162 * java/awt/peer/FontPeer.java: New file.
6163 * java/awt/peer/TextAreaPeer.java: New file.
6164 * java/awt/peer/FramePeer.java: Implemented.
6165 * java/awt/peer/TextComponentPeer.java: New file.
6166 * java/awt/peer/LabelPeer.java: New file.
6167 * java/awt/peer/TextFieldPeer.java: New file.
6168 * java/awt/peer/LightweightPeer.java: New file.
6169 * java/awt/peer/WindowPeer.java: Implemented.
6171 2000-07-06 Tom Tromey <tromey@cygnus.com>
6173 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
6174 Initialize static final String fields.
6176 2000-07-03 Tom Tromey <tromey@cygnus.com>
6178 * java/io/PrintWriter.java (print): Call write(String), not
6179 print(String). See PR libgcj/277.
6180 (print(String)): Use write, not out.write.
6182 2000-06-30 Tom Tromey <tromey@cygnus.com>
6184 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
6186 2000-06-27 Andrew Haley <aph@cygnus.com>
6188 * java/io/File.java (createTempFile): Close the FileDescriptor
6189 used to create a temp file. Fixes some of PR 203.
6190 * java/io/natFileDescriptorPosix.cc (open): Call garbage
6191 collection if we run out of file handles.
6193 2000-06-28 Warren Levy <warrenl@cygnus.com>
6195 * gnu/java/security/provider/Gnu.java: New file.
6196 * gnu/java/security/provider/SHA.java: New file.
6197 * gnu/java/security/provider/SHA1PRNG.java: New file.
6198 * Makefile.am: Added the above files.
6199 * Makefile.in: Rebuilt.
6201 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
6203 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
6205 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
6206 (destroyed_flag): Removed.
6207 (isDestroyed, removeGroup, removeThread): Test for parent == null.
6208 (activeCount): Added spec note.
6210 2000-06-27 Warren Levy <warrenl@cygnus.com>
6212 * java/security/Principal.java: New file.
6213 * Makefile.am: Added Principal.java.
6214 * Makefile.in: Rebuilt.
6216 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
6218 * java/awt/event/MouseEvent.java: Fixed coordinate space
6221 2000-06-27 Tom Tromey <tromey@cygnus.com>
6223 * java/io/PushbackInputStream.java (read): If there are characters
6224 in the buffer, don't also call super.read().
6225 * java/io/PushbackReader.java (read): If there are characters in
6226 the buffer, don't also call super.read().
6228 * java/lang/Double.java (valueOf): Call parseDouble().
6230 2000-06-26 Warren Levy <warrenl@cygnus.com>
6232 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
6233 (newVal): Renamed to newValue.
6234 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
6235 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
6236 (revokeNow): Renamed to invalidateRefs.
6237 * java/io/OptionalDataException.java: Updated FIXME.
6238 (eof): New placeholder field.
6240 * java/io/WriteAbortedException.java (message): Made transient.
6241 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
6242 * java/lang/Throwable.java (stackTrace): Made transient.
6243 * java/net/InetAddress.java: Made Serializable.
6244 * java/security/KeyPair.java: Made Serializable.
6245 * java/security/Provider.java: Replaced with Classpath version that
6246 implements serialization and proper methods.
6247 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
6248 (limits): Renamed to choiceLimits.
6250 2000-06-24 Tom Tromey <tromey@cygnus.com>
6252 * java/lang/natDouble.cc (parseDouble): Renamed from
6254 * java/lang/Double.java (parseDouble): Renamed from
6255 doubleValueOf. Now public.
6257 2000-06-23 Andrew Haley <aph@cygnus.com>
6259 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
6260 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
6262 2000-06-23 Tom Tromey <tromey@cygnus.com>
6264 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
6265 * java/lang/natDouble.cc: Always include <alloca.h>.
6266 Fix for PR libgcj/267.
6268 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
6270 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
6271 comply with classpath VM spec.
6272 (add(Group)): Rename to addGroup().
6273 * java/lang/Thread.java (Thread): Use addThread().
6274 * java/lang/natThread.cc (finish_): Use removeThread().
6276 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
6278 * java/lang/ThreadGroup.java: Merged with classpath.
6279 * prims.cc (_Jv_RunMain): Don't use `main_group'.
6280 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
6282 * java/lang/Thread.java (Thread): Bootstrap initial thread from
6283 ThreadGroup.root if Thread.currentThread is null. Honour the
6284 ThreadGroup's max priority setting.
6286 2000-06-18 Tom Tromey <tromey@cygnus.com>
6288 * java/lang/natClass.cc (forName): Removed dead code. Initialize
6289 returned class. For PR gcj/260.
6291 2000-06-16 Tom Tromey <tromey@cygnus.com>
6293 Fix for PR libgcj/261:
6294 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
6296 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
6297 argument. (This is a patch from long ago that somehow went
6300 2000-06-15 Tom Tromey <tromey@cygnus.com>
6302 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
6306 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
6308 Fix for PR java.lang/258:
6309 * prims.cc (_Jv_PrimClass): Set state of primitive class to
6310 JV_STATE_DONE, to prevent accidental initialization.
6311 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
6312 _Jv_InterfaceAssignableFrom if target is an interface and source is an
6313 interface or an abstract class. Remove redundant initializeClass calls.
6314 Remove duplicate if_idt test.
6315 (_Jv_InterfaceAssignableFrom): New function.
6316 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
6318 2000-05-31 Tom Tromey <tromey@cygnus.com>
6320 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
6321 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
6322 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
6323 (NUM_OBJECT_METHODS): New define.
6324 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
6325 `array_vtable' parameter. Added assertion.
6326 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
6329 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
6331 * gcj/cni.h: Include <string.h>.
6332 * defineclass.cc: Include <alloca.h>.
6333 * interpret.cc: Ditto.
6334 * gij.cc: Include <stdlib.h>.
6336 2000-05-30 Tom Tromey <tromey@cygnus.com>
6338 * include/name-finder.h: Include <sys/wait.h>.
6339 (_Jv_name_finder::pid): Now of type `pid_t'.
6340 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
6341 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
6344 2000-05-24 Warren Levy <warrenl@cygnus.com>
6346 * java/io/ObjectOutputStream.java (writeObject): Use component type
6347 when writing arrays.
6350 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6352 Fix for PR libgcj/226:
6353 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
6354 since this is an installed header.
6356 Fix for PR libgcj/228:
6357 * java/util/zip/ZipFile (getInputStream): Create inflater with
6360 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
6361 with DataFormatException.
6363 2000-05-20 Tom Tromey <tromey@cygnus.com>
6365 * Makefile.in: Rebuilt.
6366 * Makefile.am (hack1): Removed.
6367 (awto_files): Likewise.
6368 (libgcjawt_la_SOURCES): Likewise.
6369 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6370 (libgcjawt_la_DEPENDENCIES): Likewise.
6371 (libgcjawt_la_LIBADD): Likewise.
6372 (libgcjawt_la_LDFLAGS): Likewise.
6373 (libgcjawt_la_LINK): Likewise.
6374 ($(awt_java_source_files:.java=.class)): Likewise.
6375 (libgcj.zip): Don't depend on AWT files.
6376 (MOSTLYCLEANFILES): Don't include AWT files.
6377 ($(awto_files)): Removed.
6378 (nat_headers): Removed AWT files.
6379 (cond_awt_java_source_files): Removed.
6380 (ordinary_java_source_files): Added awt_java_source_files.
6381 * libgcj.spec.in (*lib): Removed -lgcjawt.
6382 * configure: Rebuilt.
6383 * configure.in: Removed --enable-java-awt option.
6385 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6387 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
6388 (ZipEntry): Copy the `name' field.
6389 (clone): Implement JDK1.2 method.
6390 (setCompressedSize): ditto.
6393 2000-05-19 Tom Tromey <tromey@cygnus.com>
6395 * java/io/BufferedWriter.java: Merged with Classpath.
6396 * java/io/BufferedOutputStream.java: Merged with Classpath.
6398 2000-05-16 Andrew Haley <aph@cygnus.com>
6400 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
6401 build_ia64_frame_state.
6402 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
6405 2000-05-15 Warren Levy <warrenl@cygnus.com>
6407 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
6408 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
6409 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
6410 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
6411 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
6412 * gnu/gcj/beans/editors/FontEditor.java: Removed.
6413 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
6414 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
6415 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
6416 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
6417 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
6418 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
6419 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
6420 * gnu/gcj/beans/editors/StringEditor.java: Removed.
6421 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
6422 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
6423 * gnu/gcj/io/NullOutputStream.java: Removed.
6424 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
6425 * gnu/gcj/lang/ArrayHelper.java: Removed.
6426 * gnu/gcj/lang/ClassHelper.java: Removed.
6427 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
6429 * gnu/java/beans/BeanInfoEmbryo.java: New file.
6430 * gnu/java/beans/EmptyBeanInfo.java: New file.
6431 * gnu/java/beans/ExplicitBeanInfo.java: New file.
6432 * gnu/java/beans/IntrospectionIncubator.java: New file.
6433 * gnu/java/beans/editors/ColorEditor.java: New file.
6434 * gnu/java/beans/editors/FontEditor.java: New file.
6435 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
6436 * gnu/java/beans/editors/NativeByteEditor.java: New file.
6437 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
6438 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
6439 * gnu/java/beans/editors/NativeIntEditor.java: New file.
6440 * gnu/java/beans/editors/NativeLongEditor.java: New file.
6441 * gnu/java/beans/editors/NativeShortEditor.java: New file.
6442 * gnu/java/beans/editors/StringEditor.java: New file.
6443 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
6444 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
6445 * gnu/java/io/NullOutputStream.java: New file.
6446 * gnu/java/io/ObjectIdentityWrapper.java: New file.
6447 * gnu/java/lang/ArrayHelper.java: New file.
6448 * gnu/java/lang/ClassHelper.java: New file.
6449 * gnu/java/lang/reflect/TypeSignature.java: New file.
6451 * Makefile.am: Updated for moving Classpath files from gnu/gcj
6452 namespace back to the original Classpath gnu/java namespace.
6453 * Makefile.in: Rebuilt.
6455 * java/beans/Beans.java: Namespace change.
6456 * java/beans/EventSetDescriptor.java: Namespace change.
6457 * java/beans/Introspector.java: Namespace change.
6458 * java/beans/PropertyEditorManager.java: Namespace change.
6459 * java/io/ObjectInputStream.java: Namespace change.
6460 * java/io/ObjectOutputStream.java: Namespace change.
6461 * java/io/ObjectStreamClass.java: Namespace change.
6462 * java/io/ObjectStreamField.java: Namespace change.
6464 2000-04-21 Warren Levy <warrenl@cygnus.com>
6466 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
6467 now that compiler patch is available.
6468 Removed unneeded System.loadLibrary.
6469 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
6470 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
6472 2000-04-19 Andrew Haley <aph@cygnus.com>
6474 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
6475 and target classes have been initialized.
6477 2000-04-19 Andrew Haley <aph@cygnus.com>
6479 * java/lang/String.java: implement Serializable, Comparable.
6480 (compareTo (Object)): New method.
6482 2000-04-19 Warren Levy <warrenl@cygnus.com>
6484 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
6485 instead of getField to retrieve non-public field.
6486 (getSerialPersistantFields): Ditto.
6488 2000-04-18 Warren Levy <warrenl@cygnus.com>
6490 * mauve-libgcj: Turned off object serialization tests temporarily
6491 due to compiler error.
6493 2000-04-17 Warren Levy <warrenl@cygnus.com>
6495 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
6496 to avoid build problem.
6498 * mauve-libgcj: Turned on object serialization tests.
6500 2000-04-17 Tom Tromey <tromey@cygnus.com>
6502 * libgcj.spec.in (*lib): Added -lgcjawt.
6504 2000-04-17 Andrew Haley <aph@cygnus.com>
6506 * Makefile.am: Add new files:
6507 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
6509 * Makefile.in: Rebuilt.
6511 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
6512 interface that has no implementations.
6513 Check for an attempt to assign an abstract class to an interface.
6515 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
6516 if we fail to find MessageDigest.getInstance ("SHA").
6518 * gnu/gcj/io/SimpleSHSStream.java: New file.
6519 * gnu/gcj/io/natSimpleSHSStream.java: New file.
6520 * gnu/gcj/io/shs.cc: New file.
6521 * gnu/gcj/io/shs.h: new file.
6523 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
6526 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
6527 punctuation from the classname of an array element.
6529 * gcj/javaprims.h: Add SimpleDigestStream.
6531 2000-04-17 Andrew Haley <aph@cygnus.com>
6533 * java/lang/natClass.cc (getPrivateField): Make recursive calls
6534 to getPrivateField for superclasses.
6536 2000-04-14 Andrew Haley <aph@cygnus.com>
6538 * Makefile.am: Add new files:
6539 java/io/ObjectOutputStream$PutField.h,
6540 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
6541 java/io/natObjectOutputStream.cc
6542 * Makefile.in: Rebuilt.
6543 * gcj/Makefile.in: Rebuilt.
6544 * include/Makefile.in: Rebuilt.
6545 * java/lang/Class.h (getPrivateField): New method.
6546 (getPrivateMethod): Ditto.
6547 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
6548 and java::io::ObjectStreamClass our friends.
6549 * java/lang/natClass.cc (getPrivateField): New method.
6550 (getPrivateMethod): Ditto.
6551 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
6552 * gcj/javaprims.h: Add serialization classes.
6553 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
6554 (setByteField): Ditto.
6555 (setCharField): Ditto.
6556 (setDoubleField): Ditto.
6557 (setFloatField): Ditto.
6558 (setIntField): Ditto.
6559 (setLongField): Ditto.
6560 (setShortField): Ditto.
6561 (setObjectField): Ditto.
6562 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
6564 (getByteField): Ditto.
6565 (getCharField): Ditto.
6566 (getDoubleField): Ditto.
6567 (getFloatField): Ditto.
6568 (getIntField): Ditto.
6569 (getLongField): Ditto.
6570 (getShortField): Ditto.
6571 (getObjectField): Ditto.
6572 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
6574 (getSerialPersistantFields): Ditto.
6575 (getDefinedSUID): Ditto.
6576 * java/io/natObjectOutputStream.cc: New file.
6577 * java/io/natObjectInputStream.cc: New file.
6579 2000-04-13 Warren Levy <warrenl@cygnus.com>
6581 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
6582 problems. Revert to previous version to reproduce and when fixed.
6584 2000-04-13 Warren Levy <warrenl@cygnus.com>
6586 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
6587 * gnu/gcj/io/NullOutputStream.java: New file.
6588 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
6589 * java/io/BlockDataException.java: New file.
6590 * java/io/Externalizable.java: New file.
6591 * java/io/InvalidClassException.java: New file.
6592 * java/io/InvalidObjectException.java: New file.
6593 * java/io/NotActiveException.java: New file.
6594 * java/io/NotSerializableException.java: New file.
6595 * java/io/ObjectInput.java: New file.
6596 * java/io/ObjectInputStream.java: New file.
6597 * java/io/ObjectInputValidation.java: New file.
6598 * java/io/ObjectOutput.java: New file.
6599 * java/io/ObjectOutputStream.java: New file.
6600 * java/io/ObjectStreamClass.java: New file.
6601 * java/io/ObjectStreamConstants.java: New file.
6602 * java/io/ObjectStreamField.java: New file.
6603 * java/io/Replaceable.java: New file.
6604 * java/io/Resolvable.java: New file.
6605 * java/io/SerializablePermission.java: New file.
6606 * java/io/WriteAbortedException.java: New file.
6607 * java/security/BasicPermission.java: New file.
6608 * java/security/DigestOutputStream.java: New file.
6609 * java/security/Guard.java: New file.
6610 * java/security/Permission.java: New file.
6611 * java/security/PermissionCollection.java: New file.
6612 * Makefile.am: Added above files.
6613 * Makefile.in: Rebuilt.
6615 * java/beans/Beans.java (instantiate): Activated serialization code.
6616 * java/lang/SecurityManager.java (checkPermission): New method.
6618 2000-04-12 Warren Levy <warrenl@cygnus.com>
6620 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
6621 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
6622 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
6623 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
6624 * gnu/gcj/beans/editors/ColorEditor.java: New file.
6625 * gnu/gcj/beans/editors/FontEditor.java: New file.
6626 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
6627 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
6628 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
6629 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
6630 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
6631 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
6632 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
6633 * gnu/gcj/beans/editors/StringEditor.java: New file.
6634 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
6635 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
6636 * gnu/gcj/lang/ArrayHelper.java: New file.
6637 * gnu/gcj/lang/ClassHelper.java: New file.
6638 * java/beans/BeanDescriptor.java: New file.
6639 * java/beans/BeanInfo.java: New file.
6640 * java/beans/Beans.java: New file.
6641 * java/beans/Customizer.java: New file.
6642 * java/beans/DesignMode.java: New file.
6643 * java/beans/EventSetDescriptor.java: New file.
6644 * java/beans/FeatureDescriptor.java: New file.
6645 * java/beans/IndexedPropertyDescriptor.java: New file.
6646 * java/beans/IntrospectionException.java: New file.
6647 * java/beans/Introspector.java: New file.
6648 * java/beans/MethodDescriptor.java: New file.
6649 * java/beans/ParameterDescriptor.java: New file.
6650 * java/beans/PropertyChangeEvent.java: New file.
6651 * java/beans/PropertyChangeListener.java: New file.
6652 * java/beans/PropertyChangeSupport.java: New file.
6653 * java/beans/PropertyDescriptor.java: New file.
6654 * java/beans/PropertyEditor.java: New file.
6655 * java/beans/PropertyEditorManager.java: New file.
6656 * java/beans/PropertyEditorSupport.java: New file.
6657 * java/beans/PropertyVetoException.java: New file.
6658 * java/beans/SimpleBeanInfo.java: New file.
6659 * java/beans/VetoableChangeListener.java: New file.
6660 * java/beans/VetoableChangeSupport.java: New file.
6661 * java/beans/Visibility.java: New file.
6662 * java/beans/beancontext/BeanContext.java: New file.
6663 * java/beans/beancontext/BeanContextChild.java: New file.
6664 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6665 * java/beans/beancontext/BeanContextChildSupport.java: New file.
6666 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6667 * java/beans/beancontext/BeanContextEvent.java: New file.
6668 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6669 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6670 * java/beans/beancontext/BeanContextProxy.java: New file.
6671 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6673 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6674 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6676 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6677 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6679 * java/beans/beancontext/BeanContextServices.java: New file.
6680 * java/beans/beancontext/BeanContextServicesListener.java: New file.
6681 * java/util/AbstractCollection.java: New file.
6682 * java/util/AbstractList.java: New file.
6683 * java/util/Arrays.java: New file.
6684 * Makefile.am: Added above files.
6685 * Makefile.in: Rebuilt.
6687 2000-04-11 Warren Levy <warrenl@cygnus.com>
6689 * java/awt/AWTError.java: New file.
6690 * java/awt/AWTEvent.java: New file.
6691 * java/awt/AWTException.java: New file.
6692 * java/awt/ActiveEvent.java: New file.
6693 * java/awt/Adjustable.java: New file.
6694 * java/awt/BorderLayout.java: New file.
6695 * java/awt/Color.java: New file.
6696 * java/awt/Component.java: New file.
6697 * java/awt/Container.java: New file.
6698 * java/awt/Dimension.java: New file.
6699 * java/awt/Event.java: New file.
6700 * java/awt/Font.java: New file.
6701 * java/awt/Frame.java: New file.
6702 * java/awt/Graphics.java: New file.
6703 * java/awt/IllegalComponentStateException.java: New file.
6704 * java/awt/Image.java: New file.
6705 * java/awt/ItemSelectable.java: New file.
6706 * java/awt/LayoutManager.java: New file.
6707 * java/awt/LayoutManager2.java: New file.
6708 * java/awt/Menu.java: New file.
6709 * java/awt/MenuBar.java: New file.
6710 * java/awt/MenuComponent.java: New file.
6711 * java/awt/MenuContainer.java: New file.
6712 * java/awt/MenuItem.java: New file.
6713 * java/awt/Paint.java: New file.
6714 * java/awt/PaintContext.java: New file.
6715 * java/awt/Point.java: New file.
6716 * java/awt/Rectangle.java: New file.
6717 * java/awt/Shape.java: New file.
6718 * java/awt/TextArea.java: New file.
6719 * java/awt/TextComponent.java: New file.
6720 * java/awt/Toolkit.java: New file.
6721 * java/awt/Transparency.java: New file.
6722 * java/awt/Window.java: New file.
6723 * java/awt/natToolkit.cc: New file.
6724 * java/awt/event/AWTEventListener.java: New file.
6725 * java/awt/event/ActionEvent.java: New file.
6726 * java/awt/event/ActionListener.java: New file.
6727 * java/awt/event/AdjustmentEvent.java: New file.
6728 * java/awt/event/AdjustmentListener.java: New file.
6729 * java/awt/event/ComponentAdapter.java: New file.
6730 * java/awt/event/ComponentEvent.java: New file.
6731 * java/awt/event/ComponentListener.java: New file.
6732 * java/awt/event/ContainerAdapter.java: New file.
6733 * java/awt/event/ContainerEvent.java: New file.
6734 * java/awt/event/ContainerListener.java: New file.
6735 * java/awt/event/FocusAdapter.java: New file.
6736 * java/awt/event/FocusEvent.java: New file.
6737 * java/awt/event/FocusListener.java: New file.
6738 * java/awt/event/InputEvent.java: New file.
6739 * java/awt/event/InputMethodEvent.java: New file.
6740 * java/awt/event/InputMethodListener.java: New file.
6741 * java/awt/event/InvocationEvent.java: New file.
6742 * java/awt/event/ItemEvent.java: New file.
6743 * java/awt/event/ItemListener.java: New file.
6744 * java/awt/event/KeyAdapter.java: New file.
6745 * java/awt/event/KeyEvent.java: New file.
6746 * java/awt/event/KeyListener.java: New file.
6747 * java/awt/event/MouseAdapter.java: New file.
6748 * java/awt/event/MouseEvent.java: New file.
6749 * java/awt/event/MouseListener.java: New file.
6750 * java/awt/event/MouseMotionAdapter.java: New file.
6751 * java/awt/event/MouseMotionListener.java: New file.
6752 * java/awt/event/PaintEvent.java: New file.
6753 * java/awt/event/TextEvent.java: New file.
6754 * java/awt/event/TextListener.java: New file.
6755 * java/awt/event/WindowAdapter.java: New file.
6756 * java/awt/event/WindowEvent.java: New file.
6757 * java/awt/event/WindowListener.java: New file.
6758 * java/awt/geom/Dimension2D.java: New file.
6759 * java/awt/geom/Point2D.java: New file.
6760 * java/awt/peer/ComponentPeer.java: New file.
6761 * java/awt/peer/ContainerPeer.java: New file.
6762 * java/awt/peer/FramePeer.java: New file.
6763 * java/awt/peer/WindowPeer.java: New file.
6764 * java/util/Collection.java: New file.
6765 * java/util/Comparator.java: New file.
6766 * java/util/Iterator.java: New file.
6767 * java/util/List.java: New file.
6768 * java/util/ListIterator.java: New file.
6769 * Makefile.am: Added above files.
6770 * Makefile.in: Rebuilt.
6772 2000-04-10 Warren Levy <warrenl@cygnus.com>
6774 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6775 * java/lang/FirstThread.java: Ditto.
6776 * java/lang/StringBuffer.java: Ditto.
6777 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6779 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6780 Special case handled in java.math.BigInteger.
6781 * java/math/BigInteger.java (divide): Handle the special case when
6782 dividing by 1 and the high bit of the dividend is set.
6783 (setShiftRight): Handle case when count == 0.
6785 2000-04-05 Andrew Haley <aph@cygnus.com>
6787 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6790 2000-04-05 Andrew Haley <aph@cygnus.com>
6792 * sysdep/ia64.c (rse_address_add): Delete.
6793 (IS_NaT_COLLECTION_ADDR): Delete.
6794 (ia64_backtrace_helper): check for null unwind_info.
6796 * sysdep/ia64-frame.h: add calc_caller_bsp.
6798 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6801 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6802 (_Jv_remI): Likewise.
6803 (_Jv_divJ): Likewise.
6804 (_Jv_remJ): Likewise.
6806 * interpret.cc (continue1): Use divide subroutines to guarantee
6807 correct Java standard behaviour.
6808 Floating-point division should not abort; make it so.
6810 2000-03-29 Tom Tromey <tromey@cygnus.com>
6812 * configure: Rebuilt.
6813 * configure.in: Test against `libgcj_sjlj', not
6814 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6815 to be set even when using sjlj.
6817 2000-03-24 Andrew Haley <aph@cygnus.com>
6819 * Makefile.am: Add file addr2name.awk.
6820 * Makefile.in: Rebuilt.
6821 * addr2name.awk: New file.
6822 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6824 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6827 2000-03-22 Andrew Haley <aph@cygnus.com>
6829 * configure.host: Add -funwind-tables for IA64.
6830 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6831 * Makefile.in: Rebuilt.
6832 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6833 * sysdep/ia64.c: New file.
6834 * sysdep/ia64-frame.h: New file.
6835 * configure.in: Add sysdep/ia64.c for ia64.
6836 * configure: Rebuilt.
6838 2000-03-17 Andrew Haley <aph@cygnus.com>
6840 * java/lang/natString.cc: Remove `register' keyword.
6841 interpret.cc: ditto.
6843 2000-03-16 Andrew Haley <aph@cygnus.com>
6845 * configure.host (ia64): Enable interpreter.
6847 2000-03-14 Hans Boehm <boehm@acm.org>
6849 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6851 2000-03-14 Andrew Haley <aph@cygnus.com>
6853 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6856 2000-03-10 Andrew Haley <aph@cygnus.com>
6858 * java/lang/ieeefp.h: Import latest version from fdlibm.
6860 2000-03-14 Andrew Haley <aph@cygnus.com>
6862 * prims.cc (_Jv_ThrowSignal): New function.
6863 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6865 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6866 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6867 * include/ppc-signal.h: New file.
6869 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6871 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6872 * java/lang/natThread.java (initialize_native): Cast `data' to
6874 * gnu/gcj/RawData.java: Clarify documentation.
6876 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6877 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6878 `jarFile', not `jarFileURL'.
6880 2000-05-15 Andrew Haley <aph@cygnus.com>
6882 * include/ppc-signal.h: New file.
6884 2000-05-11 Tom Tromey <tromey@cygnus.com>
6886 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6887 file headers, don't include `size' in the skip call.
6889 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6891 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6892 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6894 (replace): Reimplemented. Fix javadoc.
6895 (reverse): Call ensureCapacity_unsynchronized().
6896 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6898 (replace): Calculate length for arraycopy() correctly.
6900 2000-05-09 Tom Tromey <tromey@cygnus.com>
6902 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6904 (insert(int,char[],int,int): New method.
6905 (delete): New method from Classpath.
6906 (deleteCharAt): Likewise.
6907 (substring): Likewise.
6908 (shared): No longer private.
6909 Added JavaDoc comments from Classpath.
6910 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6913 2000-05-07 Tom Tromey <tromey@cygnus.com>
6915 * Makefile.in: Rebuilt.
6916 * Makefile.am (LIBLINK): New macro.
6917 (libgcj_la_LINK): Use it.
6918 (libgcjawt_la_LINK): Likewise.
6920 2000-05-06 Tom Tromey <tromey@cygnus.com>
6922 * Makefile.in: Rebuilt.
6923 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6925 2000-05-05 Tom Tromey <tromey@cygnus.com>
6927 Fix for PR libgcj/220:
6928 * Makefile.in: Rebuilt.
6929 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6930 (jv_convert_LDFLAGS): Likewise.
6931 (libgcj_la_LDFLAGS): Likewise.
6932 (GCJLINK): New macro.
6933 (jv_convert_LINK): Use it.
6934 (gij_LINK): Likewise.
6935 (libgcj_la_LINK): New macro.
6936 (libgcjawt_la_LINK): Likewise.
6938 2000-05-04 Tom Tromey <tromey@cygnus.com>
6940 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6942 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6946 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6948 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6949 (_Jv_IsAssignableFrom): Ditto.
6950 (_Jv_IsInstanceOf): Ditto.
6951 (_Jv_CheckCast): Ditto.
6952 (_Jv_CheckArrayStore): Ditto.
6953 * java/lang/Class.h (_Jv_InitClass): Ditto.
6954 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6959 (_Jv_MonitorExit): Ditto.
6960 * boehm.cc (_Jv_MarkObj): Ditto.
6961 (_Jv_MarkObj): Ditto.
6962 (_Jv_MarkArray): Ditto.
6963 * prims.cc (_Jv_AllocObject): Ditto.
6964 (_Jv_NewObjectArray): Ditto.
6965 (_Jv_NewPrimArray): Ditto.
6966 (_Jv_Malloc): Ditto.
6967 (_Jv_Realloc): Ditto.
6968 (_Jv_MallocUnchecked): Ditto.
6974 2000-05-04 Tom Tromey <tromey@cygnus.com>
6976 * java/util/Locale.java (Locale): Don't explicitly check for
6978 * java/util/Hashtable.java (containsKey): Don't explicitly check
6981 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6983 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6985 * java/text/StringCharacterIterator.java
6986 (StringCharacterIterator): Don't check for null.
6987 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6989 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6990 check for null pointer.
6991 (leaveGroup): Likewise.
6992 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6994 (setData): Likewise.
6995 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6998 2000-04-28 Jakub Jelinek <jakub@redhat.com>
7000 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
7001 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
7002 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
7003 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
7004 -rpath for in-gcc builds.
7005 * Makefile.in: Rebuilt.
7007 2000-04-28 Tom Tromey <tromey@cygnus.com>
7009 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
7012 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
7014 * libjava/java/lang/String.java (toString): Remove `final' hack.
7016 2000-04-05 Tom Tromey <tromey@cygnus.com>
7018 Runtime support for PR gcj/2:
7019 * prims.cc (_Jv_ThrowNullPointerException): New function.
7020 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
7022 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
7024 * prims.cc (_Jv_NewObjectArray): Fix typo.
7026 2000-04-26 Tom Tromey <tromey@cygnus.com>
7028 * Makefile.in: Rebuilt.
7029 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
7031 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
7033 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
7036 2000-04-22 Anthony Green <green@cygnus.com>
7038 * include/jvm.h (__builtin_expect): Define as unused for now.
7039 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
7043 (_Jv_MonitorExit): Ditto.
7044 * boehm.cc (_Jv_MarkObj): Ditto.
7045 (_Jv_MarkObj): Ditto.
7046 (_Jv_MarkArray): Ditto.
7047 (_Jv_AllocBytes): Ditto.
7048 * prims.cc (_Jv_AllocObject): Ditto.
7049 (_Jv_NewObjectArray): Ditto.
7050 (_Jv_NewPrimArray): Ditto.
7051 (_Jv_Malloc): Ditto.
7052 (_Jv_Realloc): Ditto.
7053 (_Jv_MallocUnchecked): Ditto.
7059 * include/Makefile.in: Rebuilt.
7060 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
7062 2000-04-21 Tom Tromey <tromey@cygnus.com>
7064 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
7065 Yet another new version from Classpath.
7067 Fix for PR libgcj/15:
7068 * java/util/natGregorianCalendar.cc (_REENTRANT,
7069 _POSIX_PTHREAD_SEMANTICS): Don't define.
7070 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
7071 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
7073 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
7075 * configure: Rebuilt.
7076 * configure.in: If using POSIX threads, define _REENTRANT if
7077 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
7078 GETHOSTBYNAME_R_NEEDS_REENTRANT.
7080 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7081 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
7082 version from Classpath.
7084 Fix for PR libgcj/213:
7085 * Makefile.in: Rebuilt.
7086 * Makefile.am (gij_SOURCES): Added gij.cc.
7087 (EXTRA_gij_SOURCES): Removed.
7088 (gij_LDADD): Removed gij.lo.
7089 (gij_DEPENDENCIES): Likewise.
7090 ($(gij_OBJECTS)): Depend on nat_headers.
7092 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
7093 `setURL', not `url.set'.
7095 2000-04-20 Tom Tromey <tromey@cygnus.com>
7097 Fix for PR java.io/204:
7098 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7099 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
7102 Fix for PR libgcj/212:
7103 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
7104 * include/jvm.h (_Jv_word, _Jv_word2): Define.
7105 * java/lang/Class.h (_Jv_word): Declare.
7107 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
7109 2000-04-19 Tom Tromey <tromey@cygnus.com>
7111 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
7112 doesn't have a loader.
7114 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
7116 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
7117 MAYBE_MARK to ptr_t, for compatibility with new GC version.
7119 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
7121 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
7123 (available): Initialize `where' to prevent bogus compiler warning.
7125 2000-04-12 Tom Tromey <tromey@cygnus.com>
7127 * java/lang/natString.cc (intern): Temporarily disable finalizer
7130 * java/lang/natString.cc (unintern): Added `obj' argument.
7131 (intern): Register finalizer for string.
7132 * java/lang/String.java (unintern): Now static; added obj
7135 2000-04-11 Tom Tromey <tromey@cygnus.com>
7137 * java/util/Vector.java (VectorEnumeration): Now `final'.
7138 * java/util/Hashtable.java (HashtableEntry): Now `final'.
7139 (HashtableEnumeration): Likewise.
7140 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
7141 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
7143 2000-04-10 Warren Levy <warrenl@cygnus.com>
7145 * java/io/ObjectStreamException.java: New file.
7146 * java/io/OptionalDataException.java: New file.
7147 * java/io/StreamCorruptedException.java: New file.
7148 * java/math/BigDecimal.java: New file.
7149 * java/sql/CallableStatement.java: New file.
7150 * java/sql/Connection.java: New file.
7151 * java/sql/DataTruncation.java: New file.
7152 * java/sql/DatabaseMetaData.java: New file.
7153 * java/sql/Date.java: New file.
7154 * java/sql/Driver.java: New file.
7155 * java/sql/DriverManager.java: New file.
7156 * java/sql/DriverPropertyInfo.java: New file.
7157 * java/sql/PreparedStatement.java: New file.
7158 * java/sql/ResultSet.java: New file.
7159 * java/sql/ResultSetMetaData.java: New file.
7160 * java/sql/SQLException.java: New file.
7161 * java/sql/SQLWarning.java: New file.
7162 * java/sql/Statement.java: New file.
7163 * java/sql/Time.java: New file.
7164 * java/sql/Timestamp.java: New file.
7165 * java/sql/Types.java: New file.
7166 * Makefile.am: Added above new files.
7167 * Makefile.in: Rebuilt.
7169 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
7170 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
7171 DatagramSocket constructor instead of null.
7173 2000-04-08 Anthony Green <green@cygnus.com>
7175 * include/posix-threads.h (_Jv_MutexUnlock): Replace
7178 2000-04-08 Anthony Green <green@cygnus.com>
7180 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
7181 (_Jv_MutexUnlock): Ditto.
7182 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
7183 (_Jv_MutexUnlock): Ditto.
7185 2000-04-08 Anthony Green <green@cygnus.com>
7187 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
7188 (ensureCapacity_unsynchronized): New private method.
7189 (append): Use ensureCapacity_unsynchronized.
7191 2000-04-08 Tom Tromey <tromey@cygnus.com>
7193 * Makefile.in: Rebuilt.
7194 * Makefile.am (awt_java_source_files): Added new files.
7195 * java/awt/IllegalComponentStateException.java: New file.
7196 * java/awt/ItemSelectable.java: New file.
7197 * java/awt/event/WindowEvent.java: Finished.
7198 * java/awt/event/TextEvent.java: Finished.
7199 * java/awt/event/ContainerEvent.java: New file.
7200 * java/awt/Component.java (getX, getY): New methods.
7201 * java/awt/event/PaintEvent.java: New file.
7202 * java/awt/event/MouseEvent.java: New file.
7203 * java/awt/ActiveEvent.java: New file.
7204 * java/awt/event/KeyEvent.java: Finished.
7205 * java/awt/event/ItemEvent.java: New file.
7206 * java/awt/Adjustable.java: New file.
7207 * java/awt/event/InputMethodEvent.java: New file.
7208 * java/awt/event/InputEvent.java: Finished.
7209 * java/awt/event/FocusEvent.java: New file.
7210 * java/awt/event/MouseMotionAdapter.java: New file.
7211 * java/awt/event/MouseAdapter.java: New file.
7212 * java/awt/event/KeyAdapter.java: New file.
7213 * java/awt/event/FocusAdapter.java: New file.
7214 * java/awt/event/ContainerAdapter.java: New file.
7215 * java/awt/event/ComponentEvent.java: Finished.
7216 * java/awt/event/AdjustmentEvent.java: New file.
7217 * java/awt/event/ComponentAdapter.java: New file.
7218 * java/awt/event/ActionEvent.java: Finished.
7219 * java/awt/event/MouseMotionListener.java: New file.
7220 * java/awt/event/MouseListener.java: New file.
7221 * java/awt/event/ItemListener.java: New file.
7222 * java/awt/event/InputMethodListener.java: New file.
7223 * java/awt/event/ContainerListener.java: New file.
7224 * java/awt/event/FocusListener.java: New file.
7225 * java/awt/event/ComponentListener.java: New file.
7226 * java/awt/event/AWTEventListener.java: New file.
7227 * java/awt/event/AdjustmentListener.java: New file.
7229 2000-04-08 Anthony Green <green@cygnus.com>
7231 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
7232 check when we have to.
7234 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
7237 * java/util/StringTokenizer.java: Minor optimization. Eliminates
7240 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
7241 inline hasMoreElements.
7243 2000-04-05 Tom Tromey <tromey@cygnus.com>
7245 * configure: Rebuilt.
7246 * configure.in: Recognize --enable-java-awt.
7247 (AWT): New conditional.
7248 * Makefile.in: Rebuilt.
7249 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
7251 (libgcjawt_la_SOURCES): New macro.
7252 (EXTRA_libgcjawt_la_SOURCES): Likewise.
7253 (libgcjawt_la_DEPENDENCIES): Likewise.
7254 (libgcjawt_la_LIBADD): Likewise.
7255 (libgcjawt_la_LDFLAGS): Likewise.
7256 (libgcj.zip): Depend on cond_java_awt_source_files
7257 (cond_awt_java_source_files): New macro.
7258 (MOSTLYCLEANFILES): Added awto_files.
7259 (awto_files): New macro. Use where javao_files used.
7260 (nat_headers): Use cond_awt_java_source_files.
7262 2000-04-04 Tom Tromey <tromey@cygnus.com>
7264 * Makefile.in: Rebuilt.
7265 * Makefile.am (awt_java_source_files): Added AWTException.java.
7266 * java/awt/AWTException.java: New file.
7268 2000-04-03 Tom Tromey <tromey@cygnus.com>
7270 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
7271 commentary from Alex.
7273 * Makefile.in: Rebuilt.
7274 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
7277 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
7279 * configure: Rebuilt.
7280 * configure.in: Add --disable-jvmpi.
7281 * include/config.h.in: Rebuilt.
7282 * acconfig.h: Add ENABLE_JVMPI.
7284 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
7285 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
7286 (_Jv_JVMPI_Notify_THREAD_END): New define.
7287 (_Jv_JVMPI_Notify_THREAD_END): New define.
7288 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
7289 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7290 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7292 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
7295 * java/lang/natThread.cc: Include JVMPI headers if necessary.
7296 (finish_): Generate JVMPI thread end events.
7297 (run_): Generate JVMPI thread start events.
7298 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
7299 preloaded JNI library.
7300 Include JVMPI headers if necessary.
7301 (run): Generate JVMPI thread start events.
7303 * boehm.cc: Define GC_disable and GC_enable.
7304 (_Jv_DisableGC): New function.
7305 (_Jv_EnableGC): New function.
7306 (disable_gc_mutex): Declare.
7307 * nogc.cc (_Jv_DisableGC): New function.
7308 (_Jv_EnableGC): New function.
7310 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
7311 (_Jv_JVMPI_Interface): Define.
7312 (jvmpiEnableEvent): New function.
7313 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
7315 * include/jvmpi.h: New file.
7317 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
7319 * Makefile.in: New #defines and friends for Thread.h.
7320 * Makefile.am: Ditto.
7321 * posix-threads.cc: (struct starter): Remove `object'.
7322 (_Jv_CondWait): Use interruptable condition variables and new
7323 recursive mutexes. New return codes on interrupt or non-ownership
7325 (_Jv_CondNotify): Ditto.
7326 (_Jv_CondNotifyAll): Ditto.
7327 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
7328 the target thread by signaling its wait condition.
7329 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
7330 not the starter struct. Initialize wait_mutex and wait_cond.
7331 (_Jv_MutexLock): New recursive mutex implementation. Moved from
7333 (_Jv_MutexUnlock): Ditto.
7334 (really_start): Set info->data->thread from pthread_self() to work
7335 around a race condition. Destroy wait_mutex and wait_cond when run()
7337 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
7338 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
7340 startable_flag: New private field.
7341 (Thread): Initialize `startable_flag'.
7342 (toString): Check for null thread group.
7343 * java/lang/natThread.cc: (struct natThread): New fields
7344 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
7345 (class locker): Removed.
7346 (initialize_native): Initialize `join_cond' and `join_mutex'.
7347 (interrupt): Now just calls _Jv_ThreadInterrupt().
7348 (join): Simplified. Just wait on the target thread's join condition.
7349 (finish_): Remove join list code. Unset thread group. Signal
7350 potential joiners by notifying the dying threads join_cond.
7351 (start): Check for illegal restarts.
7352 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
7354 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
7355 #defines and #ifdefs.
7356 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
7357 `wait_mutex', `next'.
7358 (struct _Jv_ConditionVariable_t): Define as a struct instead of
7359 directly mapping to pthread_cond_t.
7360 (struct _Jv_Mutex_t): New recursive implementation.
7361 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
7362 _Jv_HaveCondDestroy: Never define this for posix-threads.
7363 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
7364 (_Jv_CondNotifyAll): Ditto.
7365 (_Jv_MutexLock): Ditto.
7366 (_Jv_MutexUnlock): Ditto.
7367 (_Jv_MutexInit): Changed to reflect new mutex implementation.
7368 (_Jv_MutexDestroy): Ditto.
7369 (_Jv_CondDestroy): Removed.
7370 (_Jv_PthreadGetMutex): Removed.
7371 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
7372 error. Add a FIXME about this.
7373 (_Jv_CondNotifyAll): Ditto.
7374 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
7375 _JV_NOT_OWNER on other errors. Add FIXME.
7377 2000-03-26 Tom Tromey <tromey@cygnus.com>
7379 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
7381 (call): Don't throw exception here.
7383 2000-03-26 Tom Tromey <tromey@cygnus.com>
7385 * java/lang/mprec.h: Use SIZEOF_VOID_P.
7386 * interpret.cc: Use SIZEOF_VOID_P.
7387 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
7388 (_Jv_loadLong): Likewise.
7389 (_Jv_storeDouble): Likewise.
7390 * configure: Rebuilt.
7391 * configure.in: Check size of void*.
7393 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
7395 2000-03-26 Hans Boehm <boehm@acm.org>
7397 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
7398 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
7400 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
7401 __IEEE_LITTLE_ENDIAN appropriately on IA64.
7402 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
7403 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
7405 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
7406 (FFI_RAW_SIZE): Likewise.
7407 (_Jv_InterpMethod::ncode): Use them.
7408 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
7409 STORED): Define differently on a 64 bit machine.
7410 (continue1): Use ffi_java_raw_call when appropriate.
7412 2000-03-24 Warren Levy <warrenl@cygnus.com>
7414 * java/math/BigInteger.java(divide): Handle the special case when
7415 dividing by 1 and the high bit of the dividend is set.
7416 (setShiftRight): Handle case when count == 0.
7418 2000-03-24 Warren Levy <warrenl@cygnus.com>
7420 * java/awt/Font.java(isBold): Fix syntax error.
7422 * java/awt/Frame.java(postEvent): ditto.
7423 * java/awt/Menu.java(postEvent): ditto.
7424 * java/awt/MenuBar.java(postEvent): ditto.
7425 * java/awt/Toolkit.java(init): Included a stub.
7427 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7429 * java/awt/Event.java: Add all the event type constants.
7430 (Event): Implemented constructors.
7431 (controlDown): Implemented.
7432 (metaDown): Implemented.
7433 (paramString): Stubbed.
7434 (shiftDown): Implemented.
7435 (toString): Implemented.
7436 (translate): Implemented.
7438 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7440 * java/lang/natClass.cc (isInstance): Initialize `this'.
7441 (isAssignableFrom): Initialize `this' and `klass'.
7442 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
7443 implemented by any loaded class, so return false.
7444 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
7445 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
7447 2000-03-19 Warren Levy <warrenl@cygnus.com>
7449 * java/awt/Color.java: Specified java.io for Serializable.
7450 * java/awt/Toolkit.java: Imported java.net.URL.
7452 2000-03-19 Warren Levy <warrenl@cygnus.com>
7454 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
7456 2000-03-16 Warren Levy <warrenl@cygnus.com>
7458 * java/awt/Color.java: New file.
7459 * java/awt/Graphics.java: New file.
7460 * java/awt/Image.java: New file.
7461 * java/awt/Paint.java: New file.
7462 * java/awt/PaintContext.java: New file.
7463 * java/awt/Transparency.java: New file.
7464 * java/util/Collection.java: New file.
7465 * java/util/Comparator.java: New file.
7466 * java/util/Iterator.java: New file.
7467 * java/util/List.java: New file.
7468 * java/util/ListIterator.java: New file.
7469 * Makefile.am: Added above new files.
7470 * Makefile.in: Rebuilt.
7472 * java/awt/Font.java (PLAIN): New field.
7474 (ITALIC): New field.
7475 (ROMAN_BASELINE): New field.
7476 (CENTER_BASELINE): New field.
7477 (HANGING_BASELINE): New field.
7481 (pointSize): New field.
7482 (Font): Implemented constructor.
7483 (isPlain): Implemented method.
7484 (isBold): Implemented method.
7485 (isItalic): Implemented method.
7486 (getName): Implemented method.
7487 (getStyle): Implemented method.
7488 (getSize): Implemented method.
7489 (getSize2D): Implemented method.
7491 * java/awt/Frame.java (getFont): Stubbed.
7492 (postEvent): Stubbed.
7494 * java/awt/Menu.java (postEvent): Stubbed.
7495 * java/awt/MenuBar.java (getFont): Stubbed.
7496 (postEvent): Stubbed.
7497 * java/awt/Toolkit.java (getImage): Added abstract method.
7499 2000-03-15 Tom Tromey <tromey@cygnus.com>
7501 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
7503 * prims.cc (win32_exception_handler): Reformatted.
7505 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
7506 (_Jv_HaveMutexDestroy): Likewise.
7508 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
7510 * java/io/natFileDescriptorWin32.cc: New file.
7511 * java/io/natFileWin32.cc: New file.
7512 * java/net/natInetAddress.cc: Added conditional inclusion of
7513 Windows / Winsock headers.
7514 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
7515 inclusion of Windows / Winsock headers.
7516 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
7517 Windows / Winsock headers.
7518 * include/win32-signal.h: New file.
7519 * include/win32-threads.h: New file.
7520 * win32-threads.cc: New file.
7521 * exception.cc (win32_get_restart_frame): New function.
7522 * prims.cc (win32_exception_handler): New function.
7523 (main_init) Performs Winsock initialisation.
7524 (main_init) Installs exeception handler.
7526 2000-03-14 Tom Tromey <tromey@cygnus.com>
7528 * jni.cc (mangled_name): Fixed assertion.
7529 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
7530 turned assert into actual failure.
7532 2000-03-09 Warren Levy <warrenl@cygnus.com>
7534 * java/security/Key.java(serialVersionUID): Set to 0 for now.
7535 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
7536 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
7538 2000-03-09 Warren Levy <warrenl@cygnus.com>
7540 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
7541 * java/security/DigestException.java: New file.
7542 * java/security/GeneralSecurityException.java: New file.
7543 * java/security/InvalidAlgorithmParameterException.java: New file.
7544 * java/security/InvalidKeyException.java: New file.
7545 * java/security/InvalidParameterException.java: New file.
7546 * java/security/Key.java: New file.
7547 * java/security/KeyException.java: New file.
7548 * java/security/KeyPair.java: New file.
7549 * java/security/KeyPairGenerator.java: New file.
7550 * java/security/KeyPairGeneratorSpi.java: New file.
7551 * java/security/NoSuchProviderException.java: New file.
7552 * java/security/PrivateKey.java: New file.
7553 * java/security/Provider.java: New file.
7554 * java/security/PublicKey.java: New file.
7555 * java/security/SecureRandom.java: New file.
7556 * java/security/Security.java: New file.
7557 * java/security/Signature.java: New file.
7558 * java/security/SignatureException.java: New file.
7559 * java/security/interfaces/DSAKey.java: New file.
7560 * java/security/interfaces/DSAParams.java: New file.
7561 * java/security/interfaces/DSAPrivateKey.java: New file.
7562 * java/security/interfaces/DSAPublicKey.java: New file.
7563 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
7564 * java/security/interfaces/RSAPrivateKey.java: New file.
7565 * java/security/interfaces/RSAPublicKey.java: New file.
7566 * java/security/spec/AlgorithmParameterSpec.java: New file.
7567 * java/security/spec/InvalidKeySpecException.java: New file.
7568 * java/security/spec/InvalidParameterSpecException.java: New file.
7569 * java/security/spec/KeySpec.java: New file.
7570 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
7571 * java/security/spec/RSAPrivateKeySpec.java: New file.
7572 * java/security/spec/RSAPublicKeySpec.java: New file.
7573 * Makefile.am: Added above java.security files.
7574 * Makefile.in: Rebuilt.
7576 * java/security/MessageDigest.java: Rewritten.
7577 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
7579 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7583 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7585 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
7586 _Jv_PrepareConstantTimeTables.
7587 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
7588 classes should have an IDT, so don't return if klass is an array
7591 2000-03-08 Tom Tromey <tromey@cygnus.com>
7593 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
7594 of `void' to be created.
7596 2000-03-08 Warren Levy <warrenl@cygnus.com>
7598 * java/math/BigInteger.java(signum): Handle zero properly.
7600 2000-03-07 Tom Tromey <tromey@cygnus.com>
7602 * All files: Updated copyright information.
7603 * COPYING: New file.
7604 * COPYING.LIB: Removed.
7605 * LIBGCJ_LICENSE: We now use GPL + special exception.
7607 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7609 * resolve.cc (_Jv_SearchMethodInClass): New function.
7610 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
7611 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
7613 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7615 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
7616 (struct _Jv_ifaces): New declaration.
7617 JV_CLASS: New macro definition.
7618 (getComponentType): Relocate below isArray() for inlining.
7619 (getModifiers): Declare `inline'.
7620 (getSuperclass): Ditto.
7622 (isPrimitive): Ditto.
7623 (_Jv_IsAssignableFrom): New prototype.
7624 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
7626 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
7627 Check for JV_STATE_DONE before invoking initializeClass().
7628 (_Jv_PrepareConstantTimeTables): New prototype.
7629 (_Jv_GetInterfaces): Ditto.
7630 (_Jv_GenerateITable): Ditto.
7631 (_Jv_GetMethodString): Ditto.
7632 (_Jv_AppendPartialITable): Ditto.
7633 (_Jv_FindIIndex): Ditto.
7634 depth, ancestors, idt: New class fields.
7636 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
7637 inline function `_Jv_IsAssignableFrom'. Use that function.
7638 (isInstance): Declare `inline'.
7639 (initializeClass): Get lock on class before checking `state'. Unlock
7640 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
7642 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
7643 (_Jv_IsAssignableFrom): New inline function. Test assignability using
7644 class->depth and ancestor table.
7645 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7646 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7647 _Jv_IsAssignableFrom.
7648 (_Jv_CheckArrayStore): Ditto.
7649 (_Jv_LookupInterfaceMethodIdx): New function.
7650 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7651 (_Jv_PrepareConstantTimeTables): New function.
7652 (_Jv_IndexOf): Ditto.
7653 (_Jv_GetInterfaces): Ditto.
7654 (_Jv_GenerateITable): Ditto.
7655 (_Jv_GetMethodString): Ditto.
7656 (_Jv_AppendPartialITable): Ditto.
7657 iindex_mutex, iindex_mutex_initialized: New static fields.
7658 (_Jv_FindIIndex): New function.
7660 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7662 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7663 (_Jv_CheckArrayStore): Ditto.
7664 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7665 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7666 Moved to gcj/array.h.
7667 (_Jv_Realloc): New function.
7669 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7671 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7672 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7673 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7674 JvNewDoubleArray): Implementations moved from prims.cc and
7677 * gcj/javaprims.h (_Jv_Realloc): Prototype.
7679 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7681 2000-03-06 Tom Tromey <tromey@cygnus.com>
7683 * jni.cc (MARK_NONE): New define.
7684 (MARK_USER): Likewise.
7685 (MARK_SYSTEM): Likewise.
7686 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7688 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7689 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7690 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7691 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7693 (call): Use MARK_SYSTEM.
7694 (_Jv_GetJNIEnvNewFrame): New function.
7695 (_Jv_LookupJNIMethod): New function.
7696 (_Jv_JNI_PopSystemFrame): New function.
7697 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7699 2000-03-05 Tom Tromey <tromey@cygnus.com>
7701 Fix for PR libgcj/43:
7702 * include/Makefile.in: Rebuilt.
7703 * include/Makefile.am (include_HEADERS): New define.
7705 2000-03-05 Anthony Green <green@redhat.com>
7707 * gcj/javaprims.h ("Java"): Remove FirstThread.
7709 * configure.host: Fix __NO_MATH_INLNES botch.
7711 * Makefile.in: Rebuilt.
7712 * Makefile.am (nat_source_files): Move natFirstThread.cc.
7713 (gnu/gcj/runtime/FirstThread.h): Moved.
7714 (ordinary_java_source_files): Move FirstThread.java.
7715 * prims.cc: Deal with FirstThread movement.
7717 (_Jv_RunMain): Ditto.
7719 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7720 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7722 2000-03-05 Warren Levy <warrenl@cygnus.com>
7724 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7725 Handle null addresses.
7727 2000-03-04 Anthony Green <green@redhat.com>
7729 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7732 2000-03-04 Anthony Green <green@redhat.com>
7734 * configure: Rebuilt.
7735 * configure.in (ZLIBTESTSPEC): New macro.
7736 (GCTESTSPEC): New macro.
7737 (LIBGCJTESTSPEC): New macro.
7738 * libgcj-test.spec.in: New file.
7740 2000-03-02 Tom Tromey <tromey@cygnus.com>
7742 * include/java-interp.h: Don't include MethodInvocation.h.
7743 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7744 * Makefile.in: Rebuilt.
7745 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7746 (ordinary_java_source_files): Don't mention
7747 MethodInvocation.java.
7748 * gnu/gcj/runtime/MethodInvocation.java: Removed.
7749 * interpret.cc (MethodInvocation::continue1): Removed.
7750 (run): Handle exceptions here.
7751 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7753 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7755 (defineClass2): Removed.
7757 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7759 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7761 (hack_call): Removed.
7763 * java/lang/Class.h (Class): Removed hackRunInitializers,
7765 * java/lang/natClass.cc (hackRunInitializers): Removed.
7766 (initializeClass): Catch exceptions here.
7767 Include ExceptionInInitializerError.h.
7768 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7771 * java/lang/Object.h (Object): Don't mention hack12_6.
7772 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7774 * java/lang/Object.java (hack12_6): Removed.
7776 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7777 (start): Use run_, not run__.
7778 * java/lang/Thread.java (run_): Renamed from run__; old run_
7781 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7782 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7783 (_Jv_JNI_DefineClass): Likewise.
7784 (_Jv_JNI_ThrowNew): Likewise.
7785 (_Jv_JNI_AllocObject): Likewise.
7786 (_Jv_JNI_GetAnyMethodID): Likewise.
7787 (_Jv_JNI_CallAnyMethodV): Likewise.
7788 (_Jv_JNI_CallAnyMethodA): Likewise.
7789 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7790 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7791 (_Jv_JNI_GetAnyFieldID): Likewise.
7792 (_Jv_JNI_NewString): Likewise.
7793 (_Jv_JNI_NewStringUTF): Likewise.
7794 (_Jv_JNI_GetStringUTFChars): Likewise.
7795 (_Jv_JNI_NewObjectArray): Likewise.
7796 (_Jv_JNI_NewPrimitiveArray): Likewise.
7797 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7798 (_Jv_JNI_GetStringRegion): Likewise.
7799 (_Jv_JNI_GetStringUTFRegion): Likewise.
7800 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7801 (_Jv_JNI_MonitorEnter): Likewise.
7802 (_Jv_JNI_MonitorExit): Likewise.
7803 (_Jv_JNI_ToReflectedField): Likewise.
7804 (_Jv_JNI_ToReflectedMethod): Likewise.
7805 (_Jv_JNI_RegisterNatives): Likewise.
7806 (_Jv_JNI_AttachCurrentThread): Likewise.
7807 (_Jv_JNI_DestroyJavaVM): Likewise.
7809 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7811 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7812 error caused by the incorrect casting of a long to an int.
7814 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7816 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7817 SIGSEV caused by use of the wrong instance variable.
7819 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7821 * java/io/File.java (File(String, String)): For dirPath, treat an
7822 empty String the same as `null'.
7824 2000-02-26 Anthony Green <green@cygnus.com>
7826 * gnu/gcj/io/MimeTypes.java: Test for null.
7828 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7829 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7831 * java/net/URLConnection.java: Update copyright notice.
7833 2000-02-25 Tom Tromey <tromey@cygnus.com>
7835 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7838 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7840 * java/net/URLConnection.java (initializeDateFormats): New
7842 (getHeaderFieldDate): Call initializeDateFormats if required.
7843 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7845 Fix for PR libgcj/38.
7847 2000-02-24 Warren Levy <warrenl@cygnus.com>
7849 * java/math/BigInteger.java(ival): Made private.
7853 2000-02-20 Anthony Green <green@cygnus.com>
7855 * Makefile.in: Rebuilt.
7856 * Makefile.am (ordinary_java_source_files): Add
7857 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7859 * scripts/MakeDefaultMimeTypes.java: New file.
7860 * scripts/mime.types: New file.
7861 * scripts/classes.pl: Moved from top level.
7862 * classes.pl: Moved to scripts directory.
7864 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7866 * gnu/gcj/io/MimeTypes.java: New file.
7867 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7869 2000-02-20 Tom Tromey <tromey@cygnus.com>
7871 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7873 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7875 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7878 2000-02-18 Tom Tromey <tromey@cygnus.com>
7880 * include/jvm.h (_Jv_GetJavaVM): Declare.
7881 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7882 (_Jv_MethodBase::get_method): New method.
7883 (_Jv_JNIMethod::set_function): New method.
7884 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7885 (_Jv_JNI_RegisterNatives): New function.
7886 (_Jv_JNIFunctions): Updated for new functions.
7887 (_Jv_GetJavaVM): New function.
7888 (_Jv_JNI_GetJavaVM): Use it. Now static.
7889 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7890 is already a Java thread but does not have a JNIEnv yet.
7892 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7895 2000-02-17 Tom Tromey <tromey@cygnus.com>
7897 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7900 2000-02-16 Tom Tromey <tromey@cygnus.com>
7902 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7904 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7905 (_Jv_JNI_NewObject): Likewise.
7906 (_Jv_JNI_NewObjectA): Likewise.
7907 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7908 as "return" type to _Jv_CallAnyMethodA.
7909 (_Jv_JNI_CallAnyMethodA): Likewise.
7910 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7912 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7915 2000-02-15 Tom Tromey <tromey@cygnus.com>
7917 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7919 (init_cif): Added `rtype_p' argument.
7920 * include/java-interp.h (class _Jv_MethodBase): Added
7922 (class _Jv_InterpMethod): Removed args_raw_size.
7923 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7924 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7925 class pointer as well as the ordinary arguments.
7927 * jni.cc (mangled_name): Skip leading `(' in signature.
7929 * jni.cc (add_char): Added missing `else'.
7931 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7934 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7938 * java/lang/natRuntime.cc (_load): Include library path with
7941 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7944 * java/lang/natThread.cc (dumpStack): Removed.
7945 * java/lang/Thread.java (dumpStack): Implemented.
7947 2000-02-15 Tom Tromey <tromey@cygnus.com>
7949 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7950 with `lib' for loadLibrary. Fixes PR gcj/150.
7952 2000-02-14 Warren Levy <warrenl@cygnus.com>
7954 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7956 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7960 (modPow): Rewritten to not use the naive, slow, brute force approach.
7961 (isProbablePrime): Implemented.
7962 (testBit): Implemented.
7963 (flipBit): Implemented.
7964 (getLowestSetBit): Implemented.
7966 2000-02-16 Anthony Green <green@redhat.com>
7968 * configure.host: Use the same options for i386 and i486 as we do
7971 2000-02-12 Tom Tromey <tromey@cygnus.com>
7973 * java/io/File.java (createTempFile): Use low bits from counter,
7976 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7978 * THANKS: More thanks.
7980 2000-02-11 Tom Tromey <tromey@cygnus.com>
7982 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7983 astore instruction. From Hans Boehm.
7985 2000-02-11 Warren Levy <warrenl@cygnus.com>
7987 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7988 (BigInteger(String)): New constructor.
7989 (not): Rewritten using version from Kawa's BitOps class.
7990 (valueOf): New private methods from Kawa's BitOps class.
7997 (andNot): Implemented.
7998 (clearBit): Implemented.
7999 (setBit): Implemented.
8000 (bitCount): Implemented.
8001 (toByteArray): Implemented.
8003 2000-02-11 Tom Tromey <tromey@cygnus.com>
8005 * java/io/File.java (nextValue): Now synchronized.
8007 2000-02-10 Tom Tromey <tromey@cygnus.com>
8009 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
8010 * java/io/FileDescriptor.java (EXCL): New static field.
8011 * java/io/File.java (tmpdir): New static field.
8012 (createTempFile): New method.
8013 (nextValue): New method.
8014 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
8017 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
8018 (jboolean): Declare as an attributed int, not a bool.
8019 (_Jv_func): Declare differently for C.
8021 * gnu/gcj/jni/natNativeThread.cc: New file.
8022 * gnu/gcj/jni/NativeThread.java: New file.
8023 * java/lang/Thread.java (data): Now a RawData.
8024 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
8026 * Makefile.in: Rebuilt.
8027 * Makefile.am (java/lang/Thread.h): New target.
8028 (ordinary_java_source_files): Added NativeThread.java.
8029 (nat_source_files): Added natNativeThread.cc.
8030 * java/lang/natThread.cc: Include <jni.h>
8031 (struct natThread): Added `jni_env' field.
8032 (_Jv_GetCurrentJNIEnv): New function.
8033 (_Jv_SetCurrentJNIEnv): Likewise.
8034 (initialize_native): Initialize jni_env.
8036 * jni.cc (ThreadGroupClass): New define.
8037 (_Jv_JNI_InvokeFunctions): New structure.
8038 (JNI_GetCreatedJavaVMs): New function.
8039 (the_vm): New global.
8040 (JNI_GetDefaultJavaVMInitArgs): New function.
8041 Include NativeThread.h.
8042 (NativeThreadClass): New define.
8043 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
8044 (_Jv_JNI_DestroyJavaVM): New function.
8045 (_Jv_JNI_AttachCurrentThread): New function.
8046 (_Jv_JNI_DetachCurrentThread): New function.
8047 (_Jv_JNI_GetEnv): New function.
8048 (JNI_CreateJavaVM): New function.
8049 (_Jv_JNI_GetJavaVM): New function.
8050 (_Jv_JNIFunctions): Added entry for GetJavaVM.
8051 * include/jni.h (JavaVMAttachArgs): New structure.
8052 (JNI_EDETACHED): New define.
8053 (JNI_EVERSION): Likewise.
8054 (JavaVM): Define properly.
8055 (struct JNIInvokeInterface): New structure.
8056 (class _Jv_JavaVM): New class.
8057 (JNI_OnLoad, JNI_OnUnload): Declare.
8058 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
8059 JNI_GetCreatedJavaVMs): Declare.
8060 (JavaVMInitArgs): New typedef.
8061 (JavaVMOption): Likewise.
8062 (JNI_ERR): New define.
8065 2000-02-10 Andrew Haley <aph@cygnus.com>
8067 * interpret.cc: Don't include fdlibm.h.
8068 Replace #if with #ifdef throughout.
8069 Declare extern __ieee754_fmod.
8070 (continue1): Remove op_getfield, op_getstatic, op_putfield,
8072 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
8073 Search class hierarchy for superclass vtable.
8075 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
8076 off the end of a pointer list.
8078 * java/lang/natThread.cc (stop): Don't abort, throw an exception
8082 2000-02-09 Tom Tromey <tromey@cygnus.com>
8084 * java/lang/natRuntime.cc (_load): Call add_library.
8085 (loadLibraryInternal): Likewise.
8087 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
8088 iconv_close when handle is not NULL. Thanks to Andrew Haley.
8089 (Output_iconv::finalize): Likewise.
8091 2000-02-08 Tom Tromey <tromey@cygnus.com>
8093 * java/util/Properties.java (setProperty): New method.
8094 (store): New method.
8096 2000-02-07 Tom Tromey <tromey@cygnus.com>
8098 * java/lang/Runtime.java (_load): Declare.
8099 (load, loadLibrary): Wrote in terms of _load.
8100 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
8102 (loadLibrary): Likewise.
8104 (_load): New method.
8105 (loadLibrary, load): Removed.
8107 * jni.cc (ThrowableClass): New define.
8108 (_Jv_JNI_Throw): Check argument.
8109 (_Jv_JNI_ThrowNew): Likewise.
8110 (wrap_value): Don't wrap object if it is NULL.
8111 (_Jv_JNI_DefineClass): Use wrap_value.
8112 (_Jv_JNI_FindClass): Likewise.
8113 (_Jv_JNI_GetSuperclass): Likewise.
8114 (_Jv_JNI_ExceptionOccurred): Likewise.
8115 (_Jv_JNI_AllocObject): Likewise.
8116 (_Jv_JNI_GetObjectClass): Likewise.
8117 (_Jv_JNI_NewString): Likewise.
8118 (_Jv_JNI_NewStringUTF): Likewise.
8119 (_Jv_JNI_NewObjectArray): Likewise.
8120 (_Jv_JNI_GetObjectArrayElement): Likewise.
8121 (_Jv_JNI_NewPrimitiveArray): Likewise.
8122 (_Jv_JNI_ToReflectedField): Likewise.
8123 (_Jv_JNI_ToReflectedMethod): Likewise.
8124 (_Jv_JNI_AllocObject): Check argument.
8125 (_Jv_JNI_NewObjectV): Likewise.
8126 (_Jv_JNI_NewObject): Likewise.
8127 (_Jv_JNI_NewObjectA): Likewise.
8128 (_Jv_JNI_GetObjectClass): Likewise.
8129 (_Jv_JNI_GetField): Likewise.
8130 (_Jv_JNI_SetField): Likewise.
8132 * interpret.cc (PUSHL): Don't use expression statement.
8137 * jni.cc (add_char): Conditional on INTERPRETER.
8138 (mangled_name): Likewise.
8140 * include/java-interp.h (class _Jv_MethodBase): Conditional on
8142 (class _Jv_JNIMethod): Likewise.
8144 2000-02-04 Warren Levy <warrenl@cygnus.com>
8146 * Makefile.am: Added MPN.java and BigInteger.java.
8147 * Makefile.in: Rebuilt.
8148 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
8150 * java/math/BigInteger.java: New file. Based primarily on
8151 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
8153 2000-02-04 Tom Tromey <tromey@cygnus.com>
8155 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
8157 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
8158 if the method is native.
8159 * resolve.cc (ncode): Don't handle native methods.
8160 (_Jv_JNIMethod::ncode): New method.
8161 (_Jv_PrepareClass): Handle native methods.
8162 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
8163 Include AbstractMethodError.h.
8164 (add_char): New function.
8165 (mangled_name): Likewise.
8166 * include/java-interp.h (class _Jv_JNIMethod): New class.
8167 (class _Jv_MethodBase): New class.
8168 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
8169 (_Jv_InterpClass): Changed `interpreted_methods' field to type
8172 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
8173 * java/lang/natRuntime.cc (libraries_size, libraries_count,
8174 libraries): New globals.
8175 (add_library): New function.
8176 (_Jv_FindSymbolInExecutable): New function.
8178 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
8181 2000-02-04 Andrew Haley <aph@cygnus.com>
8183 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
8184 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
8185 * java/lang/natThrowable.cc (printRawStackTrace): Rename
8186 printStackTrace to printRawStackTrace.
8188 2000-02-03 Tom Tromey <tromey@cygnus.com>
8190 * java/util/Calendar.java (toString): New method.
8191 * java/util/SimpleTimeZone.java (clone): New method.
8192 (toString): New method.
8193 * java/util/TimeZone.java (clone): New method.
8194 * java/text/SimpleDateFormat.java (clone): New method.
8195 * java/text/NumberFormat.java (clone): New method.
8196 (equals): New method.
8197 * java/text/Format.java (clone): New method.
8198 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
8200 (clone): New method.
8201 * java/text/DateFormat.java (clone): New method.
8202 * java/text/Collator.java (clone): New method.
8204 2000-02-03 Tom Tromey <tromey@cygnus.com>
8206 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
8209 2000-02-01 Tom Tromey <tromey@cygnus.com>
8211 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
8212 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
8213 constructing the closure if the function is native.
8214 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
8215 a template function, #if'd out, or static.
8216 Include <java-interp.h>.
8218 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
8220 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
8222 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
8223 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
8225 (wrap_value): New function.
8226 (_Jv_JNI_CallAnyMethodV): Use it.
8227 (_Jv_JNI_CallAnyMethodA): Likewise.
8228 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
8229 (_Jv_JNI_GetStaticField): Likewise.
8231 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
8232 (_Jv_JNI_GetStaticField): Likewise.
8234 2000-01-31 Tom Tromey <tromey@cygnus.com>
8236 * prims.cc (_Jv_MallocUnchecked): New function.
8237 (main_init): Call _Jv_JNI_Init.
8238 * include/jvm.h (_Jv_MallocUnchecked): Declare.
8239 (_Jv_JNI_Init): Declare.
8240 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
8242 (_Jv_JNI_NewGlobalRef): New function.
8243 (_Jv_JNI_DeleteGlobalRef): New function.
8244 (_Jv_JNI_DeleteLocalRef): New function.
8245 (_Jv_JNI_conversion_call): Initialize and clear local reference
8247 (_Jv_JNI_NewLocalRef): New function.
8248 (struct _Jv_JNI_LocalFrame): New structure.
8249 (_Jv_JNI_PushLocalFrame): New function.
8250 (_Jv_JNI_EnsureLocalCapacity): New function.
8251 (FRAME_SIZE): New define.
8252 (_Jv_JNI_GetStringChars): Mark string, not characters.
8253 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
8254 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
8255 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
8257 (_Jv_JNI_DefineClass): Make return value a local ref.
8258 (_Jv_JNI_FindClass): Likewise.
8259 (_Jv_JNI_GetSuperclass): Likewise.
8260 (_Jv_JNI_ExceptionOccurred): Likewise.
8261 (_Jv_JNI_AllocObject): Likewise.
8262 (_Jv_JNI_GetObjectClass): Likewise.
8263 (_Jv_JNI_CallAnyMethodV): Likewise.
8264 (_Jv_JNI_NewString): Likewise.
8265 (_Jv_JNI_NewStringUTF): Likewise.
8266 (_Jv_JNI_NewObjectArray): Likewise.
8267 (_Jv_JNI_GetObjectArrayElement): Likewise.
8268 (_Jv_JNI_ToReflectedField): Likewise.
8269 (_Jv_JNI_ToReflectedMethod): Likewise.
8270 (_Jv_JNIFunctions): Updated table for new functions.
8271 (_Jv_JNI_Init): New function.
8272 (mark_for_gc): Wrote.
8273 (unmark_for_gc): Wrote.
8274 * include/jni.h (struct JNINativeInterface): Removed name from
8275 PopLocalFrame parameter.
8276 (class _Jv_JNIEnv): Added `locals' field.
8278 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
8280 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
8283 2000-01-30 Tom Tromey <tromey@cygnus.com>
8285 * include/config.h.in: Rebuilt.
8286 * acconfig.h (HAVE_ICONV): Define.
8287 * configure: Rebuilt.
8288 * configure.in: Check for `iconv' function.
8289 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
8290 no specific encoder exists.
8291 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
8292 no specific encoder exists.
8293 * Makefile.in: Rebuilt.
8294 * Makefile.am (convert_source_files): Mention Input_iconv.java and
8296 (nat_source_files): Added natIconv.cc.
8297 * gnu/gcj/convert/natIconv.cc: New file.
8298 * gnu/gcj/convert/Input_iconv.java: New file.
8299 * gnu/gcj/convert/Output_iconv.java: New file.
8301 2000-01-28 Tom Tromey <tromey@cygnus.com>
8303 * Makefile.in: Rebuilt.
8304 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
8306 2000-01-26 Tom Tromey <tromey@cygnus.com>
8308 * gcj/method.h (JvNumMethods): Moved from Class.h.
8309 (JvGetFirstMethod): Likewise.
8310 * java/lang/Class.h (Object): Updated decl of
8311 _Jv_JNI_ToReflectedField.
8312 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
8313 * Makefile.in: Rebuilt.
8314 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
8315 argument of _Jv_JNI_ToReflectedField.
8316 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
8318 (java/lang/reflect/Method.h): Likewise.
8319 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
8321 (jweak): New typedef.
8322 (struct JNINativeInterface): Correctly declare remaining entries.
8323 * jni.cc: Include Class.h, ClassLoader.h.
8324 (_Jv_JNI_FindClass): New function.
8325 (_Jv_JNI_DefineClass): New function.
8326 (_Jv_JNI_conversion_call): New function.
8327 (_Jv_JNI_FindClass): Use current class loader to find class.
8328 (_Jv_JNI_ExceptionCheck): New function.
8329 (_Jv_JNI_FromReflectedField): Now static.
8330 (MethodClass): New define.
8331 (_Jv_JNI_FromReflectedMethod): New function.
8332 (_Jv_JNI_ToReflectedMethod): Likewise.
8334 (_Jv_JNI_IsAssignableFrom): Renamed.
8335 (_Jv_JNI_GetStringRegion): New function.
8336 Include StringIndexOutOfBoundsException.h.
8337 (_Jv_JNI_GetStringUTFRegion): New function.
8338 (_Jv_JNIFunctions): Updated for new functions.
8339 (_Jv_JNI_GetPrimitiveArrayCritical): New function
8340 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
8341 (_Jv_JNI_GetStringCritical): New function.
8342 (_Jv_JNI_ReleaseStringCritical): Likewise.
8343 (get_throwable): Removed.
8344 (GCJ_JV_JNIENV_FRIEND): Removed.
8345 (__GCJ_JNI_IMPL__): Define.
8348 * resolve.cc (get_ffi_type_from_signature): Handle case where
8351 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
8353 * interpret.cc (run): Don't call println.
8354 Don't include PrintStream.h.
8356 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
8357 nameIndex. Use "jint" as type for boffset.
8358 * java/lang/Class.h (struct _Jv_Method): Made accflags a
8360 (Class): Likewise. Also changed type of method_count,
8361 vtable_method_count, size_in_bytes, field_count,
8362 static_field_count, interface_count.
8363 * gcj/array.h (__JArray): Made `length' a const jsize, not an
8366 2000-01-21 Tom Tromey <tromey@cygnus.com>
8368 * java/lang/reflect/natConstructor.cc (newInstance): Use
8370 * include/jvm.h: Declare _Jv_CallAnyMethodA.
8371 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
8372 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
8375 (invoke): Use _Jv_CallAnyMethodA.
8377 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
8378 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
8380 (struct _Jv_Method): Added getNextMethod method.
8381 (JvNumMethods): New function.
8382 (JvGetFirstMethod): Likewise.
8383 * gcj/field.h (JvGetFirstStaticField): New function.
8384 (JvNumStaticFields): Likewise.
8385 (getNextField): Renamed from getNextInstanceField.
8386 (struct _Jv_Field): New method getClass.
8387 * jni.cc: Wrote many new functions.
8388 * include/jni.h (JNI_TRUE): Define.
8389 (JNI_FALSE): Likewise.
8390 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
8391 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
8392 jcharArray, jfloatArray, jdoubleArray): New typedefs.
8393 (jfieldID, jmethodID): Likewise.
8394 (JNI_COMMIT, JNI_ABORT): New defines.
8395 (JNINativeMethod): New struct.
8396 (struct JNINativeInterface): Correctly declared more entries.
8397 (class _Jv_JNIEnv): Added `ex' member.
8398 (JNI_VERSION_1_1): New define.
8399 (JNI_VERSION_1_2): Likewise.
8401 * boehm.cc (_Jv_MarkObj): Use getNextField, not
8402 getNextInstanceField.
8404 2000-01-20 Tom Tromey <tromey@cygnus.com>
8406 * resolve.cc (StringClass): Removed.
8407 * defineclass.cc (StringClass): Removed.
8409 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
8413 2000-01-19 Tom Tromey <tromey@cygnus.com>
8415 * interpret.cc (PC_REGISTER_ASM): Removed.
8417 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
8418 From Bryce McKinlay.
8420 * All files: Updated copyright to reflect Cygnus purchase.
8422 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
8424 * configure: Rebuilt.
8425 * configure.in: Recognize --disable-interpreter.
8427 2000-01-18 Andrew Haley <aph@cygnus.com>
8429 * name-finder.cc (lookup): Check for dladdr function.
8430 acconfig.h (HAVE_DLADDR): Add.
8431 configure.in: Check for HAVE_DLADDR
8433 include/config.h.in: Rebuilt.
8435 2000-01-17 Andrew Haley <aph@cygnus.com>
8437 * prims.cc (_Jv_RunMain): Set the name of this executable.
8439 2000-01-17 Tom Tromey <tromey@cygnus.com>
8441 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
8442 when backtrace can't be computed.
8444 * configure: Rebuilt.
8445 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
8447 * java/lang/Runtime.java (loadLibraryInternal): Declare.
8448 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
8449 (_Jv_FindClassInCache): Likewise.
8450 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
8451 (findSystemClass): Try to load class from compiled module.
8453 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
8454 (loadLibrary): Likewise.
8455 (lt_preloaded_symbols): Define.
8456 (loadLibraryInternal): New method.
8457 * include/config.h.in: Rebuilt.
8458 * acconfig.h (USE_LTDL): Added.
8459 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
8460 (INCLUDES): Added $(INCLTDL).
8461 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
8462 (libgcj_la_LIBADD): Likewise.
8463 * aclocal.m4, configure: Rebuilt.
8464 * configure.in: Added libltdl support.
8466 2000-01-15 Tom Tromey <tromey@cygnus.com>
8468 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
8470 2000-01-14 Andrew Haley <aph@cygnus.com>
8472 * java/lang/natThrowable.cc: New file.
8474 * java/lang/Throwable.java (fillInStackTrace): Make native.
8475 (printStackTrace): Call native method to do this.
8476 (Throwable): Call fillInStackTrace.
8477 (stackTrace): New variable.
8479 * include/jvm.h: Add _Jv_ThisExecutable functions.
8481 * prims.cc: (_Jv_execName): New variable.
8482 (catch_segv): Call fillInStackTrace.
8484 (_Jv_ThisExecutable): New functions.
8485 (JvRunMain): Set the name of this executable.
8487 * Makefile.am: Add java/lang/natThrowable.cc.
8489 * Makefile.in: Rebuilt.
8491 * acconfig.h: Add HAVE_PROC_SELF_EXE.
8493 * configure.in: Force link with __frame_state_for in
8494 FORCELIBGCCSPEC. Add new checks for backtrace.
8495 * include/config.h.in: Rebuilt.
8497 * name-finder.cc: New file.
8498 * include/name-finder.h: New file.
8500 2000-01-16 Anthony Green <green@cygnus.com>
8502 * java/lang/StringBuffer.java (StringBuffer): Don't special case
8505 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
8507 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
8509 2000-01-13 Tom Tromey <tromey@cygnus.com>
8511 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
8512 not system loader, as initiating loader.
8514 2000-01-11 Tom Tromey <tromey@cygnus.com>
8516 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
8517 HP/UX. From David Scott Urban.
8519 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
8521 * java/lang/natMath.cc (pow): Cast args to `double', not
8524 (IEEEremainder): Likewise.
8525 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
8526 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
8528 2000-01-09 Anthony Green <green@cygnus.com>
8530 * java/lang/natString.cc (init): Test for overflow condition
8531 during out of bounds check.
8532 (getChars): Throw StringIndexOutOfBoundsException, not
8533 ArrayIndexOutOfBoundsException.
8535 (regionMatches): Obey case option during string comparison.
8537 * configure.host (ligcj_interpreter): New variable. Enable
8538 interpreter by default on IA-32.
8539 * configure.in: Examine libgcj_interpreter.
8540 * configure: Rebuilt.
8542 2000-01-07 Tom Tromey <tromey@cygnus.com>
8544 * mauve-libgcj: Don't disable ClassTest.
8546 * java/lang/natClass.cc (getClasses): Wrote.
8548 2000-01-06 Tom Tromey <tromey@cygnus.com>
8550 * java/lang/natClass.cc (_getConstructors): Correctly check
8551 whether method name is the init name.
8552 (getMethod): Look at accflags on method in `klass', not `this'.
8554 2000-01-05 Tom Tromey <tromey@cygnus.com>
8556 * java/lang/natClass.cc (getMethod): Compute offset relative to
8557 `klass's methods table, not `this's table.
8559 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
8560 In unwrapping/widening case, check whether `k' is null, not
8561 whether it is primitive. Initialize `num' from `argelts', not
8562 `paramelts'. Correct create and pass arguments to ffi_call.
8563 Don't let presence of `this' argument affect index used to look in
8565 (COPY): Set appropriate element in `values' vector.
8567 * java/lang/natClass.cc: Include <gcj/method.h>.
8569 * java/lang/Class.h (_getMethods): Correctly declare as private,
8572 * java/lang/Class.h (_getMethods): Declare.
8573 * java/lang/Class.java (_getMethods): Declare.
8574 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
8575 (getDeclaredClasses): Always return empty array.
8576 (_getMethods): New method.
8577 (getMethods): Wrote.
8578 (getDeclaredMethod): Return `rmethod'.
8579 (finit_name): New global.
8580 (getDeclaredMethods): Check for finit_name.
8581 (_getMethods): Likewise.
8582 (getMethod): Only return public methods.
8584 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
8585 jboolean and select correct ffi type on that basis.
8586 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
8587 Constructor call always has `void' return type.
8589 2000-01-04 Tom Tromey <tromey@cygnus.com>
8591 * java/lang/Class.h (getSignature): Updated.
8592 * java/lang/Class.java (getSignature): Updated.
8593 * java/lang/natClass.cc (getSignature): Added `is_constructor'
8595 (getConstructor): Ensure constructor is public.
8596 (_getConstructors): Check for public-ness of constructor when
8597 `declared' is false, not when it is true.
8599 2000-01-04 Warren Levy <warrenl@cygnus.com>
8601 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
8603 (receive): Set the sender's address in the DatagramPacket.
8605 2000-01-04 Tom Tromey <tromey@cygnus.com>
8607 * java/lang/reflect/natConstructor.cc (newInstance): Pass
8608 declaring class as return_type argument to
8609 _Jv_CallNonvirtualMethodA.
8610 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
8611 constructor case, create object and use it as `this' argument.
8612 * java/lang/Class.h (_getConstructors): Declare.
8613 (_getFields): Declare.
8614 * java/lang/Class.java (getConstructors): Wrote.
8615 (_getConstructors): New native method.
8616 (getDeclaredConstructors): Wrote.
8617 (_getFields): Declare new native method.
8618 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
8620 (getMethod): Work correctly when class is primitive.
8621 (getDeclaredMethods): Likewise. Compute offset using `method',
8623 (getDeclaredMethod): Likewise.
8624 (getConstructor): Wrote.
8625 (ConstructorClass): New define.
8626 (getDeclaredConstructor): Wrote.
8627 (_getConstructors): New method.
8628 (_getFields): New method.
8631 * Makefile.in: Rebuilt.
8632 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
8634 * prims.cc: Remove `#pragma implementation'.
8635 * gcj/array.h: Remove `#pragma interface'.
8637 * prims.cc (_Jv_equaln): New function.
8638 * java/lang/Class.java (getSignature): Declare.
8639 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
8640 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
8642 (getSignature): New method.
8643 (getDeclaredMethod): Wrote.
8645 Include StringBuffer.h.
8646 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8647 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
8649 (getSignature): Declare.
8650 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8651 (_Jv_equaln): Declare.
8652 (_Jv_CallNonvirtualMethodA): Declare.
8653 * Makefile.in: Rebuilt.
8654 * Makefile.am (nat_source_files): Added natConstructor.cc.
8655 (java/lang/reflect/Constructor.h): New target.
8656 * java/lang/reflect/natConstructor.cc: New file.
8657 * java/lang/reflect/Constructor.java (newInstance): Now native.
8658 (declaringClass): Renamed from decl_class.
8659 (offset): Renamed from index.
8660 (getType): New native method.
8661 (getModifiers): Now native.
8662 (getParameterTypes): Call getType if required.
8663 (hashCode): Include hash code from declaring class.
8664 (modifiers): Removed.
8665 (toString): Call getType if required.
8666 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8667 * java/lang/reflect/natMethod.cc (hack_call): New method.
8668 Removed `#if 0' around FFI code.
8669 Include <gnu/gcj/RawData.h>.
8670 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
8671 IllegalArgumentException when argument object and class disagree.
8672 (_Jv_GetTypesFromSignature): New function.
8674 (ObjectClass): New define.
8675 (_Jv_CallNonvirtualMethodA): New function.
8676 * java/lang/reflect/Method.java (hack_trampoline): New method.
8677 (hack_call): New native method.