1 2001-11-16 Mark Wielaard <mark@klomp.org>
3 * java/util/Timer.java (TaskQueue.isStopped): Remove method.
4 (Scheduler.run): Try to re-schedule task and ignore exception if
5 queue has been stopped.
7 2001-11-15 Tom Tromey <tromey@redhat.com>
9 * verify.cc (type::compatible): Use _Jv_IsAssignableFrom.
10 (type::merge): Likewise.
12 2001-11-14 Hans Boehm <Hans_Boehm@hp.com>
14 * java/lang/natString.cc: correct argument order for
17 2001-11-14 Tom Tromey <tromey@redhat.com>
19 * verify.cc (class _Jv_BytecodeVerifier) [op_dup2]: Fixed logic.
20 [op_dup_x2]: Likewise.
21 [op_dup2_x1]: Likewise.
22 [op_dup2_x2]: Likewise.
23 (branch_prepass): Added `op_newarray' case. Updated unrecognized
25 (verify_instructions_0): Updated unrecognized instruction error.
27 * java/lang/reflect/Constructor.java (toString): Use more
28 efficient form of Modifier.toString().
30 Re-merges with Classpath, from various people:
31 * java/lang/reflect/Modifier.java: Reindented.
32 (toString): Only trim trailing space if text was added to
34 * java/lang/reflect/ReflectPermission: Reindented.
36 Re-merges with Classpath, from various people:
37 * java/lang/Double.java (parseDouble): Fixed ordering of
39 * java/lang/reflect/AccessibleObject.java: Javadoc, reindented.
40 * java/lang/reflect/Member.java: Reindented.
41 * java/util/ConcurrentModificationException.java: Javadoc
43 * java/util/EmptyStackException.java: Likewise.
44 * java/util/NoSuchElementException.java: Likewise.
46 2001-11-13 Tom Tromey <tromey@redhat.com>
48 Fix for PR libgcj/4859:
49 * java/util/Timer.java (TaskQueue.isStopped): New method.
50 (Scheduler.run): Don't re-schedule task if queue has been
53 2001-11-07 Tom Tromey <tromey@redhat.com>
55 * Makefile.in: Rebuilt.
56 * Makefile.am (ordinary_java_source_files): Added JNIWeakRef.java.
57 * jni.cc: Include JNIWeakRef.h.
58 (unwrap): New function.
59 (_Jv_JNI_DefineClass): Use it.
60 (_Jv_JNI_GetSuperclass): Likewise.
61 (_Jv_JNI_IsAssignableFrom): Likewise.
62 (_Jv_JNI_Throw): Likewise.
63 (_Jv_JNI_ThrowNew): Likewise.
64 (_Jv_JNI_IsSameObject): Likewise.
65 (_Jv_JNI_AllocObject): Likewise.
66 (_Jv_JNI_GetObjectClass): Likewise.
67 (_Jv_JNI_IsInstanceOf): Likewise.
68 (_Jv_JNI_GetAnyMethodID): Likewise.
69 (array_from_valist): Likewise.
70 (_Jv_JNI_CallAnyMethodV): Likewise.
71 (_Jv_JNI_CallAnyMethodA): Likewise.
72 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
73 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
74 (_Jv_JNI_CallStaticMethodV): Likewise.
75 (_Jv_JNI_CallStaticMethod): Likewise.
76 (_Jv_JNI_CallStaticMethodA): Likewise.
77 (_Jv_JNI_NewObjectV): Likewise.
78 (_Jv_JNI_NewObject): Likewise.
79 (_Jv_JNI_NewObjectA): Likewise.
80 (_Jv_JNI_GetField): Likewise.
81 (_Jv_JNI_SetField): Likewise.
82 (_Jv_JNI_GetAnyFieldID): Likewise.
83 (_Jv_JNI_SetStaticField): Likewise.
84 (_Jv_JNI_GetStringLength): Likewise.
85 (_Jv_JNI_GetStringChars): Likewise.
86 (_Jv_JNI_ReleaseStringChars): Likewise.
87 (_Jv_JNI_GetStringUTFLength): Likewise
88 (_Jv_JNI_GetStringUTFChars): Likewise.
89 (_Jv_JNI_GetStringRegion): Likewise.
90 (_Jv_JNI_GetStringUTFRegion): Likewise.
91 (_Jv_JNI_GetStringCritical): Likewise.
92 (_Jv_JNI_GetArrayLength): Likewise.
93 (_Jv_JNI_NewObjectArray): Likewise.
94 (_Jv_JNI_GetObjectArrayElement): Likewise.
95 (_Jv_JNI_SetObjectArrayElement): Likewise.
96 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
97 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
98 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
99 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
100 (_Jv_JNI_MonitorEnter): Likewise.
101 (_Jv_JNI_MonitorExit): Likewise.
102 (_Jv_JNI_ToReflectedField): Likewise.
103 (_Jv_JNI_FromReflectedField): Likewise.
104 (_Jv_JNI_ToReflectedMethod): Likewise.
105 (_Jv_JNI_FromReflectedMethod): Likewise.
106 (_Jv_JNI_NewGlobalRef): Likewise.
107 (_Jv_JNI_DeleteGlobalRef): Likewise.
108 (_Jv_JNI_DeleteLocalRef): Likewise.
109 (_Jv_JNI_NewLocalRef): Likewise.
110 (_Jv_JNI_NewWeakGlobalRef): New function.
111 (_Jv_JNI_DeleteWeakGlobalRef): Likewise.
112 (_Jv_JNIFunctions): Updated for new methods.
114 * gnu/gcj/runtime/JNIWeakRef.java: New file.
116 2001-11-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
118 * boehm.cc (_Jv_GCCanReclaimSoftReference): Fix warning.
120 2001-11-09 Jeff Sturm <jsturm@one-point.com>
122 * verify.cc: Wrap in #ifdef INTERPRETER...#endif.
124 2001-11-07 Tom Tromey <tromey@redhat.com>
126 * verify.cc (skip_padding): Fail if padding byte is nonzero.
128 2001-11-06 Tom Tromey <tromey@redhat.com>
130 * HACKING: Make people commit their own patches.
132 2001-11-05 Tom Tromey <tromey@redhat.com>
134 * java/lang/Class.h (Class): Made _Jv_BytecodeVerifier a friend.
135 * Makefile.in: Rebuilt.
136 * Makefile.am (libgcj_la_SOURCES): Added verify.cc.
137 * verify.cc: New file.
138 * include/java-interp.h (_Jv_count_arguments): Declare.
139 (_Jv_VerifyMethod): Likewise.
140 (class _Jv_InterpMethod): Made _Jv_BytecodeVerifier a friend.
141 (class _Jv_InterpException): Likewise.
142 * resolve.cc (_Jv_count_arguments): Renamed from count_arguments.
143 No longer static. Updated callers.
144 * defineclass.cc (int_bits_to_float): Removed.
145 (long_bits_to_double): Likewise.
146 (prepare_pool_entry): Updated.
147 (handleCodeAttribute): Verify method (commented out for now).
149 2001-11-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
151 * java/util/ResourceBundle.java (class Security): Now static.
153 2001-11-04 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
155 * java/util/ResourceBundle.java (getClassContext): Removed.
156 (Security): New class, extends SecurityManger.
157 (getBundle): Use Security.getCallingClassLoader instead of
159 * java/util/natResourceBundle.cc: Removed.
161 2001-11-03 Tom Tromey <tromey@redhat.com>
163 * defineclass.cc (handleClassBegin): Use Object::class$, not
164 Class::class$, when initializing interface superclass.
166 2001-11-02 Hans Boehm <Hans_Boehm@hp.com>
168 * java/util/natResourceBundle.cc:getClassContext: return
169 array of Class instead of array of ClassLoader.
171 2001-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
173 * HACKING, gnu/gcj/xlib/Pixmap.java, gnu/gcj/xlib/XException.java,
174 gnu/java/rmi/rmic/RMIC.java, java/awt/Window.java,
175 java/awt/AWTEvent.java, java/io/ByteArrayOutputStream.java,
176 java/io/CharConversionException.java,
177 java/io/PipedInputStream.java, java/io/PipedReader.java,
178 java/io/PrintWriter.java, java/io/WriteAbortedException.java,
179 java/io/natFileWin32.cc, java/lang/Class.h,
180 java/lang/natClassLoader.cc, java/lang/natObject.cc,
181 java/lang/Package.java, java/net/BindException.java,
182 java/net/ConnectException.java, java/net/ProtocolException.java,
183 java/net/SocketException.java,
184 java/net/UnknownServiceException.java,
185 java/security/cert/X509Certificate.java,
186 java/security/interfaces/DSAKey.java,
187 java/security/SecureRandom.java, java/security/SignedObject.java,
188 java/sql/DatabaseMetaData.java,
189 java/text/DecimalFormatSymbols.java,
190 java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
191 java/util/jar/JarInputStream.java,
192 java/util/jar/JarOutputStream.java, java/util/Calendar.java,
193 java/util/Collections.java, java/util/GregorianCalendar.java,
194 java/util/HashMap.java, java/util/List.java,
195 java/util/Properties.java, java/util/Timer.java,
196 java/util/Vector.java, java/util/WeakHashMap.java,
197 javax/naming/NamingException.java,
198 testsuite/libjava.lang/Thread_Wait.java,
199 org/xml/sax/helpers/DefaultHandler.java,
200 org/xml/sax/HandlerBase.java, org/xml/sax/SAXParseException.java,
201 ChangeLog, acinclude.m4, aclocal.m4, posix-threads.cc: Fix
203 * configure: Regenerate.
205 2001-10-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
207 * jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM. Don't call
210 2001-10-29 Tom Tromey <tromey@redhat.com>
212 * java/util/zip/GZIPOutputStream.java (write(int)): New method.
213 Fixes PR libgcj/4728.
215 2001-10-27 Tom Tromey <tromey@redhat.com>
217 * include/jni.h (struct JNINativeInterface) [GetStringLength]:
218 Returns jsize, not jint.
220 2001-10-26 Tom Tromey <tromey@redhat.com>
222 * java/util/zip/Adler32.java: Use correct class name. (Re-merge
225 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
227 * java/lang/VMClassLoader.java (getPrimitiveClass): Now native. Now
228 takes a jchar type-code argument, not a string.
229 * java/lang/natClassLoader.cc (VMClassLoader::getPrimitiveClass):
230 New method. Just call _Jv_FindClassFromSignature.
231 * java/lang/Boolean.java (TYPE): Initialize from
232 VMClassLoader.getPrimitiveClass using type-code.
233 * java/lang/Character.java (TYPE): Likewise.
234 * java/lang/Double.java (TYPE): Likewise.
235 * java/lang/Float.java (TYPE): Likewise.
236 * java/lang/Integer.java (TYPE): Likewise.
237 * java/lang/Long.java (TYPE): Likewise.
238 * java/lang/Short.java (TYPE): Likewise.
239 * java/lang/Void.java (TYPE): Likewise.
241 2001-10-25 Hans Boehm <Hans_Boehm@hp.com>
243 * include/boehm-gc.h: Call thread local allocation functions
244 if THREAD_LOCAL_ALLOC is defined.
246 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
248 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Use
249 snprintf, not asprintf.
251 2001-10-24 Loren J. Rittle <ljrittle@acm.org>
253 * configure.in (case $THREADS): Add *-*-freebsd* configuration.
254 (HAVE_GETHOSTBYADDR_R): Create a valid, non-optimal
255 configuration when gethostbyaddr_r exists yet no prototype
257 * configure: Rebuilt.
258 * posix-threads.cc (INTR): Reuse path for LINUX_THREADS
259 with FREEBSD_THREADS. However, comment different reason.
261 2001-10-24 Tom Tromey <tromey@redhat.com>
262 Warren Levy <warrenl@redhat.com>
264 * Makefile.in: Rebuilt.
265 * Makefile.am (javax_source_files): New macro.
266 (ordinary_java_source_files): Added javax_source_files.
267 (libgcj.jar): Search javax for class files.
268 * javax/naming/LinkException.java (toString): Wrote.
269 (toString(boolean)): Likewise.
270 * javax/naming/ldap/InitialLdapContext.java: New file.
271 * javax/naming/directory/InitialDirContext.java: Wrote.
272 * javax/naming/spi/NamingManager.java (getPlusPath): Now has
273 package-private protection.
274 (getURLContext): Likewise.
275 (NamingManager): Likewise.
276 * javax/naming/spi/DirectoryManager.java: New file.
277 * javax/naming/directory/BasicAttributes.java: New file.
278 * javax/naming/directory/BasicAttribute.java: New file.
279 * javax/naming/spi/ResolveResult.java
280 (ResolveResult(Object,String)): Wrote.
281 (appendRemainingName): Uncommented body.
282 (appendRemainingComponent): Likewise.
283 * javax/naming/ldap/ControlFactory.java: New file.
284 * javax/naming/directory/AttributeModificationException.java
286 * javax/naming/spi/NamingManager.java (NamingManager): New
288 (setInitialContextFactoryBuilder): Wrote.
289 (getInitialContext): Look in system properties for class name as
290 well. Use Class.forName().
291 (getURLContext): Wrote.
293 (setObjectFactoryBuilder): Wrote.
294 (getObjectInstance): Wrote.
295 (getContinuationContext): Wrote.
296 (getPlusPath): New private method.
297 (getStateToBind): Wrote.
298 * javax/naming/CannotProceedException.java: Added missing methods &
300 * javax/naming/LinkException.java: Added missing methods & fields.
301 * javax/naming/ReferralException.java (ReferralException): Made
302 constructor protected per spec.
303 Added missing abstract methods.
304 * javax/naming/directory/Attribute.java: Updated copyright.
305 * javax/naming/directory/AttributeModificationException.java: Ditto.
306 * javax/naming/directory/Attributes.java: Ditto.
307 * javax/naming/directory/DirContext.java: Ditto.
308 * javax/naming/spi/NamingManager.java: Ditto.
309 * javax/naming/spi/ResolveResult.java: Added comment.
310 * javax/naming/directory/Attribute.java: Added missing interface
312 * javax/naming/directory/AttributeModificationException.java:
313 Added missing methods & fields.
314 * javax/naming/directory/directory/Attributes.java: Added missing
316 * javax/naming/directory/SearchControls.java: Maded serialized fields
318 * javax/naming/event/NamingEvent.java: Added comment.
319 * javax/naming/event/NamingExceptionEvent.java: Maded serialized field
321 * javax/naming/ldap/UnsolicitedNotificationEvent.java: Maded
322 serialized field private.
323 * javax/naming/spi/NamingManager.java: Added missing field and stubbed
325 * javax/naming/directory/DirContext.java: Added missing interface
327 * javax/naming/directory/InitialDirContext.java: Stubbed missing
329 * javax/naming/directory/ModificationItem.java: New class.
330 * javax/naming/directory/SearchResult.java: New class.
331 * javax/naming/directory/SearchControls.java: New class.
332 * javax/naming/event/EventContext.java: New class.
333 * javax/naming/event/EventDirContext.java: New class.
334 * javax/naming/event/NamespaceChangeListener.java: New class.
335 * javax/naming/event/NamingEvent.java: New class.
336 * javax/naming/event/NamingExceptionEvent.java: New class.
337 * javax/naming/event/NamingListener.java: New class.
338 * javax/naming/event/ObjectChangeListener.java: New class.
339 * javax/naming/ldap/Control.java: New class.
340 * javax/naming/ldap/ExtendedRequest.java: New class.
341 * javax/naming/ldap/ExtendedResponse.java: New class.
342 * javax/naming/ldap/HasControls.java: New class.
343 * javax/naming/ldap/LdapContext.java: New class.
344 * javax/naming/ldap/LdapReferralException.java: New class.
345 * javax/naming/ldap/UnsolicitedNotification.java: New class.
346 * javax/naming/ldap/UnsolicitedNotificationEvent.java: New class.
347 * javax/naming/ldap/UnsolicitedNotificationListener.java: New class.
348 * javax/naming/spi/DirObjectFactory.java: New class.
349 * javax/naming/spi/DirStateFactory.java: New class.
350 * javax/naming/spi/ObjectFactoryBuilder.java: New class.
351 * javax/naming/spi/ResolveResult.java: New class.
352 * javax/naming/spi/Resolver.java: New class.
353 * javax/naming/spi/StateFactory.java: New class.
354 * javax/naming/spi/ObjectFactory.java: Made an interface per spec.
355 * java/rmi/RemoteException.java: New class.
356 * javax/transaction/HeuristicCommitException.java: New class.
357 * javax/transaction/HeuristicMixedException.java: New class.
358 * javax/transaction/HeuristicRollbackException.java: New class.
359 * javax/transaction/NotSupportedException.java: New class.
360 * javax/transaction/RollbackException.java: New class.
361 * javax/transaction/Status.java: New class.
362 * javax/transaction/Synchronization.java: New class.
363 * javax/transaction/SystemException.java: New class.
364 * javax/transaction/Transaction.java: New class.
365 * javax/transaction/TransactionManager.java: New class.
366 * javax/transaction/UserTransaction.java: New class.
367 * javax/transaction/xa/XAException.java: Added public static fields.
368 * javax/transaction/xa/XAResource.java: New class.
369 * javax/transaction/xa/Xid.java: New class.
370 * javax/naming/CompoundName.java (CompoundName(String)): Reverse
371 elements if required. Handle case where quote is at end of
373 * javax/naming/CompoundName.java (CompoundName(String)): Handle
374 text left at end of parsing.
375 (toString): Handle empty element at beginning.
376 * javax/naming/CompositeName.java (toString): Handle empty element
378 (CompositeName(String)): Handle text left at end of parsing.
379 Correctly compute boundary condition for quoting.
380 * javax/naming/CompoundName.java: New file.
381 * javax/naming/CompositeName.java: New file.
382 * javax/naming/Binding.java: New file.
383 * javax/naming/LinkRef.java: New file.
384 * javax/naming/NameClassPair.java: New file.
385 * javax/naming/Reference.java (addrs, classFactory,
386 classFactoryLocation): New fields.
387 (className): Now protected.
388 (Reference): New constructors.
389 (add): Now public. Implemented.
390 (get(String)): Likewise.
391 (add(int,RefAddr)): New method.
395 (get(int)): Likewise.
397 (getFactoryClassLocation): Likewise.
398 (getFactoryClassName): Likewise.
399 (hashCode): Likewise.
402 (toString): Likewise.
403 * javax/transaction/xa/XAException.java: New file.
404 * javax/transaction/TransactionRolledbackException.java: New file.
405 * javax/transaction/TransactionRequiredException.java: New file.
406 * javax/transaction/InvalidTransactionException.java: New file.
407 * javax/naming/directory/SchemaViolationException.java: Use
408 correct package. Import NamingException.
409 * javax/naming/directory/NoSuchAttributeException.java,
410 javax/naming/directory/InvalidSearchFilterException.java,
411 javax/naming/directory/InvalidSearchControlsException.java,
412 javax/naming/directory/InvalidAttributesException.java,
413 javax/naming/directory/InvalidAttributeValueException.java,
414 javax/naming/directory/InvalidAttributeIdentifierException.java,
415 javax/naming/directory/AttributeModificationException.java,
416 javax/naming/directory/AttributeInUseException.java: Likewise.
417 * javax/naming/directory/InitialDirContext.java (getAttributes):
419 * javax/naming/RefAddr.java (RefAddr): Reindented.
420 (equals): Renamed and reindented.
421 * javax/naming/BinaryRefAddr.java (equals): Renamed and
424 2001-10-24 Tom Tromey <tromey@redhat.com>
426 * java/lang/reflect/Field.java: Made many methods private.
428 * java/sql/Types.java (Types): New constructor.
430 Tue Oct 23 23:52:18 2001 Anthony Green <green@redhat.com>
432 * gnu/gcj/runtime/natSharedLibLoader.cc: Only include dlfcn.h when
435 2001-10-23 Tom Tromey <tromey@redhat.com>
437 * java/lang/reflect/Field.java (Field): New constructor.
438 * java/lang/ClassLoader.java (defineClass(String,byte[],int,int)):
439 Throw ClassFormatError.
441 2001-10-23 Tom Tromey <tromey@redhat.com>
443 * java/util/PropertyResourceBundle.java (handleGetObject): Now
445 * java/util/ListResourceBundle.java (handleGetObject): Now public
448 * java/io/BufferedWriter.java (localFlush): Don't synchronize.
450 2001-10-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
452 * prims.cc (_Jv_Abort): Always print error message using fprintf,
453 don't try to allocate.
454 (_Jv_CreateJavaVM): Set gcj::runtimeInitialized.
455 * include/jvm.h (gcj::runtimeInitialized): New variable declaration.
456 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
457 duplicate class registration with JvFail if the runtime hasn't been
460 * java/io/BufferedWriter (write (String, int, int)): Remove redundant
462 (write (char[], int, int)): Likewise.
464 2001-10-22 Tom Tromey <tromey@redhat.com>
466 * java/util/GregorianCalendar.java (getGregorianChange): Removed
469 2001-10-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
471 * gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
472 * gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
473 * gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
474 * gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in output
477 2001-10-19 Mark Wielaard <mark@klomp.org>
479 * java/lang/Double.java: More Classpath merging
480 (isInfinite): Don't use doubleToLongBits
481 (isNaN (Object)): return v != v
482 (initIDs): make native
483 * java/lang/Float.java: Ditto
484 (isInfinite): Don't use floatToIntBits
485 (isNaN (Object)): return v != v
486 * java/lang/natDouble.cc: add empty initIDs()
488 2001-10-19 Mark Wielaard <mark@klomp.org>
490 * javax/naming/BinaryRefAddr.java: New file
491 * javax/naming/InitialContext.java: Compile fix
492 * javax/naming/InvalidNameException.java: Add comments
493 * javax/naming/Name.java: Ditto
494 * javax/naming/NamingException.java: Implement
495 * javax/naming/OperationNotSupportedException.java: Compile fix
496 * javax/naming/RefAddr.java: Implement
497 * javax/naming/StringRefAddr.java: Add comments and implement
498 * javax/naming/directory/InitialDirContext.java: Compile fix
500 2001-10-18 Tom Tromey <tromey@redhat.com>
502 * java/io/BufferedWriter.java (write(String,int,int)): Correctly
505 * java/security/Security.java (loadProviders): Removed unused
506 `pname' variable. Don't create `File' object. Don't update
508 (providerCount): Removed.
509 (insertProviderAt): Don't use `providerCount'.
510 (addProvider(Provider,int)): Likewise.
511 (removeProvider): Likewise.
512 (addProvider(Provider)): Rewrote.
513 (getProviders): Rewrote.
514 (getProvider): Don't use `providerCount'.
516 2001-10-17 Tom Tromey <tromey@redhat.com>
518 * gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
520 * java/security/SecureRandom.java (setSeed(long)): Don't set seed
521 if secureRandomSpi is not initialized.
523 * Makefile.in: Rebuilt.
524 * Makefile.am (secdir): New macro.
525 (install-data-local): Install new data files.
526 * java/security/classpath.security: New file.
527 * java/security/libgcj.security: New file.
529 * java/security/Security.java (loadProviders): Added `vendor'
531 Load both `classpath' and `java.vm.name' providers.
533 2001-10-17 Anthony Green <green@redhat.com>
535 * java/security/Security.java (loadProviders): Fix bug in how
536 providers are loaded.
538 2001-10-16 Tom Tromey <tromey@redhat.com>
540 * gcj/javaprims.h: Updated class list.
541 * java/util/Hashtable.java: Re-merged with Classpath.
543 2001-10-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
545 * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
547 Eliminate use of C++ static constructors.
548 * interpret.cc: Remove static Utf8Consts. Use namespace gcj.
550 * resolve.cc: Likewise.
551 * defineclass.cc: Likewise.
552 (_Jv_ClassReader::handleClassBegin): Synchronize call to
554 * include/jvm.h (void_signature, clinit_name, init_name, finit_name):
555 Declare in namespace gcj.
556 * java/lang/Class.h (Class): Remove initialization for primitive
558 (friend void _Jv_InitPrimClass): This is in prims.cc.
559 * prims.cc (_Jv_InitPrimClass): Do primitive type initialization
561 (void_signature, clinit_name, init_name, finit_name): Define in
563 (_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and
564 _Jv_InitializeSyncMutex from here. Initialize Utf8 constants.
565 Initialize primitive types.
566 * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
567 initialization routines. Don't synchronize.
568 * java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
571 2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
573 * java/util/HashMap.java (HashEntry.clone): Removed.
574 (HashMap(Map)): Use putAllInternal.
576 (putAllInternal): New method. Efficient counterpart to putAll which
578 * java/util/LinkedHashMap.java (rethread): Removed.
579 (putAllInternal): New method. Clear "head" and "tail".
580 (addEntry): New argument "callRemove". Don't call removeEldestEntry()
581 if callRemove == false.
583 * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
584 * Makefile.in: Rebuilt.
586 2001-10-15 Eric Blake <ebb9@email.byu.edu>
588 * java/util/Collection.java: Updated javadoc.
589 * java/util/Comparator.java: Updated javadoc.
590 * java/util/Enumeration.java: Updated javadoc.
591 * java/util/Iterator.java: Updated javadoc.
592 * java/util/List.java: Updated javadoc.
593 * java/util/ListIterator.java: Updated javadoc.
594 * java/util/Map.java: Updated javadoc.
595 * java/util/RandomAccess.java: New file.
596 * java/util/Set.java: Updated javadoc.
597 * java/util/SortedMap.java: Updated javadoc.
598 * java/util/SortedSet.java: Updated javadoc.
600 2001-10-15 Tom Tromey <tromey@redhat.com>
602 * java/lang/reflect/AccessibleObject.java (checkPermission):
604 Updated copyright information.
606 2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
608 * java/lang/natObject.cc (heavy_lock): Moved fields
609 old_client_data, old_finalization_proc near beginning.
610 (heavy_lock_finalization_proc): Now inline; changed type of
612 (JV_SYNC_TABLE_SZ): Now 2048.
614 (spin): `mp' now global.
615 (heavy_lock_obj_finalization_proc): Updated to correctly handle
616 heavy lock finalization.
617 (remove_all_heavy): New function.
618 (maybe_remove_all_heavy): Likewise.
619 (_Jv_MonitorEnter): Throw exception if object is NULL.
620 (_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
622 * include/jvm.h (_Jv_AllocTraceTwo): Declare.
623 * nogc.cc (_Jv_AllocTraceTwo): New function.
624 * boehm.cc (trace_two_vtable): New global.
625 (_Jv_AllocTraceTwo): New function.
627 2001-10-15 Tom Tromey <tromey@redhat.com>
629 * Makefile.in: Rebuilt.
630 * Makefile.am (awt_java_source_files): Added new file.
631 * java/beans/AppletInitializer.java: New file.
633 * java/net/SocketPermission.java (hostport, actions): Now
636 2001-10-14 Mark Wielaard <mark@klomp.org>
638 * java/lang/Double.java: Partial merge with Classpath
639 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
641 (static): new static block to load native libary (not used in libgcj)
642 (Double (String)): call parseDouble()
643 (byteValue): removed, already defined in superclass Number
644 (shortValue): likewise
645 (valueOf (String)): call new Double(String) directly
646 (compare (double,double)): new 1.4 method
647 (compareTo (Double)): call new compare(double,double) method
648 (initIDs): new private method (not used in libgcj)
649 * java/lang/Float.java: Partial merge with Classpath
650 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
652 (static): new static block to load native libary (not used in libgcj)
653 (Float (String)): call parseFloat()
654 (byteValue): removed, already defined in superclass Number
655 (shortValue): likewise
656 (valueOf (String)): call new Float(String) directly
657 (compare (float,float)): new 1.4 method
658 (compareTo (Float)): call new compare(double,double) method
660 2001-10-13 Tom Tromey <tromey@redhat.com>
662 * java/lang/SecurityManager.java (SecurityManager): Now public.
664 * java/security/AccessController.java (checkPermission): Now
665 throws AccessControlException.
666 * java/security/AllPermission.java: Class now final.
667 * java/security/Permission.java (getName): Now final.
669 (equals): New abstract method.
670 * java/security/PermissionCollection.java (linesep): Now private.
671 * java/security/Permissions.java: Class now final.
672 * java/security/Security.java (Security): New private
674 * java/security/UnresolvedPermission.java: Import
675 java.security.cert.Certificate. Class now final.
676 * java/security/acl/Group.java: Now extends Principal.
677 (isMember): Added Principal argument.
678 * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
680 * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
683 2001-10-12 Tom Tromey <tromey@redhat.com>
685 * Makefile.in: Rebuilt.
686 * Makefile.am (rmi_java_source_files): Added new files.
687 * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
689 * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
690 * gnu/java/rmi/rmic/Compile_gcj.java: New file.
691 * gnu/java/rmi/rmic/CompilerProcess.java: New file.
692 * gnu/java/rmi/rmic/Compiler.java: New file.
694 2001-10-11 Tom Tromey <tromey@redhat.com>
696 * configure: Rebuilt.
697 * configure.in: Recognize --disable-java-awt.
699 2001-10-10 Tom Tromey <tromey@redhat.com>
701 * gnu/gcj/runtime/natFinalizerThread.cc: New file.
702 * java/lang/natRuntime.cc: Include FinalizerThread.h.
703 (runFinalization): Call finalizerReady.
704 * nogc.cc (_Jv_GCInitializeFinalizers): New function.
705 * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
706 (_Jv_CreateJavaVM): Start the finalizer thread.
707 * no-threads.cc: Include InternalError.h.
708 (_Jv_ThreadStart): Throw InternalError.
709 (_Jv_ThreadInitData): Don't throw error if this is not the first
711 * Makefile.in: Rebuilt.
712 * Makefile.am (ordinary_java_source_files): Added
713 FinalizerThread.java.
714 (nat_source_files): Added natFinalizerThread.cc.
715 * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
716 * boehm.cc (_Jv_GCInitializeFinalizers): New function.
717 * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
718 * gnu/gcj/runtime/FinalizerThread.java: New file.
720 2001-10-09 Per Bothner <per@bothner.com>
722 * strtod.c (_strtod_r): Logic to check for missing digits
723 after exponent had 'else' attached to wrong 'if'.
725 2001-10-09 Mark Wielaard <mark@klomp.org>
727 * java/net/SocketImpl.java: Merge with Classpath
729 2001-10-08 Mark Wielaard <mark@klomp.org>
731 * java/net/DatagramSocketImpl.java: Merge with Classpath
733 2001-10-07 Mark Wielaard <mark@klomp.org>
735 * java/net/URLDecoder.java: Remerge with Classpath
736 * java/net/URLEncoder.java: Merge with Classpath
738 2001-10-08 Tom Tromey <tromey@redhat.com>
740 Fix for PR libgcj/4481:
741 * java/io/File.java (getParent): Handle case where path is "/".
742 (normalizePath): Use correct string for UNC leader.
744 2001-10-06 Mark Wielaard <mark@klomp.org>
746 * java/io/BufferedInputStream.java: Merge with Classpath
748 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
750 * defineclass.cc, java/awt/image/ColorModel.java,
751 java/awt/image/SampleModel.java, java/lang/Package.java,
752 java/security/cert/X509Extension.java: Fix spelling errors of
753 "separate" as "seperate", and corresponding spelling errors of
756 2001-10-05 Tom Tromey <tromey@redhat.com>
758 * java/text/DecimalFormat.java (format): Use localized minus sign
759 when generating exponent; never use `+'. Use floor to compute
762 2001-10-05 Mark Wielaard <mark@klomp.org>
764 * java/util/zip/Adler32.java: Merge with Classpath
765 * java/util/zip/CRC32.java: Ditto
766 * java/util/zip/Checksum.java: Ditto
767 * java/util/zip/DataFormatException.java: Ditto
768 * java/util/zip/ZipException.java: Ditto
770 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
772 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
774 2001-10-04 Mark Wielaard <mark@klomp.org>
776 * java/lang/reflect/Modifier.java: Merge with Classpath
778 2001-10-03 Mark Wielaard <mark@klomp.org>
780 * java/io/SequenceInputStream.java: Merge with Classpath
781 * java/io/StringBufferInputStream.java: Ditto
782 * java/util/Collections.java: Remerge with Classpath
784 2001-10-03 Tom Tromey <tromey@redhat.com>
786 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
789 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
791 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
792 * gij.cc (version): Use GCJVERSION.
794 2001-10-02 Mark Wielaard <mark@klomp.org>
796 * Makefile.am (core_java_source_files): add InheritableThreadLocal
797 * Makefile.in: regenerate
798 * gcj/javaprims.h: ditto
799 * java/lang/InheritableThreadLocal.java: new class from Classpath
800 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
801 call InheritableThreadLocal.newChildThread()
803 2001-10-01 Mark Wielaard <mark@klomp.org>
805 * Makefile.am: Add new classes
806 (core_java_source_files): CharSequence
807 (ordinary_java_source_files): Authenticator, PasswordAuthentication
808 * Makefile.in: regenerate
809 * gcj/javaprims.h: ditto
810 * java/lang/CharSequence: new class from Classpath
811 * java/lang/String.java: implements CharSequence
812 (subSequence (int,int)): new method
813 * java/lang/SubString.java: implements CharSequence
814 (subSequence (int,int)): new method
815 remerge comments with Classpath
816 * java/net/Authenticator.java: new class from Classpath
817 * java/net/PasswordAuthentication.java: ditto
819 2001-10-01 Tom Tromey <tromey@redhat.com>
821 * gcj/javaprims.h: Rebuilt class list.
822 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
823 (_Jv_GCCanReclaimSoftReference): New function.
824 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
825 (_Jv_GCCanReclaimSoftReference): Declare.
826 * java/lang/ref/Reference.java (referent): Now a RawData.
827 (create): Renamed from `created'. Added object argument.
828 (Reference): Don't initialize `referent' here.
829 * Makefile.in: Rebuilt.
830 * Makefile.am (nat_source_files): Added new file.
831 * java/lang/ref/natReference.cc: New file.
833 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
834 (_Jv_NewMultiArray): Use it. Check each array dimension.
835 (_Jv_NewMultiArray): Likewise.
836 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
838 * java/lang/reflect/natArray.cc (newInstance): Throw
839 IllegalArgumentException if there are no dimensions.
841 2001-10-01 Mark Wielaard <mark@klomp.org>
843 * java/io/FileWriter.java: Merge with Classpath.
844 * java/io/FilterInputStream.java: Ditto.
845 (mark): no longer synchronized
847 * java/io/FilterOutputStream.java: Merge with Classpath.
848 * java/io/FilterReader.java: Ditto.
849 (mark): no longer synchronized
851 * java/io/FilterWriter.java: Merge with Classpath.
852 * java/io/Writer.java: Ditto.
853 * java/lang/Compiler.java: Ditto.
854 * java/lang/Process.java: Ditto.
855 * java/lang/Void.java: Ditto.
856 * java/net/ContentHandler.java: Ditto.
857 * java/net/DatagramPacket.java: Ditto.
858 * java/net/MulticastSocket.java: Merge comments with Classpath.
860 2001-09-30 Mark Wielaard <mark@klomp.org>
862 * java/io/DataInput.java: Merge with Classpath.
863 * java/io/DataOutput.java: Idem.
864 * java/io/FilenameFilter.java: Idem.
865 * java/io/Serializable.java: Idem.
866 * java/lang/Cloneable.java: Idem.
867 * java/lang/Comparable.java: Idem.
868 * java/lang/Runnable.java: Idem.
869 * java/lang/reflect/Member.java: Idem.
870 * java/net/ContentHandlerFactory.java: Idem.
871 * java/net/FileNameMap.java: Idem.
872 * java/net/SocketImplFactory.java: Idem.
873 * java/net/SocketOptions.java: Idem.
874 * java/net/URLStreamHandlerFactory.java: Idem.
876 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
878 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
879 an uninitialized target class.
881 * gnu/gcj/protocol/file/Connection.java (connect): Throw
882 FileNotFoundException if appropriate.
883 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
884 IOException if we got a file: url with a hostname. Comment out protocol
885 switch to ftp for now.
886 * java/net/URL.java (URL): Include protocol name in exception message
887 when handler can't be found.
889 2001-09-28 Per Bothner <per@bothner.com>
891 * gnu/gcj/runtime/SharedLibLoader.java: New class.
892 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
893 * Makefile.am: Update accordingly.
894 * configure.in: Add AC_CHECK_LIB for dlopen.
895 * include/config.h.in: Add HAVE_DLOPEN.
897 2001-09-29 Jeff Sturm <jsturm@one-point.com>
899 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
900 * Makefile.in: Rebuilt.
902 2001-09-27 Tom Tromey <tromey@redhat.com>
904 * java/util/IdentityHashMap.java (containsKey): Use getHash.
908 (getHash): New method.
909 (tombstone, emptyslot): Now static final.
910 (put): Correctly determine when to rehash, and correctly rehash.
911 (containsKey, remove): Test against table length with `>='.
913 2001-09-26 Tom Tromey <tromey@redhat.com>
915 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
917 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
918 Re-merged with Classpath.
920 * java/io/DataInputStream.java (readChar): Use readFully.
922 (readLong): Likewise.
923 (readShort): Likewise.
924 (readUnsignedShort): Likewise.
926 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
928 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
929 IllegalThreadStateException if process hasn't exited yet.
930 * java/lang/natPosixProcess.cc (exitValue): Removed.
931 (waitFor): Only check thread interrupted status if waitpid() returned
932 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
935 * java/security/cert/X509Extension.java: Merge from classpath.
937 2001-09-22 Anthony Green <green@redhat.com>
939 * java/security/DummyKeyPairGenerator.java (initialize): New
940 method (with AlgorithmParameterSpec argument).
942 2001-09-22 Anthony Green <green@redhat.com>
944 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
946 * gnu/java/security/provider/SHA1PRNG.java: Extend from
948 (engineNextBytes): Fix order of memory copies.
950 2001-09-21 Richard Henderson <rth@redhat.com>
952 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
953 add get_method, set_method, vtable_elt_size, new_vtable.
954 (_Jv_ArrayVTable): Derive from _Jv_VTable.
955 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
956 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
957 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
959 2001-09-21 Richard Henderson <rth@redhat.com>
961 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
962 * java/lang/mprec.c (lo0bits): Fix paren typo.
964 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
966 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
967 blocking IO via pthread_kill().
968 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
969 interrupted status flag only if ::write returned an error.
970 (write (jbyteArray, jint, jint): Likewise.
971 (read (jint)): Likewise.
972 (read (jbyteArray, jint, jint): Likewise.
974 2001-09-19 Anthony Green <green@redhat.com>
976 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
979 2001-09-17 Andreas Jaeger <aj@suse.de>
981 * jni.cc (array_from_valist): Use promoted types for va_arg.
983 2001-09-16 Anthony Green <green@redhat.com>
985 * gnu/java/locale/LocaleInformation.java: Extend
986 LocaleInformation_en_US, not LocaleInformation_en.
988 2001-09-16 Anthony Green <green@redhat.com>
990 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
992 2001-09-14 Tom Tromey <tromey@redhat.com>
994 * java/util/TimeZone.java: Updated list of timezones from
997 * java/lang/CloneNotSupportedException.java: Re-merged with
1000 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1002 * java/io/File.java (normalizePath): Use equals() not '==' for string
1005 * java/util/Hashtable.java (Enumerator): Ensure that if
1006 hasMoreElements() returns true, nextElement() will always return
1007 something even if the table has been modified.
1009 2001-09-12 Tom Tromey <tromey@redhat.com>
1011 * Makefile.in: Rebuilt.
1012 * Makefile.am (class-check): New target.
1014 2001-09-11 Tom Tromey <tromey@redhat.com>
1016 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
1018 2001-09-10 Tom Tromey <tromey@redhat.com>
1020 * java/util/Properties.java (load): Correctly read \u sequences.
1021 Report from Anthony Green.
1023 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
1025 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
1026 and $(MULTIBUILDTOP).
1027 * configure: Re-generate.
1029 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1031 * include/jvm.h (_Jv_AllocRawObj): New prototype.
1032 * boehm.cc (_Jv_AllocRawObj): Implement.
1033 * nogc.cc (_Jv_AllocRawObj): Likewise.
1034 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
1036 2001-09-06 Anthony Green <green@redhat.com>
1038 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
1039 redundant method calls.
1040 (emptyLocale): New private member.
1041 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
1044 2001-09-06 Tom Tromey <tromey@redhat.com>
1046 * java/text/RuleBasedCollator.java (clone): Rewrote.
1047 (RuleBasedCollator(RuleBasedCollator)): Removed.
1048 * java/text/MessageFormat.java: Re-merged from Classpath.
1049 * java/text/DecimalFormat.java: Re-merged from Classpath.
1051 2001-09-06 Anthony Green <green@redhat.com>
1053 * include/jvm.h: Declare _Jv_RegisterResource.
1054 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
1055 gnu/gcj/protocol/core/Connection.java,
1056 gnu/gcj/protocol/core/Handler.java,
1057 gnu/gcj/protocol/core/CoreInputStream.java,
1058 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
1059 * java/net/URL.java (setURLStreamHandler): Use
1060 gnu.gcj.protocol.core.Handler for the core protocol.
1061 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
1062 end of java.class.path.
1063 * Makefile.am (ordinary_java_source_files): Add new java files.
1064 (nat_source_files): Add new native code files.
1065 * Makefile.in: Rebuilt.
1067 2001-09-05 Tom Tromey <tromey@redhat.com>
1069 * java/util/Properties.java: Re-merged from Classpath.
1071 From Eric Blake, via Classpath:
1072 * java/lang/String.java (CaseInsensitiveComparator): New class.
1073 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
1075 * java/util/Date.java: Re-merged with Classpath.
1077 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
1079 2001-09-05 Corey Minyard <minyard@acm.org>
1080 Tom Tromey <tromey@redhat.com>
1082 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
1083 (_Jv_RegisterClassHookDefault): Throw error if a class is
1086 2001-09-05 Tom Tromey <tromey@redhat.com>
1088 * java/lang/natSystem.cc (init_properties): Default locale is
1091 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1093 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
1094 here, DecimalFormat.applyPattern() does not throw it.
1096 2001-09-04 Tom Tromey <tromey@redhat.com>
1098 * java/util/AbstractMap.java: Re-merged with Classpath.
1099 * java/util/IdentityHashMap.java: Re-merged with Classpath.
1101 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
1102 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
1103 gnu/gcj/text/LocaleData_en_US.java: Removed.
1104 * java/text/DateFormatSymbols.java (clone): Use Classpath
1106 (equals): Simplified.
1107 (DateFormatSymbols): Look in gnu.java.locale for information.
1108 (DateFormatSymbols(DateFormatSymbols)): Removed.
1109 (safeGetResource): Removed.
1110 (DateFormatSymbols): Throws MissingResourceException.
1111 (ampmsDefault, erasDefault, localPatternCharsDefault,
1112 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
1113 weekdaysDefault, zoneStringsDefault): Removed.
1114 * java/text/Collator.java (getAvailableLocales): Use modified
1115 Classpath implementation.
1116 (getInstance): Look in gnu.java.locale for information.
1118 * java/text/MessageFormat.java: Reindented.
1120 * java/text/FieldPosition.java: Merged with Classpath.
1121 * java/text/ParsePosition.java: Merged with Classpath.
1122 * java/text/Format.java: Merged with Classpath.
1123 * java/text/StringCharacterIterator.java
1124 (StringCharacterIterator(StringCharacterIterator,int,int)): New
1125 constructor from Classpath.
1126 * java/text/Annotation.java,
1127 java/text/AttributedCharacterIterator.java,
1128 java/text/AttributedString.java,
1129 java/text/AttributedStringIterator.java: New from Classpath.
1130 * java/text/CharacterIterator.java: Copied from Classpath.
1131 * java/text/ChoiceFormat.java: Reindented.
1133 * gnu/java/text/BaseBreakIterator.java,
1134 gnu/java/text/CharacterBreakIterator.java,
1135 gnu/java/text/LineBreakIterator.java,
1136 gnu/java/text/LocaleData_en.java,
1137 gnu/java/text/LocaleData_en_US.java,
1138 gnu/java/text/SentenceBreakIterator.java,
1139 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
1140 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
1142 * java/text/BreakIterator.java (getAvailableLocales): Use
1143 Classpath implementation.
1144 (getInstance): Look in gnu.java.locale for information.
1145 (getCharacterInstance, getLineInstance, getSentenceInstance,
1146 getWordInstance): Look in gnu.java.text for implementations.
1147 * java/text/DecimalFormatSymbols.java: Reindented
1148 (clone): Use Classpath implementation.
1149 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
1150 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
1152 * java/text/DateFormat.java: Merged with Classpath.
1153 (getAvailableLocales): Use Classpath implementation.
1154 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
1155 (computeInstance): Look in gnu.java.locale for information.
1156 * java/text/NumberFormat.java: Reindented.
1157 (computeInstance): Look in gnu.java.locale for information.
1158 (getAvailableLocales): Use implementation from Classpath.
1159 (setMaximumIntegerDigits): Likewise.
1160 (setMinimumIntegerDigits): Likewise.
1161 (setMaximumFractionDigits): Likewise.
1163 * java/text/DecimalFormat.java: Reindented.
1164 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
1165 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
1166 * Makefile.in: Rebuilt.
1167 * Makefile.am (ordinary_java_source_files): Added all new files.
1168 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
1169 * java/security/spec/AlgorithmParameterSpec.java,
1170 java/security/spec/KeySpec.java: Re-merged with Classpath.
1172 Fix for PR libgcj/4213:
1173 * Makefile.am (ordinary_java_source_files): Added new file.
1174 * gnu/gcj/text/LocaleData.java: New file.
1176 2001-09-03 Tom Tromey <tromey@redhat.com>
1178 * java/lang/reflect/natField.cc (set): Allow for case when the
1179 value is null. Fixes PR libgcj/4208.
1181 * gcj/javaprims.h: Regenerated class list.
1182 * java/lang/IllegalThreadStateException.java,
1183 java/lang/InstantiationException.java: Minor comment tweaks to
1184 satisfy libgcj `classes.pl' script.
1186 2001-09-01 Tom Tromey <tromey@redhat.com>
1188 * Makefile.in: Rebuilt.
1189 * Makefile.am (core_java_source_files): Added
1190 UnsupportedClassVersionError.
1191 * java/lang/UnsupportedClassVersionError.java: New file from
1194 * java/io/CharConversionException.java, java/io/EOFException.java,
1195 java/io/FileNotFoundException.java, java/io/IOException.java,
1196 java/io/InterruptedIOException.java,
1197 java/io/ObjectStreamException.java,
1198 java/io/OptionalDataException.java,
1199 java/io/StreamCorruptedException.java,
1200 java/io/SyncFailedException.java,
1201 java/io/UTFDataFormatException.java,
1202 java/io/UnsupportedEncodingException.java,
1203 java/lang/AbstractMethodError.java,
1204 java/lang/ArithmeticException.java,
1205 java/lang/ArrayIndexOutOfBoundsException.java,
1206 java/lang/ArrayStoreException.java,
1207 java/lang/ClassCastException.java,
1208 java/lang/ClassCircularityError.java,
1209 java/lang/ClassFormatError.java,
1210 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
1211 java/lang/Exception.java,
1212 java/lang/ExceptionInInitializerError.java,
1213 java/lang/IllegalAccessError.java,
1214 java/lang/IllegalAccessException.java,
1215 java/lang/IllegalArgumentException.java,
1216 java/lang/IllegalMonitorStateException.java,
1217 java/lang/IllegalStateException.java,
1218 java/lang/IllegalThreadStateException.java,
1219 java/lang/IncompatibleClassChangeError.java,
1220 java/lang/IndexOutOfBoundsException.java,
1221 java/lang/InstantiationError.java,
1222 java/lang/InstantiationException.java,
1223 java/lang/InternalError.java, java/lang/InterruptedException.java,
1224 java/lang/LinkageError.java,
1225 java/lang/NegativeArraySizeException.java,
1226 java/lang/NoClassDefFoundError.java,
1227 java/lang/NoSuchFieldError.java,
1228 java/lang/NoSuchFieldException.java,
1229 java/lang/NoSuchMethodError.java,
1230 java/lang/NoSuchMethodException.java,
1231 java/lang/NullPointerException.java,
1232 java/lang/NumberFormatException.java,
1233 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
1234 java/lang/SecurityException.java,
1235 java/lang/StackOverflowError.java,
1236 java/lang/StringIndexOutOfBoundsException.java,
1237 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
1238 java/lang/UnsatisfiedLinkError.java,
1239 java/lang/UnsupportedOperationException.java,
1240 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
1241 java/lang/reflect/InvocationTargetException.java,
1242 java/net/BindException.java, java/net/ConnectException.java,
1243 java/net/MalformedURLException.java,
1244 java/net/NoRouteToHostException.java,
1245 java/net/ProtocolException.java, java/net/SocketException.java,
1246 java/net/UnknownHostException.java,
1247 java/net/UnknownServiceException.java,
1248 java/text/ParseException.java: Copied from Classpath, thanks to
1249 Mark Wielaard who did the merge.
1251 * java/lang/System.java (getProperty): Use single argument form of
1252 SecurityManager.checkPropertyAccess.
1253 * Makefile.in: Rebuilt.
1254 * Makefile.am (core_java_source_files): Added VMSecurityManager.
1255 * java/lang/VMSecurityManager.java: New file.
1256 * java/lang/SecurityManager.java: Merged with Classpath.
1258 2001-08-31 Per Bothner <per@bothner.com>
1260 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
1261 (_Jv_RegisterClassHookDefault): Likewise.
1262 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
1263 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
1264 (_Jv_RegisterClassHookDefault): New.function.
1265 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
1267 * java/lang/ClassLoader.java (system): Remove static field.
1268 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
1269 directly instead of using it to set the system field.
1270 (loadClass): Use VMClassLoader.instance instead of system field.
1271 (findSystemClass): Similar.
1272 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
1273 than ClassLoader::system which no longer exists.
1274 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
1276 2001-08-31 Tom Tromey <tromey@redhat.com>
1278 * java/io/BufferedReader.java, java/io/ObjectInput.java,
1279 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
1280 Re-merged with Classpath.
1282 Re-merge with Classpath:
1283 * java/util/Comparator (equals): Added.
1284 * java/io/PipedWriter.java (write): Changed argument to `int'.
1286 * java/io/FileDescriptor.java (FileDescriptor()): New
1288 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
1290 * Makefile.in: Rebuilt.
1291 * Makefile.am (ordinary_java_source_files): Removed
1292 EnumerationChain, added DoubleEnumeration.
1293 (nat_source_files): Added natResourceBundle.cc.
1294 * java/util/natResourceBundle.cc: New file.
1295 * gnu/java/util/DoubleEnumeration.java: New file.
1296 * gnu/gcj/util/EnumerationChain.java: Removed.
1297 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
1298 * java/util/ResourceBundle.java: Merged with Classpath.
1299 * java/util/StringTokenizer.java: Merged with Classpath.
1300 * java/util/Locale.java: Merged with Classpath.
1301 * java/util/Random.java: Merged with Classpath.
1302 * java/util/PropertyResourceBundle.java: Merged with Classpath.
1303 * java/util/ListResourceBundle.java: Merged with Classpath.
1304 * java/util/ConcurrentModificationException.java: Re-merged with
1306 * java/util/EmptyStackException.java: Likewise.
1307 * java/util/MissingResourceException.java: Likewise.
1308 * java/util/NoSuchElementException.java: Likewise.
1309 * java/util/TooManyListenersException.java: Likewise.
1311 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
1312 * java/io/OptionalDataException.java: Merged with Classpath.
1314 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
1316 * exception.cc (PERSONALITY_FUNCTION): Simplify
1319 2001-08-31 Tom Tromey <tromey@redhat.com>
1321 * java/io/ByteArrayInputStream.java: Merged with Classpath.
1323 2001-08-30 Tom Tromey <tromey@redhat.com>
1325 * java/io/BufferedReader.java: Re-merged with Classpath.
1327 2001-08-28 Per Bothner <per@bothner.com>
1329 * java/math/BigInteger.java (init(int,Random)): New method.
1330 Move body of constructor <init>(int,Random)) here.
1331 Re-write it to avoid constructing unneeded temporaries.
1332 (<init>(int,int,Random)): Use new init method to avoid constructing
1333 extra temporary BigIntegers.
1335 2001-08-27 Tom Tromey <tromey@redhat.com>
1337 * java/rmi/activation/Activatable.java,
1338 java/rmi/activation/ActivateFailedException.java,
1339 java/rmi/activation/ActivationDesc.java,
1340 java/rmi/activation/ActivationException.java,
1341 java/rmi/activation/ActivationGroup.java,
1342 java/rmi/activation/ActivationGroupDesc.java,
1343 java/rmi/activation/ActivationGroupID.java,
1344 java/rmi/activation/ActivationID.java,
1345 java/rmi/activation/ActivationInstantiator.java,
1346 java/rmi/activation/ActivationMonitor.java,
1347 java/rmi/activation/ActivationSystem.java,
1348 java/rmi/activation/Activator.java,
1349 java/rmi/activation/UnknownGroupException.java,
1350 java/rmi/activation/UnknownObjectException.java,
1351 java/rmi/AccessException.java,
1352 java/rmi/AlreadyBoundException.java,
1353 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
1354 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
1355 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
1356 java/rmi/NotBoundException.java,
1357 java/rmi/RMISecurityException.java,
1358 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
1359 java/rmi/RemoteException.java, java/rmi/ServerError.java,
1360 java/rmi/ServerException.java,
1361 java/rmi/ServerRuntimeException.java,
1362 java/rmi/StubNotFoundException.java,
1363 java/rmi/UnexpectedException.java,
1364 java/rmi/UnknownHostException.java,
1365 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
1366 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
1367 java/rmi/registry/LocateRegistry.java,
1368 java/rmi/registry/Registry.java,
1369 java/rmi/registry/RegistryHandler.java,
1370 java/rmi/server/ExportException.java,
1371 java/rmi/server/LoaderHandler.java,
1372 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
1373 java/rmi/server/Operation.java,
1374 java/rmi/server/RMIClassLoader.java,
1375 java/rmi/server/RMIClientSocketFactory.java,
1376 java/rmi/server/RMIFailureHandler.java,
1377 java/rmi/server/RMIServerSocketFactory.java,
1378 java/rmi/server/RMISocketFactory.java,
1379 java/rmi/server/RemoteCall.java,
1380 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
1381 java/rmi/server/RemoteServer.java,
1382 java/rmi/server/RemoteStub.java,
1383 java/rmi/server/ServerCloneException.java,
1384 java/rmi/server/ServerNotActiveException.java,
1385 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
1386 java/rmi/server/SkeletonMismatchException.java,
1387 java/rmi/server/SkeletonNotFoundException.java,
1388 java/rmi/server/SocketSecurityException.java,
1389 java/rmi/server/UID.java,
1390 java/rmi/server/UnicastRemoteObject.java,
1391 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
1392 gnu/java/rmi/dgc/DGCImpl_Skel.java,
1393 gnu/java/rmi/dgc/DGCImpl_Stub.java,
1394 gnu/java/rmi/registry/RegistryImpl.java,
1395 gnu/java/rmi/registry/RegistryImpl_Skel.java,
1396 gnu/java/rmi/registry/RegistryImpl_Stub.java,
1397 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
1398 gnu/java/rmi/server/ProtocolConstants.java,
1399 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
1400 gnu/java/rmi/server/RMIHashes.java,
1401 gnu/java/rmi/server/RMIObjectInputStream.java,
1402 gnu/java/rmi/server/RMIObjectOutputStream.java,
1403 gnu/java/rmi/server/UnicastConnection.java,
1404 gnu/java/rmi/server/UnicastConnectionManager.java,
1405 gnu/java/rmi/server/UnicastRef.java,
1406 gnu/java/rmi/server/UnicastRemoteCall.java,
1407 gnu/java/rmi/server/UnicastRemoteStub.java,
1408 gnu/java/rmi/server/UnicastServer.java,
1409 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
1410 Kaffe. Relabelled classes to fit into Classpath tree.
1411 * Makefile.in: Rebuilt.
1412 * Makefile.am (rmi_java_source_files): New macro.
1413 (ordinary_java_source_files): Reference it.
1414 (bin_PROGRAMS): Added rmic and rmiregistry.
1415 (rmic_SOURCES): New macro.
1416 (EXTRA_rmic_SOURCES): Likewise.
1417 (rmic_LDFLAGS): Likewise.
1418 (rmic_LINK): Likewise.
1419 (rmic_LDADD): Likewise.
1420 (rmic_DEPENDENCIES): Likewise.
1421 (rmiregistry_SOURCES): New macro.
1422 (EXTRA_rmiregistry_SOURCES): Likewise.
1423 (rmiregistry_LDFLAGS): Likewise.
1424 (rmiregistry_LINK): Likewise.
1425 (rmiregistry_LDADD): Likewise.
1426 (rmiregistry_DEPENDENCIES): Likewise.
1428 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1430 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
1432 * Makefile.am: New friends for java/lang/Thread.h.
1433 * prims.cc (runFirst): Removed.
1434 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
1435 (_Jv_RunMain): Now takes either a klass or class name parameter.
1436 Create a gnu.gcj.runtime.FirstThread and attach the native thread
1437 to that, then run it using _Jv_ThreadRun. Remove special handling of
1438 jar files, instead pass is_jar parameter through to FirstThread.
1439 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
1440 of _Jv_AttachCurrentThread.
1441 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
1442 (run): New method. Take care of looking up main class manifest
1443 attribute and calling forName if necessary. Then call call_main.
1444 (call_main): New native method.
1445 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
1446 relocated from prims.cc. Look up and call main method.
1447 * java/lang/Thread.java (run_): Removed.
1448 * java/lang/natThread.cc (run_): Renamed to...
1449 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
1450 (_Jv_NotifyThreadStart): here. New function.
1451 (countStackFrames, destroy, resume, suspend, stop): Throw
1452 UnsupportedOperationExceptions rather than JvFail'ing.
1453 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
1454 Existing version wraps new variant.
1457 2001-08-23 Tom Tromey <tromey@redhat.com>
1459 * java/lang/reflect/Field.java (toString): Use
1460 Method.appendClassName.
1461 * java/lang/reflect/Constructor.java (toString): Use
1462 Method.appendClassName.
1463 * java/lang/reflect/Method.java: Reindented.
1464 (appendClassName): New method.
1466 * defineclass.cc (handleMethod ): Initialize `throws' field of
1468 (read_one_method_attribute): Handle Exceptions attribute.
1469 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
1470 (ObjectClass): Removed.
1471 (getType): Compute `exception_types'.
1472 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
1474 2001-08-21 Anthony Green <green@redhat.com>
1476 * java/lang/natClassLoader.cc (findClass): Search for
1477 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
1479 2001-08-21 Jeff Sturm <jsturm@one-point.com>
1481 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
1484 2001-08-20 Tom Tromey <tromey@redhat.com>
1486 * java/awt/GridBagConstraints.java: Removed comment.
1488 * jni.cc (nathash, nathash_count, nathash_size): New globals.
1489 (DELETED_ENTRY): New define.
1490 (hash): New function.
1491 (nathash_find_slot): Likewise.
1492 (natrehash): Likewise.
1493 (nathash_add): Likewise.
1494 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
1496 (nathash_find): New function.
1497 (_Jv_LookupJNIMethod): Use it. Synchronize body.
1498 (call): Synchronize around assignment.
1500 2001-08-17 Jeff Sturm <jsturm@one-point.com>
1502 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
1503 starting from zero offset.
1505 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1507 * boehm.cc: Include gc_local_alloc.h if appropriate.
1508 (GC_GENERIC_MALLOC): Don't define.
1509 (MAYBE_MARK): Redefine for GC 6.0.
1510 (_Jv_MarkObj): Mark class differently.
1511 (_Jv_AllocArray): Use GC_generic_malloc.
1513 2001-08-17 Mark J Roberts <mjr@anarcast.net>
1515 * java/math/BigInteger.java (randBytes): New method.
1516 (BigInteger(int,Random)): Use randBytes.
1518 2001-08-17 Tom Tromey <tromey@redhat.com>
1520 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
1522 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1524 * BigInteger.java: fix right shifts by nonzero multiples of 32.
1526 2001-08-15 Tom Tromey <tromey@redhat.com>
1528 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
1529 (local_ref_table, global_ref_table): Now IdentityHashMap.
1530 (_Jv_JNI_Init): Updated for new types.
1531 (mark_for_gc): Likewise.
1532 (unmark_for_gc): Likewise.
1533 * gcj/javaprims.h: Rebuilt class list.
1534 * Makefile.in: Rebuilt.
1535 * Makefile.am (core_java_source_files): Added new file.
1536 * java/util/IdentityHashMap.java: New file.
1538 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
1541 2001-08-09 Tom Tromey <tromey@redhat.com>
1543 * java/awt/image/SampleModel.java (getPixel): Set correct array
1544 element. From Chris Meyer.
1546 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
1548 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
1549 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
1551 2001-08-06 Tom Tromey <tromey@redhat.com>
1553 * java/io/InputStreamReader.java (refill): Only call refill on
1554 BufferedInputStream when appropriate constraints are met.
1556 2001-08-05 Tom Tromey <tromey@redhat.com>
1558 * java/io/StringWriter.java: Merged with Classpath.
1559 * java/io/InputStream.java: Merged with Classpath.
1560 * java/io/OutputStream.java: Merged with Classpath.
1561 * java/io/PushbackInputStream.java: Merged with Classpath.
1562 * java/io/CharArrayReader.java: Merged with Classpath.
1563 * java/io/CharArrayWriter.java: Merged with Classpath.
1565 2001-08-02 Tom Tromey <tromey@redhat.com>
1567 * prims.cc (JNI_OnLoad): Don't declare.
1568 (_JNI_OnLoad): Don't define.
1569 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
1571 2001-08-02 Tom Tromey <tromey@redhat.com>
1573 * java/io/RandomAccessFile.java (seek): Let seek go past end of
1575 (skipBytes): Don't fail if seeking past end of file.
1576 * java/io/FileInputStream.java (skip): Don't fail if seeking past
1578 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
1580 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
1582 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
1584 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
1586 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
1588 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
1589 to initialize global_ref_table/local_ref_table.
1591 2001-08-02 Tom Tromey <tromey@redhat.com>
1593 * configure: Rebuilt.
1594 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
1597 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1599 * include/posix.h (_POSIX_PII_SOCKET): Define.
1600 * configure.in (HAVE_SOCKLEN_T): Define.
1601 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
1603 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
1604 (java::net::PlainSocketImpl::accept): Use it.
1605 Fixes PRs libgcj/3694, libgcj/3696.
1607 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
1608 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
1609 * configure, include/config.h.in: Regenerate.
1610 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
1611 (mcastGrp): Likewise.
1612 (java::net::PlainDatagramSocketImpl::setOption): Guard against
1613 missing IPV6_MULTICAST_IF.
1614 Fixes PR libgcj/3694.
1616 2001-08-01 Jeff Sturm <jsturm@one-point.com>
1618 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
1620 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
1622 * Makefile.in: Rebuilt.
1623 * Makefile.am (GCJLINK): Added --tag=GCJ.
1624 (LIBLINK): Likewise.
1626 2001-07-30 Tom Tromey <tromey@redhat.com>
1628 * java/util/Date.java: Re-merged with Classpath.
1630 2001-07-30 Jeff Sturm <jsturm@one-point.com>
1632 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
1633 (_Jv_bind): New static function.
1634 (bind): Use _Jv_bind.
1635 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1636 (_Jv_bind, _Jv_connect): New static functions.
1637 (bind): Use _Jv_bind.
1638 (connect): Use _Jv_connect.
1640 2001-07-30 Tom Tromey <tromey@redhat.com>
1641 Corey Minyard <minyard@acm.org>
1643 * gnu/gcj/convert/natIconv.cc (done): New methods.
1644 * gnu/gcj/convert/Output_iconv.java (done): New method.
1645 * gnu/gcj/convert/Input_iconv.java (done): New method.
1646 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1648 (getDefaultEncodingClass): Removed.
1649 (getDefaultEncoder): Use getEncoder.
1651 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1653 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1655 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1657 (getDefaultDecodingClass): Removed.
1658 (getDefaultDecoder): Use getDecoder.
1659 (getDecoder): Look up decoder in cache.
1661 * java/lang/natString.cc (init): Call `done' on converter.
1662 (getBytes): Likewise.
1664 2001-07-30 Tom Tromey <tromey@redhat.com>
1666 * java/lang/Integer.java: Merged with Classpath.
1668 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1670 * java/util/GregorianCalendar.java (GregorianCalendar): Call
1671 setTimeInMillis() to set the default/current time.
1673 2001-07-29 Mark Wielaard <mark@klomp.org>
1675 * HACKING: add description on updating namespace
1677 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1679 * java/util/Calendar.java (set): Never recompute fields here. They
1680 will already be set if someone set time explicitly, and it can cause
1681 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1682 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1683 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1685 * java/text/SimpleDateFormat.java (defaultCentury): New field.
1686 (readObject): Call set2DigitYearStart if appropriate so that
1687 defaultCentury is calculated.
1688 (SimpleDateFormat): Don't bother clearing calendar here. Call
1689 computeCenturyStart().
1690 (set2DigitYearStart): Calculate and set defaultCentury.
1691 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1693 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1694 2 numeric digits, use the 80-20 heuristic to parse the value into a
1695 default century based on defaultCenturyStart.
1696 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1698 2001-07-25 Tom Tromey <tromey@redhat.com>
1700 * Makefile.in: Rebuilt.
1701 * Makefile.am (libgcj.jar): Correctly fail when bytecode
1704 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1706 * prims.cc (_JNI_OnLoad): New function.
1707 (JNI_OnLoad): Use it.
1708 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1710 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1712 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1713 Makefile.in: Regenerate.
1715 2001-07-24 Tom Tromey <tromey@redhat.com>
1717 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1720 2001-07-23 Tom Tromey <tromey@redhat.com>
1722 * gcj/javaprims.h: Rebuilt class list.
1723 * Makefile.in: Rebuilt.
1724 * Makefile.am (core_java_source_files): Added VMClassLoader.
1725 * java/lang/VMClassLoader.java: New file.
1726 * java/lang/Boolean.java: Merged with Classpath.
1727 * java/lang/Byte.java: Merged with Classpath.
1728 * java/lang/Integer.java: Merged with Classpath.
1729 * java/lang/Long.java: Merged with Classpath.
1730 * java/lang/Number.java: Merged with Classpath.
1731 * java/lang/Short.java: Merged with Classpath.
1733 2001-07-22 Jeff Sturm <jsturm@one-point.com>
1735 * configure.host: Enable hash synchronization for alpha*-*.
1736 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1738 * java/lang/natObject.cc (compare_and_swap, release_set,
1739 compare_and_swap_release): Added inline functions for alpha.
1741 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1743 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1744 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1745 back to old RFC 2133 variants if missing.
1747 2001-07-18 Tom Tromey <tromey@redhat.com>
1749 * java/io/natFileWin32.cc (_access): Renamed.
1751 * java/io/natFile.cc (_access): Renamed.
1753 * java/io/File.java (access, stat): Add leading `_' to name.
1754 Updated all callers.
1756 2001-07-18 Tom Tromey <tromey@redhat.com>
1759 * libgcj.spec.in (*lib): Added LIBICONV.
1760 * configure: Rebuilt.
1761 * configure.in: Call AM_ICONV. Don't check for iconv function.
1762 Add parameters to JV_HASH_SYNCHRONIZATION define.
1763 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1765 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1767 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1768 not by setting its size field.
1770 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1772 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1775 2001-07-12 Tom Tromey <tromey@redhat.com>
1776 David Brownell <david-b@pacbell.net>
1778 Fix for PR libgcj/3426:
1779 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1781 (read): Throw exception if character conversion fails.
1782 * java/io/BufferedInputStream.java (refill): Now package-private.
1783 * java/io/InputStreamReader.java (ready): Simplified.
1784 (refill): New method.
1787 2001-07-12 Tom Tromey <tromey@redhat.com>
1789 Report from Henner Zeller:
1790 * java/io/FileOutputStream.java (FileOutputStream): Throw
1791 FileNotFoundException, not IOException.
1793 2001-07-10 Anthony Green <green@redhat.com>
1795 * Makefile.in: Rebuilt.
1796 * Makefile.am: Add new files.
1797 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1798 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1799 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1800 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1801 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1802 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1803 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1804 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1805 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1806 org/w3c/dom/ranges/DocumentRange.java,
1807 org/w3c/dom/ranges/Range.java,
1808 org/w3c/dom/ranges/RangeException.java,
1809 org/w3c/dom/traversal/DocumentTraversal.java,
1810 org/w3c/dom/traversal/NodeFilter.java,
1811 org/w3c/dom/traversal/NodeIterator.java,
1812 org/w3c/dom/traversal/TreeWalker.java,
1813 org/xml/sax/ext/DeclHandler.java,
1814 org/xml/sax/ext/LexicalHandler.java,
1815 org/xml/sax/helpers/AttributeListImpl.java,
1816 org/xml/sax/helpers/AttributesImpl.java,
1817 org/xml/sax/helpers/DefaultHandler.java,
1818 org/xml/sax/helpers/LocatorImpl.java,
1819 org/xml/sax/helpers/NamespaceSupport.java,
1820 org/xml/sax/helpers/ParserAdapter.java,
1821 org/xml/sax/helpers/ParserFactory.java,
1822 org/xml/sax/helpers/XMLFilterImpl.java,
1823 org/xml/sax/helpers/XMLReaderAdapter.java,
1824 org/xml/sax/helpers/XMLReaderFactory.java,
1825 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1826 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1827 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1828 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1829 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1830 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1831 org/xml/sax/SAXNotRecognizedException.java,
1832 org/xml/sax/SAXNotSupportedException.java,
1833 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1834 org/xml/sax/XMLReader.java: New files.
1836 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1838 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1839 * Makefile.in: Regenerate.
1840 * java/lang/ThreadLocal.java: Initial import.
1842 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1844 * Makefile.am (libgcj.jar): Don't recursively make
1845 built_java_source_files. Avoid long command lines.
1846 Don't change to $(srcdir) to invoke javac.
1847 (libgcj.la, libgcjx.la); Avoid long command lines.
1848 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1849 * Makefile.in: Rebuilt.
1851 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1853 * include/i386-signal.h: Don't do anything with unsigned divide
1854 overflow except throw an exception.
1856 2001-07-05 Tom Tromey <tromey@redhat.com>
1859 * java/lang/Class.h (Class(void)): Now private. Removed
1860 implementation. From dmorsberger@sensysdl.com.
1862 2001-07-02 Tom Tromey <tromey@redhat.com>
1864 Fix for PR bootstrap/3281:
1865 * aclocal.m4, configure: Rebuilt.
1866 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1867 Correctly compute libgcj_basedir.
1868 (mkinstalldirs): Define and subst.
1870 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1873 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1876 2001-06-27 Tom Tromey <tromey@redhat.com>
1878 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1881 2001-06-25 Tom Tromey <tromey@redhat.com>
1883 * scripts/encodings.pl: Generate lower-case names. Updated URL
1884 for `character-sets' file.
1885 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1887 Rebuilt list of aliases.
1889 2001-06-25 Tom Tromey <tromey@redhat.com>
1891 * java/io/natFileDescriptorPosix.cc (open): Change error message
1892 formatting. From David Brownell.
1894 2001-06-21 Tom Tromey <tromey@redhat.com>
1896 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1899 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1901 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1902 extraneous/malformed sign word.
1904 2001-06-15 Tom Tromey <tromey@redhat.com>
1906 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1908 2001-06-15 Tom Tromey <tromey@redhat.com>
1910 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1911 NULL if no library on the list has the symbol.
1912 (init): Call add_library on the program itself.
1913 * prims.cc (JvRunMain): Initialize Runtime before searching for
1915 (_Jv_RunMain): Likewise.
1917 2001-06-15 Tom Tromey <tromey@redhat.com>
1919 * jni.cc (ClassClass): Removed; updated all users.
1920 (ObjectClass): Likewise.
1921 (ThrowableClass): Likewise.
1922 (MethodClass): Likewise.
1923 (ThreadGroupClass): Likewise.
1924 (local_ref_table): Renamed from `ref_table'.
1925 (global_ref_table): New global.
1926 (_Jv_JNI_Init): Initialize both ref tables.
1927 (mark_for_gc): Added `ref_table' parameter.
1928 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1930 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1931 (_Jv_JNI_DeleteGlobalRef): Likewise.
1932 (_Jv_JNI_DeleteLocalRef): Likewise.
1933 (_Jv_JNI_NewLocalRef): Likewise.
1934 (_Jv_JNI_PopLocalFrame): Likewise.
1935 (_Jv_JNI_GetStringChars): Likewise.
1936 (_Jv_JNI_ReleaseStringChars): Likewise.
1937 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1938 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1940 2001-06-14 Tom Tromey <tromey@redhat.com>
1942 Fix for PR libgcj/3144:
1943 * java/util/Date.java: Merged with Classpath.
1945 2001-06-12 Tom Tromey <tromey@redhat.com>
1947 * aclocal.m4, configure: Rebuilt.
1948 * acinclude.m4: Find configure.host in srcdir.
1950 2001-06-07 Tom Tromey <tromey@redhat.com>
1952 Fix for PR libgcj/3059:
1953 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1954 * Makefile.in: Rebuilt.
1955 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1957 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1959 * exception.cc (cstdlib): Replaces stdlib.h.
1960 (_Jv_Throw): Use std::abort().
1961 (PERSONALITY_FUNCTION): Likewise.
1963 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1965 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1966 nothing, as in autoconf 2.50.
1967 * aclocal.m4, configure: Rebuilt.
1969 2001-06-08 Tom Tromey <tromey@redhat.com>
1971 * configure: Rebuilt.
1972 * configure.in: Compute new aux dir using `pwd'.
1974 2001-06-07 Tom Tromey <tromey@redhat.com>
1976 For PR bootstrap/3075:
1977 * configure, aclocal.m4, Makefile.am: Rebuilt.
1978 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1979 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1980 relative to libgcj_basedir.
1981 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1982 AC_CANONICAL_SYSTEM here.
1983 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1985 ($(extra_headers)): New target.
1987 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1988 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1990 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1991 table index is within allowed bounds. Ensure that we don't try to access
1992 class itable at a negative offset. Avoid an ancestor table lookup if
1993 source is a primitive type class.
1994 (isInstance): Remove redundant isPrimitive() check.
1996 2001-06-04 Tom Tromey <tromey@redhat.com>
1998 * java/security/PublicKey.java: Extend Key.
1999 * java/security/PrivateKey.java: Extend Key.
2001 2001-06-02 Anthony Green <green@redhat.com>
2003 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
2004 alternate when USE_LTDL not defined.
2006 2001-06-02 Anthony Green <green@redhat.com>
2008 * configure: Rebuild.
2009 * configure.in: Remove data_start hack.
2010 * libgcj.spec.in: Ditto.
2011 * Makefile.in: Rebuild.
2012 * Makefile.am: Ditto.
2013 * libgcjdata.c: Remove.
2015 2001-06-02 Anthony Green <green@redhat.com>
2017 * configure: Rebuild.
2018 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
2019 --without-libffi option. Tweak --disable-java-net processing.
2020 * Makefile.in: Rebuild.
2021 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
2022 * include/config.h.in: Rebuild.
2023 * acconfig.h (USE_LIBFFI): Define.
2024 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
2026 2001-06-02 Anthony Green <green@redhat.com>
2028 * configure: Rebuilt.
2029 * configure.in: Test for sigaction on native builds.
2030 * prims.cc: Check HAVE_SIGACTION.
2031 * include/config.h.in: Rebuilt.
2033 2001-05-31 Jeff Sturm <jsturm@one-point.com>
2035 * natFile.cc (get_entry): Removed functions.
2036 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
2037 Allocate enough storage for d_name if using readdir_r.
2039 2001-05-31 Tom Tromey <tromey@redhat.com>
2041 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
2043 (write): Loop until write completes. From Corey Minyard.
2045 2001-05-29 Laurent Guerby <guerby@acm.org>
2047 * java/awt/geom/Rectangle2D.java: fix doc typo.
2049 2001-05-31 Tom Tromey <tromey@redhat.com>
2051 * java/sql/DriverManager.java (getDrivers): Handle case where
2052 driver's class loader is null. From Corey Minyard.
2054 2001-05-29 Tom Tromey <tromey@redhat.com>
2056 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
2058 * configure: Rebuilt.
2059 * configure.in: Only add multilib support code if we just rebuilt
2062 2001-05-29 Andrew Haley <aph@redhat.com>
2064 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
2065 pointer: the dwarf unwinder in libgcc will do everything that's
2067 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
2068 more than we absolutely need to.
2069 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
2070 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
2072 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
2074 * configure: Rebuilt.
2075 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
2077 (SIGNAL_HANDLER): Use siginfo style handler.
2078 (INIT_SEGV): Likewise.
2079 (INIT_FPE): Likewise.
2080 * include/ppc-signal.h: Delete whole file.
2082 2001-05-24 Tom Tromey <tromey@redhat.com>
2084 * java/lang/natString.cc (init): Throw
2085 ArrayIndexOutOfBoundsException.
2086 (getChars): Likewise.
2087 (getBytes): Likewise.
2088 (valueOf): Likewise.
2090 * configure.in: Only allow hash synchronization when POSIX threads
2092 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
2093 of sync info object.
2095 2001-05-23 Tom Tromey <tromey@redhat.com>
2097 * Makefile.in: Rebuilt.
2098 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
2100 Revert patch of 2001-05-21:
2101 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
2102 (libgcj_la_LIBADD): Likewise.
2103 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
2104 (libgcjx_la_LIBADD): Likewise.
2106 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
2107 * gcj/Makefile.in: Rebuilt.
2108 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
2109 * gcj/javaprims.h: Include gcj/libgcj-config.h.
2110 * gcj/libgcj-config.h.in: New file.
2111 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
2112 * configure: Rebuilt.
2113 * configure.in: Enable hash synchronization by default on some
2115 (HASH_SYNC_SPEC): New subst.
2116 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
2117 Correctly use `test -z' instead of `test -n' in a couple places.
2118 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
2120 * configure.host (enable_java_net_default): Initialize.
2121 (enable_hash_synchronization_default): New variable.
2123 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
2125 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
2126 synchronization in use.
2127 (_Jv_MarkArray): Likewise.
2128 (_Jv_AllocBytes): Don't check return result.
2129 (handle_out_of_memory): New function.
2130 (_Jv_InitGC): Set GC_oom_fn.
2131 (trace_one_vtable): New global.
2132 (_Jv_AllocTraceOne): New function.
2133 * configure.in: Added --enable-hash-synchronization.
2134 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
2135 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
2136 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
2137 (_Jv_AllocArray): Likewise.
2138 (_Jv_AllocBytes): Likewise.
2139 (_Jv_AllocPtrFreeObject): New function.
2140 (_Jv_AllocTraceOne): Likewise.
2141 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
2143 (self_cache): New global.
2144 (_Jv_ThreadSelf_out_of_line): New function.
2145 * prims.cc (_Jv_AllocBytesChecked): Removed.
2146 (_Jv_ThrowNoMemory): New function.
2147 (_Jv_AllocObject): Don't check for null return from allocator.
2148 (_Jv_NewObjectArray): Likewise.
2149 (_Jv_AllocPtrFreeObject): New function.
2150 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
2151 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
2152 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
2153 * include/boehm-gc.h (_Jv_AllocObj): Define.
2154 (_Jv_AllocPtrFreeObj): Define.
2155 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
2156 (_Jv_ThrowNoMemory): Declare.
2157 (_Jv_AllocTraceOne): Declare.
2158 (_Jv_AllocBytesChecked): Removed.
2159 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
2160 _Jv_MutexUnlock): Handle LOCK_DEBUG.
2161 (_Jv_ThreadSelf): Handle case where system pthread_self() is
2163 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
2165 * java/lang/Object.h (sync_info): Conditional upon presence of
2166 hash synchronization.
2167 * java/lang/natObject.cc: Much new code to handle thin locks and
2168 hash synchronization.
2169 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
2172 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
2174 * gij.cc (version): Update copyright year.
2176 2001-05-22 Anthony Green <green@redhat.com>
2178 * configure.in: Tweak canadian cross test, and don't redefine GCJ
2181 2001-05-21 Per Bothner <per@bothner.com>
2183 Implement invocation interface; don't create new thread for main.
2184 * java/lang/Thread.java (gen_name): Make native.
2185 (<init>(Thread,THreadGroup,Runnable,String)): New private
2186 constructor, used by other constructors, and _Jv_AttachCurrentThread.
2187 * java/lang/natThread.cc (gen_name): New implementation.
2188 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
2189 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
2190 (_Jv_CreateJavaVM): New runtime initialization procedure.
2191 (runFirst): New proecdure - mostly code from old FirstThread::run.
2192 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
2193 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
2194 JvDetachCurrentThread): New inline wrappers.
2195 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
2196 _Jv_DetachCurrentThread): New declarations.
2197 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
2198 (getMain): new static method.
2199 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
2200 by runFirst in prims.cc.
2201 (java/lang/Thread.h): Update for new invocation interface.
2202 * include/posix-threads.h (_Jv_ThreadRegister,
2203 _Jv_ThreadUnRegister): New declarations.
2204 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2205 (really_start): Use new _Jv_ThreadRegister.
2206 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
2207 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
2208 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
2209 Complain of called when _Jv_OnlyThread already set.
2210 (_Jv_ThreadStart): Always JvFail.
2211 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
2212 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
2213 * win32-threads.cc (struct starter): Remove objet field -
2214 we use _Jv_Thread_t's new thread_obj field instead.
2215 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
2216 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2217 (really_start): Use new _Jv_ThreadRegister.
2218 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
2219 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
2220 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
2221 Removed - no longer needed with new invocation interface.
2222 * Makefile.am: Update for removed/added files.
2224 2001-05-21 Per Bothner <per@bothner.com>
2226 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
2227 (libgcj_la_LIBADD): Likewise.
2228 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
2230 2001-05-21 Per Bothner <per@bothner.com>
2232 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
2233 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
2234 taken from old Integer.toString code.
2235 (Integer::valueOf): Use _Jv_FormatInt.
2236 * java/lang/Integer.java (toString): Just use call String.valueOf.
2237 * java/lang/Long.java (toString): Fix typo in comment.
2238 * java/lang/String.java (valueOf(int)): Make native.
2239 * java/lang/StringBuffer.java (append(int)): Make native.
2240 * java/lang/natStringBuffer.cc: New file, for append(jint).
2241 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
2243 2001-05-21 Tom Tromey <tromey@redhat.com>
2245 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
2247 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
2249 * include/dwarf2-signal.h: New file.
2250 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
2251 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
2252 * configure: Rebuilt.
2254 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2256 * configure.in: Update boehm-gc include dir for new GC version.
2257 * configure: Rebuilt.
2258 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
2260 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
2261 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
2262 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
2265 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
2267 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
2268 (_Jv_MutexInit): Likewise.
2270 2001-05-18 Tom Tromey <tromey@redhat.com>
2272 * Makefile.in: Rebuilt.
2273 * Makefile.am (awt_java_source_files): Added Polygon.java.
2275 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2277 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
2278 * gcj/javaprims.h: ... here.
2279 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
2281 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
2283 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
2284 with length of ioffset table.
2285 (_Jv_IsAssignableFrom): Likewise.
2287 2001-05-17 Per Bothner <per@bothner.com>
2289 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
2291 2001-05-16 Tom Tromey <tromey@redhat.com>
2293 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
2296 2001-05-15 Tom Tromey <tromey@redhat.com>
2298 * java/util/GregorianCalendar.java (computeTime): Only call
2301 2001-05-14 Tom Tromey <tromey@redhat.com>
2303 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
2304 ZONE_OFFSET just before computing the time.
2306 2001-05-12 Zack Weinberg <zackw@stanford.edu>
2308 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
2309 * Makefile.in: Regenerate (by hand).
2310 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
2311 * doc/cni.sgml: Document #pragma GCC java_exceptions.
2313 2001-05-11 Richard Henderson <rth@redhat.com>
2315 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
2316 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
2318 2001-05-11 Richard Henderson <rth@redhat.com>
2320 * exception.cc: Include unwind-pe.h. Remove all pointer
2323 2001-05-10 Tom Tromey <tromey@redhat.com>
2325 * Makefile.in: Rebuilt.
2326 * Makefile.am (awt_java_source_files): Added Polygon.java.
2327 * java/awt/Polygon.java: New file.
2329 * java/awt/geom/AffineTransform.java
2330 (setToRotation(double,double,double)): New method.
2331 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
2332 (setToShear): Likewise.
2334 2001-05-10 Tom Tromey <tromey@redhat.com>
2336 * java/util/GregorianCalendar.java: Imported from Classpath.
2337 * gnu/java/locale/LocaleInformation_nl.java: New file from
2339 * gnu/java/locale/LocaleInformation_en.java: Likewise.
2340 * gnu/java/locale/LocaleInformation_de.java: Likewise.
2341 * gnu/java/locale/LocaleInformation.java: Likewise.
2342 * natGregorianCalendar.cc: Removed.
2343 * Makefile.in: Rebuilt.
2344 * Makefile.am (nat_source_files): Removed
2345 natGregorianCalendar.cc.
2347 2001-05-10 Tom Tromey <tromey@redhat.com>
2349 * java/text/SimpleDateFormat.java (computeCenturyStart): New
2351 (defaultCenturyStart): Use it.
2352 (readObject): Likewise.
2353 (SimpleDateFormat): Clear the calendar. Set the grouping on the
2355 (parse): Copy the calendar before modifying it. Correctly handle
2358 * java/util/Calendar.java (clear): Set field value(s) to 0.
2360 2001-05-10 Jeff Sturm <jsturm@one-point.com>
2362 * Calendar.java (get): Clear areFieldsSet if requested field
2364 (set): Unset fields that depend on new value.
2366 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2368 * java/lang/Class.h (_Jv_Self): New union type.
2369 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
2370 Jeff Sturm and Fergus Henderson.
2372 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2374 * java/lang/ClassLoader.java: Remove dead code fragment.
2376 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
2378 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2380 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2382 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
2384 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
2385 * configure.host (EXCEPTIONSPEC): New.
2386 * configure.in (EXCEPTIONSPEC): New.
2387 * configure: Rebuilt.
2389 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2391 * doc/*.texi: Remove generated documentation.
2393 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2395 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
2396 (performDelete): Fix #endif placement.
2398 2001-04-27 Zack Weinberg <zackw@stanford.edu>
2400 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
2401 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
2402 (_Jv_ThreadDestroyData): Use _Jv_Free.
2403 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
2406 2001-04-27 Tom Tromey <tromey@redhat.com>
2408 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2410 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2412 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
2414 * include/jni.h (struct JNINativeInterface): Fixed types in
2415 Get/Set*ArrayRegion declarations.
2416 (class _Jv_JNIEnv): Likewise.
2418 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
2420 * configure.in: Obtain THREADS with `gcc -v'.
2421 * configure: Rebuilt.
2423 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2426 * java/io/ObjectStreamClass.java (setClass): Calculate
2427 serialVersionUID for local class and compare it against the UID
2428 from the Object Stream. Throw InvalidClassException upon mismatch.
2429 (setUID): Renamed to...
2430 (getClassUID): this. Return the calculated class UID rather than
2431 setting uid field directly.
2432 (getDefinedSUID): Removed.
2433 * java/io/ObjectInputStream.java (resolveClass): Use the
2434 three-argument Class.forName().
2435 * java/io/InvalidClassException (toString): Don't include classname in
2436 result if it is null.
2438 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2440 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
2441 Wrap use of inet_pton in HAVE_INET6.
2443 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2445 java.security merge and ClassLoader compliance fixes.
2447 * java/lang/Class.h (Class): Include ProtectionDomain.h.
2448 New protectionDomain field.
2449 (forName): Add initialize parameter. Fixes declaration to comply with
2451 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
2452 variant. Honour "initialize" flag.
2453 (getProtectionDomain0): New method.
2454 * java/lang/Class.java: Fix forName() declaration.
2455 (getPackage): New method based on Classpath implementation.
2456 (getProtectionDomain0): New native method decl.
2457 (getProtectionDomain): New method.
2458 * java/lang/ClassLoader.java (getParent): Now final.
2459 (definedPackages): New field.
2461 (defineClass): New variant with protectionDomain argument.
2462 (definePackage): New.
2464 (findSystemClass): Now final.
2465 (getSystemResourceAsStream): Remove redundant "final" modifier.
2466 (getSystemResource): Remove redundant "final" modifier.
2467 (getResources): Now final.
2468 (protectionDomainPermission): New static field.
2469 (unknownProtectionDomain): Ditto.
2470 (defaultProtectionDomain): Ditto.
2471 (getSystemClassLoader): Now non-native.
2472 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
2473 arguments for Class.forName().
2474 * java/lang/Package.java: New file.
2475 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
2476 (instance): Static initialize singleton.
2477 (findClass): Override this, not findSystemClass.
2478 * java/lang/natClassLoader.cc (defineClass0): Set class's
2479 protectionDomain field as specified.
2480 (getSystemClassLoader): Removed.
2481 (findClass): Renamed from findSystemClass. Call the interpreter via
2482 URLClassLoader.findClass if loading class via dlopen fails.
2484 * java/security/*.java: java.security import/merge with Classpath.
2485 * java/security/acl/*.java: Likewise.
2486 * java/security/interfaces/*.java: Likewise.
2487 * java/security/spec/*.java: Likewise.
2488 * java/net/NetPermission.java: Likewise.
2489 * java/net/SocketPermission.java: Likewise.
2490 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
2492 * Makefile.am: Add new classes.
2493 * Makefile.in: Rebuilt.
2494 * gcj/javaprims.h: CNI namespace rebuild.
2496 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
2498 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
2499 for libtool tests. Pre-create gnu/classpath/Configuration.java.
2500 * configure: Rebuilt.
2502 2001-04-21 Tom Tromey <tromey@redhat.com>
2504 * Makefile.in: Rebuilt.
2505 * Makefile.am (awt_java_source_files): Added Line2D.java.
2506 * java/awt/geom/Line2D.java: Wrote.
2508 * java/awt/Menu.java (addNotify): Wrote.
2510 * java/awt/PopupMenu.java (addNotify): Implemented.
2513 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
2514 * java/awt/List.java (addNotify): Call super.addNotify.
2515 * java/awt/Label.java (addNotify): Call super.addNotify.
2516 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
2517 * java/awt/Dialog.java (addNotify): Call super.addNotify.
2518 * java/awt/Choice.java (addNotify): Call super.addNotify.
2519 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
2520 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
2522 * java/awt/List.java (replaceItem): Notify peer.
2524 * java/awt/geom/Rectangle2D.java
2525 (Float.setRect(float,float,float,float)): New method.
2527 * java/awt/event/ContainerEvent.java (getContainer): Now returns
2530 * java/awt/RenderingHints.java (Key): Class now public.
2532 * java/awt/Rectangle.java (Rectangle): Now implements
2534 (getPathIterator): Removed.
2536 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
2539 * java/awt/FileDialog.java: Wrote.
2541 * java/awt/EventQueue.java (isDispatchThread): Now public.
2542 (invokeLater): Likewise.
2544 * java/awt/Component.java (setCursor): Update peer.
2545 (getFontMetrics): Use peer.
2547 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
2550 2001-04-20 Tom Tromey <tromey@redhat.com>
2552 * java/awt/List.java: Wrote.
2553 * java/awt/Dialog.java: Wrote.
2555 2001-04-20 Warren Levy <warrenl@redhat.com>
2557 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
2558 * java/text/SimpleDateFormat.java
2559 (indexInArray): Removed private method.
2560 (processYear): Removed private method.
2561 (parseLenient): Removed private method.
2562 (parseLeadingZeros): Removed private method.
2563 (parseStrict): Removed private method.
2564 (expect): Added new private method.
2565 (parse): Reverted to pre-Classpath merge version with minor fixes.
2566 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
2569 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
2571 * java/io/File.java (normalizePath): New private method.
2572 (File (String)): Use normalizePath().
2573 (File (String, String)): Likewise.
2575 * Makefile.am (libffi_files): Removed.
2576 (libgcj.la): Link libffi as a convenience library instead of
2577 refering to its object files directly.
2578 * Makefile.in: Rebuilt.
2580 2001-04-08 Per Bothner <per@bothner.com>
2582 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
2583 Recalculate hash, since Utf8Const's hash is only 16 bits.
2585 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
2586 bits of hash to calculate step for chaining.
2588 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
2589 when 2/3 full, rather than 3/4 full.
2591 2001-04-06 Tom Tromey <tromey@redhat.com>
2593 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
2594 (wrap_value<T*>): New specialization.
2595 (_Jv_JNI_PopLocalFrame): Update env->locals.
2597 2001-04-05 Tom Tromey <tromey@redhat.com>
2599 * libtool-version: Updated current.
2601 2001-04-04 Andreas Jaeger <aj@suse.de>
2603 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2604 * gcj/Makefile.in: Rebuilt.
2605 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2606 * Makefile.in: Rebuilt.
2607 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2608 * testsuite/Makefile.in: Rebuild.
2609 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2610 * include/Makefile.in: Rebuild.
2612 2001-04-02 Zack Weinberg <zackw@stanford.edu>
2614 * testsuite/lib/libjava.exp: Correct typo: 'output from source
2615 compiled test', not 'execution from source compiled test'.
2616 Use UNTESTED, not XFAIL, for tests which are not run because
2617 they depend on a previous test which failed.
2619 2001-04-02 Richard Henderson <rth@redhat.com>
2621 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
2622 the same tree as gcc.
2623 * configure: Rebuilt.
2625 * exception.cc (_Jv_Throw): Clarify commentary.
2627 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
2629 * jni.cc (wrap_value<jclass>): New specialization.
2631 2001-04-02 Tom Tromey <tromey@redhat.com>
2633 * java/io/PrintStream.java (out): Removed field. Fixes PR
2635 (write): Call flush, not out.flush, per spec.
2636 (close): Flush output stream, per spec. Handle
2637 InterruptedIOException.
2638 (checkError): Likewise.
2639 (flush, print, write): Handle InterruptedIOException per spec.
2640 (PrintStream): Don't create BufferedOutputStream.
2641 (work_bytes): New field.
2642 (writeChars): Use work_bytes. Don't assume `out' is a
2643 BufferedOutputStream.
2645 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
2647 * java/text/MessageFormat.java (setLocale): Added missing `else'.
2650 2001-03-30 Tom Tromey <tromey@redhat.com>
2652 * jni.cc (add_char): Correctly encode non-ascii characters.
2653 (add_char): Define even when INTERPRETER not defined.
2654 (mangled_name): Likewise.
2655 (_Jv_GetJNIEnvNewFrame): Likewise.
2656 (_Jv_LookupJNIMethod): Likewise.
2658 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
2660 * configure.host: Enable interpreter for PPC.
2662 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
2664 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2665 to "file.separator", "path.separator", and "java.io.tmpdir" property
2667 * java/io/File.java: Likewise.
2668 * java/io/natFile.cc (init_native): Likewise.
2669 * java/io/natFileWin32.cc (init_native): Likewise.
2671 2001-04-01 Per Bothner <per@bothner.com>
2673 * java/lang/natString.cc (intern): If string's data does not point to
2674 this String, make a fresh String that does.
2676 * java/lang/natString.cc (unintern): Replace by static function.
2677 * java/lang/String.java (unintern): Remove method.
2679 2001-04-01 Per Bothner <per@bothner.com>
2681 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
2682 (finish): def.deflate needs to be called in a loop.
2683 (inbuf, inbufLength): New private fields.
2684 (write(int)): Use inbuf.
2685 (write(byte[],int,int): Check if pending output in inbuf.
2686 * ZipOutputStream.java: Don't use Deflater if stored.
2687 Use a Checksum object directly, not via a CheckedOutputStream.
2688 (uncompressed_size): New field,
2689 (closeEntry): Only write data_directory if needed.
2690 (write): If STORED, write directly.
2691 Always update crc, and uncompressed_size.
2692 (write_entry): Fix lots of protocol erors.
2694 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
2696 1.3-Compliant Implementation of java.io.File.
2697 * java/lang/natSystem.cc (init_properties): Get "file.separator",
2698 "path.separator", and "java.io.tmpdir" from the File class, instead
2699 of setting them explicitly.
2700 * java/io/File.java: Do not canonicalize paths for security manager
2701 checks. Call init_native() from static initializer. Do not pass path
2702 argument to native methods. New native method declarations. Some
2703 security manager checks moved to checkWrite().
2704 (equals): Check file system case sensitivity and act appropriatly.
2705 (hashCode): Likewise.
2706 (isHidden): New method implemented.
2707 (performList): Changed prototype. Now takes a class argument specifying
2708 the class of the returned array: Strings or File objects. Also added
2709 FileFilter argument.
2710 (listFiles): New variants with "File" return type implemented.
2711 (createTempFile): Use createNewFile(). Use maxPathLen.
2712 (setReadOnly): New method implemented.
2713 (listRoots): Likewise.
2714 (compareTo): Likewise.
2715 (setLastModified): Likewise.
2716 (checkWrite): New method.
2718 * java/io/natFile.cc: Various functions no longer take canonical path
2720 (stat): Handle ISHIDDEN query.
2721 (isAbsolute): Remove WIN32 cruft.
2722 (performList): New arguments. Handle returning either File[] or String[]
2723 arrays. Check with FileFilter or FilenameFilter arguments as
2724 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2725 (performSetReadOnly): New method implemented.
2726 (performListRoots): Likewise.
2727 (performSetLastModified): Likewise.
2728 (performCreate): Likewise.
2729 (init_native): New initialization function.
2730 * java/io/natFileWin32.cc: Various functions no longer take canonical
2732 (stat): Add FIXME about ISHIDDEN query.
2733 (performList): New arguments. Handle returning either File[] or String[]
2734 arrays. Check with FileFilter or FilenameFilter arguments as
2735 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2736 (performSetReadOnly): New. Stubbed.
2737 (performListRoots): Likewise.
2738 (performSetLastModified): Likewise.
2739 (performCreate): Likewise.
2740 (init_native) New initialization function.
2741 * configure.in: Check for utime() and chmod().
2742 * configure: Rebuilt.
2743 * include/config.h.in: Rebuilt.
2745 Resolves PR libgcj/1759.
2747 2001-03-28 Richard Henderson <rth@redhat.com>
2749 IA-64 ABI Exception Handling:
2750 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2751 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2752 Remove EXCEPTIONSPEC.
2753 * configure.host (libgcj_sjlj): Remove.
2754 * configure.in (EXCEPTIONSPEC): Remove.
2755 (enable-sjlj-exceptions): Detect if not specified.
2756 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2757 what header we're looking for.
2758 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2759 * Makefile.in, configure: Regenerate.
2760 * exception.cc: Don't declare libgcc2 stuff.
2761 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2762 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2763 (win32_get_restart_frame): Remove.
2764 (struct java_exception_header): New.
2765 (__gcj_exception_class): New.
2766 (get_exception_header_from_ue): New.
2767 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2768 (size_of_encoded_value, read_encoded_value): New.
2769 (read_uleb128, read_sleb128, parse_lsda_header): New.
2770 (get_ttype_entry, __gcj_personality_sj0): New.
2771 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2773 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2775 * javax/naming/InitialContext.java (init): Fix typo.
2776 (composeName): Remove unnecessary semicolon.
2777 (addToEnvironment): Remove unnecessary semicolon.
2778 (addToEnvironment): Use put() instead of add().
2780 * javax/naming/InitialContext.java (InitialContext):
2782 (destroySubcontext): Method doesn't return a result.
2783 * javax/naming/Context.java: Import java.util.Hashtable.
2784 * javax/naming/Name.java: Import java.util.Enumeration.
2786 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2788 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2789 objects in subdirectories.
2790 * Makefile.in: Rebuilt.
2792 2001-03-25 Richard Henderson <rth@redhat.com>
2794 * exception.cc (java_eh_info): Make value type jthrowable.
2795 (_Jv_type_matcher): Remove now unneeded cast.
2796 (_Jv_Throw): Make argument type jthrowable. Munge name
2797 for SJLJ_EXCEPTIONS here ...
2798 * gcj/cni.h: ... not here.
2800 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2802 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2803 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2804 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2805 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2806 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2807 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2808 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2809 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2810 java/lang/natDouble.cc, java/lang/natObject.cc,
2811 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2812 java/lang/natString.cc, java/lang/natSystem.cc,
2813 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2814 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2815 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2816 java/util/zip/natInflater.cc:
2817 Use throw, not JvThrow or _Jv_Throw.
2819 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2821 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2822 paramater, bump it to 1.
2823 * java/util/Hashtable.java (Hashtable): Likewise.
2825 2001-03-23 Per Bothner <per@bothner.com>
2827 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2828 check for errors, since we don't want to throw exception on
2829 overflow/underflow. Instead, trim whitespace, and then check that
2830 _strtod_r uses up all the rest of the string.
2832 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2833 ancestors array is invalid for interfaces, so do that *after*
2834 check that the target type is not an interface.
2836 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2838 * prims.cc (_Jv_FindClassFromSignature): Check return of
2839 recursive call. Do not abort on invalid signature; return NULL
2842 2001-03-22 Tom Tromey <tromey@redhat.com>
2844 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2845 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2847 * include/jvm.h (_Jv_ResolveField): Declare.
2848 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2849 * resolve.cc (_Jv_ResolveField): No longer conditional on
2852 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2854 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2855 for libtool hacking.
2856 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2857 to a temporary file, then invoke libtool with the -objectlist
2859 (libgcjx.la): Likewise.
2860 * Makefile.in: Rebuilt.
2862 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2864 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2866 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2868 * jni.cc (add_char): Handle `.' like `/'.
2870 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2872 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2873 initialize if exception_types is null.
2874 * java/lang/reflect/Constructor.java: Likewise.
2875 * java/lang/reflect/natConstructor.cc (getType): Initialize
2876 exception_types to an empty Object array.
2878 2001-03-21 Tom Tromey <tromey@redhat.com>
2880 * configure: Rebuilt.
2881 * configure.in (GCJFLAGS): Subst.
2882 * Makefile.in: Rebuilt.
2883 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2884 (gij_LDFLAGS): Likewise.
2885 (JC1FLAGS): Added GCJFLAGS and removed -g.
2887 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2888 read/write case. Fixes PR libgcj/2338.
2890 2001-03-20 Warren Levy <warrenl@redhat.com>
2892 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2893 and corrected SimpleTimeZone's for the timezones hash table.
2895 2001-03-19 Per Bothner <per@bothner.com>
2897 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2898 "canonicalize" "../../xxx" to "/xxx".
2900 2001-03-19 Mark Wielaard <mark@klomp.org>
2902 * java/util/ArrayList.java: Remove RCS keywords from comments
2903 * java/util/BasicMapEntry.java: idem
2904 * java/util/Dictionary.java: idem
2905 * java/util/HashSet.java: idem
2907 * java/util/EventObject.java: reindent
2908 * java/util/Properties.java: idem
2909 * java/util/SortedMap.java: idem
2911 * java/util/Enumeration.java: Merge with Classpath
2912 * java/util/EventListener.java: idem
2913 * java/util/Observable.java: idem
2914 * java/util/Observer.java: idem
2915 * java/util/Stack.java: idem
2917 2001-03-17 Tom Tromey <tromey@redhat.com>
2919 * java/lang/natString.cc (rehash): Don't bother with memset;
2920 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2922 (UNMASK_PTR): New macro.
2923 (intern): Unmask pointer before returning it. Register finalizer
2925 (unintern): Handle case where
2926 (MASK_PTR): New macro.
2927 (PTR_MAKSED): Likewise.
2928 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2930 2001-03-01 Andrew Haley <aph@redhat.com>
2932 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2933 stackTrace buffer to a correctly aligned pointer array.
2935 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2937 * java/lang/Runtime.java (_exit): Declare new package-private native.
2938 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2939 without a security manager check.
2940 (exit): Call _exit after security check.
2941 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2943 * java/lang/System.java (setSecurityManager): If a security manager
2944 is already in place, call checkPermission.
2945 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2946 throws an exception, try to deal with it gracefully.
2947 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2948 Only try to print the subordinate stack trace if "exception" is set.
2949 Print our class name first.
2951 2001-03-08 Tom Tromey <tromey@redhat.com>
2953 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2954 info for array classes.
2955 Fixes PR libgcj/1971.
2957 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2959 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2962 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2964 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2965 instead of the new JDK1.2 API. This is simpler and makes
2966 back-porting the classes to JDK1.1 trivial.
2967 (readObject): likewise.
2969 2001-03-01 Per Bothner <per@bothner.com>
2971 Changes merged from Kawa's gnu.math.
2972 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2973 (rshift(int[],int[],int,int): Removed - not needed.
2974 (gcd): Use rshift0 rather than rshift.
2975 * java/math/BigInteger.java (setShiftRight): Likewise.
2976 (divide): Simplify by using rshift0.
2977 (divide): Zero-extend results if high-order bit set.
2979 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2981 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2984 2001-02-23 Per Bothner <per@bothner.com>
2986 Change to sometimes include class name in ClassFormatError message.
2987 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2988 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2989 boolean instead of throwing ClassFormatError on failure.
2990 (throw_class_format_error): Change static function to method.
2991 (_Jv_ClassReader): New inline methods verify_identifier,
2992 two overloads of verify_classname, verify_field_signature, and
2993 verify_method_signature
2994 * include/java-interp.h: Update declarations to return bool.
2995 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2996 ClassFormatError since _Jv_VerifyClassName now returns bool.
2998 2001-02-23 Per Bothner <per@bothner.com>
3000 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
3001 c++filt to select java-style output.
3003 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
3005 Fix for PR java/2040:
3006 * java/util/HashMap.java (HashMap): Don't throw exception for
3007 loadFactor > 1. Add exception messages.
3008 * java/util/Hashtable.java (Hashtable): Likewise.
3010 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
3012 Disable libgcjx by default.
3013 * configure.in: Add support for --enable-java-awt configure option.
3014 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
3015 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
3016 * Makefile.in: Rebuilt.
3017 * configure: Rebuilt.
3019 2001-02-20 Tom Tromey <tromey@redhat.com>
3021 * java/io/PipedWriter.java (flush): Throw exception if stream
3023 * java/io/OutputStreamWriter.java (write): Throw exception if
3025 (writeChars): Don't throw exception if stream closed.
3026 * java/io/CharArrayWriter.java (closed): New field.
3028 (flush): Throw exception if stream closed.
3029 (reset): Synchronize on correct lock. Allow stream to be
3031 (toCharArray, toString, writeTo): Synchronize.
3032 (write): Throwe exception if stream closed.
3033 * java/io/BufferedWriter.java (close): Clear `buffer'.
3034 (flush): Throw IOException if stream is closed.
3037 2001-02-16 Tom Tromey <tromey@cygnus.com>
3039 * java/lang/ThreadGroup.java (activeCount): Only include threads
3041 (enumerate): Likewise.
3043 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
3045 * java/lang/Integer.java (getInteger): Return default argument if
3046 property is not set. Don't call decode with null argument.
3047 * java/lang/Long.java (getLong): Likewise.
3049 * java/io/CharArrayReader.java (CharArrayReader): Throw
3050 IllegalArgumentException if constructor arguments are illegal.
3051 (ready): Return false if no more characters can be read.
3052 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
3054 2001-02-17 Mark Wielaard <mark@klomp.org>
3056 * java/util/TimerTask.java: New version from Classpath.
3058 2001-02-17 Mark Wielaard <mark@klomp.org>
3060 Remerge with Classpath
3061 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
3062 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
3063 (readByte): Use convertToByte().
3064 (readChar): Use convertToChar().
3065 (readInt): Use convertToInt().
3066 (readLong): Use convertToLong().
3067 (readShort): Use convertToShort().
3068 (readUnsignedByte): Use convertToUnsignedByte().
3069 (readUnsignedShort): Use convertToUnsignedShort().
3070 (readUTF): Use convertToUTF().
3072 (convertToBoolean): Resurrected.
3073 (convertToByte): Ditto.
3074 (convertToChar): Ditto.
3075 (convertToInt): Ditto.
3076 (convertToLong): Ditto.
3077 (convertToShort): Ditto.
3078 (convertToUnsignedByte): Ditto.
3079 (convertToUnsignedShort): Ditto.
3080 (convertToUTF): Ditto.
3082 2001-02-17 Mark Wielaard <mark@klomp.org>
3086 2001-02-17 Mark Wielaard <mark@klomp.org>
3088 * java/io/DataInputStream.java: update copyright notice
3089 * java/io/PrintWriter.java: idem
3090 * java/io/Reader.java: idem
3091 * java/io/StreamTokenizer.java: idem
3092 * java/io/StringReader.java: idem
3093 * java/lang/reflect/ReflectPermission.java: idem
3095 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
3097 * java/util/TreeSet.java (clone): Made subclass safe, use
3098 super.clone(), not new.
3099 * java/util/TreeMap.java (clone): Likewise.
3101 * java/util/TreeMap.java (nil): Made non-final.
3102 (clone): Create new nil node for copy.
3104 * java/util/HashSet.java (clone): Made subclass safe, use
3105 super.clone(), not new.
3107 2001-02-14 Andrew Haley <aph@redhat.com>
3109 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
3112 2001-02-15 Anthony Green <green@redhat.com>
3114 * defineclass.cc: Don't include alloca.h.
3115 (prepare_pool_entry): Convert alloca to __builtin_alloca.
3116 * interpret.cc (run_normal): Ditto.
3118 * java/lang/natDouble.cc (parseDouble): Ditto.
3120 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
3122 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
3124 * java/util/Collections.java (ReverseComparator): New static class.
3125 (reverseOrder): Return static instance of ReverseComparator.
3127 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
3128 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
3129 Rectangle.clone(), not Object.clone().
3131 * java/util/HashSet.java (clone): Remove try/catch.
3133 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
3134 * java/util/Collection.java: Likewise.
3135 * java/util/Comparator.java: Likewise.
3136 * java/util/Dictionary.java: Likewise.
3137 * java/util/Iterator.java: Likewise.
3138 * java/util/ListIterator.java: Likewise.
3139 * java/util/Map.java: Likewise.
3140 * java/util/Set.java: Likewise.
3142 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
3144 * java/util/TreeMap.java: New file.
3145 * java/util/TreeSet.java: New file.
3146 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
3147 * Makefile.in: Rebuilt.
3148 * java/util/HashSet.java (clone): Use constructor instead of calling
3150 * java/util/SortedSet.java: Sync with classpath.
3151 * java/util/HashMap.java (hash): Use if statement instead of ternary,
3154 * java/lang/natClass.cc (getSignature): Don't try to dereference
3155 param_types if it is null. Instead, take this to mean "no parameters".
3156 * java/lang/TreeMap.java (TreeIterator.next): Throw
3157 NoSuchElementException in preference to ConcurrentModificationException.
3158 (TreeIterator.remove): Throw IllegalStateException in preference to
3159 ConcurrentModificationException.
3160 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
3161 throw a NoSuchElementException.
3162 (SubMap.lastKey): Likewise.
3164 2001-02-13 Tom Tromey <tromey@redhat.com>
3166 * java/io/PipedReader.java (ready): Throw IOException if pipe
3168 * java/io/FilterReader.java (close): Don't clear `in'.
3169 * java/io/CharArrayReader.java (mark): Throw IOException if stream
3171 (read, ready, reset, skip): Added exception message.
3172 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
3173 Perform checkStatus check inside synchronized block.
3175 2001-02-13 Tom Tromey <tromey@redhat.com>
3177 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
3179 2001-02-13 Tom Tromey <tromey@redhat.com>
3181 Fix for PR libgcj/1351:
3182 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
3184 Include Thread.h and InterruptedIOException.h.
3186 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
3188 * java/io/BlockDataException.java: Removed.
3189 * java/io/ObjectInputStream.java (readObject): Throw
3190 StreamCorruptedException, not BlockDataException.
3191 * Makefile.am: Remove BlockDataException.
3192 * Makefile.in: Rebuild.
3194 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
3195 Tom Tromey <tromey@redhat.com>
3197 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
3200 2001-02-09 Tom Tromey <tromey@redhat.com>
3202 * java/util/Timer.java: New version from Classpath.
3204 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
3206 * java/lang/Double.java (doubleToRawLongBits): Now native.
3207 * java/lang/Float.java (floatToRawIntBits): Likewise.
3208 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
3209 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
3211 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
3213 * java/io/File.java (java.net): Imported.
3214 (getAbsoluteFile): Added.
3215 (getCanonicalPath): Likewise.
3218 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
3220 * java/lang/Byte.java: Remove redundant instanceof and null checks.
3221 * java/lang/Integer.java: Likewise.
3222 * java/lang/Long.java: Likewise.
3223 * java/lang/Short.java: Likewise.
3224 * java/lang/Double.java: Likewise.
3225 (doubleToRawLongBits): New method.
3226 * java/lang/Float.java: As above.
3227 (floatToRawIntBits): New method.
3229 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
3230 IOException if stream closed.
3232 2001-02-08 Tom Tromey <tromey@redhat.com>
3234 * java/lang/Float.java (parseFloat): New method.
3236 2001-02-08 Tom Tromey <tromey@redhat.com>
3238 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
3239 * java/io/InputStreamReader.java (ready, read): Throw IOException
3240 if stream has been closed.
3242 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3244 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
3245 Change sources.redhat.com and sourceware.cygnus.com references to
3248 2001-02-07 Tom Tromey <tromey@redhat.com>
3250 Fix for PR libgcj/1906:
3251 * java/text/MessageFormat.java (setLocale): Use named class
3254 (format(Object,StringBuffer,FieldPosition)): Special case if
3255 argument is an Object[].
3257 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
3259 * java/util/Arrays.java: Removed "cmp" methods.
3260 (qsort): Don't use "cmp".
3263 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
3265 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
3266 sort. Fix for PR java/1895.
3268 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
3270 * configure.host: Use sjlj-exceptions for Alpha.
3272 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
3274 * libgcj.spec.in: Don't force static libgcc into the executable.
3275 * configure.in (FORCELIBGCCSPEC): Removed.
3276 * configure: Rebuilt.
3278 2001-01-31 Tom Tromey <tromey@redhat.com>
3280 * Makefile.in: Rebuilt.
3281 * Makefile.am (LTCXXCOMPILE): New macro.
3283 2001-01-26 Andrew Haley <aph@redhat.com>
3285 (INIT_FPE): Use a direct system call to set the handler.
3287 2001-01-27 Richard Henderson <rth@redhat.com>
3289 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
3291 2001-01-27 Tom Tromey <tromey@redhat.com>
3293 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
3294 native interface structure.
3296 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
3298 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
3300 (read (byte[], int, int)): Only call readNextBlock() if the block
3301 buffer would actually be overrun. Increment blockDataPosition.
3302 (callReadMethod): Propagate exceptions from invocation target.
3303 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
3304 exceptions from invocation target.
3306 2001-01-26 Tom Tromey <tromey@redhat.com>
3308 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
3309 to internal representation.
3310 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
3311 _Jv_FindClassFromSignature.
3313 2001-01-26 Warren Levy <warrenl@redhat.com>
3315 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
3316 and timezone if they are available on the system.
3318 2001-01-24 Tom Tromey <tromey@redhat.com>
3320 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
3322 2001-01-24 Tom Tromey <tromey@redhat.com>
3324 * Makefile.in: Rebuilt.
3325 * Makefile.am (c_source_files): Added sf_fabs.c.
3326 * java/lang/sf_fabs.c: New file.
3328 2001-01-19 Warren Levy <warrenl@redhat.com>
3330 * java/text/SimpleDateFormat.java (format): Compute hour for cases
3331 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
3332 correctly. Adjust properly from 0-23 clock hour.
3334 2001-01-17 Mark Wielaard <mark@klomp.org>
3336 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
3338 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
3340 * java/lang/Class.h (isInterface): Move implementation from
3341 natClass.cc. Declare inline.
3342 (Class): Add default constructor.
3343 * java/lang/Object.h: Update comments.
3344 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
3345 initialize superclass, saving a call if super is already initialized.
3347 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
3349 * prims.cc (init_prim_class): Deleted.
3350 (DECLARE_PRIM_TYPE): Rewritten.
3351 * java/lang/Class.h (stdio.h): Include removed.
3352 (stddef.h): Included.
3353 (java/lang/reflect/Modifier.h): Likewise.
3354 (Class): Contructor now takes arguments, initializes fields.
3355 (initializePrim): Prototype deleted.
3356 * java/lang/natClass.cc (initializePrim): Deleted.
3358 2001-01-16 Warren Levy <warrenl@redhat.com>
3360 * java/math/BigInteger.java: Update Copyright year.
3362 2001-01-16 Hans Boehm <hans_boehm@hp.com>
3364 * java/math/BigInteger.java (setShiftRight): Only do negative shift
3367 2001-01-14 Mark Wielaard <mark@klomp.org>
3368 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
3369 (decode): Merge comments with Classpath, don't throw Exception
3371 2001-01-12 Tom Tromey <tromey@redhat.com>
3373 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
3377 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
3378 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
3379 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
3380 * gnu/awt/gtk/GtkLabelPeer.java: New file.
3381 * gnu/awt/gtk/GtkButtonPeer.java: New file.
3383 * java/lang/natSystem.cc: Include locale.h if it exists.
3384 * configure: Rebuilt.
3385 * configure.in: Check for locale.h.
3387 2001-01-11 Tom Tromey <tromey@redhat.com>
3389 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
3390 (Cursor(int), getPredefinedCursor): Throw exception if argument
3393 2001-01-03 Tom Tromey <tromey@redhat.com>
3395 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
3396 (getLocationOnScreen): Wrote.
3398 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
3400 * Makefile.am: Re-enable dependencies.
3401 * Makefile.in: Rebuilt.
3403 2001-01-10 Warren Levy <warrenl@redhat.com>
3405 * java/math/BigDecimal.java (divide): Fixed comment.
3407 2001-01-10 Warren Levy <warrenl@redhat.com>
3409 Fix for PR libgcj/1596:
3410 * java/math/BigDecimal.java (divide): Check newScale for validity.
3411 Ensure that BigInteger.pow() is called with a non-negative value.
3412 (setScale (int)): New public method.
3413 (setScale (int,int)): New public method.
3415 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
3417 Fix for PR libgcj/1338:
3418 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
3419 commentChar. Fixed typos in comments.
3421 2001-01-08 Warren Levy <warrenl@redhat.com>
3423 Fix for PR libgcj/1411:
3424 * Makefile.am: Removed java/util/natTimeZone.cc.
3425 * Makefile.in: Rebuilt.
3426 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
3427 missing localized timezone names.
3428 * java/lang/System.java (getDefaultTimeZoneId): New private method.
3429 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
3430 (init_properties): Set user.timezone property.
3431 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3432 default timezone names; removed non-standard ones. Use standard
3434 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
3436 * java/util/TimeZone.java: Add standard ID names per JCL; removed
3438 (getDefaultTimeZoneId): Removed.
3440 * java/util/natTimeZone.cc: Removed.
3442 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3444 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
3445 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
3446 (_Jv_GetArrayClass): New inline function.
3447 (arrayclass): New field.
3448 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
3449 _Jv_GetArrayElementFromElementType.
3450 (_Jv_NewPrimArray): Ditto.
3451 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
3452 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
3453 Set Modifier::ABSTRACT.
3454 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
3455 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
3456 Now synchronized. Array classes are now referenced from
3457 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
3458 Set array classes' accessibility flags correctly. Optimize so that
3459 all array classes share the same IDT.
3460 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
3461 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
3462 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
3463 in superclasses from overwriting classes own fields.
3464 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
3465 Modifier::isAbstract().
3466 (null_idt): New static field.
3467 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
3469 (_Jv_IndexOf): Made inline.
3470 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
3472 2001-01-08 Tom Tromey <tromey@redhat.com>
3474 Fix for PR java/1586:
3475 * Makefile.in: Rebuilt.
3476 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
3478 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3480 * Makefile.am: Use the new "-M -MF" option for generating dependencies
3481 from the c++ compiler.
3482 * Makefile.in: Rebuilt.
3484 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
3486 All files with updated copyright.
3487 * prims.cc (class _Jv_PrimClass): Removed.
3488 (init_prim_class): New function.
3489 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
3490 `_Jv_PrimClass' in primitive type declarations. Assign to the
3491 value returned by `init_prim_class.'
3492 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
3493 primitive type declarations.
3494 (JvPrimClass): Cast to `jclass' removed.
3495 * java/lang/Class.h (Class): New constructor.
3496 (Class): New copy constructor.
3497 (initializePrim): New prototype.
3498 (_Jv_PrimClass): Field removed.
3499 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
3500 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
3501 (class java::lang::Object): `finalize' moved up front.
3502 * java/lang/natClass.cc
3503 (isAssignableFrom): Turned outline.
3504 (isInstance): Likewise.
3505 (isInterface): Likewise, fixed indentation.
3506 (initializePrim): New function.
3508 2001-01-07 Anthony Green <green@redhat.com>
3510 * Makefile.am (texinfo): Add texinfo target for generating texinfo
3512 * Makefile.in: Rebuilt.
3514 * scripts/TexinfoDoclet.java: New file.
3516 * doc/java-applet.texi, doc/java-lang-reflect.texi,
3517 doc/java-awt-color.texi, doc/java-lang.texi,
3518 doc/java-awt-datatransfer.texi, doc/java-math.texi,
3519 doc/java-awt-event.texi, doc/java-net.texi,
3520 doc/java-awt-geom.texi, doc/java-security-spec.texi,
3521 doc/java-awt-image.texi, doc/java-security.texi,
3522 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
3523 doc/java-text.texi, doc/java-beans-beancontext.texi,
3524 doc/java-util-jar.texi, doc/java-beans.texi,
3525 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
3526 doc/java-lang-ref.texi: New files.
3528 2001-01-07 Anthony Green <green@redhat.com>
3530 * java/net/URLConnection.java (setDoOutput): URLConnection's may
3531 be used for both input and output, so don't clear doInput.
3533 * java/lang/StringBuffer.java: Fix comments.
3535 2001-01-06 Anthony Green <green@redhat.com>
3537 * java/beans/PropertyDescriptor.java: Fix comment.
3538 * java/io/PushbackReader.java: Fix comment.
3539 * java/io/ObjectStreamClass.java: Fix comment.
3540 * java/io/DataInputStream.java: Fix comment.
3541 * java/io/PipedInputStream.java: Fix comments.
3542 * java/io/PipedReader.java: Fix comments.
3543 * java/sql/DatabaseMetaData.java: Fix comments.
3545 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
3547 * java/io/PipedReader: Synchronize on "lock" instead of this.
3549 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
3551 * java/lang/Thread.java: Update comment.
3553 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
3554 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
3555 * java/io/PipedReader: New implementation based on new
3557 * java/io/PipedWriter: Updated to match new PipedReader.
3559 2001-01-03 Tom Tromey <tromey@redhat.com>
3561 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
3562 (getViewportSize): Insets include scrollbar size.
3563 (doLayout): Finished.
3564 (getScrollPosition): Wrote.
3565 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
3567 2001-01-02 Tom Tromey <tromey@redhat.com>
3569 * java/awt/ScrollPane.java: Wrote.
3570 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
3573 * java/awt/Panel.java (Panel()): Fixed.
3575 * java/awt/Component.java (isShowing): Return false if no peer
3576 exists, and true if component is visible and no parent exists.
3577 (getLocationOnScreen): Wrote.
3578 (getPreferredSize): Removed FIXME comment.
3579 (getMinimumSize): Likewise.
3580 (getAlignmentX, getAlignmentY): Wrote.
3582 (requestFocus): Wrote.
3583 (transferFocus): Wrote.
3584 (findNextFocusComponent): New method.
3585 (hasFocus()): Wrote.
3586 (checkImage): Wrote.
3587 (enableEvents): Call setEventMask on the peer.
3589 * java/awt/Container.java (list): Use super.list() to print self.
3590 (findNextFocusComponent): New method.
3591 (setLayout): Call invalidate.
3592 (findComponentAt): Wrote.
3594 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
3596 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
3597 the correct versions of various linuxthreads functions get linked.
3598 * Makefile.in: Rebuilt.
3599 * java/lang/natThread.cc (finalize_native): New static function. Call
3600 _Jv_ThreadDestroyData.
3601 (initialize_native): Register finalizer for "data".
3602 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
3603 (_Jv_ThreadDestroyData): New prototype.
3604 * include/win32-threads.h: Ditto.
3605 * include/no-threads.h: Ditto.
3606 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3607 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
3608 move mutex and condition variable destroy code from:
3609 (really_start): ...here.
3610 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
3611 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3612 (_Jv_ThreadDestroyData): Implemented.
3613 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
3614 (_Jv_AllocArray): Ditto.
3616 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
3618 * java/sql/DriverManager.java (getConnection): Don't set user/password
3621 2000-12-27 Warren Levy <warrenl@redhat.com>
3623 Fix for PR libgcj/1358:
3624 * java/lang/System.java: Update Copyright date properly.
3625 * java/util/Calendar.java: Fix typo in comment.
3626 (set): Set 24-hour clock hour instead of 12-hour clock hour.
3627 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
3628 initialize times. Spec says to set H:M:S values to zero only if
3630 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
3631 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
3632 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
3633 timezones and GMT offsets, being careful to account for units of
3634 milliseconds vs. seconds.
3636 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
3638 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3639 not be assigned to Object.
3641 Fix for PR libgcj/1516:
3642 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3644 (can_widen): Declared inline. Remove redundant checks for void
3645 arguments and char->short conversion. Add special case for boolean
3647 (ffi_type): Declared inline.
3648 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3650 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
3652 * java/sql/SQLWarning.java: Fixed typo in comment.
3654 2000-12-26 Tom Tromey <tromey@redhat.com>
3656 * java/awt/MenuItem.java (paramString): Now protected.
3658 * java/awt/MenuShortcut.java: Implements Serializable.
3660 * java/awt/MenuBar.java: Rewrote from scratch.
3662 * java/awt/MenuComponent.java (removeNotify): Wrote.
3663 Implements Serializable.
3665 * java/awt/GridBagConstraints.java (GridBagConstraints): New
3668 * java/awt/CheckboxMenuItem.java: Wrote.
3670 2000-12-25 Tom Tromey <tromey@redhat.com>
3672 * java/awt/MenuContainer.java: Fixed typo.
3674 * Makefile.in: Rebuilt.
3675 * Makefile.am (awt_java_source_files): Added SystemColor.java.
3676 * java/awt/SystemColor.java: New file.
3678 * java/awt/Color.java (rgba): Now package-private.
3680 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3682 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3685 * java/awt/MenuItem.java (addNotify): New method.
3686 (MenuItem(String,MenuShortcut)): New constructor.
3687 (setLabel): Notify peer of change.
3688 (setEnabled): Likewise.
3690 * java/awt/GridLayout.java (toString): New method.
3692 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3693 (FlowLayout): Check for LEADING and TRAILING.
3694 (setAlignment): Likewise.
3695 (layoutContainer): Handle component orientation.
3697 * java/awt/Component.java (orientatin): New field.
3698 (setComponentOrientation): Wrote.
3699 (getComponentOrientation): Wrote.
3701 * java/awt/Event.java (Event): Implements Serializable.
3702 (consumed): New field for serialization.
3703 * java/awt/Dimension.java (Dimension): Implements Serializable.
3704 * java/awt/Cursor.java (Cursor): Implements Serializable.
3705 * java/awt/Container.java (Container): No longer abstract.
3707 * java/awt/Choice.java: Wrote.
3708 * java/awt/Checkbox.java: Wrote.
3709 * java/awt/ItemSelectable.java: Documented.
3710 * java/awt/CheckboxGroup.java: Wrote.
3712 * java/awt/CardLayout.java (layoutContainer): Directly use fields
3714 (getSize): Likewise.
3716 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
3718 * java/io/FileDescriptor.java: Initialize fd to -1.
3719 Remove default constructor.
3721 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
3723 * java/lang/mprec.h: Change C9X reference to refer to C99.
3725 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
3727 * java/lang/Throwable.java (trace_enabled): New static field.
3728 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3729 trace_enabled not set.
3730 * prims.cc (main_init): Turn off trace_enabled while creating
3731 default exception objects.
3733 2000-12-21 Tom Tromey <tromey@redhat.com>
3735 * java/beans/PropertyChangeListener.java: Extends EventListener.
3736 * java/beans/VetoableChangeListener.java: Extends EventListener.
3738 * java/util/zip/Deflater.java (update, init): Now private.
3740 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
3742 * java/util/BasicMapEntry.java: Re-added.
3743 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3744 (putAll): Test for BasicMapEntry.
3745 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3746 (putAll): Test for BasicMapEntry.
3747 Change references from `HashMap.Entry' to `Entry' in various places.
3748 * Makefile.am: Add BasicMapEntry.java.
3749 * Makefile.in: Rebuilt.
3751 2000-12-18 Warren Levy <warrenl@redhat.com>
3753 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3754 need to set timezone to a valid non-null value. Partial fix for
3757 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3759 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3761 * java/awt/Button.java (addNotify): Likewise.
3762 * java/awt/Label.java (addNotify): Likewise.
3763 * java/awt/Panel.java (addNotify): Likewise.
3764 * java/awt/Scrollbar.java (addNotify): Likewise.
3765 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3766 Remove redundant null checks.
3768 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3770 * COPYING: Update to current
3771 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3772 to 19yy as example year in copyright notice).
3774 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3776 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3777 end-of-stream if avail_in is 0.
3779 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3781 * java/util/ArrayList.java (data): Declare transient.
3782 (serialPersistantFields): Removed.
3783 (readObject): Use defaultReadObject(), not readFields().
3784 (writeObject): Use defaultWriteObject(), not writeFields().
3786 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3788 * java/util/Hashtable.java (put): Remove `last' variable.
3789 Link new entry to head of list.
3790 * java/util/HashMap.java (put): Ditto.
3792 2000-12-15 Tom Tromey <tromey@redhat.com>
3794 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3795 loader to Class.forName.
3797 2000-12-14 Tom Tromey <tromey@redhat.com>
3799 * java/util/ResourceBundle.java
3800 (getBundle(String,Locale,ClassLoader)): New method.
3801 (trySomeGetBundle): Added `loader' argument.
3802 (partialGetBundle): Likewise.
3804 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3805 maximumFractionDigits, maximumIntegerDigits,
3806 minimumFractionDigits, minimumIntegerDigits): Now
3809 * java/lang/Thread.java (checkAccess): Now final.
3811 * java/lang/RuntimePermission.java: Class now final.
3813 * java/io/StringWriter.java (StringWriter(int)): Now public.
3815 * java/io/SerializablePermission.java (legal_names): Now private.
3817 * java/lang/Character.java: Updated UnicodeBlock constants.
3818 * scripts/blocks.pl: Special case private use and surrogate
3821 2000-12-12 Tom Tromey <tromey@redhat.com>
3823 * Makefile.in: Rebuilt.
3824 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3826 (GCJCOMPILE): Use it.
3829 2000-12-11 Tom Tromey <tromey@redhat.com>
3831 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3832 New static final fields.
3834 * scripts/classes.pl (scan): Skip lines with leading `*'.
3835 Fix for PR libgcj/378.
3837 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3839 * configure.in: Remove check for -fuse-divide-subroutine.
3840 * configure: Rebuilt.
3842 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3844 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3846 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3848 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3849 Remove BasicMapEntry.java and Bucket.java.
3850 * Makefile.in: Rebuilt.
3851 * java/util/HashMap.java: Rewritten.
3852 * java/util/HashSet.java: Imported from classpath.
3853 * java/util/WeakHashMap.java: Imported from classpath.
3854 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3855 * java/util/Bucket.java: Deleted.
3856 * java/util/BasicMapEntry.java: Deleted.
3857 * java/util/Collections.java (search): Use a for-loop, not iterator
3859 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3860 of elements in source.
3861 (max): Use a for-loop.
3863 (reverse): Keep track of positions instead of using Iterator's
3864 nextIndex() and previousIndex().
3865 (shuffle(List)): Initialize defaultRandom if required using
3866 double-check thread safety idiom. Call two-argument shuffle method
3867 using defaultRandom.
3868 (defaultRandom): New field.
3869 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3870 using previousIndex() and nextIndex().
3871 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3872 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3873 * java/util/AbstractMap.java (toString): Use StringBuffer.
3874 * java/lang/ref/PhantomReference.java: Imported from classpath.
3875 * java/lang/ref/SoftReference.java: Ditto.
3876 * java/lang/ref/Reference.java: Ditto.
3877 * java/lang/ref/WeakReference.java: Ditto.
3878 * java/lang/ref/ReferenceQueue.java: Ditto.
3880 2000-12-10 Richard Henderson <rth@redhat.com>
3882 * configure.host: Recognize alpha*-*, not alphaev6-*.
3884 2000-12-09 Anthony Green <green@redhat.com>
3886 * configure.host: Enable interpreter for Alpha.
3888 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3890 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3891 (ZIP): Points at fastjar instead of zip.
3892 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3893 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3894 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3895 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3896 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3897 ($(x_java_source_files:.java=.class):): Likewise.
3898 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3900 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3901 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3902 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3903 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3904 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3905 gnu/gcj/runtime/VMClassLoader.h:,
3906 java/io/ObjectInputStream$$GetField.h:,
3907 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3908 (Makefile.in): Rebuilt.
3910 2000-12-08 Tom Tromey <tromey@redhat.com>
3913 * configure: Rebuilt.
3914 * configure.in: Use echo, not `:', to create .d files.
3916 2000-12-08 Warren Levy <warrenl@redhat.com>
3918 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3919 NullPointerException so proper check of offset can be done.
3921 2000-12-08 Warren Levy <warrenl@redhat.com>
3923 * java/io/FileInputStream.java (close): Check if the fd is valid.
3924 * java/io/RandomAccessFile.java (close): Ditto.
3925 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3926 * java/net/PlainSocketImpl.java (close): Ditto.
3928 2000-12-06 Tom Tromey <tromey@redhat.com>
3930 * java/awt/GridBagConstraints.java: Filled in values for static
3933 * java/util/BitSet.java: Updated copyright notice.
3935 * Makefile.in: Rebuilt.
3936 * Makefile.am (awt_java_source_files): Added new file.
3937 * java/awt/GridBagConstraints.java: New file.
3939 2000-12-05 Tom Tromey <tromey@redhat.com>
3941 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3942 Now package-private, not protected.
3943 * java/text/DateFormatSymbols.java (equals): Now private.
3944 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3945 * java/util/BitSet.java: Class no longer final.
3947 2000-12-04 Warren Levy <warrenl@redhat.com>
3949 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3950 out code dependent on compiler and library changes.
3952 2000-12-04 Warren Levy <warrenl@redhat.com>
3954 * java/io/FilePermission.java: Made class final per spec.
3955 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3956 method name to match spec (fixed typo).
3957 * java/util/LinkedList.java: Implements List.
3959 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3961 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3962 Edgar Villanueva <edgarvil@home.com>.
3964 2000-12-03 Tom Tromey <tromey@redhat.com>
3966 * java/awt/geom/Point2D.java: Added protected constructor.
3967 (equals): New method.
3968 (Float.setLocation(float,float)): New method.
3969 * java/awt/geom/Dimension2D.java: Added protected constructor.
3970 * java/awt/geom/AffineTransform.java: Made all constants public.
3971 (concatenate): Fixed typo in name.
3972 * java/awt/event/WindowAdapter.java: Class now abstract.
3973 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3974 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3977 * java/awt/AWTError.java: Extend Error, not
3978 IllegalStateException.
3980 * Makefile.in: Rebuilt.
3981 * Makefile.am (awt_java_source_files): Added new file.
3982 * java/awt/geom/RoundRectangle2D.java: New file.
3984 * Makefile.in: Rebuilt.
3985 * Makefile.am (awt_java_source_files): Added new file.
3986 * java/awt/FlowLayout.java: New file.
3988 * Makefile.in: Rebuilt.
3989 * Makefile.am (awt_java_source_files): Added new file.
3990 * java/awt/GridLayout.java: New file.
3992 2000-12-02 Tom Tromey <tromey@redhat.com>
3994 * Makefile.in: Rebuilt.
3995 * Makefile.am (awt_java_source_files): Added new files.
3996 * java/awt/CardLayout.java: New file.
3997 * java/awt/AWTPermission.java: New file.
3999 2000-12-01 Tom Tromey <tromey@redhat.com>
4001 * java/util/Vector.java (insertElementAt): Unconditionally
4002 increment elementCount.
4003 (removeRange): Clear unused slots in vector.
4005 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
4007 * java/lang/natMath.cc: Declare fabsf() function.
4008 * java/lang/mprec.h: Don't include math.h.
4009 * java/lang/dtoa.c: Include string.h.
4010 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
4013 From Adam Welc <welc@cs.purdue.edu>:
4014 * java/util/LinkedList.java (removeFirst): Update `first' field.
4015 Handle the last == first case.
4016 (removeLast): Update `last' field. Handle the last == first case.
4018 2000-12-01 Warren Levy <warrenl@cygnus.com>
4020 * Makefile.am: Added entries for new java.sql modules.
4021 * Makefile.in: Rebuilt.
4023 2000-12-01 Warren Levy <warrenl@cygnus.com>
4025 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
4026 that aren't quite 1.2 compatible yet.
4028 2000-11-30 Warren Levy <warrenl@cygnus.com>
4030 * java/sql/Array.java: New file from classpath.
4031 * java/sql/BatchUpdateException.java: Ditto.
4032 * java/sql/Blob.java: Ditto.
4033 * java/sql/Clob.java: Ditto.
4034 * java/sql/Ref.java: Ditto.
4035 * java/sql/SQLData.java: Ditto.
4036 * java/sql/SQLInput.java: Ditto.
4037 * java/sql/SQLOutput.java: Ditto.
4038 * java/sql/Struct.java: Ditto.
4039 * java/sql/CallableStatement.java: Merged file from claspath.
4040 * java/sql/Connection.java: Ditto.
4041 * java/sql/DataTruncation.java: Ditto.
4042 * java/sql/DatabaseMetaData.java: Ditto.
4043 * java/sql/DriverManager.java: Ditto.
4044 * java/sql/PreparedStatement.java: Ditto.
4045 * java/sql/ResultSet.java: Ditto.
4046 * java/sql/ResultSetMetaData.java: Ditto.
4047 * java/sql/SQLException.java: Ditto.
4048 * java/sql/SQLWarning.java: Ditto.
4049 * java/sql/Statement.java: Ditto.
4050 * java/sql/Types.java: Ditto.
4052 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
4054 * java/lang/natSystem.cc (init_properties): Set user.language and
4056 * configure.in: Check for setlocale.
4057 * configure: Rebuilt.
4058 * include/config.h.in: Rebuilt.
4060 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
4061 the infate() call didn't deliver any output. Throw a ZipException if
4062 the needsDictionary() call returns true.
4063 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
4064 * java/io/InputStreamReader: Use the default buffer size for the
4065 contained BufferedInputStream.
4067 2000-11-28 Warren Levy <warrenl@cygnus.com>
4069 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
4070 more time zone entries.
4071 * java/text/SimpleDateFormat.java (format): Added case for
4074 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
4076 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
4077 directly rather than read() in all cases. Make primitive read
4078 implementations more efficient, as defined in JDK online docs.
4079 (skipBytes): Behave like the JDK's implementation.
4080 * java/io/BufferedReader.java: Merge classpath docs. Check for a
4081 closed stream with checkStatus() whenever an IOException can be
4083 (checkStatus): New private method.
4085 2000-11-27 Warren Levy <warrenl@cygnus.com>
4087 * Makefile.am: Added natTimeZone.cc.
4088 * Makefile.in: Rebuilt.
4089 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
4090 * java/text/DateFormatSymbols.java (ampms): Made package private.
4091 (eras): Made package private.
4092 (months): Made package private.
4093 (shortMonths): Made package private.
4094 (shortWeekdays): Made package private.
4095 (weekdays): Made package private.
4096 (formatPrefixes): New private field.
4097 (localPatternCharsDefault): Made private.
4098 (dateFormats): New package private field.
4099 (timeFormats): New package private field.
4100 (formatsForKey): New private method.
4101 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
4102 (DateFormatSymbols(DateFormatSymbols)): Ditto.
4103 * java/text/SimpleDateFormat.java: Merged with Classpath.
4104 * java/util/TimeZone.java: Merged with Classpath.
4105 * java/util/natTimeZone.cc: New file.
4107 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
4109 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
4110 (addElement): Don't increment elementCount twice. Doh.
4111 * java/util/ArrayList.java (add): Only call ensureCapacity if the
4112 array needs to be expanded.
4114 * java/util/Collections.java (UnmodifiableCollection): Implement
4116 (UnmodifiableList): Throw UnsupportedOperationException from
4117 modification methods. Set `l' from the one-parameter constructor.
4118 (UnmodifiableMap): Implement toString().
4119 (SynchronizedCollection): Ditto.
4120 (SynchronizedList): Set `l' from the one-parameter constructor.
4121 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
4122 (SynchronizedMap): Implement toString().
4124 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
4126 * javax/naming/NameParser.java,
4127 javax/naming/directory/AttributeInUseException.java,
4128 javax/naming/directory/AttributeModificationException.java,
4129 javax/naming/directory/InvalidAttributeIdentifierException.java,
4130 javax/naming/directory/InvalidAttributesException.java,
4131 javax/naming/directory/InvalidAttributeValueException.java,
4132 javax/naming/directory/InvalidSearchControlsException.java,
4133 javax/naming/directory/InvalidSearchFilterException.java,
4134 javax/naming/directory/NoSuchAttributeException.java,
4135 javax/naming/directory/SchemaViolationException.java: New files.
4137 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
4139 * javax/naming/InitialContext.java (rebind): Implement.
4140 (unbind): Implement.
4141 (rename): Implement.
4143 (listBindings): Implement.
4144 (destroySubcontext): Implement.
4145 (createSubcontext): Implement.
4146 (lookupLink): Implement.
4147 (getNameParser): Implement.
4148 (composeName): Implement.
4149 (addToEnvironment): Implement.
4151 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
4153 * javax/naming/AuthenticationException.java,
4154 javax/naming/AuthenticationNotSupportedException.java,
4155 javax/naming/CannotProceedException.java,
4156 javax/naming/CommunicationException.java,
4157 javax/naming/ConfigurationException.java,
4158 javax/naming/ContextNotEmptyException.java,
4159 javax/naming/InsufficientResourcesException.java,
4160 javax/naming/InterruptedNamingException.java,
4161 javax/naming/InvalidNameException.java,
4162 javax/naming/LimitExceededException.java,
4163 javax/naming/LinkException.java,
4164 javax/naming/LinkLoopException.java,
4165 javax/naming/MalformedLinkException.java,
4166 javax/naming/NameAlreadyBoundException.java,
4167 javax/naming/NameNotFoundException.java,
4168 javax/naming/NamingSecurityException.java,
4169 javax/naming/NoPermissionException.java,
4170 javax/naming/NotContextException.java,
4171 javax/naming/PartialResultException.java,
4172 javax/naming/ReferralException.java,
4173 javax/naming/ServiceUnavailableException.java,
4174 javax/naming/SizeLimitExceededException.java,
4175 javax/naming/TimeLimitExceededException.java: New files.
4177 * javax/naming/Name.java (clone): New method.
4178 (compareTo): New method.
4179 (isEmpty): New method.
4180 (getAll): New method.
4181 (getPrefix): New method.
4182 (getSuffix): New method.
4183 (startsWith): New method.
4184 (endsWith): New method.
4185 (addAll): New method.
4186 (addAll): New method.
4189 (remove): New method.
4191 * javax/naming/Context.java (lookup): New method.
4192 (rebind): New method.
4193 (unbind): New method.
4194 (rename): New method.
4196 (listBindings): New method.
4197 (destroySubcontext): New method.
4198 (createSubcontext): New method.
4199 (lookupLink): New method.
4200 (getNameParser): New method.
4201 (composeName): New method.
4202 (addToEnvironment): New method.
4203 (removeFromEnvironment): New method.
4204 (getEnvironment): New method.
4205 (close): New method.
4206 (getNameInNamespace): New method.
4208 * javax/naming/InitialContext.java (lookup): New method.
4209 (rebind): New method.
4210 (unbind): New method.
4211 (rename): New method.
4213 (listBindings): New method.
4214 (destroySubcontext): New method.
4215 (createSubcontext): New method.
4216 (lookupLink): New method.
4217 (getNameParser): New method.
4218 (composeName): New method.
4219 (addToEnvironment): New method.
4220 (removeFromEnvironment): New method.
4221 (getEnvironment): New method.
4222 (close): New method.
4223 (getNameInNamespace): New method.
4225 2000-11-26 Tom Tromey <tromey@cygnus.com>
4227 * Makefile.in: Rebuilt.
4228 * Makefile.am (core_java_source_files): Added
4229 RuntimePermission.java.
4230 * java/lang/RuntimePermission.java: Imported from Classpath.
4231 * java/lang/Thread.java (getContextClassLoader): Now
4232 synchronized. Added security code.
4233 (setContextClassLoader): Likewise.
4235 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
4236 length field of array.
4237 (_Jv_NewPrimArray): Likewise.
4238 * gcj/array.h (__JArray): `length' field now const. Added
4241 2000-11-26 Anthony Green <green@redhat.com>
4243 * javax/naming/spi/NamingManager.java,
4244 javax/naming/spi/ObjectFactory.java,
4245 javax/naming/spi/InitialContextFactory.java,
4246 javax/naming/spi/InitialContextFactoryBuilder.java,
4247 javax/naming/RefAddr.java, javax/naming/Reference.java,
4248 javax/naming/NamingException.java, javax/naming/Context.java,
4249 javax/naming/Referenceable.java,
4250 javax/naming/directory/InitialDirContext.java,
4251 javax/naming/directory/DirContext.java,
4252 javax/naming/directory/Attributes.java,
4253 javax/naming/directory/Attribute.java,
4254 javax/naming/StringRefAddr.java,
4255 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
4256 javax/naming/InitialContext.java,
4257 javax/naming/NoInitialContextException.java: New files.
4259 2000-11-25 Anthony Green <green@redhat.com>
4261 * prims.cc (_Jv_NewObjectArray): Undo placement change.
4262 (_Jv_NewPrimArray): Likewise.
4263 * gcj/array.h (__JArray): Undo const change. Removed constructor.
4264 (class JArray): Removed constructor.
4266 * java/lang/Thread.java (context_class_loader): New private data.
4267 (getContextClassLoader): New method.
4268 (setContextClassLoader): New method.
4269 (Thread): Initialize context_class_loader.
4271 * java/net/URLClassLoader.java: Import java.util.Enumeration.
4272 (getResource): Rename to findResource.
4273 (findResource): New method. Used to be getResource.
4274 (getResourceAsStream): Deleted.
4275 (jarFileize): Extracted logic from URLClassLoader constructor into
4276 this new private method.
4277 (addURL): New protected method.
4278 (URLClassLoader): Call jarFileize. Use addElement instead of
4280 (findResources): New method.
4282 * java/lang/ClassLoader.java: Import java.util.Enumeration.
4283 (getResource): Implement correct logic.
4284 (findResource): New method.
4285 (getResources): New method.
4286 (findClass): Create a ClassNotFoundException with the name of the
4287 class rather than nothing at all.
4288 (defineClass) Only throw ClassFormatError.
4290 * java/lang/Class.java (forName): New method.
4291 * java/lang/Class.h (forName): New method.
4292 * java/lang/natClass.cc (forName): New method.
4294 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4296 * java/lang/System.java (setProperties): Only call init_properties()
4297 if properties is null.
4298 (getProperties): Ditto.
4299 (getProperty): Ditto.
4300 (setProperty): Call init_properties if properties are null.
4301 (prop_init): Remove field.
4302 * java/lang/natSystem.cc (init_properties): Synchronize the entire
4303 method. Check for null properties after synchronizing instead of
4304 prop_init flag. Set the properties field last for thread safety.
4306 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
4307 test for gcj.dumpobjects property and enable object stream dumping
4309 (dumpElement): No longer native.
4310 (dumpElementln): Ditto.
4311 (setDump): Do not define.
4312 * java/io/natObjectInputStream.cc (dumpElement): Removed.
4313 (dumpElementln): Removed.
4316 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4318 * configure: Rebuilt.
4319 * Makefile.in: Rebuilt.
4320 * Makefile.am (built_java_source_files): Add Configuration.java.
4321 * configure.in: Add Configuration.java to CONFIG_FILES. Set
4322 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
4323 Create `gnu' directory in the build tree.
4324 * gnu/classpath/Configuration.java.in: New file.
4326 2000-11-24 Tom Tromey <tromey@cygnus.com>
4328 * prims.cc (_Jv_NewObjectArray): Use placement new to create
4330 (_Jv_NewPrimArray): Likewise.
4332 * gcj/array.h (__JArray): `length' field now const. Added
4334 (class JArray): Added constructor.
4336 2000-11-23 Mark Wielaard <mark@klomp.org>
4338 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
4341 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
4343 * java/util/Vector.java: Improve exception messages.
4344 (Vector): Check initialCapacity for IllegalArgumentException.
4345 (tromToSize): Don't check for elementCount == elementData.length
4347 (toArray): Don't try to set null marker if target array is the same
4348 length as the vector.
4350 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
4352 * Makefile.in: Rebuilt.
4353 * Makefile.am (core_java_source_files): Added Collections.java.
4354 * java/util/List.java: Merged from classpath.
4355 * java/util/Vector.java: Ditto.
4356 * java/util/Collections.java: From classpath.
4357 * java/util/ArrayList.java (addAll(Collection)): Call
4358 addAll(int,Collection) instead of duplicating code.
4359 (indexOf): Clean up int initialization.
4360 (clear): Set cleared array entries to null, to allow garbage
4362 * java/util/List.java: Minor formatting fixes.
4363 * java/util/SimpleTimeZone.java: ditto.
4365 2000-11-18 Tom Tromey <tromey@cygnus.com>
4367 * Makefile.in: Rebuilt.
4368 * Makefile.am (core_java_source_files): Added new files.
4369 * java/lang/reflect/ReflectPermission.java: New class.
4370 * java/io/FileFilter.java: From Classpath
4371 * java/io/FilePermission.java: From Classpath.
4373 2000-11-17 Tom Tromey <tromey@cygnus.com>
4375 * java/lang/reflect/AccessibleObject.java (isAccessible,
4376 setAccessible): Now public.
4378 * java/lang/natString.cc: Include Locale.h.
4379 (toUpperCase): Added `locale' argument. Handle locale
4381 (toLowerCase): Added `locale' argument. Handle locale
4383 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
4384 CAPITAL_I): New defines.
4385 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
4388 (toUpperCase, toLowerCase): New methods. Variants which accept
4391 * java/lang/ExceptionInInitializerError.java (printStackTrace):
4394 * java/util/PropertyPermission.java: Re-merged from Classpath.
4396 * java/text/RuleBasedCollator.java (getCollationElementIterator):
4398 * java/text/StringCharacterIterator.java: Reindented.
4399 (setText): New method.
4401 2000-11-17 Mark Wielaard <mark@klomp.org>
4403 Merge with Classpath (changes by Bryce McKinlay)
4404 * java/util/jar/*.java: Reformat all to unofficial standard coding
4405 style. No changes of substance.
4407 2000-11-17 Mark Wielaard <mark@klomp.org>
4409 * java/util/zip/*.java: Javadoc updates.
4411 2000-11-17 Tom Tromey <tromey@cygnus.com>
4413 * java/text/CollationKey.java: Implement Comparable.
4414 (compareTo(Object)): New method.
4415 * java/text/Collator.java (compare(Object,Object)): New method.
4416 Implement Comparator.
4418 * java/util/zip/InflaterInputStream.java (available): New method.
4419 (close): New method.
4420 (read, available, skip, fill): Throw exception if stream closed.
4421 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
4422 getNextEntry): Throw exception if closed.
4424 2000-11-16 Tom Tromey <tromey@cygnus.com>
4426 * java/io/PushbackReader.java: Merged with Classpath.
4427 * java/util/Arrays.java: Updated from Classpath.
4429 * scripts/blocks.pl: New file.
4430 * java/lang/Character.java (Subset): New class.
4431 (UnicodeBlock): New class.
4433 * java/lang/Math.java (toDegrees, toRadians): New methods.
4435 * java/lang/Float.java: Implement Comparable.
4436 (compareTo): New methods.
4437 * java/lang/Double.java: Implement Comparable.
4438 (compareTo): New methods.
4440 2000-11-16 Warren Levy <warrenl@cygnus.com>
4442 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
4444 (listeners): Made transient.
4445 (source): Renamed from 'bean'.
4446 (children): New field for serialization.
4447 (propertyChangeSupportSerializedDataVersion): Ditto.
4448 (serialVersionUID): Ditto.
4449 (writeObject): New serialization method.
4450 (readObject): New serialization method.
4451 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
4453 (listeners): Made transient.
4454 (source): Renamed from 'bean'.
4455 (children): New field for serialization.
4456 (vetoableChangeSupportSerializedDataVersion): Ditto.
4457 (serialVersionUID): Ditto.
4458 (writeObject): New serialization method.
4459 (readObject): New serialization method.
4460 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
4461 to allow constructor to have a return type (i.e. the class that the
4462 constructor constructs).
4464 2000-11-14 Tom Tromey <tromey@cygnus.com>
4466 * Makefile.in: Rebuilt.
4467 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
4470 2000-11-02 Warren Levy <warrenl@cygnus.com>
4472 * java/io/ObjectInputStream.java (readObject): Added code to
4473 conditionally dump out the serialized data.
4474 Handle ENDBLOCKDATA case a bit more gracefully since the current
4475 behavior doesn't seem to work as expected.
4476 (readStreamHeader): Added code for serialized data dumper.
4477 (readNextBlock): Ditto.
4478 (readFields): Ditto.
4479 (dump): New private static field for turning on/off dumper.
4480 (setDump): New native method.
4481 (dumpElement): New native method.
4482 (dumpElementln): New native method.
4483 * java/io/natObjectInputStream.cc (setDump): New method.
4484 (dumpElement): New method.
4485 (dumpElementln): New method.
4487 2000-11-02 Warren Levy <warrenl@cygnus.com>
4489 * java/net/InetAddress.java (addr): Renamed from 'address'.
4490 (address): New field to match Serialized Form doc.
4491 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4492 (family): New serialization field.
4493 (serialVersionUID): New field.
4494 (readObject): New method.
4495 (writeObject): New method.
4496 (getFamily): New native method.
4497 (InetAddress): Set family.
4498 * java/net/natInetAddress.cc (getFamily): New method.
4499 (addr): Renamed from 'address'.
4500 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4501 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
4502 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
4504 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
4506 * java/util/AbstractList.java (SubList): Make it a top-level private
4508 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
4510 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
4511 * Makefile.in: Rebuilt.
4513 2000-11-02 Tom Tromey <tromey@cygnus.com>
4515 * Makefile.in: Rebuilt.
4516 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
4519 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4521 * java/util/AbstractList.java (remove): Comment out modCount increment
4522 to work around compiler bug.
4525 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4527 * java/util/AbstractList.java: Throw messages with
4528 IndexOutOfBoundsExceptions.
4529 (listIterator()): Call listIterator(0).
4530 (size): New field. Initialize to size().
4531 (hasNext): Test position against size, not size().
4532 (remove): Increment knownMod by one instead of resetting it from
4535 (SubList.upMod): Removed.
4536 (SubList.set): Don't call upMod() or update knownMod.
4537 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
4538 (SubList.remove): Ditto.
4539 (SubList.addAll): Don't call backingList.size(). Increment size from
4541 (SubList.iterator): New method. Call listIterator(0).
4542 (SubList.listIterator): New method. Restore code to return an anonymous
4543 listIterator implementation (with some changes).
4544 * java/util/AbstractSequentialList.java: Throw messages with
4545 IndexOutOfBoundsExceptions.
4546 (addAll): Add a specnote.
4547 * java/util/ArrayList.java (removeRange): Get the math right.
4548 (addAll): Increment modCount _before_ creating iterator.
4549 * java/util/LinkedList.java: Rewritten, mostly.
4551 2000-11-01 Tom Tromey <tromey@cygnus.com>
4553 * scripts/encodings.pl: Added `ASCII' alias.
4554 * Makefile.in: Rebuilt.
4555 * Makefile.am (convert_source_files): Added new files.
4556 * gnu/gcj/convert/Input_ASCII.java: New file.
4557 * gnu/gcj/convert/Output_ASCII.java: New file.
4558 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
4559 out-of-range characters.
4560 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
4561 (read): Swap bytes if required. Treat `count' as character count,
4563 (write): Likewise. Also, handle case where iconv fails on a given
4565 (init): Put encoding into exception.
4566 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
4567 (static): Call iconv_init. Rebuilt alias list.
4568 (iconv_init): New private method.
4570 2000-11-01 Tom Tromey <tromey@cygnus.com>
4572 * Makefile.in: Rebuilt.
4573 * Makefile.am (install-exec-hook): Only make a single symlink, and
4574 remove the destination before making the link.
4575 * configure: Rebuilt.
4576 * configure.in: Call AC_PROG_LN_S.
4578 2000-10-31 Warren Levy <warrenl@cygnus.com>
4580 * jni.cc: Added include of java/lang/ThreadGroup.h.
4581 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
4582 per change of 2000-10-05.
4584 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
4586 * java/util/BitSet.java: Updated @specnote.
4588 * java/io/Reader.java: Merge docs from classpath.
4589 (skip): Synchronize on `lock'.
4590 * java/io/FileReader.java: Import correct implementation from
4592 * java/io/StringReader.java: Merge docs from classpath.
4593 (ready): Throw IOException if stream is closed.
4595 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
4597 * java/util/AbstractCollection.java (addAll): Use size() instead of
4598 hasNext() in iterator loop.
4600 (contains): Ditto. Simplify loop.
4601 (containsAll): Ditto.
4606 (toString): Ditto. Use string concatenation operators, not
4608 * java/util/AbstractList.java (addAll): Use size() instead of
4609 hasNext() in iterator loop.
4612 (indexOf): Ditto. Don't take null check outside of the loop.
4613 (iterator): Return an AbstractListItr instead of anonymous class.
4614 (lastIndexOf): Use a for loop bounded by size() instead of
4615 hasPrevious() in iterator loop.
4616 (listIterator): Return an AbstractListItr.
4617 (removeRange): Remove bounds checking code and docs.
4618 (AbstractListItr): New inner class. Code moved here from
4620 (SubList.iterator): Removed. Use default implementation from
4621 AbstractList instead.
4622 (SubList.listIterator): As above.
4623 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
4624 instead of hasNext() in iterator loop.
4625 (containsValue): Ditto.
4631 (toString): Ditto. Use string concatenation operators, not
4633 * java/util/AbstractSequentialList.java (addAll): Use a for loop
4634 bounded by size() instead of hasNext() in iterator loop.
4635 * java/util/AbstractSet.java (hashCode): Don't catch exception as
4636 part of normal execution flow. Do an explicit null check instead.
4637 * java/util/ArrayList.java (_iSize): Rename to `size'.
4638 (_arData): Rename to `data'.
4639 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4642 (removeRange): Make protected. Don't check bounds.
4643 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4645 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4647 (addAll (int, Collection)): Check lower bounds. Simplify exception
4649 (clone): Clone the data array too.
4650 (indexOf): Inline doesEqual().
4651 (lastIndexOf): Ditto.
4652 (clear): Don't set array data to null.
4653 (set): Check lower bounds. Simplify exception string.
4654 (toArray): Correct comment.
4655 (trimToSize): Don't update modCount, this is not a structural change.
4658 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4660 (toString): Declare `bit' as long, not int.
4661 (data): Made package-private, not private.
4663 2000-10-27 Warren Levy <warrenl@cygnus.com>
4665 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4666 array elements to true.
4668 2000-10-27 Warren Levy <warrenl@cygnus.com>
4670 * Makefile.am: Added locale files from Classpath.
4671 * Makefile.in: Rebuilt.
4672 * gnu/java/locale/Calendar.java: New file.
4673 * gnu/java/locale/Calendar_de.java: New file.
4674 * gnu/java/locale/Calendar_en.java: New file.
4675 * gnu/java/locale/Calendar_nl.java: New file.
4676 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4677 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4678 serialization compatibility.
4679 (scale): Made private.
4680 (serialVersionUID): New field.
4681 * java/math/BigInteger.java (ival): Made transient.
4682 (words): Made transient.
4683 (bitCount): New serialization field.
4685 (firstNonzeroByteNum): Ditto.
4686 (lowestSetBit): Ditto.
4689 (serialVersionUID): New field.
4690 (readObject): New method.
4691 (writeObject): New method.
4692 * java/util/BitSet.java (serialVersionUID): New field.
4693 * java/util/Calendar.java: Replaced with Classpath file.
4694 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4695 of getDefault() for TimeZone or Locale instead of passing nulls.
4696 * java/util/Locale.java (serialVersionUID): New field.
4697 (writeObject): New method.
4698 (readObject): New method.
4699 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4701 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
4703 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4704 (core_java_source_files): Put java.lang, java.io, and java.util here.
4705 (ordinary_java_source_files): Order so that core_java_source_files are
4707 (java_source_files): Reorder so that special_java_source_files are
4709 * configure.in: Don't pass -I flag to gcj.
4710 * Makefile.in: Rebuilt.
4711 * configure: Rebuilt.
4713 2000-10-25 Tom Tromey <tromey@cygnus.com>
4715 * Makefile.in: Rebuilt.
4716 * Makefile.am (install-exec-hook): New target.
4718 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
4720 * java/util/EventObject.java: Merged from classpath.
4722 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4725 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4727 * java/util/AbstractSet.java (equals): Re-installed original code.
4729 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4731 * Makefile.am: Added rules for libgcjx library.
4732 * Makefile.in: Rebuilt.
4733 * configure.in: Added check for X.
4734 * configure: Rebuilt.
4735 * gnu/awt/LightweightRedirector.java: New file.
4736 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4737 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4738 * gnu/awt/j2d/Graphics2DImpl.java: New file.
4739 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4740 * gnu/awt/j2d/MappedRaster.java: New file.
4741 * gnu/awt/xlib/XCanvasPeer.java: New file.
4742 * gnu/awt/xlib/XEventLoop.java: New file.
4743 * gnu/awt/xlib/XEventQueue.java: New file.
4744 * gnu/awt/xlib/XFontMetrics.java: New file.
4745 * gnu/awt/xlib/XFramePeer.java: New file.
4746 * gnu/awt/xlib/XGraphics.java: New file.
4747 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4748 * gnu/awt/xlib/XPanelPeer.java: New file.
4749 * gnu/awt/xlib/XToolkit.java: New file.
4750 * gnu/gcj/xlib/Clip.java: New file.
4751 * gnu/gcj/xlib/Colormap.java: New file.
4752 * gnu/gcj/xlib/Display.java: New file.
4753 * gnu/gcj/xlib/Drawable.java: New file.
4754 * gnu/gcj/xlib/Font.java: New file.
4755 * gnu/gcj/xlib/GC.java: New file.
4756 * gnu/gcj/xlib/Pixmap.java: New file.
4757 * gnu/gcj/xlib/Screen.java: New file.
4758 * gnu/gcj/xlib/Visual.java: New file.
4759 * gnu/gcj/xlib/WMSizeHints.java: New file.
4760 * gnu/gcj/xlib/Window.java: New file.
4761 * gnu/gcj/xlib/WindowAttributes.java: New file.
4762 * gnu/gcj/xlib/XAnyEvent.java: New file.
4763 * gnu/gcj/xlib/XButtonEvent.java: New file.
4764 * gnu/gcj/xlib/XColor.java: New file.
4765 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4766 * gnu/gcj/xlib/XConnectException.java: New file.
4767 * gnu/gcj/xlib/XEvent.java: New file.
4768 * gnu/gcj/xlib/XException.java: New file.
4769 * gnu/gcj/xlib/XExposeEvent.java: New file.
4770 * gnu/gcj/xlib/XID.java: New file.
4771 * gnu/gcj/xlib/XImage.java: New file.
4772 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4773 * gnu/gcj/xlib/natClip.cc: New file.
4774 * gnu/gcj/xlib/natColormap.cc: New file.
4775 * gnu/gcj/xlib/natDisplay.cc: New file.
4776 * gnu/gcj/xlib/natDrawable.cc: New file.
4777 * gnu/gcj/xlib/natFont.cc: New file.
4778 * gnu/gcj/xlib/natGC.cc: New file.
4779 * gnu/gcj/xlib/natPixmap.cc: New file.
4780 * gnu/gcj/xlib/natScreen.cc: New file.
4781 * gnu/gcj/xlib/natVisual.cc: New file.
4782 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4783 * gnu/gcj/xlib/natWindow.cc: New file.
4784 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4785 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4786 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4787 * gnu/gcj/xlib/natXColor.cc: New file.
4788 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4789 * gnu/gcj/xlib/natXException.cc: New file.
4790 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4791 * gnu/gcj/xlib/natXImage.cc: New file.
4792 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4793 * java/awt/EventDispatchThread.java: Start thead on creation.
4795 2000-10-20 Tom Tromey <tromey@cygnus.com>
4797 From Arno J. Klaassen:
4798 * interpret.cc: Include <stdlib.h> for alloca.
4799 * defineclass.cc: Include <stdlib.h> for alloca.
4801 * Makefile.in: Rebuilt.
4802 * Makefile.am: Include deps.mk.
4803 (GCJCOMPILE): Added -MD, -MT, and -MF.
4804 ($(javao_files)): Don't depend on libgcj.zip.
4805 (all-recursive): New target.
4806 (%.lo:%.cc): Do dependency tracking.
4807 ($(nat_headers)): Don't depend on libgcj.zip.
4808 * configure: Rebuilt.
4809 * configure.in: Make .d files and deps.mk.
4811 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4813 * exception.cc: Don't #include "exception".
4814 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4816 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4817 * Makefile.in: Updated.
4819 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4821 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4822 * java/awt/peer/ComponentPeer.java (disable): Removed.
4825 (minimumSize): Removed.
4826 (preferredSize): Removed.
4829 * java/awt/peer/ListPeer.java (addItem): Removed.
4831 (minimumSize): Removed.
4832 (preferredSize): Removed.
4833 (setMultipleSelections): Removed.
4834 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4835 (remove): Renamed from removeMenu.
4836 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4838 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4839 (remove): Renamed from removeItem.
4840 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4841 (getMinimumSize): Removed.
4842 (getPreferredSize): Removed.
4843 (minimumSize): Removed.
4844 (preferredSize): Removed.
4845 (replaceText): Removed.
4846 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4847 (preferredSize): Removed.
4848 (getMinimumSize): Removed.
4849 (getPreferredSize): Removed.
4850 (setEchoCharacter): Removed.
4852 2000-10-10 Warren Levy <warrenl@cygnus.com>
4854 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4855 * java/sql/Date.java (serialVersionUID): New field.
4856 * java/sql/Time.java (serialVersionUID): New field.
4857 * java/sql/Timestamp.java (serialVersionUID): New field.
4858 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4859 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4860 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4861 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4862 (readObject): New serialization method.
4863 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4864 (serialVersionOnStream): New field.
4865 (readObject): New serialization method.
4866 (getMonetaryDecimalSeparator): New method.
4867 (setMonetaryDecimalSeparator): New method.
4868 * java/text/NumberFormat.java (maxFractionDigits): New field.
4869 (maxIntegerDigits): New field.
4870 (minFractionDigits): New field.
4871 (minIntegerDigits): New field.
4872 (serialVersionOnStream): New field.
4873 (serialVersionUID): New field.
4874 (readObject): New serialization method.
4875 (writeObject): New serialization method.
4876 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4877 (serialVersionOnStream): New field.
4878 (serialVersionUID): New field.
4879 (readObject): New serialization method.
4881 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4883 * configure.in (GCJ): Avoid bogus error message when looking for
4884 (and not finding) gcj in the build tree.
4885 * configure: Rebuilt.
4887 2000-10-09 Tom Tromey <tromey@cygnus.com>
4889 * configure: Rebuilt.
4890 * configure.in: Include sys/types.h when checking for socklen_t.
4891 From Arno J. Klaassen.
4893 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4895 * include/jvm.h: Enable __builtin_expect().
4897 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4898 the main program. Fix for PR libgcj/341.
4900 2000-10-07 Tom Tromey <tromey@cygnus.com>
4902 * java/util/Properties.java: Merged with Classpath version.
4904 2000-10-05 Tom Tromey <tromey@cygnus.com>
4906 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4907 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4908 * java/lang/Class.h (Object): Added `class$' field.
4909 * java/lang/Object.h (Object): Added `class$' field.
4910 * defineclass.cc (ClassClass): Use `class$' form.
4911 (ClassObject): Likewise.
4912 * resolve.cc (ClassObject): Use `class$' form.
4913 (ObjectClass): Likewise.
4914 * interpret.cc (ClassError): Removed.
4915 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4917 (IntegerClass): Likewise.
4918 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4920 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4921 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4922 SerializableClass): Likewise.
4923 Include Serializable.h, Cloneable.h.
4924 * java/lang/natSystem.cc (SystemClass): Removed.
4925 (init_properties): Use `class$' form.
4926 * java/lang/natObject.cc (CloneableClass): Removed.
4927 (clone): Use `class$' form.
4928 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4929 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4930 ConstructorClass): Likewise.
4931 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4932 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4933 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4934 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4936 (ClassClass): Likewise.
4937 * include/jvm.h (StringClass): Use `class$' form.
4938 * prims.cc (ObjectClass): Removed.
4939 (_Jv_RunMain): Use `class$' form.
4940 (_Jv_AllocObject): Likewise.
4941 * jni.cc (ClassClass): Use `class$' form.
4942 (ThrowableClass): Likewise.
4943 (ObjectClass): Likewise.
4944 (MethodClass): Likewise.
4945 (ThreadGroupClass): Likewise.
4946 (NativeThreadClass): Likewise.
4947 * boehm.cc (ObjectClass): Removed.
4948 (ClassClass): Removed.
4949 (_Jv_MarkObj): Use `class$' form.
4950 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4953 2000-10-05 Warren Levy <warrenl@cygnus.com>
4955 * Makefile.am: Removed java/io/Replaceable.java and
4956 java/io/Resolvable.java.
4957 * Makefile.in: Rebuilt.
4958 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4960 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4962 (processResolution): Handle readResolve method via reflection with
4963 removal of Resolvable interface.
4964 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4965 method via reflection with removal of Replaceable interface.
4966 * java/io/Replaceable.java: Removed.
4967 * java/io/Resolvable.java: Removed.
4968 * java/security/Key.java (serialVersionUID): New field.
4969 * java/security/Provider.java (serialVersionUID): New field.
4970 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4972 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4974 * java/sql/DataTruncation.java (serialVersionUID): New field.
4975 * java/sql/SQLException.java (serialVersionUID): New field.
4976 * java/sql/SQLWarning.java (serialVersionUID): New field.
4977 * java/util/Date.java (serialVersionUID): New field.
4978 (millis): Made transient.
4979 (readObject): New method.
4980 (writeObject): New method.
4982 2000-10-05 Tom Tromey <tromey@cygnus.com>
4984 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4986 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4988 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4989 (JvRunMain): Set _Jv_argv and _Jv_argc.
4990 * java/awt/Component.java: Minor fixes.
4991 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4992 * java/awt/Toolkit.java (systemEventQueue): Removed.
4993 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4994 * java/awt/Window.java (getToolkit): Don't call super.
4995 * java/awt/image/BufferedImage.java: Fix definite assignment errors.
4996 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4997 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4998 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4999 * gnu/awt/gtk/GtkFramePeer.java: New file.
5000 * gnu/awt/gtk/GtkMainThread.java: New file.
5001 * gnu/awt/gtk/GtkToolkit.java: New file.
5002 * gnu/awt/gtk/GtkWindowPeer.java: New file.
5003 * gnu/awt/gtk/gtkcommon.cc: New file.
5004 * gnu/awt/gtk/gtkcommon.h: New file.
5005 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
5006 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
5007 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
5008 * gnu/awt/gtk/natGtkMainThread.cc: New file.
5009 * gnu/awt/gtk/natGtkToolkit.cc: New file.
5010 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
5012 2000-09-30 Tom Tromey <tromey@cygnus.com>
5014 * posix-threads.cc (_Jv_CondWait): Check to see if we are
5015 interrupted before modifying the cv's wait set.
5018 2000-09-30 Hans Boehm <boehm@acm.org>
5019 Bryce McKinlay <bryce@albatross.co.nz>
5021 Implement bitmap descriptor based marking for Boehm GC.
5023 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
5024 * configure: Rebuilt.
5025 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
5026 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
5027 method get_finalizer().
5028 (struct _Jv_ArrayVTable): Ditto. Declare method array with
5029 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
5030 (_Jv_AllocObj): Add new jclass parameter.
5031 (_Jv_AllocArray): Ditto.
5032 (_Jv_BuildGCDescr): New prototype.
5033 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
5034 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
5035 get_finalizer() instead of direct finalizer vtable offset.
5036 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
5037 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
5038 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
5039 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
5040 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
5041 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
5042 (_Jv_DetermineVTableIndex): Ditto.
5043 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
5044 calculations to account for new gc_descr field.
5045 * boehm.cc: #include gc_gcj.h.
5046 (obj_kind_x, obj_free_list): `#if 0'-ed away.
5047 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
5048 New commentary from HB. Mark the classes vtable.
5049 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
5050 (GC_DEFAULT_DESCR): New #define.
5051 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
5052 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
5053 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
5054 scan conservativly if size is less than min_heap_addr. Set vtable
5055 pointer of new object before returning.
5056 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
5057 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
5058 allocation for obj_kind_x.
5059 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
5060 (_Jv_AllocObj): Set vtable on returned object.
5061 (_Jv_AllocArray): Ditto.
5062 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
5063 (_Jv_NewPrimArray): Ditto.
5064 (_Jv_AllocObj): Declare as a friend.
5065 (_Jv_AllocArray): Ditto.
5066 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
5067 from &ObjectClass into new array class. Remove offset-by-one
5068 adjustments from `method' size calculations to account for gc_descr
5071 2000-09-26 Tom Tromey <tromey@cygnus.com>
5073 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
5074 `remove', not `add'.
5076 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5078 * java/lang/natSystem.cc (file_encoding): Added return statement.
5080 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5082 * Makefile.am: Re-work shell commands that exceeded command-line
5084 * Makefile.in: Rebuilt.
5086 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
5088 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
5089 * java/lang/natDouble.cc: Likewise.
5090 * java/lang/reflect/natMethod.cc: Likewise.
5091 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
5093 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
5095 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
5097 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
5098 * acinclude.m4: Arrange for automake to not bring in a new
5099 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
5100 * Makefile.am: Leave it up to automake to subst GCJ.
5101 * aclocal.m4, configure, Makefile.in: Rebuilt.
5103 2000-09-13 Tom Tromey <tromey@cygnus.com>
5105 * java/lang/reflect/natArray.cc (BooleanClass): New define.
5106 (get): Ensure Boolean class is initialized.
5107 * java/lang/reflect/natField.cc (BooleanClass): New define.
5108 (get): Ensure Boolean class is initialized.
5110 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
5112 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
5113 Initialize with anonymous class.
5114 (compareToIgnoreCase): New method.
5116 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
5117 (uncaughtException): Set had_uncaught_exception.
5118 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
5119 exit with error status if set.
5120 (_Jv_RunMain): Ditto.
5122 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
5124 * configure: Rebuilt with new ../libtool.m4.
5126 2000-09-11 Tom Tromey <tromey@cygnus.com>
5128 * java/lang/reflect/Field.java (toString): Don't rely on
5131 2000-09-08 Tom Tromey <tromey@cygnus.com>
5133 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
5134 default decoder use iconv.
5135 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
5136 Let default encoder use iconv.
5137 * configure: Rebuilt.
5138 * configure.in: Check for nl_langinfo and <langinfo.h>.
5139 * java/lang/natSystem.cc (file_encoding): New function.
5140 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
5142 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
5144 * acinclude.m4: Simplify the tests for CC and CXX.
5145 * aclocal.m4, configure: Rebuilt.
5147 * acinclude.m4: Include libtool macros from the source tree.
5148 * aclocal.m4, configure: Rebuilt.
5150 2000-09-08 Warren Levy <warrenl@cygnus.com>
5152 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
5153 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
5154 * java/io/File.java (writeObject): Added.
5155 (readObject): Added.
5156 (serialVersionUID): Added.
5157 * java/io/ObjectOutputStream.java (writeObject): Initialized
5158 fieldsAlreadyWritten before recursion rather than after.
5159 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
5160 * java/io/OptionalDataException.java (serialVersionUID): Added.
5161 (OptionalDataException): Made package private.
5162 * java/io/SyncFailedException.java (SyncFailedException): Removed
5163 default constructor to match spec.
5164 * java/lang/Boolean.java (serialVersionUID): Added.
5165 * java/lang/Byte.java (serialVersionUID): Added.
5166 * java/lang/Character.java (serialVersionUID): Added.
5167 * java/lang/Double.java (serialVersionUID): Added.
5168 * java/lang/Float.java (serialVersionUID): Added.
5169 * java/lang/Integer.java (serialVersionUID): Added.
5170 * java/lang/Long.java (serialVersionUID): Added.
5171 * java/lang/Number.java (serialVersionUID): Added.
5172 * java/lang/Short.java (serialVersionUID): Added.
5173 * java/lang/String.java (serialVersionUID): Added.
5174 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
5176 * java/lang/reflect/InvocationTargetException.java
5177 (serialVersionUID): Added.
5178 * java/net/URL.java (handler): Made transient.
5179 (hashCode): Added field for serialization, per spec. and use
5180 cached value if available.
5181 (serialVersionUID): Added.
5182 (URL): Initialize hashCode.
5183 (set): Adjust hashCode.
5184 (readObject): New Method to initialize the protocol handler when
5186 (writeObject): New method.
5187 * java/text/BreakIterator.java: Removed 'implements Serializable'.
5188 * java/text/Collator.java: Removed 'implements Serializable'.
5189 * java/util/GregorianCalendar.java (serialVersionUID): Added.
5190 * java/util/Properties.java (serialVersionUID): Added.
5191 * java/util/Random.java (serialVersionUID): Added.
5192 (seed): Made private.
5193 (nextNextGaussian): Made private.
5194 (haveNextNextGaussian): Made private.
5195 * java/util/Stack.java (serialVersionUID): Added.
5196 * java/util/TimeZone.java (serialVersionUID): Added.
5197 * java/util/Vector.java (serialVersionUID): Added.
5199 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
5201 * Makefile.am (Thread.h): Don't be friends with native threads
5203 * Makefile.in: Rebuilt.
5204 * java/lang/Thread.java (interrupt_flag): Make package-private.
5206 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
5208 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
5209 to avoid long long division.
5211 2000-09-06 Tom Tromey <tromey@cygnus.com>
5213 * java/lang/reflect/Constructor.java (toString): Use `getName' for
5215 * java/lang/reflect/Method.java (toString): Use `getName' for
5218 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
5219 `args' if method takes no parameters.
5221 Fix for PR java.lang/339:
5222 * java/lang/natPosixProcess.cc (fail): New function.
5223 (cleanup): New function.
5224 (startProcess): Use them. Create pipe so child can communicate
5225 exec failure back to parent.
5227 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5229 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
5231 (send): Undo last patch. Remove the label only.
5233 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
5235 * java/net/natInetAdress.cc: Ditto.
5237 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
5239 2000-09-05 Tom Tromey <tromey@cygnus.com>
5241 * doc/cni.sgml: Updated from master copy.
5243 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5245 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
5247 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
5249 * java/lang/fdlibm.h: #undef __P if previously defined.
5250 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
5251 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
5255 2000-09-04 Tom Tromey <tromey@cygnus.com>
5257 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
5260 2000-09-04 Anthony Green <green@redhat.com>
5262 Fix for PR java.io/203:
5263 * java/io/File.java (createTempFile): Obey directory argument.
5264 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
5265 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
5266 variable to set java.io.tmpdir on non-WIN32 systems.
5268 2000-09-04 Anthony Green <green@redhat.com>
5270 * java/io/File.java (deleteOnExit): New method.
5271 * gnu/gcj/runtime/FileDeleter.java: New class.
5272 * java/lang/natRuntime.cc (exit): Call
5273 FileDeleter.deleteOnExitNow()
5274 * Makefile.am: Add FileDeleter.java.
5275 * Makefile.in: Rebuilt.
5277 2000-09-02 Tom Tromey <tromey@cygnus.com>
5279 * Makefile.in: Rebuilt.
5280 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
5281 environment variable.
5283 2000-09-01 Andrew Haley <aph@redhat.com>
5285 * java/io/StreamTokenizer.java: Don't throw a
5286 NumberFormatException if a field is numeric as far as the
5287 StreamTokenizer is concerned but not as far as Double.valueOf() is
5288 concerned: return a zero instead.
5290 2000-08-30 Tom Tromey <tromey@cygnus.com>
5292 * Makefile.in: Rebuilt.
5293 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
5295 2000-08-28 Tom Tromey <tromey@cygnus.com>
5297 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
5298 gnu/gcj/awt/ComponentDataBlitOp.java,
5299 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
5300 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
5301 java/awt/color/ICC_ColorSpace.java,
5302 java/awt/color/ICC_Profile.java,
5303 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
5304 java/awt/image/ComponentColorModel.java,
5305 java/awt/image/ComponentSampleModel.java,
5306 java/awt/image/DataBuffer.java,
5307 java/awt/image/DataBufferByte.java,
5308 java/awt/image/DataBufferInt.java,
5309 java/awt/image/DataBufferUShort.java,
5310 java/awt/image/DirectColorModel.java,
5311 java/awt/image/IndexColorModel.java,
5312 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
5313 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
5314 java/awt/image/SinglePixelPackedSampleModel.java,
5315 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
5316 Removed Latin-1 copyright symbols.
5317 * java/util/zip/ZipFile.java: Indentation fixes.
5319 2000-08-27 Mark Wielaard <mark@klomp.org>
5321 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
5322 constructor, close can delete the file, finalize calls close.
5323 * java/util/jar/JarFile.java: Constructor that takes mode now
5326 2000-08-27 Anthony Green <green@redhat.com>
5328 * java/util/ArrayList.java, java/util/Timer.java,
5329 java/util/LinkedList.java, java/util/TimerTask.java,
5330 java/util/HashMap.java, java/util/AbstractMap.java,
5331 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
5332 java/util/SortedSet.java: Imported from GNU Classpath.
5333 * Makefile.in: Rebuilt.
5334 * Makefile.am: Added new files.
5336 2000-08-26 Anthony Green <green@redhat.com>
5338 * Makefile.in: Rebuilt.
5339 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
5342 * prims.cc: Include ClassLoader.h.
5343 (_Jv_RunMain): When executing jar files, classpath must be the jar
5344 file only. Lose our reference to the system ClassLoader in order
5345 to get a new one with the correct classpath.
5346 * java/lang/natSystem.cc (init_properties): When executing a jar
5347 file, only use the jar file for java.class.path.
5349 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
5350 for bytecode archives.
5352 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
5353 exists, but not Main-Class.
5355 2000-08-23 Mark Wielaard <mark@klomp.org>
5357 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
5358 return -1 when fill() has no more data for the Inflater.
5360 2000-08-23 Mark Wielaard <mark@klomp.org>
5362 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
5363 write(String) already does.
5365 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
5367 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
5368 to `alive_flag', call `init'.
5369 (init): New native method.
5370 * gnu/gcj/jni/natNativeThread.cc (init): New native method
5373 2000-08-21 Mark Wielaard <mark@klomp.org>
5375 * Makefile.in: Rebuilt.
5376 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
5378 (java/lang/reflect/Field.h): Likewise.
5379 (java/lang/reflect/Method.h): Likewise.
5380 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
5383 2000-08-21 Tom Tromey <tromey@cygnus.com>
5385 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
5388 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
5390 * java/lang/natSystem.cc (init_properties): Change sourceware
5391 reference to sources.redhat.com.
5393 * include/java-props.h: Add _Jv_Jar_Class_Path.
5394 * prims.cc: Ditto. Set it from `gij -jar file' option.
5396 * java/lang/natSystem.cc (init_properties): Set java.class.path
5398 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
5400 * java/util/PropertyPermission.java: Import from GNU Classpath.
5401 * Makefile.in: Rebuilt.
5402 * Makefile.am: Add java/util/PropertyPermission.java.
5403 * java/lang/System.java: Add setProperty method.
5405 * gij.cc (main): Add -jar option to execute jar files.
5406 (help): Describe -jar option.
5407 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
5408 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
5409 * gnu/gcj/runtime/FirstThread.java (main): New method.
5411 * java/util/jar/Attributes.java: Correct comment spelling.
5413 2000-08-20 Mark Wielaard <mark@klomp.org>
5415 * java/util/zip/Adler32.java: Make private variables really private
5416 * java/util/zip/CRC32.java: Make private variables really private
5417 * java/util/zip/CheckedInputStream.java: skip() could skip to much
5419 * java/util/zip/InflaterInputStream.java: skip() could skip to
5421 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
5422 * java/util/zip/ZipFile.java: size() new 1.2 method
5423 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
5424 ZipEntry. since 1.2 available() always returns just 1 or 0 when
5427 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
5429 * java/util/jar/JarFile.java: Don't call
5430 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
5433 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
5435 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
5436 Read the entire contents of the class file, not just what is
5439 * java/net/JarURLConnection.java: getEntry doesn't take any
5440 arguments. Return null if element is null.
5442 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
5443 size from the archive, not the inflated size.
5445 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
5446 java.util.zip.ZipFile.getEntry.
5448 * gij.cc (help): Change sourceware reference to
5451 2000-08-19 Tom Tromey <tromey@cygnus.com>
5453 * java/util/zip/ZipInputStream.java (createZipEntry):
5456 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
5458 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
5459 java/util/jar/JarException.java, java/util/jar/JarFile.java,
5460 java/util/jar/JarInputStream.java,
5461 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
5462 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
5463 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
5464 java/security/cert/CRL.java, java/security/cert/CRLException.java,
5465 java/security/cert/Certificate.java,
5466 java/security/cert/CertificateEncodingException.java,
5467 java/security/cert/CertificateException.java,
5468 java/security/cert/CertificateExpiredException.java,
5469 java/security/cert/CertificateFactory.java,
5470 java/security/cert/CertificateFactorySpi.java,
5471 java/security/cert/CertificateNotYetValidException.java,
5472 java/security/cert/CertificateParsingException.java,
5473 java/security/cert/X509CRL.java,
5474 java/security/cert/X509CRLEntry.java,
5475 java/security/cert/X509Certificate.java,
5476 java/security/cert/X509Extension.java: Imported from Classpath.
5477 * java/util/Hashtable.java: Imported from Classpath.
5479 * java/util/zip/ZipInputStream.java: Create stub for
5482 * gcj/javaprims.h: Updated class list.
5484 * Makefile.in, gcj/Makefile.in: Rebuilt.
5485 * Makefile.am (ordinary_java_source_files): Add these new classes.
5487 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5489 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
5490 * gnu/gcj/awt/GLightweightPeer.java: New file.
5491 * java/awt/BorderLayout.java: Implemented all methods.
5492 * java/awt/Button.java (actionListener, actionCommand): Renamed
5493 and modifier change.
5494 (addNotify): Call super.
5495 (dispatchEventImpl): New method.
5496 (getListeners): New method.
5497 (label): Made package-private, not private.
5498 * java/awt/Canvas.java: Implemented class body.
5499 * java/awt/Color.java (brighter): New method.
5500 (darker): New method.
5501 (hashCode): New method.
5502 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
5503 (getGraphicsConfiguration): Delegate to
5504 getGraphicsConfigurationImpl().
5505 (getGraphicsConfigurationImpl): New method.
5506 (getToolkit): Only return value from peer if not null.
5507 (isDisplayable): Check with parent.
5508 (isShowing): No parent implies not showing.
5509 (getForeground): Check parent property if local is null.
5510 (getBackground): Likewise.
5511 (getFont): Likewise.
5512 (setForeground): Inform peer.
5513 (setBackground): Likewise
5514 (setLocale): Invalidate component.
5515 (getColorModel): Implemented.
5516 (setLocation): Invalidate, or ignore if no change.
5517 (setSize): Invalidate, or ignore if no change.
5518 (setBounds): Invalidate, or ignore if no change.
5519 (isOpaque): By default, heavyweight implies opaque.
5520 (isLightweight): Implemented.
5521 (getMaximumSize): Implemented.
5522 (doLayout): Implemented, NOP.
5523 (validate): Implemented, NOP.
5524 (invalidate): Only propagate to parent if parent was valid.
5525 (getGraphics): Implemented.
5526 (getFontMetrics): Implemented.
5527 (update): Implemented.
5528 (paintAll): Implemented.
5529 (repaint): Implemented all repaint methods.
5530 (print): Implemented.
5531 (printAll): Implemented.
5532 (createImage): Implemented.
5533 (dispatchEvent): Give the peer a chance to handle the event.
5534 (dispatchEventImpl): Dispatch paint events.
5535 (enableEvents): Lightweights enable events on parent component.
5536 (coalesceEvents): Coalesce paint events, and select event type
5538 (coalescePaintEvents): New method.
5539 (processEvent): Fix unfortunate ordering of statements, and call
5540 correct method for MOUSE_CLICKED.
5541 (processPaintEvent): New method.
5542 (addNotify): Allow container to notify children before event
5543 mask is set in peer.
5544 (addNotifyContainerChildren): New method.
5545 (removeNotify): Visibility should not change on removeNotify.
5546 (paramString): Implemented.
5547 (list): Implemented two of the list methods.
5548 * Container (myInsets): Removed, insets are managed by peer.
5549 (getInsets): Query peer.
5550 (addImpl): Fix reparenting, enable events for lightweights,
5551 initialize component array.
5552 (validate): Call doLayout in validateTree() instead.
5553 (validateTree): Do nothing if already valid. Call beginValidate(),
5554 endValidate() on peer. Call validateTree() instead of validate()
5555 for children that are containers. Mark valid after validation of
5557 (setFont): Partial implementation.
5558 (paint): Implemented.
5559 (visitChildren): New method.
5560 (visitChild): New method.
5561 (update): Implemented.
5562 (print): Implemented.
5563 (paintComponents): Implemented.
5564 (printComponents): Consider translation and clipping.
5565 (getComponentAt): Ignore invisible children. Return this if no
5567 (addNotify): Call super.
5568 (addNotifyContainerChildren): New method.
5569 (paramString): Implemented.
5570 (list): Implemented.
5571 * java/awt/EventQueue (invokeAndWait): Get system event queue the
5573 (invokeLater): Likewise.
5574 (isDispatchThread): Likewise.
5575 * java/awt/FontMetrics (getLeading): Formula change.
5576 (getDescent): Consider leading also.
5577 (getMaxAscent): Default to getAscent().
5578 (getMaxDescent): Default to getDescent.
5579 (getMaxAdvance): Return value signifying unknown.
5580 (charWidth): Both methods implemented.
5581 (charsWidth): Implemented.
5582 (bytesWidth): Implemented.
5583 (getWidths): Implemented.
5584 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
5586 (Frame): Rearragend constuctor chaining to disallow null being
5587 passed as a graphics configuration.
5588 (getTitle): Return empty string if null.
5590 (getIconImage): New method.
5591 (setIconImage): New method.
5592 (finalize): New method.
5593 (setMenuBar): Notify peer.
5594 (isResizable): New method.
5595 (setResizable): New method.
5596 (getState): New method.
5598 (remove): Implemented.
5599 (removeNotify): New method.
5600 (getFrames): New method.
5601 * java/awt/Graphics.java: Implemented body of class.
5602 * java/awt/Graphics2D.java: New file.
5603 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
5604 * java/awt/Image.java: Implemented body of class.
5605 * java/awt/Panel.java (Panel): Call correct super constructor.
5606 (addNotify): Implemented.
5607 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
5608 * java/awt/RenderingHints.java: New file.
5609 * java/awt/Toolkit.java (createComponent): Implemented.
5610 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
5611 * java/awt/Window.java (Window): Two new constructors. Reordered
5612 constructor chaining.
5613 (getGraphicsConfigurationImpl): New method.
5614 (finalize): Call super.
5615 (addNotify): Call super.
5616 (pack): Do layout stuff.
5617 (show): Ensure that peer exists and that component is valid.
5618 (dispose): Dispose owned children.
5619 (getOwner): Simplify code, casting null pointers is valid.
5620 (getGraphicsConfiguration): Ask peer if local value is null.
5621 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
5623 * java/awt/image/BufferedImage.java: New file.
5624 * java/awt/image/RasterOp.java: New file.
5625 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
5626 More powerful replacement for getColorModel().
5627 (getColorModel) Removed.
5628 (setEventMask) New method.
5629 * Makefile.am: Added new files.
5630 * Makefile.in: Rebuilt.
5632 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
5634 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
5635 (finit_leg_name): New global.
5636 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5637 `$finit$'. This is a backward compatibility hack.
5638 (java::lang::Class::_getMethods): Likewise.
5640 2000-08-15 Andrew Haley <aph@cygnus.com>
5642 * include/jvm.h (_Jv_HashCode): New hash code.
5644 2000-08-15 Tom Tromey <tromey@cygnus.com>
5646 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5648 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
5650 * THANKS: More thanks.
5652 2000-08-10 Tom Tromey <tromey@cygnus.com>
5654 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5656 (connect): Likewise.
5658 (getOption): Likewise.
5659 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5660 case when errno not set.
5663 (receive): Likewise.
5664 (mcastGrp): Likewise.
5665 (setOption): Likewise.
5666 (getOption): Likewise.
5668 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
5669 John Stracke <francis@ecal.com>
5671 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5672 (connect): Don't falsely claim HTTP/1.1 compliance. Call
5674 (disconnect): Don't unset connected flag.
5675 (getHeaderField (String)): Call connect() if not connected.
5676 (getHeaderField (int)): Ditto.
5677 (getHeaderFieldKey): Ditto.
5678 (getHttpHeaders): Don't call connect().
5679 * java/net/HttpURLConnection.java (instanceFollowRedirects,
5680 gotResponseVals): New fields.
5681 (getResponseCode): Call getResponseVals() conditionally.
5682 (getResponseMessage): Ditto.
5683 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5685 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
5687 * Makefile.am: Move beans and applet classes to awt_java_source_files.
5688 * Makefile.in: Rebuilt.
5689 * java/awt/Color.java (getTransparency): New method.
5690 * java/awt/Component.java: Various updates.
5691 * java/awt/Container.java (removeNotify): Call super.removeNotify()
5692 after dealing with children.
5693 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5694 * java/awt/Window.java: Various new methods and updates.
5695 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5697 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5698 * java/awt/event/WindowEvent.java (paramString): Ditto.
5699 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5701 * java/awt/geom/Point2D.java (clone): Ditto.
5702 * java/awt/geom/RectangularShape.java (clone): Ditto.
5703 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5704 isAlphaPremultiplied): Make package-private, not private.
5706 2000-08-08 Tom Tromey <tromey@cygnus.com>
5708 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5709 surrogate characters.
5710 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5712 (write): Correct handling of surrogate characters.
5714 2000-08-07 Tom Tromey <tromey@cygnus.com>
5716 * java/lang/reflect/Method.java (hashCode): Use getName().
5717 (toString): Likewise.
5718 * java/lang/reflect/natMethod.cc (getType): Initialize
5721 * java/lang/reflect/Method.java (toString): Use Class.getName, not
5723 * java/lang/reflect/Field.java (toString): Correct formatting.
5726 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5728 (receive): Streamlined.
5730 2000-08-05 Tom Tromey <tromey@cygnus.com>
5732 * java/io/PrintWriter.java: Merged comments from Classpath.
5733 (printlnUnsynchronized): Removed.
5734 (println()): Print the separator.
5735 (println): Call println(), not printlnUnsynchronized.
5736 (out): Now protected, to match spec.
5738 2000-08-04 Tom Tromey <tromey@cygnus.com>
5740 * java/io/StreamTokenizer.java (TT_NONE): Now private.
5741 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5744 2000-08-03 Warren Levy <warrenl@cygnus.com>
5746 * java/io/ObjectInputStream.java (readFields): Turn off
5747 readDataFromBlock while reading via GetField.
5748 (GetField$1.get(String, Object)): Pass Class of default value to
5750 (getField): Allow for null default values.
5752 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5753 (PutField$1.put): Fixed calls of checkType in most of the put
5754 methods to pass the correct parameter.
5755 (PutField$1.put(String, Object)): Allow for null value arg.
5756 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5759 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5760 typo in spec'ed field name.
5761 (getSerialPersistentFields): Changed spelling of method to match
5762 the correct spelling of the spec'ed field name.
5764 2000-08-03 Tom Tromey <tromey@cygnus.com>
5766 * Makefile.in: Rebuilt.
5767 * Makefile.am (awt_java_source_files): Added new files.
5769 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5771 * Makefile.am: Add new AWT stubs.
5772 * java/awt/Canvas.java: New placeholder class.
5773 * java/awt/Checkbox.java: Ditto.
5774 * java/awt/CheckboxMenuItem.java: Ditto.
5775 * java/awt/Choice.java: Ditto.
5776 * java/awt/Dialog.java: Ditto.
5777 * java/awt/FileDialog.java: Ditto.
5778 * java/awt/List.java: Ditto.
5779 * java/awt/ScrollPane.java: Ditto.
5780 * java/awt/TextField.java: Ditto.
5781 * java/awt/datatransfer/Clipboard.java: Ditto.
5782 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5783 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5784 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5785 Some commented out. Partially implemented.
5786 * java/awt/natToolkit.cc: Removed file.
5788 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5790 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5791 Fixes "make -j" builds.
5792 * Makefile.in: Rebuild.
5794 2000-08-02 Tom Tromey <tromey@cygnus.com>
5796 * Makefile.in: Rebuilt.
5797 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5798 * java/net/natPlainSocketImpl.cc: Include posix.h.
5799 (accept): Use _Jv_select.
5800 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5801 (receive): Use _Jv_select.
5802 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5803 (available): Use _Jv_select.
5804 * java/lang/natSystem.cc: Include posix.h.
5805 (currentTimeMillis): Use _Jv_gettimeofday.
5806 * include/posix.h: New file.
5807 * posix.cc: New file.
5809 * scripts/encodings.pl: New file.
5810 * Makefile.in: Rebuilt.
5811 * Makefile.am (convert_source_files): Added IOConverter.java.
5812 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5814 (getDefaultDecodingClass): Canonicalize default encoding name.
5815 (getEncoder): Likewise.
5816 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5818 (getDefaultDecodingClass): Canonicalize default encoding name.
5819 (getDecoder): Likewise.
5820 * gnu/gcj/convert/IOConverter.java: New file.
5822 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5824 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5825 to match C declaration in ffi.h.
5826 * Makefile.am: Add java/awt/Button.java.
5827 * Makefile.in: Rebuilt.
5829 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5831 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5832 cast of the second argument to `ffi_raw_call' changed to match
5835 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5837 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5838 argument to `ffi_raw_call' changed to match prototype.
5840 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5842 * java/awt/Component.java (toString): Implemented.
5843 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5844 dispatchEvent() to dispatch the event.
5845 (removeImpl): Ditto.
5847 2000-07-30 Anthony Green <green@redhat.com>
5849 * java/awt/Component.java: Add treeLock object.
5850 (getTreeLock): Implement.
5851 (isShowing): Implement.
5853 2000-07-30 Tom Tromey <tromey@cygnus.com>
5855 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5857 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5859 * java/awt/Window.java (addNotify): Wrote.
5860 (addWindowListener): Wrote.
5862 (getWarningString): Wrote.
5863 (processEvent): Wrote.
5864 (processWindowEvent): Wrote.
5865 (removeWindowListener): Wrote.
5866 (show): Call validate(), setVisible().
5870 * java/awt/Toolkit.java (createWindow): Declare.
5872 * java/awt/Frame.java (addNotify): Use getToolkit to find
5875 * java/awt/Component.java (invalidate): Wrote.
5877 (getToolkit): Wrote.
5879 * java/awt/Container.java (addContainerListener): Removed
5881 (removeContainerListener): Likewise.
5883 (add(Component)): Use it.
5884 (add(String,Component)): Likewise.
5885 (add(Component,int)): Likewise.
5886 (add(Component,Object)): Likewise.
5887 (add(Component,Object,int)): Likewise.
5889 (getAlignmentX): Wrote.
5890 (getAlignmentY): Wrote.
5891 (getComponentAt): Wrote.
5892 (getMaximumSize): Wrote.
5893 (invalidate): Wrote.
5894 (list(PrintStream,int)): Wrote.
5895 (list(PrintWriter,int)): Wrote.
5896 (getMinimumSize): Wrote.
5897 (getPreferredSize): Wrote.
5898 (printComponents): Wrote.
5899 (processContainerEvent): Look at containerListener, not
5901 (remove): Added event processing and peer destruction.
5902 (removeAll): Use remove.
5903 (removeNotify): Wrote.
5905 (validateTree): Wrote.
5907 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5908 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5909 * java/awt/Container.java (addNotify): Don't create Container
5911 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5913 2000-07-30 Tom Tromey <tromey@cygnus.com>
5915 * java/awt/Container.java (remove(int)): Wrote.
5916 (remove(Component)): Wrote.
5917 (add(Component)): Wrote.
5918 (add(Component,int)): Wrote.
5920 (addNotify): Set our own peer.
5921 * java/awt/Scrollbar.java (listeners): Changed type.
5922 (Scrollbar): Don't initialize listeners.
5924 (setValue): Call setValues.
5925 (setMinimum): Likewise.
5926 (setMaxPriority): Likewise.
5927 (setVisibleAmount): Likewise.
5929 (setUnitIncrement): Forward to peer.
5930 (setLineIncrement): Call setUnitIncrement.
5931 (setPageIncrement): Call setBlockIncrement.
5932 (setBlockIncrement): Forward to peer.
5933 (addAdjustmentListener): Rewrote.
5934 (removeAdjustmentListener): Rewrote.
5935 (processAdjustmentEvent): Rewrote.
5936 (paramString): Wrote.
5937 * Makefile.in: Rebuilt.
5938 * Makefile.am (awt_java_source_files): Added Button.java.
5939 * java/awt/Button.java: New file.
5940 * java/awt/Toolkit.java (createLabel): Declare.
5941 (createButton): Likewise.
5942 (createScrollbar): Likewise.
5943 (createContainer): Likewise.
5944 * java/awt/Label.java (addNotify): Wrote.
5945 (setAlignment): Call setAlignment in the peer.
5946 (setText): Call setText in the peer.
5948 2000-07-28 Warren Levy <warrenl@cygnus.com>
5950 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5951 NotSerializableException with just the class name.
5953 2000-07-26 Andrew Haley <aph@cygnus.com>
5955 * interpret.cc (continue1): Insert missing break into switch.
5957 2000-07-28 Warren Levy <warrenl@cygnus.com>
5959 * java/io/ObjectStreamException.java: Made constructors protected.
5961 2000-07-27 Tom Tromey <tromey@cygnus.com>
5963 * java/io/OutputStreamWriter.java (close): Only flush if not
5966 2000-07-27 Warren Levy <warrenl@cygnus.com>
5968 * mauve-libgcj: Activated serialization tests.
5969 * gcj/field.h (getModifiers): Mask off unknown flags.
5970 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5971 spurious bits don't cause discrepancies.
5972 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5973 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5974 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5975 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5976 * java/lang/Throwable.java (serialVersionUID): New field.
5977 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5978 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5980 * java/lang/reflect/natMethod.cc: Ditto.
5981 * java/security/Key.java (serialVersionUID): Removed field for now.
5982 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5983 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5985 2000-07-22 Tom Tromey <tromey@cygnus.com>
5987 * java/awt/geom/RectangularShape.java (getPathIterator):
5990 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5992 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5993 stub libjava/java/awt/ColorModel.java which was located in the
5995 * libjava/java/awt/image/ComponentColorModel.java: New file.
5996 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5997 * libjava/java/awt/image/DataBuffer.java: New file.
5998 * libjava/java/awt/image/DataBufferByte.java: New file.
5999 * libjava/java/awt/image/DataBufferInt.java: New file.
6000 * libjava/java/awt/image/DataBufferUShort.java: New file.
6001 * libjava/java/awt/image/DirectColorModel.java: New file.
6002 * libjava/java/awt/image/PackedColorModel.java: New file.
6003 * libjava/java/awt/image/Raster.java: New file.
6004 * libjava/java/awt/image/SampleModel.java: New file.
6005 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
6007 * libjava/java/awt/image/IndexColorModel.java: New file.
6008 * libjava/java/awt/image/ImageConsumer.java: Removed import of
6009 java.awt.ColorModel stub.
6011 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
6012 * gnu/gcj/util/Buffers.java: New file, utility class.
6014 * libjava/Makefile.am: Updated to include new files.
6015 * libjava/Makefile.in: Rebuilt.
6017 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
6019 * java/io/StreamTokenizer.java: Merged with classpath.
6021 2000-07-20 Tom Tromey <tromey@cygnus.com>
6023 * Makefile.in: Rebuilt.
6024 * Makefile.am (awt_java_source_files): Updated for new files.
6025 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
6026 * java/awt/Label.java: New file.
6027 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
6028 (createIntersection, createUnion, getBounds2D): New methods.
6029 * java/awt/Scrollbar.java: New file.
6030 * java/awt/Shape.java: Updated to 1.2.
6031 * java/awt/geom/AffineTransform.java: New file.
6032 * java/awt/geom/Ellipse2D.java: New file.
6033 * java/awt/geom/NoninvertibleTransformException.java: New file.
6034 * java/awt/geom/PathIterator.java: New file.
6035 * java/awt/geom/Rectangle2D.java: New file.
6036 * java/awt/geom/RectangularShape.java: New file.
6037 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
6038 * java/awt/geom/IllegalPathStateException.java: New file.
6040 * scripts/showval.java: New file.
6042 * scripts/classes.pl (scan): Print inner classes properly.
6043 * gcj/javaprims.h: Updated class list.
6045 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
6046 initialize String fields for interpreted classes. Fixes bug
6047 reported by Hans Boehm.
6049 * java/io/File.java (getParentFile): New method, from Classpath
6050 via Oskar Liljeblad.
6052 * java/util/Vector.java (remove(Object)): Implemented.
6054 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
6056 * java/lang/natThrowable.cc (fillInStackTrace): Check for
6057 zero return from backtrace().
6059 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
6061 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
6063 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
6064 before calling notifyAll().
6066 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
6068 Add missing files from last check-in:
6069 * java/awt/image/ImageConsumer.java: New file.
6070 * java/awt/image/ImageProducer.java: New file.
6071 * java/awt/image/ImageObserver.java: New file.
6073 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6075 Merged implementation of java.applet from classpath:
6076 * java/applet/Applet.java: New file.
6077 * java/applet/AppletContext.java: New file.
6078 * java/applet/AppletStub.java: New file.
6079 * java/applet/AudioClip.java: New file.
6081 * Makefile.am: Added new java.applet classes.
6082 * Makefile.in: Rebuilt.
6084 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6087 * java/util/ResourceBundle.java (getLocale): stub.
6088 * Makefile.am: Added new AWT classes.
6089 * Makefile.in: Rebuilt.
6090 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
6091 constructors. Fix toString() and paramString().
6092 * java/awt/AWTEventMulticaster.java: New class. Implemented.
6093 * java/awt/CheckboxGroup.java: New class.
6094 * java/awt/ColorModel.java: New class.
6095 * java/awt/Component.java: Added stubs for most methods. Implemented
6097 * java/awt/Container.java: ditto.
6098 * java/awt/ComponentOrientation.java: New class. Partly implemented.
6099 * java/awt/Cursor.java: ditto.
6100 * java/awt/Event.java: Fix paramString().
6101 * java/awt/EventQueue.java: New class. Implemented.
6102 * java/awt/Font.java: Added additional stub methods. Implemented
6104 * java/awt/FontMetrics.java: New class. Stubbed.
6105 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
6107 * java/awt/Insets.java: New class. Implemented.
6108 * java/awt/Menu.java: Add new methods. Partially implemented.
6109 * java/awt/MenuItem.java: Add new methods and fields. Partially
6111 * java/awt/MenuShortcut.java: New class. Implemented.
6112 * java/awt/Panel.java: New class. Placeholder.
6113 * java/awt/PopupMenu.java: New class. Stubbed.
6114 * java/awt/Rectangle.java: New class. Implemented.
6115 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
6116 * java/awt/event/ActionEvent.java: Implement paramString().
6117 * java/awt/event/AdjustmentEvent.java: Implement paramString().
6118 * java/awt/event/ComponentEvent.java: Implement paramString().
6119 * java/awt/event/ContainerEvent.java: Implement paramString().
6120 * java/awt/event/FocusEvent.java: Implement paramString().
6121 * java/awt/event/HierarchyBoundsAdapter.java: New class.
6122 * java/awt/event/HierarchyBoundsListener.java: New class.
6123 * java/awt/event/HierarchyEvent.java: New class.
6124 * java/awt/event/HierarchyListener.java: New class.
6125 * java/awt/event/InputMethodEvent.java: Implement paramString().
6126 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
6127 exception if !catchExceptions.
6128 * java/awt/event/ItemEvent.java: Implement paramString().
6129 * java/awt/event/KeyEvent.java: Implement paramString().
6130 * java/awt/event/MouseEvent.java: Implement paramString().
6131 * java/awt/event/PaintEvent.java: Implement paramString().
6132 * java/awt/event/TextEvent.java: Implement paramString().
6133 * java/awt/event/WindowEvent.java: Implement paramString().
6135 AWT Peer interfaces:
6136 * java/awt/peer/ButtonPeer.java: New file.
6137 * java/awt/peer/ListPeer.java: New file.
6138 * java/awt/peer/CanvasPeer.java: New file.
6139 * java/awt/peer/MenuBarPeer.java: New file.
6140 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
6141 * java/awt/peer/MenuComponentPeer.java: New file.
6142 * java/awt/peer/CheckboxPeer.java: New file.
6143 * java/awt/peer/MenuItemPeer.java: New file.
6144 * java/awt/peer/ChoicePeer.java: New file.
6145 * java/awt/peer/MenuPeer.java: New file.
6146 * java/awt/peer/ComponentPeer.java: Implemented.
6147 * java/awt/peer/PanelPeer.java: New file.
6148 * java/awt/peer/ContainerPeer.java: Implemented.
6149 * java/awt/peer/PopupMenuPeer.java: New file.
6150 * java/awt/peer/DialogPeer.java: New file.
6151 * java/awt/peer/ScrollPanePeer.java: New file.
6152 * java/awt/peer/FileDialogPeer.java: New file.
6153 * java/awt/peer/ScrollbarPeer.java: New file.
6154 * java/awt/peer/FontPeer.java: New file.
6155 * java/awt/peer/TextAreaPeer.java: New file.
6156 * java/awt/peer/FramePeer.java: Implemented.
6157 * java/awt/peer/TextComponentPeer.java: New file.
6158 * java/awt/peer/LabelPeer.java: New file.
6159 * java/awt/peer/TextFieldPeer.java: New file.
6160 * java/awt/peer/LightweightPeer.java: New file.
6161 * java/awt/peer/WindowPeer.java: Implemented.
6163 2000-07-06 Tom Tromey <tromey@cygnus.com>
6165 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
6166 Initialize static final String fields.
6168 2000-07-03 Tom Tromey <tromey@cygnus.com>
6170 * java/io/PrintWriter.java (print): Call write(String), not
6171 print(String). See PR libgcj/277.
6172 (print(String)): Use write, not out.write.
6174 2000-06-30 Tom Tromey <tromey@cygnus.com>
6176 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
6178 2000-06-27 Andrew Haley <aph@cygnus.com>
6180 * java/io/File.java (createTempFile): Close the FileDescriptor
6181 used to create a temp file. Fixes some of PR 203.
6182 * java/io/natFileDescriptorPosix.cc (open): Call garbage
6183 collection if we run out of file handles.
6185 2000-06-28 Warren Levy <warrenl@cygnus.com>
6187 * gnu/java/security/provider/Gnu.java: New file.
6188 * gnu/java/security/provider/SHA.java: New file.
6189 * gnu/java/security/provider/SHA1PRNG.java: New file.
6190 * Makefile.am: Added the above files.
6191 * Makefile.in: Rebuilt.
6193 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
6195 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
6197 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
6198 (destroyed_flag): Removed.
6199 (isDestroyed, removeGroup, removeThread): Test for parent == null.
6200 (activeCount): Added spec note.
6202 2000-06-27 Warren Levy <warrenl@cygnus.com>
6204 * java/security/Principal.java: New file.
6205 * Makefile.am: Added Principal.java.
6206 * Makefile.in: Rebuilt.
6208 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
6210 * java/awt/event/MouseEvent.java: Fixed coordinate space
6213 2000-06-27 Tom Tromey <tromey@cygnus.com>
6215 * java/io/PushbackInputStream.java (read): If there are characters
6216 in the buffer, don't also call super.read().
6217 * java/io/PushbackReader.java (read): If there are characters in
6218 the buffer, don't also call super.read().
6220 * java/lang/Double.java (valueOf): Call parseDouble().
6222 2000-06-26 Warren Levy <warrenl@cygnus.com>
6224 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
6225 (newVal): Renamed to newValue.
6226 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
6227 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
6228 (revokeNow): Renamed to invalidateRefs.
6229 * java/io/OptionalDataException.java: Updated FIXME.
6230 (eof): New placeholder field.
6232 * java/io/WriteAbortedException.java (message): Made transient.
6233 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
6234 * java/lang/Throwable.java (stackTrace): Made transient.
6235 * java/net/InetAddress.java: Made Serializable.
6236 * java/security/KeyPair.java: Made Serializable.
6237 * java/security/Provider.java: Replaced with Classpath version that
6238 implements serialization and proper methods.
6239 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
6240 (limits): Renamed to choiceLimits.
6242 2000-06-24 Tom Tromey <tromey@cygnus.com>
6244 * java/lang/natDouble.cc (parseDouble): Renamed from
6246 * java/lang/Double.java (parseDouble): Renamed from
6247 doubleValueOf. Now public.
6249 2000-06-23 Andrew Haley <aph@cygnus.com>
6251 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
6252 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
6254 2000-06-23 Tom Tromey <tromey@cygnus.com>
6256 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
6257 * java/lang/natDouble.cc: Always include <alloca.h>.
6258 Fix for PR libgcj/267.
6260 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
6262 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
6263 comply with classpath VM spec.
6264 (add(Group)): Rename to addGroup().
6265 * java/lang/Thread.java (Thread): Use addThread().
6266 * java/lang/natThread.cc (finish_): Use removeThread().
6268 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
6270 * java/lang/ThreadGroup.java: Merged with classpath.
6271 * prims.cc (_Jv_RunMain): Don't use `main_group'.
6272 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
6274 * java/lang/Thread.java (Thread): Bootstrap initial thread from
6275 ThreadGroup.root if Thread.currentThread is null. Honour the
6276 ThreadGroup's max priority setting.
6278 2000-06-18 Tom Tromey <tromey@cygnus.com>
6280 * java/lang/natClass.cc (forName): Removed dead code. Initialize
6281 returned class. For PR gcj/260.
6283 2000-06-16 Tom Tromey <tromey@cygnus.com>
6285 Fix for PR libgcj/261:
6286 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
6288 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
6289 argument. (This is a patch from long ago that somehow went
6292 2000-06-15 Tom Tromey <tromey@cygnus.com>
6294 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
6298 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
6300 Fix for PR java.lang/258:
6301 * prims.cc (_Jv_PrimClass): Set state of primitive class to
6302 JV_STATE_DONE, to prevent accidental initialization.
6303 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
6304 _Jv_InterfaceAssignableFrom if target is an interface and source is an
6305 interface or an abstract class. Remove redundant initializeClass calls.
6306 Remove duplicate if_idt test.
6307 (_Jv_InterfaceAssignableFrom): New function.
6308 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
6310 2000-05-31 Tom Tromey <tromey@cygnus.com>
6312 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
6313 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
6314 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
6315 (NUM_OBJECT_METHODS): New define.
6316 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
6317 `array_vtable' parameter. Added assertion.
6318 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
6321 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
6323 * gcj/cni.h: Include <string.h>.
6324 * defineclass.cc: Include <alloca.h>.
6325 * interpret.cc: Ditto.
6326 * gij.cc: Include <stdlib.h>.
6328 2000-05-30 Tom Tromey <tromey@cygnus.com>
6330 * include/name-finder.h: Include <sys/wait.h>.
6331 (_Jv_name_finder::pid): Now of type `pid_t'.
6332 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
6333 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
6336 2000-05-24 Warren Levy <warrenl@cygnus.com>
6338 * java/io/ObjectOutputStream.java (writeObject): Use component type
6339 when writing arrays.
6342 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6344 Fix for PR libgcj/226:
6345 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
6346 since this is an installed header.
6348 Fix for PR libgcj/228:
6349 * java/util/zip/ZipFile (getInputStream): Create inflater with
6352 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
6353 with DataFormatException.
6355 2000-05-20 Tom Tromey <tromey@cygnus.com>
6357 * Makefile.in: Rebuilt.
6358 * Makefile.am (hack1): Removed.
6359 (awto_files): Likewise.
6360 (libgcjawt_la_SOURCES): Likewise.
6361 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6362 (libgcjawt_la_DEPENDENCIES): Likewise.
6363 (libgcjawt_la_LIBADD): Likewise.
6364 (libgcjawt_la_LDFLAGS): Likewise.
6365 (libgcjawt_la_LINK): Likewise.
6366 ($(awt_java_source_files:.java=.class)): Likewise.
6367 (libgcj.zip): Don't depend on AWT files.
6368 (MOSTLYCLEANFILES): Don't include AWT files.
6369 ($(awto_files)): Removed.
6370 (nat_headers): Removed AWT files.
6371 (cond_awt_java_source_files): Removed.
6372 (ordinary_java_source_files): Added awt_java_source_files.
6373 * libgcj.spec.in (*lib): Removed -lgcjawt.
6374 * configure: Rebuilt.
6375 * configure.in: Removed --enable-java-awt option.
6377 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6379 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
6380 (ZipEntry): Copy the `name' field.
6381 (clone): Implement JDK1.2 method.
6382 (setCompressedSize): ditto.
6385 2000-05-19 Tom Tromey <tromey@cygnus.com>
6387 * java/io/BufferedWriter.java: Merged with Classpath.
6388 * java/io/BufferedOutputStream.java: Merged with Classpath.
6390 2000-05-16 Andrew Haley <aph@cygnus.com>
6392 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
6393 build_ia64_frame_state.
6394 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
6397 2000-05-15 Warren Levy <warrenl@cygnus.com>
6399 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
6400 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
6401 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
6402 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
6403 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
6404 * gnu/gcj/beans/editors/FontEditor.java: Removed.
6405 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
6406 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
6407 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
6408 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
6409 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
6410 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
6411 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
6412 * gnu/gcj/beans/editors/StringEditor.java: Removed.
6413 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
6414 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
6415 * gnu/gcj/io/NullOutputStream.java: Removed.
6416 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
6417 * gnu/gcj/lang/ArrayHelper.java: Removed.
6418 * gnu/gcj/lang/ClassHelper.java: Removed.
6419 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
6421 * gnu/java/beans/BeanInfoEmbryo.java: New file.
6422 * gnu/java/beans/EmptyBeanInfo.java: New file.
6423 * gnu/java/beans/ExplicitBeanInfo.java: New file.
6424 * gnu/java/beans/IntrospectionIncubator.java: New file.
6425 * gnu/java/beans/editors/ColorEditor.java: New file.
6426 * gnu/java/beans/editors/FontEditor.java: New file.
6427 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
6428 * gnu/java/beans/editors/NativeByteEditor.java: New file.
6429 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
6430 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
6431 * gnu/java/beans/editors/NativeIntEditor.java: New file.
6432 * gnu/java/beans/editors/NativeLongEditor.java: New file.
6433 * gnu/java/beans/editors/NativeShortEditor.java: New file.
6434 * gnu/java/beans/editors/StringEditor.java: New file.
6435 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
6436 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
6437 * gnu/java/io/NullOutputStream.java: New file.
6438 * gnu/java/io/ObjectIdentityWrapper.java: New file.
6439 * gnu/java/lang/ArrayHelper.java: New file.
6440 * gnu/java/lang/ClassHelper.java: New file.
6441 * gnu/java/lang/reflect/TypeSignature.java: New file.
6443 * Makefile.am: Updated for moving Classpath files from gnu/gcj
6444 namespace back to the original Classpath gnu/java namespace.
6445 * Makefile.in: Rebuilt.
6447 * java/beans/Beans.java: Namespace change.
6448 * java/beans/EventSetDescriptor.java: Namespace change.
6449 * java/beans/Introspector.java: Namespace change.
6450 * java/beans/PropertyEditorManager.java: Namespace change.
6451 * java/io/ObjectInputStream.java: Namespace change.
6452 * java/io/ObjectOutputStream.java: Namespace change.
6453 * java/io/ObjectStreamClass.java: Namespace change.
6454 * java/io/ObjectStreamField.java: Namespace change.
6456 2000-04-21 Warren Levy <warrenl@cygnus.com>
6458 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
6459 now that compiler patch is available.
6460 Removed unneeded System.loadLibrary.
6461 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
6462 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
6464 2000-04-19 Andrew Haley <aph@cygnus.com>
6466 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
6467 and target classes have been initialized.
6469 2000-04-19 Andrew Haley <aph@cygnus.com>
6471 * java/lang/String.java: implement Serializable, Comparable.
6472 (compareTo (Object)): New method.
6474 2000-04-19 Warren Levy <warrenl@cygnus.com>
6476 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
6477 instead of getField to retrieve non-public field.
6478 (getSerialPersistantFields): Ditto.
6480 2000-04-18 Warren Levy <warrenl@cygnus.com>
6482 * mauve-libgcj: Turned off object serialization tests temporarily
6483 due to compiler error.
6485 2000-04-17 Warren Levy <warrenl@cygnus.com>
6487 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
6488 to avoid build problem.
6490 * mauve-libgcj: Turned on object serialization tests.
6492 2000-04-17 Tom Tromey <tromey@cygnus.com>
6494 * libgcj.spec.in (*lib): Added -lgcjawt.
6496 2000-04-17 Andrew Haley <aph@cygnus.com>
6498 * Makefile.am: Add new files:
6499 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
6501 * Makefile.in: Rebuilt.
6503 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
6504 interface that has no implementations.
6505 Check for an attempt to assign an abstract class to an interface.
6507 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
6508 if we fail to find MessageDigest.getInstance ("SHA").
6510 * gnu/gcj/io/SimpleSHSStream.java: New file.
6511 * gnu/gcj/io/natSimpleSHSStream.java: New file.
6512 * gnu/gcj/io/shs.cc: New file.
6513 * gnu/gcj/io/shs.h: new file.
6515 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
6518 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
6519 punctuation from the classname of an array element.
6521 * gcj/javaprims.h: Add SimpleDigestStream.
6523 2000-04-17 Andrew Haley <aph@cygnus.com>
6525 * java/lang/natClass.cc (getPrivateField): Make recursive calls
6526 to getPrivateField for superclasses.
6528 2000-04-14 Andrew Haley <aph@cygnus.com>
6530 * Makefile.am: Add new files:
6531 java/io/ObjectOutputStream$PutField.h,
6532 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
6533 java/io/natObjectOutputStream.cc
6534 * Makefile.in: Rebuilt.
6535 * gcj/Makefile.in: Rebuilt.
6536 * include/Makefile.in: Rebuilt.
6537 * java/lang/Class.h (getPrivateField): New method.
6538 (getPrivateMethod): Ditto.
6539 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
6540 and java::io::ObjectStreamClass our friends.
6541 * java/lang/natClass.cc (getPrivateField): New method.
6542 (getPrivateMethod): Ditto.
6543 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
6544 * gcj/javaprims.h: Add serialization classes.
6545 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
6546 (setByteField): Ditto.
6547 (setCharField): Ditto.
6548 (setDoubleField): Ditto.
6549 (setFloatField): Ditto.
6550 (setIntField): Ditto.
6551 (setLongField): Ditto.
6552 (setShortField): Ditto.
6553 (setObjectField): Ditto.
6554 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
6556 (getByteField): Ditto.
6557 (getCharField): Ditto.
6558 (getDoubleField): Ditto.
6559 (getFloatField): Ditto.
6560 (getIntField): Ditto.
6561 (getLongField): Ditto.
6562 (getShortField): Ditto.
6563 (getObjectField): Ditto.
6564 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
6566 (getSerialPersistantFields): Ditto.
6567 (getDefinedSUID): Ditto.
6568 * java/io/natObjectOutputStream.cc: New file.
6569 * java/io/natObjectInputStream.cc: New file.
6571 2000-04-13 Warren Levy <warrenl@cygnus.com>
6573 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
6574 problems. Revert to previous version to reproduce and when fixed.
6576 2000-04-13 Warren Levy <warrenl@cygnus.com>
6578 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
6579 * gnu/gcj/io/NullOutputStream.java: New file.
6580 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
6581 * java/io/BlockDataException.java: New file.
6582 * java/io/Externalizable.java: New file.
6583 * java/io/InvalidClassException.java: New file.
6584 * java/io/InvalidObjectException.java: New file.
6585 * java/io/NotActiveException.java: New file.
6586 * java/io/NotSerializableException.java: New file.
6587 * java/io/ObjectInput.java: New file.
6588 * java/io/ObjectInputStream.java: New file.
6589 * java/io/ObjectInputValidation.java: New file.
6590 * java/io/ObjectOutput.java: New file.
6591 * java/io/ObjectOutputStream.java: New file.
6592 * java/io/ObjectStreamClass.java: New file.
6593 * java/io/ObjectStreamConstants.java: New file.
6594 * java/io/ObjectStreamField.java: New file.
6595 * java/io/Replaceable.java: New file.
6596 * java/io/Resolvable.java: New file.
6597 * java/io/SerializablePermission.java: New file.
6598 * java/io/WriteAbortedException.java: New file.
6599 * java/security/BasicPermission.java: New file.
6600 * java/security/DigestOutputStream.java: New file.
6601 * java/security/Guard.java: New file.
6602 * java/security/Permission.java: New file.
6603 * java/security/PermissionCollection.java: New file.
6604 * Makefile.am: Added above files.
6605 * Makefile.in: Rebuilt.
6607 * java/beans/Beans.java (instantiate): Activated serialization code.
6608 * java/lang/SecurityManager.java (checkPermission): New method.
6610 2000-04-12 Warren Levy <warrenl@cygnus.com>
6612 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
6613 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
6614 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
6615 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
6616 * gnu/gcj/beans/editors/ColorEditor.java: New file.
6617 * gnu/gcj/beans/editors/FontEditor.java: New file.
6618 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
6619 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
6620 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
6621 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
6622 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
6623 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
6624 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
6625 * gnu/gcj/beans/editors/StringEditor.java: New file.
6626 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
6627 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
6628 * gnu/gcj/lang/ArrayHelper.java: New file.
6629 * gnu/gcj/lang/ClassHelper.java: New file.
6630 * java/beans/BeanDescriptor.java: New file.
6631 * java/beans/BeanInfo.java: New file.
6632 * java/beans/Beans.java: New file.
6633 * java/beans/Customizer.java: New file.
6634 * java/beans/DesignMode.java: New file.
6635 * java/beans/EventSetDescriptor.java: New file.
6636 * java/beans/FeatureDescriptor.java: New file.
6637 * java/beans/IndexedPropertyDescriptor.java: New file.
6638 * java/beans/IntrospectionException.java: New file.
6639 * java/beans/Introspector.java: New file.
6640 * java/beans/MethodDescriptor.java: New file.
6641 * java/beans/ParameterDescriptor.java: New file.
6642 * java/beans/PropertyChangeEvent.java: New file.
6643 * java/beans/PropertyChangeListener.java: New file.
6644 * java/beans/PropertyChangeSupport.java: New file.
6645 * java/beans/PropertyDescriptor.java: New file.
6646 * java/beans/PropertyEditor.java: New file.
6647 * java/beans/PropertyEditorManager.java: New file.
6648 * java/beans/PropertyEditorSupport.java: New file.
6649 * java/beans/PropertyVetoException.java: New file.
6650 * java/beans/SimpleBeanInfo.java: New file.
6651 * java/beans/VetoableChangeListener.java: New file.
6652 * java/beans/VetoableChangeSupport.java: New file.
6653 * java/beans/Visibility.java: New file.
6654 * java/beans/beancontext/BeanContext.java: New file.
6655 * java/beans/beancontext/BeanContextChild.java: New file.
6656 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6657 * java/beans/beancontext/BeanContextChildSupport.java: New file.
6658 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6659 * java/beans/beancontext/BeanContextEvent.java: New file.
6660 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6661 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6662 * java/beans/beancontext/BeanContextProxy.java: New file.
6663 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6665 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6666 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6668 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6669 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6671 * java/beans/beancontext/BeanContextServices.java: New file.
6672 * java/beans/beancontext/BeanContextServicesListener.java: New file.
6673 * java/util/AbstractCollection.java: New file.
6674 * java/util/AbstractList.java: New file.
6675 * java/util/Arrays.java: New file.
6676 * Makefile.am: Added above files.
6677 * Makefile.in: Rebuilt.
6679 2000-04-11 Warren Levy <warrenl@cygnus.com>
6681 * java/awt/AWTError.java: New file.
6682 * java/awt/AWTEvent.java: New file.
6683 * java/awt/AWTException.java: New file.
6684 * java/awt/ActiveEvent.java: New file.
6685 * java/awt/Adjustable.java: New file.
6686 * java/awt/BorderLayout.java: New file.
6687 * java/awt/Color.java: New file.
6688 * java/awt/Component.java: New file.
6689 * java/awt/Container.java: New file.
6690 * java/awt/Dimension.java: New file.
6691 * java/awt/Event.java: New file.
6692 * java/awt/Font.java: New file.
6693 * java/awt/Frame.java: New file.
6694 * java/awt/Graphics.java: New file.
6695 * java/awt/IllegalComponentStateException.java: New file.
6696 * java/awt/Image.java: New file.
6697 * java/awt/ItemSelectable.java: New file.
6698 * java/awt/LayoutManager.java: New file.
6699 * java/awt/LayoutManager2.java: New file.
6700 * java/awt/Menu.java: New file.
6701 * java/awt/MenuBar.java: New file.
6702 * java/awt/MenuComponent.java: New file.
6703 * java/awt/MenuContainer.java: New file.
6704 * java/awt/MenuItem.java: New file.
6705 * java/awt/Paint.java: New file.
6706 * java/awt/PaintContext.java: New file.
6707 * java/awt/Point.java: New file.
6708 * java/awt/Rectangle.java: New file.
6709 * java/awt/Shape.java: New file.
6710 * java/awt/TextArea.java: New file.
6711 * java/awt/TextComponent.java: New file.
6712 * java/awt/Toolkit.java: New file.
6713 * java/awt/Transparency.java: New file.
6714 * java/awt/Window.java: New file.
6715 * java/awt/natToolkit.cc: New file.
6716 * java/awt/event/AWTEventListener.java: New file.
6717 * java/awt/event/ActionEvent.java: New file.
6718 * java/awt/event/ActionListener.java: New file.
6719 * java/awt/event/AdjustmentEvent.java: New file.
6720 * java/awt/event/AdjustmentListener.java: New file.
6721 * java/awt/event/ComponentAdapter.java: New file.
6722 * java/awt/event/ComponentEvent.java: New file.
6723 * java/awt/event/ComponentListener.java: New file.
6724 * java/awt/event/ContainerAdapter.java: New file.
6725 * java/awt/event/ContainerEvent.java: New file.
6726 * java/awt/event/ContainerListener.java: New file.
6727 * java/awt/event/FocusAdapter.java: New file.
6728 * java/awt/event/FocusEvent.java: New file.
6729 * java/awt/event/FocusListener.java: New file.
6730 * java/awt/event/InputEvent.java: New file.
6731 * java/awt/event/InputMethodEvent.java: New file.
6732 * java/awt/event/InputMethodListener.java: New file.
6733 * java/awt/event/InvocationEvent.java: New file.
6734 * java/awt/event/ItemEvent.java: New file.
6735 * java/awt/event/ItemListener.java: New file.
6736 * java/awt/event/KeyAdapter.java: New file.
6737 * java/awt/event/KeyEvent.java: New file.
6738 * java/awt/event/KeyListener.java: New file.
6739 * java/awt/event/MouseAdapter.java: New file.
6740 * java/awt/event/MouseEvent.java: New file.
6741 * java/awt/event/MouseListener.java: New file.
6742 * java/awt/event/MouseMotionAdapter.java: New file.
6743 * java/awt/event/MouseMotionListener.java: New file.
6744 * java/awt/event/PaintEvent.java: New file.
6745 * java/awt/event/TextEvent.java: New file.
6746 * java/awt/event/TextListener.java: New file.
6747 * java/awt/event/WindowAdapter.java: New file.
6748 * java/awt/event/WindowEvent.java: New file.
6749 * java/awt/event/WindowListener.java: New file.
6750 * java/awt/geom/Dimension2D.java: New file.
6751 * java/awt/geom/Point2D.java: New file.
6752 * java/awt/peer/ComponentPeer.java: New file.
6753 * java/awt/peer/ContainerPeer.java: New file.
6754 * java/awt/peer/FramePeer.java: New file.
6755 * java/awt/peer/WindowPeer.java: New file.
6756 * java/util/Collection.java: New file.
6757 * java/util/Comparator.java: New file.
6758 * java/util/Iterator.java: New file.
6759 * java/util/List.java: New file.
6760 * java/util/ListIterator.java: New file.
6761 * Makefile.am: Added above files.
6762 * Makefile.in: Rebuilt.
6764 2000-04-10 Warren Levy <warrenl@cygnus.com>
6766 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6767 * java/lang/FirstThread.java: Ditto.
6768 * java/lang/StringBuffer.java: Ditto.
6769 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6771 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6772 Special case handled in java.math.BigInteger.
6773 * java/math/BigInteger.java (divide): Handle the special case when
6774 dividing by 1 and the high bit of the dividend is set.
6775 (setShiftRight): Handle case when count == 0.
6777 2000-04-05 Andrew Haley <aph@cygnus.com>
6779 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6782 2000-04-05 Andrew Haley <aph@cygnus.com>
6784 * sysdep/ia64.c (rse_address_add): Delete.
6785 (IS_NaT_COLLECTION_ADDR): Delete.
6786 (ia64_backtrace_helper): check for null unwind_info.
6788 * sysdep/ia64-frame.h: add calc_caller_bsp.
6790 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6793 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6794 (_Jv_remI): Likewise.
6795 (_Jv_divJ): Likewise.
6796 (_Jv_remJ): Likewise.
6798 * interpret.cc (continue1): Use divide subroutines to guarantee
6799 correct Java standard behaviour.
6800 Floating-point division should not abort; make it so.
6802 2000-03-29 Tom Tromey <tromey@cygnus.com>
6804 * configure: Rebuilt.
6805 * configure.in: Test against `libgcj_sjlj', not
6806 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6807 to be set even when using sjlj.
6809 2000-03-24 Andrew Haley <aph@cygnus.com>
6811 * Makefile.am: Add file addr2name.awk.
6812 * Makefile.in: Rebuilt.
6813 * addr2name.awk: New file.
6814 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6816 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6819 2000-03-22 Andrew Haley <aph@cygnus.com>
6821 * configure.host: Add -funwind-tables for IA64.
6822 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6823 * Makefile.in: Rebuilt.
6824 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6825 * sysdep/ia64.c: New file.
6826 * sysdep/ia64-frame.h: New file.
6827 * configure.in: Add sysdep/ia64.c for ia64.
6828 * configure: Rebuilt.
6830 2000-03-17 Andrew Haley <aph@cygnus.com>
6832 * java/lang/natString.cc: Remove `register' keyword.
6833 interpret.cc: ditto.
6835 2000-03-16 Andrew Haley <aph@cygnus.com>
6837 * configure.host (ia64): Enable interpreter.
6839 2000-03-14 Hans Boehm <boehm@acm.org>
6841 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6843 2000-03-14 Andrew Haley <aph@cygnus.com>
6845 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6848 2000-03-10 Andrew Haley <aph@cygnus.com>
6850 * java/lang/ieeefp.h: Import latest version from fdlibm.
6852 2000-03-14 Andrew Haley <aph@cygnus.com>
6854 * prims.cc (_Jv_ThrowSignal): New function.
6855 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6857 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6858 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6859 * include/ppc-signal.h: New file.
6861 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6863 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6864 * java/lang/natThread.java (initialize_native): Cast `data' to
6866 * gnu/gcj/RawData.java: Clarify documentation.
6868 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6869 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6870 `jarFile', not `jarFileURL'.
6872 2000-05-15 Andrew Haley <aph@cygnus.com>
6874 * include/ppc-signal.h: New file.
6876 2000-05-11 Tom Tromey <tromey@cygnus.com>
6878 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6879 file headers, don't include `size' in the skip call.
6881 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6883 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6884 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6886 (replace): Reimplemented. Fix javadoc.
6887 (reverse): Call ensureCapacity_unsynchronized().
6888 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6890 (replace): Calculate length for arraycopy() correctly.
6892 2000-05-09 Tom Tromey <tromey@cygnus.com>
6894 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6896 (insert(int,char[],int,int): New method.
6897 (delete): New method from Classpath.
6898 (deleteCharAt): Likewise.
6899 (substring): Likewise.
6900 (shared): No longer private.
6901 Added JavaDoc comments from Classpath.
6902 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6905 2000-05-07 Tom Tromey <tromey@cygnus.com>
6907 * Makefile.in: Rebuilt.
6908 * Makefile.am (LIBLINK): New macro.
6909 (libgcj_la_LINK): Use it.
6910 (libgcjawt_la_LINK): Likewise.
6912 2000-05-06 Tom Tromey <tromey@cygnus.com>
6914 * Makefile.in: Rebuilt.
6915 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6917 2000-05-05 Tom Tromey <tromey@cygnus.com>
6919 Fix for PR libgcj/220:
6920 * Makefile.in: Rebuilt.
6921 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6922 (jv_convert_LDFLAGS): Likewise.
6923 (libgcj_la_LDFLAGS): Likewise.
6924 (GCJLINK): New macro.
6925 (jv_convert_LINK): Use it.
6926 (gij_LINK): Likewise.
6927 (libgcj_la_LINK): New macro.
6928 (libgcjawt_la_LINK): Likewise.
6930 2000-05-04 Tom Tromey <tromey@cygnus.com>
6932 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6934 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6938 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6940 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6941 (_Jv_IsAssignableFrom): Ditto.
6942 (_Jv_IsInstanceOf): Ditto.
6943 (_Jv_CheckCast): Ditto.
6944 (_Jv_CheckArrayStore): Ditto.
6945 * java/lang/Class.h (_Jv_InitClass): Ditto.
6946 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6951 (_Jv_MonitorExit): Ditto.
6952 * boehm.cc (_Jv_MarkObj): Ditto.
6953 (_Jv_MarkObj): Ditto.
6954 (_Jv_MarkArray): Ditto.
6955 * prims.cc (_Jv_AllocObject): Ditto.
6956 (_Jv_NewObjectArray): Ditto.
6957 (_Jv_NewPrimArray): Ditto.
6958 (_Jv_Malloc): Ditto.
6959 (_Jv_Realloc): Ditto.
6960 (_Jv_MallocUnchecked): Ditto.
6966 2000-05-04 Tom Tromey <tromey@cygnus.com>
6968 * java/util/Locale.java (Locale): Don't explicitly check for
6970 * java/util/Hashtable.java (containsKey): Don't explicitly check
6973 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6975 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6977 * java/text/StringCharacterIterator.java
6978 (StringCharacterIterator): Don't check for null.
6979 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6981 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6982 check for null pointer.
6983 (leaveGroup): Likewise.
6984 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6986 (setData): Likewise.
6987 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6990 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6992 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6993 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6994 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6995 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6996 -rpath for in-gcc builds.
6997 * Makefile.in: Rebuilt.
6999 2000-04-28 Tom Tromey <tromey@cygnus.com>
7001 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
7004 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
7006 * libjava/java/lang/String.java (toString): Remove `final' hack.
7008 2000-04-05 Tom Tromey <tromey@cygnus.com>
7010 Runtime support for PR gcj/2:
7011 * prims.cc (_Jv_ThrowNullPointerException): New function.
7012 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
7014 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
7016 * prims.cc (_Jv_NewObjectArray): Fix typo.
7018 2000-04-26 Tom Tromey <tromey@cygnus.com>
7020 * Makefile.in: Rebuilt.
7021 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
7023 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
7025 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
7028 2000-04-22 Anthony Green <green@cygnus.com>
7030 * include/jvm.h (__builtin_expect): Define as unused for now.
7031 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
7035 (_Jv_MonitorExit): Ditto.
7036 * boehm.cc (_Jv_MarkObj): Ditto.
7037 (_Jv_MarkObj): Ditto.
7038 (_Jv_MarkArray): Ditto.
7039 (_Jv_AllocBytes): Ditto.
7040 * prims.cc (_Jv_AllocObject): Ditto.
7041 (_Jv_NewObjectArray): Ditto.
7042 (_Jv_NewPrimArray): Ditto.
7043 (_Jv_Malloc): Ditto.
7044 (_Jv_Realloc): Ditto.
7045 (_Jv_MallocUnchecked): Ditto.
7051 * include/Makefile.in: Rebuilt.
7052 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
7054 2000-04-21 Tom Tromey <tromey@cygnus.com>
7056 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
7057 Yet another new version from Classpath.
7059 Fix for PR libgcj/15:
7060 * java/util/natGregorianCalendar.cc (_REENTRANT,
7061 _POSIX_PTHREAD_SEMANTICS): Don't define.
7062 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
7063 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
7065 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
7067 * configure: Rebuilt.
7068 * configure.in: If using POSIX threads, define _REENTRANT if
7069 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
7070 GETHOSTBYNAME_R_NEEDS_REENTRANT.
7072 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7073 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
7074 version from Classpath.
7076 Fix for PR libgcj/213:
7077 * Makefile.in: Rebuilt.
7078 * Makefile.am (gij_SOURCES): Added gij.cc.
7079 (EXTRA_gij_SOURCES): Removed.
7080 (gij_LDADD): Removed gij.lo.
7081 (gij_DEPENDENCIES): Likewise.
7082 ($(gij_OBJECTS)): Depend on nat_headers.
7084 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
7085 `setURL', not `url.set'.
7087 2000-04-20 Tom Tromey <tromey@cygnus.com>
7089 Fix for PR java.io/204:
7090 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7091 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
7094 Fix for PR libgcj/212:
7095 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
7096 * include/jvm.h (_Jv_word, _Jv_word2): Define.
7097 * java/lang/Class.h (_Jv_word): Declare.
7099 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
7101 2000-04-19 Tom Tromey <tromey@cygnus.com>
7103 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
7104 doesn't have a loader.
7106 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
7108 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
7109 MAYBE_MARK to ptr_t, for compatibility with new GC version.
7111 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
7113 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
7115 (available): Initialize `where' to prevent bogus compiler warning.
7117 2000-04-12 Tom Tromey <tromey@cygnus.com>
7119 * java/lang/natString.cc (intern): Temporarily disable finalizer
7122 * java/lang/natString.cc (unintern): Added `obj' argument.
7123 (intern): Register finalizer for string.
7124 * java/lang/String.java (unintern): Now static; added obj
7127 2000-04-11 Tom Tromey <tromey@cygnus.com>
7129 * java/util/Vector.java (VectorEnumeration): Now `final'.
7130 * java/util/Hashtable.java (HashtableEntry): Now `final'.
7131 (HashtableEnumeration): Likewise.
7132 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
7133 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
7135 2000-04-10 Warren Levy <warrenl@cygnus.com>
7137 * java/io/ObjectStreamException.java: New file.
7138 * java/io/OptionalDataException.java: New file.
7139 * java/io/StreamCorruptedException.java: New file.
7140 * java/math/BigDecimal.java: New file.
7141 * java/sql/CallableStatement.java: New file.
7142 * java/sql/Connection.java: New file.
7143 * java/sql/DataTruncation.java: New file.
7144 * java/sql/DatabaseMetaData.java: New file.
7145 * java/sql/Date.java: New file.
7146 * java/sql/Driver.java: New file.
7147 * java/sql/DriverManager.java: New file.
7148 * java/sql/DriverPropertyInfo.java: New file.
7149 * java/sql/PreparedStatement.java: New file.
7150 * java/sql/ResultSet.java: New file.
7151 * java/sql/ResultSetMetaData.java: New file.
7152 * java/sql/SQLException.java: New file.
7153 * java/sql/SQLWarning.java: New file.
7154 * java/sql/Statement.java: New file.
7155 * java/sql/Time.java: New file.
7156 * java/sql/Timestamp.java: New file.
7157 * java/sql/Types.java: New file.
7158 * Makefile.am: Added above new files.
7159 * Makefile.in: Rebuilt.
7161 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
7162 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
7163 DatagramSocket constructor instead of null.
7165 2000-04-08 Anthony Green <green@cygnus.com>
7167 * include/posix-threads.h (_Jv_MutexUnlock): Replace
7170 2000-04-08 Anthony Green <green@cygnus.com>
7172 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
7173 (_Jv_MutexUnlock): Ditto.
7174 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
7175 (_Jv_MutexUnlock): Ditto.
7177 2000-04-08 Anthony Green <green@cygnus.com>
7179 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
7180 (ensureCapacity_unsynchronized): New private method.
7181 (append): Use ensureCapacity_unsynchronized.
7183 2000-04-08 Tom Tromey <tromey@cygnus.com>
7185 * Makefile.in: Rebuilt.
7186 * Makefile.am (awt_java_source_files): Added new files.
7187 * java/awt/IllegalComponentStateException.java: New file.
7188 * java/awt/ItemSelectable.java: New file.
7189 * java/awt/event/WindowEvent.java: Finished.
7190 * java/awt/event/TextEvent.java: Finished.
7191 * java/awt/event/ContainerEvent.java: New file.
7192 * java/awt/Component.java (getX, getY): New methods.
7193 * java/awt/event/PaintEvent.java: New file.
7194 * java/awt/event/MouseEvent.java: New file.
7195 * java/awt/ActiveEvent.java: New file.
7196 * java/awt/event/KeyEvent.java: Finished.
7197 * java/awt/event/ItemEvent.java: New file.
7198 * java/awt/Adjustable.java: New file.
7199 * java/awt/event/InputMethodEvent.java: New file.
7200 * java/awt/event/InputEvent.java: Finished.
7201 * java/awt/event/FocusEvent.java: New file.
7202 * java/awt/event/MouseMotionAdapter.java: New file.
7203 * java/awt/event/MouseAdapter.java: New file.
7204 * java/awt/event/KeyAdapter.java: New file.
7205 * java/awt/event/FocusAdapter.java: New file.
7206 * java/awt/event/ContainerAdapter.java: New file.
7207 * java/awt/event/ComponentEvent.java: Finished.
7208 * java/awt/event/AdjustmentEvent.java: New file.
7209 * java/awt/event/ComponentAdapter.java: New file.
7210 * java/awt/event/ActionEvent.java: Finished.
7211 * java/awt/event/MouseMotionListener.java: New file.
7212 * java/awt/event/MouseListener.java: New file.
7213 * java/awt/event/ItemListener.java: New file.
7214 * java/awt/event/InputMethodListener.java: New file.
7215 * java/awt/event/ContainerListener.java: New file.
7216 * java/awt/event/FocusListener.java: New file.
7217 * java/awt/event/ComponentListener.java: New file.
7218 * java/awt/event/AWTEventListener.java: New file.
7219 * java/awt/event/AdjustmentListener.java: New file.
7221 2000-04-08 Anthony Green <green@cygnus.com>
7223 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
7224 check when we have to.
7226 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
7229 * java/util/StringTokenizer.java: Minor optimization. Eliminates
7232 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
7233 inline hasMoreElements.
7235 2000-04-05 Tom Tromey <tromey@cygnus.com>
7237 * configure: Rebuilt.
7238 * configure.in: Recognize --enable-java-awt.
7239 (AWT): New conditional.
7240 * Makefile.in: Rebuilt.
7241 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
7243 (libgcjawt_la_SOURCES): New macro.
7244 (EXTRA_libgcjawt_la_SOURCES): Likewise.
7245 (libgcjawt_la_DEPENDENCIES): Likewise.
7246 (libgcjawt_la_LIBADD): Likewise.
7247 (libgcjawt_la_LDFLAGS): Likewise.
7248 (libgcj.zip): Depend on cond_java_awt_source_files
7249 (cond_awt_java_source_files): New macro.
7250 (MOSTLYCLEANFILES): Added awto_files.
7251 (awto_files): New macro. Use where javao_files used.
7252 (nat_headers): Use cond_awt_java_source_files.
7254 2000-04-04 Tom Tromey <tromey@cygnus.com>
7256 * Makefile.in: Rebuilt.
7257 * Makefile.am (awt_java_source_files): Added AWTException.java.
7258 * java/awt/AWTException.java: New file.
7260 2000-04-03 Tom Tromey <tromey@cygnus.com>
7262 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
7263 commentary from Alex.
7265 * Makefile.in: Rebuilt.
7266 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
7269 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
7271 * configure: Rebuilt.
7272 * configure.in: Add --disable-jvmpi.
7273 * include/config.h.in: Rebuilt.
7274 * acconfig.h: Add ENABLE_JVMPI.
7276 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
7277 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
7278 (_Jv_JVMPI_Notify_THREAD_END): New define.
7279 (_Jv_JVMPI_Notify_THREAD_END): New define.
7280 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
7281 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7282 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7284 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
7287 * java/lang/natThread.cc: Include JVMPI headers if necessary.
7288 (finish_): Generate JVMPI thread end events.
7289 (run_): Generate JVMPI thread start events.
7290 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
7291 preloaded JNI library.
7292 Include JVMPI headers if necessary.
7293 (run): Generate JVMPI thread start events.
7295 * boehm.cc: Define GC_disable and GC_enable.
7296 (_Jv_DisableGC): New function.
7297 (_Jv_EnableGC): New function.
7298 (disable_gc_mutex): Declare.
7299 * nogc.cc (_Jv_DisableGC): New function.
7300 (_Jv_EnableGC): New function.
7302 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
7303 (_Jv_JVMPI_Interface): Define.
7304 (jvmpiEnableEvent): New function.
7305 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
7307 * include/jvmpi.h: New file.
7309 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
7311 * Makefile.in: New #defines and friends for Thread.h.
7312 * Makefile.am: Ditto.
7313 * posix-threads.cc: (struct starter): Remove `object'.
7314 (_Jv_CondWait): Use interruptable condition variables and new
7315 recursive mutexes. New return codes on interrupt or non-ownership
7317 (_Jv_CondNotify): Ditto.
7318 (_Jv_CondNotifyAll): Ditto.
7319 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
7320 the target thread by signaling its wait condition.
7321 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
7322 not the starter struct. Initialize wait_mutex and wait_cond.
7323 (_Jv_MutexLock): New recursive mutex implementation. Moved from
7325 (_Jv_MutexUnlock): Ditto.
7326 (really_start): Set info->data->thread from pthread_self() to work
7327 around a race condition. Destroy wait_mutex and wait_cond when run()
7329 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
7330 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
7332 startable_flag: New private field.
7333 (Thread): Initialize `startable_flag'.
7334 (toString): Check for null thread group.
7335 * java/lang/natThread.cc: (struct natThread): New fields
7336 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
7337 (class locker): Removed.
7338 (initialize_native): Initialize `join_cond' and `join_mutex'.
7339 (interrupt): Now just calls _Jv_ThreadInterrupt().
7340 (join): Simplified. Just wait on the target thread's join condition.
7341 (finish_): Remove join list code. Unset thread group. Signal
7342 potential joiners by notifying the dying threads join_cond.
7343 (start): Check for illegal restarts.
7344 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
7346 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
7347 #defines and #ifdefs.
7348 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
7349 `wait_mutex', `next'.
7350 (struct _Jv_ConditionVariable_t): Define as a struct instead of
7351 directly mapping to pthread_cond_t.
7352 (struct _Jv_Mutex_t): New recursive implementation.
7353 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
7354 _Jv_HaveCondDestroy: Never define this for posix-threads.
7355 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
7356 (_Jv_CondNotifyAll): Ditto.
7357 (_Jv_MutexLock): Ditto.
7358 (_Jv_MutexUnlock): Ditto.
7359 (_Jv_MutexInit): Changed to reflect new mutex implementation.
7360 (_Jv_MutexDestroy): Ditto.
7361 (_Jv_CondDestroy): Removed.
7362 (_Jv_PthreadGetMutex): Removed.
7363 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
7364 error. Add a FIXME about this.
7365 (_Jv_CondNotifyAll): Ditto.
7366 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
7367 _JV_NOT_OWNER on other errors. Add FIXME.
7369 2000-03-26 Tom Tromey <tromey@cygnus.com>
7371 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
7373 (call): Don't throw exception here.
7375 2000-03-26 Tom Tromey <tromey@cygnus.com>
7377 * java/lang/mprec.h: Use SIZEOF_VOID_P.
7378 * interpret.cc: Use SIZEOF_VOID_P.
7379 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
7380 (_Jv_loadLong): Likewise.
7381 (_Jv_storeDouble): Likewise.
7382 * configure: Rebuilt.
7383 * configure.in: Check size of void*.
7385 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
7387 2000-03-26 Hans Boehm <boehm@acm.org>
7389 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
7390 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
7392 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
7393 __IEEE_LITTLE_ENDIAN appropriately on IA64.
7394 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
7395 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
7397 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
7398 (FFI_RAW_SIZE): Likewise.
7399 (_Jv_InterpMethod::ncode): Use them.
7400 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
7401 STORED): Define differently on a 64 bit machine.
7402 (continue1): Use ffi_java_raw_call when appropriate.
7404 2000-03-24 Warren Levy <warrenl@cygnus.com>
7406 * java/math/BigInteger.java(divide): Handle the special case when
7407 dividing by 1 and the high bit of the dividend is set.
7408 (setShiftRight): Handle case when count == 0.
7410 2000-03-24 Warren Levy <warrenl@cygnus.com>
7412 * java/awt/Font.java(isBold): Fix syntax error.
7414 * java/awt/Frame.java(postEvent): ditto.
7415 * java/awt/Menu.java(postEvent): ditto.
7416 * java/awt/MenuBar.java(postEvent): ditto.
7417 * java/awt/Toolkit.java(init): Included a stub.
7419 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7421 * java/awt/Event.java: Add all the event type constants.
7422 (Event): Implemented constructors.
7423 (controlDown): Implemented.
7424 (metaDown): Implemented.
7425 (paramString): Stubbed.
7426 (shiftDown): Implemented.
7427 (toString): Implemented.
7428 (translate): Implemented.
7430 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7432 * java/lang/natClass.cc (isInstance): Initialize `this'.
7433 (isAssignableFrom): Initialize `this' and `klass'.
7434 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
7435 implemented by any loaded class, so return false.
7436 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
7437 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
7439 2000-03-19 Warren Levy <warrenl@cygnus.com>
7441 * java/awt/Color.java: Specified java.io for Serializable.
7442 * java/awt/Toolkit.java: Imported java.net.URL.
7444 2000-03-19 Warren Levy <warrenl@cygnus.com>
7446 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
7448 2000-03-16 Warren Levy <warrenl@cygnus.com>
7450 * java/awt/Color.java: New file.
7451 * java/awt/Graphics.java: New file.
7452 * java/awt/Image.java: New file.
7453 * java/awt/Paint.java: New file.
7454 * java/awt/PaintContext.java: New file.
7455 * java/awt/Transparency.java: New file.
7456 * java/util/Collection.java: New file.
7457 * java/util/Comparator.java: New file.
7458 * java/util/Iterator.java: New file.
7459 * java/util/List.java: New file.
7460 * java/util/ListIterator.java: New file.
7461 * Makefile.am: Added above new files.
7462 * Makefile.in: Rebuilt.
7464 * java/awt/Font.java (PLAIN): New field.
7466 (ITALIC): New field.
7467 (ROMAN_BASELINE): New field.
7468 (CENTER_BASELINE): New field.
7469 (HANGING_BASELINE): New field.
7473 (pointSize): New field.
7474 (Font): Implemented constructor.
7475 (isPlain): Implemented method.
7476 (isBold): Implemented method.
7477 (isItalic): Implemented method.
7478 (getName): Implemented method.
7479 (getStyle): Implemented method.
7480 (getSize): Implemented method.
7481 (getSize2D): Implemented method.
7483 * java/awt/Frame.java (getFont): Stubbed.
7484 (postEvent): Stubbed.
7486 * java/awt/Menu.java (postEvent): Stubbed.
7487 * java/awt/MenuBar.java (getFont): Stubbed.
7488 (postEvent): Stubbed.
7489 * java/awt/Toolkit.java (getImage): Added abstract method.
7491 2000-03-15 Tom Tromey <tromey@cygnus.com>
7493 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
7495 * prims.cc (win32_exception_handler): Reformatted.
7497 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
7498 (_Jv_HaveMutexDestroy): Likewise.
7500 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
7502 * java/io/natFileDescriptorWin32.cc: New file.
7503 * java/io/natFileWin32.cc: New file.
7504 * java/net/natInetAddress.cc: Added conditional inclusion of
7505 Windows / Winsock headers.
7506 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
7507 inclusion of Windows / Winsock headers.
7508 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
7509 Windows / Winsock headers.
7510 * include/win32-signal.h: New file.
7511 * include/win32-threads.h: New file.
7512 * win32-threads.cc: New file.
7513 * exception.cc (win32_get_restart_frame): New function.
7514 * prims.cc (win32_exception_handler): New function.
7515 (main_init) Performs Winsock initialisation.
7516 (main_init) Installs exeception handler.
7518 2000-03-14 Tom Tromey <tromey@cygnus.com>
7520 * jni.cc (mangled_name): Fixed assertion.
7521 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
7522 turned assert into actual failure.
7524 2000-03-09 Warren Levy <warrenl@cygnus.com>
7526 * java/security/Key.java(serialVersionUID): Set to 0 for now.
7527 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
7528 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
7530 2000-03-09 Warren Levy <warrenl@cygnus.com>
7532 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
7533 * java/security/DigestException.java: New file.
7534 * java/security/GeneralSecurityException.java: New file.
7535 * java/security/InvalidAlgorithmParameterException.java: New file.
7536 * java/security/InvalidKeyException.java: New file.
7537 * java/security/InvalidParameterException.java: New file.
7538 * java/security/Key.java: New file.
7539 * java/security/KeyException.java: New file.
7540 * java/security/KeyPair.java: New file.
7541 * java/security/KeyPairGenerator.java: New file.
7542 * java/security/KeyPairGeneratorSpi.java: New file.
7543 * java/security/NoSuchProviderException.java: New file.
7544 * java/security/PrivateKey.java: New file.
7545 * java/security/Provider.java: New file.
7546 * java/security/PublicKey.java: New file.
7547 * java/security/SecureRandom.java: New file.
7548 * java/security/Security.java: New file.
7549 * java/security/Signature.java: New file.
7550 * java/security/SignatureException.java: New file.
7551 * java/security/interfaces/DSAKey.java: New file.
7552 * java/security/interfaces/DSAParams.java: New file.
7553 * java/security/interfaces/DSAPrivateKey.java: New file.
7554 * java/security/interfaces/DSAPublicKey.java: New file.
7555 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
7556 * java/security/interfaces/RSAPrivateKey.java: New file.
7557 * java/security/interfaces/RSAPublicKey.java: New file.
7558 * java/security/spec/AlgorithmParameterSpec.java: New file.
7559 * java/security/spec/InvalidKeySpecException.java: New file.
7560 * java/security/spec/InvalidParameterSpecException.java: New file.
7561 * java/security/spec/KeySpec.java: New file.
7562 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
7563 * java/security/spec/RSAPrivateKeySpec.java: New file.
7564 * java/security/spec/RSAPublicKeySpec.java: New file.
7565 * Makefile.am: Added above java.security files.
7566 * Makefile.in: Rebuilt.
7568 * java/security/MessageDigest.java: Rewritten.
7569 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
7571 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7575 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7577 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
7578 _Jv_PrepareConstantTimeTables.
7579 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
7580 classes should have an IDT, so don't return if klass is an array
7583 2000-03-08 Tom Tromey <tromey@cygnus.com>
7585 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
7586 of `void' to be created.
7588 2000-03-08 Warren Levy <warrenl@cygnus.com>
7590 * java/math/BigInteger.java(signum): Handle zero properly.
7592 2000-03-07 Tom Tromey <tromey@cygnus.com>
7594 * All files: Updated copyright information.
7595 * COPYING: New file.
7596 * COPYING.LIB: Removed.
7597 * LIBGCJ_LICENSE: We now use GPL + special exception.
7599 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7601 * resolve.cc (_Jv_SearchMethodInClass): New function.
7602 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
7603 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
7605 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7607 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
7608 (struct _Jv_ifaces): New declaration.
7609 JV_CLASS: New macro definition.
7610 (getComponentType): Relocate below isArray() for inlining.
7611 (getModifiers): Declare `inline'.
7612 (getSuperclass): Ditto.
7614 (isPrimitive): Ditto.
7615 (_Jv_IsAssignableFrom): New prototype.
7616 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
7618 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
7619 Check for JV_STATE_DONE before invoking initializeClass().
7620 (_Jv_PrepareConstantTimeTables): New prototype.
7621 (_Jv_GetInterfaces): Ditto.
7622 (_Jv_GenerateITable): Ditto.
7623 (_Jv_GetMethodString): Ditto.
7624 (_Jv_AppendPartialITable): Ditto.
7625 (_Jv_FindIIndex): Ditto.
7626 depth, ancestors, idt: New class fields.
7628 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
7629 inline function `_Jv_IsAssignableFrom'. Use that function.
7630 (isInstance): Declare `inline'.
7631 (initializeClass): Get lock on class before checking `state'. Unlock
7632 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
7634 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
7635 (_Jv_IsAssignableFrom): New inline function. Test assignability using
7636 class->depth and ancestor table.
7637 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7638 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7639 _Jv_IsAssignableFrom.
7640 (_Jv_CheckArrayStore): Ditto.
7641 (_Jv_LookupInterfaceMethodIdx): New function.
7642 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7643 (_Jv_PrepareConstantTimeTables): New function.
7644 (_Jv_IndexOf): Ditto.
7645 (_Jv_GetInterfaces): Ditto.
7646 (_Jv_GenerateITable): Ditto.
7647 (_Jv_GetMethodString): Ditto.
7648 (_Jv_AppendPartialITable): Ditto.
7649 iindex_mutex, iindex_mutex_initialized: New static fields.
7650 (_Jv_FindIIndex): New function.
7652 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7654 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7655 (_Jv_CheckArrayStore): Ditto.
7656 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7657 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7658 Moved to gcj/array.h.
7659 (_Jv_Realloc): New function.
7661 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7663 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7664 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7665 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7666 JvNewDoubleArray): Implementations moved from prims.cc and
7669 * gcj/javaprims.h (_Jv_Realloc): Prototype.
7671 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7673 2000-03-06 Tom Tromey <tromey@cygnus.com>
7675 * jni.cc (MARK_NONE): New define.
7676 (MARK_USER): Likewise.
7677 (MARK_SYSTEM): Likewise.
7678 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7680 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7681 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7682 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7683 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7685 (call): Use MARK_SYSTEM.
7686 (_Jv_GetJNIEnvNewFrame): New function.
7687 (_Jv_LookupJNIMethod): New function.
7688 (_Jv_JNI_PopSystemFrame): New function.
7689 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7691 2000-03-05 Tom Tromey <tromey@cygnus.com>
7693 Fix for PR libgcj/43:
7694 * include/Makefile.in: Rebuilt.
7695 * include/Makefile.am (include_HEADERS): New define.
7697 2000-03-05 Anthony Green <green@redhat.com>
7699 * gcj/javaprims.h ("Java"): Remove FirstThread.
7701 * configure.host: Fix __NO_MATH_INLNES botch.
7703 * Makefile.in: Rebuilt.
7704 * Makefile.am (nat_source_files): Move natFirstThread.cc.
7705 (gnu/gcj/runtime/FirstThread.h): Moved.
7706 (ordinary_java_source_files): Move FirstThread.java.
7707 * prims.cc: Deal with FirstThread movement.
7709 (_Jv_RunMain): Ditto.
7711 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7712 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7714 2000-03-05 Warren Levy <warrenl@cygnus.com>
7716 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7717 Handle null addresses.
7719 2000-03-04 Anthony Green <green@redhat.com>
7721 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7724 2000-03-04 Anthony Green <green@redhat.com>
7726 * configure: Rebuilt.
7727 * configure.in (ZLIBTESTSPEC): New macro.
7728 (GCTESTSPEC): New macro.
7729 (LIBGCJTESTSPEC): New macro.
7730 * libgcj-test.spec.in: New file.
7732 2000-03-02 Tom Tromey <tromey@cygnus.com>
7734 * include/java-interp.h: Don't include MethodInvocation.h.
7735 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7736 * Makefile.in: Rebuilt.
7737 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7738 (ordinary_java_source_files): Don't mention
7739 MethodInvocation.java.
7740 * gnu/gcj/runtime/MethodInvocation.java: Removed.
7741 * interpret.cc (MethodInvocation::continue1): Removed.
7742 (run): Handle exceptions here.
7743 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7745 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7747 (defineClass2): Removed.
7749 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7751 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7753 (hack_call): Removed.
7755 * java/lang/Class.h (Class): Removed hackRunInitializers,
7757 * java/lang/natClass.cc (hackRunInitializers): Removed.
7758 (initializeClass): Catch exceptions here.
7759 Include ExceptionInInitializerError.h.
7760 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7763 * java/lang/Object.h (Object): Don't mention hack12_6.
7764 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7766 * java/lang/Object.java (hack12_6): Removed.
7768 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7769 (start): Use run_, not run__.
7770 * java/lang/Thread.java (run_): Renamed from run__; old run_
7773 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7774 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7775 (_Jv_JNI_DefineClass): Likewise.
7776 (_Jv_JNI_ThrowNew): Likewise.
7777 (_Jv_JNI_AllocObject): Likewise.
7778 (_Jv_JNI_GetAnyMethodID): Likewise.
7779 (_Jv_JNI_CallAnyMethodV): Likewise.
7780 (_Jv_JNI_CallAnyMethodA): Likewise.
7781 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7782 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7783 (_Jv_JNI_GetAnyFieldID): Likewise.
7784 (_Jv_JNI_NewString): Likewise.
7785 (_Jv_JNI_NewStringUTF): Likewise.
7786 (_Jv_JNI_GetStringUTFChars): Likewise.
7787 (_Jv_JNI_NewObjectArray): Likewise.
7788 (_Jv_JNI_NewPrimitiveArray): Likewise.
7789 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7790 (_Jv_JNI_GetStringRegion): Likewise.
7791 (_Jv_JNI_GetStringUTFRegion): Likewise.
7792 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7793 (_Jv_JNI_MonitorEnter): Likewise.
7794 (_Jv_JNI_MonitorExit): Likewise.
7795 (_Jv_JNI_ToReflectedField): Likewise.
7796 (_Jv_JNI_ToReflectedMethod): Likewise.
7797 (_Jv_JNI_RegisterNatives): Likewise.
7798 (_Jv_JNI_AttachCurrentThread): Likewise.
7799 (_Jv_JNI_DestroyJavaVM): Likewise.
7801 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7803 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7804 error caused by the incorrect casting of a long to an int.
7806 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7808 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7809 SIGSEV caused by use of the wrong instance variable.
7811 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7813 * java/io/File.java (File(String, String)): For dirPath, treat an
7814 empty String the same as `null'.
7816 2000-02-26 Anthony Green <green@cygnus.com>
7818 * gnu/gcj/io/MimeTypes.java: Test for null.
7820 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7821 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7823 * java/net/URLConnection.java: Update copyright notice.
7825 2000-02-25 Tom Tromey <tromey@cygnus.com>
7827 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7830 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7832 * java/net/URLConnection.java (initializeDateFormats): New
7834 (getHeaderFieldDate): Call initializeDateFormats if required.
7835 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7837 Fix for PR libgcj/38.
7839 2000-02-24 Warren Levy <warrenl@cygnus.com>
7841 * java/math/BigInteger.java(ival): Made private.
7845 2000-02-20 Anthony Green <green@cygnus.com>
7847 * Makefile.in: Rebuilt.
7848 * Makefile.am (ordinary_java_source_files): Add
7849 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7851 * scripts/MakeDefaultMimeTypes.java: New file.
7852 * scripts/mime.types: New file.
7853 * scripts/classes.pl: Moved from top level.
7854 * classes.pl: Moved to scripts directory.
7856 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7858 * gnu/gcj/io/MimeTypes.java: New file.
7859 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7861 2000-02-20 Tom Tromey <tromey@cygnus.com>
7863 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7865 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7867 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7870 2000-02-18 Tom Tromey <tromey@cygnus.com>
7872 * include/jvm.h (_Jv_GetJavaVM): Declare.
7873 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7874 (_Jv_MethodBase::get_method): New method.
7875 (_Jv_JNIMethod::set_function): New method.
7876 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7877 (_Jv_JNI_RegisterNatives): New function.
7878 (_Jv_JNIFunctions): Updated for new functions.
7879 (_Jv_GetJavaVM): New function.
7880 (_Jv_JNI_GetJavaVM): Use it. Now static.
7881 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7882 is already a Java thread but does not have a JNIEnv yet.
7884 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7887 2000-02-17 Tom Tromey <tromey@cygnus.com>
7889 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7892 2000-02-16 Tom Tromey <tromey@cygnus.com>
7894 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7896 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7897 (_Jv_JNI_NewObject): Likewise.
7898 (_Jv_JNI_NewObjectA): Likewise.
7899 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7900 as "return" type to _Jv_CallAnyMethodA.
7901 (_Jv_JNI_CallAnyMethodA): Likewise.
7902 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7904 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7907 2000-02-15 Tom Tromey <tromey@cygnus.com>
7909 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7911 (init_cif): Added `rtype_p' argument.
7912 * include/java-interp.h (class _Jv_MethodBase): Added
7914 (class _Jv_InterpMethod): Removed args_raw_size.
7915 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7916 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7917 class pointer as well as the ordinary arguments.
7919 * jni.cc (mangled_name): Skip leading `(' in signature.
7921 * jni.cc (add_char): Added missing `else'.
7923 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7926 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7930 * java/lang/natRuntime.cc (_load): Include library path with
7933 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7936 * java/lang/natThread.cc (dumpStack): Removed.
7937 * java/lang/Thread.java (dumpStack): Implemented.
7939 2000-02-15 Tom Tromey <tromey@cygnus.com>
7941 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7942 with `lib' for loadLibrary. Fixes PR gcj/150.
7944 2000-02-14 Warren Levy <warrenl@cygnus.com>
7946 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7948 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7952 (modPow): Rewritten to not use the naive, slow, brute force approach.
7953 (isProbablePrime): Implemented.
7954 (testBit): Implemented.
7955 (flipBit): Implemented.
7956 (getLowestSetBit): Implemented.
7958 2000-02-16 Anthony Green <green@redhat.com>
7960 * configure.host: Use the same options for i386 and i486 as we do
7963 2000-02-12 Tom Tromey <tromey@cygnus.com>
7965 * java/io/File.java (createTempFile): Use low bits from counter,
7968 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7970 * THANKS: More thanks.
7972 2000-02-11 Tom Tromey <tromey@cygnus.com>
7974 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7975 astore instruction. From Hans Boehm.
7977 2000-02-11 Warren Levy <warrenl@cygnus.com>
7979 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7980 (BigInteger(String)): New constructor.
7981 (not): Rewritten using version from Kawa's BitOps class.
7982 (valueOf): New private methods from Kawa's BitOps class.
7989 (andNot): Implemented.
7990 (clearBit): Implemented.
7991 (setBit): Implemented.
7992 (bitCount): Implemented.
7993 (toByteArray): Implemented.
7995 2000-02-11 Tom Tromey <tromey@cygnus.com>
7997 * java/io/File.java (nextValue): Now synchronized.
7999 2000-02-10 Tom Tromey <tromey@cygnus.com>
8001 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
8002 * java/io/FileDescriptor.java (EXCL): New static field.
8003 * java/io/File.java (tmpdir): New static field.
8004 (createTempFile): New method.
8005 (nextValue): New method.
8006 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
8009 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
8010 (jboolean): Declare as an attributed int, not a bool.
8011 (_Jv_func): Declare differently for C.
8013 * gnu/gcj/jni/natNativeThread.cc: New file.
8014 * gnu/gcj/jni/NativeThread.java: New file.
8015 * java/lang/Thread.java (data): Now a RawData.
8016 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
8018 * Makefile.in: Rebuilt.
8019 * Makefile.am (java/lang/Thread.h): New target.
8020 (ordinary_java_source_files): Added NativeThread.java.
8021 (nat_source_files): Added natNativeThread.cc.
8022 * java/lang/natThread.cc: Include <jni.h>
8023 (struct natThread): Added `jni_env' field.
8024 (_Jv_GetCurrentJNIEnv): New function.
8025 (_Jv_SetCurrentJNIEnv): Likewise.
8026 (initialize_native): Initialize jni_env.
8028 * jni.cc (ThreadGroupClass): New define.
8029 (_Jv_JNI_InvokeFunctions): New structure.
8030 (JNI_GetCreatedJavaVMs): New function.
8031 (the_vm): New global.
8032 (JNI_GetDefaultJavaVMInitArgs): New function.
8033 Include NativeThread.h.
8034 (NativeThreadClass): New define.
8035 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
8036 (_Jv_JNI_DestroyJavaVM): New function.
8037 (_Jv_JNI_AttachCurrentThread): New function.
8038 (_Jv_JNI_DetachCurrentThread): New function.
8039 (_Jv_JNI_GetEnv): New function.
8040 (JNI_CreateJavaVM): New function.
8041 (_Jv_JNI_GetJavaVM): New function.
8042 (_Jv_JNIFunctions): Added entry for GetJavaVM.
8043 * include/jni.h (JavaVMAttachArgs): New structure.
8044 (JNI_EDETACHED): New define.
8045 (JNI_EVERSION): Likewise.
8046 (JavaVM): Define properly.
8047 (struct JNIInvokeInterface): New structure.
8048 (class _Jv_JavaVM): New class.
8049 (JNI_OnLoad, JNI_OnUnload): Declare.
8050 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
8051 JNI_GetCreatedJavaVMs): Declare.
8052 (JavaVMInitArgs): New typedef.
8053 (JavaVMOption): Likewise.
8054 (JNI_ERR): New define.
8057 2000-02-10 Andrew Haley <aph@cygnus.com>
8059 * interpret.cc: Don't include fdlibm.h.
8060 Replace #if with #ifdef throughout.
8061 Declare extern __ieee754_fmod.
8062 (continue1): Remove op_getfield, op_getstatic, op_putfield,
8064 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
8065 Search class hierarchy for superclass vtable.
8067 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
8068 off the end of a pointer list.
8070 * java/lang/natThread.cc (stop): Don't abort, throw an exception
8074 2000-02-09 Tom Tromey <tromey@cygnus.com>
8076 * java/lang/natRuntime.cc (_load): Call add_library.
8077 (loadLibraryInternal): Likewise.
8079 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
8080 iconv_close when handle is not NULL. Thanks to Andrew Haley.
8081 (Output_iconv::finalize): Likewise.
8083 2000-02-08 Tom Tromey <tromey@cygnus.com>
8085 * java/util/Properties.java (setProperty): New method.
8086 (store): New method.
8088 2000-02-07 Tom Tromey <tromey@cygnus.com>
8090 * java/lang/Runtime.java (_load): Declare.
8091 (load, loadLibrary): Wrote in terms of _load.
8092 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
8094 (loadLibrary): Likewise.
8096 (_load): New method.
8097 (loadLibrary, load): Removed.
8099 * jni.cc (ThrowableClass): New define.
8100 (_Jv_JNI_Throw): Check argument.
8101 (_Jv_JNI_ThrowNew): Likewise.
8102 (wrap_value): Don't wrap object if it is NULL.
8103 (_Jv_JNI_DefineClass): Use wrap_value.
8104 (_Jv_JNI_FindClass): Likewise.
8105 (_Jv_JNI_GetSuperclass): Likewise.
8106 (_Jv_JNI_ExceptionOccurred): Likewise.
8107 (_Jv_JNI_AllocObject): Likewise.
8108 (_Jv_JNI_GetObjectClass): Likewise.
8109 (_Jv_JNI_NewString): Likewise.
8110 (_Jv_JNI_NewStringUTF): Likewise.
8111 (_Jv_JNI_NewObjectArray): Likewise.
8112 (_Jv_JNI_GetObjectArrayElement): Likewise.
8113 (_Jv_JNI_NewPrimitiveArray): Likewise.
8114 (_Jv_JNI_ToReflectedField): Likewise.
8115 (_Jv_JNI_ToReflectedMethod): Likewise.
8116 (_Jv_JNI_AllocObject): Check argument.
8117 (_Jv_JNI_NewObjectV): Likewise.
8118 (_Jv_JNI_NewObject): Likewise.
8119 (_Jv_JNI_NewObjectA): Likewise.
8120 (_Jv_JNI_GetObjectClass): Likewise.
8121 (_Jv_JNI_GetField): Likewise.
8122 (_Jv_JNI_SetField): Likewise.
8124 * interpret.cc (PUSHL): Don't use expression statement.
8129 * jni.cc (add_char): Conditional on INTERPRETER.
8130 (mangled_name): Likewise.
8132 * include/java-interp.h (class _Jv_MethodBase): Conditional on
8134 (class _Jv_JNIMethod): Likewise.
8136 2000-02-04 Warren Levy <warrenl@cygnus.com>
8138 * Makefile.am: Added MPN.java and BigInteger.java.
8139 * Makefile.in: Rebuilt.
8140 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
8142 * java/math/BigInteger.java: New file. Based primarily on
8143 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
8145 2000-02-04 Tom Tromey <tromey@cygnus.com>
8147 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
8149 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
8150 if the method is native.
8151 * resolve.cc (ncode): Don't handle native methods.
8152 (_Jv_JNIMethod::ncode): New method.
8153 (_Jv_PrepareClass): Handle native methods.
8154 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
8155 Include AbstractMethodError.h.
8156 (add_char): New function.
8157 (mangled_name): Likewise.
8158 * include/java-interp.h (class _Jv_JNIMethod): New class.
8159 (class _Jv_MethodBase): New class.
8160 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
8161 (_Jv_InterpClass): Changed `interpreted_methods' field to type
8164 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
8165 * java/lang/natRuntime.cc (libraries_size, libraries_count,
8166 libraries): New globals.
8167 (add_library): New function.
8168 (_Jv_FindSymbolInExecutable): New function.
8170 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
8173 2000-02-04 Andrew Haley <aph@cygnus.com>
8175 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
8176 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
8177 * java/lang/natThrowable.cc (printRawStackTrace): Rename
8178 printStackTrace to printRawStackTrace.
8180 2000-02-03 Tom Tromey <tromey@cygnus.com>
8182 * java/util/Calendar.java (toString): New method.
8183 * java/util/SimpleTimeZone.java (clone): New method.
8184 (toString): New method.
8185 * java/util/TimeZone.java (clone): New method.
8186 * java/text/SimpleDateFormat.java (clone): New method.
8187 * java/text/NumberFormat.java (clone): New method.
8188 (equals): New method.
8189 * java/text/Format.java (clone): New method.
8190 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
8192 (clone): New method.
8193 * java/text/DateFormat.java (clone): New method.
8194 * java/text/Collator.java (clone): New method.
8196 2000-02-03 Tom Tromey <tromey@cygnus.com>
8198 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
8201 2000-02-01 Tom Tromey <tromey@cygnus.com>
8203 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
8204 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
8205 constructing the closure if the function is native.
8206 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
8207 a template function, #if'd out, or static.
8208 Include <java-interp.h>.
8210 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
8212 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
8214 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
8215 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
8217 (wrap_value): New function.
8218 (_Jv_JNI_CallAnyMethodV): Use it.
8219 (_Jv_JNI_CallAnyMethodA): Likewise.
8220 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
8221 (_Jv_JNI_GetStaticField): Likewise.
8223 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
8224 (_Jv_JNI_GetStaticField): Likewise.
8226 2000-01-31 Tom Tromey <tromey@cygnus.com>
8228 * prims.cc (_Jv_MallocUnchecked): New function.
8229 (main_init): Call _Jv_JNI_Init.
8230 * include/jvm.h (_Jv_MallocUnchecked): Declare.
8231 (_Jv_JNI_Init): Declare.
8232 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
8234 (_Jv_JNI_NewGlobalRef): New function.
8235 (_Jv_JNI_DeleteGlobalRef): New function.
8236 (_Jv_JNI_DeleteLocalRef): New function.
8237 (_Jv_JNI_conversion_call): Initialize and clear local reference
8239 (_Jv_JNI_NewLocalRef): New function.
8240 (struct _Jv_JNI_LocalFrame): New structure.
8241 (_Jv_JNI_PushLocalFrame): New function.
8242 (_Jv_JNI_EnsureLocalCapacity): New function.
8243 (FRAME_SIZE): New define.
8244 (_Jv_JNI_GetStringChars): Mark string, not characters.
8245 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
8246 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
8247 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
8249 (_Jv_JNI_DefineClass): Make return value a local ref.
8250 (_Jv_JNI_FindClass): Likewise.
8251 (_Jv_JNI_GetSuperclass): Likewise.
8252 (_Jv_JNI_ExceptionOccurred): Likewise.
8253 (_Jv_JNI_AllocObject): Likewise.
8254 (_Jv_JNI_GetObjectClass): Likewise.
8255 (_Jv_JNI_CallAnyMethodV): Likewise.
8256 (_Jv_JNI_NewString): Likewise.
8257 (_Jv_JNI_NewStringUTF): Likewise.
8258 (_Jv_JNI_NewObjectArray): Likewise.
8259 (_Jv_JNI_GetObjectArrayElement): Likewise.
8260 (_Jv_JNI_ToReflectedField): Likewise.
8261 (_Jv_JNI_ToReflectedMethod): Likewise.
8262 (_Jv_JNIFunctions): Updated table for new functions.
8263 (_Jv_JNI_Init): New function.
8264 (mark_for_gc): Wrote.
8265 (unmark_for_gc): Wrote.
8266 * include/jni.h (struct JNINativeInterface): Removed name from
8267 PopLocalFrame parameter.
8268 (class _Jv_JNIEnv): Added `locals' field.
8270 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
8272 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
8275 2000-01-30 Tom Tromey <tromey@cygnus.com>
8277 * include/config.h.in: Rebuilt.
8278 * acconfig.h (HAVE_ICONV): Define.
8279 * configure: Rebuilt.
8280 * configure.in: Check for `iconv' function.
8281 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
8282 no specific encoder exists.
8283 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
8284 no specific encoder exists.
8285 * Makefile.in: Rebuilt.
8286 * Makefile.am (convert_source_files): Mention Input_iconv.java and
8288 (nat_source_files): Added natIconv.cc.
8289 * gnu/gcj/convert/natIconv.cc: New file.
8290 * gnu/gcj/convert/Input_iconv.java: New file.
8291 * gnu/gcj/convert/Output_iconv.java: New file.
8293 2000-01-28 Tom Tromey <tromey@cygnus.com>
8295 * Makefile.in: Rebuilt.
8296 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
8298 2000-01-26 Tom Tromey <tromey@cygnus.com>
8300 * gcj/method.h (JvNumMethods): Moved from Class.h.
8301 (JvGetFirstMethod): Likewise.
8302 * java/lang/Class.h (Object): Updated decl of
8303 _Jv_JNI_ToReflectedField.
8304 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
8305 * Makefile.in: Rebuilt.
8306 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
8307 argument of _Jv_JNI_ToReflectedField.
8308 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
8310 (java/lang/reflect/Method.h): Likewise.
8311 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
8313 (jweak): New typedef.
8314 (struct JNINativeInterface): Correctly declare remaining entries.
8315 * jni.cc: Include Class.h, ClassLoader.h.
8316 (_Jv_JNI_FindClass): New function.
8317 (_Jv_JNI_DefineClass): New function.
8318 (_Jv_JNI_conversion_call): New function.
8319 (_Jv_JNI_FindClass): Use current class loader to find class.
8320 (_Jv_JNI_ExceptionCheck): New function.
8321 (_Jv_JNI_FromReflectedField): Now static.
8322 (MethodClass): New define.
8323 (_Jv_JNI_FromReflectedMethod): New function.
8324 (_Jv_JNI_ToReflectedMethod): Likewise.
8326 (_Jv_JNI_IsAssignableFrom): Renamed.
8327 (_Jv_JNI_GetStringRegion): New function.
8328 Include StringIndexOutOfBoundsException.h.
8329 (_Jv_JNI_GetStringUTFRegion): New function.
8330 (_Jv_JNIFunctions): Updated for new functions.
8331 (_Jv_JNI_GetPrimitiveArrayCritical): New function
8332 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
8333 (_Jv_JNI_GetStringCritical): New function.
8334 (_Jv_JNI_ReleaseStringCritical): Likewise.
8335 (get_throwable): Removed.
8336 (GCJ_JV_JNIENV_FRIEND): Removed.
8337 (__GCJ_JNI_IMPL__): Define.
8340 * resolve.cc (get_ffi_type_from_signature): Handle case where
8343 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
8345 * interpret.cc (run): Don't call println.
8346 Don't include PrintStream.h.
8348 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
8349 nameIndex. Use "jint" as type for boffset.
8350 * java/lang/Class.h (struct _Jv_Method): Made accflags a
8352 (Class): Likewise. Also changed type of method_count,
8353 vtable_method_count, size_in_bytes, field_count,
8354 static_field_count, interface_count.
8355 * gcj/array.h (__JArray): Made `length' a const jsize, not an
8358 2000-01-21 Tom Tromey <tromey@cygnus.com>
8360 * java/lang/reflect/natConstructor.cc (newInstance): Use
8362 * include/jvm.h: Declare _Jv_CallAnyMethodA.
8363 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
8364 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
8367 (invoke): Use _Jv_CallAnyMethodA.
8369 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
8370 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
8372 (struct _Jv_Method): Added getNextMethod method.
8373 (JvNumMethods): New function.
8374 (JvGetFirstMethod): Likewise.
8375 * gcj/field.h (JvGetFirstStaticField): New function.
8376 (JvNumStaticFields): Likewise.
8377 (getNextField): Renamed from getNextInstanceField.
8378 (struct _Jv_Field): New method getClass.
8379 * jni.cc: Wrote many new functions.
8380 * include/jni.h (JNI_TRUE): Define.
8381 (JNI_FALSE): Likewise.
8382 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
8383 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
8384 jcharArray, jfloatArray, jdoubleArray): New typedefs.
8385 (jfieldID, jmethodID): Likewise.
8386 (JNI_COMMIT, JNI_ABORT): New defines.
8387 (JNINativeMethod): New struct.
8388 (struct JNINativeInterface): Correctly declared more entries.
8389 (class _Jv_JNIEnv): Added `ex' member.
8390 (JNI_VERSION_1_1): New define.
8391 (JNI_VERSION_1_2): Likewise.
8393 * boehm.cc (_Jv_MarkObj): Use getNextField, not
8394 getNextInstanceField.
8396 2000-01-20 Tom Tromey <tromey@cygnus.com>
8398 * resolve.cc (StringClass): Removed.
8399 * defineclass.cc (StringClass): Removed.
8401 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
8405 2000-01-19 Tom Tromey <tromey@cygnus.com>
8407 * interpret.cc (PC_REGISTER_ASM): Removed.
8409 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
8410 From Bryce McKinlay.
8412 * All files: Updated copyright to reflect Cygnus purchase.
8414 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
8416 * configure: Rebuilt.
8417 * configure.in: Recognize --disable-interpreter.
8419 2000-01-18 Andrew Haley <aph@cygnus.com>
8421 * name-finder.cc (lookup): Check for dladdr function.
8422 acconfig.h (HAVE_DLADDR): Add.
8423 configure.in: Check for HAVE_DLADDR
8425 include/config.h.in: Rebuilt.
8427 2000-01-17 Andrew Haley <aph@cygnus.com>
8429 * prims.cc (_Jv_RunMain): Set the name of this executable.
8431 2000-01-17 Tom Tromey <tromey@cygnus.com>
8433 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
8434 when backtrace can't be computed.
8436 * configure: Rebuilt.
8437 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
8439 * java/lang/Runtime.java (loadLibraryInternal): Declare.
8440 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
8441 (_Jv_FindClassInCache): Likewise.
8442 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
8443 (findSystemClass): Try to load class from compiled module.
8445 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
8446 (loadLibrary): Likewise.
8447 (lt_preloaded_symbols): Define.
8448 (loadLibraryInternal): New method.
8449 * include/config.h.in: Rebuilt.
8450 * acconfig.h (USE_LTDL): Added.
8451 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
8452 (INCLUDES): Added $(INCLTDL).
8453 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
8454 (libgcj_la_LIBADD): Likewise.
8455 * aclocal.m4, configure: Rebuilt.
8456 * configure.in: Added libltdl support.
8458 2000-01-15 Tom Tromey <tromey@cygnus.com>
8460 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
8462 2000-01-14 Andrew Haley <aph@cygnus.com>
8464 * java/lang/natThrowable.cc: New file.
8466 * java/lang/Throwable.java (fillInStackTrace): Make native.
8467 (printStackTrace): Call native method to do this.
8468 (Throwable): Call fillInStackTrace.
8469 (stackTrace): New variable.
8471 * include/jvm.h: Add _Jv_ThisExecutable functions.
8473 * prims.cc: (_Jv_execName): New variable.
8474 (catch_segv): Call fillInStackTrace.
8476 (_Jv_ThisExecutable): New functions.
8477 (JvRunMain): Set the name of this executable.
8479 * Makefile.am: Add java/lang/natThrowable.cc.
8481 * Makefile.in: Rebuilt.
8483 * acconfig.h: Add HAVE_PROC_SELF_EXE.
8485 * configure.in: Force link with __frame_state_for in
8486 FORCELIBGCCSPEC. Add new checks for backtrace.
8487 * include/config.h.in: Rebuilt.
8489 * name-finder.cc: New file.
8490 * include/name-finder.h: New file.
8492 2000-01-16 Anthony Green <green@cygnus.com>
8494 * java/lang/StringBuffer.java (StringBuffer): Don't special case
8497 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
8499 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
8501 2000-01-13 Tom Tromey <tromey@cygnus.com>
8503 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
8504 not system loader, as initiating loader.
8506 2000-01-11 Tom Tromey <tromey@cygnus.com>
8508 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
8509 HP/UX. From David Scott Urban.
8511 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
8513 * java/lang/natMath.cc (pow): Cast args to `double', not
8516 (IEEEremainder): Likewise.
8517 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
8518 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
8520 2000-01-09 Anthony Green <green@cygnus.com>
8522 * java/lang/natString.cc (init): Test for overflow condition
8523 during out of bounds check.
8524 (getChars): Throw StringIndexOutOfBoundsException, not
8525 ArrayIndexOutOfBoundsException.
8527 (regionMatches): Obey case option during string comparison.
8529 * configure.host (ligcj_interpreter): New variable. Enable
8530 interpreter by default on IA-32.
8531 * configure.in: Examine libgcj_interpreter.
8532 * configure: Rebuilt.
8534 2000-01-07 Tom Tromey <tromey@cygnus.com>
8536 * mauve-libgcj: Don't disable ClassTest.
8538 * java/lang/natClass.cc (getClasses): Wrote.
8540 2000-01-06 Tom Tromey <tromey@cygnus.com>
8542 * java/lang/natClass.cc (_getConstructors): Correctly check
8543 whether method name is the init name.
8544 (getMethod): Look at accflags on method in `klass', not `this'.
8546 2000-01-05 Tom Tromey <tromey@cygnus.com>
8548 * java/lang/natClass.cc (getMethod): Compute offset relative to
8549 `klass's methods table, not `this's table.
8551 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
8552 In unwrapping/widening case, check whether `k' is null, not
8553 whether it is primitive. Initialize `num' from `argelts', not
8554 `paramelts'. Correct create and pass arguments to ffi_call.
8555 Don't let presence of `this' argument affect index used to look in
8557 (COPY): Set appropriate element in `values' vector.
8559 * java/lang/natClass.cc: Include <gcj/method.h>.
8561 * java/lang/Class.h (_getMethods): Correctly declare as private,
8564 * java/lang/Class.h (_getMethods): Declare.
8565 * java/lang/Class.java (_getMethods): Declare.
8566 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
8567 (getDeclaredClasses): Always return empty array.
8568 (_getMethods): New method.
8569 (getMethods): Wrote.
8570 (getDeclaredMethod): Return `rmethod'.
8571 (finit_name): New global.
8572 (getDeclaredMethods): Check for finit_name.
8573 (_getMethods): Likewise.
8574 (getMethod): Only return public methods.
8576 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
8577 jboolean and select correct ffi type on that basis.
8578 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
8579 Constructor call always has `void' return type.
8581 2000-01-04 Tom Tromey <tromey@cygnus.com>
8583 * java/lang/Class.h (getSignature): Updated.
8584 * java/lang/Class.java (getSignature): Updated.
8585 * java/lang/natClass.cc (getSignature): Added `is_constructor'
8587 (getConstructor): Ensure constructor is public.
8588 (_getConstructors): Check for public-ness of constructor when
8589 `declared' is false, not when it is true.
8591 2000-01-04 Warren Levy <warrenl@cygnus.com>
8593 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
8595 (receive): Set the sender's address in the DatagramPacket.
8597 2000-01-04 Tom Tromey <tromey@cygnus.com>
8599 * java/lang/reflect/natConstructor.cc (newInstance): Pass
8600 declaring class as return_type argument to
8601 _Jv_CallNonvirtualMethodA.
8602 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
8603 constructor case, create object and use it as `this' argument.
8604 * java/lang/Class.h (_getConstructors): Declare.
8605 (_getFields): Declare.
8606 * java/lang/Class.java (getConstructors): Wrote.
8607 (_getConstructors): New native method.
8608 (getDeclaredConstructors): Wrote.
8609 (_getFields): Declare new native method.
8610 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
8612 (getMethod): Work correctly when class is primitive.
8613 (getDeclaredMethods): Likewise. Compute offset using `method',
8615 (getDeclaredMethod): Likewise.
8616 (getConstructor): Wrote.
8617 (ConstructorClass): New define.
8618 (getDeclaredConstructor): Wrote.
8619 (_getConstructors): New method.
8620 (_getFields): New method.
8623 * Makefile.in: Rebuilt.
8624 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
8626 * prims.cc: Remove `#pragma implementation'.
8627 * gcj/array.h: Remove `#pragma interface'.
8629 * prims.cc (_Jv_equaln): New function.
8630 * java/lang/Class.java (getSignature): Declare.
8631 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
8632 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
8634 (getSignature): New method.
8635 (getDeclaredMethod): Wrote.
8637 Include StringBuffer.h.
8638 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8639 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
8641 (getSignature): Declare.
8642 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8643 (_Jv_equaln): Declare.
8644 (_Jv_CallNonvirtualMethodA): Declare.
8645 * Makefile.in: Rebuilt.
8646 * Makefile.am (nat_source_files): Added natConstructor.cc.
8647 (java/lang/reflect/Constructor.h): New target.
8648 * java/lang/reflect/natConstructor.cc: New file.
8649 * java/lang/reflect/Constructor.java (newInstance): Now native.
8650 (declaringClass): Renamed from decl_class.
8651 (offset): Renamed from index.
8652 (getType): New native method.
8653 (getModifiers): Now native.
8654 (getParameterTypes): Call getType if required.
8655 (hashCode): Include hash code from declaring class.
8656 (modifiers): Removed.
8657 (toString): Call getType if required.
8658 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8659 * java/lang/reflect/natMethod.cc (hack_call): New method.
8660 Removed `#if 0' around FFI code.
8661 Include <gnu/gcj/RawData.h>.
8662 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
8663 IllegalArgumentException when argument object and class disagree.
8664 (_Jv_GetTypesFromSignature): New function.
8666 (ObjectClass): New define.
8667 (_Jv_CallNonvirtualMethodA): New function.
8668 * java/lang/reflect/Method.java (hack_trampoline): New method.
8669 (hack_call): New native method.