1 2001-11-14 Hans Boehm <Hans_Boehm@hp.com>
3 * java/lang/natString.cc: correct argument order for
6 2001-11-14 Tom Tromey <tromey@redhat.com>
8 * verify.cc (class _Jv_BytecodeVerifier) [op_dup2]: Fixed logic.
10 [op_dup2_x1]: Likewise.
11 [op_dup2_x2]: Likewise.
12 (branch_prepass): Added `op_newarray' case. Updated unrecognized
14 (verify_instructions_0): Updated unrecognized instruction error.
16 * java/lang/reflect/Constructor.java (toString): Use more
17 efficient form of Modifier.toString().
19 Re-merges with Classpath, from various people:
20 * java/lang/reflect/Modifier.java: Reindented.
21 (toString): Only trim trailing space if text was added to
23 * java/lang/reflect/ReflectPermission: Reindented.
25 Re-merges with Classpath, from various people:
26 * java/lang/Double.java (parseDouble): Fixed ordering of
28 * java/lang/reflect/AccessibleObject.java: Javadoc, reindented.
29 * java/lang/reflect/Member.java: Reindented.
30 * java/util/ConcurrentModificationException.java: Javadoc
32 * java/util/EmptyStackException.java: Likewise.
33 * java/util/NoSuchElementException.java: Likewise.
35 2001-11-13 Tom Tromey <tromey@redhat.com>
37 Fix for PR libgcj/4859:
38 * java/util/Timer.java (TaskQueue.isStopped): New method.
39 (Scheduler.run): Don't re-schedule task if queue has been
42 2001-11-07 Tom Tromey <tromey@redhat.com>
44 * Makefile.in: Rebuilt.
45 * Makefile.am (ordinary_java_source_files): Added JNIWeakRef.java.
46 * jni.cc: Include JNIWeakRef.h.
47 (unwrap): New function.
48 (_Jv_JNI_DefineClass): Use it.
49 (_Jv_JNI_GetSuperclass): Likewise.
50 (_Jv_JNI_IsAssignableFrom): Likewise.
51 (_Jv_JNI_Throw): Likewise.
52 (_Jv_JNI_ThrowNew): Likewise.
53 (_Jv_JNI_IsSameObject): Likewise.
54 (_Jv_JNI_AllocObject): Likewise.
55 (_Jv_JNI_GetObjectClass): Likewise.
56 (_Jv_JNI_IsInstanceOf): Likewise.
57 (_Jv_JNI_GetAnyMethodID): Likewise.
58 (array_from_valist): Likewise.
59 (_Jv_JNI_CallAnyMethodV): Likewise.
60 (_Jv_JNI_CallAnyMethodA): Likewise.
61 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
62 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
63 (_Jv_JNI_CallStaticMethodV): Likewise.
64 (_Jv_JNI_CallStaticMethod): Likewise.
65 (_Jv_JNI_CallStaticMethodA): Likewise.
66 (_Jv_JNI_NewObjectV): Likewise.
67 (_Jv_JNI_NewObject): Likewise.
68 (_Jv_JNI_NewObjectA): Likewise.
69 (_Jv_JNI_GetField): Likewise.
70 (_Jv_JNI_SetField): Likewise.
71 (_Jv_JNI_GetAnyFieldID): Likewise.
72 (_Jv_JNI_SetStaticField): Likewise.
73 (_Jv_JNI_GetStringLength): Likewise.
74 (_Jv_JNI_GetStringChars): Likewise.
75 (_Jv_JNI_ReleaseStringChars): Likewise.
76 (_Jv_JNI_GetStringUTFLength): Likewise
77 (_Jv_JNI_GetStringUTFChars): Likewise.
78 (_Jv_JNI_GetStringRegion): Likewise.
79 (_Jv_JNI_GetStringUTFRegion): Likewise.
80 (_Jv_JNI_GetStringCritical): Likewise.
81 (_Jv_JNI_GetArrayLength): Likewise.
82 (_Jv_JNI_NewObjectArray): Likewise.
83 (_Jv_JNI_GetObjectArrayElement): Likewise.
84 (_Jv_JNI_SetObjectArrayElement): Likewise.
85 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
86 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
87 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
88 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
89 (_Jv_JNI_MonitorEnter): Likewise.
90 (_Jv_JNI_MonitorExit): Likewise.
91 (_Jv_JNI_ToReflectedField): Likewise.
92 (_Jv_JNI_FromReflectedField): Likewise.
93 (_Jv_JNI_ToReflectedMethod): Likewise.
94 (_Jv_JNI_FromReflectedMethod): Likewise.
95 (_Jv_JNI_NewGlobalRef): Likewise.
96 (_Jv_JNI_DeleteGlobalRef): Likewise.
97 (_Jv_JNI_DeleteLocalRef): Likewise.
98 (_Jv_JNI_NewLocalRef): Likewise.
99 (_Jv_JNI_NewWeakGlobalRef): New function.
100 (_Jv_JNI_DeleteWeakGlobalRef): Likewise.
101 (_Jv_JNIFunctions): Updated for new methods.
103 * gnu/gcj/runtime/JNIWeakRef.java: New file.
105 2001-11-12 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
107 * boehm.cc (_Jv_GCCanReclaimSoftReference): Fix warning.
109 2001-11-09 Jeff Sturm <jsturm@one-point.com>
111 * verify.cc: Wrap in #ifdef INTERPRETER...#endif.
113 2001-11-07 Tom Tromey <tromey@redhat.com>
115 * verify.cc (skip_padding): Fail if padding byte is nonzero.
117 2001-11-06 Tom Tromey <tromey@redhat.com>
119 * HACKING: Make people commit their own patches.
121 2001-11-05 Tom Tromey <tromey@redhat.com>
123 * java/lang/Class.h (Class): Made _Jv_BytecodeVerifier a friend.
124 * Makefile.in: Rebuilt.
125 * Makefile.am (libgcj_la_SOURCES): Added verify.cc.
126 * verify.cc: New file.
127 * include/java-interp.h (_Jv_count_arguments): Declare.
128 (_Jv_VerifyMethod): Likewise.
129 (class _Jv_InterpMethod): Made _Jv_BytecodeVerifier a friend.
130 (class _Jv_InterpException): Likewise.
131 * resolve.cc (_Jv_count_arguments): Renamed from count_arguments.
132 No longer static. Updated callers.
133 * defineclass.cc (int_bits_to_float): Removed.
134 (long_bits_to_double): Likewise.
135 (prepare_pool_entry): Updated.
136 (handleCodeAttribute): Verify method (commented out for now).
138 2001-11-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
140 * java/util/ResourceBundle.java (class Security): Now static.
142 2001-11-04 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
144 * java/util/ResourceBundle.java (getClassContext): Removed.
145 (Security): New class, extends SecurityManger.
146 (getBundle): Use Security.getCallingClassLoader instead of
148 * java/util/natResourceBundle.cc: Removed.
150 2001-11-03 Tom Tromey <tromey@redhat.com>
152 * defineclass.cc (handleClassBegin): Use Object::class$, not
153 Class::class$, when initializing interface superclass.
155 2001-11-02 Hans Boehm <Hans_Boehm@hp.com>
157 * java/util/natResourceBundle.cc:getClassContext: return
158 array of Class instead of array of ClassLoader.
160 2001-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
162 * HACKING, gnu/gcj/xlib/Pixmap.java, gnu/gcj/xlib/XException.java,
163 gnu/java/rmi/rmic/RMIC.java, java/awt/Window.java,
164 java/awt/AWTEvent.java, java/io/ByteArrayOutputStream.java,
165 java/io/CharConversionException.java,
166 java/io/PipedInputStream.java, java/io/PipedReader.java,
167 java/io/PrintWriter.java, java/io/WriteAbortedException.java,
168 java/io/natFileWin32.cc, java/lang/Class.h,
169 java/lang/natClassLoader.cc, java/lang/natObject.cc,
170 java/lang/Package.java, java/net/BindException.java,
171 java/net/ConnectException.java, java/net/ProtocolException.java,
172 java/net/SocketException.java,
173 java/net/UnknownServiceException.java,
174 java/security/cert/X509Certificate.java,
175 java/security/interfaces/DSAKey.java,
176 java/security/SecureRandom.java, java/security/SignedObject.java,
177 java/sql/DatabaseMetaData.java,
178 java/text/DecimalFormatSymbols.java,
179 java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
180 java/util/jar/JarInputStream.java,
181 java/util/jar/JarOutputStream.java, java/util/Calendar.java,
182 java/util/Collections.java, java/util/GregorianCalendar.java,
183 java/util/HashMap.java, java/util/List.java,
184 java/util/Properties.java, java/util/Timer.java,
185 java/util/Vector.java, java/util/WeakHashMap.java,
186 javax/naming/NamingException.java,
187 testsuite/libjava.lang/Thread_Wait.java,
188 org/xml/sax/helpers/DefaultHandler.java,
189 org/xml/sax/HandlerBase.java, org/xml/sax/SAXParseException.java,
190 ChangeLog, acinclude.m4, aclocal.m4, posix-threads.cc: Fix
192 * configure: Regenerate.
194 2001-10-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
196 * jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM. Don't call
199 2001-10-29 Tom Tromey <tromey@redhat.com>
201 * java/util/zip/GZIPOutputStream.java (write(int)): New method.
202 Fixes PR libgcj/4728.
204 2001-10-27 Tom Tromey <tromey@redhat.com>
206 * include/jni.h (struct JNINativeInterface) [GetStringLength]:
207 Returns jsize, not jint.
209 2001-10-26 Tom Tromey <tromey@redhat.com>
211 * java/util/zip/Adler32.java: Use correct class name. (Re-merge
214 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
216 * java/lang/VMClassLoader.java (getPrimitiveClass): Now native. Now
217 takes a jchar type-code argument, not a string.
218 * java/lang/natClassLoader.cc (VMClassLoader::getPrimitiveClass):
219 New method. Just call _Jv_FindClassFromSignature.
220 * java/lang/Boolean.java (TYPE): Initialize from
221 VMClassLoader.getPrimitiveClass using type-code.
222 * java/lang/Character.java (TYPE): Likewise.
223 * java/lang/Double.java (TYPE): Likewise.
224 * java/lang/Float.java (TYPE): Likewise.
225 * java/lang/Integer.java (TYPE): Likewise.
226 * java/lang/Long.java (TYPE): Likewise.
227 * java/lang/Short.java (TYPE): Likewise.
228 * java/lang/Void.java (TYPE): Likewise.
230 2001-10-25 Hans Boehm <Hans_Boehm@hp.com>
232 * include/boehm-gc.h: Call thread local allocation functions
233 if THREAD_LOCAL_ALLOC is defined.
235 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
237 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Use
238 snprintf, not asprintf.
240 2001-10-24 Loren J. Rittle <ljrittle@acm.org>
242 * configure.in (case $THREADS): Add *-*-freebsd* configuration.
243 (HAVE_GETHOSTBYADDR_R): Create a valid, non-optimal
244 configuration when gethostbyaddr_r exists yet no prototype
246 * configure: Rebuilt.
247 * posix-threads.cc (INTR): Reuse path for LINUX_THREADS
248 with FREEBSD_THREADS. However, comment different reason.
250 2001-10-24 Tom Tromey <tromey@redhat.com>
251 Warren Levy <warrenl@redhat.com>
253 * Makefile.in: Rebuilt.
254 * Makefile.am (javax_source_files): New macro.
255 (ordinary_java_source_files): Added javax_source_files.
256 (libgcj.jar): Search javax for class files.
257 * javax/naming/LinkException.java (toString): Wrote.
258 (toString(boolean)): Likewise.
259 * javax/naming/ldap/InitialLdapContext.java: New file.
260 * javax/naming/directory/InitialDirContext.java: Wrote.
261 * javax/naming/spi/NamingManager.java (getPlusPath): Now has
262 package-private protection.
263 (getURLContext): Likewise.
264 (NamingManager): Likewise.
265 * javax/naming/spi/DirectoryManager.java: New file.
266 * javax/naming/directory/BasicAttributes.java: New file.
267 * javax/naming/directory/BasicAttribute.java: New file.
268 * javax/naming/spi/ResolveResult.java
269 (ResolveResult(Object,String)): Wrote.
270 (appendRemainingName): Uncommented body.
271 (appendRemainingComponent): Likewise.
272 * javax/naming/ldap/ControlFactory.java: New file.
273 * javax/naming/directory/AttributeModificationException.java
275 * javax/naming/spi/NamingManager.java (NamingManager): New
277 (setInitialContextFactoryBuilder): Wrote.
278 (getInitialContext): Look in system properties for class name as
279 well. Use Class.forName().
280 (getURLContext): Wrote.
282 (setObjectFactoryBuilder): Wrote.
283 (getObjectInstance): Wrote.
284 (getContinuationContext): Wrote.
285 (getPlusPath): New private method.
286 (getStateToBind): Wrote.
287 * javax/naming/CannotProceedException.java: Added missing methods &
289 * javax/naming/LinkException.java: Added missing methods & fields.
290 * javax/naming/ReferralException.java (ReferralException): Made
291 constructor protected per spec.
292 Added missing abstract methods.
293 * javax/naming/directory/Attribute.java: Updated copyright.
294 * javax/naming/directory/AttributeModificationException.java: Ditto.
295 * javax/naming/directory/Attributes.java: Ditto.
296 * javax/naming/directory/DirContext.java: Ditto.
297 * javax/naming/spi/NamingManager.java: Ditto.
298 * javax/naming/spi/ResolveResult.java: Added comment.
299 * javax/naming/directory/Attribute.java: Added missing interface
301 * javax/naming/directory/AttributeModificationException.java:
302 Added missing methods & fields.
303 * javax/naming/directory/directory/Attributes.java: Added missing
305 * javax/naming/directory/SearchControls.java: Maded serialized fields
307 * javax/naming/event/NamingEvent.java: Added comment.
308 * javax/naming/event/NamingExceptionEvent.java: Maded serialized field
310 * javax/naming/ldap/UnsolicitedNotificationEvent.java: Maded
311 serialized field private.
312 * javax/naming/spi/NamingManager.java: Added missing field and stubbed
314 * javax/naming/directory/DirContext.java: Added missing interface
316 * javax/naming/directory/InitialDirContext.java: Stubbed missing
318 * javax/naming/directory/ModificationItem.java: New class.
319 * javax/naming/directory/SearchResult.java: New class.
320 * javax/naming/directory/SearchControls.java: New class.
321 * javax/naming/event/EventContext.java: New class.
322 * javax/naming/event/EventDirContext.java: New class.
323 * javax/naming/event/NamespaceChangeListener.java: New class.
324 * javax/naming/event/NamingEvent.java: New class.
325 * javax/naming/event/NamingExceptionEvent.java: New class.
326 * javax/naming/event/NamingListener.java: New class.
327 * javax/naming/event/ObjectChangeListener.java: New class.
328 * javax/naming/ldap/Control.java: New class.
329 * javax/naming/ldap/ExtendedRequest.java: New class.
330 * javax/naming/ldap/ExtendedResponse.java: New class.
331 * javax/naming/ldap/HasControls.java: New class.
332 * javax/naming/ldap/LdapContext.java: New class.
333 * javax/naming/ldap/LdapReferralException.java: New class.
334 * javax/naming/ldap/UnsolicitedNotification.java: New class.
335 * javax/naming/ldap/UnsolicitedNotificationEvent.java: New class.
336 * javax/naming/ldap/UnsolicitedNotificationListener.java: New class.
337 * javax/naming/spi/DirObjectFactory.java: New class.
338 * javax/naming/spi/DirStateFactory.java: New class.
339 * javax/naming/spi/ObjectFactoryBuilder.java: New class.
340 * javax/naming/spi/ResolveResult.java: New class.
341 * javax/naming/spi/Resolver.java: New class.
342 * javax/naming/spi/StateFactory.java: New class.
343 * javax/naming/spi/ObjectFactory.java: Made an interface per spec.
344 * java/rmi/RemoteException.java: New class.
345 * javax/transaction/HeuristicCommitException.java: New class.
346 * javax/transaction/HeuristicMixedException.java: New class.
347 * javax/transaction/HeuristicRollbackException.java: New class.
348 * javax/transaction/NotSupportedException.java: New class.
349 * javax/transaction/RollbackException.java: New class.
350 * javax/transaction/Status.java: New class.
351 * javax/transaction/Synchronization.java: New class.
352 * javax/transaction/SystemException.java: New class.
353 * javax/transaction/Transaction.java: New class.
354 * javax/transaction/TransactionManager.java: New class.
355 * javax/transaction/UserTransaction.java: New class.
356 * javax/transaction/xa/XAException.java: Added public static fields.
357 * javax/transaction/xa/XAResource.java: New class.
358 * javax/transaction/xa/Xid.java: New class.
359 * javax/naming/CompoundName.java (CompoundName(String)): Reverse
360 elements if required. Handle case where quote is at end of
362 * javax/naming/CompoundName.java (CompoundName(String)): Handle
363 text left at end of parsing.
364 (toString): Handle empty element at beginning.
365 * javax/naming/CompositeName.java (toString): Handle empty element
367 (CompositeName(String)): Handle text left at end of parsing.
368 Correctly compute boundary condition for quoting.
369 * javax/naming/CompoundName.java: New file.
370 * javax/naming/CompositeName.java: New file.
371 * javax/naming/Binding.java: New file.
372 * javax/naming/LinkRef.java: New file.
373 * javax/naming/NameClassPair.java: New file.
374 * javax/naming/Reference.java (addrs, classFactory,
375 classFactoryLocation): New fields.
376 (className): Now protected.
377 (Reference): New constructors.
378 (add): Now public. Implemented.
379 (get(String)): Likewise.
380 (add(int,RefAddr)): New method.
384 (get(int)): Likewise.
386 (getFactoryClassLocation): Likewise.
387 (getFactoryClassName): Likewise.
388 (hashCode): Likewise.
391 (toString): Likewise.
392 * javax/transaction/xa/XAException.java: New file.
393 * javax/transaction/TransactionRolledbackException.java: New file.
394 * javax/transaction/TransactionRequiredException.java: New file.
395 * javax/transaction/InvalidTransactionException.java: New file.
396 * javax/naming/directory/SchemaViolationException.java: Use
397 correct package. Import NamingException.
398 * javax/naming/directory/NoSuchAttributeException.java,
399 javax/naming/directory/InvalidSearchFilterException.java,
400 javax/naming/directory/InvalidSearchControlsException.java,
401 javax/naming/directory/InvalidAttributesException.java,
402 javax/naming/directory/InvalidAttributeValueException.java,
403 javax/naming/directory/InvalidAttributeIdentifierException.java,
404 javax/naming/directory/AttributeModificationException.java,
405 javax/naming/directory/AttributeInUseException.java: Likewise.
406 * javax/naming/directory/InitialDirContext.java (getAttributes):
408 * javax/naming/RefAddr.java (RefAddr): Reindented.
409 (equals): Renamed and reindented.
410 * javax/naming/BinaryRefAddr.java (equals): Renamed and
413 2001-10-24 Tom Tromey <tromey@redhat.com>
415 * java/lang/reflect/Field.java: Made many methods private.
417 * java/sql/Types.java (Types): New constructor.
419 Tue Oct 23 23:52:18 2001 Anthony Green <green@redhat.com>
421 * gnu/gcj/runtime/natSharedLibLoader.cc: Only include dlfcn.h when
424 2001-10-23 Tom Tromey <tromey@redhat.com>
426 * java/lang/reflect/Field.java (Field): New constructor.
427 * java/lang/ClassLoader.java (defineClass(String,byte[],int,int)):
428 Throw ClassFormatError.
430 2001-10-23 Tom Tromey <tromey@redhat.com>
432 * java/util/PropertyResourceBundle.java (handleGetObject): Now
434 * java/util/ListResourceBundle.java (handleGetObject): Now public
437 * java/io/BufferedWriter.java (localFlush): Don't synchronize.
439 2001-10-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
441 * prims.cc (_Jv_Abort): Always print error message using fprintf,
442 don't try to allocate.
443 (_Jv_CreateJavaVM): Set gcj::runtimeInitialized.
444 * include/jvm.h (gcj::runtimeInitialized): New variable declaration.
445 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
446 duplicate class registration with JvFail if the runtime hasn't been
449 * java/io/BufferedWriter (write (String, int, int)): Remove redundant
451 (write (char[], int, int)): Likewise.
453 2001-10-22 Tom Tromey <tromey@redhat.com>
455 * java/util/GregorianCalendar.java (getGregorianChange): Removed
458 2001-10-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
460 * gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
461 * gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
462 * gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
463 * gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in output
466 2001-10-19 Mark Wielaard <mark@klomp.org>
468 * java/lang/Double.java: More Classpath merging
469 (isInfinite): Don't use doubleToLongBits
470 (isNaN (Object)): return v != v
471 (initIDs): make native
472 * java/lang/Float.java: Ditto
473 (isInfinite): Don't use floatToIntBits
474 (isNaN (Object)): return v != v
475 * java/lang/natDouble.cc: add empty initIDs()
477 2001-10-19 Mark Wielaard <mark@klomp.org>
479 * javax/naming/BinaryRefAddr.java: New file
480 * javax/naming/InitialContext.java: Compile fix
481 * javax/naming/InvalidNameException.java: Add comments
482 * javax/naming/Name.java: Ditto
483 * javax/naming/NamingException.java: Implement
484 * javax/naming/OperationNotSupportedException.java: Compile fix
485 * javax/naming/RefAddr.java: Implement
486 * javax/naming/StringRefAddr.java: Add comments and implement
487 * javax/naming/directory/InitialDirContext.java: Compile fix
489 2001-10-18 Tom Tromey <tromey@redhat.com>
491 * java/io/BufferedWriter.java (write(String,int,int)): Correctly
494 * java/security/Security.java (loadProviders): Removed unused
495 `pname' variable. Don't create `File' object. Don't update
497 (providerCount): Removed.
498 (insertProviderAt): Don't use `providerCount'.
499 (addProvider(Provider,int)): Likewise.
500 (removeProvider): Likewise.
501 (addProvider(Provider)): Rewrote.
502 (getProviders): Rewrote.
503 (getProvider): Don't use `providerCount'.
505 2001-10-17 Tom Tromey <tromey@redhat.com>
507 * gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
509 * java/security/SecureRandom.java (setSeed(long)): Don't set seed
510 if secureRandomSpi is not initialized.
512 * Makefile.in: Rebuilt.
513 * Makefile.am (secdir): New macro.
514 (install-data-local): Install new data files.
515 * java/security/classpath.security: New file.
516 * java/security/libgcj.security: New file.
518 * java/security/Security.java (loadProviders): Added `vendor'
520 Load both `classpath' and `java.vm.name' providers.
522 2001-10-17 Anthony Green <green@redhat.com>
524 * java/security/Security.java (loadProviders): Fix bug in how
525 providers are loaded.
527 2001-10-16 Tom Tromey <tromey@redhat.com>
529 * gcj/javaprims.h: Updated class list.
530 * java/util/Hashtable.java: Re-merged with Classpath.
532 2001-10-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
534 * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
536 Eliminate use of C++ static constructors.
537 * interpret.cc: Remove static Utf8Consts. Use namespace gcj.
539 * resolve.cc: Likewise.
540 * defineclass.cc: Likewise.
541 (_Jv_ClassReader::handleClassBegin): Synchronize call to
543 * include/jvm.h (void_signature, clinit_name, init_name, finit_name):
544 Declare in namespace gcj.
545 * java/lang/Class.h (Class): Remove initialization for primitive
547 (friend void _Jv_InitPrimClass): This is in prims.cc.
548 * prims.cc (_Jv_InitPrimClass): Do primitive type initialization
550 (void_signature, clinit_name, init_name, finit_name): Define in
552 (_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and
553 _Jv_InitializeSyncMutex from here. Initialize Utf8 constants.
554 Initialize primitive types.
555 * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
556 initialization routines. Don't synchronize.
557 * java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
560 2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
562 * java/util/HashMap.java (HashEntry.clone): Removed.
563 (HashMap(Map)): Use putAllInternal.
565 (putAllInternal): New method. Efficient counterpart to putAll which
567 * java/util/LinkedHashMap.java (rethread): Removed.
568 (putAllInternal): New method. Clear "head" and "tail".
569 (addEntry): New argument "callRemove". Don't call removeEldestEntry()
570 if callRemove == false.
572 * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
573 * Makefile.in: Rebuilt.
575 2001-10-15 Eric Blake <ebb9@email.byu.edu>
577 * java/util/Collection.java: Updated javadoc.
578 * java/util/Comparator.java: Updated javadoc.
579 * java/util/Enumeration.java: Updated javadoc.
580 * java/util/Iterator.java: Updated javadoc.
581 * java/util/List.java: Updated javadoc.
582 * java/util/ListIterator.java: Updated javadoc.
583 * java/util/Map.java: Updated javadoc.
584 * java/util/RandomAccess.java: New file.
585 * java/util/Set.java: Updated javadoc.
586 * java/util/SortedMap.java: Updated javadoc.
587 * java/util/SortedSet.java: Updated javadoc.
589 2001-10-15 Tom Tromey <tromey@redhat.com>
591 * java/lang/reflect/AccessibleObject.java (checkPermission):
593 Updated copyright information.
595 2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
597 * java/lang/natObject.cc (heavy_lock): Moved fields
598 old_client_data, old_finalization_proc near beginning.
599 (heavy_lock_finalization_proc): Now inline; changed type of
601 (JV_SYNC_TABLE_SZ): Now 2048.
603 (spin): `mp' now global.
604 (heavy_lock_obj_finalization_proc): Updated to correctly handle
605 heavy lock finalization.
606 (remove_all_heavy): New function.
607 (maybe_remove_all_heavy): Likewise.
608 (_Jv_MonitorEnter): Throw exception if object is NULL.
609 (_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
611 * include/jvm.h (_Jv_AllocTraceTwo): Declare.
612 * nogc.cc (_Jv_AllocTraceTwo): New function.
613 * boehm.cc (trace_two_vtable): New global.
614 (_Jv_AllocTraceTwo): New function.
616 2001-10-15 Tom Tromey <tromey@redhat.com>
618 * Makefile.in: Rebuilt.
619 * Makefile.am (awt_java_source_files): Added new file.
620 * java/beans/AppletInitializer.java: New file.
622 * java/net/SocketPermission.java (hostport, actions): Now
625 2001-10-14 Mark Wielaard <mark@klomp.org>
627 * java/lang/Double.java: Partial merge with Classpath
628 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
630 (static): new static block to load native libary (not used in libgcj)
631 (Double (String)): call parseDouble()
632 (byteValue): removed, already defined in superclass Number
633 (shortValue): likewise
634 (valueOf (String)): call new Double(String) directly
635 (compare (double,double)): new 1.4 method
636 (compareTo (Double)): call new compare(double,double) method
637 (initIDs): new private method (not used in libgcj)
638 * java/lang/Float.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 (Float (String)): call parseFloat()
643 (byteValue): removed, already defined in superclass Number
644 (shortValue): likewise
645 (valueOf (String)): call new Float(String) directly
646 (compare (float,float)): new 1.4 method
647 (compareTo (Float)): call new compare(double,double) method
649 2001-10-13 Tom Tromey <tromey@redhat.com>
651 * java/lang/SecurityManager.java (SecurityManager): Now public.
653 * java/security/AccessController.java (checkPermission): Now
654 throws AccessControlException.
655 * java/security/AllPermission.java: Class now final.
656 * java/security/Permission.java (getName): Now final.
658 (equals): New abstract method.
659 * java/security/PermissionCollection.java (linesep): Now private.
660 * java/security/Permissions.java: Class now final.
661 * java/security/Security.java (Security): New private
663 * java/security/UnresolvedPermission.java: Import
664 java.security.cert.Certificate. Class now final.
665 * java/security/acl/Group.java: Now extends Principal.
666 (isMember): Added Principal argument.
667 * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
669 * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
672 2001-10-12 Tom Tromey <tromey@redhat.com>
674 * Makefile.in: Rebuilt.
675 * Makefile.am (rmi_java_source_files): Added new files.
676 * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
678 * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
679 * gnu/java/rmi/rmic/Compile_gcj.java: New file.
680 * gnu/java/rmi/rmic/CompilerProcess.java: New file.
681 * gnu/java/rmi/rmic/Compiler.java: New file.
683 2001-10-11 Tom Tromey <tromey@redhat.com>
685 * configure: Rebuilt.
686 * configure.in: Recognize --disable-java-awt.
688 2001-10-10 Tom Tromey <tromey@redhat.com>
690 * gnu/gcj/runtime/natFinalizerThread.cc: New file.
691 * java/lang/natRuntime.cc: Include FinalizerThread.h.
692 (runFinalization): Call finalizerReady.
693 * nogc.cc (_Jv_GCInitializeFinalizers): New function.
694 * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
695 (_Jv_CreateJavaVM): Start the finalizer thread.
696 * no-threads.cc: Include InternalError.h.
697 (_Jv_ThreadStart): Throw InternalError.
698 (_Jv_ThreadInitData): Don't throw error if this is not the first
700 * Makefile.in: Rebuilt.
701 * Makefile.am (ordinary_java_source_files): Added
702 FinalizerThread.java.
703 (nat_source_files): Added natFinalizerThread.cc.
704 * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
705 * boehm.cc (_Jv_GCInitializeFinalizers): New function.
706 * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
707 * gnu/gcj/runtime/FinalizerThread.java: New file.
709 2001-10-09 Per Bothner <per@bothner.com>
711 * strtod.c (_strtod_r): Logic to check for missing digits
712 after exponent had 'else' attached to wrong 'if'.
714 2001-10-09 Mark Wielaard <mark@klomp.org>
716 * java/net/SocketImpl.java: Merge with Classpath
718 2001-10-08 Mark Wielaard <mark@klomp.org>
720 * java/net/DatagramSocketImpl.java: Merge with Classpath
722 2001-10-07 Mark Wielaard <mark@klomp.org>
724 * java/net/URLDecoder.java: Remerge with Classpath
725 * java/net/URLEncoder.java: Merge with Classpath
727 2001-10-08 Tom Tromey <tromey@redhat.com>
729 Fix for PR libgcj/4481:
730 * java/io/File.java (getParent): Handle case where path is "/".
731 (normalizePath): Use correct string for UNC leader.
733 2001-10-06 Mark Wielaard <mark@klomp.org>
735 * java/io/BufferedInputStream.java: Merge with Classpath
737 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
739 * defineclass.cc, java/awt/image/ColorModel.java,
740 java/awt/image/SampleModel.java, java/lang/Package.java,
741 java/security/cert/X509Extension.java: Fix spelling errors of
742 "separate" as "seperate", and corresponding spelling errors of
745 2001-10-05 Tom Tromey <tromey@redhat.com>
747 * java/text/DecimalFormat.java (format): Use localized minus sign
748 when generating exponent; never use `+'. Use floor to compute
751 2001-10-05 Mark Wielaard <mark@klomp.org>
753 * java/util/zip/Adler32.java: Merge with Classpath
754 * java/util/zip/CRC32.java: Ditto
755 * java/util/zip/Checksum.java: Ditto
756 * java/util/zip/DataFormatException.java: Ditto
757 * java/util/zip/ZipException.java: Ditto
759 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
761 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
763 2001-10-04 Mark Wielaard <mark@klomp.org>
765 * java/lang/reflect/Modifier.java: Merge with Classpath
767 2001-10-03 Mark Wielaard <mark@klomp.org>
769 * java/io/SequenceInputStream.java: Merge with Classpath
770 * java/io/StringBufferInputStream.java: Ditto
771 * java/util/Collections.java: Remerge with Classpath
773 2001-10-03 Tom Tromey <tromey@redhat.com>
775 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
778 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
780 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
781 * gij.cc (version): Use GCJVERSION.
783 2001-10-02 Mark Wielaard <mark@klomp.org>
785 * Makefile.am (core_java_source_files): add InheritableThreadLocal
786 * Makefile.in: regenerate
787 * gcj/javaprims.h: ditto
788 * java/lang/InheritableThreadLocal.java: new class from Classpath
789 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
790 call InheritableThreadLocal.newChildThread()
792 2001-10-01 Mark Wielaard <mark@klomp.org>
794 * Makefile.am: Add new classes
795 (core_java_source_files): CharSequence
796 (ordinary_java_source_files): Authenticator, PasswordAuthentication
797 * Makefile.in: regenerate
798 * gcj/javaprims.h: ditto
799 * java/lang/CharSequence: new class from Classpath
800 * java/lang/String.java: implements CharSequence
801 (subSequence (int,int)): new method
802 * java/lang/SubString.java: implements CharSequence
803 (subSequence (int,int)): new method
804 remerge comments with Classpath
805 * java/net/Authenticator.java: new class from Classpath
806 * java/net/PasswordAuthentication.java: ditto
808 2001-10-01 Tom Tromey <tromey@redhat.com>
810 * gcj/javaprims.h: Rebuilt class list.
811 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
812 (_Jv_GCCanReclaimSoftReference): New function.
813 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
814 (_Jv_GCCanReclaimSoftReference): Declare.
815 * java/lang/ref/Reference.java (referent): Now a RawData.
816 (create): Renamed from `created'. Added object argument.
817 (Reference): Don't initialize `referent' here.
818 * Makefile.in: Rebuilt.
819 * Makefile.am (nat_source_files): Added new file.
820 * java/lang/ref/natReference.cc: New file.
822 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
823 (_Jv_NewMultiArray): Use it. Check each array dimension.
824 (_Jv_NewMultiArray): Likewise.
825 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
827 * java/lang/reflect/natArray.cc (newInstance): Throw
828 IllegalArgumentException if there are no dimensions.
830 2001-10-01 Mark Wielaard <mark@klomp.org>
832 * java/io/FileWriter.java: Merge with Classpath.
833 * java/io/FilterInputStream.java: Ditto.
834 (mark): no longer synchronized
836 * java/io/FilterOutputStream.java: Merge with Classpath.
837 * java/io/FilterReader.java: Ditto.
838 (mark): no longer synchronized
840 * java/io/FilterWriter.java: Merge with Classpath.
841 * java/io/Writer.java: Ditto.
842 * java/lang/Compiler.java: Ditto.
843 * java/lang/Process.java: Ditto.
844 * java/lang/Void.java: Ditto.
845 * java/net/ContentHandler.java: Ditto.
846 * java/net/DatagramPacket.java: Ditto.
847 * java/net/MulticastSocket.java: Merge comments with Classpath.
849 2001-09-30 Mark Wielaard <mark@klomp.org>
851 * java/io/DataInput.java: Merge with Classpath.
852 * java/io/DataOutput.java: Idem.
853 * java/io/FilenameFilter.java: Idem.
854 * java/io/Serializable.java: Idem.
855 * java/lang/Cloneable.java: Idem.
856 * java/lang/Comparable.java: Idem.
857 * java/lang/Runnable.java: Idem.
858 * java/lang/reflect/Member.java: Idem.
859 * java/net/ContentHandlerFactory.java: Idem.
860 * java/net/FileNameMap.java: Idem.
861 * java/net/SocketImplFactory.java: Idem.
862 * java/net/SocketOptions.java: Idem.
863 * java/net/URLStreamHandlerFactory.java: Idem.
865 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
867 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
868 an uninitialized target class.
870 * gnu/gcj/protocol/file/Connection.java (connect): Throw
871 FileNotFoundException if appropriate.
872 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
873 IOException if we got a file: url with a hostname. Comment out protocol
874 switch to ftp for now.
875 * java/net/URL.java (URL): Include protocol name in exception message
876 when handler can't be found.
878 2001-09-28 Per Bothner <per@bothner.com>
880 * gnu/gcj/runtime/SharedLibLoader.java: New class.
881 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
882 * Makefile.am: Update accordingly.
883 * configure.in: Add AC_CHECK_LIB for dlopen.
884 * include/config.h.in: Add HAVE_DLOPEN.
886 2001-09-29 Jeff Sturm <jsturm@one-point.com>
888 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
889 * Makefile.in: Rebuilt.
891 2001-09-27 Tom Tromey <tromey@redhat.com>
893 * java/util/IdentityHashMap.java (containsKey): Use getHash.
897 (getHash): New method.
898 (tombstone, emptyslot): Now static final.
899 (put): Correctly determine when to rehash, and correctly rehash.
900 (containsKey, remove): Test against table length with `>='.
902 2001-09-26 Tom Tromey <tromey@redhat.com>
904 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
906 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
907 Re-merged with Classpath.
909 * java/io/DataInputStream.java (readChar): Use readFully.
911 (readLong): Likewise.
912 (readShort): Likewise.
913 (readUnsignedShort): Likewise.
915 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
917 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
918 IllegalThreadStateException if process hasn't exited yet.
919 * java/lang/natPosixProcess.cc (exitValue): Removed.
920 (waitFor): Only check thread interrupted status if waitpid() returned
921 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
924 * java/security/cert/X509Extension.java: Merge from classpath.
926 2001-09-22 Anthony Green <green@redhat.com>
928 * java/security/DummyKeyPairGenerator.java (initialize): New
929 method (with AlgorithmParameterSpec argument).
931 2001-09-22 Anthony Green <green@redhat.com>
933 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
935 * gnu/java/security/provider/SHA1PRNG.java: Extend from
937 (engineNextBytes): Fix order of memory copies.
939 2001-09-21 Richard Henderson <rth@redhat.com>
941 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
942 add get_method, set_method, vtable_elt_size, new_vtable.
943 (_Jv_ArrayVTable): Derive from _Jv_VTable.
944 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
945 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
946 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
948 2001-09-21 Richard Henderson <rth@redhat.com>
950 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
951 * java/lang/mprec.c (lo0bits): Fix paren typo.
953 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
955 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
956 blocking IO via pthread_kill().
957 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
958 interrupted status flag only if ::write returned an error.
959 (write (jbyteArray, jint, jint): Likewise.
960 (read (jint)): Likewise.
961 (read (jbyteArray, jint, jint): Likewise.
963 2001-09-19 Anthony Green <green@redhat.com>
965 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
968 2001-09-17 Andreas Jaeger <aj@suse.de>
970 * jni.cc (array_from_valist): Use promoted types for va_arg.
972 2001-09-16 Anthony Green <green@redhat.com>
974 * gnu/java/locale/LocaleInformation.java: Extend
975 LocaleInformation_en_US, not LocaleInformation_en.
977 2001-09-16 Anthony Green <green@redhat.com>
979 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
981 2001-09-14 Tom Tromey <tromey@redhat.com>
983 * java/util/TimeZone.java: Updated list of timezones from
986 * java/lang/CloneNotSupportedException.java: Re-merged with
989 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
991 * java/io/File.java (normalizePath): Use equals() not '==' for string
994 * java/util/Hashtable.java (Enumerator): Ensure that if
995 hasMoreElements() returns true, nextElement() will always return
996 something even if the table has been modified.
998 2001-09-12 Tom Tromey <tromey@redhat.com>
1000 * Makefile.in: Rebuilt.
1001 * Makefile.am (class-check): New target.
1003 2001-09-11 Tom Tromey <tromey@redhat.com>
1005 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
1007 2001-09-10 Tom Tromey <tromey@redhat.com>
1009 * java/util/Properties.java (load): Correctly read \u sequences.
1010 Report from Anthony Green.
1012 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
1014 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
1015 and $(MULTIBUILDTOP).
1016 * configure: Re-generate.
1018 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1020 * include/jvm.h (_Jv_AllocRawObj): New prototype.
1021 * boehm.cc (_Jv_AllocRawObj): Implement.
1022 * nogc.cc (_Jv_AllocRawObj): Likewise.
1023 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
1025 2001-09-06 Anthony Green <green@redhat.com>
1027 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
1028 redundant method calls.
1029 (emptyLocale): New private member.
1030 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
1033 2001-09-06 Tom Tromey <tromey@redhat.com>
1035 * java/text/RuleBasedCollator.java (clone): Rewrote.
1036 (RuleBasedCollator(RuleBasedCollator)): Removed.
1037 * java/text/MessageFormat.java: Re-merged from Classpath.
1038 * java/text/DecimalFormat.java: Re-merged from Classpath.
1040 2001-09-06 Anthony Green <green@redhat.com>
1042 * include/jvm.h: Declare _Jv_RegisterResource.
1043 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
1044 gnu/gcj/protocol/core/Connection.java,
1045 gnu/gcj/protocol/core/Handler.java,
1046 gnu/gcj/protocol/core/CoreInputStream.java,
1047 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
1048 * java/net/URL.java (setURLStreamHandler): Use
1049 gnu.gcj.protocol.core.Handler for the core protocol.
1050 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
1051 end of java.class.path.
1052 * Makefile.am (ordinary_java_source_files): Add new java files.
1053 (nat_source_files): Add new native code files.
1054 * Makefile.in: Rebuilt.
1056 2001-09-05 Tom Tromey <tromey@redhat.com>
1058 * java/util/Properties.java: Re-merged from Classpath.
1060 From Eric Blake, via Classpath:
1061 * java/lang/String.java (CaseInsensitiveComparator): New class.
1062 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
1064 * java/util/Date.java: Re-merged with Classpath.
1066 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
1068 2001-09-05 Corey Minyard <minyard@acm.org>
1069 Tom Tromey <tromey@redhat.com>
1071 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
1072 (_Jv_RegisterClassHookDefault): Throw error if a class is
1075 2001-09-05 Tom Tromey <tromey@redhat.com>
1077 * java/lang/natSystem.cc (init_properties): Default locale is
1080 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1082 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
1083 here, DecimalFormat.applyPattern() does not throw it.
1085 2001-09-04 Tom Tromey <tromey@redhat.com>
1087 * java/util/AbstractMap.java: Re-merged with Classpath.
1088 * java/util/IdentityHashMap.java: Re-merged with Classpath.
1090 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
1091 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
1092 gnu/gcj/text/LocaleData_en_US.java: Removed.
1093 * java/text/DateFormatSymbols.java (clone): Use Classpath
1095 (equals): Simplified.
1096 (DateFormatSymbols): Look in gnu.java.locale for information.
1097 (DateFormatSymbols(DateFormatSymbols)): Removed.
1098 (safeGetResource): Removed.
1099 (DateFormatSymbols): Throws MissingResourceException.
1100 (ampmsDefault, erasDefault, localPatternCharsDefault,
1101 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
1102 weekdaysDefault, zoneStringsDefault): Removed.
1103 * java/text/Collator.java (getAvailableLocales): Use modified
1104 Classpath implementation.
1105 (getInstance): Look in gnu.java.locale for information.
1107 * java/text/MessageFormat.java: Reindented.
1109 * java/text/FieldPosition.java: Merged with Classpath.
1110 * java/text/ParsePosition.java: Merged with Classpath.
1111 * java/text/Format.java: Merged with Classpath.
1112 * java/text/StringCharacterIterator.java
1113 (StringCharacterIterator(StringCharacterIterator,int,int)): New
1114 constructor from Classpath.
1115 * java/text/Annotation.java,
1116 java/text/AttributedCharacterIterator.java,
1117 java/text/AttributedString.java,
1118 java/text/AttributedStringIterator.java: New from Classpath.
1119 * java/text/CharacterIterator.java: Copied from Classpath.
1120 * java/text/ChoiceFormat.java: Reindented.
1122 * gnu/java/text/BaseBreakIterator.java,
1123 gnu/java/text/CharacterBreakIterator.java,
1124 gnu/java/text/LineBreakIterator.java,
1125 gnu/java/text/LocaleData_en.java,
1126 gnu/java/text/LocaleData_en_US.java,
1127 gnu/java/text/SentenceBreakIterator.java,
1128 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
1129 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
1131 * java/text/BreakIterator.java (getAvailableLocales): Use
1132 Classpath implementation.
1133 (getInstance): Look in gnu.java.locale for information.
1134 (getCharacterInstance, getLineInstance, getSentenceInstance,
1135 getWordInstance): Look in gnu.java.text for implementations.
1136 * java/text/DecimalFormatSymbols.java: Reindented
1137 (clone): Use Classpath implementation.
1138 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
1139 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
1141 * java/text/DateFormat.java: Merged with Classpath.
1142 (getAvailableLocales): Use Classpath implementation.
1143 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
1144 (computeInstance): Look in gnu.java.locale for information.
1145 * java/text/NumberFormat.java: Reindented.
1146 (computeInstance): Look in gnu.java.locale for information.
1147 (getAvailableLocales): Use implementation from Classpath.
1148 (setMaximumIntegerDigits): Likewise.
1149 (setMinimumIntegerDigits): Likewise.
1150 (setMaximumFractionDigits): Likewise.
1152 * java/text/DecimalFormat.java: Reindented.
1153 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
1154 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
1155 * Makefile.in: Rebuilt.
1156 * Makefile.am (ordinary_java_source_files): Added all new files.
1157 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
1158 * java/security/spec/AlgorithmParameterSpec.java,
1159 java/security/spec/KeySpec.java: Re-merged with Classpath.
1161 Fix for PR libgcj/4213:
1162 * Makefile.am (ordinary_java_source_files): Added new file.
1163 * gnu/gcj/text/LocaleData.java: New file.
1165 2001-09-03 Tom Tromey <tromey@redhat.com>
1167 * java/lang/reflect/natField.cc (set): Allow for case when the
1168 value is null. Fixes PR libgcj/4208.
1170 * gcj/javaprims.h: Regenerated class list.
1171 * java/lang/IllegalThreadStateException.java,
1172 java/lang/InstantiationException.java: Minor comment tweaks to
1173 satisfy libgcj `classes.pl' script.
1175 2001-09-01 Tom Tromey <tromey@redhat.com>
1177 * Makefile.in: Rebuilt.
1178 * Makefile.am (core_java_source_files): Added
1179 UnsupportedClassVersionError.
1180 * java/lang/UnsupportedClassVersionError.java: New file from
1183 * java/io/CharConversionException.java, java/io/EOFException.java,
1184 java/io/FileNotFoundException.java, java/io/IOException.java,
1185 java/io/InterruptedIOException.java,
1186 java/io/ObjectStreamException.java,
1187 java/io/OptionalDataException.java,
1188 java/io/StreamCorruptedException.java,
1189 java/io/SyncFailedException.java,
1190 java/io/UTFDataFormatException.java,
1191 java/io/UnsupportedEncodingException.java,
1192 java/lang/AbstractMethodError.java,
1193 java/lang/ArithmeticException.java,
1194 java/lang/ArrayIndexOutOfBoundsException.java,
1195 java/lang/ArrayStoreException.java,
1196 java/lang/ClassCastException.java,
1197 java/lang/ClassCircularityError.java,
1198 java/lang/ClassFormatError.java,
1199 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
1200 java/lang/Exception.java,
1201 java/lang/ExceptionInInitializerError.java,
1202 java/lang/IllegalAccessError.java,
1203 java/lang/IllegalAccessException.java,
1204 java/lang/IllegalArgumentException.java,
1205 java/lang/IllegalMonitorStateException.java,
1206 java/lang/IllegalStateException.java,
1207 java/lang/IllegalThreadStateException.java,
1208 java/lang/IncompatibleClassChangeError.java,
1209 java/lang/IndexOutOfBoundsException.java,
1210 java/lang/InstantiationError.java,
1211 java/lang/InstantiationException.java,
1212 java/lang/InternalError.java, java/lang/InterruptedException.java,
1213 java/lang/LinkageError.java,
1214 java/lang/NegativeArraySizeException.java,
1215 java/lang/NoClassDefFoundError.java,
1216 java/lang/NoSuchFieldError.java,
1217 java/lang/NoSuchFieldException.java,
1218 java/lang/NoSuchMethodError.java,
1219 java/lang/NoSuchMethodException.java,
1220 java/lang/NullPointerException.java,
1221 java/lang/NumberFormatException.java,
1222 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
1223 java/lang/SecurityException.java,
1224 java/lang/StackOverflowError.java,
1225 java/lang/StringIndexOutOfBoundsException.java,
1226 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
1227 java/lang/UnsatisfiedLinkError.java,
1228 java/lang/UnsupportedOperationException.java,
1229 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
1230 java/lang/reflect/InvocationTargetException.java,
1231 java/net/BindException.java, java/net/ConnectException.java,
1232 java/net/MalformedURLException.java,
1233 java/net/NoRouteToHostException.java,
1234 java/net/ProtocolException.java, java/net/SocketException.java,
1235 java/net/UnknownHostException.java,
1236 java/net/UnknownServiceException.java,
1237 java/text/ParseException.java: Copied from Classpath, thanks to
1238 Mark Wielaard who did the merge.
1240 * java/lang/System.java (getProperty): Use single argument form of
1241 SecurityManager.checkPropertyAccess.
1242 * Makefile.in: Rebuilt.
1243 * Makefile.am (core_java_source_files): Added VMSecurityManager.
1244 * java/lang/VMSecurityManager.java: New file.
1245 * java/lang/SecurityManager.java: Merged with Classpath.
1247 2001-08-31 Per Bothner <per@bothner.com>
1249 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
1250 (_Jv_RegisterClassHookDefault): Likewise.
1251 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
1252 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
1253 (_Jv_RegisterClassHookDefault): New.function.
1254 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
1256 * java/lang/ClassLoader.java (system): Remove static field.
1257 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
1258 directly instead of using it to set the system field.
1259 (loadClass): Use VMClassLoader.instance instead of system field.
1260 (findSystemClass): Similar.
1261 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
1262 than ClassLoader::system which no longer exists.
1263 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
1265 2001-08-31 Tom Tromey <tromey@redhat.com>
1267 * java/io/BufferedReader.java, java/io/ObjectInput.java,
1268 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
1269 Re-merged with Classpath.
1271 Re-merge with Classpath:
1272 * java/util/Comparator (equals): Added.
1273 * java/io/PipedWriter.java (write): Changed argument to `int'.
1275 * java/io/FileDescriptor.java (FileDescriptor()): New
1277 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
1279 * Makefile.in: Rebuilt.
1280 * Makefile.am (ordinary_java_source_files): Removed
1281 EnumerationChain, added DoubleEnumeration.
1282 (nat_source_files): Added natResourceBundle.cc.
1283 * java/util/natResourceBundle.cc: New file.
1284 * gnu/java/util/DoubleEnumeration.java: New file.
1285 * gnu/gcj/util/EnumerationChain.java: Removed.
1286 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
1287 * java/util/ResourceBundle.java: Merged with Classpath.
1288 * java/util/StringTokenizer.java: Merged with Classpath.
1289 * java/util/Locale.java: Merged with Classpath.
1290 * java/util/Random.java: Merged with Classpath.
1291 * java/util/PropertyResourceBundle.java: Merged with Classpath.
1292 * java/util/ListResourceBundle.java: Merged with Classpath.
1293 * java/util/ConcurrentModificationException.java: Re-merged with
1295 * java/util/EmptyStackException.java: Likewise.
1296 * java/util/MissingResourceException.java: Likewise.
1297 * java/util/NoSuchElementException.java: Likewise.
1298 * java/util/TooManyListenersException.java: Likewise.
1300 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
1301 * java/io/OptionalDataException.java: Merged with Classpath.
1303 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
1305 * exception.cc (PERSONALITY_FUNCTION): Simplify
1308 2001-08-31 Tom Tromey <tromey@redhat.com>
1310 * java/io/ByteArrayInputStream.java: Merged with Classpath.
1312 2001-08-30 Tom Tromey <tromey@redhat.com>
1314 * java/io/BufferedReader.java: Re-merged with Classpath.
1316 2001-08-28 Per Bothner <per@bothner.com>
1318 * java/math/BigInteger.java (init(int,Random)): New method.
1319 Move body of constructor <init>(int,Random)) here.
1320 Re-write it to avoid constructing unneeded temporaries.
1321 (<init>(int,int,Random)): Use new init method to avoid constructing
1322 extra temporary BigIntegers.
1324 2001-08-27 Tom Tromey <tromey@redhat.com>
1326 * java/rmi/activation/Activatable.java,
1327 java/rmi/activation/ActivateFailedException.java,
1328 java/rmi/activation/ActivationDesc.java,
1329 java/rmi/activation/ActivationException.java,
1330 java/rmi/activation/ActivationGroup.java,
1331 java/rmi/activation/ActivationGroupDesc.java,
1332 java/rmi/activation/ActivationGroupID.java,
1333 java/rmi/activation/ActivationID.java,
1334 java/rmi/activation/ActivationInstantiator.java,
1335 java/rmi/activation/ActivationMonitor.java,
1336 java/rmi/activation/ActivationSystem.java,
1337 java/rmi/activation/Activator.java,
1338 java/rmi/activation/UnknownGroupException.java,
1339 java/rmi/activation/UnknownObjectException.java,
1340 java/rmi/AccessException.java,
1341 java/rmi/AlreadyBoundException.java,
1342 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
1343 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
1344 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
1345 java/rmi/NotBoundException.java,
1346 java/rmi/RMISecurityException.java,
1347 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
1348 java/rmi/RemoteException.java, java/rmi/ServerError.java,
1349 java/rmi/ServerException.java,
1350 java/rmi/ServerRuntimeException.java,
1351 java/rmi/StubNotFoundException.java,
1352 java/rmi/UnexpectedException.java,
1353 java/rmi/UnknownHostException.java,
1354 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
1355 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
1356 java/rmi/registry/LocateRegistry.java,
1357 java/rmi/registry/Registry.java,
1358 java/rmi/registry/RegistryHandler.java,
1359 java/rmi/server/ExportException.java,
1360 java/rmi/server/LoaderHandler.java,
1361 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
1362 java/rmi/server/Operation.java,
1363 java/rmi/server/RMIClassLoader.java,
1364 java/rmi/server/RMIClientSocketFactory.java,
1365 java/rmi/server/RMIFailureHandler.java,
1366 java/rmi/server/RMIServerSocketFactory.java,
1367 java/rmi/server/RMISocketFactory.java,
1368 java/rmi/server/RemoteCall.java,
1369 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
1370 java/rmi/server/RemoteServer.java,
1371 java/rmi/server/RemoteStub.java,
1372 java/rmi/server/ServerCloneException.java,
1373 java/rmi/server/ServerNotActiveException.java,
1374 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
1375 java/rmi/server/SkeletonMismatchException.java,
1376 java/rmi/server/SkeletonNotFoundException.java,
1377 java/rmi/server/SocketSecurityException.java,
1378 java/rmi/server/UID.java,
1379 java/rmi/server/UnicastRemoteObject.java,
1380 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
1381 gnu/java/rmi/dgc/DGCImpl_Skel.java,
1382 gnu/java/rmi/dgc/DGCImpl_Stub.java,
1383 gnu/java/rmi/registry/RegistryImpl.java,
1384 gnu/java/rmi/registry/RegistryImpl_Skel.java,
1385 gnu/java/rmi/registry/RegistryImpl_Stub.java,
1386 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
1387 gnu/java/rmi/server/ProtocolConstants.java,
1388 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
1389 gnu/java/rmi/server/RMIHashes.java,
1390 gnu/java/rmi/server/RMIObjectInputStream.java,
1391 gnu/java/rmi/server/RMIObjectOutputStream.java,
1392 gnu/java/rmi/server/UnicastConnection.java,
1393 gnu/java/rmi/server/UnicastConnectionManager.java,
1394 gnu/java/rmi/server/UnicastRef.java,
1395 gnu/java/rmi/server/UnicastRemoteCall.java,
1396 gnu/java/rmi/server/UnicastRemoteStub.java,
1397 gnu/java/rmi/server/UnicastServer.java,
1398 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
1399 Kaffe. Relabelled classes to fit into Classpath tree.
1400 * Makefile.in: Rebuilt.
1401 * Makefile.am (rmi_java_source_files): New macro.
1402 (ordinary_java_source_files): Reference it.
1403 (bin_PROGRAMS): Added rmic and rmiregistry.
1404 (rmic_SOURCES): New macro.
1405 (EXTRA_rmic_SOURCES): Likewise.
1406 (rmic_LDFLAGS): Likewise.
1407 (rmic_LINK): Likewise.
1408 (rmic_LDADD): Likewise.
1409 (rmic_DEPENDENCIES): Likewise.
1410 (rmiregistry_SOURCES): New macro.
1411 (EXTRA_rmiregistry_SOURCES): Likewise.
1412 (rmiregistry_LDFLAGS): Likewise.
1413 (rmiregistry_LINK): Likewise.
1414 (rmiregistry_LDADD): Likewise.
1415 (rmiregistry_DEPENDENCIES): Likewise.
1417 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1419 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
1421 * Makefile.am: New friends for java/lang/Thread.h.
1422 * prims.cc (runFirst): Removed.
1423 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
1424 (_Jv_RunMain): Now takes either a klass or class name parameter.
1425 Create a gnu.gcj.runtime.FirstThread and attach the native thread
1426 to that, then run it using _Jv_ThreadRun. Remove special handling of
1427 jar files, instead pass is_jar parameter through to FirstThread.
1428 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
1429 of _Jv_AttachCurrentThread.
1430 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
1431 (run): New method. Take care of looking up main class manifest
1432 attribute and calling forName if necessary. Then call call_main.
1433 (call_main): New native method.
1434 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
1435 relocated from prims.cc. Look up and call main method.
1436 * java/lang/Thread.java (run_): Removed.
1437 * java/lang/natThread.cc (run_): Renamed to...
1438 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
1439 (_Jv_NotifyThreadStart): here. New function.
1440 (countStackFrames, destroy, resume, suspend, stop): Throw
1441 UnsupportedOperationExceptions rather than JvFail'ing.
1442 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
1443 Existing version wraps new variant.
1446 2001-08-23 Tom Tromey <tromey@redhat.com>
1448 * java/lang/reflect/Field.java (toString): Use
1449 Method.appendClassName.
1450 * java/lang/reflect/Constructor.java (toString): Use
1451 Method.appendClassName.
1452 * java/lang/reflect/Method.java: Reindented.
1453 (appendClassName): New method.
1455 * defineclass.cc (handleMethod ): Initialize `throws' field of
1457 (read_one_method_attribute): Handle Exceptions attribute.
1458 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
1459 (ObjectClass): Removed.
1460 (getType): Compute `exception_types'.
1461 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
1463 2001-08-21 Anthony Green <green@redhat.com>
1465 * java/lang/natClassLoader.cc (findClass): Search for
1466 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
1468 2001-08-21 Jeff Sturm <jsturm@one-point.com>
1470 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
1473 2001-08-20 Tom Tromey <tromey@redhat.com>
1475 * java/awt/GridBagConstraints.java: Removed comment.
1477 * jni.cc (nathash, nathash_count, nathash_size): New globals.
1478 (DELETED_ENTRY): New define.
1479 (hash): New function.
1480 (nathash_find_slot): Likewise.
1481 (natrehash): Likewise.
1482 (nathash_add): Likewise.
1483 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
1485 (nathash_find): New function.
1486 (_Jv_LookupJNIMethod): Use it. Synchronize body.
1487 (call): Synchronize around assignment.
1489 2001-08-17 Jeff Sturm <jsturm@one-point.com>
1491 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
1492 starting from zero offset.
1494 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1496 * boehm.cc: Include gc_local_alloc.h if appropriate.
1497 (GC_GENERIC_MALLOC): Don't define.
1498 (MAYBE_MARK): Redefine for GC 6.0.
1499 (_Jv_MarkObj): Mark class differently.
1500 (_Jv_AllocArray): Use GC_generic_malloc.
1502 2001-08-17 Mark J Roberts <mjr@anarcast.net>
1504 * java/math/BigInteger.java (randBytes): New method.
1505 (BigInteger(int,Random)): Use randBytes.
1507 2001-08-17 Tom Tromey <tromey@redhat.com>
1509 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
1511 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1513 * BigInteger.java: fix right shifts by nonzero multiples of 32.
1515 2001-08-15 Tom Tromey <tromey@redhat.com>
1517 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
1518 (local_ref_table, global_ref_table): Now IdentityHashMap.
1519 (_Jv_JNI_Init): Updated for new types.
1520 (mark_for_gc): Likewise.
1521 (unmark_for_gc): Likewise.
1522 * gcj/javaprims.h: Rebuilt class list.
1523 * Makefile.in: Rebuilt.
1524 * Makefile.am (core_java_source_files): Added new file.
1525 * java/util/IdentityHashMap.java: New file.
1527 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
1530 2001-08-09 Tom Tromey <tromey@redhat.com>
1532 * java/awt/image/SampleModel.java (getPixel): Set correct array
1533 element. From Chris Meyer.
1535 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
1537 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
1538 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
1540 2001-08-06 Tom Tromey <tromey@redhat.com>
1542 * java/io/InputStreamReader.java (refill): Only call refill on
1543 BufferedInputStream when appropriate constraints are met.
1545 2001-08-05 Tom Tromey <tromey@redhat.com>
1547 * java/io/StringWriter.java: Merged with Classpath.
1548 * java/io/InputStream.java: Merged with Classpath.
1549 * java/io/OutputStream.java: Merged with Classpath.
1550 * java/io/PushbackInputStream.java: Merged with Classpath.
1551 * java/io/CharArrayReader.java: Merged with Classpath.
1552 * java/io/CharArrayWriter.java: Merged with Classpath.
1554 2001-08-02 Tom Tromey <tromey@redhat.com>
1556 * prims.cc (JNI_OnLoad): Don't declare.
1557 (_JNI_OnLoad): Don't define.
1558 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
1560 2001-08-02 Tom Tromey <tromey@redhat.com>
1562 * java/io/RandomAccessFile.java (seek): Let seek go past end of
1564 (skipBytes): Don't fail if seeking past end of file.
1565 * java/io/FileInputStream.java (skip): Don't fail if seeking past
1567 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
1569 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
1571 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
1573 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
1575 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
1577 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
1578 to initialize global_ref_table/local_ref_table.
1580 2001-08-02 Tom Tromey <tromey@redhat.com>
1582 * configure: Rebuilt.
1583 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
1586 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1588 * include/posix.h (_POSIX_PII_SOCKET): Define.
1589 * configure.in (HAVE_SOCKLEN_T): Define.
1590 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
1592 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
1593 (java::net::PlainSocketImpl::accept): Use it.
1594 Fixes PRs libgcj/3694, libgcj/3696.
1596 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
1597 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
1598 * configure, include/config.h.in: Regenerate.
1599 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
1600 (mcastGrp): Likewise.
1601 (java::net::PlainDatagramSocketImpl::setOption): Guard against
1602 missing IPV6_MULTICAST_IF.
1603 Fixes PR libgcj/3694.
1605 2001-08-01 Jeff Sturm <jsturm@one-point.com>
1607 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
1609 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
1611 * Makefile.in: Rebuilt.
1612 * Makefile.am (GCJLINK): Added --tag=GCJ.
1613 (LIBLINK): Likewise.
1615 2001-07-30 Tom Tromey <tromey@redhat.com>
1617 * java/util/Date.java: Re-merged with Classpath.
1619 2001-07-30 Jeff Sturm <jsturm@one-point.com>
1621 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
1622 (_Jv_bind): New static function.
1623 (bind): Use _Jv_bind.
1624 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1625 (_Jv_bind, _Jv_connect): New static functions.
1626 (bind): Use _Jv_bind.
1627 (connect): Use _Jv_connect.
1629 2001-07-30 Tom Tromey <tromey@redhat.com>
1630 Corey Minyard <minyard@acm.org>
1632 * gnu/gcj/convert/natIconv.cc (done): New methods.
1633 * gnu/gcj/convert/Output_iconv.java (done): New method.
1634 * gnu/gcj/convert/Input_iconv.java (done): New method.
1635 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1637 (getDefaultEncodingClass): Removed.
1638 (getDefaultEncoder): Use getEncoder.
1640 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1642 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1644 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1646 (getDefaultDecodingClass): Removed.
1647 (getDefaultDecoder): Use getDecoder.
1648 (getDecoder): Look up decoder in cache.
1650 * java/lang/natString.cc (init): Call `done' on converter.
1651 (getBytes): Likewise.
1653 2001-07-30 Tom Tromey <tromey@redhat.com>
1655 * java/lang/Integer.java: Merged with Classpath.
1657 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1659 * java/util/GregorianCalendar.java (GregorianCalendar): Call
1660 setTimeInMillis() to set the default/current time.
1662 2001-07-29 Mark Wielaard <mark@klomp.org>
1664 * HACKING: add description on updating namespace
1666 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1668 * java/util/Calendar.java (set): Never recompute fields here. They
1669 will already be set if someone set time explicitly, and it can cause
1670 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1671 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1672 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1674 * java/text/SimpleDateFormat.java (defaultCentury): New field.
1675 (readObject): Call set2DigitYearStart if appropriate so that
1676 defaultCentury is calculated.
1677 (SimpleDateFormat): Don't bother clearing calendar here. Call
1678 computeCenturyStart().
1679 (set2DigitYearStart): Calculate and set defaultCentury.
1680 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1682 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1683 2 numeric digits, use the 80-20 heuristic to parse the value into a
1684 default century based on defaultCenturyStart.
1685 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1687 2001-07-25 Tom Tromey <tromey@redhat.com>
1689 * Makefile.in: Rebuilt.
1690 * Makefile.am (libgcj.jar): Correctly fail when bytecode
1693 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1695 * prims.cc (_JNI_OnLoad): New function.
1696 (JNI_OnLoad): Use it.
1697 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1699 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1701 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1702 Makefile.in: Regenerate.
1704 2001-07-24 Tom Tromey <tromey@redhat.com>
1706 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1709 2001-07-23 Tom Tromey <tromey@redhat.com>
1711 * gcj/javaprims.h: Rebuilt class list.
1712 * Makefile.in: Rebuilt.
1713 * Makefile.am (core_java_source_files): Added VMClassLoader.
1714 * java/lang/VMClassLoader.java: New file.
1715 * java/lang/Boolean.java: Merged with Classpath.
1716 * java/lang/Byte.java: Merged with Classpath.
1717 * java/lang/Integer.java: Merged with Classpath.
1718 * java/lang/Long.java: Merged with Classpath.
1719 * java/lang/Number.java: Merged with Classpath.
1720 * java/lang/Short.java: Merged with Classpath.
1722 2001-07-22 Jeff Sturm <jsturm@one-point.com>
1724 * configure.host: Enable hash synchronization for alpha*-*.
1725 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1727 * java/lang/natObject.cc (compare_and_swap, release_set,
1728 compare_and_swap_release): Added inline functions for alpha.
1730 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1732 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1733 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1734 back to old RFC 2133 variants if missing.
1736 2001-07-18 Tom Tromey <tromey@redhat.com>
1738 * java/io/natFileWin32.cc (_access): Renamed.
1740 * java/io/natFile.cc (_access): Renamed.
1742 * java/io/File.java (access, stat): Add leading `_' to name.
1743 Updated all callers.
1745 2001-07-18 Tom Tromey <tromey@redhat.com>
1748 * libgcj.spec.in (*lib): Added LIBICONV.
1749 * configure: Rebuilt.
1750 * configure.in: Call AM_ICONV. Don't check for iconv function.
1751 Add parameters to JV_HASH_SYNCHRONIZATION define.
1752 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1754 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1756 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1757 not by setting its size field.
1759 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1761 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1764 2001-07-12 Tom Tromey <tromey@redhat.com>
1765 David Brownell <david-b@pacbell.net>
1767 Fix for PR libgcj/3426:
1768 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1770 (read): Throw exception if character conversion fails.
1771 * java/io/BufferedInputStream.java (refill): Now package-private.
1772 * java/io/InputStreamReader.java (ready): Simplified.
1773 (refill): New method.
1776 2001-07-12 Tom Tromey <tromey@redhat.com>
1778 Report from Henner Zeller:
1779 * java/io/FileOutputStream.java (FileOutputStream): Throw
1780 FileNotFoundException, not IOException.
1782 2001-07-10 Anthony Green <green@redhat.com>
1784 * Makefile.in: Rebuilt.
1785 * Makefile.am: Add new files.
1786 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1787 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1788 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1789 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1790 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1791 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1792 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1793 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1794 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1795 org/w3c/dom/ranges/DocumentRange.java,
1796 org/w3c/dom/ranges/Range.java,
1797 org/w3c/dom/ranges/RangeException.java,
1798 org/w3c/dom/traversal/DocumentTraversal.java,
1799 org/w3c/dom/traversal/NodeFilter.java,
1800 org/w3c/dom/traversal/NodeIterator.java,
1801 org/w3c/dom/traversal/TreeWalker.java,
1802 org/xml/sax/ext/DeclHandler.java,
1803 org/xml/sax/ext/LexicalHandler.java,
1804 org/xml/sax/helpers/AttributeListImpl.java,
1805 org/xml/sax/helpers/AttributesImpl.java,
1806 org/xml/sax/helpers/DefaultHandler.java,
1807 org/xml/sax/helpers/LocatorImpl.java,
1808 org/xml/sax/helpers/NamespaceSupport.java,
1809 org/xml/sax/helpers/ParserAdapter.java,
1810 org/xml/sax/helpers/ParserFactory.java,
1811 org/xml/sax/helpers/XMLFilterImpl.java,
1812 org/xml/sax/helpers/XMLReaderAdapter.java,
1813 org/xml/sax/helpers/XMLReaderFactory.java,
1814 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1815 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1816 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1817 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1818 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1819 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1820 org/xml/sax/SAXNotRecognizedException.java,
1821 org/xml/sax/SAXNotSupportedException.java,
1822 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1823 org/xml/sax/XMLReader.java: New files.
1825 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1827 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1828 * Makefile.in: Regenerate.
1829 * java/lang/ThreadLocal.java: Initial import.
1831 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1833 * Makefile.am (libgcj.jar): Don't recursively make
1834 built_java_source_files. Avoid long command lines.
1835 Don't change to $(srcdir) to invoke javac.
1836 (libgcj.la, libgcjx.la); Avoid long command lines.
1837 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1838 * Makefile.in: Rebuilt.
1840 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1842 * include/i386-signal.h: Don't do anything with unsigned divide
1843 overflow except throw an exception.
1845 2001-07-05 Tom Tromey <tromey@redhat.com>
1848 * java/lang/Class.h (Class(void)): Now private. Removed
1849 implementation. From dmorsberger@sensysdl.com.
1851 2001-07-02 Tom Tromey <tromey@redhat.com>
1853 Fix for PR bootstrap/3281:
1854 * aclocal.m4, configure: Rebuilt.
1855 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1856 Correctly compute libgcj_basedir.
1857 (mkinstalldirs): Define and subst.
1859 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1862 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1865 2001-06-27 Tom Tromey <tromey@redhat.com>
1867 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1870 2001-06-25 Tom Tromey <tromey@redhat.com>
1872 * scripts/encodings.pl: Generate lower-case names. Updated URL
1873 for `character-sets' file.
1874 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1876 Rebuilt list of aliases.
1878 2001-06-25 Tom Tromey <tromey@redhat.com>
1880 * java/io/natFileDescriptorPosix.cc (open): Change error message
1881 formatting. From David Brownell.
1883 2001-06-21 Tom Tromey <tromey@redhat.com>
1885 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1888 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1890 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1891 extraneous/malformed sign word.
1893 2001-06-15 Tom Tromey <tromey@redhat.com>
1895 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1897 2001-06-15 Tom Tromey <tromey@redhat.com>
1899 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1900 NULL if no library on the list has the symbol.
1901 (init): Call add_library on the program itself.
1902 * prims.cc (JvRunMain): Initialize Runtime before searching for
1904 (_Jv_RunMain): Likewise.
1906 2001-06-15 Tom Tromey <tromey@redhat.com>
1908 * jni.cc (ClassClass): Removed; updated all users.
1909 (ObjectClass): Likewise.
1910 (ThrowableClass): Likewise.
1911 (MethodClass): Likewise.
1912 (ThreadGroupClass): Likewise.
1913 (local_ref_table): Renamed from `ref_table'.
1914 (global_ref_table): New global.
1915 (_Jv_JNI_Init): Initialize both ref tables.
1916 (mark_for_gc): Added `ref_table' parameter.
1917 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1919 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1920 (_Jv_JNI_DeleteGlobalRef): Likewise.
1921 (_Jv_JNI_DeleteLocalRef): Likewise.
1922 (_Jv_JNI_NewLocalRef): Likewise.
1923 (_Jv_JNI_PopLocalFrame): Likewise.
1924 (_Jv_JNI_GetStringChars): Likewise.
1925 (_Jv_JNI_ReleaseStringChars): Likewise.
1926 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1927 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1929 2001-06-14 Tom Tromey <tromey@redhat.com>
1931 Fix for PR libgcj/3144:
1932 * java/util/Date.java: Merged with Classpath.
1934 2001-06-12 Tom Tromey <tromey@redhat.com>
1936 * aclocal.m4, configure: Rebuilt.
1937 * acinclude.m4: Find configure.host in srcdir.
1939 2001-06-07 Tom Tromey <tromey@redhat.com>
1941 Fix for PR libgcj/3059:
1942 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1943 * Makefile.in: Rebuilt.
1944 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1946 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1948 * exception.cc (cstdlib): Replaces stdlib.h.
1949 (_Jv_Throw): Use std::abort().
1950 (PERSONALITY_FUNCTION): Likewise.
1952 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1954 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1955 nothing, as in autoconf 2.50.
1956 * aclocal.m4, configure: Rebuilt.
1958 2001-06-08 Tom Tromey <tromey@redhat.com>
1960 * configure: Rebuilt.
1961 * configure.in: Compute new aux dir using `pwd'.
1963 2001-06-07 Tom Tromey <tromey@redhat.com>
1965 For PR bootstrap/3075:
1966 * configure, aclocal.m4, Makefile.am: Rebuilt.
1967 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1968 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1969 relative to libgcj_basedir.
1970 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1971 AC_CANONICAL_SYSTEM here.
1972 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1974 ($(extra_headers)): New target.
1976 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1977 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1979 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1980 table index is within allowed bounds. Ensure that we don't try to access
1981 class itable at a negative offset. Avoid an ancestor table lookup if
1982 source is a primitive type class.
1983 (isInstance): Remove redundant isPrimitive() check.
1985 2001-06-04 Tom Tromey <tromey@redhat.com>
1987 * java/security/PublicKey.java: Extend Key.
1988 * java/security/PrivateKey.java: Extend Key.
1990 2001-06-02 Anthony Green <green@redhat.com>
1992 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1993 alternate when USE_LTDL not defined.
1995 2001-06-02 Anthony Green <green@redhat.com>
1997 * configure: Rebuild.
1998 * configure.in: Remove data_start hack.
1999 * libgcj.spec.in: Ditto.
2000 * Makefile.in: Rebuild.
2001 * Makefile.am: Ditto.
2002 * libgcjdata.c: Remove.
2004 2001-06-02 Anthony Green <green@redhat.com>
2006 * configure: Rebuild.
2007 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
2008 --without-libffi option. Tweak --disable-java-net processing.
2009 * Makefile.in: Rebuild.
2010 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
2011 * include/config.h.in: Rebuild.
2012 * acconfig.h (USE_LIBFFI): Define.
2013 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
2015 2001-06-02 Anthony Green <green@redhat.com>
2017 * configure: Rebuilt.
2018 * configure.in: Test for sigaction on native builds.
2019 * prims.cc: Check HAVE_SIGACTION.
2020 * include/config.h.in: Rebuilt.
2022 2001-05-31 Jeff Sturm <jsturm@one-point.com>
2024 * natFile.cc (get_entry): Removed functions.
2025 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
2026 Allocate enough storage for d_name if using readdir_r.
2028 2001-05-31 Tom Tromey <tromey@redhat.com>
2030 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
2032 (write): Loop until write completes. From Corey Minyard.
2034 2001-05-29 Laurent Guerby <guerby@acm.org>
2036 * java/awt/geom/Rectangle2D.java: fix doc typo.
2038 2001-05-31 Tom Tromey <tromey@redhat.com>
2040 * java/sql/DriverManager.java (getDrivers): Handle case where
2041 driver's class loader is null. From Corey Minyard.
2043 2001-05-29 Tom Tromey <tromey@redhat.com>
2045 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
2047 * configure: Rebuilt.
2048 * configure.in: Only add multilib support code if we just rebuilt
2051 2001-05-29 Andrew Haley <aph@redhat.com>
2053 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
2054 pointer: the dwarf unwinder in libgcc will do everything that's
2056 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
2057 more than we absolutely need to.
2058 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
2059 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
2061 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
2063 * configure: Rebuilt.
2064 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
2066 (SIGNAL_HANDLER): Use siginfo style handler.
2067 (INIT_SEGV): Likewise.
2068 (INIT_FPE): Likewise.
2069 * include/ppc-signal.h: Delete whole file.
2071 2001-05-24 Tom Tromey <tromey@redhat.com>
2073 * java/lang/natString.cc (init): Throw
2074 ArrayIndexOutOfBoundsException.
2075 (getChars): Likewise.
2076 (getBytes): Likewise.
2077 (valueOf): Likewise.
2079 * configure.in: Only allow hash synchronization when POSIX threads
2081 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
2082 of sync info object.
2084 2001-05-23 Tom Tromey <tromey@redhat.com>
2086 * Makefile.in: Rebuilt.
2087 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
2089 Revert patch of 2001-05-21:
2090 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
2091 (libgcj_la_LIBADD): Likewise.
2092 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
2093 (libgcjx_la_LIBADD): Likewise.
2095 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
2096 * gcj/Makefile.in: Rebuilt.
2097 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
2098 * gcj/javaprims.h: Include gcj/libgcj-config.h.
2099 * gcj/libgcj-config.h.in: New file.
2100 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
2101 * configure: Rebuilt.
2102 * configure.in: Enable hash synchronization by default on some
2104 (HASH_SYNC_SPEC): New subst.
2105 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
2106 Correctly use `test -z' instead of `test -n' in a couple places.
2107 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
2109 * configure.host (enable_java_net_default): Initialize.
2110 (enable_hash_synchronization_default): New variable.
2112 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
2114 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
2115 synchronization in use.
2116 (_Jv_MarkArray): Likewise.
2117 (_Jv_AllocBytes): Don't check return result.
2118 (handle_out_of_memory): New function.
2119 (_Jv_InitGC): Set GC_oom_fn.
2120 (trace_one_vtable): New global.
2121 (_Jv_AllocTraceOne): New function.
2122 * configure.in: Added --enable-hash-synchronization.
2123 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
2124 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
2125 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
2126 (_Jv_AllocArray): Likewise.
2127 (_Jv_AllocBytes): Likewise.
2128 (_Jv_AllocPtrFreeObject): New function.
2129 (_Jv_AllocTraceOne): Likewise.
2130 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
2132 (self_cache): New global.
2133 (_Jv_ThreadSelf_out_of_line): New function.
2134 * prims.cc (_Jv_AllocBytesChecked): Removed.
2135 (_Jv_ThrowNoMemory): New function.
2136 (_Jv_AllocObject): Don't check for null return from allocator.
2137 (_Jv_NewObjectArray): Likewise.
2138 (_Jv_AllocPtrFreeObject): New function.
2139 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
2140 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
2141 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
2142 * include/boehm-gc.h (_Jv_AllocObj): Define.
2143 (_Jv_AllocPtrFreeObj): Define.
2144 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
2145 (_Jv_ThrowNoMemory): Declare.
2146 (_Jv_AllocTraceOne): Declare.
2147 (_Jv_AllocBytesChecked): Removed.
2148 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
2149 _Jv_MutexUnlock): Handle LOCK_DEBUG.
2150 (_Jv_ThreadSelf): Handle case where system pthread_self() is
2152 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
2154 * java/lang/Object.h (sync_info): Conditional upon presence of
2155 hash synchronization.
2156 * java/lang/natObject.cc: Much new code to handle thin locks and
2157 hash synchronization.
2158 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
2161 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
2163 * gij.cc (version): Update copyright year.
2165 2001-05-22 Anthony Green <green@redhat.com>
2167 * configure.in: Tweak canadian cross test, and don't redefine GCJ
2170 2001-05-21 Per Bothner <per@bothner.com>
2172 Implement invocation interface; don't create new thread for main.
2173 * java/lang/Thread.java (gen_name): Make native.
2174 (<init>(Thread,THreadGroup,Runnable,String)): New private
2175 constructor, used by other constructors, and _Jv_AttachCurrentThread.
2176 * java/lang/natThread.cc (gen_name): New implementation.
2177 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
2178 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
2179 (_Jv_CreateJavaVM): New runtime initialization procedure.
2180 (runFirst): New proecdure - mostly code from old FirstThread::run.
2181 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
2182 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
2183 JvDetachCurrentThread): New inline wrappers.
2184 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
2185 _Jv_DetachCurrentThread): New declarations.
2186 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
2187 (getMain): new static method.
2188 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
2189 by runFirst in prims.cc.
2190 (java/lang/Thread.h): Update for new invocation interface.
2191 * include/posix-threads.h (_Jv_ThreadRegister,
2192 _Jv_ThreadUnRegister): New declarations.
2193 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2194 (really_start): Use new _Jv_ThreadRegister.
2195 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
2196 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
2197 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
2198 Complain of called when _Jv_OnlyThread already set.
2199 (_Jv_ThreadStart): Always JvFail.
2200 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
2201 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
2202 * win32-threads.cc (struct starter): Remove objet field -
2203 we use _Jv_Thread_t's new thread_obj field instead.
2204 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
2205 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
2206 (really_start): Use new _Jv_ThreadRegister.
2207 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
2208 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
2209 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
2210 Removed - no longer needed with new invocation interface.
2211 * Makefile.am: Update for removed/added files.
2213 2001-05-21 Per Bothner <per@bothner.com>
2215 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
2216 (libgcj_la_LIBADD): Likewise.
2217 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
2219 2001-05-21 Per Bothner <per@bothner.com>
2221 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
2222 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
2223 taken from old Integer.toString code.
2224 (Integer::valueOf): Use _Jv_FormatInt.
2225 * java/lang/Integer.java (toString): Just use call String.valueOf.
2226 * java/lang/Long.java (toString): Fix typo in comment.
2227 * java/lang/String.java (valueOf(int)): Make native.
2228 * java/lang/StringBuffer.java (append(int)): Make native.
2229 * java/lang/natStringBuffer.cc: New file, for append(jint).
2230 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
2232 2001-05-21 Tom Tromey <tromey@redhat.com>
2234 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
2236 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
2238 * include/dwarf2-signal.h: New file.
2239 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
2240 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
2241 * configure: Rebuilt.
2243 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2245 * configure.in: Update boehm-gc include dir for new GC version.
2246 * configure: Rebuilt.
2247 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
2249 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
2250 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
2251 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
2254 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
2256 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
2257 (_Jv_MutexInit): Likewise.
2259 2001-05-18 Tom Tromey <tromey@redhat.com>
2261 * Makefile.in: Rebuilt.
2262 * Makefile.am (awt_java_source_files): Added Polygon.java.
2264 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2266 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
2267 * gcj/javaprims.h: ... here.
2268 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
2270 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
2272 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
2273 with length of ioffset table.
2274 (_Jv_IsAssignableFrom): Likewise.
2276 2001-05-17 Per Bothner <per@bothner.com>
2278 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
2280 2001-05-16 Tom Tromey <tromey@redhat.com>
2282 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
2285 2001-05-15 Tom Tromey <tromey@redhat.com>
2287 * java/util/GregorianCalendar.java (computeTime): Only call
2290 2001-05-14 Tom Tromey <tromey@redhat.com>
2292 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
2293 ZONE_OFFSET just before computing the time.
2295 2001-05-12 Zack Weinberg <zackw@stanford.edu>
2297 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
2298 * Makefile.in: Regenerate (by hand).
2299 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
2300 * doc/cni.sgml: Document #pragma GCC java_exceptions.
2302 2001-05-11 Richard Henderson <rth@redhat.com>
2304 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
2305 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
2307 2001-05-11 Richard Henderson <rth@redhat.com>
2309 * exception.cc: Include unwind-pe.h. Remove all pointer
2312 2001-05-10 Tom Tromey <tromey@redhat.com>
2314 * Makefile.in: Rebuilt.
2315 * Makefile.am (awt_java_source_files): Added Polygon.java.
2316 * java/awt/Polygon.java: New file.
2318 * java/awt/geom/AffineTransform.java
2319 (setToRotation(double,double,double)): New method.
2320 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
2321 (setToShear): Likewise.
2323 2001-05-10 Tom Tromey <tromey@redhat.com>
2325 * java/util/GregorianCalendar.java: Imported from Classpath.
2326 * gnu/java/locale/LocaleInformation_nl.java: New file from
2328 * gnu/java/locale/LocaleInformation_en.java: Likewise.
2329 * gnu/java/locale/LocaleInformation_de.java: Likewise.
2330 * gnu/java/locale/LocaleInformation.java: Likewise.
2331 * natGregorianCalendar.cc: Removed.
2332 * Makefile.in: Rebuilt.
2333 * Makefile.am (nat_source_files): Removed
2334 natGregorianCalendar.cc.
2336 2001-05-10 Tom Tromey <tromey@redhat.com>
2338 * java/text/SimpleDateFormat.java (computeCenturyStart): New
2340 (defaultCenturyStart): Use it.
2341 (readObject): Likewise.
2342 (SimpleDateFormat): Clear the calendar. Set the grouping on the
2344 (parse): Copy the calendar before modifying it. Correctly handle
2347 * java/util/Calendar.java (clear): Set field value(s) to 0.
2349 2001-05-10 Jeff Sturm <jsturm@one-point.com>
2351 * Calendar.java (get): Clear areFieldsSet if requested field
2353 (set): Unset fields that depend on new value.
2355 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2357 * java/lang/Class.h (_Jv_Self): New union type.
2358 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
2359 Jeff Sturm and Fergus Henderson.
2361 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2363 * java/lang/ClassLoader.java: Remove dead code fragment.
2365 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
2367 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2369 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2371 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
2373 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
2374 * configure.host (EXCEPTIONSPEC): New.
2375 * configure.in (EXCEPTIONSPEC): New.
2376 * configure: Rebuilt.
2378 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2380 * doc/*.texi: Remove generated documentation.
2382 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2384 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
2385 (performDelete): Fix #endif placement.
2387 2001-04-27 Zack Weinberg <zackw@stanford.edu>
2389 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
2390 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
2391 (_Jv_ThreadDestroyData): Use _Jv_Free.
2392 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
2395 2001-04-27 Tom Tromey <tromey@redhat.com>
2397 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
2399 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
2401 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
2403 * include/jni.h (struct JNINativeInterface): Fixed types in
2404 Get/Set*ArrayRegion declarations.
2405 (class _Jv_JNIEnv): Likewise.
2407 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
2409 * configure.in: Obtain THREADS with `gcc -v'.
2410 * configure: Rebuilt.
2412 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2415 * java/io/ObjectStreamClass.java (setClass): Calculate
2416 serialVersionUID for local class and compare it against the UID
2417 from the Object Stream. Throw InvalidClassException upon mismatch.
2418 (setUID): Renamed to...
2419 (getClassUID): this. Return the calculated class UID rather than
2420 setting uid field directly.
2421 (getDefinedSUID): Removed.
2422 * java/io/ObjectInputStream.java (resolveClass): Use the
2423 three-argument Class.forName().
2424 * java/io/InvalidClassException (toString): Don't include classname in
2425 result if it is null.
2427 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2429 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
2430 Wrap use of inet_pton in HAVE_INET6.
2432 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2434 java.security merge and ClassLoader compliance fixes.
2436 * java/lang/Class.h (Class): Include ProtectionDomain.h.
2437 New protectionDomain field.
2438 (forName): Add initialize parameter. Fixes declaration to comply with
2440 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
2441 variant. Honour "initialize" flag.
2442 (getProtectionDomain0): New method.
2443 * java/lang/Class.java: Fix forName() declaration.
2444 (getPackage): New method based on Classpath implementation.
2445 (getProtectionDomain0): New native method decl.
2446 (getProtectionDomain): New method.
2447 * java/lang/ClassLoader.java (getParent): Now final.
2448 (definedPackages): New field.
2450 (defineClass): New variant with protectionDomain argument.
2451 (definePackage): New.
2453 (findSystemClass): Now final.
2454 (getSystemResourceAsStream): Remove redundant "final" modifier.
2455 (getSystemResource): Remove redundant "final" modifier.
2456 (getResources): Now final.
2457 (protectionDomainPermission): New static field.
2458 (unknownProtectionDomain): Ditto.
2459 (defaultProtectionDomain): Ditto.
2460 (getSystemClassLoader): Now non-native.
2461 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
2462 arguments for Class.forName().
2463 * java/lang/Package.java: New file.
2464 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
2465 (instance): Static initialize singleton.
2466 (findClass): Override this, not findSystemClass.
2467 * java/lang/natClassLoader.cc (defineClass0): Set class's
2468 protectionDomain field as specified.
2469 (getSystemClassLoader): Removed.
2470 (findClass): Renamed from findSystemClass. Call the interpreter via
2471 URLClassLoader.findClass if loading class via dlopen fails.
2473 * java/security/*.java: java.security import/merge with Classpath.
2474 * java/security/acl/*.java: Likewise.
2475 * java/security/interfaces/*.java: Likewise.
2476 * java/security/spec/*.java: Likewise.
2477 * java/net/NetPermission.java: Likewise.
2478 * java/net/SocketPermission.java: Likewise.
2479 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
2481 * Makefile.am: Add new classes.
2482 * Makefile.in: Rebuilt.
2483 * gcj/javaprims.h: CNI namespace rebuild.
2485 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
2487 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
2488 for libtool tests. Pre-create gnu/classpath/Configuration.java.
2489 * configure: Rebuilt.
2491 2001-04-21 Tom Tromey <tromey@redhat.com>
2493 * Makefile.in: Rebuilt.
2494 * Makefile.am (awt_java_source_files): Added Line2D.java.
2495 * java/awt/geom/Line2D.java: Wrote.
2497 * java/awt/Menu.java (addNotify): Wrote.
2499 * java/awt/PopupMenu.java (addNotify): Implemented.
2502 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
2503 * java/awt/List.java (addNotify): Call super.addNotify.
2504 * java/awt/Label.java (addNotify): Call super.addNotify.
2505 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
2506 * java/awt/Dialog.java (addNotify): Call super.addNotify.
2507 * java/awt/Choice.java (addNotify): Call super.addNotify.
2508 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
2509 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
2511 * java/awt/List.java (replaceItem): Notify peer.
2513 * java/awt/geom/Rectangle2D.java
2514 (Float.setRect(float,float,float,float)): New method.
2516 * java/awt/event/ContainerEvent.java (getContainer): Now returns
2519 * java/awt/RenderingHints.java (Key): Class now public.
2521 * java/awt/Rectangle.java (Rectangle): Now implements
2523 (getPathIterator): Removed.
2525 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
2528 * java/awt/FileDialog.java: Wrote.
2530 * java/awt/EventQueue.java (isDispatchThread): Now public.
2531 (invokeLater): Likewise.
2533 * java/awt/Component.java (setCursor): Update peer.
2534 (getFontMetrics): Use peer.
2536 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
2539 2001-04-20 Tom Tromey <tromey@redhat.com>
2541 * java/awt/List.java: Wrote.
2542 * java/awt/Dialog.java: Wrote.
2544 2001-04-20 Warren Levy <warrenl@redhat.com>
2546 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
2547 * java/text/SimpleDateFormat.java
2548 (indexInArray): Removed private method.
2549 (processYear): Removed private method.
2550 (parseLenient): Removed private method.
2551 (parseLeadingZeros): Removed private method.
2552 (parseStrict): Removed private method.
2553 (expect): Added new private method.
2554 (parse): Reverted to pre-Classpath merge version with minor fixes.
2555 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
2558 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
2560 * java/io/File.java (normalizePath): New private method.
2561 (File (String)): Use normalizePath().
2562 (File (String, String)): Likewise.
2564 * Makefile.am (libffi_files): Removed.
2565 (libgcj.la): Link libffi as a convenience library instead of
2566 refering to its object files directly.
2567 * Makefile.in: Rebuilt.
2569 2001-04-08 Per Bothner <per@bothner.com>
2571 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
2572 Recalculate hash, since Utf8Const's hash is only 16 bits.
2574 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
2575 bits of hash to calculate step for chaining.
2577 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
2578 when 2/3 full, rather than 3/4 full.
2580 2001-04-06 Tom Tromey <tromey@redhat.com>
2582 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
2583 (wrap_value<T*>): New specialization.
2584 (_Jv_JNI_PopLocalFrame): Update env->locals.
2586 2001-04-05 Tom Tromey <tromey@redhat.com>
2588 * libtool-version: Updated current.
2590 2001-04-04 Andreas Jaeger <aj@suse.de>
2592 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2593 * gcj/Makefile.in: Rebuilt.
2594 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2595 * Makefile.in: Rebuilt.
2596 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2597 * testsuite/Makefile.in: Rebuild.
2598 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2599 * include/Makefile.in: Rebuild.
2601 2001-04-02 Zack Weinberg <zackw@stanford.edu>
2603 * testsuite/lib/libjava.exp: Correct typo: 'output from source
2604 compiled test', not 'execution from source compiled test'.
2605 Use UNTESTED, not XFAIL, for tests which are not run because
2606 they depend on a previous test which failed.
2608 2001-04-02 Richard Henderson <rth@redhat.com>
2610 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
2611 the same tree as gcc.
2612 * configure: Rebuilt.
2614 * exception.cc (_Jv_Throw): Clarify commentary.
2616 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
2618 * jni.cc (wrap_value<jclass>): New specialization.
2620 2001-04-02 Tom Tromey <tromey@redhat.com>
2622 * java/io/PrintStream.java (out): Removed field. Fixes PR
2624 (write): Call flush, not out.flush, per spec.
2625 (close): Flush output stream, per spec. Handle
2626 InterruptedIOException.
2627 (checkError): Likewise.
2628 (flush, print, write): Handle InterruptedIOException per spec.
2629 (PrintStream): Don't create BufferedOutputStream.
2630 (work_bytes): New field.
2631 (writeChars): Use work_bytes. Don't assume `out' is a
2632 BufferedOutputStream.
2634 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
2636 * java/text/MessageFormat.java (setLocale): Added missing `else'.
2639 2001-03-30 Tom Tromey <tromey@redhat.com>
2641 * jni.cc (add_char): Correctly encode non-ascii characters.
2642 (add_char): Define even when INTERPRETER not defined.
2643 (mangled_name): Likewise.
2644 (_Jv_GetJNIEnvNewFrame): Likewise.
2645 (_Jv_LookupJNIMethod): Likewise.
2647 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
2649 * configure.host: Enable interpreter for PPC.
2651 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
2653 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2654 to "file.separator", "path.separator", and "java.io.tmpdir" property
2656 * java/io/File.java: Likewise.
2657 * java/io/natFile.cc (init_native): Likewise.
2658 * java/io/natFileWin32.cc (init_native): Likewise.
2660 2001-04-01 Per Bothner <per@bothner.com>
2662 * java/lang/natString.cc (intern): If string's data does not point to
2663 this String, make a fresh String that does.
2665 * java/lang/natString.cc (unintern): Replace by static function.
2666 * java/lang/String.java (unintern): Remove method.
2668 2001-04-01 Per Bothner <per@bothner.com>
2670 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
2671 (finish): def.deflate needs to be called in a loop.
2672 (inbuf, inbufLength): New private fields.
2673 (write(int)): Use inbuf.
2674 (write(byte[],int,int): Check if pending output in inbuf.
2675 * ZipOutputStream.java: Don't use Deflater if stored.
2676 Use a Checksum object directly, not via a CheckedOutputStream.
2677 (uncompressed_size): New field,
2678 (closeEntry): Only write data_directory if needed.
2679 (write): If STORED, write directly.
2680 Always update crc, and uncompressed_size.
2681 (write_entry): Fix lots of protocol erors.
2683 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
2685 1.3-Compliant Implementation of java.io.File.
2686 * java/lang/natSystem.cc (init_properties): Get "file.separator",
2687 "path.separator", and "java.io.tmpdir" from the File class, instead
2688 of setting them explicitly.
2689 * java/io/File.java: Do not canonicalize paths for security manager
2690 checks. Call init_native() from static initializer. Do not pass path
2691 argument to native methods. New native method declarations. Some
2692 security manager checks moved to checkWrite().
2693 (equals): Check file system case sensitivity and act appropriatly.
2694 (hashCode): Likewise.
2695 (isHidden): New method implemented.
2696 (performList): Changed prototype. Now takes a class argument specifying
2697 the class of the returned array: Strings or File objects. Also added
2698 FileFilter argument.
2699 (listFiles): New variants with "File" return type implemented.
2700 (createTempFile): Use createNewFile(). Use maxPathLen.
2701 (setReadOnly): New method implemented.
2702 (listRoots): Likewise.
2703 (compareTo): Likewise.
2704 (setLastModified): Likewise.
2705 (checkWrite): New method.
2707 * java/io/natFile.cc: Various functions no longer take canonical path
2709 (stat): Handle ISHIDDEN query.
2710 (isAbsolute): Remove WIN32 cruft.
2711 (performList): New arguments. Handle returning either File[] or String[]
2712 arrays. Check with FileFilter or FilenameFilter arguments as
2713 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2714 (performSetReadOnly): New method implemented.
2715 (performListRoots): Likewise.
2716 (performSetLastModified): Likewise.
2717 (performCreate): Likewise.
2718 (init_native): New initialization function.
2719 * java/io/natFileWin32.cc: Various functions no longer take canonical
2721 (stat): Add FIXME about ISHIDDEN query.
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. Stubbed.
2726 (performListRoots): Likewise.
2727 (performSetLastModified): Likewise.
2728 (performCreate): Likewise.
2729 (init_native) New initialization function.
2730 * configure.in: Check for utime() and chmod().
2731 * configure: Rebuilt.
2732 * include/config.h.in: Rebuilt.
2734 Resolves PR libgcj/1759.
2736 2001-03-28 Richard Henderson <rth@redhat.com>
2738 IA-64 ABI Exception Handling:
2739 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2740 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2741 Remove EXCEPTIONSPEC.
2742 * configure.host (libgcj_sjlj): Remove.
2743 * configure.in (EXCEPTIONSPEC): Remove.
2744 (enable-sjlj-exceptions): Detect if not specified.
2745 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2746 what header we're looking for.
2747 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2748 * Makefile.in, configure: Regenerate.
2749 * exception.cc: Don't declare libgcc2 stuff.
2750 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2751 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2752 (win32_get_restart_frame): Remove.
2753 (struct java_exception_header): New.
2754 (__gcj_exception_class): New.
2755 (get_exception_header_from_ue): New.
2756 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2757 (size_of_encoded_value, read_encoded_value): New.
2758 (read_uleb128, read_sleb128, parse_lsda_header): New.
2759 (get_ttype_entry, __gcj_personality_sj0): New.
2760 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2762 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2764 * javax/naming/InitialContext.java (init): Fix typo.
2765 (composeName): Remove unnecessary semicolon.
2766 (addToEnvironment): Remove unnecessary semicolon.
2767 (addToEnvironment): Use put() instead of add().
2769 * javax/naming/InitialContext.java (InitialContext):
2771 (destroySubcontext): Method doesn't return a result.
2772 * javax/naming/Context.java: Import java.util.Hashtable.
2773 * javax/naming/Name.java: Import java.util.Enumeration.
2775 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2777 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2778 objects in subdirectories.
2779 * Makefile.in: Rebuilt.
2781 2001-03-25 Richard Henderson <rth@redhat.com>
2783 * exception.cc (java_eh_info): Make value type jthrowable.
2784 (_Jv_type_matcher): Remove now unneeded cast.
2785 (_Jv_Throw): Make argument type jthrowable. Munge name
2786 for SJLJ_EXCEPTIONS here ...
2787 * gcj/cni.h: ... not here.
2789 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2791 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2792 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2793 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2794 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2795 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2796 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2797 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2798 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2799 java/lang/natDouble.cc, java/lang/natObject.cc,
2800 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2801 java/lang/natString.cc, java/lang/natSystem.cc,
2802 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2803 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2804 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2805 java/util/zip/natInflater.cc:
2806 Use throw, not JvThrow or _Jv_Throw.
2808 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2810 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2811 paramater, bump it to 1.
2812 * java/util/Hashtable.java (Hashtable): Likewise.
2814 2001-03-23 Per Bothner <per@bothner.com>
2816 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2817 check for errors, since we don't want to throw exception on
2818 overflow/underflow. Instead, trim whitespace, and then check that
2819 _strtod_r uses up all the rest of the string.
2821 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2822 ancestors array is invalid for interfaces, so do that *after*
2823 check that the target type is not an interface.
2825 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2827 * prims.cc (_Jv_FindClassFromSignature): Check return of
2828 recursive call. Do not abort on invalid signature; return NULL
2831 2001-03-22 Tom Tromey <tromey@redhat.com>
2833 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2834 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2836 * include/jvm.h (_Jv_ResolveField): Declare.
2837 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2838 * resolve.cc (_Jv_ResolveField): No longer conditional on
2841 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2843 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2844 for libtool hacking.
2845 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2846 to a temporary file, then invoke libtool with the -objectlist
2848 (libgcjx.la): Likewise.
2849 * Makefile.in: Rebuilt.
2851 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2853 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2855 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2857 * jni.cc (add_char): Handle `.' like `/'.
2859 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2861 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2862 initialize if exception_types is null.
2863 * java/lang/reflect/Constructor.java: Likewise.
2864 * java/lang/reflect/natConstructor.cc (getType): Initialize
2865 exception_types to an empty Object array.
2867 2001-03-21 Tom Tromey <tromey@redhat.com>
2869 * configure: Rebuilt.
2870 * configure.in (GCJFLAGS): Subst.
2871 * Makefile.in: Rebuilt.
2872 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2873 (gij_LDFLAGS): Likewise.
2874 (JC1FLAGS): Added GCJFLAGS and removed -g.
2876 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2877 read/write case. Fixes PR libgcj/2338.
2879 2001-03-20 Warren Levy <warrenl@redhat.com>
2881 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2882 and corrected SimpleTimeZone's for the timezones hash table.
2884 2001-03-19 Per Bothner <per@bothner.com>
2886 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2887 "canonicalize" "../../xxx" to "/xxx".
2889 2001-03-19 Mark Wielaard <mark@klomp.org>
2891 * java/util/ArrayList.java: Remove RCS keywords from comments
2892 * java/util/BasicMapEntry.java: idem
2893 * java/util/Dictionary.java: idem
2894 * java/util/HashSet.java: idem
2896 * java/util/EventObject.java: reindent
2897 * java/util/Properties.java: idem
2898 * java/util/SortedMap.java: idem
2900 * java/util/Enumeration.java: Merge with Classpath
2901 * java/util/EventListener.java: idem
2902 * java/util/Observable.java: idem
2903 * java/util/Observer.java: idem
2904 * java/util/Stack.java: idem
2906 2001-03-17 Tom Tromey <tromey@redhat.com>
2908 * java/lang/natString.cc (rehash): Don't bother with memset;
2909 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2911 (UNMASK_PTR): New macro.
2912 (intern): Unmask pointer before returning it. Register finalizer
2914 (unintern): Handle case where
2915 (MASK_PTR): New macro.
2916 (PTR_MAKSED): Likewise.
2917 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2919 2001-03-01 Andrew Haley <aph@redhat.com>
2921 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2922 stackTrace buffer to a correctly aligned pointer array.
2924 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2926 * java/lang/Runtime.java (_exit): Declare new package-private native.
2927 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2928 without a security manager check.
2929 (exit): Call _exit after security check.
2930 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2932 * java/lang/System.java (setSecurityManager): If a security manager
2933 is already in place, call checkPermission.
2934 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2935 throws an exception, try to deal with it gracefully.
2936 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2937 Only try to print the subordinate stack trace if "exception" is set.
2938 Print our class name first.
2940 2001-03-08 Tom Tromey <tromey@redhat.com>
2942 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2943 info for array classes.
2944 Fixes PR libgcj/1971.
2946 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2948 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2951 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2953 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2954 instead of the new JDK1.2 API. This is simpler and makes
2955 back-porting the classes to JDK1.1 trivial.
2956 (readObject): likewise.
2958 2001-03-01 Per Bothner <per@bothner.com>
2960 Changes merged from Kawa's gnu.math.
2961 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2962 (rshift(int[],int[],int,int): Removed - not needed.
2963 (gcd): Use rshift0 rather than rshift.
2964 * java/math/BigInteger.java (setShiftRight): Likewise.
2965 (divide): Simplify by using rshift0.
2966 (divide): Zero-extend results if high-order bit set.
2968 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2970 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2973 2001-02-23 Per Bothner <per@bothner.com>
2975 Change to sometimes include class name in ClassFormatError message.
2976 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2977 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2978 boolean instead of throwing ClassFormatError on failure.
2979 (throw_class_format_error): Change static function to method.
2980 (_Jv_ClassReader): New inline methods verify_identifier,
2981 two overloads of verify_classname, verify_field_signature, and
2982 verify_method_signature
2983 * include/java-interp.h: Update declarations to return bool.
2984 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2985 ClassFormatError since _Jv_VerifyClassName now returns bool.
2987 2001-02-23 Per Bothner <per@bothner.com>
2989 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2990 c++filt to select java-style output.
2992 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2994 Fix for PR java/2040:
2995 * java/util/HashMap.java (HashMap): Don't throw exception for
2996 loadFactor > 1. Add exception messages.
2997 * java/util/Hashtable.java (Hashtable): Likewise.
2999 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
3001 Disable libgcjx by default.
3002 * configure.in: Add support for --enable-java-awt configure option.
3003 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
3004 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
3005 * Makefile.in: Rebuilt.
3006 * configure: Rebuilt.
3008 2001-02-20 Tom Tromey <tromey@redhat.com>
3010 * java/io/PipedWriter.java (flush): Throw exception if stream
3012 * java/io/OutputStreamWriter.java (write): Throw exception if
3014 (writeChars): Don't throw exception if stream closed.
3015 * java/io/CharArrayWriter.java (closed): New field.
3017 (flush): Throw exception if stream closed.
3018 (reset): Synchronize on correct lock. Allow stream to be
3020 (toCharArray, toString, writeTo): Synchronize.
3021 (write): Throwe exception if stream closed.
3022 * java/io/BufferedWriter.java (close): Clear `buffer'.
3023 (flush): Throw IOException if stream is closed.
3026 2001-02-16 Tom Tromey <tromey@cygnus.com>
3028 * java/lang/ThreadGroup.java (activeCount): Only include threads
3030 (enumerate): Likewise.
3032 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
3034 * java/lang/Integer.java (getInteger): Return default argument if
3035 property is not set. Don't call decode with null argument.
3036 * java/lang/Long.java (getLong): Likewise.
3038 * java/io/CharArrayReader.java (CharArrayReader): Throw
3039 IllegalArgumentException if constructor arguments are illegal.
3040 (ready): Return false if no more characters can be read.
3041 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
3043 2001-02-17 Mark Wielaard <mark@klomp.org>
3045 * java/util/TimerTask.java: New version from Classpath.
3047 2001-02-17 Mark Wielaard <mark@klomp.org>
3049 Remerge with Classpath
3050 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
3051 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
3052 (readByte): Use convertToByte().
3053 (readChar): Use convertToChar().
3054 (readInt): Use convertToInt().
3055 (readLong): Use convertToLong().
3056 (readShort): Use convertToShort().
3057 (readUnsignedByte): Use convertToUnsignedByte().
3058 (readUnsignedShort): Use convertToUnsignedShort().
3059 (readUTF): Use convertToUTF().
3061 (convertToBoolean): Resurrected.
3062 (convertToByte): Ditto.
3063 (convertToChar): Ditto.
3064 (convertToInt): Ditto.
3065 (convertToLong): Ditto.
3066 (convertToShort): Ditto.
3067 (convertToUnsignedByte): Ditto.
3068 (convertToUnsignedShort): Ditto.
3069 (convertToUTF): Ditto.
3071 2001-02-17 Mark Wielaard <mark@klomp.org>
3075 2001-02-17 Mark Wielaard <mark@klomp.org>
3077 * java/io/DataInputStream.java: update copyright notice
3078 * java/io/PrintWriter.java: idem
3079 * java/io/Reader.java: idem
3080 * java/io/StreamTokenizer.java: idem
3081 * java/io/StringReader.java: idem
3082 * java/lang/reflect/ReflectPermission.java: idem
3084 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
3086 * java/util/TreeSet.java (clone): Made subclass safe, use
3087 super.clone(), not new.
3088 * java/util/TreeMap.java (clone): Likewise.
3090 * java/util/TreeMap.java (nil): Made non-final.
3091 (clone): Create new nil node for copy.
3093 * java/util/HashSet.java (clone): Made subclass safe, use
3094 super.clone(), not new.
3096 2001-02-14 Andrew Haley <aph@redhat.com>
3098 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
3101 2001-02-15 Anthony Green <green@redhat.com>
3103 * defineclass.cc: Don't include alloca.h.
3104 (prepare_pool_entry): Convert alloca to __builtin_alloca.
3105 * interpret.cc (run_normal): Ditto.
3107 * java/lang/natDouble.cc (parseDouble): Ditto.
3109 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
3111 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
3113 * java/util/Collections.java (ReverseComparator): New static class.
3114 (reverseOrder): Return static instance of ReverseComparator.
3116 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
3117 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
3118 Rectangle.clone(), not Object.clone().
3120 * java/util/HashSet.java (clone): Remove try/catch.
3122 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
3123 * java/util/Collection.java: Likewise.
3124 * java/util/Comparator.java: Likewise.
3125 * java/util/Dictionary.java: Likewise.
3126 * java/util/Iterator.java: Likewise.
3127 * java/util/ListIterator.java: Likewise.
3128 * java/util/Map.java: Likewise.
3129 * java/util/Set.java: Likewise.
3131 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
3133 * java/util/TreeMap.java: New file.
3134 * java/util/TreeSet.java: New file.
3135 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
3136 * Makefile.in: Rebuilt.
3137 * java/util/HashSet.java (clone): Use constructor instead of calling
3139 * java/util/SortedSet.java: Sync with classpath.
3140 * java/util/HashMap.java (hash): Use if statement instead of ternary,
3143 * java/lang/natClass.cc (getSignature): Don't try to dereference
3144 param_types if it is null. Instead, take this to mean "no parameters".
3145 * java/lang/TreeMap.java (TreeIterator.next): Throw
3146 NoSuchElementException in preference to ConcurrentModificationException.
3147 (TreeIterator.remove): Throw IllegalStateException in preference to
3148 ConcurrentModificationException.
3149 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
3150 throw a NoSuchElementException.
3151 (SubMap.lastKey): Likewise.
3153 2001-02-13 Tom Tromey <tromey@redhat.com>
3155 * java/io/PipedReader.java (ready): Throw IOException if pipe
3157 * java/io/FilterReader.java (close): Don't clear `in'.
3158 * java/io/CharArrayReader.java (mark): Throw IOException if stream
3160 (read, ready, reset, skip): Added exception message.
3161 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
3162 Perform checkStatus check inside synchronized block.
3164 2001-02-13 Tom Tromey <tromey@redhat.com>
3166 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
3168 2001-02-13 Tom Tromey <tromey@redhat.com>
3170 Fix for PR libgcj/1351:
3171 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
3173 Include Thread.h and InterruptedIOException.h.
3175 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
3177 * java/io/BlockDataException.java: Removed.
3178 * java/io/ObjectInputStream.java (readObject): Throw
3179 StreamCorruptedException, not BlockDataException.
3180 * Makefile.am: Remove BlockDataException.
3181 * Makefile.in: Rebuild.
3183 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
3184 Tom Tromey <tromey@redhat.com>
3186 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
3189 2001-02-09 Tom Tromey <tromey@redhat.com>
3191 * java/util/Timer.java: New version from Classpath.
3193 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
3195 * java/lang/Double.java (doubleToRawLongBits): Now native.
3196 * java/lang/Float.java (floatToRawIntBits): Likewise.
3197 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
3198 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
3200 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
3202 * java/io/File.java (java.net): Imported.
3203 (getAbsoluteFile): Added.
3204 (getCanonicalPath): Likewise.
3207 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
3209 * java/lang/Byte.java: Remove redundant instanceof and null checks.
3210 * java/lang/Integer.java: Likewise.
3211 * java/lang/Long.java: Likewise.
3212 * java/lang/Short.java: Likewise.
3213 * java/lang/Double.java: Likewise.
3214 (doubleToRawLongBits): New method.
3215 * java/lang/Float.java: As above.
3216 (floatToRawIntBits): New method.
3218 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
3219 IOException if stream closed.
3221 2001-02-08 Tom Tromey <tromey@redhat.com>
3223 * java/lang/Float.java (parseFloat): New method.
3225 2001-02-08 Tom Tromey <tromey@redhat.com>
3227 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
3228 * java/io/InputStreamReader.java (ready, read): Throw IOException
3229 if stream has been closed.
3231 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
3233 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
3234 Change sources.redhat.com and sourceware.cygnus.com references to
3237 2001-02-07 Tom Tromey <tromey@redhat.com>
3239 Fix for PR libgcj/1906:
3240 * java/text/MessageFormat.java (setLocale): Use named class
3243 (format(Object,StringBuffer,FieldPosition)): Special case if
3244 argument is an Object[].
3246 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
3248 * java/util/Arrays.java: Removed "cmp" methods.
3249 (qsort): Don't use "cmp".
3252 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
3254 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
3255 sort. Fix for PR java/1895.
3257 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
3259 * configure.host: Use sjlj-exceptions for Alpha.
3261 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
3263 * libgcj.spec.in: Don't force static libgcc into the executable.
3264 * configure.in (FORCELIBGCCSPEC): Removed.
3265 * configure: Rebuilt.
3267 2001-01-31 Tom Tromey <tromey@redhat.com>
3269 * Makefile.in: Rebuilt.
3270 * Makefile.am (LTCXXCOMPILE): New macro.
3272 2001-01-26 Andrew Haley <aph@redhat.com>
3274 (INIT_FPE): Use a direct system call to set the handler.
3276 2001-01-27 Richard Henderson <rth@redhat.com>
3278 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
3280 2001-01-27 Tom Tromey <tromey@redhat.com>
3282 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
3283 native interface structure.
3285 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
3287 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
3289 (read (byte[], int, int)): Only call readNextBlock() if the block
3290 buffer would actually be overrun. Increment blockDataPosition.
3291 (callReadMethod): Propagate exceptions from invocation target.
3292 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
3293 exceptions from invocation target.
3295 2001-01-26 Tom Tromey <tromey@redhat.com>
3297 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
3298 to internal representation.
3299 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
3300 _Jv_FindClassFromSignature.
3302 2001-01-26 Warren Levy <warrenl@redhat.com>
3304 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
3305 and timezone if they are available on the system.
3307 2001-01-24 Tom Tromey <tromey@redhat.com>
3309 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
3311 2001-01-24 Tom Tromey <tromey@redhat.com>
3313 * Makefile.in: Rebuilt.
3314 * Makefile.am (c_source_files): Added sf_fabs.c.
3315 * java/lang/sf_fabs.c: New file.
3317 2001-01-19 Warren Levy <warrenl@redhat.com>
3319 * java/text/SimpleDateFormat.java (format): Compute hour for cases
3320 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
3321 correctly. Adjust properly from 0-23 clock hour.
3323 2001-01-17 Mark Wielaard <mark@klomp.org>
3325 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
3327 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
3329 * java/lang/Class.h (isInterface): Move implementation from
3330 natClass.cc. Declare inline.
3331 (Class): Add default constructor.
3332 * java/lang/Object.h: Update comments.
3333 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
3334 initialize superclass, saving a call if super is already initialized.
3336 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
3338 * prims.cc (init_prim_class): Deleted.
3339 (DECLARE_PRIM_TYPE): Rewritten.
3340 * java/lang/Class.h (stdio.h): Include removed.
3341 (stddef.h): Included.
3342 (java/lang/reflect/Modifier.h): Likewise.
3343 (Class): Contructor now takes arguments, initializes fields.
3344 (initializePrim): Prototype deleted.
3345 * java/lang/natClass.cc (initializePrim): Deleted.
3347 2001-01-16 Warren Levy <warrenl@redhat.com>
3349 * java/math/BigInteger.java: Update Copyright year.
3351 2001-01-16 Hans Boehm <hans_boehm@hp.com>
3353 * java/math/BigInteger.java (setShiftRight): Only do negative shift
3356 2001-01-14 Mark Wielaard <mark@klomp.org>
3357 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
3358 (decode): Merge comments with Classpath, don't throw Exception
3360 2001-01-12 Tom Tromey <tromey@redhat.com>
3362 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
3366 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
3367 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
3368 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
3369 * gnu/awt/gtk/GtkLabelPeer.java: New file.
3370 * gnu/awt/gtk/GtkButtonPeer.java: New file.
3372 * java/lang/natSystem.cc: Include locale.h if it exists.
3373 * configure: Rebuilt.
3374 * configure.in: Check for locale.h.
3376 2001-01-11 Tom Tromey <tromey@redhat.com>
3378 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
3379 (Cursor(int), getPredefinedCursor): Throw exception if argument
3382 2001-01-03 Tom Tromey <tromey@redhat.com>
3384 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
3385 (getLocationOnScreen): Wrote.
3387 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
3389 * Makefile.am: Re-enable dependencies.
3390 * Makefile.in: Rebuilt.
3392 2001-01-10 Warren Levy <warrenl@redhat.com>
3394 * java/math/BigDecimal.java (divide): Fixed comment.
3396 2001-01-10 Warren Levy <warrenl@redhat.com>
3398 Fix for PR libgcj/1596:
3399 * java/math/BigDecimal.java (divide): Check newScale for validity.
3400 Ensure that BigInteger.pow() is called with a non-negative value.
3401 (setScale (int)): New public method.
3402 (setScale (int,int)): New public method.
3404 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
3406 Fix for PR libgcj/1338:
3407 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
3408 commentChar. Fixed typos in comments.
3410 2001-01-08 Warren Levy <warrenl@redhat.com>
3412 Fix for PR libgcj/1411:
3413 * Makefile.am: Removed java/util/natTimeZone.cc.
3414 * Makefile.in: Rebuilt.
3415 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
3416 missing localized timezone names.
3417 * java/lang/System.java (getDefaultTimeZoneId): New private method.
3418 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
3419 (init_properties): Set user.timezone property.
3420 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3421 default timezone names; removed non-standard ones. Use standard
3423 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
3425 * java/util/TimeZone.java: Add standard ID names per JCL; removed
3427 (getDefaultTimeZoneId): Removed.
3429 * java/util/natTimeZone.cc: Removed.
3431 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3433 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
3434 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
3435 (_Jv_GetArrayClass): New inline function.
3436 (arrayclass): New field.
3437 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
3438 _Jv_GetArrayElementFromElementType.
3439 (_Jv_NewPrimArray): Ditto.
3440 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
3441 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
3442 Set Modifier::ABSTRACT.
3443 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
3444 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
3445 Now synchronized. Array classes are now referenced from
3446 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
3447 Set array classes' accessibility flags correctly. Optimize so that
3448 all array classes share the same IDT.
3449 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
3450 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
3451 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
3452 in superclasses from overwriting classes own fields.
3453 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
3454 Modifier::isAbstract().
3455 (null_idt): New static field.
3456 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
3458 (_Jv_IndexOf): Made inline.
3459 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
3461 2001-01-08 Tom Tromey <tromey@redhat.com>
3463 Fix for PR java/1586:
3464 * Makefile.in: Rebuilt.
3465 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
3467 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3469 * Makefile.am: Use the new "-M -MF" option for generating dependencies
3470 from the c++ compiler.
3471 * Makefile.in: Rebuilt.
3473 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
3475 All files with updated copyright.
3476 * prims.cc (class _Jv_PrimClass): Removed.
3477 (init_prim_class): New function.
3478 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
3479 `_Jv_PrimClass' in primitive type declarations. Assign to the
3480 value returned by `init_prim_class.'
3481 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
3482 primitive type declarations.
3483 (JvPrimClass): Cast to `jclass' removed.
3484 * java/lang/Class.h (Class): New constructor.
3485 (Class): New copy constructor.
3486 (initializePrim): New prototype.
3487 (_Jv_PrimClass): Field removed.
3488 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
3489 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
3490 (class java::lang::Object): `finalize' moved up front.
3491 * java/lang/natClass.cc
3492 (isAssignableFrom): Turned outline.
3493 (isInstance): Likewise.
3494 (isInterface): Likewise, fixed indentation.
3495 (initializePrim): New function.
3497 2001-01-07 Anthony Green <green@redhat.com>
3499 * Makefile.am (texinfo): Add texinfo target for generating texinfo
3501 * Makefile.in: Rebuilt.
3503 * scripts/TexinfoDoclet.java: New file.
3505 * doc/java-applet.texi, doc/java-lang-reflect.texi,
3506 doc/java-awt-color.texi, doc/java-lang.texi,
3507 doc/java-awt-datatransfer.texi, doc/java-math.texi,
3508 doc/java-awt-event.texi, doc/java-net.texi,
3509 doc/java-awt-geom.texi, doc/java-security-spec.texi,
3510 doc/java-awt-image.texi, doc/java-security.texi,
3511 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
3512 doc/java-text.texi, doc/java-beans-beancontext.texi,
3513 doc/java-util-jar.texi, doc/java-beans.texi,
3514 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
3515 doc/java-lang-ref.texi: New files.
3517 2001-01-07 Anthony Green <green@redhat.com>
3519 * java/net/URLConnection.java (setDoOutput): URLConnection's may
3520 be used for both input and output, so don't clear doInput.
3522 * java/lang/StringBuffer.java: Fix comments.
3524 2001-01-06 Anthony Green <green@redhat.com>
3526 * java/beans/PropertyDescriptor.java: Fix comment.
3527 * java/io/PushbackReader.java: Fix comment.
3528 * java/io/ObjectStreamClass.java: Fix comment.
3529 * java/io/DataInputStream.java: Fix comment.
3530 * java/io/PipedInputStream.java: Fix comments.
3531 * java/io/PipedReader.java: Fix comments.
3532 * java/sql/DatabaseMetaData.java: Fix comments.
3534 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
3536 * java/io/PipedReader: Synchronize on "lock" instead of this.
3538 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
3540 * java/lang/Thread.java: Update comment.
3542 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
3543 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
3544 * java/io/PipedReader: New implementation based on new
3546 * java/io/PipedWriter: Updated to match new PipedReader.
3548 2001-01-03 Tom Tromey <tromey@redhat.com>
3550 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
3551 (getViewportSize): Insets include scrollbar size.
3552 (doLayout): Finished.
3553 (getScrollPosition): Wrote.
3554 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
3556 2001-01-02 Tom Tromey <tromey@redhat.com>
3558 * java/awt/ScrollPane.java: Wrote.
3559 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
3562 * java/awt/Panel.java (Panel()): Fixed.
3564 * java/awt/Component.java (isShowing): Return false if no peer
3565 exists, and true if component is visible and no parent exists.
3566 (getLocationOnScreen): Wrote.
3567 (getPreferredSize): Removed FIXME comment.
3568 (getMinimumSize): Likewise.
3569 (getAlignmentX, getAlignmentY): Wrote.
3571 (requestFocus): Wrote.
3572 (transferFocus): Wrote.
3573 (findNextFocusComponent): New method.
3574 (hasFocus()): Wrote.
3575 (checkImage): Wrote.
3576 (enableEvents): Call setEventMask on the peer.
3578 * java/awt/Container.java (list): Use super.list() to print self.
3579 (findNextFocusComponent): New method.
3580 (setLayout): Call invalidate.
3581 (findComponentAt): Wrote.
3583 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
3585 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
3586 the correct versions of various linuxthreads functions get linked.
3587 * Makefile.in: Rebuilt.
3588 * java/lang/natThread.cc (finalize_native): New static function. Call
3589 _Jv_ThreadDestroyData.
3590 (initialize_native): Register finalizer for "data".
3591 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
3592 (_Jv_ThreadDestroyData): New prototype.
3593 * include/win32-threads.h: Ditto.
3594 * include/no-threads.h: Ditto.
3595 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3596 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
3597 move mutex and condition variable destroy code from:
3598 (really_start): ...here.
3599 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
3600 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3601 (_Jv_ThreadDestroyData): Implemented.
3602 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
3603 (_Jv_AllocArray): Ditto.
3605 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
3607 * java/sql/DriverManager.java (getConnection): Don't set user/password
3610 2000-12-27 Warren Levy <warrenl@redhat.com>
3612 Fix for PR libgcj/1358:
3613 * java/lang/System.java: Update Copyright date properly.
3614 * java/util/Calendar.java: Fix typo in comment.
3615 (set): Set 24-hour clock hour instead of 12-hour clock hour.
3616 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
3617 initialize times. Spec says to set H:M:S values to zero only if
3619 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
3620 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
3621 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
3622 timezones and GMT offsets, being careful to account for units of
3623 milliseconds vs. seconds.
3625 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
3627 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3628 not be assigned to Object.
3630 Fix for PR libgcj/1516:
3631 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3633 (can_widen): Declared inline. Remove redundant checks for void
3634 arguments and char->short conversion. Add special case for boolean
3636 (ffi_type): Declared inline.
3637 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3639 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
3641 * java/sql/SQLWarning.java: Fixed typo in comment.
3643 2000-12-26 Tom Tromey <tromey@redhat.com>
3645 * java/awt/MenuItem.java (paramString): Now protected.
3647 * java/awt/MenuShortcut.java: Implements Serializable.
3649 * java/awt/MenuBar.java: Rewrote from scratch.
3651 * java/awt/MenuComponent.java (removeNotify): Wrote.
3652 Implements Serializable.
3654 * java/awt/GridBagConstraints.java (GridBagConstraints): New
3657 * java/awt/CheckboxMenuItem.java: Wrote.
3659 2000-12-25 Tom Tromey <tromey@redhat.com>
3661 * java/awt/MenuContainer.java: Fixed typo.
3663 * Makefile.in: Rebuilt.
3664 * Makefile.am (awt_java_source_files): Added SystemColor.java.
3665 * java/awt/SystemColor.java: New file.
3667 * java/awt/Color.java (rgba): Now package-private.
3669 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3671 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3674 * java/awt/MenuItem.java (addNotify): New method.
3675 (MenuItem(String,MenuShortcut)): New constructor.
3676 (setLabel): Notify peer of change.
3677 (setEnabled): Likewise.
3679 * java/awt/GridLayout.java (toString): New method.
3681 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3682 (FlowLayout): Check for LEADING and TRAILING.
3683 (setAlignment): Likewise.
3684 (layoutContainer): Handle component orientation.
3686 * java/awt/Component.java (orientatin): New field.
3687 (setComponentOrientation): Wrote.
3688 (getComponentOrientation): Wrote.
3690 * java/awt/Event.java (Event): Implements Serializable.
3691 (consumed): New field for serialization.
3692 * java/awt/Dimension.java (Dimension): Implements Serializable.
3693 * java/awt/Cursor.java (Cursor): Implements Serializable.
3694 * java/awt/Container.java (Container): No longer abstract.
3696 * java/awt/Choice.java: Wrote.
3697 * java/awt/Checkbox.java: Wrote.
3698 * java/awt/ItemSelectable.java: Documented.
3699 * java/awt/CheckboxGroup.java: Wrote.
3701 * java/awt/CardLayout.java (layoutContainer): Directly use fields
3703 (getSize): Likewise.
3705 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
3707 * java/io/FileDescriptor.java: Initialize fd to -1.
3708 Remove default constructor.
3710 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
3712 * java/lang/mprec.h: Change C9X reference to refer to C99.
3714 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
3716 * java/lang/Throwable.java (trace_enabled): New static field.
3717 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3718 trace_enabled not set.
3719 * prims.cc (main_init): Turn off trace_enabled while creating
3720 default exception objects.
3722 2000-12-21 Tom Tromey <tromey@redhat.com>
3724 * java/beans/PropertyChangeListener.java: Extends EventListener.
3725 * java/beans/VetoableChangeListener.java: Extends EventListener.
3727 * java/util/zip/Deflater.java (update, init): Now private.
3729 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
3731 * java/util/BasicMapEntry.java: Re-added.
3732 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3733 (putAll): Test for BasicMapEntry.
3734 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3735 (putAll): Test for BasicMapEntry.
3736 Change references from `HashMap.Entry' to `Entry' in various places.
3737 * Makefile.am: Add BasicMapEntry.java.
3738 * Makefile.in: Rebuilt.
3740 2000-12-18 Warren Levy <warrenl@redhat.com>
3742 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3743 need to set timezone to a valid non-null value. Partial fix for
3746 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3748 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3750 * java/awt/Button.java (addNotify): Likewise.
3751 * java/awt/Label.java (addNotify): Likewise.
3752 * java/awt/Panel.java (addNotify): Likewise.
3753 * java/awt/Scrollbar.java (addNotify): Likewise.
3754 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3755 Remove redundant null checks.
3757 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3759 * COPYING: Update to current
3760 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3761 to 19yy as example year in copyright notice).
3763 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3765 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3766 end-of-stream if avail_in is 0.
3768 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3770 * java/util/ArrayList.java (data): Declare transient.
3771 (serialPersistantFields): Removed.
3772 (readObject): Use defaultReadObject(), not readFields().
3773 (writeObject): Use defaultWriteObject(), not writeFields().
3775 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3777 * java/util/Hashtable.java (put): Remove `last' variable.
3778 Link new entry to head of list.
3779 * java/util/HashMap.java (put): Ditto.
3781 2000-12-15 Tom Tromey <tromey@redhat.com>
3783 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3784 loader to Class.forName.
3786 2000-12-14 Tom Tromey <tromey@redhat.com>
3788 * java/util/ResourceBundle.java
3789 (getBundle(String,Locale,ClassLoader)): New method.
3790 (trySomeGetBundle): Added `loader' argument.
3791 (partialGetBundle): Likewise.
3793 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3794 maximumFractionDigits, maximumIntegerDigits,
3795 minimumFractionDigits, minimumIntegerDigits): Now
3798 * java/lang/Thread.java (checkAccess): Now final.
3800 * java/lang/RuntimePermission.java: Class now final.
3802 * java/io/StringWriter.java (StringWriter(int)): Now public.
3804 * java/io/SerializablePermission.java (legal_names): Now private.
3806 * java/lang/Character.java: Updated UnicodeBlock constants.
3807 * scripts/blocks.pl: Special case private use and surrogate
3810 2000-12-12 Tom Tromey <tromey@redhat.com>
3812 * Makefile.in: Rebuilt.
3813 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3815 (GCJCOMPILE): Use it.
3818 2000-12-11 Tom Tromey <tromey@redhat.com>
3820 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3821 New static final fields.
3823 * scripts/classes.pl (scan): Skip lines with leading `*'.
3824 Fix for PR libgcj/378.
3826 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3828 * configure.in: Remove check for -fuse-divide-subroutine.
3829 * configure: Rebuilt.
3831 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3833 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3835 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3837 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3838 Remove BasicMapEntry.java and Bucket.java.
3839 * Makefile.in: Rebuilt.
3840 * java/util/HashMap.java: Rewritten.
3841 * java/util/HashSet.java: Imported from classpath.
3842 * java/util/WeakHashMap.java: Imported from classpath.
3843 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3844 * java/util/Bucket.java: Deleted.
3845 * java/util/BasicMapEntry.java: Deleted.
3846 * java/util/Collections.java (search): Use a for-loop, not iterator
3848 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3849 of elements in source.
3850 (max): Use a for-loop.
3852 (reverse): Keep track of positions instead of using Iterator's
3853 nextIndex() and previousIndex().
3854 (shuffle(List)): Initialize defaultRandom if required using
3855 double-check thread safety idiom. Call two-argument shuffle method
3856 using defaultRandom.
3857 (defaultRandom): New field.
3858 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3859 using previousIndex() and nextIndex().
3860 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3861 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3862 * java/util/AbstractMap.java (toString): Use StringBuffer.
3863 * java/lang/ref/PhantomReference.java: Imported from classpath.
3864 * java/lang/ref/SoftReference.java: Ditto.
3865 * java/lang/ref/Reference.java: Ditto.
3866 * java/lang/ref/WeakReference.java: Ditto.
3867 * java/lang/ref/ReferenceQueue.java: Ditto.
3869 2000-12-10 Richard Henderson <rth@redhat.com>
3871 * configure.host: Recognize alpha*-*, not alphaev6-*.
3873 2000-12-09 Anthony Green <green@redhat.com>
3875 * configure.host: Enable interpreter for Alpha.
3877 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3879 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3880 (ZIP): Points at fastjar instead of zip.
3881 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3882 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3883 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3884 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3885 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3886 ($(x_java_source_files:.java=.class):): Likewise.
3887 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3889 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3890 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3891 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3892 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3893 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3894 gnu/gcj/runtime/VMClassLoader.h:,
3895 java/io/ObjectInputStream$$GetField.h:,
3896 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3897 (Makefile.in): Rebuilt.
3899 2000-12-08 Tom Tromey <tromey@redhat.com>
3902 * configure: Rebuilt.
3903 * configure.in: Use echo, not `:', to create .d files.
3905 2000-12-08 Warren Levy <warrenl@redhat.com>
3907 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3908 NullPointerException so proper check of offset can be done.
3910 2000-12-08 Warren Levy <warrenl@redhat.com>
3912 * java/io/FileInputStream.java (close): Check if the fd is valid.
3913 * java/io/RandomAccessFile.java (close): Ditto.
3914 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3915 * java/net/PlainSocketImpl.java (close): Ditto.
3917 2000-12-06 Tom Tromey <tromey@redhat.com>
3919 * java/awt/GridBagConstraints.java: Filled in values for static
3922 * java/util/BitSet.java: Updated copyright notice.
3924 * Makefile.in: Rebuilt.
3925 * Makefile.am (awt_java_source_files): Added new file.
3926 * java/awt/GridBagConstraints.java: New file.
3928 2000-12-05 Tom Tromey <tromey@redhat.com>
3930 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3931 Now package-private, not protected.
3932 * java/text/DateFormatSymbols.java (equals): Now private.
3933 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3934 * java/util/BitSet.java: Class no longer final.
3936 2000-12-04 Warren Levy <warrenl@redhat.com>
3938 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3939 out code dependent on compiler and library changes.
3941 2000-12-04 Warren Levy <warrenl@redhat.com>
3943 * java/io/FilePermission.java: Made class final per spec.
3944 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3945 method name to match spec (fixed typo).
3946 * java/util/LinkedList.java: Implements List.
3948 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3950 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3951 Edgar Villanueva <edgarvil@home.com>.
3953 2000-12-03 Tom Tromey <tromey@redhat.com>
3955 * java/awt/geom/Point2D.java: Added protected constructor.
3956 (equals): New method.
3957 (Float.setLocation(float,float)): New method.
3958 * java/awt/geom/Dimension2D.java: Added protected constructor.
3959 * java/awt/geom/AffineTransform.java: Made all constants public.
3960 (concatenate): Fixed typo in name.
3961 * java/awt/event/WindowAdapter.java: Class now abstract.
3962 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3963 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3966 * java/awt/AWTError.java: Extend Error, not
3967 IllegalStateException.
3969 * Makefile.in: Rebuilt.
3970 * Makefile.am (awt_java_source_files): Added new file.
3971 * java/awt/geom/RoundRectangle2D.java: New file.
3973 * Makefile.in: Rebuilt.
3974 * Makefile.am (awt_java_source_files): Added new file.
3975 * java/awt/FlowLayout.java: New file.
3977 * Makefile.in: Rebuilt.
3978 * Makefile.am (awt_java_source_files): Added new file.
3979 * java/awt/GridLayout.java: New file.
3981 2000-12-02 Tom Tromey <tromey@redhat.com>
3983 * Makefile.in: Rebuilt.
3984 * Makefile.am (awt_java_source_files): Added new files.
3985 * java/awt/CardLayout.java: New file.
3986 * java/awt/AWTPermission.java: New file.
3988 2000-12-01 Tom Tromey <tromey@redhat.com>
3990 * java/util/Vector.java (insertElementAt): Unconditionally
3991 increment elementCount.
3992 (removeRange): Clear unused slots in vector.
3994 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3996 * java/lang/natMath.cc: Declare fabsf() function.
3997 * java/lang/mprec.h: Don't include math.h.
3998 * java/lang/dtoa.c: Include string.h.
3999 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
4002 From Adam Welc <welc@cs.purdue.edu>:
4003 * java/util/LinkedList.java (removeFirst): Update `first' field.
4004 Handle the last == first case.
4005 (removeLast): Update `last' field. Handle the last == first case.
4007 2000-12-01 Warren Levy <warrenl@cygnus.com>
4009 * Makefile.am: Added entries for new java.sql modules.
4010 * Makefile.in: Rebuilt.
4012 2000-12-01 Warren Levy <warrenl@cygnus.com>
4014 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
4015 that aren't quite 1.2 compatible yet.
4017 2000-11-30 Warren Levy <warrenl@cygnus.com>
4019 * java/sql/Array.java: New file from classpath.
4020 * java/sql/BatchUpdateException.java: Ditto.
4021 * java/sql/Blob.java: Ditto.
4022 * java/sql/Clob.java: Ditto.
4023 * java/sql/Ref.java: Ditto.
4024 * java/sql/SQLData.java: Ditto.
4025 * java/sql/SQLInput.java: Ditto.
4026 * java/sql/SQLOutput.java: Ditto.
4027 * java/sql/Struct.java: Ditto.
4028 * java/sql/CallableStatement.java: Merged file from claspath.
4029 * java/sql/Connection.java: Ditto.
4030 * java/sql/DataTruncation.java: Ditto.
4031 * java/sql/DatabaseMetaData.java: Ditto.
4032 * java/sql/DriverManager.java: Ditto.
4033 * java/sql/PreparedStatement.java: Ditto.
4034 * java/sql/ResultSet.java: Ditto.
4035 * java/sql/ResultSetMetaData.java: Ditto.
4036 * java/sql/SQLException.java: Ditto.
4037 * java/sql/SQLWarning.java: Ditto.
4038 * java/sql/Statement.java: Ditto.
4039 * java/sql/Types.java: Ditto.
4041 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
4043 * java/lang/natSystem.cc (init_properties): Set user.language and
4045 * configure.in: Check for setlocale.
4046 * configure: Rebuilt.
4047 * include/config.h.in: Rebuilt.
4049 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
4050 the infate() call didn't deliver any output. Throw a ZipException if
4051 the needsDictionary() call returns true.
4052 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
4053 * java/io/InputStreamReader: Use the default buffer size for the
4054 contained BufferedInputStream.
4056 2000-11-28 Warren Levy <warrenl@cygnus.com>
4058 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
4059 more time zone entries.
4060 * java/text/SimpleDateFormat.java (format): Added case for
4063 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
4065 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
4066 directly rather than read() in all cases. Make primitive read
4067 implementations more efficient, as defined in JDK online docs.
4068 (skipBytes): Behave like the JDK's implementation.
4069 * java/io/BufferedReader.java: Merge classpath docs. Check for a
4070 closed stream with checkStatus() whenever an IOException can be
4072 (checkStatus): New private method.
4074 2000-11-27 Warren Levy <warrenl@cygnus.com>
4076 * Makefile.am: Added natTimeZone.cc.
4077 * Makefile.in: Rebuilt.
4078 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
4079 * java/text/DateFormatSymbols.java (ampms): Made package private.
4080 (eras): Made package private.
4081 (months): Made package private.
4082 (shortMonths): Made package private.
4083 (shortWeekdays): Made package private.
4084 (weekdays): Made package private.
4085 (formatPrefixes): New private field.
4086 (localPatternCharsDefault): Made private.
4087 (dateFormats): New package private field.
4088 (timeFormats): New package private field.
4089 (formatsForKey): New private method.
4090 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
4091 (DateFormatSymbols(DateFormatSymbols)): Ditto.
4092 * java/text/SimpleDateFormat.java: Merged with Classpath.
4093 * java/util/TimeZone.java: Merged with Classpath.
4094 * java/util/natTimeZone.cc: New file.
4096 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
4098 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
4099 (addElement): Don't increment elementCount twice. Doh.
4100 * java/util/ArrayList.java (add): Only call ensureCapacity if the
4101 array needs to be expanded.
4103 * java/util/Collections.java (UnmodifiableCollection): Implement
4105 (UnmodifiableList): Throw UnsupportedOperationException from
4106 modification methods. Set `l' from the one-parameter constructor.
4107 (UnmodifiableMap): Implement toString().
4108 (SynchronizedCollection): Ditto.
4109 (SynchronizedList): Set `l' from the one-parameter constructor.
4110 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
4111 (SynchronizedMap): Implement toString().
4113 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
4115 * javax/naming/NameParser.java,
4116 javax/naming/directory/AttributeInUseException.java,
4117 javax/naming/directory/AttributeModificationException.java,
4118 javax/naming/directory/InvalidAttributeIdentifierException.java,
4119 javax/naming/directory/InvalidAttributesException.java,
4120 javax/naming/directory/InvalidAttributeValueException.java,
4121 javax/naming/directory/InvalidSearchControlsException.java,
4122 javax/naming/directory/InvalidSearchFilterException.java,
4123 javax/naming/directory/NoSuchAttributeException.java,
4124 javax/naming/directory/SchemaViolationException.java: New files.
4126 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
4128 * javax/naming/InitialContext.java (rebind): Implement.
4129 (unbind): Implement.
4130 (rename): Implement.
4132 (listBindings): Implement.
4133 (destroySubcontext): Implement.
4134 (createSubcontext): Implement.
4135 (lookupLink): Implement.
4136 (getNameParser): Implement.
4137 (composeName): Implement.
4138 (addToEnvironment): Implement.
4140 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
4142 * javax/naming/AuthenticationException.java,
4143 javax/naming/AuthenticationNotSupportedException.java,
4144 javax/naming/CannotProceedException.java,
4145 javax/naming/CommunicationException.java,
4146 javax/naming/ConfigurationException.java,
4147 javax/naming/ContextNotEmptyException.java,
4148 javax/naming/InsufficientResourcesException.java,
4149 javax/naming/InterruptedNamingException.java,
4150 javax/naming/InvalidNameException.java,
4151 javax/naming/LimitExceededException.java,
4152 javax/naming/LinkException.java,
4153 javax/naming/LinkLoopException.java,
4154 javax/naming/MalformedLinkException.java,
4155 javax/naming/NameAlreadyBoundException.java,
4156 javax/naming/NameNotFoundException.java,
4157 javax/naming/NamingSecurityException.java,
4158 javax/naming/NoPermissionException.java,
4159 javax/naming/NotContextException.java,
4160 javax/naming/PartialResultException.java,
4161 javax/naming/ReferralException.java,
4162 javax/naming/ServiceUnavailableException.java,
4163 javax/naming/SizeLimitExceededException.java,
4164 javax/naming/TimeLimitExceededException.java: New files.
4166 * javax/naming/Name.java (clone): New method.
4167 (compareTo): New method.
4168 (isEmpty): New method.
4169 (getAll): New method.
4170 (getPrefix): New method.
4171 (getSuffix): New method.
4172 (startsWith): New method.
4173 (endsWith): New method.
4174 (addAll): New method.
4175 (addAll): New method.
4178 (remove): New method.
4180 * javax/naming/Context.java (lookup): New method.
4181 (rebind): New method.
4182 (unbind): New method.
4183 (rename): New method.
4185 (listBindings): New method.
4186 (destroySubcontext): New method.
4187 (createSubcontext): New method.
4188 (lookupLink): New method.
4189 (getNameParser): New method.
4190 (composeName): New method.
4191 (addToEnvironment): New method.
4192 (removeFromEnvironment): New method.
4193 (getEnvironment): New method.
4194 (close): New method.
4195 (getNameInNamespace): New method.
4197 * javax/naming/InitialContext.java (lookup): New method.
4198 (rebind): New method.
4199 (unbind): New method.
4200 (rename): New method.
4202 (listBindings): New method.
4203 (destroySubcontext): New method.
4204 (createSubcontext): New method.
4205 (lookupLink): New method.
4206 (getNameParser): New method.
4207 (composeName): New method.
4208 (addToEnvironment): New method.
4209 (removeFromEnvironment): New method.
4210 (getEnvironment): New method.
4211 (close): New method.
4212 (getNameInNamespace): New method.
4214 2000-11-26 Tom Tromey <tromey@cygnus.com>
4216 * Makefile.in: Rebuilt.
4217 * Makefile.am (core_java_source_files): Added
4218 RuntimePermission.java.
4219 * java/lang/RuntimePermission.java: Imported from Classpath.
4220 * java/lang/Thread.java (getContextClassLoader): Now
4221 synchronized. Added security code.
4222 (setContextClassLoader): Likewise.
4224 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
4225 length field of array.
4226 (_Jv_NewPrimArray): Likewise.
4227 * gcj/array.h (__JArray): `length' field now const. Added
4230 2000-11-26 Anthony Green <green@redhat.com>
4232 * javax/naming/spi/NamingManager.java,
4233 javax/naming/spi/ObjectFactory.java,
4234 javax/naming/spi/InitialContextFactory.java,
4235 javax/naming/spi/InitialContextFactoryBuilder.java,
4236 javax/naming/RefAddr.java, javax/naming/Reference.java,
4237 javax/naming/NamingException.java, javax/naming/Context.java,
4238 javax/naming/Referenceable.java,
4239 javax/naming/directory/InitialDirContext.java,
4240 javax/naming/directory/DirContext.java,
4241 javax/naming/directory/Attributes.java,
4242 javax/naming/directory/Attribute.java,
4243 javax/naming/StringRefAddr.java,
4244 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
4245 javax/naming/InitialContext.java,
4246 javax/naming/NoInitialContextException.java: New files.
4248 2000-11-25 Anthony Green <green@redhat.com>
4250 * prims.cc (_Jv_NewObjectArray): Undo placement change.
4251 (_Jv_NewPrimArray): Likewise.
4252 * gcj/array.h (__JArray): Undo const change. Removed constructor.
4253 (class JArray): Removed constructor.
4255 * java/lang/Thread.java (context_class_loader): New private data.
4256 (getContextClassLoader): New method.
4257 (setContextClassLoader): New method.
4258 (Thread): Initialize context_class_loader.
4260 * java/net/URLClassLoader.java: Import java.util.Enumeration.
4261 (getResource): Rename to findResource.
4262 (findResource): New method. Used to be getResource.
4263 (getResourceAsStream): Deleted.
4264 (jarFileize): Extracted logic from URLClassLoader constructor into
4265 this new private method.
4266 (addURL): New protected method.
4267 (URLClassLoader): Call jarFileize. Use addElement instead of
4269 (findResources): New method.
4271 * java/lang/ClassLoader.java: Import java.util.Enumeration.
4272 (getResource): Implement correct logic.
4273 (findResource): New method.
4274 (getResources): New method.
4275 (findClass): Create a ClassNotFoundException with the name of the
4276 class rather than nothing at all.
4277 (defineClass) Only throw ClassFormatError.
4279 * java/lang/Class.java (forName): New method.
4280 * java/lang/Class.h (forName): New method.
4281 * java/lang/natClass.cc (forName): New method.
4283 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4285 * java/lang/System.java (setProperties): Only call init_properties()
4286 if properties is null.
4287 (getProperties): Ditto.
4288 (getProperty): Ditto.
4289 (setProperty): Call init_properties if properties are null.
4290 (prop_init): Remove field.
4291 * java/lang/natSystem.cc (init_properties): Synchronize the entire
4292 method. Check for null properties after synchronizing instead of
4293 prop_init flag. Set the properties field last for thread safety.
4295 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
4296 test for gcj.dumpobjects property and enable object stream dumping
4298 (dumpElement): No longer native.
4299 (dumpElementln): Ditto.
4300 (setDump): Do not define.
4301 * java/io/natObjectInputStream.cc (dumpElement): Removed.
4302 (dumpElementln): Removed.
4305 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
4307 * configure: Rebuilt.
4308 * Makefile.in: Rebuilt.
4309 * Makefile.am (built_java_source_files): Add Configuration.java.
4310 * configure.in: Add Configuration.java to CONFIG_FILES. Set
4311 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
4312 Create `gnu' directory in the build tree.
4313 * gnu/classpath/Configuration.java.in: New file.
4315 2000-11-24 Tom Tromey <tromey@cygnus.com>
4317 * prims.cc (_Jv_NewObjectArray): Use placement new to create
4319 (_Jv_NewPrimArray): Likewise.
4321 * gcj/array.h (__JArray): `length' field now const. Added
4323 (class JArray): Added constructor.
4325 2000-11-23 Mark Wielaard <mark@klomp.org>
4327 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
4330 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
4332 * java/util/Vector.java: Improve exception messages.
4333 (Vector): Check initialCapacity for IllegalArgumentException.
4334 (tromToSize): Don't check for elementCount == elementData.length
4336 (toArray): Don't try to set null marker if target array is the same
4337 length as the vector.
4339 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
4341 * Makefile.in: Rebuilt.
4342 * Makefile.am (core_java_source_files): Added Collections.java.
4343 * java/util/List.java: Merged from classpath.
4344 * java/util/Vector.java: Ditto.
4345 * java/util/Collections.java: From classpath.
4346 * java/util/ArrayList.java (addAll(Collection)): Call
4347 addAll(int,Collection) instead of duplicating code.
4348 (indexOf): Clean up int initialization.
4349 (clear): Set cleared array entries to null, to allow garbage
4351 * java/util/List.java: Minor formatting fixes.
4352 * java/util/SimpleTimeZone.java: ditto.
4354 2000-11-18 Tom Tromey <tromey@cygnus.com>
4356 * Makefile.in: Rebuilt.
4357 * Makefile.am (core_java_source_files): Added new files.
4358 * java/lang/reflect/ReflectPermission.java: New class.
4359 * java/io/FileFilter.java: From Classpath
4360 * java/io/FilePermission.java: From Classpath.
4362 2000-11-17 Tom Tromey <tromey@cygnus.com>
4364 * java/lang/reflect/AccessibleObject.java (isAccessible,
4365 setAccessible): Now public.
4367 * java/lang/natString.cc: Include Locale.h.
4368 (toUpperCase): Added `locale' argument. Handle locale
4370 (toLowerCase): Added `locale' argument. Handle locale
4372 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
4373 CAPITAL_I): New defines.
4374 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
4377 (toUpperCase, toLowerCase): New methods. Variants which accept
4380 * java/lang/ExceptionInInitializerError.java (printStackTrace):
4383 * java/util/PropertyPermission.java: Re-merged from Classpath.
4385 * java/text/RuleBasedCollator.java (getCollationElementIterator):
4387 * java/text/StringCharacterIterator.java: Reindented.
4388 (setText): New method.
4390 2000-11-17 Mark Wielaard <mark@klomp.org>
4392 Merge with Classpath (changes by Bryce McKinlay)
4393 * java/util/jar/*.java: Reformat all to unofficial standard coding
4394 style. No changes of substance.
4396 2000-11-17 Mark Wielaard <mark@klomp.org>
4398 * java/util/zip/*.java: Javadoc updates.
4400 2000-11-17 Tom Tromey <tromey@cygnus.com>
4402 * java/text/CollationKey.java: Implement Comparable.
4403 (compareTo(Object)): New method.
4404 * java/text/Collator.java (compare(Object,Object)): New method.
4405 Implement Comparator.
4407 * java/util/zip/InflaterInputStream.java (available): New method.
4408 (close): New method.
4409 (read, available, skip, fill): Throw exception if stream closed.
4410 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
4411 getNextEntry): Throw exception if closed.
4413 2000-11-16 Tom Tromey <tromey@cygnus.com>
4415 * java/io/PushbackReader.java: Merged with Classpath.
4416 * java/util/Arrays.java: Updated from Classpath.
4418 * scripts/blocks.pl: New file.
4419 * java/lang/Character.java (Subset): New class.
4420 (UnicodeBlock): New class.
4422 * java/lang/Math.java (toDegrees, toRadians): New methods.
4424 * java/lang/Float.java: Implement Comparable.
4425 (compareTo): New methods.
4426 * java/lang/Double.java: Implement Comparable.
4427 (compareTo): New methods.
4429 2000-11-16 Warren Levy <warrenl@cygnus.com>
4431 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
4433 (listeners): Made transient.
4434 (source): Renamed from 'bean'.
4435 (children): New field for serialization.
4436 (propertyChangeSupportSerializedDataVersion): Ditto.
4437 (serialVersionUID): Ditto.
4438 (writeObject): New serialization method.
4439 (readObject): New serialization method.
4440 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
4442 (listeners): Made transient.
4443 (source): Renamed from 'bean'.
4444 (children): New field for serialization.
4445 (vetoableChangeSupportSerializedDataVersion): Ditto.
4446 (serialVersionUID): Ditto.
4447 (writeObject): New serialization method.
4448 (readObject): New serialization method.
4449 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
4450 to allow constructor to have a return type (i.e. the class that the
4451 constructor constructs).
4453 2000-11-14 Tom Tromey <tromey@cygnus.com>
4455 * Makefile.in: Rebuilt.
4456 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
4459 2000-11-02 Warren Levy <warrenl@cygnus.com>
4461 * java/io/ObjectInputStream.java (readObject): Added code to
4462 conditionally dump out the serialized data.
4463 Handle ENDBLOCKDATA case a bit more gracefully since the current
4464 behavior doesn't seem to work as expected.
4465 (readStreamHeader): Added code for serialized data dumper.
4466 (readNextBlock): Ditto.
4467 (readFields): Ditto.
4468 (dump): New private static field for turning on/off dumper.
4469 (setDump): New native method.
4470 (dumpElement): New native method.
4471 (dumpElementln): New native method.
4472 * java/io/natObjectInputStream.cc (setDump): New method.
4473 (dumpElement): New method.
4474 (dumpElementln): New method.
4476 2000-11-02 Warren Levy <warrenl@cygnus.com>
4478 * java/net/InetAddress.java (addr): Renamed from 'address'.
4479 (address): New field to match Serialized Form doc.
4480 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4481 (family): New serialization field.
4482 (serialVersionUID): New field.
4483 (readObject): New method.
4484 (writeObject): New method.
4485 (getFamily): New native method.
4486 (InetAddress): Set family.
4487 * java/net/natInetAddress.cc (getFamily): New method.
4488 (addr): Renamed from 'address'.
4489 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4490 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
4491 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
4493 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
4495 * java/util/AbstractList.java (SubList): Make it a top-level private
4497 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
4499 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
4500 * Makefile.in: Rebuilt.
4502 2000-11-02 Tom Tromey <tromey@cygnus.com>
4504 * Makefile.in: Rebuilt.
4505 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
4508 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4510 * java/util/AbstractList.java (remove): Comment out modCount increment
4511 to work around compiler bug.
4514 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4516 * java/util/AbstractList.java: Throw messages with
4517 IndexOutOfBoundsExceptions.
4518 (listIterator()): Call listIterator(0).
4519 (size): New field. Initialize to size().
4520 (hasNext): Test position against size, not size().
4521 (remove): Increment knownMod by one instead of resetting it from
4524 (SubList.upMod): Removed.
4525 (SubList.set): Don't call upMod() or update knownMod.
4526 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
4527 (SubList.remove): Ditto.
4528 (SubList.addAll): Don't call backingList.size(). Increment size from
4530 (SubList.iterator): New method. Call listIterator(0).
4531 (SubList.listIterator): New method. Restore code to return an anonymous
4532 listIterator implementation (with some changes).
4533 * java/util/AbstractSequentialList.java: Throw messages with
4534 IndexOutOfBoundsExceptions.
4535 (addAll): Add a specnote.
4536 * java/util/ArrayList.java (removeRange): Get the math right.
4537 (addAll): Increment modCount _before_ creating iterator.
4538 * java/util/LinkedList.java: Rewritten, mostly.
4540 2000-11-01 Tom Tromey <tromey@cygnus.com>
4542 * scripts/encodings.pl: Added `ASCII' alias.
4543 * Makefile.in: Rebuilt.
4544 * Makefile.am (convert_source_files): Added new files.
4545 * gnu/gcj/convert/Input_ASCII.java: New file.
4546 * gnu/gcj/convert/Output_ASCII.java: New file.
4547 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
4548 out-of-range characters.
4549 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
4550 (read): Swap bytes if required. Treat `count' as character count,
4552 (write): Likewise. Also, handle case where iconv fails on a given
4554 (init): Put encoding into exception.
4555 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
4556 (static): Call iconv_init. Rebuilt alias list.
4557 (iconv_init): New private method.
4559 2000-11-01 Tom Tromey <tromey@cygnus.com>
4561 * Makefile.in: Rebuilt.
4562 * Makefile.am (install-exec-hook): Only make a single symlink, and
4563 remove the destination before making the link.
4564 * configure: Rebuilt.
4565 * configure.in: Call AC_PROG_LN_S.
4567 2000-10-31 Warren Levy <warrenl@cygnus.com>
4569 * jni.cc: Added include of java/lang/ThreadGroup.h.
4570 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
4571 per change of 2000-10-05.
4573 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
4575 * java/util/BitSet.java: Updated @specnote.
4577 * java/io/Reader.java: Merge docs from classpath.
4578 (skip): Synchronize on `lock'.
4579 * java/io/FileReader.java: Import correct implementation from
4581 * java/io/StringReader.java: Merge docs from classpath.
4582 (ready): Throw IOException if stream is closed.
4584 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
4586 * java/util/AbstractCollection.java (addAll): Use size() instead of
4587 hasNext() in iterator loop.
4589 (contains): Ditto. Simplify loop.
4590 (containsAll): Ditto.
4595 (toString): Ditto. Use string concatenation operators, not
4597 * java/util/AbstractList.java (addAll): Use size() instead of
4598 hasNext() in iterator loop.
4601 (indexOf): Ditto. Don't take null check outside of the loop.
4602 (iterator): Return an AbstractListItr instead of anonymous class.
4603 (lastIndexOf): Use a for loop bounded by size() instead of
4604 hasPrevious() in iterator loop.
4605 (listIterator): Return an AbstractListItr.
4606 (removeRange): Remove bounds checking code and docs.
4607 (AbstractListItr): New inner class. Code moved here from
4609 (SubList.iterator): Removed. Use default implementation from
4610 AbstractList instead.
4611 (SubList.listIterator): As above.
4612 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
4613 instead of hasNext() in iterator loop.
4614 (containsValue): Ditto.
4620 (toString): Ditto. Use string concatenation operators, not
4622 * java/util/AbstractSequentialList.java (addAll): Use a for loop
4623 bounded by size() instead of hasNext() in iterator loop.
4624 * java/util/AbstractSet.java (hashCode): Don't catch exception as
4625 part of normal execution flow. Do an explicit null check instead.
4626 * java/util/ArrayList.java (_iSize): Rename to `size'.
4627 (_arData): Rename to `data'.
4628 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4631 (removeRange): Make protected. Don't check bounds.
4632 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4634 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4636 (addAll (int, Collection)): Check lower bounds. Simplify exception
4638 (clone): Clone the data array too.
4639 (indexOf): Inline doesEqual().
4640 (lastIndexOf): Ditto.
4641 (clear): Don't set array data to null.
4642 (set): Check lower bounds. Simplify exception string.
4643 (toArray): Correct comment.
4644 (trimToSize): Don't update modCount, this is not a structural change.
4647 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4649 (toString): Declare `bit' as long, not int.
4650 (data): Made package-private, not private.
4652 2000-10-27 Warren Levy <warrenl@cygnus.com>
4654 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4655 array elements to true.
4657 2000-10-27 Warren Levy <warrenl@cygnus.com>
4659 * Makefile.am: Added locale files from Classpath.
4660 * Makefile.in: Rebuilt.
4661 * gnu/java/locale/Calendar.java: New file.
4662 * gnu/java/locale/Calendar_de.java: New file.
4663 * gnu/java/locale/Calendar_en.java: New file.
4664 * gnu/java/locale/Calendar_nl.java: New file.
4665 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4666 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4667 serialization compatibility.
4668 (scale): Made private.
4669 (serialVersionUID): New field.
4670 * java/math/BigInteger.java (ival): Made transient.
4671 (words): Made transient.
4672 (bitCount): New serialization field.
4674 (firstNonzeroByteNum): Ditto.
4675 (lowestSetBit): Ditto.
4678 (serialVersionUID): New field.
4679 (readObject): New method.
4680 (writeObject): New method.
4681 * java/util/BitSet.java (serialVersionUID): New field.
4682 * java/util/Calendar.java: Replaced with Classpath file.
4683 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4684 of getDefault() for TimeZone or Locale instead of passing nulls.
4685 * java/util/Locale.java (serialVersionUID): New field.
4686 (writeObject): New method.
4687 (readObject): New method.
4688 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4690 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
4692 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4693 (core_java_source_files): Put java.lang, java.io, and java.util here.
4694 (ordinary_java_source_files): Order so that core_java_source_files are
4696 (java_source_files): Reorder so that special_java_source_files are
4698 * configure.in: Don't pass -I flag to gcj.
4699 * Makefile.in: Rebuilt.
4700 * configure: Rebuilt.
4702 2000-10-25 Tom Tromey <tromey@cygnus.com>
4704 * Makefile.in: Rebuilt.
4705 * Makefile.am (install-exec-hook): New target.
4707 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
4709 * java/util/EventObject.java: Merged from classpath.
4711 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4714 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4716 * java/util/AbstractSet.java (equals): Re-installed original code.
4718 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4720 * Makefile.am: Added rules for libgcjx library.
4721 * Makefile.in: Rebuilt.
4722 * configure.in: Added check for X.
4723 * configure: Rebuilt.
4724 * gnu/awt/LightweightRedirector.java: New file.
4725 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4726 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4727 * gnu/awt/j2d/Graphics2DImpl.java: New file.
4728 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4729 * gnu/awt/j2d/MappedRaster.java: New file.
4730 * gnu/awt/xlib/XCanvasPeer.java: New file.
4731 * gnu/awt/xlib/XEventLoop.java: New file.
4732 * gnu/awt/xlib/XEventQueue.java: New file.
4733 * gnu/awt/xlib/XFontMetrics.java: New file.
4734 * gnu/awt/xlib/XFramePeer.java: New file.
4735 * gnu/awt/xlib/XGraphics.java: New file.
4736 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4737 * gnu/awt/xlib/XPanelPeer.java: New file.
4738 * gnu/awt/xlib/XToolkit.java: New file.
4739 * gnu/gcj/xlib/Clip.java: New file.
4740 * gnu/gcj/xlib/Colormap.java: New file.
4741 * gnu/gcj/xlib/Display.java: New file.
4742 * gnu/gcj/xlib/Drawable.java: New file.
4743 * gnu/gcj/xlib/Font.java: New file.
4744 * gnu/gcj/xlib/GC.java: New file.
4745 * gnu/gcj/xlib/Pixmap.java: New file.
4746 * gnu/gcj/xlib/Screen.java: New file.
4747 * gnu/gcj/xlib/Visual.java: New file.
4748 * gnu/gcj/xlib/WMSizeHints.java: New file.
4749 * gnu/gcj/xlib/Window.java: New file.
4750 * gnu/gcj/xlib/WindowAttributes.java: New file.
4751 * gnu/gcj/xlib/XAnyEvent.java: New file.
4752 * gnu/gcj/xlib/XButtonEvent.java: New file.
4753 * gnu/gcj/xlib/XColor.java: New file.
4754 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4755 * gnu/gcj/xlib/XConnectException.java: New file.
4756 * gnu/gcj/xlib/XEvent.java: New file.
4757 * gnu/gcj/xlib/XException.java: New file.
4758 * gnu/gcj/xlib/XExposeEvent.java: New file.
4759 * gnu/gcj/xlib/XID.java: New file.
4760 * gnu/gcj/xlib/XImage.java: New file.
4761 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4762 * gnu/gcj/xlib/natClip.cc: New file.
4763 * gnu/gcj/xlib/natColormap.cc: New file.
4764 * gnu/gcj/xlib/natDisplay.cc: New file.
4765 * gnu/gcj/xlib/natDrawable.cc: New file.
4766 * gnu/gcj/xlib/natFont.cc: New file.
4767 * gnu/gcj/xlib/natGC.cc: New file.
4768 * gnu/gcj/xlib/natPixmap.cc: New file.
4769 * gnu/gcj/xlib/natScreen.cc: New file.
4770 * gnu/gcj/xlib/natVisual.cc: New file.
4771 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4772 * gnu/gcj/xlib/natWindow.cc: New file.
4773 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4774 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4775 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4776 * gnu/gcj/xlib/natXColor.cc: New file.
4777 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4778 * gnu/gcj/xlib/natXException.cc: New file.
4779 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4780 * gnu/gcj/xlib/natXImage.cc: New file.
4781 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4782 * java/awt/EventDispatchThread.java: Start thead on creation.
4784 2000-10-20 Tom Tromey <tromey@cygnus.com>
4786 From Arno J. Klaassen:
4787 * interpret.cc: Include <stdlib.h> for alloca.
4788 * defineclass.cc: Include <stdlib.h> for alloca.
4790 * Makefile.in: Rebuilt.
4791 * Makefile.am: Include deps.mk.
4792 (GCJCOMPILE): Added -MD, -MT, and -MF.
4793 ($(javao_files)): Don't depend on libgcj.zip.
4794 (all-recursive): New target.
4795 (%.lo:%.cc): Do dependency tracking.
4796 ($(nat_headers)): Don't depend on libgcj.zip.
4797 * configure: Rebuilt.
4798 * configure.in: Make .d files and deps.mk.
4800 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4802 * exception.cc: Don't #include "exception".
4803 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4805 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4806 * Makefile.in: Updated.
4808 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4810 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4811 * java/awt/peer/ComponentPeer.java (disable): Removed.
4814 (minimumSize): Removed.
4815 (preferredSize): Removed.
4818 * java/awt/peer/ListPeer.java (addItem): Removed.
4820 (minimumSize): Removed.
4821 (preferredSize): Removed.
4822 (setMultipleSelections): Removed.
4823 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4824 (remove): Renamed from removeMenu.
4825 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4827 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4828 (remove): Renamed from removeItem.
4829 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4830 (getMinimumSize): Removed.
4831 (getPreferredSize): Removed.
4832 (minimumSize): Removed.
4833 (preferredSize): Removed.
4834 (replaceText): Removed.
4835 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4836 (preferredSize): Removed.
4837 (getMinimumSize): Removed.
4838 (getPreferredSize): Removed.
4839 (setEchoCharacter): Removed.
4841 2000-10-10 Warren Levy <warrenl@cygnus.com>
4843 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4844 * java/sql/Date.java (serialVersionUID): New field.
4845 * java/sql/Time.java (serialVersionUID): New field.
4846 * java/sql/Timestamp.java (serialVersionUID): New field.
4847 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4848 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4849 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4850 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4851 (readObject): New serialization method.
4852 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4853 (serialVersionOnStream): New field.
4854 (readObject): New serialization method.
4855 (getMonetaryDecimalSeparator): New method.
4856 (setMonetaryDecimalSeparator): New method.
4857 * java/text/NumberFormat.java (maxFractionDigits): New field.
4858 (maxIntegerDigits): New field.
4859 (minFractionDigits): New field.
4860 (minIntegerDigits): New field.
4861 (serialVersionOnStream): New field.
4862 (serialVersionUID): New field.
4863 (readObject): New serialization method.
4864 (writeObject): New serialization method.
4865 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4866 (serialVersionOnStream): New field.
4867 (serialVersionUID): New field.
4868 (readObject): New serialization method.
4870 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4872 * configure.in (GCJ): Avoid bogus error message when looking for
4873 (and not finding) gcj in the build tree.
4874 * configure: Rebuilt.
4876 2000-10-09 Tom Tromey <tromey@cygnus.com>
4878 * configure: Rebuilt.
4879 * configure.in: Include sys/types.h when checking for socklen_t.
4880 From Arno J. Klaassen.
4882 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4884 * include/jvm.h: Enable __builtin_expect().
4886 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4887 the main program. Fix for PR libgcj/341.
4889 2000-10-07 Tom Tromey <tromey@cygnus.com>
4891 * java/util/Properties.java: Merged with Classpath version.
4893 2000-10-05 Tom Tromey <tromey@cygnus.com>
4895 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4896 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4897 * java/lang/Class.h (Object): Added `class$' field.
4898 * java/lang/Object.h (Object): Added `class$' field.
4899 * defineclass.cc (ClassClass): Use `class$' form.
4900 (ClassObject): Likewise.
4901 * resolve.cc (ClassObject): Use `class$' form.
4902 (ObjectClass): Likewise.
4903 * interpret.cc (ClassError): Removed.
4904 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4906 (IntegerClass): Likewise.
4907 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4909 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4910 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4911 SerializableClass): Likewise.
4912 Include Serializable.h, Cloneable.h.
4913 * java/lang/natSystem.cc (SystemClass): Removed.
4914 (init_properties): Use `class$' form.
4915 * java/lang/natObject.cc (CloneableClass): Removed.
4916 (clone): Use `class$' form.
4917 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4918 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4919 ConstructorClass): Likewise.
4920 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4921 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4922 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4923 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4925 (ClassClass): Likewise.
4926 * include/jvm.h (StringClass): Use `class$' form.
4927 * prims.cc (ObjectClass): Removed.
4928 (_Jv_RunMain): Use `class$' form.
4929 (_Jv_AllocObject): Likewise.
4930 * jni.cc (ClassClass): Use `class$' form.
4931 (ThrowableClass): Likewise.
4932 (ObjectClass): Likewise.
4933 (MethodClass): Likewise.
4934 (ThreadGroupClass): Likewise.
4935 (NativeThreadClass): Likewise.
4936 * boehm.cc (ObjectClass): Removed.
4937 (ClassClass): Removed.
4938 (_Jv_MarkObj): Use `class$' form.
4939 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4942 2000-10-05 Warren Levy <warrenl@cygnus.com>
4944 * Makefile.am: Removed java/io/Replaceable.java and
4945 java/io/Resolvable.java.
4946 * Makefile.in: Rebuilt.
4947 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4949 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4951 (processResolution): Handle readResolve method via reflection with
4952 removal of Resolvable interface.
4953 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4954 method via reflection with removal of Replaceable interface.
4955 * java/io/Replaceable.java: Removed.
4956 * java/io/Resolvable.java: Removed.
4957 * java/security/Key.java (serialVersionUID): New field.
4958 * java/security/Provider.java (serialVersionUID): New field.
4959 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4961 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4963 * java/sql/DataTruncation.java (serialVersionUID): New field.
4964 * java/sql/SQLException.java (serialVersionUID): New field.
4965 * java/sql/SQLWarning.java (serialVersionUID): New field.
4966 * java/util/Date.java (serialVersionUID): New field.
4967 (millis): Made transient.
4968 (readObject): New method.
4969 (writeObject): New method.
4971 2000-10-05 Tom Tromey <tromey@cygnus.com>
4973 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4975 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4977 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4978 (JvRunMain): Set _Jv_argv and _Jv_argc.
4979 * java/awt/Component.java: Minor fixes.
4980 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4981 * java/awt/Toolkit.java (systemEventQueue): Removed.
4982 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4983 * java/awt/Window.java (getToolkit): Don't call super.
4984 * java/awt/image/BufferedImage.java: Fix definite assignment errors.
4985 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4986 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4987 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4988 * gnu/awt/gtk/GtkFramePeer.java: New file.
4989 * gnu/awt/gtk/GtkMainThread.java: New file.
4990 * gnu/awt/gtk/GtkToolkit.java: New file.
4991 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4992 * gnu/awt/gtk/gtkcommon.cc: New file.
4993 * gnu/awt/gtk/gtkcommon.h: New file.
4994 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4995 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4996 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4997 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4998 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4999 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
5001 2000-09-30 Tom Tromey <tromey@cygnus.com>
5003 * posix-threads.cc (_Jv_CondWait): Check to see if we are
5004 interrupted before modifying the cv's wait set.
5007 2000-09-30 Hans Boehm <boehm@acm.org>
5008 Bryce McKinlay <bryce@albatross.co.nz>
5010 Implement bitmap descriptor based marking for Boehm GC.
5012 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
5013 * configure: Rebuilt.
5014 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
5015 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
5016 method get_finalizer().
5017 (struct _Jv_ArrayVTable): Ditto. Declare method array with
5018 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
5019 (_Jv_AllocObj): Add new jclass parameter.
5020 (_Jv_AllocArray): Ditto.
5021 (_Jv_BuildGCDescr): New prototype.
5022 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
5023 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
5024 get_finalizer() instead of direct finalizer vtable offset.
5025 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
5026 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
5027 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
5028 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
5029 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
5030 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
5031 (_Jv_DetermineVTableIndex): Ditto.
5032 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
5033 calculations to account for new gc_descr field.
5034 * boehm.cc: #include gc_gcj.h.
5035 (obj_kind_x, obj_free_list): `#if 0'-ed away.
5036 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
5037 New commentary from HB. Mark the classes vtable.
5038 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
5039 (GC_DEFAULT_DESCR): New #define.
5040 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
5041 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
5042 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
5043 scan conservativly if size is less than min_heap_addr. Set vtable
5044 pointer of new object before returning.
5045 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
5046 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
5047 allocation for obj_kind_x.
5048 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
5049 (_Jv_AllocObj): Set vtable on returned object.
5050 (_Jv_AllocArray): Ditto.
5051 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
5052 (_Jv_NewPrimArray): Ditto.
5053 (_Jv_AllocObj): Declare as a friend.
5054 (_Jv_AllocArray): Ditto.
5055 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
5056 from &ObjectClass into new array class. Remove offset-by-one
5057 adjustments from `method' size calculations to account for gc_descr
5060 2000-09-26 Tom Tromey <tromey@cygnus.com>
5062 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
5063 `remove', not `add'.
5065 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5067 * java/lang/natSystem.cc (file_encoding): Added return statement.
5069 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5071 * Makefile.am: Re-work shell commands that exceeded command-line
5073 * Makefile.in: Rebuilt.
5075 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
5077 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
5078 * java/lang/natDouble.cc: Likewise.
5079 * java/lang/reflect/natMethod.cc: Likewise.
5080 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
5082 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
5084 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
5086 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
5087 * acinclude.m4: Arrange for automake to not bring in a new
5088 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
5089 * Makefile.am: Leave it up to automake to subst GCJ.
5090 * aclocal.m4, configure, Makefile.in: Rebuilt.
5092 2000-09-13 Tom Tromey <tromey@cygnus.com>
5094 * java/lang/reflect/natArray.cc (BooleanClass): New define.
5095 (get): Ensure Boolean class is initialized.
5096 * java/lang/reflect/natField.cc (BooleanClass): New define.
5097 (get): Ensure Boolean class is initialized.
5099 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
5101 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
5102 Initialize with anonymous class.
5103 (compareToIgnoreCase): New method.
5105 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
5106 (uncaughtException): Set had_uncaught_exception.
5107 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
5108 exit with error status if set.
5109 (_Jv_RunMain): Ditto.
5111 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
5113 * configure: Rebuilt with new ../libtool.m4.
5115 2000-09-11 Tom Tromey <tromey@cygnus.com>
5117 * java/lang/reflect/Field.java (toString): Don't rely on
5120 2000-09-08 Tom Tromey <tromey@cygnus.com>
5122 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
5123 default decoder use iconv.
5124 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
5125 Let default encoder use iconv.
5126 * configure: Rebuilt.
5127 * configure.in: Check for nl_langinfo and <langinfo.h>.
5128 * java/lang/natSystem.cc (file_encoding): New function.
5129 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
5131 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
5133 * acinclude.m4: Simplify the tests for CC and CXX.
5134 * aclocal.m4, configure: Rebuilt.
5136 * acinclude.m4: Include libtool macros from the source tree.
5137 * aclocal.m4, configure: Rebuilt.
5139 2000-09-08 Warren Levy <warrenl@cygnus.com>
5141 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
5142 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
5143 * java/io/File.java (writeObject): Added.
5144 (readObject): Added.
5145 (serialVersionUID): Added.
5146 * java/io/ObjectOutputStream.java (writeObject): Initialized
5147 fieldsAlreadyWritten before recursion rather than after.
5148 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
5149 * java/io/OptionalDataException.java (serialVersionUID): Added.
5150 (OptionalDataException): Made package private.
5151 * java/io/SyncFailedException.java (SyncFailedException): Removed
5152 default constructor to match spec.
5153 * java/lang/Boolean.java (serialVersionUID): Added.
5154 * java/lang/Byte.java (serialVersionUID): Added.
5155 * java/lang/Character.java (serialVersionUID): Added.
5156 * java/lang/Double.java (serialVersionUID): Added.
5157 * java/lang/Float.java (serialVersionUID): Added.
5158 * java/lang/Integer.java (serialVersionUID): Added.
5159 * java/lang/Long.java (serialVersionUID): Added.
5160 * java/lang/Number.java (serialVersionUID): Added.
5161 * java/lang/Short.java (serialVersionUID): Added.
5162 * java/lang/String.java (serialVersionUID): Added.
5163 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
5165 * java/lang/reflect/InvocationTargetException.java
5166 (serialVersionUID): Added.
5167 * java/net/URL.java (handler): Made transient.
5168 (hashCode): Added field for serialization, per spec. and use
5169 cached value if available.
5170 (serialVersionUID): Added.
5171 (URL): Initialize hashCode.
5172 (set): Adjust hashCode.
5173 (readObject): New Method to initialize the protocol handler when
5175 (writeObject): New method.
5176 * java/text/BreakIterator.java: Removed 'implements Serializable'.
5177 * java/text/Collator.java: Removed 'implements Serializable'.
5178 * java/util/GregorianCalendar.java (serialVersionUID): Added.
5179 * java/util/Properties.java (serialVersionUID): Added.
5180 * java/util/Random.java (serialVersionUID): Added.
5181 (seed): Made private.
5182 (nextNextGaussian): Made private.
5183 (haveNextNextGaussian): Made private.
5184 * java/util/Stack.java (serialVersionUID): Added.
5185 * java/util/TimeZone.java (serialVersionUID): Added.
5186 * java/util/Vector.java (serialVersionUID): Added.
5188 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
5190 * Makefile.am (Thread.h): Don't be friends with native threads
5192 * Makefile.in: Rebuilt.
5193 * java/lang/Thread.java (interrupt_flag): Make package-private.
5195 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
5197 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
5198 to avoid long long division.
5200 2000-09-06 Tom Tromey <tromey@cygnus.com>
5202 * java/lang/reflect/Constructor.java (toString): Use `getName' for
5204 * java/lang/reflect/Method.java (toString): Use `getName' for
5207 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
5208 `args' if method takes no parameters.
5210 Fix for PR java.lang/339:
5211 * java/lang/natPosixProcess.cc (fail): New function.
5212 (cleanup): New function.
5213 (startProcess): Use them. Create pipe so child can communicate
5214 exec failure back to parent.
5216 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5218 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
5220 (send): Undo last patch. Remove the label only.
5222 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
5224 * java/net/natInetAdress.cc: Ditto.
5226 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
5228 2000-09-05 Tom Tromey <tromey@cygnus.com>
5230 * doc/cni.sgml: Updated from master copy.
5232 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
5234 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
5236 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
5238 * java/lang/fdlibm.h: #undef __P if previously defined.
5239 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
5240 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
5244 2000-09-04 Tom Tromey <tromey@cygnus.com>
5246 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
5249 2000-09-04 Anthony Green <green@redhat.com>
5251 Fix for PR java.io/203:
5252 * java/io/File.java (createTempFile): Obey directory argument.
5253 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
5254 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
5255 variable to set java.io.tmpdir on non-WIN32 systems.
5257 2000-09-04 Anthony Green <green@redhat.com>
5259 * java/io/File.java (deleteOnExit): New method.
5260 * gnu/gcj/runtime/FileDeleter.java: New class.
5261 * java/lang/natRuntime.cc (exit): Call
5262 FileDeleter.deleteOnExitNow()
5263 * Makefile.am: Add FileDeleter.java.
5264 * Makefile.in: Rebuilt.
5266 2000-09-02 Tom Tromey <tromey@cygnus.com>
5268 * Makefile.in: Rebuilt.
5269 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
5270 environment variable.
5272 2000-09-01 Andrew Haley <aph@redhat.com>
5274 * java/io/StreamTokenizer.java: Don't throw a
5275 NumberFormatException if a field is numeric as far as the
5276 StreamTokenizer is concerned but not as far as Double.valueOf() is
5277 concerned: return a zero instead.
5279 2000-08-30 Tom Tromey <tromey@cygnus.com>
5281 * Makefile.in: Rebuilt.
5282 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
5284 2000-08-28 Tom Tromey <tromey@cygnus.com>
5286 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
5287 gnu/gcj/awt/ComponentDataBlitOp.java,
5288 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
5289 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
5290 java/awt/color/ICC_ColorSpace.java,
5291 java/awt/color/ICC_Profile.java,
5292 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
5293 java/awt/image/ComponentColorModel.java,
5294 java/awt/image/ComponentSampleModel.java,
5295 java/awt/image/DataBuffer.java,
5296 java/awt/image/DataBufferByte.java,
5297 java/awt/image/DataBufferInt.java,
5298 java/awt/image/DataBufferUShort.java,
5299 java/awt/image/DirectColorModel.java,
5300 java/awt/image/IndexColorModel.java,
5301 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
5302 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
5303 java/awt/image/SinglePixelPackedSampleModel.java,
5304 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
5305 Removed Latin-1 copyright symbols.
5306 * java/util/zip/ZipFile.java: Indentation fixes.
5308 2000-08-27 Mark Wielaard <mark@klomp.org>
5310 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
5311 constructor, close can delete the file, finalize calls close.
5312 * java/util/jar/JarFile.java: Constructor that takes mode now
5315 2000-08-27 Anthony Green <green@redhat.com>
5317 * java/util/ArrayList.java, java/util/Timer.java,
5318 java/util/LinkedList.java, java/util/TimerTask.java,
5319 java/util/HashMap.java, java/util/AbstractMap.java,
5320 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
5321 java/util/SortedSet.java: Imported from GNU Classpath.
5322 * Makefile.in: Rebuilt.
5323 * Makefile.am: Added new files.
5325 2000-08-26 Anthony Green <green@redhat.com>
5327 * Makefile.in: Rebuilt.
5328 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
5331 * prims.cc: Include ClassLoader.h.
5332 (_Jv_RunMain): When executing jar files, classpath must be the jar
5333 file only. Lose our reference to the system ClassLoader in order
5334 to get a new one with the correct classpath.
5335 * java/lang/natSystem.cc (init_properties): When executing a jar
5336 file, only use the jar file for java.class.path.
5338 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
5339 for bytecode archives.
5341 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
5342 exists, but not Main-Class.
5344 2000-08-23 Mark Wielaard <mark@klomp.org>
5346 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
5347 return -1 when fill() has no more data for the Inflater.
5349 2000-08-23 Mark Wielaard <mark@klomp.org>
5351 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
5352 write(String) already does.
5354 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
5356 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
5357 to `alive_flag', call `init'.
5358 (init): New native method.
5359 * gnu/gcj/jni/natNativeThread.cc (init): New native method
5362 2000-08-21 Mark Wielaard <mark@klomp.org>
5364 * Makefile.in: Rebuilt.
5365 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
5367 (java/lang/reflect/Field.h): Likewise.
5368 (java/lang/reflect/Method.h): Likewise.
5369 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
5372 2000-08-21 Tom Tromey <tromey@cygnus.com>
5374 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
5377 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
5379 * java/lang/natSystem.cc (init_properties): Change sourceware
5380 reference to sources.redhat.com.
5382 * include/java-props.h: Add _Jv_Jar_Class_Path.
5383 * prims.cc: Ditto. Set it from `gij -jar file' option.
5385 * java/lang/natSystem.cc (init_properties): Set java.class.path
5387 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
5389 * java/util/PropertyPermission.java: Import from GNU Classpath.
5390 * Makefile.in: Rebuilt.
5391 * Makefile.am: Add java/util/PropertyPermission.java.
5392 * java/lang/System.java: Add setProperty method.
5394 * gij.cc (main): Add -jar option to execute jar files.
5395 (help): Describe -jar option.
5396 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
5397 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
5398 * gnu/gcj/runtime/FirstThread.java (main): New method.
5400 * java/util/jar/Attributes.java: Correct comment spelling.
5402 2000-08-20 Mark Wielaard <mark@klomp.org>
5404 * java/util/zip/Adler32.java: Make private variables really private
5405 * java/util/zip/CRC32.java: Make private variables really private
5406 * java/util/zip/CheckedInputStream.java: skip() could skip to much
5408 * java/util/zip/InflaterInputStream.java: skip() could skip to
5410 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
5411 * java/util/zip/ZipFile.java: size() new 1.2 method
5412 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
5413 ZipEntry. since 1.2 available() always returns just 1 or 0 when
5416 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
5418 * java/util/jar/JarFile.java: Don't call
5419 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
5422 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
5424 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
5425 Read the entire contents of the class file, not just what is
5428 * java/net/JarURLConnection.java: getEntry doesn't take any
5429 arguments. Return null if element is null.
5431 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
5432 size from the archive, not the inflated size.
5434 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
5435 java.util.zip.ZipFile.getEntry.
5437 * gij.cc (help): Change sourceware reference to
5440 2000-08-19 Tom Tromey <tromey@cygnus.com>
5442 * java/util/zip/ZipInputStream.java (createZipEntry):
5445 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
5447 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
5448 java/util/jar/JarException.java, java/util/jar/JarFile.java,
5449 java/util/jar/JarInputStream.java,
5450 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
5451 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
5452 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
5453 java/security/cert/CRL.java, java/security/cert/CRLException.java,
5454 java/security/cert/Certificate.java,
5455 java/security/cert/CertificateEncodingException.java,
5456 java/security/cert/CertificateException.java,
5457 java/security/cert/CertificateExpiredException.java,
5458 java/security/cert/CertificateFactory.java,
5459 java/security/cert/CertificateFactorySpi.java,
5460 java/security/cert/CertificateNotYetValidException.java,
5461 java/security/cert/CertificateParsingException.java,
5462 java/security/cert/X509CRL.java,
5463 java/security/cert/X509CRLEntry.java,
5464 java/security/cert/X509Certificate.java,
5465 java/security/cert/X509Extension.java: Imported from Classpath.
5466 * java/util/Hashtable.java: Imported from Classpath.
5468 * java/util/zip/ZipInputStream.java: Create stub for
5471 * gcj/javaprims.h: Updated class list.
5473 * Makefile.in, gcj/Makefile.in: Rebuilt.
5474 * Makefile.am (ordinary_java_source_files): Add these new classes.
5476 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5478 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
5479 * gnu/gcj/awt/GLightweightPeer.java: New file.
5480 * java/awt/BorderLayout.java: Implemented all methods.
5481 * java/awt/Button.java (actionListener, actionCommand): Renamed
5482 and modifier change.
5483 (addNotify): Call super.
5484 (dispatchEventImpl): New method.
5485 (getListeners): New method.
5486 (label): Made package-private, not private.
5487 * java/awt/Canvas.java: Implemented class body.
5488 * java/awt/Color.java (brighter): New method.
5489 (darker): New method.
5490 (hashCode): New method.
5491 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
5492 (getGraphicsConfiguration): Delegate to
5493 getGraphicsConfigurationImpl().
5494 (getGraphicsConfigurationImpl): New method.
5495 (getToolkit): Only return value from peer if not null.
5496 (isDisplayable): Check with parent.
5497 (isShowing): No parent implies not showing.
5498 (getForeground): Check parent property if local is null.
5499 (getBackground): Likewise.
5500 (getFont): Likewise.
5501 (setForeground): Inform peer.
5502 (setBackground): Likewise
5503 (setLocale): Invalidate component.
5504 (getColorModel): Implemented.
5505 (setLocation): Invalidate, or ignore if no change.
5506 (setSize): Invalidate, or ignore if no change.
5507 (setBounds): Invalidate, or ignore if no change.
5508 (isOpaque): By default, heavyweight implies opaque.
5509 (isLightweight): Implemented.
5510 (getMaximumSize): Implemented.
5511 (doLayout): Implemented, NOP.
5512 (validate): Implemented, NOP.
5513 (invalidate): Only propagate to parent if parent was valid.
5514 (getGraphics): Implemented.
5515 (getFontMetrics): Implemented.
5516 (update): Implemented.
5517 (paintAll): Implemented.
5518 (repaint): Implemented all repaint methods.
5519 (print): Implemented.
5520 (printAll): Implemented.
5521 (createImage): Implemented.
5522 (dispatchEvent): Give the peer a chance to handle the event.
5523 (dispatchEventImpl): Dispatch paint events.
5524 (enableEvents): Lightweights enable events on parent component.
5525 (coalesceEvents): Coalesce paint events, and select event type
5527 (coalescePaintEvents): New method.
5528 (processEvent): Fix unfortunate ordering of statements, and call
5529 correct method for MOUSE_CLICKED.
5530 (processPaintEvent): New method.
5531 (addNotify): Allow container to notify children before event
5532 mask is set in peer.
5533 (addNotifyContainerChildren): New method.
5534 (removeNotify): Visibility should not change on removeNotify.
5535 (paramString): Implemented.
5536 (list): Implemented two of the list methods.
5537 * Container (myInsets): Removed, insets are managed by peer.
5538 (getInsets): Query peer.
5539 (addImpl): Fix reparenting, enable events for lightweights,
5540 initialize component array.
5541 (validate): Call doLayout in validateTree() instead.
5542 (validateTree): Do nothing if already valid. Call beginValidate(),
5543 endValidate() on peer. Call validateTree() instead of validate()
5544 for children that are containers. Mark valid after validation of
5546 (setFont): Partial implementation.
5547 (paint): Implemented.
5548 (visitChildren): New method.
5549 (visitChild): New method.
5550 (update): Implemented.
5551 (print): Implemented.
5552 (paintComponents): Implemented.
5553 (printComponents): Consider translation and clipping.
5554 (getComponentAt): Ignore invisible children. Return this if no
5556 (addNotify): Call super.
5557 (addNotifyContainerChildren): New method.
5558 (paramString): Implemented.
5559 (list): Implemented.
5560 * java/awt/EventQueue (invokeAndWait): Get system event queue the
5562 (invokeLater): Likewise.
5563 (isDispatchThread): Likewise.
5564 * java/awt/FontMetrics (getLeading): Formula change.
5565 (getDescent): Consider leading also.
5566 (getMaxAscent): Default to getAscent().
5567 (getMaxDescent): Default to getDescent.
5568 (getMaxAdvance): Return value signifying unknown.
5569 (charWidth): Both methods implemented.
5570 (charsWidth): Implemented.
5571 (bytesWidth): Implemented.
5572 (getWidths): Implemented.
5573 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
5575 (Frame): Rearragend constuctor chaining to disallow null being
5576 passed as a graphics configuration.
5577 (getTitle): Return empty string if null.
5579 (getIconImage): New method.
5580 (setIconImage): New method.
5581 (finalize): New method.
5582 (setMenuBar): Notify peer.
5583 (isResizable): New method.
5584 (setResizable): New method.
5585 (getState): New method.
5587 (remove): Implemented.
5588 (removeNotify): New method.
5589 (getFrames): New method.
5590 * java/awt/Graphics.java: Implemented body of class.
5591 * java/awt/Graphics2D.java: New file.
5592 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
5593 * java/awt/Image.java: Implemented body of class.
5594 * java/awt/Panel.java (Panel): Call correct super constructor.
5595 (addNotify): Implemented.
5596 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
5597 * java/awt/RenderingHints.java: New file.
5598 * java/awt/Toolkit.java (createComponent): Implemented.
5599 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
5600 * java/awt/Window.java (Window): Two new constructors. Reordered
5601 constructor chaining.
5602 (getGraphicsConfigurationImpl): New method.
5603 (finalize): Call super.
5604 (addNotify): Call super.
5605 (pack): Do layout stuff.
5606 (show): Ensure that peer exists and that component is valid.
5607 (dispose): Dispose owned children.
5608 (getOwner): Simplify code, casting null pointers is valid.
5609 (getGraphicsConfiguration): Ask peer if local value is null.
5610 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
5612 * java/awt/image/BufferedImage.java: New file.
5613 * java/awt/image/RasterOp.java: New file.
5614 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
5615 More powerful replacement for getColorModel().
5616 (getColorModel) Removed.
5617 (setEventMask) New method.
5618 * Makefile.am: Added new files.
5619 * Makefile.in: Rebuilt.
5621 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
5623 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
5624 (finit_leg_name): New global.
5625 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5626 `$finit$'. This is a backward compatibility hack.
5627 (java::lang::Class::_getMethods): Likewise.
5629 2000-08-15 Andrew Haley <aph@cygnus.com>
5631 * include/jvm.h (_Jv_HashCode): New hash code.
5633 2000-08-15 Tom Tromey <tromey@cygnus.com>
5635 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5637 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
5639 * THANKS: More thanks.
5641 2000-08-10 Tom Tromey <tromey@cygnus.com>
5643 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5645 (connect): Likewise.
5647 (getOption): Likewise.
5648 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5649 case when errno not set.
5652 (receive): Likewise.
5653 (mcastGrp): Likewise.
5654 (setOption): Likewise.
5655 (getOption): Likewise.
5657 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
5658 John Stracke <francis@ecal.com>
5660 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5661 (connect): Don't falsely claim HTTP/1.1 compliance. Call
5663 (disconnect): Don't unset connected flag.
5664 (getHeaderField (String)): Call connect() if not connected.
5665 (getHeaderField (int)): Ditto.
5666 (getHeaderFieldKey): Ditto.
5667 (getHttpHeaders): Don't call connect().
5668 * java/net/HttpURLConnection.java (instanceFollowRedirects,
5669 gotResponseVals): New fields.
5670 (getResponseCode): Call getResponseVals() conditionally.
5671 (getResponseMessage): Ditto.
5672 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5674 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
5676 * Makefile.am: Move beans and applet classes to awt_java_source_files.
5677 * Makefile.in: Rebuilt.
5678 * java/awt/Color.java (getTransparency): New method.
5679 * java/awt/Component.java: Various updates.
5680 * java/awt/Container.java (removeNotify): Call super.removeNotify()
5681 after dealing with children.
5682 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5683 * java/awt/Window.java: Various new methods and updates.
5684 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5686 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5687 * java/awt/event/WindowEvent.java (paramString): Ditto.
5688 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5690 * java/awt/geom/Point2D.java (clone): Ditto.
5691 * java/awt/geom/RectangularShape.java (clone): Ditto.
5692 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5693 isAlphaPremultiplied): Make package-private, not private.
5695 2000-08-08 Tom Tromey <tromey@cygnus.com>
5697 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5698 surrogate characters.
5699 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5701 (write): Correct handling of surrogate characters.
5703 2000-08-07 Tom Tromey <tromey@cygnus.com>
5705 * java/lang/reflect/Method.java (hashCode): Use getName().
5706 (toString): Likewise.
5707 * java/lang/reflect/natMethod.cc (getType): Initialize
5710 * java/lang/reflect/Method.java (toString): Use Class.getName, not
5712 * java/lang/reflect/Field.java (toString): Correct formatting.
5715 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5717 (receive): Streamlined.
5719 2000-08-05 Tom Tromey <tromey@cygnus.com>
5721 * java/io/PrintWriter.java: Merged comments from Classpath.
5722 (printlnUnsynchronized): Removed.
5723 (println()): Print the separator.
5724 (println): Call println(), not printlnUnsynchronized.
5725 (out): Now protected, to match spec.
5727 2000-08-04 Tom Tromey <tromey@cygnus.com>
5729 * java/io/StreamTokenizer.java (TT_NONE): Now private.
5730 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5733 2000-08-03 Warren Levy <warrenl@cygnus.com>
5735 * java/io/ObjectInputStream.java (readFields): Turn off
5736 readDataFromBlock while reading via GetField.
5737 (GetField$1.get(String, Object)): Pass Class of default value to
5739 (getField): Allow for null default values.
5741 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5742 (PutField$1.put): Fixed calls of checkType in most of the put
5743 methods to pass the correct parameter.
5744 (PutField$1.put(String, Object)): Allow for null value arg.
5745 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5748 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5749 typo in spec'ed field name.
5750 (getSerialPersistentFields): Changed spelling of method to match
5751 the correct spelling of the spec'ed field name.
5753 2000-08-03 Tom Tromey <tromey@cygnus.com>
5755 * Makefile.in: Rebuilt.
5756 * Makefile.am (awt_java_source_files): Added new files.
5758 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5760 * Makefile.am: Add new AWT stubs.
5761 * java/awt/Canvas.java: New placeholder class.
5762 * java/awt/Checkbox.java: Ditto.
5763 * java/awt/CheckboxMenuItem.java: Ditto.
5764 * java/awt/Choice.java: Ditto.
5765 * java/awt/Dialog.java: Ditto.
5766 * java/awt/FileDialog.java: Ditto.
5767 * java/awt/List.java: Ditto.
5768 * java/awt/ScrollPane.java: Ditto.
5769 * java/awt/TextField.java: Ditto.
5770 * java/awt/datatransfer/Clipboard.java: Ditto.
5771 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5772 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5773 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5774 Some commented out. Partially implemented.
5775 * java/awt/natToolkit.cc: Removed file.
5777 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5779 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5780 Fixes "make -j" builds.
5781 * Makefile.in: Rebuild.
5783 2000-08-02 Tom Tromey <tromey@cygnus.com>
5785 * Makefile.in: Rebuilt.
5786 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5787 * java/net/natPlainSocketImpl.cc: Include posix.h.
5788 (accept): Use _Jv_select.
5789 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5790 (receive): Use _Jv_select.
5791 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5792 (available): Use _Jv_select.
5793 * java/lang/natSystem.cc: Include posix.h.
5794 (currentTimeMillis): Use _Jv_gettimeofday.
5795 * include/posix.h: New file.
5796 * posix.cc: New file.
5798 * scripts/encodings.pl: New file.
5799 * Makefile.in: Rebuilt.
5800 * Makefile.am (convert_source_files): Added IOConverter.java.
5801 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5803 (getDefaultDecodingClass): Canonicalize default encoding name.
5804 (getEncoder): Likewise.
5805 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5807 (getDefaultDecodingClass): Canonicalize default encoding name.
5808 (getDecoder): Likewise.
5809 * gnu/gcj/convert/IOConverter.java: New file.
5811 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5813 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5814 to match C declaration in ffi.h.
5815 * Makefile.am: Add java/awt/Button.java.
5816 * Makefile.in: Rebuilt.
5818 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5820 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5821 cast of the second argument to `ffi_raw_call' changed to match
5824 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5826 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5827 argument to `ffi_raw_call' changed to match prototype.
5829 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5831 * java/awt/Component.java (toString): Implemented.
5832 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5833 dispatchEvent() to dispatch the event.
5834 (removeImpl): Ditto.
5836 2000-07-30 Anthony Green <green@redhat.com>
5838 * java/awt/Component.java: Add treeLock object.
5839 (getTreeLock): Implement.
5840 (isShowing): Implement.
5842 2000-07-30 Tom Tromey <tromey@cygnus.com>
5844 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5846 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5848 * java/awt/Window.java (addNotify): Wrote.
5849 (addWindowListener): Wrote.
5851 (getWarningString): Wrote.
5852 (processEvent): Wrote.
5853 (processWindowEvent): Wrote.
5854 (removeWindowListener): Wrote.
5855 (show): Call validate(), setVisible().
5859 * java/awt/Toolkit.java (createWindow): Declare.
5861 * java/awt/Frame.java (addNotify): Use getToolkit to find
5864 * java/awt/Component.java (invalidate): Wrote.
5866 (getToolkit): Wrote.
5868 * java/awt/Container.java (addContainerListener): Removed
5870 (removeContainerListener): Likewise.
5872 (add(Component)): Use it.
5873 (add(String,Component)): Likewise.
5874 (add(Component,int)): Likewise.
5875 (add(Component,Object)): Likewise.
5876 (add(Component,Object,int)): Likewise.
5878 (getAlignmentX): Wrote.
5879 (getAlignmentY): Wrote.
5880 (getComponentAt): Wrote.
5881 (getMaximumSize): Wrote.
5882 (invalidate): Wrote.
5883 (list(PrintStream,int)): Wrote.
5884 (list(PrintWriter,int)): Wrote.
5885 (getMinimumSize): Wrote.
5886 (getPreferredSize): Wrote.
5887 (printComponents): Wrote.
5888 (processContainerEvent): Look at containerListener, not
5890 (remove): Added event processing and peer destruction.
5891 (removeAll): Use remove.
5892 (removeNotify): Wrote.
5894 (validateTree): Wrote.
5896 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5897 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5898 * java/awt/Container.java (addNotify): Don't create Container
5900 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5902 2000-07-30 Tom Tromey <tromey@cygnus.com>
5904 * java/awt/Container.java (remove(int)): Wrote.
5905 (remove(Component)): Wrote.
5906 (add(Component)): Wrote.
5907 (add(Component,int)): Wrote.
5909 (addNotify): Set our own peer.
5910 * java/awt/Scrollbar.java (listeners): Changed type.
5911 (Scrollbar): Don't initialize listeners.
5913 (setValue): Call setValues.
5914 (setMinimum): Likewise.
5915 (setMaxPriority): Likewise.
5916 (setVisibleAmount): Likewise.
5918 (setUnitIncrement): Forward to peer.
5919 (setLineIncrement): Call setUnitIncrement.
5920 (setPageIncrement): Call setBlockIncrement.
5921 (setBlockIncrement): Forward to peer.
5922 (addAdjustmentListener): Rewrote.
5923 (removeAdjustmentListener): Rewrote.
5924 (processAdjustmentEvent): Rewrote.
5925 (paramString): Wrote.
5926 * Makefile.in: Rebuilt.
5927 * Makefile.am (awt_java_source_files): Added Button.java.
5928 * java/awt/Button.java: New file.
5929 * java/awt/Toolkit.java (createLabel): Declare.
5930 (createButton): Likewise.
5931 (createScrollbar): Likewise.
5932 (createContainer): Likewise.
5933 * java/awt/Label.java (addNotify): Wrote.
5934 (setAlignment): Call setAlignment in the peer.
5935 (setText): Call setText in the peer.
5937 2000-07-28 Warren Levy <warrenl@cygnus.com>
5939 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5940 NotSerializableException with just the class name.
5942 2000-07-26 Andrew Haley <aph@cygnus.com>
5944 * interpret.cc (continue1): Insert missing break into switch.
5946 2000-07-28 Warren Levy <warrenl@cygnus.com>
5948 * java/io/ObjectStreamException.java: Made constructors protected.
5950 2000-07-27 Tom Tromey <tromey@cygnus.com>
5952 * java/io/OutputStreamWriter.java (close): Only flush if not
5955 2000-07-27 Warren Levy <warrenl@cygnus.com>
5957 * mauve-libgcj: Activated serialization tests.
5958 * gcj/field.h (getModifiers): Mask off unknown flags.
5959 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5960 spurious bits don't cause discrepancies.
5961 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5962 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5963 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5964 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5965 * java/lang/Throwable.java (serialVersionUID): New field.
5966 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5967 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5969 * java/lang/reflect/natMethod.cc: Ditto.
5970 * java/security/Key.java (serialVersionUID): Removed field for now.
5971 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5972 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5974 2000-07-22 Tom Tromey <tromey@cygnus.com>
5976 * java/awt/geom/RectangularShape.java (getPathIterator):
5979 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5981 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5982 stub libjava/java/awt/ColorModel.java which was located in the
5984 * libjava/java/awt/image/ComponentColorModel.java: New file.
5985 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5986 * libjava/java/awt/image/DataBuffer.java: New file.
5987 * libjava/java/awt/image/DataBufferByte.java: New file.
5988 * libjava/java/awt/image/DataBufferInt.java: New file.
5989 * libjava/java/awt/image/DataBufferUShort.java: New file.
5990 * libjava/java/awt/image/DirectColorModel.java: New file.
5991 * libjava/java/awt/image/PackedColorModel.java: New file.
5992 * libjava/java/awt/image/Raster.java: New file.
5993 * libjava/java/awt/image/SampleModel.java: New file.
5994 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5996 * libjava/java/awt/image/IndexColorModel.java: New file.
5997 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5998 java.awt.ColorModel stub.
6000 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
6001 * gnu/gcj/util/Buffers.java: New file, utility class.
6003 * libjava/Makefile.am: Updated to include new files.
6004 * libjava/Makefile.in: Rebuilt.
6006 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
6008 * java/io/StreamTokenizer.java: Merged with classpath.
6010 2000-07-20 Tom Tromey <tromey@cygnus.com>
6012 * Makefile.in: Rebuilt.
6013 * Makefile.am (awt_java_source_files): Updated for new files.
6014 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
6015 * java/awt/Label.java: New file.
6016 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
6017 (createIntersection, createUnion, getBounds2D): New methods.
6018 * java/awt/Scrollbar.java: New file.
6019 * java/awt/Shape.java: Updated to 1.2.
6020 * java/awt/geom/AffineTransform.java: New file.
6021 * java/awt/geom/Ellipse2D.java: New file.
6022 * java/awt/geom/NoninvertibleTransformException.java: New file.
6023 * java/awt/geom/PathIterator.java: New file.
6024 * java/awt/geom/Rectangle2D.java: New file.
6025 * java/awt/geom/RectangularShape.java: New file.
6026 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
6027 * java/awt/geom/IllegalPathStateException.java: New file.
6029 * scripts/showval.java: New file.
6031 * scripts/classes.pl (scan): Print inner classes properly.
6032 * gcj/javaprims.h: Updated class list.
6034 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
6035 initialize String fields for interpreted classes. Fixes bug
6036 reported by Hans Boehm.
6038 * java/io/File.java (getParentFile): New method, from Classpath
6039 via Oskar Liljeblad.
6041 * java/util/Vector.java (remove(Object)): Implemented.
6043 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
6045 * java/lang/natThrowable.cc (fillInStackTrace): Check for
6046 zero return from backtrace().
6048 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
6050 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
6052 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
6053 before calling notifyAll().
6055 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
6057 Add missing files from last check-in:
6058 * java/awt/image/ImageConsumer.java: New file.
6059 * java/awt/image/ImageProducer.java: New file.
6060 * java/awt/image/ImageObserver.java: New file.
6062 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6064 Merged implementation of java.applet from classpath:
6065 * java/applet/Applet.java: New file.
6066 * java/applet/AppletContext.java: New file.
6067 * java/applet/AppletStub.java: New file.
6068 * java/applet/AudioClip.java: New file.
6070 * Makefile.am: Added new java.applet classes.
6071 * Makefile.in: Rebuilt.
6073 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
6076 * java/util/ResourceBundle.java (getLocale): stub.
6077 * Makefile.am: Added new AWT classes.
6078 * Makefile.in: Rebuilt.
6079 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
6080 constructors. Fix toString() and paramString().
6081 * java/awt/AWTEventMulticaster.java: New class. Implemented.
6082 * java/awt/CheckboxGroup.java: New class.
6083 * java/awt/ColorModel.java: New class.
6084 * java/awt/Component.java: Added stubs for most methods. Implemented
6086 * java/awt/Container.java: ditto.
6087 * java/awt/ComponentOrientation.java: New class. Partly implemented.
6088 * java/awt/Cursor.java: ditto.
6089 * java/awt/Event.java: Fix paramString().
6090 * java/awt/EventQueue.java: New class. Implemented.
6091 * java/awt/Font.java: Added additional stub methods. Implemented
6093 * java/awt/FontMetrics.java: New class. Stubbed.
6094 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
6096 * java/awt/Insets.java: New class. Implemented.
6097 * java/awt/Menu.java: Add new methods. Partially implemented.
6098 * java/awt/MenuItem.java: Add new methods and fields. Partially
6100 * java/awt/MenuShortcut.java: New class. Implemented.
6101 * java/awt/Panel.java: New class. Placeholder.
6102 * java/awt/PopupMenu.java: New class. Stubbed.
6103 * java/awt/Rectangle.java: New class. Implemented.
6104 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
6105 * java/awt/event/ActionEvent.java: Implement paramString().
6106 * java/awt/event/AdjustmentEvent.java: Implement paramString().
6107 * java/awt/event/ComponentEvent.java: Implement paramString().
6108 * java/awt/event/ContainerEvent.java: Implement paramString().
6109 * java/awt/event/FocusEvent.java: Implement paramString().
6110 * java/awt/event/HierarchyBoundsAdapter.java: New class.
6111 * java/awt/event/HierarchyBoundsListener.java: New class.
6112 * java/awt/event/HierarchyEvent.java: New class.
6113 * java/awt/event/HierarchyListener.java: New class.
6114 * java/awt/event/InputMethodEvent.java: Implement paramString().
6115 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
6116 exception if !catchExceptions.
6117 * java/awt/event/ItemEvent.java: Implement paramString().
6118 * java/awt/event/KeyEvent.java: Implement paramString().
6119 * java/awt/event/MouseEvent.java: Implement paramString().
6120 * java/awt/event/PaintEvent.java: Implement paramString().
6121 * java/awt/event/TextEvent.java: Implement paramString().
6122 * java/awt/event/WindowEvent.java: Implement paramString().
6124 AWT Peer interfaces:
6125 * java/awt/peer/ButtonPeer.java: New file.
6126 * java/awt/peer/ListPeer.java: New file.
6127 * java/awt/peer/CanvasPeer.java: New file.
6128 * java/awt/peer/MenuBarPeer.java: New file.
6129 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
6130 * java/awt/peer/MenuComponentPeer.java: New file.
6131 * java/awt/peer/CheckboxPeer.java: New file.
6132 * java/awt/peer/MenuItemPeer.java: New file.
6133 * java/awt/peer/ChoicePeer.java: New file.
6134 * java/awt/peer/MenuPeer.java: New file.
6135 * java/awt/peer/ComponentPeer.java: Implemented.
6136 * java/awt/peer/PanelPeer.java: New file.
6137 * java/awt/peer/ContainerPeer.java: Implemented.
6138 * java/awt/peer/PopupMenuPeer.java: New file.
6139 * java/awt/peer/DialogPeer.java: New file.
6140 * java/awt/peer/ScrollPanePeer.java: New file.
6141 * java/awt/peer/FileDialogPeer.java: New file.
6142 * java/awt/peer/ScrollbarPeer.java: New file.
6143 * java/awt/peer/FontPeer.java: New file.
6144 * java/awt/peer/TextAreaPeer.java: New file.
6145 * java/awt/peer/FramePeer.java: Implemented.
6146 * java/awt/peer/TextComponentPeer.java: New file.
6147 * java/awt/peer/LabelPeer.java: New file.
6148 * java/awt/peer/TextFieldPeer.java: New file.
6149 * java/awt/peer/LightweightPeer.java: New file.
6150 * java/awt/peer/WindowPeer.java: Implemented.
6152 2000-07-06 Tom Tromey <tromey@cygnus.com>
6154 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
6155 Initialize static final String fields.
6157 2000-07-03 Tom Tromey <tromey@cygnus.com>
6159 * java/io/PrintWriter.java (print): Call write(String), not
6160 print(String). See PR libgcj/277.
6161 (print(String)): Use write, not out.write.
6163 2000-06-30 Tom Tromey <tromey@cygnus.com>
6165 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
6167 2000-06-27 Andrew Haley <aph@cygnus.com>
6169 * java/io/File.java (createTempFile): Close the FileDescriptor
6170 used to create a temp file. Fixes some of PR 203.
6171 * java/io/natFileDescriptorPosix.cc (open): Call garbage
6172 collection if we run out of file handles.
6174 2000-06-28 Warren Levy <warrenl@cygnus.com>
6176 * gnu/java/security/provider/Gnu.java: New file.
6177 * gnu/java/security/provider/SHA.java: New file.
6178 * gnu/java/security/provider/SHA1PRNG.java: New file.
6179 * Makefile.am: Added the above files.
6180 * Makefile.in: Rebuilt.
6182 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
6184 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
6186 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
6187 (destroyed_flag): Removed.
6188 (isDestroyed, removeGroup, removeThread): Test for parent == null.
6189 (activeCount): Added spec note.
6191 2000-06-27 Warren Levy <warrenl@cygnus.com>
6193 * java/security/Principal.java: New file.
6194 * Makefile.am: Added Principal.java.
6195 * Makefile.in: Rebuilt.
6197 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
6199 * java/awt/event/MouseEvent.java: Fixed coordinate space
6202 2000-06-27 Tom Tromey <tromey@cygnus.com>
6204 * java/io/PushbackInputStream.java (read): If there are characters
6205 in the buffer, don't also call super.read().
6206 * java/io/PushbackReader.java (read): If there are characters in
6207 the buffer, don't also call super.read().
6209 * java/lang/Double.java (valueOf): Call parseDouble().
6211 2000-06-26 Warren Levy <warrenl@cygnus.com>
6213 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
6214 (newVal): Renamed to newValue.
6215 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
6216 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
6217 (revokeNow): Renamed to invalidateRefs.
6218 * java/io/OptionalDataException.java: Updated FIXME.
6219 (eof): New placeholder field.
6221 * java/io/WriteAbortedException.java (message): Made transient.
6222 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
6223 * java/lang/Throwable.java (stackTrace): Made transient.
6224 * java/net/InetAddress.java: Made Serializable.
6225 * java/security/KeyPair.java: Made Serializable.
6226 * java/security/Provider.java: Replaced with Classpath version that
6227 implements serialization and proper methods.
6228 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
6229 (limits): Renamed to choiceLimits.
6231 2000-06-24 Tom Tromey <tromey@cygnus.com>
6233 * java/lang/natDouble.cc (parseDouble): Renamed from
6235 * java/lang/Double.java (parseDouble): Renamed from
6236 doubleValueOf. Now public.
6238 2000-06-23 Andrew Haley <aph@cygnus.com>
6240 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
6241 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
6243 2000-06-23 Tom Tromey <tromey@cygnus.com>
6245 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
6246 * java/lang/natDouble.cc: Always include <alloca.h>.
6247 Fix for PR libgcj/267.
6249 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
6251 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
6252 comply with classpath VM spec.
6253 (add(Group)): Rename to addGroup().
6254 * java/lang/Thread.java (Thread): Use addThread().
6255 * java/lang/natThread.cc (finish_): Use removeThread().
6257 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
6259 * java/lang/ThreadGroup.java: Merged with classpath.
6260 * prims.cc (_Jv_RunMain): Don't use `main_group'.
6261 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
6263 * java/lang/Thread.java (Thread): Bootstrap initial thread from
6264 ThreadGroup.root if Thread.currentThread is null. Honour the
6265 ThreadGroup's max priority setting.
6267 2000-06-18 Tom Tromey <tromey@cygnus.com>
6269 * java/lang/natClass.cc (forName): Removed dead code. Initialize
6270 returned class. For PR gcj/260.
6272 2000-06-16 Tom Tromey <tromey@cygnus.com>
6274 Fix for PR libgcj/261:
6275 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
6277 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
6278 argument. (This is a patch from long ago that somehow went
6281 2000-06-15 Tom Tromey <tromey@cygnus.com>
6283 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
6287 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
6289 Fix for PR java.lang/258:
6290 * prims.cc (_Jv_PrimClass): Set state of primitive class to
6291 JV_STATE_DONE, to prevent accidental initialization.
6292 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
6293 _Jv_InterfaceAssignableFrom if target is an interface and source is an
6294 interface or an abstract class. Remove redundant initializeClass calls.
6295 Remove duplicate if_idt test.
6296 (_Jv_InterfaceAssignableFrom): New function.
6297 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
6299 2000-05-31 Tom Tromey <tromey@cygnus.com>
6301 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
6302 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
6303 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
6304 (NUM_OBJECT_METHODS): New define.
6305 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
6306 `array_vtable' parameter. Added assertion.
6307 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
6310 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
6312 * gcj/cni.h: Include <string.h>.
6313 * defineclass.cc: Include <alloca.h>.
6314 * interpret.cc: Ditto.
6315 * gij.cc: Include <stdlib.h>.
6317 2000-05-30 Tom Tromey <tromey@cygnus.com>
6319 * include/name-finder.h: Include <sys/wait.h>.
6320 (_Jv_name_finder::pid): Now of type `pid_t'.
6321 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
6322 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
6325 2000-05-24 Warren Levy <warrenl@cygnus.com>
6327 * java/io/ObjectOutputStream.java (writeObject): Use component type
6328 when writing arrays.
6331 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6333 Fix for PR libgcj/226:
6334 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
6335 since this is an installed header.
6337 Fix for PR libgcj/228:
6338 * java/util/zip/ZipFile (getInputStream): Create inflater with
6341 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
6342 with DataFormatException.
6344 2000-05-20 Tom Tromey <tromey@cygnus.com>
6346 * Makefile.in: Rebuilt.
6347 * Makefile.am (hack1): Removed.
6348 (awto_files): Likewise.
6349 (libgcjawt_la_SOURCES): Likewise.
6350 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6351 (libgcjawt_la_DEPENDENCIES): Likewise.
6352 (libgcjawt_la_LIBADD): Likewise.
6353 (libgcjawt_la_LDFLAGS): Likewise.
6354 (libgcjawt_la_LINK): Likewise.
6355 ($(awt_java_source_files:.java=.class)): Likewise.
6356 (libgcj.zip): Don't depend on AWT files.
6357 (MOSTLYCLEANFILES): Don't include AWT files.
6358 ($(awto_files)): Removed.
6359 (nat_headers): Removed AWT files.
6360 (cond_awt_java_source_files): Removed.
6361 (ordinary_java_source_files): Added awt_java_source_files.
6362 * libgcj.spec.in (*lib): Removed -lgcjawt.
6363 * configure: Rebuilt.
6364 * configure.in: Removed --enable-java-awt option.
6366 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
6368 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
6369 (ZipEntry): Copy the `name' field.
6370 (clone): Implement JDK1.2 method.
6371 (setCompressedSize): ditto.
6374 2000-05-19 Tom Tromey <tromey@cygnus.com>
6376 * java/io/BufferedWriter.java: Merged with Classpath.
6377 * java/io/BufferedOutputStream.java: Merged with Classpath.
6379 2000-05-16 Andrew Haley <aph@cygnus.com>
6381 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
6382 build_ia64_frame_state.
6383 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
6386 2000-05-15 Warren Levy <warrenl@cygnus.com>
6388 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
6389 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
6390 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
6391 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
6392 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
6393 * gnu/gcj/beans/editors/FontEditor.java: Removed.
6394 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
6395 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
6396 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
6397 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
6398 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
6399 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
6400 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
6401 * gnu/gcj/beans/editors/StringEditor.java: Removed.
6402 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
6403 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
6404 * gnu/gcj/io/NullOutputStream.java: Removed.
6405 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
6406 * gnu/gcj/lang/ArrayHelper.java: Removed.
6407 * gnu/gcj/lang/ClassHelper.java: Removed.
6408 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
6410 * gnu/java/beans/BeanInfoEmbryo.java: New file.
6411 * gnu/java/beans/EmptyBeanInfo.java: New file.
6412 * gnu/java/beans/ExplicitBeanInfo.java: New file.
6413 * gnu/java/beans/IntrospectionIncubator.java: New file.
6414 * gnu/java/beans/editors/ColorEditor.java: New file.
6415 * gnu/java/beans/editors/FontEditor.java: New file.
6416 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
6417 * gnu/java/beans/editors/NativeByteEditor.java: New file.
6418 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
6419 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
6420 * gnu/java/beans/editors/NativeIntEditor.java: New file.
6421 * gnu/java/beans/editors/NativeLongEditor.java: New file.
6422 * gnu/java/beans/editors/NativeShortEditor.java: New file.
6423 * gnu/java/beans/editors/StringEditor.java: New file.
6424 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
6425 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
6426 * gnu/java/io/NullOutputStream.java: New file.
6427 * gnu/java/io/ObjectIdentityWrapper.java: New file.
6428 * gnu/java/lang/ArrayHelper.java: New file.
6429 * gnu/java/lang/ClassHelper.java: New file.
6430 * gnu/java/lang/reflect/TypeSignature.java: New file.
6432 * Makefile.am: Updated for moving Classpath files from gnu/gcj
6433 namespace back to the original Classpath gnu/java namespace.
6434 * Makefile.in: Rebuilt.
6436 * java/beans/Beans.java: Namespace change.
6437 * java/beans/EventSetDescriptor.java: Namespace change.
6438 * java/beans/Introspector.java: Namespace change.
6439 * java/beans/PropertyEditorManager.java: Namespace change.
6440 * java/io/ObjectInputStream.java: Namespace change.
6441 * java/io/ObjectOutputStream.java: Namespace change.
6442 * java/io/ObjectStreamClass.java: Namespace change.
6443 * java/io/ObjectStreamField.java: Namespace change.
6445 2000-04-21 Warren Levy <warrenl@cygnus.com>
6447 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
6448 now that compiler patch is available.
6449 Removed unneeded System.loadLibrary.
6450 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
6451 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
6453 2000-04-19 Andrew Haley <aph@cygnus.com>
6455 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
6456 and target classes have been initialized.
6458 2000-04-19 Andrew Haley <aph@cygnus.com>
6460 * java/lang/String.java: implement Serializable, Comparable.
6461 (compareTo (Object)): New method.
6463 2000-04-19 Warren Levy <warrenl@cygnus.com>
6465 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
6466 instead of getField to retrieve non-public field.
6467 (getSerialPersistantFields): Ditto.
6469 2000-04-18 Warren Levy <warrenl@cygnus.com>
6471 * mauve-libgcj: Turned off object serialization tests temporarily
6472 due to compiler error.
6474 2000-04-17 Warren Levy <warrenl@cygnus.com>
6476 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
6477 to avoid build problem.
6479 * mauve-libgcj: Turned on object serialization tests.
6481 2000-04-17 Tom Tromey <tromey@cygnus.com>
6483 * libgcj.spec.in (*lib): Added -lgcjawt.
6485 2000-04-17 Andrew Haley <aph@cygnus.com>
6487 * Makefile.am: Add new files:
6488 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
6490 * Makefile.in: Rebuilt.
6492 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
6493 interface that has no implementations.
6494 Check for an attempt to assign an abstract class to an interface.
6496 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
6497 if we fail to find MessageDigest.getInstance ("SHA").
6499 * gnu/gcj/io/SimpleSHSStream.java: New file.
6500 * gnu/gcj/io/natSimpleSHSStream.java: New file.
6501 * gnu/gcj/io/shs.cc: New file.
6502 * gnu/gcj/io/shs.h: new file.
6504 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
6507 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
6508 punctuation from the classname of an array element.
6510 * gcj/javaprims.h: Add SimpleDigestStream.
6512 2000-04-17 Andrew Haley <aph@cygnus.com>
6514 * java/lang/natClass.cc (getPrivateField): Make recursive calls
6515 to getPrivateField for superclasses.
6517 2000-04-14 Andrew Haley <aph@cygnus.com>
6519 * Makefile.am: Add new files:
6520 java/io/ObjectOutputStream$PutField.h,
6521 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
6522 java/io/natObjectOutputStream.cc
6523 * Makefile.in: Rebuilt.
6524 * gcj/Makefile.in: Rebuilt.
6525 * include/Makefile.in: Rebuilt.
6526 * java/lang/Class.h (getPrivateField): New method.
6527 (getPrivateMethod): Ditto.
6528 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
6529 and java::io::ObjectStreamClass our friends.
6530 * java/lang/natClass.cc (getPrivateField): New method.
6531 (getPrivateMethod): Ditto.
6532 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
6533 * gcj/javaprims.h: Add serialization classes.
6534 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
6535 (setByteField): Ditto.
6536 (setCharField): Ditto.
6537 (setDoubleField): Ditto.
6538 (setFloatField): Ditto.
6539 (setIntField): Ditto.
6540 (setLongField): Ditto.
6541 (setShortField): Ditto.
6542 (setObjectField): Ditto.
6543 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
6545 (getByteField): Ditto.
6546 (getCharField): Ditto.
6547 (getDoubleField): Ditto.
6548 (getFloatField): Ditto.
6549 (getIntField): Ditto.
6550 (getLongField): Ditto.
6551 (getShortField): Ditto.
6552 (getObjectField): Ditto.
6553 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
6555 (getSerialPersistantFields): Ditto.
6556 (getDefinedSUID): Ditto.
6557 * java/io/natObjectOutputStream.cc: New file.
6558 * java/io/natObjectInputStream.cc: New file.
6560 2000-04-13 Warren Levy <warrenl@cygnus.com>
6562 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
6563 problems. Revert to previous version to reproduce and when fixed.
6565 2000-04-13 Warren Levy <warrenl@cygnus.com>
6567 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
6568 * gnu/gcj/io/NullOutputStream.java: New file.
6569 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
6570 * java/io/BlockDataException.java: New file.
6571 * java/io/Externalizable.java: New file.
6572 * java/io/InvalidClassException.java: New file.
6573 * java/io/InvalidObjectException.java: New file.
6574 * java/io/NotActiveException.java: New file.
6575 * java/io/NotSerializableException.java: New file.
6576 * java/io/ObjectInput.java: New file.
6577 * java/io/ObjectInputStream.java: New file.
6578 * java/io/ObjectInputValidation.java: New file.
6579 * java/io/ObjectOutput.java: New file.
6580 * java/io/ObjectOutputStream.java: New file.
6581 * java/io/ObjectStreamClass.java: New file.
6582 * java/io/ObjectStreamConstants.java: New file.
6583 * java/io/ObjectStreamField.java: New file.
6584 * java/io/Replaceable.java: New file.
6585 * java/io/Resolvable.java: New file.
6586 * java/io/SerializablePermission.java: New file.
6587 * java/io/WriteAbortedException.java: New file.
6588 * java/security/BasicPermission.java: New file.
6589 * java/security/DigestOutputStream.java: New file.
6590 * java/security/Guard.java: New file.
6591 * java/security/Permission.java: New file.
6592 * java/security/PermissionCollection.java: New file.
6593 * Makefile.am: Added above files.
6594 * Makefile.in: Rebuilt.
6596 * java/beans/Beans.java (instantiate): Activated serialization code.
6597 * java/lang/SecurityManager.java (checkPermission): New method.
6599 2000-04-12 Warren Levy <warrenl@cygnus.com>
6601 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
6602 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
6603 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
6604 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
6605 * gnu/gcj/beans/editors/ColorEditor.java: New file.
6606 * gnu/gcj/beans/editors/FontEditor.java: New file.
6607 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
6608 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
6609 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
6610 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
6611 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
6612 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
6613 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
6614 * gnu/gcj/beans/editors/StringEditor.java: New file.
6615 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
6616 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
6617 * gnu/gcj/lang/ArrayHelper.java: New file.
6618 * gnu/gcj/lang/ClassHelper.java: New file.
6619 * java/beans/BeanDescriptor.java: New file.
6620 * java/beans/BeanInfo.java: New file.
6621 * java/beans/Beans.java: New file.
6622 * java/beans/Customizer.java: New file.
6623 * java/beans/DesignMode.java: New file.
6624 * java/beans/EventSetDescriptor.java: New file.
6625 * java/beans/FeatureDescriptor.java: New file.
6626 * java/beans/IndexedPropertyDescriptor.java: New file.
6627 * java/beans/IntrospectionException.java: New file.
6628 * java/beans/Introspector.java: New file.
6629 * java/beans/MethodDescriptor.java: New file.
6630 * java/beans/ParameterDescriptor.java: New file.
6631 * java/beans/PropertyChangeEvent.java: New file.
6632 * java/beans/PropertyChangeListener.java: New file.
6633 * java/beans/PropertyChangeSupport.java: New file.
6634 * java/beans/PropertyDescriptor.java: New file.
6635 * java/beans/PropertyEditor.java: New file.
6636 * java/beans/PropertyEditorManager.java: New file.
6637 * java/beans/PropertyEditorSupport.java: New file.
6638 * java/beans/PropertyVetoException.java: New file.
6639 * java/beans/SimpleBeanInfo.java: New file.
6640 * java/beans/VetoableChangeListener.java: New file.
6641 * java/beans/VetoableChangeSupport.java: New file.
6642 * java/beans/Visibility.java: New file.
6643 * java/beans/beancontext/BeanContext.java: New file.
6644 * java/beans/beancontext/BeanContextChild.java: New file.
6645 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6646 * java/beans/beancontext/BeanContextChildSupport.java: New file.
6647 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6648 * java/beans/beancontext/BeanContextEvent.java: New file.
6649 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6650 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6651 * java/beans/beancontext/BeanContextProxy.java: New file.
6652 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6654 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6655 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6657 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6658 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6660 * java/beans/beancontext/BeanContextServices.java: New file.
6661 * java/beans/beancontext/BeanContextServicesListener.java: New file.
6662 * java/util/AbstractCollection.java: New file.
6663 * java/util/AbstractList.java: New file.
6664 * java/util/Arrays.java: New file.
6665 * Makefile.am: Added above files.
6666 * Makefile.in: Rebuilt.
6668 2000-04-11 Warren Levy <warrenl@cygnus.com>
6670 * java/awt/AWTError.java: New file.
6671 * java/awt/AWTEvent.java: New file.
6672 * java/awt/AWTException.java: New file.
6673 * java/awt/ActiveEvent.java: New file.
6674 * java/awt/Adjustable.java: New file.
6675 * java/awt/BorderLayout.java: New file.
6676 * java/awt/Color.java: New file.
6677 * java/awt/Component.java: New file.
6678 * java/awt/Container.java: New file.
6679 * java/awt/Dimension.java: New file.
6680 * java/awt/Event.java: New file.
6681 * java/awt/Font.java: New file.
6682 * java/awt/Frame.java: New file.
6683 * java/awt/Graphics.java: New file.
6684 * java/awt/IllegalComponentStateException.java: New file.
6685 * java/awt/Image.java: New file.
6686 * java/awt/ItemSelectable.java: New file.
6687 * java/awt/LayoutManager.java: New file.
6688 * java/awt/LayoutManager2.java: New file.
6689 * java/awt/Menu.java: New file.
6690 * java/awt/MenuBar.java: New file.
6691 * java/awt/MenuComponent.java: New file.
6692 * java/awt/MenuContainer.java: New file.
6693 * java/awt/MenuItem.java: New file.
6694 * java/awt/Paint.java: New file.
6695 * java/awt/PaintContext.java: New file.
6696 * java/awt/Point.java: New file.
6697 * java/awt/Rectangle.java: New file.
6698 * java/awt/Shape.java: New file.
6699 * java/awt/TextArea.java: New file.
6700 * java/awt/TextComponent.java: New file.
6701 * java/awt/Toolkit.java: New file.
6702 * java/awt/Transparency.java: New file.
6703 * java/awt/Window.java: New file.
6704 * java/awt/natToolkit.cc: New file.
6705 * java/awt/event/AWTEventListener.java: New file.
6706 * java/awt/event/ActionEvent.java: New file.
6707 * java/awt/event/ActionListener.java: New file.
6708 * java/awt/event/AdjustmentEvent.java: New file.
6709 * java/awt/event/AdjustmentListener.java: New file.
6710 * java/awt/event/ComponentAdapter.java: New file.
6711 * java/awt/event/ComponentEvent.java: New file.
6712 * java/awt/event/ComponentListener.java: New file.
6713 * java/awt/event/ContainerAdapter.java: New file.
6714 * java/awt/event/ContainerEvent.java: New file.
6715 * java/awt/event/ContainerListener.java: New file.
6716 * java/awt/event/FocusAdapter.java: New file.
6717 * java/awt/event/FocusEvent.java: New file.
6718 * java/awt/event/FocusListener.java: New file.
6719 * java/awt/event/InputEvent.java: New file.
6720 * java/awt/event/InputMethodEvent.java: New file.
6721 * java/awt/event/InputMethodListener.java: New file.
6722 * java/awt/event/InvocationEvent.java: New file.
6723 * java/awt/event/ItemEvent.java: New file.
6724 * java/awt/event/ItemListener.java: New file.
6725 * java/awt/event/KeyAdapter.java: New file.
6726 * java/awt/event/KeyEvent.java: New file.
6727 * java/awt/event/KeyListener.java: New file.
6728 * java/awt/event/MouseAdapter.java: New file.
6729 * java/awt/event/MouseEvent.java: New file.
6730 * java/awt/event/MouseListener.java: New file.
6731 * java/awt/event/MouseMotionAdapter.java: New file.
6732 * java/awt/event/MouseMotionListener.java: New file.
6733 * java/awt/event/PaintEvent.java: New file.
6734 * java/awt/event/TextEvent.java: New file.
6735 * java/awt/event/TextListener.java: New file.
6736 * java/awt/event/WindowAdapter.java: New file.
6737 * java/awt/event/WindowEvent.java: New file.
6738 * java/awt/event/WindowListener.java: New file.
6739 * java/awt/geom/Dimension2D.java: New file.
6740 * java/awt/geom/Point2D.java: New file.
6741 * java/awt/peer/ComponentPeer.java: New file.
6742 * java/awt/peer/ContainerPeer.java: New file.
6743 * java/awt/peer/FramePeer.java: New file.
6744 * java/awt/peer/WindowPeer.java: New file.
6745 * java/util/Collection.java: New file.
6746 * java/util/Comparator.java: New file.
6747 * java/util/Iterator.java: New file.
6748 * java/util/List.java: New file.
6749 * java/util/ListIterator.java: New file.
6750 * Makefile.am: Added above files.
6751 * Makefile.in: Rebuilt.
6753 2000-04-10 Warren Levy <warrenl@cygnus.com>
6755 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6756 * java/lang/FirstThread.java: Ditto.
6757 * java/lang/StringBuffer.java: Ditto.
6758 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6760 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6761 Special case handled in java.math.BigInteger.
6762 * java/math/BigInteger.java (divide): Handle the special case when
6763 dividing by 1 and the high bit of the dividend is set.
6764 (setShiftRight): Handle case when count == 0.
6766 2000-04-05 Andrew Haley <aph@cygnus.com>
6768 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6771 2000-04-05 Andrew Haley <aph@cygnus.com>
6773 * sysdep/ia64.c (rse_address_add): Delete.
6774 (IS_NaT_COLLECTION_ADDR): Delete.
6775 (ia64_backtrace_helper): check for null unwind_info.
6777 * sysdep/ia64-frame.h: add calc_caller_bsp.
6779 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6782 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6783 (_Jv_remI): Likewise.
6784 (_Jv_divJ): Likewise.
6785 (_Jv_remJ): Likewise.
6787 * interpret.cc (continue1): Use divide subroutines to guarantee
6788 correct Java standard behaviour.
6789 Floating-point division should not abort; make it so.
6791 2000-03-29 Tom Tromey <tromey@cygnus.com>
6793 * configure: Rebuilt.
6794 * configure.in: Test against `libgcj_sjlj', not
6795 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6796 to be set even when using sjlj.
6798 2000-03-24 Andrew Haley <aph@cygnus.com>
6800 * Makefile.am: Add file addr2name.awk.
6801 * Makefile.in: Rebuilt.
6802 * addr2name.awk: New file.
6803 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6805 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6808 2000-03-22 Andrew Haley <aph@cygnus.com>
6810 * configure.host: Add -funwind-tables for IA64.
6811 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6812 * Makefile.in: Rebuilt.
6813 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6814 * sysdep/ia64.c: New file.
6815 * sysdep/ia64-frame.h: New file.
6816 * configure.in: Add sysdep/ia64.c for ia64.
6817 * configure: Rebuilt.
6819 2000-03-17 Andrew Haley <aph@cygnus.com>
6821 * java/lang/natString.cc: Remove `register' keyword.
6822 interpret.cc: ditto.
6824 2000-03-16 Andrew Haley <aph@cygnus.com>
6826 * configure.host (ia64): Enable interpreter.
6828 2000-03-14 Hans Boehm <boehm@acm.org>
6830 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6832 2000-03-14 Andrew Haley <aph@cygnus.com>
6834 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6837 2000-03-10 Andrew Haley <aph@cygnus.com>
6839 * java/lang/ieeefp.h: Import latest version from fdlibm.
6841 2000-03-14 Andrew Haley <aph@cygnus.com>
6843 * prims.cc (_Jv_ThrowSignal): New function.
6844 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6846 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6847 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6848 * include/ppc-signal.h: New file.
6850 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6852 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6853 * java/lang/natThread.java (initialize_native): Cast `data' to
6855 * gnu/gcj/RawData.java: Clarify documentation.
6857 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6858 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6859 `jarFile', not `jarFileURL'.
6861 2000-05-15 Andrew Haley <aph@cygnus.com>
6863 * include/ppc-signal.h: New file.
6865 2000-05-11 Tom Tromey <tromey@cygnus.com>
6867 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6868 file headers, don't include `size' in the skip call.
6870 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6872 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6873 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6875 (replace): Reimplemented. Fix javadoc.
6876 (reverse): Call ensureCapacity_unsynchronized().
6877 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6879 (replace): Calculate length for arraycopy() correctly.
6881 2000-05-09 Tom Tromey <tromey@cygnus.com>
6883 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6885 (insert(int,char[],int,int): New method.
6886 (delete): New method from Classpath.
6887 (deleteCharAt): Likewise.
6888 (substring): Likewise.
6889 (shared): No longer private.
6890 Added JavaDoc comments from Classpath.
6891 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6894 2000-05-07 Tom Tromey <tromey@cygnus.com>
6896 * Makefile.in: Rebuilt.
6897 * Makefile.am (LIBLINK): New macro.
6898 (libgcj_la_LINK): Use it.
6899 (libgcjawt_la_LINK): Likewise.
6901 2000-05-06 Tom Tromey <tromey@cygnus.com>
6903 * Makefile.in: Rebuilt.
6904 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6906 2000-05-05 Tom Tromey <tromey@cygnus.com>
6908 Fix for PR libgcj/220:
6909 * Makefile.in: Rebuilt.
6910 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6911 (jv_convert_LDFLAGS): Likewise.
6912 (libgcj_la_LDFLAGS): Likewise.
6913 (GCJLINK): New macro.
6914 (jv_convert_LINK): Use it.
6915 (gij_LINK): Likewise.
6916 (libgcj_la_LINK): New macro.
6917 (libgcjawt_la_LINK): Likewise.
6919 2000-05-04 Tom Tromey <tromey@cygnus.com>
6921 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6923 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6927 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6929 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6930 (_Jv_IsAssignableFrom): Ditto.
6931 (_Jv_IsInstanceOf): Ditto.
6932 (_Jv_CheckCast): Ditto.
6933 (_Jv_CheckArrayStore): Ditto.
6934 * java/lang/Class.h (_Jv_InitClass): Ditto.
6935 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6940 (_Jv_MonitorExit): Ditto.
6941 * boehm.cc (_Jv_MarkObj): Ditto.
6942 (_Jv_MarkObj): Ditto.
6943 (_Jv_MarkArray): Ditto.
6944 * prims.cc (_Jv_AllocObject): Ditto.
6945 (_Jv_NewObjectArray): Ditto.
6946 (_Jv_NewPrimArray): Ditto.
6947 (_Jv_Malloc): Ditto.
6948 (_Jv_Realloc): Ditto.
6949 (_Jv_MallocUnchecked): Ditto.
6955 2000-05-04 Tom Tromey <tromey@cygnus.com>
6957 * java/util/Locale.java (Locale): Don't explicitly check for
6959 * java/util/Hashtable.java (containsKey): Don't explicitly check
6962 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6964 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6966 * java/text/StringCharacterIterator.java
6967 (StringCharacterIterator): Don't check for null.
6968 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6970 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6971 check for null pointer.
6972 (leaveGroup): Likewise.
6973 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6975 (setData): Likewise.
6976 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6979 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6981 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6982 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6983 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6984 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6985 -rpath for in-gcc builds.
6986 * Makefile.in: Rebuilt.
6988 2000-04-28 Tom Tromey <tromey@cygnus.com>
6990 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6993 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6995 * libjava/java/lang/String.java (toString): Remove `final' hack.
6997 2000-04-05 Tom Tromey <tromey@cygnus.com>
6999 Runtime support for PR gcj/2:
7000 * prims.cc (_Jv_ThrowNullPointerException): New function.
7001 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
7003 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
7005 * prims.cc (_Jv_NewObjectArray): Fix typo.
7007 2000-04-26 Tom Tromey <tromey@cygnus.com>
7009 * Makefile.in: Rebuilt.
7010 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
7012 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
7014 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
7017 2000-04-22 Anthony Green <green@cygnus.com>
7019 * include/jvm.h (__builtin_expect): Define as unused for now.
7020 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
7024 (_Jv_MonitorExit): Ditto.
7025 * boehm.cc (_Jv_MarkObj): Ditto.
7026 (_Jv_MarkObj): Ditto.
7027 (_Jv_MarkArray): Ditto.
7028 (_Jv_AllocBytes): Ditto.
7029 * prims.cc (_Jv_AllocObject): Ditto.
7030 (_Jv_NewObjectArray): Ditto.
7031 (_Jv_NewPrimArray): Ditto.
7032 (_Jv_Malloc): Ditto.
7033 (_Jv_Realloc): Ditto.
7034 (_Jv_MallocUnchecked): Ditto.
7040 * include/Makefile.in: Rebuilt.
7041 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
7043 2000-04-21 Tom Tromey <tromey@cygnus.com>
7045 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
7046 Yet another new version from Classpath.
7048 Fix for PR libgcj/15:
7049 * java/util/natGregorianCalendar.cc (_REENTRANT,
7050 _POSIX_PTHREAD_SEMANTICS): Don't define.
7051 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
7052 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
7054 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
7056 * configure: Rebuilt.
7057 * configure.in: If using POSIX threads, define _REENTRANT if
7058 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
7059 GETHOSTBYNAME_R_NEEDS_REENTRANT.
7061 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7062 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
7063 version from Classpath.
7065 Fix for PR libgcj/213:
7066 * Makefile.in: Rebuilt.
7067 * Makefile.am (gij_SOURCES): Added gij.cc.
7068 (EXTRA_gij_SOURCES): Removed.
7069 (gij_LDADD): Removed gij.lo.
7070 (gij_DEPENDENCIES): Likewise.
7071 ($(gij_OBJECTS)): Depend on nat_headers.
7073 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
7074 `setURL', not `url.set'.
7076 2000-04-20 Tom Tromey <tromey@cygnus.com>
7078 Fix for PR java.io/204:
7079 * java/io/PipedInputStream.java, java/io/PipedReader.java,
7080 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
7083 Fix for PR libgcj/212:
7084 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
7085 * include/jvm.h (_Jv_word, _Jv_word2): Define.
7086 * java/lang/Class.h (_Jv_word): Declare.
7088 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
7090 2000-04-19 Tom Tromey <tromey@cygnus.com>
7092 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
7093 doesn't have a loader.
7095 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
7097 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
7098 MAYBE_MARK to ptr_t, for compatibility with new GC version.
7100 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
7102 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
7104 (available): Initialize `where' to prevent bogus compiler warning.
7106 2000-04-12 Tom Tromey <tromey@cygnus.com>
7108 * java/lang/natString.cc (intern): Temporarily disable finalizer
7111 * java/lang/natString.cc (unintern): Added `obj' argument.
7112 (intern): Register finalizer for string.
7113 * java/lang/String.java (unintern): Now static; added obj
7116 2000-04-11 Tom Tromey <tromey@cygnus.com>
7118 * java/util/Vector.java (VectorEnumeration): Now `final'.
7119 * java/util/Hashtable.java (HashtableEntry): Now `final'.
7120 (HashtableEnumeration): Likewise.
7121 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
7122 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
7124 2000-04-10 Warren Levy <warrenl@cygnus.com>
7126 * java/io/ObjectStreamException.java: New file.
7127 * java/io/OptionalDataException.java: New file.
7128 * java/io/StreamCorruptedException.java: New file.
7129 * java/math/BigDecimal.java: New file.
7130 * java/sql/CallableStatement.java: New file.
7131 * java/sql/Connection.java: New file.
7132 * java/sql/DataTruncation.java: New file.
7133 * java/sql/DatabaseMetaData.java: New file.
7134 * java/sql/Date.java: New file.
7135 * java/sql/Driver.java: New file.
7136 * java/sql/DriverManager.java: New file.
7137 * java/sql/DriverPropertyInfo.java: New file.
7138 * java/sql/PreparedStatement.java: New file.
7139 * java/sql/ResultSet.java: New file.
7140 * java/sql/ResultSetMetaData.java: New file.
7141 * java/sql/SQLException.java: New file.
7142 * java/sql/SQLWarning.java: New file.
7143 * java/sql/Statement.java: New file.
7144 * java/sql/Time.java: New file.
7145 * java/sql/Timestamp.java: New file.
7146 * java/sql/Types.java: New file.
7147 * Makefile.am: Added above new files.
7148 * Makefile.in: Rebuilt.
7150 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
7151 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
7152 DatagramSocket constructor instead of null.
7154 2000-04-08 Anthony Green <green@cygnus.com>
7156 * include/posix-threads.h (_Jv_MutexUnlock): Replace
7159 2000-04-08 Anthony Green <green@cygnus.com>
7161 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
7162 (_Jv_MutexUnlock): Ditto.
7163 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
7164 (_Jv_MutexUnlock): Ditto.
7166 2000-04-08 Anthony Green <green@cygnus.com>
7168 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
7169 (ensureCapacity_unsynchronized): New private method.
7170 (append): Use ensureCapacity_unsynchronized.
7172 2000-04-08 Tom Tromey <tromey@cygnus.com>
7174 * Makefile.in: Rebuilt.
7175 * Makefile.am (awt_java_source_files): Added new files.
7176 * java/awt/IllegalComponentStateException.java: New file.
7177 * java/awt/ItemSelectable.java: New file.
7178 * java/awt/event/WindowEvent.java: Finished.
7179 * java/awt/event/TextEvent.java: Finished.
7180 * java/awt/event/ContainerEvent.java: New file.
7181 * java/awt/Component.java (getX, getY): New methods.
7182 * java/awt/event/PaintEvent.java: New file.
7183 * java/awt/event/MouseEvent.java: New file.
7184 * java/awt/ActiveEvent.java: New file.
7185 * java/awt/event/KeyEvent.java: Finished.
7186 * java/awt/event/ItemEvent.java: New file.
7187 * java/awt/Adjustable.java: New file.
7188 * java/awt/event/InputMethodEvent.java: New file.
7189 * java/awt/event/InputEvent.java: Finished.
7190 * java/awt/event/FocusEvent.java: New file.
7191 * java/awt/event/MouseMotionAdapter.java: New file.
7192 * java/awt/event/MouseAdapter.java: New file.
7193 * java/awt/event/KeyAdapter.java: New file.
7194 * java/awt/event/FocusAdapter.java: New file.
7195 * java/awt/event/ContainerAdapter.java: New file.
7196 * java/awt/event/ComponentEvent.java: Finished.
7197 * java/awt/event/AdjustmentEvent.java: New file.
7198 * java/awt/event/ComponentAdapter.java: New file.
7199 * java/awt/event/ActionEvent.java: Finished.
7200 * java/awt/event/MouseMotionListener.java: New file.
7201 * java/awt/event/MouseListener.java: New file.
7202 * java/awt/event/ItemListener.java: New file.
7203 * java/awt/event/InputMethodListener.java: New file.
7204 * java/awt/event/ContainerListener.java: New file.
7205 * java/awt/event/FocusListener.java: New file.
7206 * java/awt/event/ComponentListener.java: New file.
7207 * java/awt/event/AWTEventListener.java: New file.
7208 * java/awt/event/AdjustmentListener.java: New file.
7210 2000-04-08 Anthony Green <green@cygnus.com>
7212 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
7213 check when we have to.
7215 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
7218 * java/util/StringTokenizer.java: Minor optimization. Eliminates
7221 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
7222 inline hasMoreElements.
7224 2000-04-05 Tom Tromey <tromey@cygnus.com>
7226 * configure: Rebuilt.
7227 * configure.in: Recognize --enable-java-awt.
7228 (AWT): New conditional.
7229 * Makefile.in: Rebuilt.
7230 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
7232 (libgcjawt_la_SOURCES): New macro.
7233 (EXTRA_libgcjawt_la_SOURCES): Likewise.
7234 (libgcjawt_la_DEPENDENCIES): Likewise.
7235 (libgcjawt_la_LIBADD): Likewise.
7236 (libgcjawt_la_LDFLAGS): Likewise.
7237 (libgcj.zip): Depend on cond_java_awt_source_files
7238 (cond_awt_java_source_files): New macro.
7239 (MOSTLYCLEANFILES): Added awto_files.
7240 (awto_files): New macro. Use where javao_files used.
7241 (nat_headers): Use cond_awt_java_source_files.
7243 2000-04-04 Tom Tromey <tromey@cygnus.com>
7245 * Makefile.in: Rebuilt.
7246 * Makefile.am (awt_java_source_files): Added AWTException.java.
7247 * java/awt/AWTException.java: New file.
7249 2000-04-03 Tom Tromey <tromey@cygnus.com>
7251 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
7252 commentary from Alex.
7254 * Makefile.in: Rebuilt.
7255 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
7258 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
7260 * configure: Rebuilt.
7261 * configure.in: Add --disable-jvmpi.
7262 * include/config.h.in: Rebuilt.
7263 * acconfig.h: Add ENABLE_JVMPI.
7265 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
7266 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
7267 (_Jv_JVMPI_Notify_THREAD_END): New define.
7268 (_Jv_JVMPI_Notify_THREAD_END): New define.
7269 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
7270 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7271 (_Jv_JVMPI_Notify_THREAD_END): Declare.
7273 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
7276 * java/lang/natThread.cc: Include JVMPI headers if necessary.
7277 (finish_): Generate JVMPI thread end events.
7278 (run_): Generate JVMPI thread start events.
7279 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
7280 preloaded JNI library.
7281 Include JVMPI headers if necessary.
7282 (run): Generate JVMPI thread start events.
7284 * boehm.cc: Define GC_disable and GC_enable.
7285 (_Jv_DisableGC): New function.
7286 (_Jv_EnableGC): New function.
7287 (disable_gc_mutex): Declare.
7288 * nogc.cc (_Jv_DisableGC): New function.
7289 (_Jv_EnableGC): New function.
7291 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
7292 (_Jv_JVMPI_Interface): Define.
7293 (jvmpiEnableEvent): New function.
7294 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
7296 * include/jvmpi.h: New file.
7298 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
7300 * Makefile.in: New #defines and friends for Thread.h.
7301 * Makefile.am: Ditto.
7302 * posix-threads.cc: (struct starter): Remove `object'.
7303 (_Jv_CondWait): Use interruptable condition variables and new
7304 recursive mutexes. New return codes on interrupt or non-ownership
7306 (_Jv_CondNotify): Ditto.
7307 (_Jv_CondNotifyAll): Ditto.
7308 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
7309 the target thread by signaling its wait condition.
7310 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
7311 not the starter struct. Initialize wait_mutex and wait_cond.
7312 (_Jv_MutexLock): New recursive mutex implementation. Moved from
7314 (_Jv_MutexUnlock): Ditto.
7315 (really_start): Set info->data->thread from pthread_self() to work
7316 around a race condition. Destroy wait_mutex and wait_cond when run()
7318 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
7319 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
7321 startable_flag: New private field.
7322 (Thread): Initialize `startable_flag'.
7323 (toString): Check for null thread group.
7324 * java/lang/natThread.cc: (struct natThread): New fields
7325 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
7326 (class locker): Removed.
7327 (initialize_native): Initialize `join_cond' and `join_mutex'.
7328 (interrupt): Now just calls _Jv_ThreadInterrupt().
7329 (join): Simplified. Just wait on the target thread's join condition.
7330 (finish_): Remove join list code. Unset thread group. Signal
7331 potential joiners by notifying the dying threads join_cond.
7332 (start): Check for illegal restarts.
7333 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
7335 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
7336 #defines and #ifdefs.
7337 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
7338 `wait_mutex', `next'.
7339 (struct _Jv_ConditionVariable_t): Define as a struct instead of
7340 directly mapping to pthread_cond_t.
7341 (struct _Jv_Mutex_t): New recursive implementation.
7342 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
7343 _Jv_HaveCondDestroy: Never define this for posix-threads.
7344 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
7345 (_Jv_CondNotifyAll): Ditto.
7346 (_Jv_MutexLock): Ditto.
7347 (_Jv_MutexUnlock): Ditto.
7348 (_Jv_MutexInit): Changed to reflect new mutex implementation.
7349 (_Jv_MutexDestroy): Ditto.
7350 (_Jv_CondDestroy): Removed.
7351 (_Jv_PthreadGetMutex): Removed.
7352 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
7353 error. Add a FIXME about this.
7354 (_Jv_CondNotifyAll): Ditto.
7355 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
7356 _JV_NOT_OWNER on other errors. Add FIXME.
7358 2000-03-26 Tom Tromey <tromey@cygnus.com>
7360 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
7362 (call): Don't throw exception here.
7364 2000-03-26 Tom Tromey <tromey@cygnus.com>
7366 * java/lang/mprec.h: Use SIZEOF_VOID_P.
7367 * interpret.cc: Use SIZEOF_VOID_P.
7368 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
7369 (_Jv_loadLong): Likewise.
7370 (_Jv_storeDouble): Likewise.
7371 * configure: Rebuilt.
7372 * configure.in: Check size of void*.
7374 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
7376 2000-03-26 Hans Boehm <boehm@acm.org>
7378 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
7379 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
7381 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
7382 __IEEE_LITTLE_ENDIAN appropriately on IA64.
7383 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
7384 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
7386 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
7387 (FFI_RAW_SIZE): Likewise.
7388 (_Jv_InterpMethod::ncode): Use them.
7389 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
7390 STORED): Define differently on a 64 bit machine.
7391 (continue1): Use ffi_java_raw_call when appropriate.
7393 2000-03-24 Warren Levy <warrenl@cygnus.com>
7395 * java/math/BigInteger.java(divide): Handle the special case when
7396 dividing by 1 and the high bit of the dividend is set.
7397 (setShiftRight): Handle case when count == 0.
7399 2000-03-24 Warren Levy <warrenl@cygnus.com>
7401 * java/awt/Font.java(isBold): Fix syntax error.
7403 * java/awt/Frame.java(postEvent): ditto.
7404 * java/awt/Menu.java(postEvent): ditto.
7405 * java/awt/MenuBar.java(postEvent): ditto.
7406 * java/awt/Toolkit.java(init): Included a stub.
7408 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7410 * java/awt/Event.java: Add all the event type constants.
7411 (Event): Implemented constructors.
7412 (controlDown): Implemented.
7413 (metaDown): Implemented.
7414 (paramString): Stubbed.
7415 (shiftDown): Implemented.
7416 (toString): Implemented.
7417 (translate): Implemented.
7419 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
7421 * java/lang/natClass.cc (isInstance): Initialize `this'.
7422 (isAssignableFrom): Initialize `this' and `klass'.
7423 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
7424 implemented by any loaded class, so return false.
7425 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
7426 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
7428 2000-03-19 Warren Levy <warrenl@cygnus.com>
7430 * java/awt/Color.java: Specified java.io for Serializable.
7431 * java/awt/Toolkit.java: Imported java.net.URL.
7433 2000-03-19 Warren Levy <warrenl@cygnus.com>
7435 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
7437 2000-03-16 Warren Levy <warrenl@cygnus.com>
7439 * java/awt/Color.java: New file.
7440 * java/awt/Graphics.java: New file.
7441 * java/awt/Image.java: New file.
7442 * java/awt/Paint.java: New file.
7443 * java/awt/PaintContext.java: New file.
7444 * java/awt/Transparency.java: New file.
7445 * java/util/Collection.java: New file.
7446 * java/util/Comparator.java: New file.
7447 * java/util/Iterator.java: New file.
7448 * java/util/List.java: New file.
7449 * java/util/ListIterator.java: New file.
7450 * Makefile.am: Added above new files.
7451 * Makefile.in: Rebuilt.
7453 * java/awt/Font.java (PLAIN): New field.
7455 (ITALIC): New field.
7456 (ROMAN_BASELINE): New field.
7457 (CENTER_BASELINE): New field.
7458 (HANGING_BASELINE): New field.
7462 (pointSize): New field.
7463 (Font): Implemented constructor.
7464 (isPlain): Implemented method.
7465 (isBold): Implemented method.
7466 (isItalic): Implemented method.
7467 (getName): Implemented method.
7468 (getStyle): Implemented method.
7469 (getSize): Implemented method.
7470 (getSize2D): Implemented method.
7472 * java/awt/Frame.java (getFont): Stubbed.
7473 (postEvent): Stubbed.
7475 * java/awt/Menu.java (postEvent): Stubbed.
7476 * java/awt/MenuBar.java (getFont): Stubbed.
7477 (postEvent): Stubbed.
7478 * java/awt/Toolkit.java (getImage): Added abstract method.
7480 2000-03-15 Tom Tromey <tromey@cygnus.com>
7482 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
7484 * prims.cc (win32_exception_handler): Reformatted.
7486 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
7487 (_Jv_HaveMutexDestroy): Likewise.
7489 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
7491 * java/io/natFileDescriptorWin32.cc: New file.
7492 * java/io/natFileWin32.cc: New file.
7493 * java/net/natInetAddress.cc: Added conditional inclusion of
7494 Windows / Winsock headers.
7495 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
7496 inclusion of Windows / Winsock headers.
7497 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
7498 Windows / Winsock headers.
7499 * include/win32-signal.h: New file.
7500 * include/win32-threads.h: New file.
7501 * win32-threads.cc: New file.
7502 * exception.cc (win32_get_restart_frame): New function.
7503 * prims.cc (win32_exception_handler): New function.
7504 (main_init) Performs Winsock initialisation.
7505 (main_init) Installs exeception handler.
7507 2000-03-14 Tom Tromey <tromey@cygnus.com>
7509 * jni.cc (mangled_name): Fixed assertion.
7510 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
7511 turned assert into actual failure.
7513 2000-03-09 Warren Levy <warrenl@cygnus.com>
7515 * java/security/Key.java(serialVersionUID): Set to 0 for now.
7516 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
7517 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
7519 2000-03-09 Warren Levy <warrenl@cygnus.com>
7521 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
7522 * java/security/DigestException.java: New file.
7523 * java/security/GeneralSecurityException.java: New file.
7524 * java/security/InvalidAlgorithmParameterException.java: New file.
7525 * java/security/InvalidKeyException.java: New file.
7526 * java/security/InvalidParameterException.java: New file.
7527 * java/security/Key.java: New file.
7528 * java/security/KeyException.java: New file.
7529 * java/security/KeyPair.java: New file.
7530 * java/security/KeyPairGenerator.java: New file.
7531 * java/security/KeyPairGeneratorSpi.java: New file.
7532 * java/security/NoSuchProviderException.java: New file.
7533 * java/security/PrivateKey.java: New file.
7534 * java/security/Provider.java: New file.
7535 * java/security/PublicKey.java: New file.
7536 * java/security/SecureRandom.java: New file.
7537 * java/security/Security.java: New file.
7538 * java/security/Signature.java: New file.
7539 * java/security/SignatureException.java: New file.
7540 * java/security/interfaces/DSAKey.java: New file.
7541 * java/security/interfaces/DSAParams.java: New file.
7542 * java/security/interfaces/DSAPrivateKey.java: New file.
7543 * java/security/interfaces/DSAPublicKey.java: New file.
7544 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
7545 * java/security/interfaces/RSAPrivateKey.java: New file.
7546 * java/security/interfaces/RSAPublicKey.java: New file.
7547 * java/security/spec/AlgorithmParameterSpec.java: New file.
7548 * java/security/spec/InvalidKeySpecException.java: New file.
7549 * java/security/spec/InvalidParameterSpecException.java: New file.
7550 * java/security/spec/KeySpec.java: New file.
7551 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
7552 * java/security/spec/RSAPrivateKeySpec.java: New file.
7553 * java/security/spec/RSAPublicKeySpec.java: New file.
7554 * Makefile.am: Added above java.security files.
7555 * Makefile.in: Rebuilt.
7557 * java/security/MessageDigest.java: Rewritten.
7558 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
7560 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7564 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7566 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
7567 _Jv_PrepareConstantTimeTables.
7568 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
7569 classes should have an IDT, so don't return if klass is an array
7572 2000-03-08 Tom Tromey <tromey@cygnus.com>
7574 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
7575 of `void' to be created.
7577 2000-03-08 Warren Levy <warrenl@cygnus.com>
7579 * java/math/BigInteger.java(signum): Handle zero properly.
7581 2000-03-07 Tom Tromey <tromey@cygnus.com>
7583 * All files: Updated copyright information.
7584 * COPYING: New file.
7585 * COPYING.LIB: Removed.
7586 * LIBGCJ_LICENSE: We now use GPL + special exception.
7588 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7590 * resolve.cc (_Jv_SearchMethodInClass): New function.
7591 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
7592 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
7594 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7596 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
7597 (struct _Jv_ifaces): New declaration.
7598 JV_CLASS: New macro definition.
7599 (getComponentType): Relocate below isArray() for inlining.
7600 (getModifiers): Declare `inline'.
7601 (getSuperclass): Ditto.
7603 (isPrimitive): Ditto.
7604 (_Jv_IsAssignableFrom): New prototype.
7605 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
7607 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
7608 Check for JV_STATE_DONE before invoking initializeClass().
7609 (_Jv_PrepareConstantTimeTables): New prototype.
7610 (_Jv_GetInterfaces): Ditto.
7611 (_Jv_GenerateITable): Ditto.
7612 (_Jv_GetMethodString): Ditto.
7613 (_Jv_AppendPartialITable): Ditto.
7614 (_Jv_FindIIndex): Ditto.
7615 depth, ancestors, idt: New class fields.
7617 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
7618 inline function `_Jv_IsAssignableFrom'. Use that function.
7619 (isInstance): Declare `inline'.
7620 (initializeClass): Get lock on class before checking `state'. Unlock
7621 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
7623 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
7624 (_Jv_IsAssignableFrom): New inline function. Test assignability using
7625 class->depth and ancestor table.
7626 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7627 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7628 _Jv_IsAssignableFrom.
7629 (_Jv_CheckArrayStore): Ditto.
7630 (_Jv_LookupInterfaceMethodIdx): New function.
7631 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7632 (_Jv_PrepareConstantTimeTables): New function.
7633 (_Jv_IndexOf): Ditto.
7634 (_Jv_GetInterfaces): Ditto.
7635 (_Jv_GenerateITable): Ditto.
7636 (_Jv_GetMethodString): Ditto.
7637 (_Jv_AppendPartialITable): Ditto.
7638 iindex_mutex, iindex_mutex_initialized: New static fields.
7639 (_Jv_FindIIndex): New function.
7641 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7643 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7644 (_Jv_CheckArrayStore): Ditto.
7645 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7646 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7647 Moved to gcj/array.h.
7648 (_Jv_Realloc): New function.
7650 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7652 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7653 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7654 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7655 JvNewDoubleArray): Implementations moved from prims.cc and
7658 * gcj/javaprims.h (_Jv_Realloc): Prototype.
7660 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7662 2000-03-06 Tom Tromey <tromey@cygnus.com>
7664 * jni.cc (MARK_NONE): New define.
7665 (MARK_USER): Likewise.
7666 (MARK_SYSTEM): Likewise.
7667 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7669 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7670 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7671 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7672 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7674 (call): Use MARK_SYSTEM.
7675 (_Jv_GetJNIEnvNewFrame): New function.
7676 (_Jv_LookupJNIMethod): New function.
7677 (_Jv_JNI_PopSystemFrame): New function.
7678 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7680 2000-03-05 Tom Tromey <tromey@cygnus.com>
7682 Fix for PR libgcj/43:
7683 * include/Makefile.in: Rebuilt.
7684 * include/Makefile.am (include_HEADERS): New define.
7686 2000-03-05 Anthony Green <green@redhat.com>
7688 * gcj/javaprims.h ("Java"): Remove FirstThread.
7690 * configure.host: Fix __NO_MATH_INLNES botch.
7692 * Makefile.in: Rebuilt.
7693 * Makefile.am (nat_source_files): Move natFirstThread.cc.
7694 (gnu/gcj/runtime/FirstThread.h): Moved.
7695 (ordinary_java_source_files): Move FirstThread.java.
7696 * prims.cc: Deal with FirstThread movement.
7698 (_Jv_RunMain): Ditto.
7700 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7701 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7703 2000-03-05 Warren Levy <warrenl@cygnus.com>
7705 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7706 Handle null addresses.
7708 2000-03-04 Anthony Green <green@redhat.com>
7710 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7713 2000-03-04 Anthony Green <green@redhat.com>
7715 * configure: Rebuilt.
7716 * configure.in (ZLIBTESTSPEC): New macro.
7717 (GCTESTSPEC): New macro.
7718 (LIBGCJTESTSPEC): New macro.
7719 * libgcj-test.spec.in: New file.
7721 2000-03-02 Tom Tromey <tromey@cygnus.com>
7723 * include/java-interp.h: Don't include MethodInvocation.h.
7724 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7725 * Makefile.in: Rebuilt.
7726 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7727 (ordinary_java_source_files): Don't mention
7728 MethodInvocation.java.
7729 * gnu/gcj/runtime/MethodInvocation.java: Removed.
7730 * interpret.cc (MethodInvocation::continue1): Removed.
7731 (run): Handle exceptions here.
7732 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7734 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7736 (defineClass2): Removed.
7738 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7740 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7742 (hack_call): Removed.
7744 * java/lang/Class.h (Class): Removed hackRunInitializers,
7746 * java/lang/natClass.cc (hackRunInitializers): Removed.
7747 (initializeClass): Catch exceptions here.
7748 Include ExceptionInInitializerError.h.
7749 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7752 * java/lang/Object.h (Object): Don't mention hack12_6.
7753 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7755 * java/lang/Object.java (hack12_6): Removed.
7757 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7758 (start): Use run_, not run__.
7759 * java/lang/Thread.java (run_): Renamed from run__; old run_
7762 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7763 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7764 (_Jv_JNI_DefineClass): Likewise.
7765 (_Jv_JNI_ThrowNew): Likewise.
7766 (_Jv_JNI_AllocObject): Likewise.
7767 (_Jv_JNI_GetAnyMethodID): Likewise.
7768 (_Jv_JNI_CallAnyMethodV): Likewise.
7769 (_Jv_JNI_CallAnyMethodA): Likewise.
7770 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7771 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7772 (_Jv_JNI_GetAnyFieldID): Likewise.
7773 (_Jv_JNI_NewString): Likewise.
7774 (_Jv_JNI_NewStringUTF): Likewise.
7775 (_Jv_JNI_GetStringUTFChars): Likewise.
7776 (_Jv_JNI_NewObjectArray): Likewise.
7777 (_Jv_JNI_NewPrimitiveArray): Likewise.
7778 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7779 (_Jv_JNI_GetStringRegion): Likewise.
7780 (_Jv_JNI_GetStringUTFRegion): Likewise.
7781 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7782 (_Jv_JNI_MonitorEnter): Likewise.
7783 (_Jv_JNI_MonitorExit): Likewise.
7784 (_Jv_JNI_ToReflectedField): Likewise.
7785 (_Jv_JNI_ToReflectedMethod): Likewise.
7786 (_Jv_JNI_RegisterNatives): Likewise.
7787 (_Jv_JNI_AttachCurrentThread): Likewise.
7788 (_Jv_JNI_DestroyJavaVM): Likewise.
7790 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7792 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7793 error caused by the incorrect casting of a long to an int.
7795 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7797 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7798 SIGSEV caused by use of the wrong instance variable.
7800 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7802 * java/io/File.java (File(String, String)): For dirPath, treat an
7803 empty String the same as `null'.
7805 2000-02-26 Anthony Green <green@cygnus.com>
7807 * gnu/gcj/io/MimeTypes.java: Test for null.
7809 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7810 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7812 * java/net/URLConnection.java: Update copyright notice.
7814 2000-02-25 Tom Tromey <tromey@cygnus.com>
7816 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7819 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7821 * java/net/URLConnection.java (initializeDateFormats): New
7823 (getHeaderFieldDate): Call initializeDateFormats if required.
7824 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7826 Fix for PR libgcj/38.
7828 2000-02-24 Warren Levy <warrenl@cygnus.com>
7830 * java/math/BigInteger.java(ival): Made private.
7834 2000-02-20 Anthony Green <green@cygnus.com>
7836 * Makefile.in: Rebuilt.
7837 * Makefile.am (ordinary_java_source_files): Add
7838 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7840 * scripts/MakeDefaultMimeTypes.java: New file.
7841 * scripts/mime.types: New file.
7842 * scripts/classes.pl: Moved from top level.
7843 * classes.pl: Moved to scripts directory.
7845 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7847 * gnu/gcj/io/MimeTypes.java: New file.
7848 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7850 2000-02-20 Tom Tromey <tromey@cygnus.com>
7852 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7854 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7856 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7859 2000-02-18 Tom Tromey <tromey@cygnus.com>
7861 * include/jvm.h (_Jv_GetJavaVM): Declare.
7862 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7863 (_Jv_MethodBase::get_method): New method.
7864 (_Jv_JNIMethod::set_function): New method.
7865 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7866 (_Jv_JNI_RegisterNatives): New function.
7867 (_Jv_JNIFunctions): Updated for new functions.
7868 (_Jv_GetJavaVM): New function.
7869 (_Jv_JNI_GetJavaVM): Use it. Now static.
7870 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7871 is already a Java thread but does not have a JNIEnv yet.
7873 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7876 2000-02-17 Tom Tromey <tromey@cygnus.com>
7878 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7881 2000-02-16 Tom Tromey <tromey@cygnus.com>
7883 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7885 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7886 (_Jv_JNI_NewObject): Likewise.
7887 (_Jv_JNI_NewObjectA): Likewise.
7888 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7889 as "return" type to _Jv_CallAnyMethodA.
7890 (_Jv_JNI_CallAnyMethodA): Likewise.
7891 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7893 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7896 2000-02-15 Tom Tromey <tromey@cygnus.com>
7898 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7900 (init_cif): Added `rtype_p' argument.
7901 * include/java-interp.h (class _Jv_MethodBase): Added
7903 (class _Jv_InterpMethod): Removed args_raw_size.
7904 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7905 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7906 class pointer as well as the ordinary arguments.
7908 * jni.cc (mangled_name): Skip leading `(' in signature.
7910 * jni.cc (add_char): Added missing `else'.
7912 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7915 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7919 * java/lang/natRuntime.cc (_load): Include library path with
7922 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7925 * java/lang/natThread.cc (dumpStack): Removed.
7926 * java/lang/Thread.java (dumpStack): Implemented.
7928 2000-02-15 Tom Tromey <tromey@cygnus.com>
7930 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7931 with `lib' for loadLibrary. Fixes PR gcj/150.
7933 2000-02-14 Warren Levy <warrenl@cygnus.com>
7935 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7937 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7941 (modPow): Rewritten to not use the naive, slow, brute force approach.
7942 (isProbablePrime): Implemented.
7943 (testBit): Implemented.
7944 (flipBit): Implemented.
7945 (getLowestSetBit): Implemented.
7947 2000-02-16 Anthony Green <green@redhat.com>
7949 * configure.host: Use the same options for i386 and i486 as we do
7952 2000-02-12 Tom Tromey <tromey@cygnus.com>
7954 * java/io/File.java (createTempFile): Use low bits from counter,
7957 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7959 * THANKS: More thanks.
7961 2000-02-11 Tom Tromey <tromey@cygnus.com>
7963 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7964 astore instruction. From Hans Boehm.
7966 2000-02-11 Warren Levy <warrenl@cygnus.com>
7968 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7969 (BigInteger(String)): New constructor.
7970 (not): Rewritten using version from Kawa's BitOps class.
7971 (valueOf): New private methods from Kawa's BitOps class.
7978 (andNot): Implemented.
7979 (clearBit): Implemented.
7980 (setBit): Implemented.
7981 (bitCount): Implemented.
7982 (toByteArray): Implemented.
7984 2000-02-11 Tom Tromey <tromey@cygnus.com>
7986 * java/io/File.java (nextValue): Now synchronized.
7988 2000-02-10 Tom Tromey <tromey@cygnus.com>
7990 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7991 * java/io/FileDescriptor.java (EXCL): New static field.
7992 * java/io/File.java (tmpdir): New static field.
7993 (createTempFile): New method.
7994 (nextValue): New method.
7995 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7998 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7999 (jboolean): Declare as an attributed int, not a bool.
8000 (_Jv_func): Declare differently for C.
8002 * gnu/gcj/jni/natNativeThread.cc: New file.
8003 * gnu/gcj/jni/NativeThread.java: New file.
8004 * java/lang/Thread.java (data): Now a RawData.
8005 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
8007 * Makefile.in: Rebuilt.
8008 * Makefile.am (java/lang/Thread.h): New target.
8009 (ordinary_java_source_files): Added NativeThread.java.
8010 (nat_source_files): Added natNativeThread.cc.
8011 * java/lang/natThread.cc: Include <jni.h>
8012 (struct natThread): Added `jni_env' field.
8013 (_Jv_GetCurrentJNIEnv): New function.
8014 (_Jv_SetCurrentJNIEnv): Likewise.
8015 (initialize_native): Initialize jni_env.
8017 * jni.cc (ThreadGroupClass): New define.
8018 (_Jv_JNI_InvokeFunctions): New structure.
8019 (JNI_GetCreatedJavaVMs): New function.
8020 (the_vm): New global.
8021 (JNI_GetDefaultJavaVMInitArgs): New function.
8022 Include NativeThread.h.
8023 (NativeThreadClass): New define.
8024 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
8025 (_Jv_JNI_DestroyJavaVM): New function.
8026 (_Jv_JNI_AttachCurrentThread): New function.
8027 (_Jv_JNI_DetachCurrentThread): New function.
8028 (_Jv_JNI_GetEnv): New function.
8029 (JNI_CreateJavaVM): New function.
8030 (_Jv_JNI_GetJavaVM): New function.
8031 (_Jv_JNIFunctions): Added entry for GetJavaVM.
8032 * include/jni.h (JavaVMAttachArgs): New structure.
8033 (JNI_EDETACHED): New define.
8034 (JNI_EVERSION): Likewise.
8035 (JavaVM): Define properly.
8036 (struct JNIInvokeInterface): New structure.
8037 (class _Jv_JavaVM): New class.
8038 (JNI_OnLoad, JNI_OnUnload): Declare.
8039 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
8040 JNI_GetCreatedJavaVMs): Declare.
8041 (JavaVMInitArgs): New typedef.
8042 (JavaVMOption): Likewise.
8043 (JNI_ERR): New define.
8046 2000-02-10 Andrew Haley <aph@cygnus.com>
8048 * interpret.cc: Don't include fdlibm.h.
8049 Replace #if with #ifdef throughout.
8050 Declare extern __ieee754_fmod.
8051 (continue1): Remove op_getfield, op_getstatic, op_putfield,
8053 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
8054 Search class hierarchy for superclass vtable.
8056 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
8057 off the end of a pointer list.
8059 * java/lang/natThread.cc (stop): Don't abort, throw an exception
8063 2000-02-09 Tom Tromey <tromey@cygnus.com>
8065 * java/lang/natRuntime.cc (_load): Call add_library.
8066 (loadLibraryInternal): Likewise.
8068 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
8069 iconv_close when handle is not NULL. Thanks to Andrew Haley.
8070 (Output_iconv::finalize): Likewise.
8072 2000-02-08 Tom Tromey <tromey@cygnus.com>
8074 * java/util/Properties.java (setProperty): New method.
8075 (store): New method.
8077 2000-02-07 Tom Tromey <tromey@cygnus.com>
8079 * java/lang/Runtime.java (_load): Declare.
8080 (load, loadLibrary): Wrote in terms of _load.
8081 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
8083 (loadLibrary): Likewise.
8085 (_load): New method.
8086 (loadLibrary, load): Removed.
8088 * jni.cc (ThrowableClass): New define.
8089 (_Jv_JNI_Throw): Check argument.
8090 (_Jv_JNI_ThrowNew): Likewise.
8091 (wrap_value): Don't wrap object if it is NULL.
8092 (_Jv_JNI_DefineClass): Use wrap_value.
8093 (_Jv_JNI_FindClass): Likewise.
8094 (_Jv_JNI_GetSuperclass): Likewise.
8095 (_Jv_JNI_ExceptionOccurred): Likewise.
8096 (_Jv_JNI_AllocObject): Likewise.
8097 (_Jv_JNI_GetObjectClass): Likewise.
8098 (_Jv_JNI_NewString): Likewise.
8099 (_Jv_JNI_NewStringUTF): Likewise.
8100 (_Jv_JNI_NewObjectArray): Likewise.
8101 (_Jv_JNI_GetObjectArrayElement): Likewise.
8102 (_Jv_JNI_NewPrimitiveArray): Likewise.
8103 (_Jv_JNI_ToReflectedField): Likewise.
8104 (_Jv_JNI_ToReflectedMethod): Likewise.
8105 (_Jv_JNI_AllocObject): Check argument.
8106 (_Jv_JNI_NewObjectV): Likewise.
8107 (_Jv_JNI_NewObject): Likewise.
8108 (_Jv_JNI_NewObjectA): Likewise.
8109 (_Jv_JNI_GetObjectClass): Likewise.
8110 (_Jv_JNI_GetField): Likewise.
8111 (_Jv_JNI_SetField): Likewise.
8113 * interpret.cc (PUSHL): Don't use expression statement.
8118 * jni.cc (add_char): Conditional on INTERPRETER.
8119 (mangled_name): Likewise.
8121 * include/java-interp.h (class _Jv_MethodBase): Conditional on
8123 (class _Jv_JNIMethod): Likewise.
8125 2000-02-04 Warren Levy <warrenl@cygnus.com>
8127 * Makefile.am: Added MPN.java and BigInteger.java.
8128 * Makefile.in: Rebuilt.
8129 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
8131 * java/math/BigInteger.java: New file. Based primarily on
8132 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
8134 2000-02-04 Tom Tromey <tromey@cygnus.com>
8136 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
8138 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
8139 if the method is native.
8140 * resolve.cc (ncode): Don't handle native methods.
8141 (_Jv_JNIMethod::ncode): New method.
8142 (_Jv_PrepareClass): Handle native methods.
8143 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
8144 Include AbstractMethodError.h.
8145 (add_char): New function.
8146 (mangled_name): Likewise.
8147 * include/java-interp.h (class _Jv_JNIMethod): New class.
8148 (class _Jv_MethodBase): New class.
8149 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
8150 (_Jv_InterpClass): Changed `interpreted_methods' field to type
8153 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
8154 * java/lang/natRuntime.cc (libraries_size, libraries_count,
8155 libraries): New globals.
8156 (add_library): New function.
8157 (_Jv_FindSymbolInExecutable): New function.
8159 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
8162 2000-02-04 Andrew Haley <aph@cygnus.com>
8164 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
8165 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
8166 * java/lang/natThrowable.cc (printRawStackTrace): Rename
8167 printStackTrace to printRawStackTrace.
8169 2000-02-03 Tom Tromey <tromey@cygnus.com>
8171 * java/util/Calendar.java (toString): New method.
8172 * java/util/SimpleTimeZone.java (clone): New method.
8173 (toString): New method.
8174 * java/util/TimeZone.java (clone): New method.
8175 * java/text/SimpleDateFormat.java (clone): New method.
8176 * java/text/NumberFormat.java (clone): New method.
8177 (equals): New method.
8178 * java/text/Format.java (clone): New method.
8179 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
8181 (clone): New method.
8182 * java/text/DateFormat.java (clone): New method.
8183 * java/text/Collator.java (clone): New method.
8185 2000-02-03 Tom Tromey <tromey@cygnus.com>
8187 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
8190 2000-02-01 Tom Tromey <tromey@cygnus.com>
8192 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
8193 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
8194 constructing the closure if the function is native.
8195 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
8196 a template function, #if'd out, or static.
8197 Include <java-interp.h>.
8199 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
8201 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
8203 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
8204 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
8206 (wrap_value): New function.
8207 (_Jv_JNI_CallAnyMethodV): Use it.
8208 (_Jv_JNI_CallAnyMethodA): Likewise.
8209 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
8210 (_Jv_JNI_GetStaticField): Likewise.
8212 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
8213 (_Jv_JNI_GetStaticField): Likewise.
8215 2000-01-31 Tom Tromey <tromey@cygnus.com>
8217 * prims.cc (_Jv_MallocUnchecked): New function.
8218 (main_init): Call _Jv_JNI_Init.
8219 * include/jvm.h (_Jv_MallocUnchecked): Declare.
8220 (_Jv_JNI_Init): Declare.
8221 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
8223 (_Jv_JNI_NewGlobalRef): New function.
8224 (_Jv_JNI_DeleteGlobalRef): New function.
8225 (_Jv_JNI_DeleteLocalRef): New function.
8226 (_Jv_JNI_conversion_call): Initialize and clear local reference
8228 (_Jv_JNI_NewLocalRef): New function.
8229 (struct _Jv_JNI_LocalFrame): New structure.
8230 (_Jv_JNI_PushLocalFrame): New function.
8231 (_Jv_JNI_EnsureLocalCapacity): New function.
8232 (FRAME_SIZE): New define.
8233 (_Jv_JNI_GetStringChars): Mark string, not characters.
8234 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
8235 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
8236 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
8238 (_Jv_JNI_DefineClass): Make return value a local ref.
8239 (_Jv_JNI_FindClass): Likewise.
8240 (_Jv_JNI_GetSuperclass): Likewise.
8241 (_Jv_JNI_ExceptionOccurred): Likewise.
8242 (_Jv_JNI_AllocObject): Likewise.
8243 (_Jv_JNI_GetObjectClass): Likewise.
8244 (_Jv_JNI_CallAnyMethodV): Likewise.
8245 (_Jv_JNI_NewString): Likewise.
8246 (_Jv_JNI_NewStringUTF): Likewise.
8247 (_Jv_JNI_NewObjectArray): Likewise.
8248 (_Jv_JNI_GetObjectArrayElement): Likewise.
8249 (_Jv_JNI_ToReflectedField): Likewise.
8250 (_Jv_JNI_ToReflectedMethod): Likewise.
8251 (_Jv_JNIFunctions): Updated table for new functions.
8252 (_Jv_JNI_Init): New function.
8253 (mark_for_gc): Wrote.
8254 (unmark_for_gc): Wrote.
8255 * include/jni.h (struct JNINativeInterface): Removed name from
8256 PopLocalFrame parameter.
8257 (class _Jv_JNIEnv): Added `locals' field.
8259 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
8261 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
8264 2000-01-30 Tom Tromey <tromey@cygnus.com>
8266 * include/config.h.in: Rebuilt.
8267 * acconfig.h (HAVE_ICONV): Define.
8268 * configure: Rebuilt.
8269 * configure.in: Check for `iconv' function.
8270 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
8271 no specific encoder exists.
8272 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
8273 no specific encoder exists.
8274 * Makefile.in: Rebuilt.
8275 * Makefile.am (convert_source_files): Mention Input_iconv.java and
8277 (nat_source_files): Added natIconv.cc.
8278 * gnu/gcj/convert/natIconv.cc: New file.
8279 * gnu/gcj/convert/Input_iconv.java: New file.
8280 * gnu/gcj/convert/Output_iconv.java: New file.
8282 2000-01-28 Tom Tromey <tromey@cygnus.com>
8284 * Makefile.in: Rebuilt.
8285 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
8287 2000-01-26 Tom Tromey <tromey@cygnus.com>
8289 * gcj/method.h (JvNumMethods): Moved from Class.h.
8290 (JvGetFirstMethod): Likewise.
8291 * java/lang/Class.h (Object): Updated decl of
8292 _Jv_JNI_ToReflectedField.
8293 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
8294 * Makefile.in: Rebuilt.
8295 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
8296 argument of _Jv_JNI_ToReflectedField.
8297 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
8299 (java/lang/reflect/Method.h): Likewise.
8300 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
8302 (jweak): New typedef.
8303 (struct JNINativeInterface): Correctly declare remaining entries.
8304 * jni.cc: Include Class.h, ClassLoader.h.
8305 (_Jv_JNI_FindClass): New function.
8306 (_Jv_JNI_DefineClass): New function.
8307 (_Jv_JNI_conversion_call): New function.
8308 (_Jv_JNI_FindClass): Use current class loader to find class.
8309 (_Jv_JNI_ExceptionCheck): New function.
8310 (_Jv_JNI_FromReflectedField): Now static.
8311 (MethodClass): New define.
8312 (_Jv_JNI_FromReflectedMethod): New function.
8313 (_Jv_JNI_ToReflectedMethod): Likewise.
8315 (_Jv_JNI_IsAssignableFrom): Renamed.
8316 (_Jv_JNI_GetStringRegion): New function.
8317 Include StringIndexOutOfBoundsException.h.
8318 (_Jv_JNI_GetStringUTFRegion): New function.
8319 (_Jv_JNIFunctions): Updated for new functions.
8320 (_Jv_JNI_GetPrimitiveArrayCritical): New function
8321 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
8322 (_Jv_JNI_GetStringCritical): New function.
8323 (_Jv_JNI_ReleaseStringCritical): Likewise.
8324 (get_throwable): Removed.
8325 (GCJ_JV_JNIENV_FRIEND): Removed.
8326 (__GCJ_JNI_IMPL__): Define.
8329 * resolve.cc (get_ffi_type_from_signature): Handle case where
8332 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
8334 * interpret.cc (run): Don't call println.
8335 Don't include PrintStream.h.
8337 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
8338 nameIndex. Use "jint" as type for boffset.
8339 * java/lang/Class.h (struct _Jv_Method): Made accflags a
8341 (Class): Likewise. Also changed type of method_count,
8342 vtable_method_count, size_in_bytes, field_count,
8343 static_field_count, interface_count.
8344 * gcj/array.h (__JArray): Made `length' a const jsize, not an
8347 2000-01-21 Tom Tromey <tromey@cygnus.com>
8349 * java/lang/reflect/natConstructor.cc (newInstance): Use
8351 * include/jvm.h: Declare _Jv_CallAnyMethodA.
8352 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
8353 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
8356 (invoke): Use _Jv_CallAnyMethodA.
8358 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
8359 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
8361 (struct _Jv_Method): Added getNextMethod method.
8362 (JvNumMethods): New function.
8363 (JvGetFirstMethod): Likewise.
8364 * gcj/field.h (JvGetFirstStaticField): New function.
8365 (JvNumStaticFields): Likewise.
8366 (getNextField): Renamed from getNextInstanceField.
8367 (struct _Jv_Field): New method getClass.
8368 * jni.cc: Wrote many new functions.
8369 * include/jni.h (JNI_TRUE): Define.
8370 (JNI_FALSE): Likewise.
8371 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
8372 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
8373 jcharArray, jfloatArray, jdoubleArray): New typedefs.
8374 (jfieldID, jmethodID): Likewise.
8375 (JNI_COMMIT, JNI_ABORT): New defines.
8376 (JNINativeMethod): New struct.
8377 (struct JNINativeInterface): Correctly declared more entries.
8378 (class _Jv_JNIEnv): Added `ex' member.
8379 (JNI_VERSION_1_1): New define.
8380 (JNI_VERSION_1_2): Likewise.
8382 * boehm.cc (_Jv_MarkObj): Use getNextField, not
8383 getNextInstanceField.
8385 2000-01-20 Tom Tromey <tromey@cygnus.com>
8387 * resolve.cc (StringClass): Removed.
8388 * defineclass.cc (StringClass): Removed.
8390 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
8394 2000-01-19 Tom Tromey <tromey@cygnus.com>
8396 * interpret.cc (PC_REGISTER_ASM): Removed.
8398 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
8399 From Bryce McKinlay.
8401 * All files: Updated copyright to reflect Cygnus purchase.
8403 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
8405 * configure: Rebuilt.
8406 * configure.in: Recognize --disable-interpreter.
8408 2000-01-18 Andrew Haley <aph@cygnus.com>
8410 * name-finder.cc (lookup): Check for dladdr function.
8411 acconfig.h (HAVE_DLADDR): Add.
8412 configure.in: Check for HAVE_DLADDR
8414 include/config.h.in: Rebuilt.
8416 2000-01-17 Andrew Haley <aph@cygnus.com>
8418 * prims.cc (_Jv_RunMain): Set the name of this executable.
8420 2000-01-17 Tom Tromey <tromey@cygnus.com>
8422 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
8423 when backtrace can't be computed.
8425 * configure: Rebuilt.
8426 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
8428 * java/lang/Runtime.java (loadLibraryInternal): Declare.
8429 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
8430 (_Jv_FindClassInCache): Likewise.
8431 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
8432 (findSystemClass): Try to load class from compiled module.
8434 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
8435 (loadLibrary): Likewise.
8436 (lt_preloaded_symbols): Define.
8437 (loadLibraryInternal): New method.
8438 * include/config.h.in: Rebuilt.
8439 * acconfig.h (USE_LTDL): Added.
8440 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
8441 (INCLUDES): Added $(INCLTDL).
8442 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
8443 (libgcj_la_LIBADD): Likewise.
8444 * aclocal.m4, configure: Rebuilt.
8445 * configure.in: Added libltdl support.
8447 2000-01-15 Tom Tromey <tromey@cygnus.com>
8449 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
8451 2000-01-14 Andrew Haley <aph@cygnus.com>
8453 * java/lang/natThrowable.cc: New file.
8455 * java/lang/Throwable.java (fillInStackTrace): Make native.
8456 (printStackTrace): Call native method to do this.
8457 (Throwable): Call fillInStackTrace.
8458 (stackTrace): New variable.
8460 * include/jvm.h: Add _Jv_ThisExecutable functions.
8462 * prims.cc: (_Jv_execName): New variable.
8463 (catch_segv): Call fillInStackTrace.
8465 (_Jv_ThisExecutable): New functions.
8466 (JvRunMain): Set the name of this executable.
8468 * Makefile.am: Add java/lang/natThrowable.cc.
8470 * Makefile.in: Rebuilt.
8472 * acconfig.h: Add HAVE_PROC_SELF_EXE.
8474 * configure.in: Force link with __frame_state_for in
8475 FORCELIBGCCSPEC. Add new checks for backtrace.
8476 * include/config.h.in: Rebuilt.
8478 * name-finder.cc: New file.
8479 * include/name-finder.h: New file.
8481 2000-01-16 Anthony Green <green@cygnus.com>
8483 * java/lang/StringBuffer.java (StringBuffer): Don't special case
8486 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
8488 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
8490 2000-01-13 Tom Tromey <tromey@cygnus.com>
8492 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
8493 not system loader, as initiating loader.
8495 2000-01-11 Tom Tromey <tromey@cygnus.com>
8497 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
8498 HP/UX. From David Scott Urban.
8500 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
8502 * java/lang/natMath.cc (pow): Cast args to `double', not
8505 (IEEEremainder): Likewise.
8506 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
8507 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
8509 2000-01-09 Anthony Green <green@cygnus.com>
8511 * java/lang/natString.cc (init): Test for overflow condition
8512 during out of bounds check.
8513 (getChars): Throw StringIndexOutOfBoundsException, not
8514 ArrayIndexOutOfBoundsException.
8516 (regionMatches): Obey case option during string comparison.
8518 * configure.host (ligcj_interpreter): New variable. Enable
8519 interpreter by default on IA-32.
8520 * configure.in: Examine libgcj_interpreter.
8521 * configure: Rebuilt.
8523 2000-01-07 Tom Tromey <tromey@cygnus.com>
8525 * mauve-libgcj: Don't disable ClassTest.
8527 * java/lang/natClass.cc (getClasses): Wrote.
8529 2000-01-06 Tom Tromey <tromey@cygnus.com>
8531 * java/lang/natClass.cc (_getConstructors): Correctly check
8532 whether method name is the init name.
8533 (getMethod): Look at accflags on method in `klass', not `this'.
8535 2000-01-05 Tom Tromey <tromey@cygnus.com>
8537 * java/lang/natClass.cc (getMethod): Compute offset relative to
8538 `klass's methods table, not `this's table.
8540 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
8541 In unwrapping/widening case, check whether `k' is null, not
8542 whether it is primitive. Initialize `num' from `argelts', not
8543 `paramelts'. Correct create and pass arguments to ffi_call.
8544 Don't let presence of `this' argument affect index used to look in
8546 (COPY): Set appropriate element in `values' vector.
8548 * java/lang/natClass.cc: Include <gcj/method.h>.
8550 * java/lang/Class.h (_getMethods): Correctly declare as private,
8553 * java/lang/Class.h (_getMethods): Declare.
8554 * java/lang/Class.java (_getMethods): Declare.
8555 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
8556 (getDeclaredClasses): Always return empty array.
8557 (_getMethods): New method.
8558 (getMethods): Wrote.
8559 (getDeclaredMethod): Return `rmethod'.
8560 (finit_name): New global.
8561 (getDeclaredMethods): Check for finit_name.
8562 (_getMethods): Likewise.
8563 (getMethod): Only return public methods.
8565 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
8566 jboolean and select correct ffi type on that basis.
8567 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
8568 Constructor call always has `void' return type.
8570 2000-01-04 Tom Tromey <tromey@cygnus.com>
8572 * java/lang/Class.h (getSignature): Updated.
8573 * java/lang/Class.java (getSignature): Updated.
8574 * java/lang/natClass.cc (getSignature): Added `is_constructor'
8576 (getConstructor): Ensure constructor is public.
8577 (_getConstructors): Check for public-ness of constructor when
8578 `declared' is false, not when it is true.
8580 2000-01-04 Warren Levy <warrenl@cygnus.com>
8582 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
8584 (receive): Set the sender's address in the DatagramPacket.
8586 2000-01-04 Tom Tromey <tromey@cygnus.com>
8588 * java/lang/reflect/natConstructor.cc (newInstance): Pass
8589 declaring class as return_type argument to
8590 _Jv_CallNonvirtualMethodA.
8591 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
8592 constructor case, create object and use it as `this' argument.
8593 * java/lang/Class.h (_getConstructors): Declare.
8594 (_getFields): Declare.
8595 * java/lang/Class.java (getConstructors): Wrote.
8596 (_getConstructors): New native method.
8597 (getDeclaredConstructors): Wrote.
8598 (_getFields): Declare new native method.
8599 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
8601 (getMethod): Work correctly when class is primitive.
8602 (getDeclaredMethods): Likewise. Compute offset using `method',
8604 (getDeclaredMethod): Likewise.
8605 (getConstructor): Wrote.
8606 (ConstructorClass): New define.
8607 (getDeclaredConstructor): Wrote.
8608 (_getConstructors): New method.
8609 (_getFields): New method.
8612 * Makefile.in: Rebuilt.
8613 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
8615 * prims.cc: Remove `#pragma implementation'.
8616 * gcj/array.h: Remove `#pragma interface'.
8618 * prims.cc (_Jv_equaln): New function.
8619 * java/lang/Class.java (getSignature): Declare.
8620 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
8621 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
8623 (getSignature): New method.
8624 (getDeclaredMethod): Wrote.
8626 Include StringBuffer.h.
8627 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8628 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
8630 (getSignature): Declare.
8631 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8632 (_Jv_equaln): Declare.
8633 (_Jv_CallNonvirtualMethodA): Declare.
8634 * Makefile.in: Rebuilt.
8635 * Makefile.am (nat_source_files): Added natConstructor.cc.
8636 (java/lang/reflect/Constructor.h): New target.
8637 * java/lang/reflect/natConstructor.cc: New file.
8638 * java/lang/reflect/Constructor.java (newInstance): Now native.
8639 (declaringClass): Renamed from decl_class.
8640 (offset): Renamed from index.
8641 (getType): New native method.
8642 (getModifiers): Now native.
8643 (getParameterTypes): Call getType if required.
8644 (hashCode): Include hash code from declaring class.
8645 (modifiers): Removed.
8646 (toString): Call getType if required.
8647 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8648 * java/lang/reflect/natMethod.cc (hack_call): New method.
8649 Removed `#if 0' around FFI code.
8650 Include <gnu/gcj/RawData.h>.
8651 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
8652 IllegalArgumentException when argument object and class disagree.
8653 (_Jv_GetTypesFromSignature): New function.
8655 (ObjectClass): New define.
8656 (_Jv_CallNonvirtualMethodA): New function.
8657 * java/lang/reflect/Method.java (hack_trampoline): New method.
8658 (hack_call): New native method.