1 2001-10-23 Tom Tromey <tromey@redhat.com>
3 * java/util/PropertyResourceBundle.java (handleGetObject): Now
5 * java/util/ListResourceBundle.java (handleGetObject): Now public
8 * java/io/BufferedWriter.java (localFlush): Don't synchronize.
10 2001-10-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12 * prims.cc (_Jv_Abort): Always print error message using fprintf,
13 don't try to allocate.
14 (_Jv_CreateJavaVM): Set gcj::runtimeInitialized.
15 * include/jvm.h (gcj::runtimeInitialized): New variable declaration.
16 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
17 duplicate class registration with JvFail if the runtime hasn't been
20 * java/io/BufferedWriter (write (String, int, int)): Remove redundant
22 (write (char[], int, int)): Likewise.
24 2001-10-22 Tom Tromey <tromey@redhat.com>
26 * java/util/GregorianCalendar.java (getGregorianChange): Removed
29 2001-10-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
31 * gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
32 * gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
33 * gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
34 * gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in output
37 2001-10-19 Mark Wielaard <mark@klomp.org>
39 * java/lang/Double.java: More Classpath merging
40 (isInfinite): Don't use doubleToLongBits
41 (isNaN (Object)): return v != v
42 (initIDs): make native
43 * java/lang/Float.java: Ditto
44 (isInfinite): Don't use floatToIntBits
45 (isNaN (Object)): return v != v
46 * java/lang/natDouble.cc: add empty initIDs()
48 2001-10-19 Mark Wielaard <mark@klomp.org>
50 * javax/naming/BinaryRefAddr.java: New file
51 * javax/naming/InitialContext.java: Compile fix
52 * javax/naming/InvalidNameException.java: Add comments
53 * javax/naming/Name.java: Ditto
54 * javax/naming/NamingException.java: Implement
55 * javax/naming/OperationNotSupportedException.java: Compile fix
56 * javax/naming/RefAddr.java: Implement
57 * javax/naming/StringRefAddr.java: Add comments and implement
58 * javax/naming/directory/InitialDirContext.java: Compile fix
60 2001-10-18 Tom Tromey <tromey@redhat.com>
62 * java/io/BufferedWriter.java (write(String,int,int)): Correctly
65 * java/security/Security.java (loadProviders): Removed unused
66 `pname' variable. Don't create `File' object. Don't update
68 (providerCount): Removed.
69 (insertProviderAt): Don't use `providerCount'.
70 (addProvider(Provider,int)): Likewise.
71 (removeProvider): Likewise.
72 (addProvider(Provider)): Rewrote.
73 (getProviders): Rewrote.
74 (getProvider): Don't use `providerCount'.
76 2001-10-17 Tom Tromey <tromey@redhat.com>
78 * gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
80 * java/security/SecureRandom.java (setSeed(long)): Don't set seed
81 if secureRandomSpi is not initialized.
83 * Makefile.in: Rebuilt.
84 * Makefile.am (secdir): New macro.
85 (install-data-local): Install new data files.
86 * java/security/classpath.security: New file.
87 * java/security/libgcj.security: New file.
89 * java/security/Security.java (loadProviders): Added `vendor'
91 Load both `classpath' and `java.vm.name' providers.
93 2001-10-17 Anthony Green <green@redhat.com>
95 * java/security/Security.java (loadProviders): Fix bug in how
98 2001-10-16 Tom Tromey <tromey@redhat.com>
100 * gcj/javaprims.h: Updated class list.
101 * java/util/Hashtable.java: Re-merged with Classpath.
103 2001-10-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
105 * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
107 Eliminate use of C++ static constructors.
108 * interpret.cc: Remove static Utf8Consts. Use namespace gcj.
110 * resolve.cc: Likewise.
111 * defineclass.cc: Likewise.
112 (_Jv_ClassReader::handleClassBegin): Synchronize call to
114 * include/jvm.h (void_signature, clinit_name, init_name, finit_name):
115 Declare in namespace gcj.
116 * java/lang/Class.h (Class): Remove initialization for primitive
118 (friend void _Jv_InitPrimClass): This is in prims.cc.
119 * prims.cc (_Jv_InitPrimClass): Do primitive type initialization
121 (void_signature, clinit_name, init_name, finit_name): Define in
123 (_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and
124 _Jv_InitializeSyncMutex from here. Initialize Utf8 constants.
125 Initialize primitive types.
126 * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
127 initialization routines. Don't synchronize.
128 * java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
131 2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
133 * java/util/HashMap.java (HashEntry.clone): Removed.
134 (HashMap(Map)): Use putAllInternal.
136 (putAllInternal): New method. Efficient counterpart to putAll which
138 * java/util/LinkedHashMap.java (rethread): Removed.
139 (putAllInternal): New method. Clear "head" and "tail".
140 (addEntry): New argument "callRemove". Don't call removeEldestEntry()
141 if callRemove == false.
143 * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
144 * Makefile.in: Rebuilt.
146 2001-10-15 Eric Blake <ebb9@email.byu.edu>
148 * java/util/Collection.java: Updated javadoc.
149 * java/util/Comparator.java: Updated javadoc.
150 * java/util/Enumeration.java: Updated javadoc.
151 * java/util/Iterator.java: Updated javadoc.
152 * java/util/List.java: Updated javadoc.
153 * java/util/ListIterator.java: Updated javadoc.
154 * java/util/Map.java: Updated javadoc.
155 * java/util/RandomAccess.java: New file.
156 * java/util/Set.java: Updated javadoc.
157 * java/util/SortedMap.java: Updated javadoc.
158 * java/util/SortedSet.java: Updated javadoc.
160 2001-10-15 Tom Tromey <tromey@redhat.com>
162 * java/lang/reflect/AccessibleObject.java (checkPermission):
164 Updated copyright information.
166 2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
168 * java/lang/natObject.cc (heavy_lock): Moved fields
169 old_client_data, old_finalization_proc near beginning.
170 (heavy_lock_finalization_proc): Now inline; changed type of
172 (JV_SYNC_TABLE_SZ): Now 2048.
174 (spin): `mp' now global.
175 (heavy_lock_obj_finalization_proc): Updated to correctly handle
176 heavy lock finalization.
177 (remove_all_heavy): New function.
178 (maybe_remove_all_heavy): Likewise.
179 (_Jv_MonitorEnter): Throw exception if object is NULL.
180 (_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
182 * include/jvm.h (_Jv_AllocTraceTwo): Declare.
183 * nogc.cc (_Jv_AllocTraceTwo): New function.
184 * boehm.cc (trace_two_vtable): New global.
185 (_Jv_AllocTraceTwo): New function.
187 2001-10-15 Tom Tromey <tromey@redhat.com>
189 * Makefile.in: Rebuilt.
190 * Makefile.am (awt_java_source_files): Added new file.
191 * java/beans/AppletInitializer.java: New file.
193 * java/net/SocketPermission.java (hostport, actions): Now
196 2001-10-14 Mark Wielaard <mark@klomp.org>
198 * java/lang/Double.java: Partial merge with Classpath
199 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
201 (static): new static block to load native libary (not used in libgcj)
202 (Double (String)): call parseDouble()
203 (byteValue): removed, already defined in superclass Number
204 (shortValue): likewise
205 (valueOf (String)): call new Double(String) directly
206 (compare (double,double)): new 1.4 method
207 (compareTo (Double)): call new compare(double,double) method
208 (initIDs): new private method (not used in libgcj)
209 * java/lang/Float.java: Partial merge with Classpath
210 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
212 (static): new static block to load native libary (not used in libgcj)
213 (Float (String)): call parseFloat()
214 (byteValue): removed, already defined in superclass Number
215 (shortValue): likewise
216 (valueOf (String)): call new Float(String) directly
217 (compare (float,float)): new 1.4 method
218 (compareTo (Float)): call new compare(double,double) method
220 2001-10-13 Tom Tromey <tromey@redhat.com>
222 * java/lang/SecurityManager.java (SecurityManager): Now public.
224 * java/security/AccessController.java (checkPermission): Now
225 throws AccessControlException.
226 * java/security/AllPermission.java: Class now final.
227 * java/security/Permission.java (getName): Now final.
229 (equals): New abstract method.
230 * java/security/PermissionCollection.java (linesep): Now private.
231 * java/security/Permissions.java: Class now final.
232 * java/security/Security.java (Security): New private
234 * java/security/UnresolvedPermission.java: Import
235 java.security.cert.Certificate. Class now final.
236 * java/security/acl/Group.java: Now extends Principal.
237 (isMember): Added Principal argument.
238 * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
240 * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
243 2001-10-12 Tom Tromey <tromey@redhat.com>
245 * Makefile.in: Rebuilt.
246 * Makefile.am (rmi_java_source_files): Added new files.
247 * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
249 * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
250 * gnu/java/rmi/rmic/Compile_gcj.java: New file.
251 * gnu/java/rmi/rmic/CompilerProcess.java: New file.
252 * gnu/java/rmi/rmic/Compiler.java: New file.
254 2001-10-11 Tom Tromey <tromey@redhat.com>
256 * configure: Rebuilt.
257 * configure.in: Recognize --disable-java-awt.
259 2001-10-10 Tom Tromey <tromey@redhat.com>
261 * gnu/gcj/runtime/natFinalizerThread.cc: New file.
262 * java/lang/natRuntime.cc: Include FinalizerThread.h.
263 (runFinalization): Call finalizerReady.
264 * nogc.cc (_Jv_GCInitializeFinalizers): New function.
265 * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
266 (_Jv_CreateJavaVM): Start the finalizer thread.
267 * no-threads.cc: Include InternalError.h.
268 (_Jv_ThreadStart): Throw InternalError.
269 (_Jv_ThreadInitData): Don't throw error if this is not the first
271 * Makefile.in: Rebuilt.
272 * Makefile.am (ordinary_java_source_files): Added
273 FinalizerThread.java.
274 (nat_source_files): Added natFinalizerThread.cc.
275 * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
276 * boehm.cc (_Jv_GCInitializeFinalizers): New function.
277 * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
278 * gnu/gcj/runtime/FinalizerThread.java: New file.
280 2001-10-09 Per Bothner <per@bothner.com>
282 * strtod.c (_strtod_r): Logic to check for missing digits
283 after exponent had 'else' attached to wrong 'if'.
285 2001-10-09 Mark Wielaard <mark@klomp.org>
287 * java/net/SocketImpl.java: Merge with Classpath
289 2001-10-08 Mark Wielaard <mark@klomp.org>
291 * java/net/DatagramSocketImpl.java: Merge with Classpath
293 2001-10-07 Mark Wielaard <mark@klomp.org>
295 * java/net/URLDecoder.java: Remerge with Classpath
296 * java/net/URLEncoder.java: Merge with Classpath
298 2001-10-08 Tom Tromey <tromey@redhat.com>
300 Fix for PR libgcj/4481:
301 * java/io/File.java (getParent): Handle case where path is "/".
302 (normalizePath): Use correct string for UNC leader.
304 2001-10-06 Mark Wielaard <mark@klomp.org>
306 * java/io/BufferedInputStream.java: Merge with Classpath
308 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
310 * defineclass.cc, java/awt/image/ColorModel.java,
311 java/awt/image/SampleModel.java, java/lang/Package.java,
312 java/security/cert/X509Extension.java: Fix spelling errors of
313 "separate" as "seperate", and corresponding spelling errors of
316 2001-10-05 Tom Tromey <tromey@redhat.com>
318 * java/text/DecimalFormat.java (format): Use localized minus sign
319 when generating exponent; never use `+'. Use floor to compute
322 2001-10-05 Mark Wielaard <mark@klomp.org>
324 * java/util/zip/Adler32.java: Merge with Classpath
325 * java/util/zip/CRC32.java: Ditto
326 * java/util/zip/Checksum.java: Ditto
327 * java/util/zip/DataFormatException.java: Ditto
328 * java/util/zip/ZipException.java: Ditto
330 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
332 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
334 2001-10-04 Mark Wielaard <mark@klomp.org>
336 * java/lang/reflect/Modifier.java: Merge with Classpath
338 2001-10-03 Mark Wielaard <mark@klomp.org>
340 * java/io/SequenceInputStream.java: Merge with Classpath
341 * java/io/StringBufferInputStream.java: Ditto
342 * java/util/Collections.java: Remerge with Classpath
344 2001-10-03 Tom Tromey <tromey@redhat.com>
346 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
349 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
351 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
352 * gij.cc (version): Use GCJVERSION.
354 2001-10-02 Mark Wielaard <mark@klomp.org>
356 * Makefile.am (core_java_source_files): add InheritableThreadLocal
357 * Makefile.in: regenerate
358 * gcj/javaprims.h: ditto
359 * java/lang/InheritableThreadLocal.java: new class from Classpath
360 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
361 call InheritableThreadLocal.newChildThread()
363 2001-10-01 Mark Wielaard <mark@klomp.org>
365 * Makefile.am: Add new classes
366 (core_java_source_files): CharSequence
367 (ordinary_java_source_files): Authenticator, PasswordAuthentication
368 * Makefile.in: regenerate
369 * gcj/javaprims.h: ditto
370 * java/lang/CharSequence: new class from Classpath
371 * java/lang/String.java: implements CharSequence
372 (subSequence (int,int)): new method
373 * java/lang/SubString.java: implements CharSequence
374 (subSequence (int,int)): new method
375 remerge comments with Classpath
376 * java/net/Authenticator.java: new class from Classpath
377 * java/net/PasswordAuthentication.java: ditto
379 2001-10-01 Tom Tromey <tromey@redhat.com>
381 * gcj/javaprims.h: Rebuilt class list.
382 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
383 (_Jv_GCCanReclaimSoftReference): New function.
384 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
385 (_Jv_GCCanReclaimSoftReference): Declare.
386 * java/lang/ref/Reference.java (referent): Now a RawData.
387 (create): Renamed from `created'. Added object argument.
388 (Reference): Don't initialize `referent' here.
389 * Makefile.in: Rebuilt.
390 * Makefile.am (nat_source_files): Added new file.
391 * java/lang/ref/natReference.cc: New file.
393 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
394 (_Jv_NewMultiArray): Use it. Check each array dimension.
395 (_Jv_NewMultiArray): Likewise.
396 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
398 * java/lang/reflect/natArray.cc (newInstance): Throw
399 IllegalArgumentException if there are no dimensions.
401 2001-10-01 Mark Wielaard <mark@klomp.org>
403 * java/io/FileWriter.java: Merge with Classpath.
404 * java/io/FilterInputStream.java: Ditto.
405 (mark): no longer synchronized
407 * java/io/FilterOutputStream.java: Merge with Classpath.
408 * java/io/FilterReader.java: Ditto.
409 (mark): no longer synchronized
411 * java/io/FilterWriter.java: Merge with Classpath.
412 * java/io/Writer.java: Ditto.
413 * java/lang/Compiler.java: Ditto.
414 * java/lang/Process.java: Ditto.
415 * java/lang/Void.java: Ditto.
416 * java/net/ContentHandler.java: Ditto.
417 * java/net/DatagramPacket.java: Ditto.
418 * java/net/MulticastSocket.java: Merge comments with Classpath.
420 2001-09-30 Mark Wielaard <mark@klomp.org>
422 * java/io/DataInput.java: Merge with Classpath.
423 * java/io/DataOutput.java: Idem.
424 * java/io/FilenameFilter.java: Idem.
425 * java/io/Serializable.java: Idem.
426 * java/lang/Cloneable.java: Idem.
427 * java/lang/Comparable.java: Idem.
428 * java/lang/Runnable.java: Idem.
429 * java/lang/reflect/Member.java: Idem.
430 * java/net/ContentHandlerFactory.java: Idem.
431 * java/net/FileNameMap.java: Idem.
432 * java/net/SocketImplFactory.java: Idem.
433 * java/net/SocketOptions.java: Idem.
434 * java/net/URLStreamHandlerFactory.java: Idem.
436 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
438 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
439 an uninitialized target class.
441 * gnu/gcj/protocol/file/Connection.java (connect): Throw
442 FileNotFoundException if appropriate.
443 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
444 IOException if we got a file: url with a hostname. Comment out protocol
445 switch to ftp for now.
446 * java/net/URL.java (URL): Include protocol name in exception message
447 when handler can't be found.
449 2001-09-28 Per Bothner <per@bothner.com>
451 * gnu/gcj/runtime/SharedLibLoader.java: New class.
452 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
453 * Makefile.am: Update accordingly.
454 * configure.in: Add AC_CHECK_LIB for dlopen.
455 * include/config.h.in: Add HAVE_DLOPEN.
457 2001-09-29 Jeff Sturm <jsturm@one-point.com>
459 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
460 * Makefile.in: Rebuilt.
462 2001-09-27 Tom Tromey <tromey@redhat.com>
464 * java/util/IdentityHashMap.java (containsKey): Use getHash.
468 (getHash): New method.
469 (tombstone, emptyslot): Now static final.
470 (put): Correctly determine when to rehash, and correctly rehash.
471 (containsKey, remove): Test against table length with `>='.
473 2001-09-26 Tom Tromey <tromey@redhat.com>
475 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
477 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
478 Re-merged with Classpath.
480 * java/io/DataInputStream.java (readChar): Use readFully.
482 (readLong): Likewise.
483 (readShort): Likewise.
484 (readUnsignedShort): Likewise.
486 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
488 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
489 IllegalThreadStateException if process hasn't exited yet.
490 * java/lang/natPosixProcess.cc (exitValue): Removed.
491 (waitFor): Only check thread interrupted status if waitpid() returned
492 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
495 * java/security/cert/X509Extension.java: Merge from classpath.
497 2001-09-22 Anthony Green <green@redhat.com>
499 * java/security/DummyKeyPairGenerator.java (initialize): New
500 method (with AlgorithmParameterSpec argument).
502 2001-09-22 Anthony Green <green@redhat.com>
504 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
506 * gnu/java/security/provider/SHA1PRNG.java: Extend from
508 (engineNextBytes): Fix order of memory copies.
510 2001-09-21 Richard Henderson <rth@redhat.com>
512 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
513 add get_method, set_method, vtable_elt_size, new_vtable.
514 (_Jv_ArrayVTable): Derive from _Jv_VTable.
515 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
516 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
517 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
519 2001-09-21 Richard Henderson <rth@redhat.com>
521 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
522 * java/lang/mprec.c (lo0bits): Fix paren typo.
524 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
526 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
527 blocking IO via pthread_kill().
528 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
529 interrupted status flag only if ::write returned an error.
530 (write (jbyteArray, jint, jint): Likewise.
531 (read (jint)): Likewise.
532 (read (jbyteArray, jint, jint): Likewise.
534 2001-09-19 Anthony Green <green@redhat.com>
536 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
539 2001-09-17 Andreas Jaeger <aj@suse.de>
541 * jni.cc (array_from_valist): Use promoted types for va_arg.
543 2001-09-16 Anthony Green <green@redhat.com>
545 * gnu/java/locale/LocaleInformation.java: Extend
546 LocaleInformation_en_US, not LocaleInformation_en.
548 2001-09-16 Anthony Green <green@redhat.com>
550 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
552 2001-09-14 Tom Tromey <tromey@redhat.com>
554 * java/util/TimeZone.java: Updated list of timezones from
557 * java/lang/CloneNotSupportedException.java: Re-merged with
560 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
562 * java/io/File.java (normalizePath): Use equals() not '==' for string
565 * java/util/Hashtable.java (Enumerator): Ensure that if
566 hasMoreElements() returns true, nextElement() will always return
567 something even if the table has been modified.
569 2001-09-12 Tom Tromey <tromey@redhat.com>
571 * Makefile.in: Rebuilt.
572 * Makefile.am (class-check): New target.
574 2001-09-11 Tom Tromey <tromey@redhat.com>
576 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
578 2001-09-10 Tom Tromey <tromey@redhat.com>
580 * java/util/Properties.java (load): Correctly read \u sequences.
581 Report from Anthony Green.
583 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
585 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
586 and $(MULTIBUILDTOP).
587 * configure: Re-generate.
589 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
591 * include/jvm.h (_Jv_AllocRawObj): New prototype.
592 * boehm.cc (_Jv_AllocRawObj): Implement.
593 * nogc.cc (_Jv_AllocRawObj): Likewise.
594 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
596 2001-09-06 Anthony Green <green@redhat.com>
598 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
599 redundant method calls.
600 (emptyLocale): New private member.
601 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
604 2001-09-06 Tom Tromey <tromey@redhat.com>
606 * java/text/RuleBasedCollator.java (clone): Rewrote.
607 (RuleBasedCollator(RuleBasedCollator)): Removed.
608 * java/text/MessageFormat.java: Re-merged from Classpath.
609 * java/text/DecimalFormat.java: Re-merged from Classpath.
611 2001-09-06 Anthony Green <green@redhat.com>
613 * include/jvm.h: Declare _Jv_RegisterResource.
614 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
615 gnu/gcj/protocol/core/Connection.java,
616 gnu/gcj/protocol/core/Handler.java,
617 gnu/gcj/protocol/core/CoreInputStream.java,
618 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
619 * java/net/URL.java (setURLStreamHandler): Use
620 gnu.gcj.protocol.core.Handler for the core protocol.
621 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
622 end of java.class.path.
623 * Makefile.am (ordinary_java_source_files): Add new java files.
624 (nat_source_files): Add new native code files.
625 * Makefile.in: Rebuilt.
627 2001-09-05 Tom Tromey <tromey@redhat.com>
629 * java/util/Properties.java: Re-merged from Classpath.
631 From Eric Blake, via Classpath:
632 * java/lang/String.java (CaseInsensitiveComparator): New class.
633 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
635 * java/util/Date.java: Re-merged with Classpath.
637 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
639 2001-09-05 Corey Minyard <minyard@acm.org>
640 Tom Tromey <tromey@redhat.com>
642 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
643 (_Jv_RegisterClassHookDefault): Throw error if a class is
646 2001-09-05 Tom Tromey <tromey@redhat.com>
648 * java/lang/natSystem.cc (init_properties): Default locale is
651 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
653 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
654 here, DecimalFormat.applyPattern() does not throw it.
656 2001-09-04 Tom Tromey <tromey@redhat.com>
658 * java/util/AbstractMap.java: Re-merged with Classpath.
659 * java/util/IdentityHashMap.java: Re-merged with Classpath.
661 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
662 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
663 gnu/gcj/text/LocaleData_en_US.java: Removed.
664 * java/text/DateFormatSymbols.java (clone): Use Classpath
666 (equals): Simplified.
667 (DateFormatSymbols): Look in gnu.java.locale for information.
668 (DateFormatSymbols(DateFormatSymbols)): Removed.
669 (safeGetResource): Removed.
670 (DateFormatSymbols): Throws MissingResourceException.
671 (ampmsDefault, erasDefault, localPatternCharsDefault,
672 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
673 weekdaysDefault, zoneStringsDefault): Removed.
674 * java/text/Collator.java (getAvailableLocales): Use modified
675 Classpath implementation.
676 (getInstance): Look in gnu.java.locale for information.
678 * java/text/MessageFormat.java: Reindented.
680 * java/text/FieldPosition.java: Merged with Classpath.
681 * java/text/ParsePosition.java: Merged with Classpath.
682 * java/text/Format.java: Merged with Classpath.
683 * java/text/StringCharacterIterator.java
684 (StringCharacterIterator(StringCharacterIterator,int,int)): New
685 constructor from Classpath.
686 * java/text/Annotation.java,
687 java/text/AttributedCharacterIterator.java,
688 java/text/AttributedString.java,
689 java/text/AttributedStringIterator.java: New from Classpath.
690 * java/text/CharacterIterator.java: Copied from Classpath.
691 * java/text/ChoiceFormat.java: Reindented.
693 * gnu/java/text/BaseBreakIterator.java,
694 gnu/java/text/CharacterBreakIterator.java,
695 gnu/java/text/LineBreakIterator.java,
696 gnu/java/text/LocaleData_en.java,
697 gnu/java/text/LocaleData_en_US.java,
698 gnu/java/text/SentenceBreakIterator.java,
699 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
700 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
702 * java/text/BreakIterator.java (getAvailableLocales): Use
703 Classpath implementation.
704 (getInstance): Look in gnu.java.locale for information.
705 (getCharacterInstance, getLineInstance, getSentenceInstance,
706 getWordInstance): Look in gnu.java.text for implementations.
707 * java/text/DecimalFormatSymbols.java: Reindented
708 (clone): Use Classpath implementation.
709 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
710 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
712 * java/text/DateFormat.java: Merged with Classpath.
713 (getAvailableLocales): Use Classpath implementation.
714 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
715 (computeInstance): Look in gnu.java.locale for information.
716 * java/text/NumberFormat.java: Reindented.
717 (computeInstance): Look in gnu.java.locale for information.
718 (getAvailableLocales): Use implementation from Classpath.
719 (setMaximumIntegerDigits): Likewise.
720 (setMinimumIntegerDigits): Likewise.
721 (setMaximumFractionDigits): Likewise.
723 * java/text/DecimalFormat.java: Reindented.
724 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
725 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
726 * Makefile.in: Rebuilt.
727 * Makefile.am (ordinary_java_source_files): Added all new files.
728 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
729 * java/security/spec/AlgorithmParameterSpec.java,
730 java/security/spec/KeySpec.java: Re-merged with Classpath.
732 Fix for PR libgcj/4213:
733 * Makefile.am (ordinary_java_source_files): Added new file.
734 * gnu/gcj/text/LocaleData.java: New file.
736 2001-09-03 Tom Tromey <tromey@redhat.com>
738 * java/lang/reflect/natField.cc (set): Allow for case when the
739 value is null. Fixes PR libgcj/4208.
741 * gcj/javaprims.h: Regenerated class list.
742 * java/lang/IllegalThreadStateException.java,
743 java/lang/InstantiationException.java: Minor comment tweaks to
744 satisfy libgcj `classes.pl' script.
746 2001-09-01 Tom Tromey <tromey@redhat.com>
748 * Makefile.in: Rebuilt.
749 * Makefile.am (core_java_source_files): Added
750 UnsupportedClassVersionError.
751 * java/lang/UnsupportedClassVersionError.java: New file from
754 * java/io/CharConversionException.java, java/io/EOFException.java,
755 java/io/FileNotFoundException.java, java/io/IOException.java,
756 java/io/InterruptedIOException.java,
757 java/io/ObjectStreamException.java,
758 java/io/OptionalDataException.java,
759 java/io/StreamCorruptedException.java,
760 java/io/SyncFailedException.java,
761 java/io/UTFDataFormatException.java,
762 java/io/UnsupportedEncodingException.java,
763 java/lang/AbstractMethodError.java,
764 java/lang/ArithmeticException.java,
765 java/lang/ArrayIndexOutOfBoundsException.java,
766 java/lang/ArrayStoreException.java,
767 java/lang/ClassCastException.java,
768 java/lang/ClassCircularityError.java,
769 java/lang/ClassFormatError.java,
770 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
771 java/lang/Exception.java,
772 java/lang/ExceptionInInitializerError.java,
773 java/lang/IllegalAccessError.java,
774 java/lang/IllegalAccessException.java,
775 java/lang/IllegalArgumentException.java,
776 java/lang/IllegalMonitorStateException.java,
777 java/lang/IllegalStateException.java,
778 java/lang/IllegalThreadStateException.java,
779 java/lang/IncompatibleClassChangeError.java,
780 java/lang/IndexOutOfBoundsException.java,
781 java/lang/InstantiationError.java,
782 java/lang/InstantiationException.java,
783 java/lang/InternalError.java, java/lang/InterruptedException.java,
784 java/lang/LinkageError.java,
785 java/lang/NegativeArraySizeException.java,
786 java/lang/NoClassDefFoundError.java,
787 java/lang/NoSuchFieldError.java,
788 java/lang/NoSuchFieldException.java,
789 java/lang/NoSuchMethodError.java,
790 java/lang/NoSuchMethodException.java,
791 java/lang/NullPointerException.java,
792 java/lang/NumberFormatException.java,
793 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
794 java/lang/SecurityException.java,
795 java/lang/StackOverflowError.java,
796 java/lang/StringIndexOutOfBoundsException.java,
797 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
798 java/lang/UnsatisfiedLinkError.java,
799 java/lang/UnsupportedOperationException.java,
800 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
801 java/lang/reflect/InvocationTargetException.java,
802 java/net/BindException.java, java/net/ConnectException.java,
803 java/net/MalformedURLException.java,
804 java/net/NoRouteToHostException.java,
805 java/net/ProtocolException.java, java/net/SocketException.java,
806 java/net/UnknownHostException.java,
807 java/net/UnknownServiceException.java,
808 java/text/ParseException.java: Copied from Classpath, thanks to
809 Mark Wielaard who did the merge.
811 * java/lang/System.java (getProperty): Use single argument form of
812 SecurityManager.checkPropertyAccess.
813 * Makefile.in: Rebuilt.
814 * Makefile.am (core_java_source_files): Added VMSecurityManager.
815 * java/lang/VMSecurityManager.java: New file.
816 * java/lang/SecurityManager.java: Merged with Classpath.
818 2001-08-31 Per Bothner <per@bothner.com>
820 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
821 (_Jv_RegisterClassHookDefault): Likewise.
822 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
823 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
824 (_Jv_RegisterClassHookDefault): New.function.
825 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
827 * java/lang/ClassLoader.java (system): Remove static field.
828 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
829 directly instead of using it to set the system field.
830 (loadClass): Use VMClassLoader.instance instead of system field.
831 (findSystemClass): Similar.
832 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
833 than ClassLoader::system which no longer exists.
834 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
836 2001-08-31 Tom Tromey <tromey@redhat.com>
838 * java/io/BufferedReader.java, java/io/ObjectInput.java,
839 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
840 Re-merged with Classpath.
842 Re-merge with Classpath:
843 * java/util/Comparator (equals): Added.
844 * java/io/PipedWriter.java (write): Changed argument to `int'.
846 * java/io/FileDescriptor.java (FileDescriptor()): New
848 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
850 * Makefile.in: Rebuilt.
851 * Makefile.am (ordinary_java_source_files): Removed
852 EnumerationChain, added DoubleEnumeration.
853 (nat_source_files): Added natResourceBundle.cc.
854 * java/util/natResourceBundle.cc: New file.
855 * gnu/java/util/DoubleEnumeration.java: New file.
856 * gnu/gcj/util/EnumerationChain.java: Removed.
857 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
858 * java/util/ResourceBundle.java: Merged with Classpath.
859 * java/util/StringTokenizer.java: Merged with Classpath.
860 * java/util/Locale.java: Merged with Classpath.
861 * java/util/Random.java: Merged with Classpath.
862 * java/util/PropertyResourceBundle.java: Merged with Classpath.
863 * java/util/ListResourceBundle.java: Merged with Classpath.
864 * java/util/ConcurrentModificationException.java: Re-merged with
866 * java/util/EmptyStackException.java: Likewise.
867 * java/util/MissingResourceException.java: Likewise.
868 * java/util/NoSuchElementException.java: Likewise.
869 * java/util/TooManyListenersException.java: Likewise.
871 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
872 * java/io/OptionalDataException.java: Merged with Classpath.
874 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
876 * exception.cc (PERSONALITY_FUNCTION): Simplify
879 2001-08-31 Tom Tromey <tromey@redhat.com>
881 * java/io/ByteArrayInputStream.java: Merged with Classpath.
883 2001-08-30 Tom Tromey <tromey@redhat.com>
885 * java/io/BufferedReader.java: Re-merged with Classpath.
887 2001-08-28 Per Bothner <per@bothner.com>
889 * java/math/BigInteger.java (init(int,Random)): New method.
890 Move body of constructor <init>(int,Random)) here.
891 Re-write it to avoid constructing unneeded temporaries.
892 (<init>(int,int,Random)): Use new init method to avoid constructing
893 extra temporary BigIntegers.
895 2001-08-27 Tom Tromey <tromey@redhat.com>
897 * java/rmi/activation/Activatable.java,
898 java/rmi/activation/ActivateFailedException.java,
899 java/rmi/activation/ActivationDesc.java,
900 java/rmi/activation/ActivationException.java,
901 java/rmi/activation/ActivationGroup.java,
902 java/rmi/activation/ActivationGroupDesc.java,
903 java/rmi/activation/ActivationGroupID.java,
904 java/rmi/activation/ActivationID.java,
905 java/rmi/activation/ActivationInstantiator.java,
906 java/rmi/activation/ActivationMonitor.java,
907 java/rmi/activation/ActivationSystem.java,
908 java/rmi/activation/Activator.java,
909 java/rmi/activation/UnknownGroupException.java,
910 java/rmi/activation/UnknownObjectException.java,
911 java/rmi/AccessException.java,
912 java/rmi/AlreadyBoundException.java,
913 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
914 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
915 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
916 java/rmi/NotBoundException.java,
917 java/rmi/RMISecurityException.java,
918 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
919 java/rmi/RemoteException.java, java/rmi/ServerError.java,
920 java/rmi/ServerException.java,
921 java/rmi/ServerRuntimeException.java,
922 java/rmi/StubNotFoundException.java,
923 java/rmi/UnexpectedException.java,
924 java/rmi/UnknownHostException.java,
925 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
926 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
927 java/rmi/registry/LocateRegistry.java,
928 java/rmi/registry/Registry.java,
929 java/rmi/registry/RegistryHandler.java,
930 java/rmi/server/ExportException.java,
931 java/rmi/server/LoaderHandler.java,
932 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
933 java/rmi/server/Operation.java,
934 java/rmi/server/RMIClassLoader.java,
935 java/rmi/server/RMIClientSocketFactory.java,
936 java/rmi/server/RMIFailureHandler.java,
937 java/rmi/server/RMIServerSocketFactory.java,
938 java/rmi/server/RMISocketFactory.java,
939 java/rmi/server/RemoteCall.java,
940 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
941 java/rmi/server/RemoteServer.java,
942 java/rmi/server/RemoteStub.java,
943 java/rmi/server/ServerCloneException.java,
944 java/rmi/server/ServerNotActiveException.java,
945 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
946 java/rmi/server/SkeletonMismatchException.java,
947 java/rmi/server/SkeletonNotFoundException.java,
948 java/rmi/server/SocketSecurityException.java,
949 java/rmi/server/UID.java,
950 java/rmi/server/UnicastRemoteObject.java,
951 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
952 gnu/java/rmi/dgc/DGCImpl_Skel.java,
953 gnu/java/rmi/dgc/DGCImpl_Stub.java,
954 gnu/java/rmi/registry/RegistryImpl.java,
955 gnu/java/rmi/registry/RegistryImpl_Skel.java,
956 gnu/java/rmi/registry/RegistryImpl_Stub.java,
957 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
958 gnu/java/rmi/server/ProtocolConstants.java,
959 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
960 gnu/java/rmi/server/RMIHashes.java,
961 gnu/java/rmi/server/RMIObjectInputStream.java,
962 gnu/java/rmi/server/RMIObjectOutputStream.java,
963 gnu/java/rmi/server/UnicastConnection.java,
964 gnu/java/rmi/server/UnicastConnectionManager.java,
965 gnu/java/rmi/server/UnicastRef.java,
966 gnu/java/rmi/server/UnicastRemoteCall.java,
967 gnu/java/rmi/server/UnicastRemoteStub.java,
968 gnu/java/rmi/server/UnicastServer.java,
969 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
970 Kaffe. Relabelled classes to fit into Classpath tree.
971 * Makefile.in: Rebuilt.
972 * Makefile.am (rmi_java_source_files): New macro.
973 (ordinary_java_source_files): Reference it.
974 (bin_PROGRAMS): Added rmic and rmiregistry.
975 (rmic_SOURCES): New macro.
976 (EXTRA_rmic_SOURCES): Likewise.
977 (rmic_LDFLAGS): Likewise.
978 (rmic_LINK): Likewise.
979 (rmic_LDADD): Likewise.
980 (rmic_DEPENDENCIES): Likewise.
981 (rmiregistry_SOURCES): New macro.
982 (EXTRA_rmiregistry_SOURCES): Likewise.
983 (rmiregistry_LDFLAGS): Likewise.
984 (rmiregistry_LINK): Likewise.
985 (rmiregistry_LDADD): Likewise.
986 (rmiregistry_DEPENDENCIES): Likewise.
988 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
990 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
992 * Makefile.am: New friends for java/lang/Thread.h.
993 * prims.cc (runFirst): Removed.
994 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
995 (_Jv_RunMain): Now takes either a klass or class name parameter.
996 Create a gnu.gcj.runtime.FirstThread and attach the native thread
997 to that, then run it using _Jv_ThreadRun. Remove special handling of
998 jar files, instead pass is_jar parameter through to FirstThread.
999 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
1000 of _Jv_AttachCurrentThread.
1001 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
1002 (run): New method. Take care of looking up main class manifest
1003 attribute and calling forName if neccessary. Then call call_main.
1004 (call_main): New native method.
1005 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
1006 relocated from prims.cc. Look up and call main method.
1007 * java/lang/Thread.java (run_): Removed.
1008 * java/lang/natThread.cc (run_): Renamed to...
1009 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
1010 (_Jv_NotifyThreadStart): here. New function.
1011 (countStackFrames, destroy, resume, suspend, stop): Throw
1012 UnsupportedOperationExceptions rather than JvFail'ing.
1013 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
1014 Existing version wraps new variant.
1017 2001-08-23 Tom Tromey <tromey@redhat.com>
1019 * java/lang/reflect/Field.java (toString): Use
1020 Method.appendClassName.
1021 * java/lang/reflect/Constructor.java (toString): Use
1022 Method.appendClassName.
1023 * java/lang/reflect/Method.java: Reindented.
1024 (appendClassName): New method.
1026 * defineclass.cc (handleMethod ): Initialize `throws' field of
1028 (read_one_method_attribute): Handle Exceptions attribute.
1029 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
1030 (ObjectClass): Removed.
1031 (getType): Compute `exception_types'.
1032 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
1034 2001-08-21 Anthony Green <green@redhat.com>
1036 * java/lang/natClassLoader.cc (findClass): Search for
1037 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
1039 2001-08-21 Jeff Sturm <jsturm@one-point.com>
1041 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
1044 2001-08-20 Tom Tromey <tromey@redhat.com>
1046 * java/awt/GridBagConstraints.java: Removed comment.
1048 * jni.cc (nathash, nathash_count, nathash_size): New globals.
1049 (DELETED_ENTRY): New define.
1050 (hash): New function.
1051 (nathash_find_slot): Likewise.
1052 (natrehash): Likewise.
1053 (nathash_add): Likewise.
1054 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
1056 (nathash_find): New function.
1057 (_Jv_LookupJNIMethod): Use it. Synchronize body.
1058 (call): Synchronize around assignment.
1060 2001-08-17 Jeff Sturm <jsturm@one-point.com>
1062 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
1063 starting from zero offset.
1065 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1067 * boehm.cc: Include gc_local_alloc.h if appropriate.
1068 (GC_GENERIC_MALLOC): Don't define.
1069 (MAYBE_MARK): Redefine for GC 6.0.
1070 (_Jv_MarkObj): Mark class differently.
1071 (_Jv_AllocArray): Use GC_generic_malloc.
1073 2001-08-17 Mark J Roberts <mjr@anarcast.net>
1075 * java/math/BigInteger.java (randBytes): New method.
1076 (BigInteger(int,Random)): Use randBytes.
1078 2001-08-17 Tom Tromey <tromey@redhat.com>
1080 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
1082 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1084 * BigInteger.java: fix right shifts by nonzero multiples of 32.
1086 2001-08-15 Tom Tromey <tromey@redhat.com>
1088 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
1089 (local_ref_table, global_ref_table): Now IdentityHashMap.
1090 (_Jv_JNI_Init): Updated for new types.
1091 (mark_for_gc): Likewise.
1092 (unmark_for_gc): Likewise.
1093 * gcj/javaprims.h: Rebuilt class list.
1094 * Makefile.in: Rebuilt.
1095 * Makefile.am (core_java_source_files): Added new file.
1096 * java/util/IdentityHashMap.java: New file.
1098 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
1101 2001-08-09 Tom Tromey <tromey@redhat.com>
1103 * java/awt/image/SampleModel.java (getPixel): Set correct array
1104 element. From Chris Meyer.
1106 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
1108 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
1109 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
1111 2001-08-06 Tom Tromey <tromey@redhat.com>
1113 * java/io/InputStreamReader.java (refill): Only call refill on
1114 BufferedInputStream when appropriate constraints are met.
1116 2001-08-05 Tom Tromey <tromey@redhat.com>
1118 * java/io/StringWriter.java: Merged with Classpath.
1119 * java/io/InputStream.java: Merged with Classpath.
1120 * java/io/OutputStream.java: Merged with Classpath.
1121 * java/io/PushbackInputStream.java: Merged with Classpath.
1122 * java/io/CharArrayReader.java: Merged with Classpath.
1123 * java/io/CharArrayWriter.java: Merged with Classpath.
1125 2001-08-02 Tom Tromey <tromey@redhat.com>
1127 * prims.cc (JNI_OnLoad): Don't declare.
1128 (_JNI_OnLoad): Don't define.
1129 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
1131 2001-08-02 Tom Tromey <tromey@redhat.com>
1133 * java/io/RandomAccessFile.java (seek): Let seek go past end of
1135 (skipBytes): Don't fail if seeking past end of file.
1136 * java/io/FileInputStream.java (skip): Don't fail if seeking past
1138 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
1140 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
1142 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
1144 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
1146 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
1148 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
1149 to initialize global_ref_table/local_ref_table.
1151 2001-08-02 Tom Tromey <tromey@redhat.com>
1153 * configure: Rebuilt.
1154 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
1157 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1159 * include/posix.h (_POSIX_PII_SOCKET): Define.
1160 * configure.in (HAVE_SOCKLEN_T): Define.
1161 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
1163 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
1164 (java::net::PlainSocketImpl::accept): Use it.
1165 Fixes PRs libgcj/3694, libgcj/3696.
1167 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
1168 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
1169 * configure, include/config.h.in: Regenerate.
1170 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
1171 (mcastGrp): Likewise.
1172 (java::net::PlainDatagramSocketImpl::setOption): Guard against
1173 missing IPV6_MULTICAST_IF.
1174 Fixes PR libgcj/3694.
1176 2001-08-01 Jeff Sturm <jsturm@one-point.com>
1178 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
1180 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
1182 * Makefile.in: Rebuilt.
1183 * Makefile.am (GCJLINK): Added --tag=GCJ.
1184 (LIBLINK): Likewise.
1186 2001-07-30 Tom Tromey <tromey@redhat.com>
1188 * java/util/Date.java: Re-merged with Classpath.
1190 2001-07-30 Jeff Sturm <jsturm@one-point.com>
1192 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
1193 (_Jv_bind): New static function.
1194 (bind): Use _Jv_bind.
1195 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1196 (_Jv_bind, _Jv_connect): New static functions.
1197 (bind): Use _Jv_bind.
1198 (connect): Use _Jv_connect.
1200 2001-07-30 Tom Tromey <tromey@redhat.com>
1201 Corey Minyard <minyard@acm.org>
1203 * gnu/gcj/convert/natIconv.cc (done): New methods.
1204 * gnu/gcj/convert/Output_iconv.java (done): New method.
1205 * gnu/gcj/convert/Input_iconv.java (done): New method.
1206 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1208 (getDefaultEncodingClass): Removed.
1209 (getDefaultEncoder): Use getEncoder.
1211 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1213 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1215 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1217 (getDefaultDecodingClass): Removed.
1218 (getDefaultDecoder): Use getDecoder.
1219 (getDecoder): Look up decoder in cache.
1221 * java/lang/natString.cc (init): Call `done' on converter.
1222 (getBytes): Likewise.
1224 2001-07-30 Tom Tromey <tromey@redhat.com>
1226 * java/lang/Integer.java: Merged with Classpath.
1228 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1230 * java/util/GregorianCalendar.java (GregorianCalendar): Call
1231 setTimeInMillis() to set the default/current time.
1233 2001-07-29 Mark Wielaard <mark@klomp.org>
1235 * HACKING: add description on updating namespace
1237 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1239 * java/util/Calendar.java (set): Never recompute fields here. They
1240 will already be set if someone set time explicitly, and it can cause
1241 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1242 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1243 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1245 * java/text/SimpleDateFormat.java (defaultCentury): New field.
1246 (readObject): Call set2DigitYearStart if appropriate so that
1247 defaultCentury is calculated.
1248 (SimpleDateFormat): Don't bother clearing calendar here. Call
1249 computeCenturyStart().
1250 (set2DigitYearStart): Calculate and set defaultCentury.
1251 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1253 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1254 2 numeric digits, use the 80-20 heuristic to parse the value into a
1255 default century based on defaultCenturyStart.
1256 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1258 2001-07-25 Tom Tromey <tromey@redhat.com>
1260 * Makefile.in: Rebuilt.
1261 * Makefile.am (libgcj.jar): Correctly fail when bytecode
1264 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1266 * prims.cc (_JNI_OnLoad): New function.
1267 (JNI_OnLoad): Use it.
1268 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1270 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1272 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1273 Makefile.in: Regenerate.
1275 2001-07-24 Tom Tromey <tromey@redhat.com>
1277 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1280 2001-07-23 Tom Tromey <tromey@redhat.com>
1282 * gcj/javaprims.h: Rebuilt class list.
1283 * Makefile.in: Rebuilt.
1284 * Makefile.am (core_java_source_files): Added VMClassLoader.
1285 * java/lang/VMClassLoader.java: New file.
1286 * java/lang/Boolean.java: Merged with Classpath.
1287 * java/lang/Byte.java: Merged with Classpath.
1288 * java/lang/Integer.java: Merged with Classpath.
1289 * java/lang/Long.java: Merged with Classpath.
1290 * java/lang/Number.java: Merged with Classpath.
1291 * java/lang/Short.java: Merged with Classpath.
1293 2001-07-22 Jeff Sturm <jsturm@one-point.com>
1295 * configure.host: Enable hash synchronization for alpha*-*.
1296 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1298 * java/lang/natObject.cc (compare_and_swap, release_set,
1299 compare_and_swap_release): Added inline functions for alpha.
1301 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1303 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1304 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1305 back to old RFC 2133 variants if missing.
1307 2001-07-18 Tom Tromey <tromey@redhat.com>
1309 * java/io/natFileWin32.cc (_access): Renamed.
1311 * java/io/natFile.cc (_access): Renamed.
1313 * java/io/File.java (access, stat): Add leading `_' to name.
1314 Updated all callers.
1316 2001-07-18 Tom Tromey <tromey@redhat.com>
1319 * libgcj.spec.in (*lib): Added LIBICONV.
1320 * configure: Rebuilt.
1321 * configure.in: Call AM_ICONV. Don't check for iconv function.
1322 Add parameters to JV_HASH_SYNCHRONIZATION define.
1323 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1325 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1327 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1328 not by setting its size field.
1330 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1332 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1335 2001-07-12 Tom Tromey <tromey@redhat.com>
1336 David Brownell <david-b@pacbell.net>
1338 Fix for PR libgcj/3426:
1339 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1341 (read): Throw exception if character conversion fails.
1342 * java/io/BufferedInputStream.java (refill): Now package-private.
1343 * java/io/InputStreamReader.java (ready): Simplified.
1344 (refill): New method.
1347 2001-07-12 Tom Tromey <tromey@redhat.com>
1349 Report from Henner Zeller:
1350 * java/io/FileOutputStream.java (FileOutputStream): Throw
1351 FileNotFoundException, not IOException.
1353 2001-07-10 Anthony Green <green@redhat.com>
1355 * Makefile.in: Rebuilt.
1356 * Makefile.am: Add new files.
1357 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1358 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1359 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1360 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1361 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1362 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1363 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1364 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1365 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1366 org/w3c/dom/ranges/DocumentRange.java,
1367 org/w3c/dom/ranges/Range.java,
1368 org/w3c/dom/ranges/RangeException.java,
1369 org/w3c/dom/traversal/DocumentTraversal.java,
1370 org/w3c/dom/traversal/NodeFilter.java,
1371 org/w3c/dom/traversal/NodeIterator.java,
1372 org/w3c/dom/traversal/TreeWalker.java,
1373 org/xml/sax/ext/DeclHandler.java,
1374 org/xml/sax/ext/LexicalHandler.java,
1375 org/xml/sax/helpers/AttributeListImpl.java,
1376 org/xml/sax/helpers/AttributesImpl.java,
1377 org/xml/sax/helpers/DefaultHandler.java,
1378 org/xml/sax/helpers/LocatorImpl.java,
1379 org/xml/sax/helpers/NamespaceSupport.java,
1380 org/xml/sax/helpers/ParserAdapter.java,
1381 org/xml/sax/helpers/ParserFactory.java,
1382 org/xml/sax/helpers/XMLFilterImpl.java,
1383 org/xml/sax/helpers/XMLReaderAdapter.java,
1384 org/xml/sax/helpers/XMLReaderFactory.java,
1385 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1386 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1387 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1388 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1389 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1390 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1391 org/xml/sax/SAXNotRecognizedException.java,
1392 org/xml/sax/SAXNotSupportedException.java,
1393 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1394 org/xml/sax/XMLReader.java: New files.
1396 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1398 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1399 * Makefile.in: Regenerate.
1400 * java/lang/ThreadLocal.java: Initial import.
1402 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1404 * Makefile.am (libgcj.jar): Don't recursively make
1405 built_java_source_files. Avoid long command lines.
1406 Don't change to $(srcdir) to invoke javac.
1407 (libgcj.la, libgcjx.la); Avoid long command lines.
1408 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1409 * Makefile.in: Rebuilt.
1411 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1413 * include/i386-signal.h: Don't do anything with unsigned divide
1414 overflow except throw an exception.
1416 2001-07-05 Tom Tromey <tromey@redhat.com>
1419 * java/lang/Class.h (Class(void)): Now private. Removed
1420 implementation. From dmorsberger@sensysdl.com.
1422 2001-07-02 Tom Tromey <tromey@redhat.com>
1424 Fix for PR bootstrap/3281:
1425 * aclocal.m4, configure: Rebuilt.
1426 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1427 Correctly compute libgcj_basedir.
1428 (mkinstalldirs): Define and subst.
1430 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1433 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1436 2001-06-27 Tom Tromey <tromey@redhat.com>
1438 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1441 2001-06-25 Tom Tromey <tromey@redhat.com>
1443 * scripts/encodings.pl: Generate lower-case names. Updated URL
1444 for `character-sets' file.
1445 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1447 Rebuilt list of aliases.
1449 2001-06-25 Tom Tromey <tromey@redhat.com>
1451 * java/io/natFileDescriptorPosix.cc (open): Change error message
1452 formatting. From David Brownell.
1454 2001-06-21 Tom Tromey <tromey@redhat.com>
1456 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1459 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1461 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1462 extraneous/malformed sign word.
1464 2001-06-15 Tom Tromey <tromey@redhat.com>
1466 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1468 2001-06-15 Tom Tromey <tromey@redhat.com>
1470 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1471 NULL if no library on the list has the symbol.
1472 (init): Call add_library on the program itself.
1473 * prims.cc (JvRunMain): Initialize Runtime before searching for
1475 (_Jv_RunMain): Likewise.
1477 2001-06-15 Tom Tromey <tromey@redhat.com>
1479 * jni.cc (ClassClass): Removed; updated all users.
1480 (ObjectClass): Likewise.
1481 (ThrowableClass): Likewise.
1482 (MethodClass): Likewise.
1483 (ThreadGroupClass): Likewise.
1484 (local_ref_table): Renamed from `ref_table'.
1485 (global_ref_table): New global.
1486 (_Jv_JNI_Init): Initialize both ref tables.
1487 (mark_for_gc): Added `ref_table' parameter.
1488 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1490 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1491 (_Jv_JNI_DeleteGlobalRef): Likewise.
1492 (_Jv_JNI_DeleteLocalRef): Likewise.
1493 (_Jv_JNI_NewLocalRef): Likewise.
1494 (_Jv_JNI_PopLocalFrame): Likewise.
1495 (_Jv_JNI_GetStringChars): Likewise.
1496 (_Jv_JNI_ReleaseStringChars): Likewise.
1497 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1498 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1500 2001-06-14 Tom Tromey <tromey@redhat.com>
1502 Fix for PR libgcj/3144:
1503 * java/util/Date.java: Merged with Classpath.
1505 2001-06-12 Tom Tromey <tromey@redhat.com>
1507 * aclocal.m4, configure: Rebuilt.
1508 * acinclude.m4: Find configure.host in srcdir.
1510 2001-06-07 Tom Tromey <tromey@redhat.com>
1512 Fix for PR libgcj/3059:
1513 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1514 * Makefile.in: Rebuilt.
1515 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1517 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1519 * exception.cc (cstdlib): Replaces stdlib.h.
1520 (_Jv_Throw): Use std::abort().
1521 (PERSONALITY_FUNCTION): Likewise.
1523 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1525 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1526 nothing, as in autoconf 2.50.
1527 * aclocal.m4, configure: Rebuilt.
1529 2001-06-08 Tom Tromey <tromey@redhat.com>
1531 * configure: Rebuilt.
1532 * configure.in: Compute new aux dir using `pwd'.
1534 2001-06-07 Tom Tromey <tromey@redhat.com>
1536 For PR bootstrap/3075:
1537 * configure, aclocal.m4, Makefile.am: Rebuilt.
1538 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1539 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1540 relative to libgcj_basedir.
1541 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1542 AC_CANONICAL_SYSTEM here.
1543 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1545 ($(extra_headers)): New target.
1547 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1548 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1550 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1551 table index is within allowed bounds. Ensure that we dont try to access
1552 class itable at a negative offset. Avoid an ancestor table lookup if
1553 source is a primitive type class.
1554 (isInstance): Remove redundant isPrimitive() check.
1556 2001-06-04 Tom Tromey <tromey@redhat.com>
1558 * java/security/PublicKey.java: Extend Key.
1559 * java/security/PrivateKey.java: Extend Key.
1561 2001-06-02 Anthony Green <green@redhat.com>
1563 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1564 alternate when USE_LTDL not defined.
1566 2001-06-02 Anthony Green <green@redhat.com>
1568 * configure: Rebuild.
1569 * configure.in: Remove data_start hack.
1570 * libgcj.spec.in: Ditto.
1571 * Makefile.in: Rebuild.
1572 * Makefile.am: Ditto.
1573 * libgcjdata.c: Remove.
1575 2001-06-02 Anthony Green <green@redhat.com>
1577 * configure: Rebuild.
1578 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1579 --without-libffi option. Tweak --disable-java-net processing.
1580 * Makefile.in: Rebuild.
1581 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1582 * include/config.h.in: Rebuild.
1583 * acconfig.h (USE_LIBFFI): Define.
1584 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1586 2001-06-02 Anthony Green <green@redhat.com>
1588 * configure: Rebuilt.
1589 * configure.in: Test for sigaction on native builds.
1590 * prims.cc: Check HAVE_SIGACTION.
1591 * include/config.h.in: Rebuilt.
1593 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1595 * natFile.cc (get_entry): Removed functions.
1596 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1597 Allocate enough storage for d_name if using readdir_r.
1599 2001-05-31 Tom Tromey <tromey@redhat.com>
1601 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1603 (write): Loop until write completes. From Corey Minyard.
1605 2001-05-29 Laurent Guerby <guerby@acm.org>
1607 * java/awt/geom/Rectangle2D.java: fix doc typo.
1609 2001-05-31 Tom Tromey <tromey@redhat.com>
1611 * java/sql/DriverManager.java (getDrivers): Handle case where
1612 driver's class loader is null. From Corey Minyard.
1614 2001-05-29 Tom Tromey <tromey@redhat.com>
1616 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1618 * configure: Rebuilt.
1619 * configure.in: Only add multilib support code if we just rebuilt
1622 2001-05-29 Andrew Haley <aph@redhat.com>
1624 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1625 pointer: the dwarf unwinder in libgcc will do everything that's
1627 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1628 more than we absolutely need to.
1629 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1630 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1632 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1634 * configure: Rebuilt.
1635 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1637 (SIGNAL_HANDLER): Use siginfo style handler.
1638 (INIT_SEGV): Likewise.
1639 (INIT_FPE): Likewise.
1640 * include/ppc-signal.h: Delete whole file.
1642 2001-05-24 Tom Tromey <tromey@redhat.com>
1644 * java/lang/natString.cc (init): Throw
1645 ArrayIndexOutOfBoundsException.
1646 (getChars): Likewise.
1647 (getBytes): Likewise.
1648 (valueOf): Likewise.
1650 * configure.in: Only allow hash synchronization when POSIX threads
1652 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1653 of sync info object.
1655 2001-05-23 Tom Tromey <tromey@redhat.com>
1657 * Makefile.in: Rebuilt.
1658 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1660 Revert patch of 2001-05-21:
1661 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1662 (libgcj_la_LIBADD): Likewise.
1663 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1664 (libgcjx_la_LIBADD): Likewise.
1666 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1667 * gcj/Makefile.in: Rebuilt.
1668 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1669 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1670 * gcj/libgcj-config.h.in: New file.
1671 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1672 * configure: Rebuilt.
1673 * configure.in: Enable hash synchronization by default on some
1675 (HASH_SYNC_SPEC): New subst.
1676 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1677 Correctly use `test -z' instead of `test -n' in a couple places.
1678 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1680 * configure.host (enable_java_net_default): Initialize.
1681 (enable_hash_synchronization_default): New variable.
1683 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1685 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1686 synchronization in use.
1687 (_Jv_MarkArray): Likewise.
1688 (_Jv_AllocBytes): Don't check return result.
1689 (handle_out_of_memory): New function.
1690 (_Jv_InitGC): Set GC_oom_fn.
1691 (trace_one_vtable): New global.
1692 (_Jv_AllocTraceOne): New function.
1693 * configure.in: Added --enable-hash-synchronization.
1694 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1695 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1696 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1697 (_Jv_AllocArray): Likewise.
1698 (_Jv_AllocBytes): Likewise.
1699 (_Jv_AllocPtrFreeObject): New function.
1700 (_Jv_AllocTraceOne): Likewise.
1701 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1703 (self_cache): New global.
1704 (_Jv_ThreadSelf_out_of_line): New function.
1705 * prims.cc (_Jv_AllocBytesChecked): Removed.
1706 (_Jv_ThrowNoMemory): New function.
1707 (_Jv_AllocObject): Don't check for null return from allocator.
1708 (_Jv_NewObjectArray): Likewise.
1709 (_Jv_AllocPtrFreeObject): New function.
1710 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1711 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1712 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1713 * include/boehm-gc.h (_Jv_AllocObj): Define.
1714 (_Jv_AllocPtrFreeObj): Define.
1715 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1716 (_Jv_ThrowNoMemory): Declare.
1717 (_Jv_AllocTraceOne): Declare.
1718 (_Jv_AllocBytesChecked): Removed.
1719 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1720 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1721 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1723 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1725 * java/lang/Object.h (sync_info): Conditional upon presence of
1726 hash synchronization.
1727 * java/lang/natObject.cc: Much new code to handle thin locks and
1728 hash synchronization.
1729 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1732 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1734 * gij.cc (version): Update copyright year.
1736 2001-05-22 Anthony Green <green@redhat.com>
1738 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1741 2001-05-21 Per Bothner <per@bothner.com>
1743 Implement invocation interface; don't create new thread for main.
1744 * java/lang/Thread.java (gen_name): Make native.
1745 (<init>(Thread,THreadGroup,Runnable,String)): New private
1746 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1747 * java/lang/natThread.cc (gen_name): New implementation.
1748 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1749 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1750 (_Jv_CreateJavaVM): New runtime initialization procedure.
1751 (runFirst): New proecdure - mostly code from old FirstThread::run.
1752 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1753 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1754 JvDetachCurrentThread): New inline wrappers.
1755 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1756 _Jv_DetachCurrentThread): New declarations.
1757 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1758 (getMain): new static method.
1759 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1760 by runFirst in prims.cc.
1761 (java/lang/Thread.h): Update for new invocation interface.
1762 * include/posix-threads.h (_Jv_ThreadRegister,
1763 _Jv_ThreadUnRegister): New declarations.
1764 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1765 (really_start): Use new _Jv_ThreadRegister.
1766 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1767 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1768 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1769 Complain of called when _Jv_OnlyThread already set.
1770 (_Jv_ThreadStart): Always JvFail.
1771 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1772 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1773 * win32-threads.cc (struct starter): Remove objet field -
1774 we use _Jv_Thread_t's new thread_obj field instead.
1775 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1776 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1777 (really_start): Use new _Jv_ThreadRegister.
1778 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1779 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1780 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1781 Removed - no longer needed with new invocation interface.
1782 * Makefile.am: Update for removed/added files.
1784 2001-05-21 Per Bothner <per@bothner.com>
1786 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1787 (libgcj_la_LIBADD): Likewise.
1788 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1790 2001-05-21 Per Bothner <per@bothner.com>
1792 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1793 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1794 taken from old Integer.toString code.
1795 (Integer::valueOf): Use _Jv_FormatInt.
1796 * java/lang/Integer.java (toString): Just use call String.valueOf.
1797 * java/lang/Long.java (toString): Fix typo in comment.
1798 * java/lang/String.java (valueOf(int)): Make native.
1799 * java/lang/StringBuffer.java (append(int)): Make native.
1800 * java/lang/natStringBuffer.cc: New file, for append(jint).
1801 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1803 2001-05-21 Tom Tromey <tromey@redhat.com>
1805 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1807 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1809 * include/dwarf2-signal.h: New file.
1810 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1811 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1812 * configure: Rebuilt.
1814 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1816 * configure.in: Update boehm-gc include dir for new GC version.
1817 * configure: Rebuilt.
1818 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1820 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1821 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1822 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1825 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1827 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1828 (_Jv_MutexInit): Likewise.
1830 2001-05-18 Tom Tromey <tromey@redhat.com>
1832 * Makefile.in: Rebuilt.
1833 * Makefile.am (awt_java_source_files): Added Polygon.java.
1835 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1837 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1838 * gcj/javaprims.h: ... here.
1839 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1841 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1843 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1844 with length of ioffset table.
1845 (_Jv_IsAssignableFrom): Likewise.
1847 2001-05-17 Per Bothner <per@bothner.com>
1849 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1851 2001-05-16 Tom Tromey <tromey@redhat.com>
1853 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1856 2001-05-15 Tom Tromey <tromey@redhat.com>
1858 * java/util/GregorianCalendar.java (computeTime): Only call
1861 2001-05-14 Tom Tromey <tromey@redhat.com>
1863 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1864 ZONE_OFFSET just before computing the time.
1866 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1868 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1869 * Makefile.in: Regenerate (by hand).
1870 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1871 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1873 2001-05-11 Richard Henderson <rth@redhat.com>
1875 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1876 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1878 2001-05-11 Richard Henderson <rth@redhat.com>
1880 * exception.cc: Include unwind-pe.h. Remove all pointer
1883 2001-05-10 Tom Tromey <tromey@redhat.com>
1885 * Makefile.in: Rebuilt.
1886 * Makefile.am (awt_java_source_files): Added Polygon.java.
1887 * java/awt/Polygon.java: New file.
1889 * java/awt/geom/AffineTransform.java
1890 (setToRotation(double,double,double)): New method.
1891 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1892 (setToShear): Likewise.
1894 2001-05-10 Tom Tromey <tromey@redhat.com>
1896 * java/util/GregorianCalendar.java: Imported from Classpath.
1897 * gnu/java/locale/LocaleInformation_nl.java: New file from
1899 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1900 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1901 * gnu/java/locale/LocaleInformation.java: Likewise.
1902 * natGregorianCalendar.cc: Removed.
1903 * Makefile.in: Rebuilt.
1904 * Makefile.am (nat_source_files): Removed
1905 natGregorianCalendar.cc.
1907 2001-05-10 Tom Tromey <tromey@redhat.com>
1909 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1911 (defaultCenturyStart): Use it.
1912 (readObject): Likewise.
1913 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1915 (parse): Copy the calendar before modifying it. Correctly handle
1918 * java/util/Calendar.java (clear): Set field value(s) to 0.
1920 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1922 * Calendar.java (get): Clear areFieldsSet if requested field
1924 (set): Unset fields that depend on new value.
1926 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1928 * java/lang/Class.h (_Jv_Self): New union type.
1929 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1930 Jeff Sturm and Fergus Henderson.
1932 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1934 * java/lang/ClassLoader.java: Remove dead code fragment.
1936 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1938 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1940 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1942 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1944 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1945 * configure.host (EXCEPTIONSPEC): New.
1946 * configure.in (EXCEPTIONSPEC): New.
1947 * configure: Rebuilt.
1949 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1951 * doc/*.texi: Remove generated documentation.
1953 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1955 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1956 (performDelete): Fix #endif placement.
1958 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1960 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1961 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1962 (_Jv_ThreadDestroyData): Use _Jv_Free.
1963 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1966 2001-04-27 Tom Tromey <tromey@redhat.com>
1968 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1970 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1972 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1974 * include/jni.h (struct JNINativeInterface): Fixed types in
1975 Get/Set*ArrayRegion declarations.
1976 (class _Jv_JNIEnv): Likewise.
1978 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1980 * configure.in: Obtain THREADS with `gcc -v'.
1981 * configure: Rebuilt.
1983 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1986 * java/io/ObjectStreamClass.java (setClass): Calculate
1987 serialVersionUID for local class and compare it against the UID
1988 from the Object Stream. Throw InvalidClassException upon mismatch.
1989 (setUID): Renamed to...
1990 (getClassUID): this. Return the calculated class UID rather than
1991 setting uid field directly.
1992 (getDefinedSUID): Removed.
1993 * java/io/ObjectInputStream.java (resolveClass): Use the
1994 three-argument Class.forName().
1995 * java/io/InvalidClassException (toString): Don't include classname in
1996 result if it is null.
1998 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2000 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
2001 Wrap use of inet_pton in HAVE_INET6.
2003 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2005 java.security merge and ClassLoader compliance fixes.
2007 * java/lang/Class.h (Class): Include ProtectionDomain.h.
2008 New protectionDomain field.
2009 (forName): Add initialize parameter. Fixes declaration to comply with
2011 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
2012 variant. Honour "initialize" flag.
2013 (getProtectionDomain0): New method.
2014 * java/lang/Class.java: Fix forName() declaration.
2015 (getPackage): New method based on Classpath implementation.
2016 (getProtectionDomain0): New native method decl.
2017 (getProtectionDomain): New method.
2018 * java/lang/ClassLoader.java (getParent): Now final.
2019 (definedPackages): New field.
2021 (defineClass): New variant with protectionDomain argument.
2022 (definePackage): New.
2024 (findSystemClass): Now final.
2025 (getSystemResourceAsStream): Remove redundant "final" modifier.
2026 (getSystemResource): Remove redundant "final" modifier.
2027 (getResources): Now final.
2028 (protectionDomainPermission): New static field.
2029 (unknownProtectionDomain): Ditto.
2030 (defaultProtectionDomain): Ditto.
2031 (getSystemClassLoader): Now non-native.
2032 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
2033 arguments for Class.forName().
2034 * java/lang/Package.java: New file.
2035 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
2036 (instance): Static initialize singleton.
2037 (findClass): Override this, not findSystemClass.
2038 * java/lang/natClassLoader.cc (defineClass0): Set class's
2039 protectionDomain field as specified.
2040 (getSystemClassLoader): Removed.
2041 (findClass): Renamed from findSystemClass. Call the interpreter via
2042 URLClassLoader.findClass if loading class via dlopen fails.
2044 * java/security/*.java: java.security import/merge with Classpath.
2045 * java/security/acl/*.java: Likewise.
2046 * java/security/interfaces/*.java: Likewise.
2047 * java/security/spec/*.java: Likewise.
2048 * java/net/NetPermission.java: Likewise.
2049 * java/net/SocketPermission.java: Likewise.
2050 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
2052 * Makefile.am: Add new classes.
2053 * Makefile.in: Rebuilt.
2054 * gcj/javaprims.h: CNI namespace rebuild.
2056 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
2058 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
2059 for libtool tests. Pre-create gnu/classpath/Configuration.java.
2060 * configure: Rebuilt.
2062 2001-04-21 Tom Tromey <tromey@redhat.com>
2064 * Makefile.in: Rebuilt.
2065 * Makefile.am (awt_java_source_files): Added Line2D.java.
2066 * java/awt/geom/Line2D.java: Wrote.
2068 * java/awt/Menu.java (addNotify): Wrote.
2070 * java/awt/PopupMenu.java (addNotify): Implemented.
2073 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
2074 * java/awt/List.java (addNotify): Call super.addNotify.
2075 * java/awt/Label.java (addNotify): Call super.addNotify.
2076 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
2077 * java/awt/Dialog.java (addNotify): Call super.addNotify.
2078 * java/awt/Choice.java (addNotify): Call super.addNotify.
2079 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
2080 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
2082 * java/awt/List.java (replaceItem): Notify peer.
2084 * java/awt/geom/Rectangle2D.java
2085 (Float.setRect(float,float,float,float)): New method.
2087 * java/awt/event/ContainerEvent.java (getContainer): Now returns
2090 * java/awt/RenderingHints.java (Key): Class now public.
2092 * java/awt/Rectangle.java (Rectangle): Now implements
2094 (getPathIterator): Removed.
2096 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
2099 * java/awt/FileDialog.java: Wrote.
2101 * java/awt/EventQueue.java (isDispatchThread): Now public.
2102 (invokeLater): Likewise.
2104 * java/awt/Component.java (setCursor): Update peer.
2105 (getFontMetrics): Use peer.
2107 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
2110 2001-04-20 Tom Tromey <tromey@redhat.com>
2112 * java/awt/List.java: Wrote.
2113 * java/awt/Dialog.java: Wrote.
2115 2001-04-20 Warren Levy <warrenl@redhat.com>
2117 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
2118 * java/text/SimpleDateFormat.java
2119 (indexInArray): Removed private method.
2120 (processYear): Removed private method.
2121 (parseLenient): Removed private method.
2122 (parseLeadingZeros): Removed private method.
2123 (parseStrict): Removed private method.
2124 (expect): Added new private method.
2125 (parse): Reverted to pre-Classpath merge version with minor fixes.
2126 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
2129 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
2131 * java/io/File.java (normalizePath): New private method.
2132 (File (String)): Use normalizePath().
2133 (File (String, String)): Likewise.
2135 * Makefile.am (libffi_files): Removed.
2136 (libgcj.la): Link libffi as a convenience library instead of
2137 refering to its object files directly.
2138 * Makefile.in: Rebuilt.
2140 2001-04-08 Per Bothner <per@bothner.com>
2142 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
2143 Recalculate hash, since Utf8Const's hash is only 16 bits.
2145 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
2146 bits of hash to calculate step for chaining.
2148 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
2149 when 2/3 full, rather than 3/4 full.
2151 2001-04-06 Tom Tromey <tromey@redhat.com>
2153 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
2154 (wrap_value<T*>): New specialization.
2155 (_Jv_JNI_PopLocalFrame): Update env->locals.
2157 2001-04-05 Tom Tromey <tromey@redhat.com>
2159 * libtool-version: Updated current.
2161 2001-04-04 Andreas Jaeger <aj@suse.de>
2163 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2164 * gcj/Makefile.in: Rebuilt.
2165 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2166 * Makefile.in: Rebuilt.
2167 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2168 * testsuite/Makefile.in: Rebuild.
2169 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2170 * include/Makefile.in: Rebuild.
2172 2001-04-02 Zack Weinberg <zackw@stanford.edu>
2174 * testsuite/lib/libjava.exp: Correct typo: 'output from source
2175 compiled test', not 'execution from source compiled test'.
2176 Use UNTESTED, not XFAIL, for tests which are not run because
2177 they depend on a previous test which failed.
2179 2001-04-02 Richard Henderson <rth@redhat.com>
2181 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
2182 the same tree as gcc.
2183 * configure: Rebuilt.
2185 * exception.cc (_Jv_Throw): Clarify commentary.
2187 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
2189 * jni.cc (wrap_value<jclass>): New specialization.
2191 2001-04-02 Tom Tromey <tromey@redhat.com>
2193 * java/io/PrintStream.java (out): Removed field. Fixes PR
2195 (write): Call flush, not out.flush, per spec.
2196 (close): Flush output stream, per spec. Handle
2197 InterruptedIOException.
2198 (checkError): Likewise.
2199 (flush, print, write): Handle InterruptedIOException per spec.
2200 (PrintStream): Don't create BufferedOutputStream.
2201 (work_bytes): New field.
2202 (writeChars): Use work_bytes. Don't assume `out' is a
2203 BufferedOutputStream.
2205 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
2207 * java/text/MessageFormat.java (setLocale): Added missing `else'.
2210 2001-03-30 Tom Tromey <tromey@redhat.com>
2212 * jni.cc (add_char): Correctly encode non-ascii characters.
2213 (add_char): Define even when INTERPRETER not defined.
2214 (mangled_name): Likewise.
2215 (_Jv_GetJNIEnvNewFrame): Likewise.
2216 (_Jv_LookupJNIMethod): Likewise.
2218 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
2220 * configure.host: Enable interpreter for PPC.
2222 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
2224 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2225 to "file.separator", "path.separator", and "java.io.tmpdir" property
2227 * java/io/File.java: Likewise.
2228 * java/io/natFile.cc (init_native): Likewise.
2229 * java/io/natFileWin32.cc (init_native): Likewise.
2231 2001-04-01 Per Bothner <per@bothner.com>
2233 * java/lang/natString.cc (intern): If string's data does not point to
2234 this String, make a fresh String that does.
2236 * java/lang/natString.cc (unintern): Replace by static function.
2237 * java/lang/String.java (unintern): Remove method.
2239 2001-04-01 Per Bothner <per@bothner.com>
2241 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
2242 (finish): def.deflate needs to be called in a loop.
2243 (inbuf, inbufLength): New private fields.
2244 (write(int)): Use inbuf.
2245 (write(byte[],int,int): Check if pending output in inbuf.
2246 * ZipOutputStream.java: Don't use Deflater if stored.
2247 Use a Checksum object directly, not via a CheckedOutputStream.
2248 (uncompressed_size): New field,
2249 (closeEntry): Only write data_directory if needed.
2250 (write): If STORED, write directly.
2251 Always update crc, and uncompressed_size.
2252 (write_entry): Fix lots of protocol erors.
2254 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
2256 1.3-Compliant Implementation of java.io.File.
2257 * java/lang/natSystem.cc (init_properties): Get "file.separator",
2258 "path.separator", and "java.io.tmpdir" from the File class, instead
2259 of setting them explicitly.
2260 * java/io/File.java: Do not canonicalize paths for security manager
2261 checks. Call init_native() from static initializer. Do not pass path
2262 argument to native methods. New native method declarations. Some
2263 security manager checks moved to checkWrite().
2264 (equals): Check file system case sensitivity and act appropriatly.
2265 (hashCode): Likewise.
2266 (isHidden): New method implemented.
2267 (performList): Changed prototype. Now takes a class argument specifying
2268 the class of the returned array: Strings or File objects. Also added
2269 FileFilter argument.
2270 (listFiles): New variants with "File" return type implemented.
2271 (createTempFile): Use createNewFile(). Use maxPathLen.
2272 (setReadOnly): New method implemented.
2273 (listRoots): Likewise.
2274 (compareTo): Likewise.
2275 (setLastModified): Likewise.
2276 (checkWrite): New method.
2278 * java/io/natFile.cc: Various functions no longer take canonical path
2280 (stat): Handle ISHIDDEN query.
2281 (isAbsolute): Remove WIN32 cruft.
2282 (performList): New arguments. Handle returning either File[] or String[]
2283 arrays. Check with FileFilter or FilenameFilter arguments as
2284 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2285 (performSetReadOnly): New method implemented.
2286 (performListRoots): Likewise.
2287 (performSetLastModified): Likewise.
2288 (performCreate): Likewise.
2289 (init_native): New initialization function.
2290 * java/io/natFileWin32.cc: Various functions no longer take canonical
2292 (stat): Add FIXME about ISHIDDEN query.
2293 (performList): New arguments. Handle returning either File[] or String[]
2294 arrays. Check with FileFilter or FilenameFilter arguments as
2295 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2296 (performSetReadOnly): New. Stubbed.
2297 (performListRoots): Likewise.
2298 (performSetLastModified): Likewise.
2299 (performCreate): Likewise.
2300 (init_native) New initialization function.
2301 * configure.in: Check for utime() and chmod().
2302 * configure: Rebuilt.
2303 * include/config.h.in: Rebuilt.
2305 Resolves PR libgcj/1759.
2307 2001-03-28 Richard Henderson <rth@redhat.com>
2309 IA-64 ABI Exception Handling:
2310 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2311 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2312 Remove EXCEPTIONSPEC.
2313 * configure.host (libgcj_sjlj): Remove.
2314 * configure.in (EXCEPTIONSPEC): Remove.
2315 (enable-sjlj-exceptions): Detect if not specified.
2316 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2317 what header we're looking for.
2318 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2319 * Makefile.in, configure: Regenerate.
2320 * exception.cc: Don't declare libgcc2 stuff.
2321 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2322 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2323 (win32_get_restart_frame): Remove.
2324 (struct java_exception_header): New.
2325 (__gcj_exception_class): New.
2326 (get_exception_header_from_ue): New.
2327 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2328 (size_of_encoded_value, read_encoded_value): New.
2329 (read_uleb128, read_sleb128, parse_lsda_header): New.
2330 (get_ttype_entry, __gcj_personality_sj0): New.
2331 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2333 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2335 * javax/naming/InitialContext.java (init): Fix typo.
2336 (composeName): Remove unnecessary semicolon.
2337 (addToEnvironment): Remove unnecessary semicolon.
2338 (addToEnvironment): Use put() instead of add().
2340 * javax/naming/InitialContext.java (InitialContext):
2342 (destroySubcontext): Method doesn't return a result.
2343 * javax/naming/Context.java: Import java.util.Hashtable.
2344 * javax/naming/Name.java: Import java.util.Enumeration.
2346 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2348 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2349 objects in subdirectories.
2350 * Makefile.in: Rebuilt.
2352 2001-03-25 Richard Henderson <rth@redhat.com>
2354 * exception.cc (java_eh_info): Make value type jthrowable.
2355 (_Jv_type_matcher): Remove now unneeded cast.
2356 (_Jv_Throw): Make argument type jthrowable. Munge name
2357 for SJLJ_EXCEPTIONS here ...
2358 * gcj/cni.h: ... not here.
2360 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2362 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2363 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2364 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2365 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2366 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2367 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2368 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2369 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2370 java/lang/natDouble.cc, java/lang/natObject.cc,
2371 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2372 java/lang/natString.cc, java/lang/natSystem.cc,
2373 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2374 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2375 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2376 java/util/zip/natInflater.cc:
2377 Use throw, not JvThrow or _Jv_Throw.
2379 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2381 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2382 paramater, bump it to 1.
2383 * java/util/Hashtable.java (Hashtable): Likewise.
2385 2001-03-23 Per Bothner <per@bothner.com>
2387 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2388 check for errors, since we don't want to throw exception on
2389 overflow/underflow. Instead, trim whitespace, and then check that
2390 _strtod_r uses up all the rest of the string.
2392 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2393 ancestors array is invalid for interfaces, so do that *after*
2394 check that the target type is not an interface.
2396 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2398 * prims.cc (_Jv_FindClassFromSignature): Check return of
2399 recursive call. Do not abort on invalid signature; return NULL
2402 2001-03-22 Tom Tromey <tromey@redhat.com>
2404 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2405 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2407 * include/jvm.h (_Jv_ResolveField): Declare.
2408 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2409 * resolve.cc (_Jv_ResolveField): No longer conditional on
2412 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2414 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2415 for libtool hacking.
2416 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2417 to a temporary file, then invoke libtool with the -objectlist
2419 (libgcjx.la): Likewise.
2420 * Makefile.in: Rebuilt.
2422 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2424 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2426 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2428 * jni.cc (add_char): Handle `.' like `/'.
2430 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2432 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2433 initialize if exception_types is null.
2434 * java/lang/reflect/Constructor.java: Likewise.
2435 * java/lang/reflect/natConstructor.cc (getType): Initialize
2436 exception_types to an empty Object array.
2438 2001-03-21 Tom Tromey <tromey@redhat.com>
2440 * configure: Rebuilt.
2441 * configure.in (GCJFLAGS): Subst.
2442 * Makefile.in: Rebuilt.
2443 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2444 (gij_LDFLAGS): Likewise.
2445 (JC1FLAGS): Added GCJFLAGS and removed -g.
2447 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2448 read/write case. Fixes PR libgcj/2338.
2450 2001-03-20 Warren Levy <warrenl@redhat.com>
2452 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2453 and corrected SimpleTimeZone's for the timezones hash table.
2455 2001-03-19 Per Bothner <per@bothner.com>
2457 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2458 "canonicalize" "../../xxx" to "/xxx".
2460 2001-03-19 Mark Wielaard <mark@klomp.org>
2462 * java/util/ArrayList.java: Remove RCS keywords from comments
2463 * java/util/BasicMapEntry.java: idem
2464 * java/util/Dictionary.java: idem
2465 * java/util/HashSet.java: idem
2467 * java/util/EventObject.java: reindent
2468 * java/util/Properties.java: idem
2469 * java/util/SortedMap.java: idem
2471 * java/util/Enumeration.java: Merge with Classpath
2472 * java/util/EventListener.java: idem
2473 * java/util/Observable.java: idem
2474 * java/util/Observer.java: idem
2475 * java/util/Stack.java: idem
2477 2001-03-17 Tom Tromey <tromey@redhat.com>
2479 * java/lang/natString.cc (rehash): Don't bother with memset;
2480 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2482 (UNMASK_PTR): New macro.
2483 (intern): Unmask pointer before returning it. Register finalizer
2485 (unintern): Handle case where
2486 (MASK_PTR): New macro.
2487 (PTR_MAKSED): Likewise.
2488 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2490 2001-03-01 Andrew Haley <aph@redhat.com>
2492 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2493 stackTrace buffer to a correctly aligned pointer array.
2495 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2497 * java/lang/Runtime.java (_exit): Declare new package-private native.
2498 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2499 without a security manager check.
2500 (exit): Call _exit after security check.
2501 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2503 * java/lang/System.java (setSecurityManager): If a security manager
2504 is already in place, call checkPermission.
2505 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2506 throws an exception, try to deal with it gracefully.
2507 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2508 Only try to print the subordinate stack trace if "exception" is set.
2509 Print our class name first.
2511 2001-03-08 Tom Tromey <tromey@redhat.com>
2513 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2514 info for array classes.
2515 Fixes PR libgcj/1971.
2517 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2519 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2522 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2524 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2525 instead of the new JDK1.2 API. This is simpler and makes
2526 back-porting the classes to JDK1.1 trivial.
2527 (readObject): likewise.
2529 2001-03-01 Per Bothner <per@bothner.com>
2531 Changes merged from Kawa's gnu.math.
2532 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2533 (rshift(int[],int[],int,int): Removed - not needed.
2534 (gcd): Use rshift0 rather than rshift.
2535 * java/math/BigInteger.java (setShiftRight): Likewise.
2536 (divide): Simplify by using rshift0.
2537 (divide): Zero-extend results if high-order bit set.
2539 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2541 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2544 2001-02-23 Per Bothner <per@bothner.com>
2546 Change to sometimes include class name in ClassFormatError message.
2547 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2548 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2549 boolean instead of throwing ClassFormatError on failure.
2550 (throw_class_format_error): Change static function to method.
2551 (_Jv_ClassReader): New inline methods verify_identifier,
2552 two overloads of verify_classname, verify_field_signature, and
2553 verify_method_signature
2554 * include/java-interp.h: Update declarations to return bool.
2555 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2556 ClassFormatError since _Jv_VerifyClassName now returns bool.
2558 2001-02-23 Per Bothner <per@bothner.com>
2560 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2561 c++filt to select java-style output.
2563 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2565 Fix for PR java/2040:
2566 * java/util/HashMap.java (HashMap): Don't throw exception for
2567 loadFactor > 1. Add exception messages.
2568 * java/util/Hashtable.java (Hashtable): Likewise.
2570 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2572 Disable libgcjx by default.
2573 * configure.in: Add support for --enable-java-awt configure option.
2574 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2575 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2576 * Makefile.in: Rebuilt.
2577 * configure: Rebuilt.
2579 2001-02-20 Tom Tromey <tromey@redhat.com>
2581 * java/io/PipedWriter.java (flush): Throw exception if stream
2583 * java/io/OutputStreamWriter.java (write): Throw exception if
2585 (writeChars): Don't throw exception if stream closed.
2586 * java/io/CharArrayWriter.java (closed): New field.
2588 (flush): Throw exception if stream closed.
2589 (reset): Synchronize on correct lock. Allow stream to be
2591 (toCharArray, toString, writeTo): Synchronize.
2592 (write): Throwe exception if stream closed.
2593 * java/io/BufferedWriter.java (close): Clear `buffer'.
2594 (flush): Throw IOException if stream is closed.
2597 2001-02-16 Tom Tromey <tromey@cygnus.com>
2599 * java/lang/ThreadGroup.java (activeCount): Only include threads
2601 (enumerate): Likewise.
2603 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2605 * java/lang/Integer.java (getInteger): Return default argument if
2606 property is not set. Don't call decode with null argument.
2607 * java/lang/Long.java (getLong): Likewise.
2609 * java/io/CharArrayReader.java (CharArrayReader): Throw
2610 IllegalArgumentException if constructor arguments are illegal.
2611 (ready): Return false if no more characters can be read.
2612 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2614 2001-02-17 Mark Wielaard <mark@klomp.org>
2616 * java/util/TimerTask.java: New version from Classpath.
2618 2001-02-17 Mark Wielaard <mark@klomp.org>
2620 Remerge with Classpath
2621 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2622 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2623 (readByte): Use convertToByte().
2624 (readChar): Use convertToChar().
2625 (readInt): Use convertToInt().
2626 (readLong): Use convertToLong().
2627 (readShort): Use convertToShort().
2628 (readUnsignedByte): Use convertToUnsignedByte().
2629 (readUnsignedShort): Use convertToUnsignedShort().
2630 (readUTF): Use convertToUTF().
2632 (convertToBoolean): Resurrected.
2633 (convertToByte): Ditto.
2634 (convertToChar): Ditto.
2635 (convertToInt): Ditto.
2636 (convertToLong): Ditto.
2637 (convertToShort): Ditto.
2638 (convertToUnsignedByte): Ditto.
2639 (convertToUnsignedShort): Ditto.
2640 (convertToUTF): Ditto.
2642 2001-02-17 Mark Wielaard <mark@klomp.org>
2646 2001-02-17 Mark Wielaard <mark@klomp.org>
2648 * java/io/DataInputStream.java: update copyright notice
2649 * java/io/PrintWriter.java: idem
2650 * java/io/Reader.java: idem
2651 * java/io/StreamTokenizer.java: idem
2652 * java/io/StringReader.java: idem
2653 * java/lang/reflect/ReflectPermission.java: idem
2655 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2657 * java/util/TreeSet.java (clone): Made subclass safe, use
2658 super.clone(), not new.
2659 * java/util/TreeMap.java (clone): Likewise.
2661 * java/util/TreeMap.java (nil): Made non-final.
2662 (clone): Create new nil node for copy.
2664 * java/util/HashSet.java (clone): Made subclass safe, use
2665 super.clone(), not new.
2667 2001-02-14 Andrew Haley <aph@redhat.com>
2669 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2672 2001-02-15 Anthony Green <green@redhat.com>
2674 * defineclass.cc: Don't include alloca.h.
2675 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2676 * interpret.cc (run_normal): Ditto.
2678 * java/lang/natDouble.cc (parseDouble): Ditto.
2680 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2682 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2684 * java/util/Collections.java (ReverseComparator): New static class.
2685 (reverseOrder): Return static instance of ReverseComparator.
2687 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2688 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2689 Rectangle.clone(), not Object.clone().
2691 * java/util/HashSet.java (clone): Remove try/catch.
2693 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2694 * java/util/Collection.java: Likewise.
2695 * java/util/Comparator.java: Likewise.
2696 * java/util/Dictionary.java: Likewise.
2697 * java/util/Iterator.java: Likewise.
2698 * java/util/ListIterator.java: Likewise.
2699 * java/util/Map.java: Likewise.
2700 * java/util/Set.java: Likewise.
2702 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2704 * java/util/TreeMap.java: New file.
2705 * java/util/TreeSet.java: New file.
2706 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2707 * Makefile.in: Rebuilt.
2708 * java/util/HashSet.java (clone): Use constructor instead of calling
2710 * java/util/SortedSet.java: Sync with classpath.
2711 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2714 * java/lang/natClass.cc (getSignature): Don't try to dereference
2715 param_types if it is null. Instead, take this to mean "no parameters".
2716 * java/lang/TreeMap.java (TreeIterator.next): Throw
2717 NoSuchElementException in preference to ConcurrentModificationException.
2718 (TreeIterator.remove): Throw IllegalStateException in preference to
2719 ConcurrentModificationException.
2720 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2721 throw a NoSuchElementException.
2722 (SubMap.lastKey): Likewise.
2724 2001-02-13 Tom Tromey <tromey@redhat.com>
2726 * java/io/PipedReader.java (ready): Throw IOException if pipe
2728 * java/io/FilterReader.java (close): Don't clear `in'.
2729 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2731 (read, ready, reset, skip): Added exception message.
2732 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2733 Perform checkStatus check inside synchronized block.
2735 2001-02-13 Tom Tromey <tromey@redhat.com>
2737 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2739 2001-02-13 Tom Tromey <tromey@redhat.com>
2741 Fix for PR libgcj/1351:
2742 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2744 Include Thread.h and InterruptedIOException.h.
2746 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2748 * java/io/BlockDataException.java: Removed.
2749 * java/io/ObjectInputStream.java (readObject): Throw
2750 StreamCorruptedException, not BlockDataException.
2751 * Makefile.am: Remove BlockDataException.
2752 * Makefile.in: Rebuild.
2754 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2755 Tom Tromey <tromey@redhat.com>
2757 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2760 2001-02-09 Tom Tromey <tromey@redhat.com>
2762 * java/util/Timer.java: New version from Classpath.
2764 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2766 * java/lang/Double.java (doubleToRawLongBits): Now native.
2767 * java/lang/Float.java (floatToRawIntBits): Likewise.
2768 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2769 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2771 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2773 * java/io/File.java (java.net): Imported.
2774 (getAbsoluteFile): Added.
2775 (getCanonicalPath): Likewise.
2778 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2780 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2781 * java/lang/Integer.java: Likewise.
2782 * java/lang/Long.java: Likewise.
2783 * java/lang/Short.java: Likewise.
2784 * java/lang/Double.java: Likewise.
2785 (doubleToRawLongBits): New method.
2786 * java/lang/Float.java: As above.
2787 (floatToRawIntBits): New method.
2789 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2790 IOException if stream closed.
2792 2001-02-08 Tom Tromey <tromey@redhat.com>
2794 * java/lang/Float.java (parseFloat): New method.
2796 2001-02-08 Tom Tromey <tromey@redhat.com>
2798 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2799 * java/io/InputStreamReader.java (ready, read): Throw IOException
2800 if stream has been closed.
2802 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2804 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2805 Change sources.redhat.com and sourceware.cygnus.com references to
2808 2001-02-07 Tom Tromey <tromey@redhat.com>
2810 Fix for PR libgcj/1906:
2811 * java/text/MessageFormat.java (setLocale): Use named class
2814 (format(Object,StringBuffer,FieldPosition)): Special case if
2815 argument is an Object[].
2817 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2819 * java/util/Arrays.java: Removed "cmp" methods.
2820 (qsort): Don't use "cmp".
2823 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2825 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2826 sort. Fix for PR java/1895.
2828 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2830 * configure.host: Use sjlj-exceptions for Alpha.
2832 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2834 * libgcj.spec.in: Don't force static libgcc into the executable.
2835 * configure.in (FORCELIBGCCSPEC): Removed.
2836 * configure: Rebuilt.
2838 2001-01-31 Tom Tromey <tromey@redhat.com>
2840 * Makefile.in: Rebuilt.
2841 * Makefile.am (LTCXXCOMPILE): New macro.
2843 2001-01-26 Andrew Haley <aph@redhat.com>
2845 (INIT_FPE): Use a direct system call to set the handler.
2847 2001-01-27 Richard Henderson <rth@redhat.com>
2849 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2851 2001-01-27 Tom Tromey <tromey@redhat.com>
2853 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2854 native interface structure.
2856 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2858 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2860 (read (byte[], int, int)): Only call readNextBlock() if the block
2861 buffer would actually be overrun. Increment blockDataPosition.
2862 (callReadMethod): Propagate exceptions from invocation target.
2863 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2864 exceptions from invocation target.
2866 2001-01-26 Tom Tromey <tromey@redhat.com>
2868 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2869 to internal representation.
2870 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2871 _Jv_FindClassFromSignature.
2873 2001-01-26 Warren Levy <warrenl@redhat.com>
2875 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2876 and timezone if they are available on the system.
2878 2001-01-24 Tom Tromey <tromey@redhat.com>
2880 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2882 2001-01-24 Tom Tromey <tromey@redhat.com>
2884 * Makefile.in: Rebuilt.
2885 * Makefile.am (c_source_files): Added sf_fabs.c.
2886 * java/lang/sf_fabs.c: New file.
2888 2001-01-19 Warren Levy <warrenl@redhat.com>
2890 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2891 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2892 correctly. Adjust properly from 0-23 clock hour.
2894 2001-01-17 Mark Wielaard <mark@klomp.org>
2896 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2898 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2900 * java/lang/Class.h (isInterface): Move implementation from
2901 natClass.cc. Declare inline.
2902 (Class): Add default constructor.
2903 * java/lang/Object.h: Update comments.
2904 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2905 initialize superclass, saving a call if super is already initialized.
2907 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2909 * prims.cc (init_prim_class): Deleted.
2910 (DECLARE_PRIM_TYPE): Rewritten.
2911 * java/lang/Class.h (stdio.h): Include removed.
2912 (stddef.h): Included.
2913 (java/lang/reflect/Modifier.h): Likewise.
2914 (Class): Contructor now takes arguments, initializes fields.
2915 (initializePrim): Prototype deleted.
2916 * java/lang/natClass.cc (initializePrim): Deleted.
2918 2001-01-16 Warren Levy <warrenl@redhat.com>
2920 * java/math/BigInteger.java: Update Copyright year.
2922 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2924 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2927 2001-01-14 Mark Wielaard <mark@klomp.org>
2928 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2929 (decode): Merge comments with Classpath, don't throw Exception
2931 2001-01-12 Tom Tromey <tromey@redhat.com>
2933 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2937 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2938 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2939 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2940 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2941 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2943 * java/lang/natSystem.cc: Include locale.h if it exists.
2944 * configure: Rebuilt.
2945 * configure.in: Check for locale.h.
2947 2001-01-11 Tom Tromey <tromey@redhat.com>
2949 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2950 (Cursor(int), getPredefinedCursor): Throw exception if argument
2953 2001-01-03 Tom Tromey <tromey@redhat.com>
2955 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2956 (getLocationOnScreen): Wrote.
2958 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2960 * Makefile.am: Re-enable dependencies.
2961 * Makefile.in: Rebuilt.
2963 2001-01-10 Warren Levy <warrenl@redhat.com>
2965 * java/math/BigDecimal.java (divide): Fixed comment.
2967 2001-01-10 Warren Levy <warrenl@redhat.com>
2969 Fix for PR libgcj/1596:
2970 * java/math/BigDecimal.java (divide): Check newScale for validity.
2971 Ensure that BigInteger.pow() is called with a non-negative value.
2972 (setScale (int)): New public method.
2973 (setScale (int,int)): New public method.
2975 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2977 Fix for PR libgcj/1338:
2978 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2979 commentChar. Fixed typos in comments.
2981 2001-01-08 Warren Levy <warrenl@redhat.com>
2983 Fix for PR libgcj/1411:
2984 * Makefile.am: Removed java/util/natTimeZone.cc.
2985 * Makefile.in: Rebuilt.
2986 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2987 missing localized timezone names.
2988 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2989 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2990 (init_properties): Set user.timezone property.
2991 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2992 default timezone names; removed non-standard ones. Use standard
2994 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2996 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2998 (getDefaultTimeZoneId): Removed.
3000 * java/util/natTimeZone.cc: Removed.
3002 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3004 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
3005 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
3006 (_Jv_GetArrayClass): New inline function.
3007 (arrayclass): New field.
3008 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
3009 _Jv_GetArrayElementFromElementType.
3010 (_Jv_NewPrimArray): Ditto.
3011 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
3012 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
3013 Set Modifier::ABSTRACT.
3014 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
3015 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
3016 Now synchronized. Array classes are now referenced from
3017 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
3018 Set array classes' accessibility flags correctly. Optimize so that
3019 all array classes share the same IDT.
3020 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
3021 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
3022 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
3023 in superclasses from overwriting classes own fields.
3024 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
3025 Modifier::isAbstract().
3026 (null_idt): New static field.
3027 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
3029 (_Jv_IndexOf): Made inline.
3030 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
3032 2001-01-08 Tom Tromey <tromey@redhat.com>
3034 Fix for PR java/1586:
3035 * Makefile.in: Rebuilt.
3036 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
3038 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3040 * Makefile.am: Use the new "-M -MF" option for generating dependencies
3041 from the c++ compiler.
3042 * Makefile.in: Rebuilt.
3044 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
3046 All files with updated copyright.
3047 * prims.cc (class _Jv_PrimClass): Removed.
3048 (init_prim_class): New function.
3049 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
3050 `_Jv_PrimClass' in primitive type declarations. Assign to the
3051 value returned by `init_prim_class.'
3052 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
3053 primitive type declarations.
3054 (JvPrimClass): Cast to `jclass' removed.
3055 * java/lang/Class.h (Class): New constructor.
3056 (Class): New copy constructor.
3057 (initializePrim): New prototype.
3058 (_Jv_PrimClass): Field removed.
3059 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
3060 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
3061 (class java::lang::Object): `finalize' moved up front.
3062 * java/lang/natClass.cc
3063 (isAssignableFrom): Turned outline.
3064 (isInstance): Likewise.
3065 (isInterface): Likewise, fixed indentation.
3066 (initializePrim): New function.
3068 2001-01-07 Anthony Green <green@redhat.com>
3070 * Makefile.am (texinfo): Add texinfo target for generating texinfo
3072 * Makefile.in: Rebuilt.
3074 * scripts/TexinfoDoclet.java: New file.
3076 * doc/java-applet.texi, doc/java-lang-reflect.texi,
3077 doc/java-awt-color.texi, doc/java-lang.texi,
3078 doc/java-awt-datatransfer.texi, doc/java-math.texi,
3079 doc/java-awt-event.texi, doc/java-net.texi,
3080 doc/java-awt-geom.texi, doc/java-security-spec.texi,
3081 doc/java-awt-image.texi, doc/java-security.texi,
3082 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
3083 doc/java-text.texi, doc/java-beans-beancontext.texi,
3084 doc/java-util-jar.texi, doc/java-beans.texi,
3085 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
3086 doc/java-lang-ref.texi: New files.
3088 2001-01-07 Anthony Green <green@redhat.com>
3090 * java/net/URLConnection.java (setDoOutput): URLConnection's may
3091 be used for both input and output, so don't clear doInput.
3093 * java/lang/StringBuffer.java: Fix comments.
3095 2001-01-06 Anthony Green <green@redhat.com>
3097 * java/beans/PropertyDescriptor.java: Fix comment.
3098 * java/io/PushbackReader.java: Fix comment.
3099 * java/io/ObjectStreamClass.java: Fix comment.
3100 * java/io/DataInputStream.java: Fix comment.
3101 * java/io/PipedInputStream.java: Fix comments.
3102 * java/io/PipedReader.java: Fix comments.
3103 * java/sql/DatabaseMetaData.java: Fix comments.
3105 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
3107 * java/io/PipedReader: Synchronize on "lock" instead of this.
3109 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
3111 * java/lang/Thread.java: Update comment.
3113 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
3114 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
3115 * java/io/PipedReader: New implementation based on new
3117 * java/io/PipedWriter: Updated to match new PipedReader.
3119 2001-01-03 Tom Tromey <tromey@redhat.com>
3121 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
3122 (getViewportSize): Insets include scrollbar size.
3123 (doLayout): Finished.
3124 (getScrollPosition): Wrote.
3125 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
3127 2001-01-02 Tom Tromey <tromey@redhat.com>
3129 * java/awt/ScrollPane.java: Wrote.
3130 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
3133 * java/awt/Panel.java (Panel()): Fixed.
3135 * java/awt/Component.java (isShowing): Return false if no peer
3136 exists, and true if component is visible and no parent exists.
3137 (getLocationOnScreen): Wrote.
3138 (getPreferredSize): Removed FIXME comment.
3139 (getMinimumSize): Likewise.
3140 (getAlignmentX, getAlignmentY): Wrote.
3142 (requestFocus): Wrote.
3143 (transferFocus): Wrote.
3144 (findNextFocusComponent): New method.
3145 (hasFocus()): Wrote.
3146 (checkImage): Wrote.
3147 (enableEvents): Call setEventMask on the peer.
3149 * java/awt/Container.java (list): Use super.list() to print self.
3150 (findNextFocusComponent): New method.
3151 (setLayout): Call invalidate.
3152 (findComponentAt): Wrote.
3154 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
3156 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
3157 the correct versions of various linuxthreads functions get linked.
3158 * Makefile.in: Rebuilt.
3159 * java/lang/natThread.cc (finalize_native): New static function. Call
3160 _Jv_ThreadDestroyData.
3161 (initialize_native): Register finalizer for "data".
3162 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
3163 (_Jv_ThreadDestroyData): New prototype.
3164 * include/win32-threads.h: Ditto.
3165 * include/no-threads.h: Ditto.
3166 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3167 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
3168 move mutex and condition variable destroy code from:
3169 (really_start): ...here.
3170 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
3171 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3172 (_Jv_ThreadDestroyData): Implemented.
3173 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
3174 (_Jv_AllocArray): Ditto.
3176 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
3178 * java/sql/DriverManager.java (getConnection): Don't set user/password
3181 2000-12-27 Warren Levy <warrenl@redhat.com>
3183 Fix for PR libgcj/1358:
3184 * java/lang/System.java: Update Copyright date properly.
3185 * java/util/Calendar.java: Fix typo in comment.
3186 (set): Set 24-hour clock hour instead of 12-hour clock hour.
3187 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
3188 initialize times. Spec says to set H:M:S values to zero only if
3190 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
3191 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
3192 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
3193 timezones and GMT offsets, being careful to account for units of
3194 milliseconds vs. seconds.
3196 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
3198 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3199 not be assigned to Object.
3201 Fix for PR libgcj/1516:
3202 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3204 (can_widen): Declared inline. Remove redundant checks for void
3205 arguments and char->short conversion. Add special case for boolean
3207 (ffi_type): Declared inline.
3208 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3210 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
3212 * java/sql/SQLWarning.java: Fixed typo in comment.
3214 2000-12-26 Tom Tromey <tromey@redhat.com>
3216 * java/awt/MenuItem.java (paramString): Now protected.
3218 * java/awt/MenuShortcut.java: Implements Serializable.
3220 * java/awt/MenuBar.java: Rewrote from scratch.
3222 * java/awt/MenuComponent.java (removeNotify): Wrote.
3223 Implements Serializable.
3225 * java/awt/GridBagConstraints.java (GridBagConstraints): New
3228 * java/awt/CheckboxMenuItem.java: Wrote.
3230 2000-12-25 Tom Tromey <tromey@redhat.com>
3232 * java/awt/MenuContainer.java: Fixed typo.
3234 * Makefile.in: Rebuilt.
3235 * Makefile.am (awt_java_source_files): Added SystemColor.java.
3236 * java/awt/SystemColor.java: New file.
3238 * java/awt/Color.java (rgba): Now package-private.
3240 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3242 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3245 * java/awt/MenuItem.java (addNotify): New method.
3246 (MenuItem(String,MenuShortcut)): New constructor.
3247 (setLabel): Notify peer of change.
3248 (setEnabled): Likewise.
3250 * java/awt/GridLayout.java (toString): New method.
3252 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3253 (FlowLayout): Check for LEADING and TRAILING.
3254 (setAlignment): Likewise.
3255 (layoutContainer): Handle component orientation.
3257 * java/awt/Component.java (orientatin): New field.
3258 (setComponentOrientation): Wrote.
3259 (getComponentOrientation): Wrote.
3261 * java/awt/Event.java (Event): Implements Serializable.
3262 (consumed): New field for serialization.
3263 * java/awt/Dimension.java (Dimension): Implements Serializable.
3264 * java/awt/Cursor.java (Cursor): Implements Serializable.
3265 * java/awt/Container.java (Container): No longer abstract.
3267 * java/awt/Choice.java: Wrote.
3268 * java/awt/Checkbox.java: Wrote.
3269 * java/awt/ItemSelectable.java: Documented.
3270 * java/awt/CheckboxGroup.java: Wrote.
3272 * java/awt/CardLayout.java (layoutContainer): Directly use fields
3274 (getSize): Likewise.
3276 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
3278 * java/io/FileDescriptor.java: Initialize fd to -1.
3279 Remove default constructor.
3281 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
3283 * java/lang/mprec.h: Change C9X reference to refer to C99.
3285 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
3287 * java/lang/Throwable.java (trace_enabled): New static field.
3288 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3289 trace_enabled not set.
3290 * prims.cc (main_init): Turn off trace_enabled while creating
3291 default exception objects.
3293 2000-12-21 Tom Tromey <tromey@redhat.com>
3295 * java/beans/PropertyChangeListener.java: Extends EventListener.
3296 * java/beans/VetoableChangeListener.java: Extends EventListener.
3298 * java/util/zip/Deflater.java (update, init): Now private.
3300 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
3302 * java/util/BasicMapEntry.java: Re-added.
3303 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3304 (putAll): Test for BasicMapEntry.
3305 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3306 (putAll): Test for BasicMapEntry.
3307 Change references from `HashMap.Entry' to `Entry' in various places.
3308 * Makefile.am: Add BasicMapEntry.java.
3309 * Makefile.in: Rebuilt.
3311 2000-12-18 Warren Levy <warrenl@redhat.com>
3313 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3314 need to set timezone to a valid non-null value. Partial fix for
3317 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3319 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3321 * java/awt/Button.java (addNotify): Likewise.
3322 * java/awt/Label.java (addNotify): Likewise.
3323 * java/awt/Panel.java (addNotify): Likewise.
3324 * java/awt/Scrollbar.java (addNotify): Likewise.
3325 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3326 Remove redundant null checks.
3328 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3330 * COPYING: Update to current
3331 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3332 to 19yy as example year in copyright notice).
3334 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3336 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3337 end-of-stream if avail_in is 0.
3339 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3341 * java/util/ArrayList.java (data): Declare transient.
3342 (serialPersistantFields): Removed.
3343 (readObject): Use defaultReadObject(), not readFields().
3344 (writeObject): Use defaultWriteObject(), not writeFields().
3346 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3348 * java/util/Hashtable.java (put): Remove `last' variable.
3349 Link new entry to head of list.
3350 * java/util/HashMap.java (put): Ditto.
3352 2000-12-15 Tom Tromey <tromey@redhat.com>
3354 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3355 loader to Class.forName.
3357 2000-12-14 Tom Tromey <tromey@redhat.com>
3359 * java/util/ResourceBundle.java
3360 (getBundle(String,Locale,ClassLoader)): New method.
3361 (trySomeGetBundle): Added `loader' argument.
3362 (partialGetBundle): Likewise.
3364 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3365 maximumFractionDigits, maximumIntegerDigits,
3366 minimumFractionDigits, minimumIntegerDigits): Now
3369 * java/lang/Thread.java (checkAccess): Now final.
3371 * java/lang/RuntimePermission.java: Class now final.
3373 * java/io/StringWriter.java (StringWriter(int)): Now public.
3375 * java/io/SerializablePermission.java (legal_names): Now private.
3377 * java/lang/Character.java: Updated UnicodeBlock constants.
3378 * scripts/blocks.pl: Special case private use and surrogate
3381 2000-12-12 Tom Tromey <tromey@redhat.com>
3383 * Makefile.in: Rebuilt.
3384 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3386 (GCJCOMPILE): Use it.
3389 2000-12-11 Tom Tromey <tromey@redhat.com>
3391 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3392 New static final fields.
3394 * scripts/classes.pl (scan): Skip lines with leading `*'.
3395 Fix for PR libgcj/378.
3397 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3399 * configure.in: Remove check for -fuse-divide-subroutine.
3400 * configure: Rebuilt.
3402 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3404 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3406 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3408 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3409 Remove BasicMapEntry.java and Bucket.java.
3410 * Makefile.in: Rebuilt.
3411 * java/util/HashMap.java: Rewritten.
3412 * java/util/HashSet.java: Imported from classpath.
3413 * java/util/WeakHashMap.java: Imported from classpath.
3414 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3415 * java/util/Bucket.java: Deleted.
3416 * java/util/BasicMapEntry.java: Deleted.
3417 * java/util/Collections.java (search): Use a for-loop, not iterator
3419 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3420 of elements in source.
3421 (max): Use a for-loop.
3423 (reverse): Keep track of positions instead of using Iterator's
3424 nextIndex() and previousIndex().
3425 (shuffle(List)): Initialize defaultRandom if required using
3426 double-check thread safety idiom. Call two-argument shuffle method
3427 using defaultRandom.
3428 (defaultRandom): New field.
3429 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3430 using previousIndex() and nextIndex().
3431 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3432 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3433 * java/util/AbstractMap.java (toString): Use StringBuffer.
3434 * java/lang/ref/PhantomReference.java: Imported from classpath.
3435 * java/lang/ref/SoftReference.java: Ditto.
3436 * java/lang/ref/Reference.java: Ditto.
3437 * java/lang/ref/WeakReference.java: Ditto.
3438 * java/lang/ref/ReferenceQueue.java: Ditto.
3440 2000-12-10 Richard Henderson <rth@redhat.com>
3442 * configure.host: Recognize alpha*-*, not alphaev6-*.
3444 2000-12-09 Anthony Green <green@redhat.com>
3446 * configure.host: Enable interpreter for Alpha.
3448 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3450 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3451 (ZIP): Points at fastjar instead of zip.
3452 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3453 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3454 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3455 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3456 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3457 ($(x_java_source_files:.java=.class):): Likewise.
3458 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3460 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3461 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3462 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3463 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3464 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3465 gnu/gcj/runtime/VMClassLoader.h:,
3466 java/io/ObjectInputStream$$GetField.h:,
3467 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3468 (Makefile.in): Rebuilt.
3470 2000-12-08 Tom Tromey <tromey@redhat.com>
3473 * configure: Rebuilt.
3474 * configure.in: Use echo, not `:', to create .d files.
3476 2000-12-08 Warren Levy <warrenl@redhat.com>
3478 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3479 NullPointerException so proper check of offset can be done.
3481 2000-12-08 Warren Levy <warrenl@redhat.com>
3483 * java/io/FileInputStream.java (close): Check if the fd is valid.
3484 * java/io/RandomAccessFile.java (close): Ditto.
3485 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3486 * java/net/PlainSocketImpl.java (close): Ditto.
3488 2000-12-06 Tom Tromey <tromey@redhat.com>
3490 * java/awt/GridBagConstraints.java: Filled in values for static
3493 * java/util/BitSet.java: Updated copyright notice.
3495 * Makefile.in: Rebuilt.
3496 * Makefile.am (awt_java_source_files): Added new file.
3497 * java/awt/GridBagConstraints.java: New file.
3499 2000-12-05 Tom Tromey <tromey@redhat.com>
3501 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3502 Now package-private, not protected.
3503 * java/text/DateFormatSymbols.java (equals): Now private.
3504 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3505 * java/util/BitSet.java: Class no longer final.
3507 2000-12-04 Warren Levy <warrenl@redhat.com>
3509 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3510 out code dependent on compiler and library changes.
3512 2000-12-04 Warren Levy <warrenl@redhat.com>
3514 * java/io/FilePermission.java: Made class final per spec.
3515 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3516 method name to match spec (fixed typo).
3517 * java/util/LinkedList.java: Implements List.
3519 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3521 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3522 Edgar Villanueva <edgarvil@home.com>.
3524 2000-12-03 Tom Tromey <tromey@redhat.com>
3526 * java/awt/geom/Point2D.java: Added protected constructor.
3527 (equals): New method.
3528 (Float.setLocation(float,float)): New method.
3529 * java/awt/geom/Dimension2D.java: Added protected constructor.
3530 * java/awt/geom/AffineTransform.java: Made all constants public.
3531 (concatenate): Fixed typo in name.
3532 * java/awt/event/WindowAdapter.java: Class now abstract.
3533 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3534 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3537 * java/awt/AWTError.java: Extend Error, not
3538 IllegalStateException.
3540 * Makefile.in: Rebuilt.
3541 * Makefile.am (awt_java_source_files): Added new file.
3542 * java/awt/geom/RoundRectangle2D.java: New file.
3544 * Makefile.in: Rebuilt.
3545 * Makefile.am (awt_java_source_files): Added new file.
3546 * java/awt/FlowLayout.java: New file.
3548 * Makefile.in: Rebuilt.
3549 * Makefile.am (awt_java_source_files): Added new file.
3550 * java/awt/GridLayout.java: New file.
3552 2000-12-02 Tom Tromey <tromey@redhat.com>
3554 * Makefile.in: Rebuilt.
3555 * Makefile.am (awt_java_source_files): Added new files.
3556 * java/awt/CardLayout.java: New file.
3557 * java/awt/AWTPermission.java: New file.
3559 2000-12-01 Tom Tromey <tromey@redhat.com>
3561 * java/util/Vector.java (insertElementAt): Unconditionally
3562 increment elementCount.
3563 (removeRange): Clear unused slots in vector.
3565 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3567 * java/lang/natMath.cc: Declare fabsf() function.
3568 * java/lang/mprec.h: Don't include math.h.
3569 * java/lang/dtoa.c: Include string.h.
3570 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3573 From Adam Welc <welc@cs.purdue.edu>:
3574 * java/util/LinkedList.java (removeFirst): Update `first' field.
3575 Handle the last == first case.
3576 (removeLast): Update `last' field. Handle the last == first case.
3578 2000-12-01 Warren Levy <warrenl@cygnus.com>
3580 * Makefile.am: Added entries for new java.sql modules.
3581 * Makefile.in: Rebuilt.
3583 2000-12-01 Warren Levy <warrenl@cygnus.com>
3585 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3586 that aren't quite 1.2 compatible yet.
3588 2000-11-30 Warren Levy <warrenl@cygnus.com>
3590 * java/sql/Array.java: New file from classpath.
3591 * java/sql/BatchUpdateException.java: Ditto.
3592 * java/sql/Blob.java: Ditto.
3593 * java/sql/Clob.java: Ditto.
3594 * java/sql/Ref.java: Ditto.
3595 * java/sql/SQLData.java: Ditto.
3596 * java/sql/SQLInput.java: Ditto.
3597 * java/sql/SQLOutput.java: Ditto.
3598 * java/sql/Struct.java: Ditto.
3599 * java/sql/CallableStatement.java: Merged file from claspath.
3600 * java/sql/Connection.java: Ditto.
3601 * java/sql/DataTruncation.java: Ditto.
3602 * java/sql/DatabaseMetaData.java: Ditto.
3603 * java/sql/DriverManager.java: Ditto.
3604 * java/sql/PreparedStatement.java: Ditto.
3605 * java/sql/ResultSet.java: Ditto.
3606 * java/sql/ResultSetMetaData.java: Ditto.
3607 * java/sql/SQLException.java: Ditto.
3608 * java/sql/SQLWarning.java: Ditto.
3609 * java/sql/Statement.java: Ditto.
3610 * java/sql/Types.java: Ditto.
3612 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3614 * java/lang/natSystem.cc (init_properties): Set user.language and
3616 * configure.in: Check for setlocale.
3617 * configure: Rebuilt.
3618 * include/config.h.in: Rebuilt.
3620 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3621 the infate() call didn't deliver any output. Throw a ZipException if
3622 the needsDictionary() call returns true.
3623 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3624 * java/io/InputStreamReader: Use the default buffer size for the
3625 contained BufferedInputStream.
3627 2000-11-28 Warren Levy <warrenl@cygnus.com>
3629 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3630 more time zone entries.
3631 * java/text/SimpleDateFormat.java (format): Added case for
3634 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3636 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3637 directly rather than read() in all cases. Make primitive read
3638 implementations more efficient, as defined in JDK online docs.
3639 (skipBytes): Behave like the JDK's implementation.
3640 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3641 closed stream with checkStatus() whenever an IOException can be
3643 (checkStatus): New private method.
3645 2000-11-27 Warren Levy <warrenl@cygnus.com>
3647 * Makefile.am: Added natTimeZone.cc.
3648 * Makefile.in: Rebuilt.
3649 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3650 * java/text/DateFormatSymbols.java (ampms): Made package private.
3651 (eras): Made package private.
3652 (months): Made package private.
3653 (shortMonths): Made package private.
3654 (shortWeekdays): Made package private.
3655 (weekdays): Made package private.
3656 (formatPrefixes): New private field.
3657 (localPatternCharsDefault): Made private.
3658 (dateFormats): New package private field.
3659 (timeFormats): New package private field.
3660 (formatsForKey): New private method.
3661 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3662 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3663 * java/text/SimpleDateFormat.java: Merged with Classpath.
3664 * java/util/TimeZone.java: Merged with Classpath.
3665 * java/util/natTimeZone.cc: New file.
3667 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3669 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3670 (addElement): Don't increment elementCount twice. Doh.
3671 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3672 array needs to be expanded.
3674 * java/util/Collections.java (UnmodifiableCollection): Implement
3676 (UnmodifiableList): Throw UnsupportedOperationException from
3677 modification methods. Set `l' from the one-parameter constructor.
3678 (UnmodifiableMap): Implement toString().
3679 (SynchronizedCollection): Ditto.
3680 (SynchronizedList): Set `l' from the one-parameter constructor.
3681 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3682 (SynchronizedMap): Implement toString().
3684 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3686 * javax/naming/NameParser.java,
3687 javax/naming/directory/AttributeInUseException.java,
3688 javax/naming/directory/AttributeModificationException.java,
3689 javax/naming/directory/InvalidAttributeIdentifierException.java,
3690 javax/naming/directory/InvalidAttributesException.java,
3691 javax/naming/directory/InvalidAttributeValueException.java,
3692 javax/naming/directory/InvalidSearchControlsException.java,
3693 javax/naming/directory/InvalidSearchFilterException.java,
3694 javax/naming/directory/NoSuchAttributeException.java,
3695 javax/naming/directory/SchemaViolationException.java: New files.
3697 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3699 * javax/naming/InitialContext.java (rebind): Implement.
3700 (unbind): Implement.
3701 (rename): Implement.
3703 (listBindings): Implement.
3704 (destroySubcontext): Implement.
3705 (createSubcontext): Implement.
3706 (lookupLink): Implement.
3707 (getNameParser): Implement.
3708 (composeName): Implement.
3709 (addToEnvironment): Implement.
3711 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3713 * javax/naming/AuthenticationException.java,
3714 javax/naming/AuthenticationNotSupportedException.java,
3715 javax/naming/CannotProceedException.java,
3716 javax/naming/CommunicationException.java,
3717 javax/naming/ConfigurationException.java,
3718 javax/naming/ContextNotEmptyException.java,
3719 javax/naming/InsufficientResourcesException.java,
3720 javax/naming/InterruptedNamingException.java,
3721 javax/naming/InvalidNameException.java,
3722 javax/naming/LimitExceededException.java,
3723 javax/naming/LinkException.java,
3724 javax/naming/LinkLoopException.java,
3725 javax/naming/MalformedLinkException.java,
3726 javax/naming/NameAlreadyBoundException.java,
3727 javax/naming/NameNotFoundException.java,
3728 javax/naming/NamingSecurityException.java,
3729 javax/naming/NoPermissionException.java,
3730 javax/naming/NotContextException.java,
3731 javax/naming/PartialResultException.java,
3732 javax/naming/ReferralException.java,
3733 javax/naming/ServiceUnavailableException.java,
3734 javax/naming/SizeLimitExceededException.java,
3735 javax/naming/TimeLimitExceededException.java: New files.
3737 * javax/naming/Name.java (clone): New method.
3738 (compareTo): New method.
3739 (isEmpty): New method.
3740 (getAll): New method.
3741 (getPrefix): New method.
3742 (getSuffix): New method.
3743 (startsWith): New method.
3744 (endsWith): New method.
3745 (addAll): New method.
3746 (addAll): New method.
3749 (remove): New method.
3751 * javax/naming/Context.java (lookup): New method.
3752 (rebind): New method.
3753 (unbind): New method.
3754 (rename): New method.
3756 (listBindings): New method.
3757 (destroySubcontext): New method.
3758 (createSubcontext): New method.
3759 (lookupLink): New method.
3760 (getNameParser): New method.
3761 (composeName): New method.
3762 (addToEnvironment): New method.
3763 (removeFromEnvironment): New method.
3764 (getEnvironment): New method.
3765 (close): New method.
3766 (getNameInNamespace): New method.
3768 * javax/naming/InitialContext.java (lookup): New method.
3769 (rebind): New method.
3770 (unbind): New method.
3771 (rename): New method.
3773 (listBindings): New method.
3774 (destroySubcontext): New method.
3775 (createSubcontext): New method.
3776 (lookupLink): New method.
3777 (getNameParser): New method.
3778 (composeName): New method.
3779 (addToEnvironment): New method.
3780 (removeFromEnvironment): New method.
3781 (getEnvironment): New method.
3782 (close): New method.
3783 (getNameInNamespace): New method.
3785 2000-11-26 Tom Tromey <tromey@cygnus.com>
3787 * Makefile.in: Rebuilt.
3788 * Makefile.am (core_java_source_files): Added
3789 RuntimePermission.java.
3790 * java/lang/RuntimePermission.java: Imported from Classpath.
3791 * java/lang/Thread.java (getContextClassLoader): Now
3792 synchronized. Added security code.
3793 (setContextClassLoader): Likewise.
3795 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3796 length field of array.
3797 (_Jv_NewPrimArray): Likewise.
3798 * gcj/array.h (__JArray): `length' field now const. Added
3801 2000-11-26 Anthony Green <green@redhat.com>
3803 * javax/naming/spi/NamingManager.java,
3804 javax/naming/spi/ObjectFactory.java,
3805 javax/naming/spi/InitialContextFactory.java,
3806 javax/naming/spi/InitialContextFactoryBuilder.java,
3807 javax/naming/RefAddr.java, javax/naming/Reference.java,
3808 javax/naming/NamingException.java, javax/naming/Context.java,
3809 javax/naming/Referenceable.java,
3810 javax/naming/directory/InitialDirContext.java,
3811 javax/naming/directory/DirContext.java,
3812 javax/naming/directory/Attributes.java,
3813 javax/naming/directory/Attribute.java,
3814 javax/naming/StringRefAddr.java,
3815 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3816 javax/naming/InitialContext.java,
3817 javax/naming/NoInitialContextException.java: New files.
3819 2000-11-25 Anthony Green <green@redhat.com>
3821 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3822 (_Jv_NewPrimArray): Likewise.
3823 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3824 (class JArray): Removed constructor.
3826 * java/lang/Thread.java (context_class_loader): New private data.
3827 (getContextClassLoader): New method.
3828 (setContextClassLoader): New method.
3829 (Thread): Initialize context_class_loader.
3831 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3832 (getResource): Rename to findResource.
3833 (findResource): New method. Used to be getResource.
3834 (getResourceAsStream): Deleted.
3835 (jarFileize): Extracted logic from URLClassLoader constructor into
3836 this new private method.
3837 (addURL): New protected method.
3838 (URLClassLoader): Call jarFileize. Use addElement instead of
3840 (findResources): New method.
3842 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3843 (getResource): Implement correct logic.
3844 (findResource): New method.
3845 (getResources): New method.
3846 (findClass): Create a ClassNotFoundException with the name of the
3847 class rather than nothing at all.
3848 (defineClass) Only throw ClassFormatError.
3850 * java/lang/Class.java (forName): New method.
3851 * java/lang/Class.h (forName): New method.
3852 * java/lang/natClass.cc (forName): New method.
3854 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3856 * java/lang/System.java (setProperties): Only call init_properties()
3857 if properties is null.
3858 (getProperties): Ditto.
3859 (getProperty): Ditto.
3860 (setProperty): Call init_properties if properties are null.
3861 (prop_init): Remove field.
3862 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3863 method. Check for null properties after synchronizing instead of
3864 prop_init flag. Set the properties field last for thread safety.
3866 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3867 test for gcj.dumpobjects property and enable object stream dumping
3869 (dumpElement): No longer native.
3870 (dumpElementln): Ditto.
3871 (setDump): Do not define.
3872 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3873 (dumpElementln): Removed.
3876 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3878 * configure: Rebuilt.
3879 * Makefile.in: Rebuilt.
3880 * Makefile.am (built_java_source_files): Add Configuration.java.
3881 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3882 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3883 Create `gnu' directory in the build tree.
3884 * gnu/classpath/Configuration.java.in: New file.
3886 2000-11-24 Tom Tromey <tromey@cygnus.com>
3888 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3890 (_Jv_NewPrimArray): Likewise.
3892 * gcj/array.h (__JArray): `length' field now const. Added
3894 (class JArray): Added constructor.
3896 2000-11-23 Mark Wielaard <mark@klomp.org>
3898 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3901 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3903 * java/util/Vector.java: Improve exception messages.
3904 (Vector): Check initialCapacity for IllegalArgumentException.
3905 (tromToSize): Don't check for elementCount == elementData.length
3907 (toArray): Don't try to set null marker if target array is the same
3908 length as the vector.
3910 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3912 * Makefile.in: Rebuilt.
3913 * Makefile.am (core_java_source_files): Added Collections.java.
3914 * java/util/List.java: Merged from classpath.
3915 * java/util/Vector.java: Ditto.
3916 * java/util/Collections.java: From classpath.
3917 * java/util/ArrayList.java (addAll(Collection)): Call
3918 addAll(int,Collection) instead of duplicating code.
3919 (indexOf): Clean up int initialization.
3920 (clear): Set cleared array entries to null, to allow garbage
3922 * java/util/List.java: Minor formatting fixes.
3923 * java/util/SimpleTimeZone.java: ditto.
3925 2000-11-18 Tom Tromey <tromey@cygnus.com>
3927 * Makefile.in: Rebuilt.
3928 * Makefile.am (core_java_source_files): Added new files.
3929 * java/lang/reflect/ReflectPermission.java: New class.
3930 * java/io/FileFilter.java: From Classpath
3931 * java/io/FilePermission.java: From Classpath.
3933 2000-11-17 Tom Tromey <tromey@cygnus.com>
3935 * java/lang/reflect/AccessibleObject.java (isAccessible,
3936 setAccessible): Now public.
3938 * java/lang/natString.cc: Include Locale.h.
3939 (toUpperCase): Added `locale' argument. Handle locale
3941 (toLowerCase): Added `locale' argument. Handle locale
3943 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3944 CAPITAL_I): New defines.
3945 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3948 (toUpperCase, toLowerCase): New methods. Variants which accept
3951 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3954 * java/util/PropertyPermission.java: Re-merged from Classpath.
3956 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3958 * java/text/StringCharacterIterator.java: Reindented.
3959 (setText): New method.
3961 2000-11-17 Mark Wielaard <mark@klomp.org>
3963 Merge with Classpath (changes by Bryce McKinlay)
3964 * java/util/jar/*.java: Reformat all to unofficial standard coding
3965 style. No changes of substance.
3967 2000-11-17 Mark Wielaard <mark@klomp.org>
3969 * java/util/zip/*.java: Javadoc updates.
3971 2000-11-17 Tom Tromey <tromey@cygnus.com>
3973 * java/text/CollationKey.java: Implement Comparable.
3974 (compareTo(Object)): New method.
3975 * java/text/Collator.java (compare(Object,Object)): New method.
3976 Implement Comparator.
3978 * java/util/zip/InflaterInputStream.java (available): New method.
3979 (close): New method.
3980 (read, available, skip, fill): Throw exception if stream closed.
3981 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3982 getNextEntry): Throw exception if closed.
3984 2000-11-16 Tom Tromey <tromey@cygnus.com>
3986 * java/io/PushbackReader.java: Merged with Classpath.
3987 * java/util/Arrays.java: Updated from Classpath.
3989 * scripts/blocks.pl: New file.
3990 * java/lang/Character.java (Subset): New class.
3991 (UnicodeBlock): New class.
3993 * java/lang/Math.java (toDegrees, toRadians): New methods.
3995 * java/lang/Float.java: Implement Comparable.
3996 (compareTo): New methods.
3997 * java/lang/Double.java: Implement Comparable.
3998 (compareTo): New methods.
4000 2000-11-16 Warren Levy <warrenl@cygnus.com>
4002 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
4004 (listeners): Made transient.
4005 (source): Renamed from 'bean'.
4006 (children): New field for serialization.
4007 (propertyChangeSupportSerializedDataVersion): Ditto.
4008 (serialVersionUID): Ditto.
4009 (writeObject): New serialization method.
4010 (readObject): New serialization method.
4011 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
4013 (listeners): Made transient.
4014 (source): Renamed from 'bean'.
4015 (children): New field for serialization.
4016 (vetoableChangeSupportSerializedDataVersion): Ditto.
4017 (serialVersionUID): Ditto.
4018 (writeObject): New serialization method.
4019 (readObject): New serialization method.
4020 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
4021 to allow constructor to have a return type (i.e. the class that the
4022 constructor constructs).
4024 2000-11-14 Tom Tromey <tromey@cygnus.com>
4026 * Makefile.in: Rebuilt.
4027 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
4030 2000-11-02 Warren Levy <warrenl@cygnus.com>
4032 * java/io/ObjectInputStream.java (readObject): Added code to
4033 conditionally dump out the serialized data.
4034 Handle ENDBLOCKDATA case a bit more gracefully since the current
4035 behavior doesn't seem to work as expected.
4036 (readStreamHeader): Added code for serialized data dumper.
4037 (readNextBlock): Ditto.
4038 (readFields): Ditto.
4039 (dump): New private static field for turning on/off dumper.
4040 (setDump): New native method.
4041 (dumpElement): New native method.
4042 (dumpElementln): New native method.
4043 * java/io/natObjectInputStream.cc (setDump): New method.
4044 (dumpElement): New method.
4045 (dumpElementln): New method.
4047 2000-11-02 Warren Levy <warrenl@cygnus.com>
4049 * java/net/InetAddress.java (addr): Renamed from 'address'.
4050 (address): New field to match Serialized Form doc.
4051 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4052 (family): New serialization field.
4053 (serialVersionUID): New field.
4054 (readObject): New method.
4055 (writeObject): New method.
4056 (getFamily): New native method.
4057 (InetAddress): Set family.
4058 * java/net/natInetAddress.cc (getFamily): New method.
4059 (addr): Renamed from 'address'.
4060 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4061 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
4062 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
4064 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
4066 * java/util/AbstractList.java (SubList): Make it a top-level private
4068 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
4070 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
4071 * Makefile.in: Rebuilt.
4073 2000-11-02 Tom Tromey <tromey@cygnus.com>
4075 * Makefile.in: Rebuilt.
4076 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
4079 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4081 * java/util/AbstractList.java (remove): Comment out modCount increment
4082 to work around compiler bug.
4085 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4087 * java/util/AbstractList.java: Throw messages with
4088 IndexOutOfBoundsExceptions.
4089 (listIterator()): Call listIterator(0).
4090 (size): New field. Initialize to size().
4091 (hasNext): Test position against size, not size().
4092 (remove): Increment knownMod by one instead of resetting it from
4095 (SubList.upMod): Removed.
4096 (SubList.set): Don't call upMod() or update knownMod.
4097 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
4098 (SubList.remove): Ditto.
4099 (SubList.addAll): Don't call backingList.size(). Increment size from
4101 (SubList.iterator): New method. Call listIterator(0).
4102 (SubList.listIterator): New method. Restore code to return an anonymous
4103 listIterator implementation (with some changes).
4104 * java/util/AbstractSequentialList.java: Throw messages with
4105 IndexOutOfBoundsExceptions.
4106 (addAll): Add a specnote.
4107 * java/util/ArrayList.java (removeRange): Get the math right.
4108 (addAll): Increment modCount _before_ creating iterator.
4109 * java/util/LinkedList.java: Rewritten, mostly.
4111 2000-11-01 Tom Tromey <tromey@cygnus.com>
4113 * scripts/encodings.pl: Added `ASCII' alias.
4114 * Makefile.in: Rebuilt.
4115 * Makefile.am (convert_source_files): Added new files.
4116 * gnu/gcj/convert/Input_ASCII.java: New file.
4117 * gnu/gcj/convert/Output_ASCII.java: New file.
4118 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
4119 out-of-range characters.
4120 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
4121 (read): Swap bytes if required. Treat `count' as character count,
4123 (write): Likewise. Also, handle case where iconv fails on a given
4125 (init): Put encoding into exception.
4126 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
4127 (static): Call iconv_init. Rebuilt alias list.
4128 (iconv_init): New private method.
4130 2000-11-01 Tom Tromey <tromey@cygnus.com>
4132 * Makefile.in: Rebuilt.
4133 * Makefile.am (install-exec-hook): Only make a single symlink, and
4134 remove the destination before making the link.
4135 * configure: Rebuilt.
4136 * configure.in: Call AC_PROG_LN_S.
4138 2000-10-31 Warren Levy <warrenl@cygnus.com>
4140 * jni.cc: Added include of java/lang/ThreadGroup.h.
4141 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
4142 per change of 2000-10-05.
4144 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
4146 * java/util/BitSet.java: Updated @specnote.
4148 * java/io/Reader.java: Merge docs from classpath.
4149 (skip): Synchronize on `lock'.
4150 * java/io/FileReader.java: Import correct implementation from
4152 * java/io/StringReader.java: Merge docs from classpath.
4153 (ready): Throw IOException if stream is closed.
4155 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
4157 * java/util/AbstractCollection.java (addAll): Use size() instead of
4158 hasNext() in iterator loop.
4160 (contains): Ditto. Simplify loop.
4161 (containsAll): Ditto.
4166 (toString): Ditto. Use string concatenation operators, not
4168 * java/util/AbstractList.java (addAll): Use size() instead of
4169 hasNext() in iterator loop.
4172 (indexOf): Ditto. Don't take null check outside of the loop.
4173 (iterator): Return an AbstractListItr instead of anonymous class.
4174 (lastIndexOf): Use a for loop bounded by size() instead of
4175 hasPrevious() in iterator loop.
4176 (listIterator): Return an AbstractListItr.
4177 (removeRange): Remove bounds checking code and docs.
4178 (AbstractListItr): New inner class. Code moved here from
4180 (SubList.iterator): Removed. Use default implementation from
4181 AbstractList instead.
4182 (SubList.listIterator): As above.
4183 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
4184 instead of hasNext() in iterator loop.
4185 (containsValue): Ditto.
4191 (toString): Ditto. Use string concatenation operators, not
4193 * java/util/AbstractSequentialList.java (addAll): Use a for loop
4194 bounded by size() instead of hasNext() in iterator loop.
4195 * java/util/AbstractSet.java (hashCode): Don't catch exception as
4196 part of normal execution flow. Do an explicit null check instead.
4197 * java/util/ArrayList.java (_iSize): Rename to `size'.
4198 (_arData): Rename to `data'.
4199 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4202 (removeRange): Make protected. Don't check bounds.
4203 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4205 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4207 (addAll (int, Collection)): Check lower bounds. Simplify exception
4209 (clone): Clone the data array too.
4210 (indexOf): Inline doesEqual().
4211 (lastIndexOf): Ditto.
4212 (clear): Don't set array data to null.
4213 (set): Check lower bounds. Simplify exception string.
4214 (toArray): Correct comment.
4215 (trimToSize): Don't update modCount, this is not a structural change.
4218 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4220 (toString): Declare `bit' as long, not int.
4221 (data): Made package-private, not private.
4223 2000-10-27 Warren Levy <warrenl@cygnus.com>
4225 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4226 array elements to true.
4228 2000-10-27 Warren Levy <warrenl@cygnus.com>
4230 * Makefile.am: Added locale files from Classpath.
4231 * Makefile.in: Rebuilt.
4232 * gnu/java/locale/Calendar.java: New file.
4233 * gnu/java/locale/Calendar_de.java: New file.
4234 * gnu/java/locale/Calendar_en.java: New file.
4235 * gnu/java/locale/Calendar_nl.java: New file.
4236 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4237 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4238 serialization compatibility.
4239 (scale): Made private.
4240 (serialVersionUID): New field.
4241 * java/math/BigInteger.java (ival): Made transient.
4242 (words): Made transient.
4243 (bitCount): New serialization field.
4245 (firstNonzeroByteNum): Ditto.
4246 (lowestSetBit): Ditto.
4249 (serialVersionUID): New field.
4250 (readObject): New method.
4251 (writeObject): New method.
4252 * java/util/BitSet.java (serialVersionUID): New field.
4253 * java/util/Calendar.java: Replaced with Classpath file.
4254 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4255 of getDefault() for TimeZone or Locale instead of passing nulls.
4256 * java/util/Locale.java (serialVersionUID): New field.
4257 (writeObject): New method.
4258 (readObject): New method.
4259 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4261 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
4263 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4264 (core_java_source_files): Put java.lang, java.io, and java.util here.
4265 (ordinary_java_source_files): Order so that core_java_source_files are
4267 (java_source_files): Reorder so that special_java_source_files are
4269 * configure.in: Don't pass -I flag to gcj.
4270 * Makefile.in: Rebuilt.
4271 * configure: Rebuilt.
4273 2000-10-25 Tom Tromey <tromey@cygnus.com>
4275 * Makefile.in: Rebuilt.
4276 * Makefile.am (install-exec-hook): New target.
4278 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
4280 * java/util/EventObject.java: Merged from classpath.
4282 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4285 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4287 * java/util/AbstractSet.java (equals): Re-installed original code.
4289 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4291 * Makefile.am: Added rules for libgcjx library.
4292 * Makefile.in: Rebuilt.
4293 * configure.in: Added check for X.
4294 * configure: Rebuilt.
4295 * gnu/awt/LightweightRedirector.java: New file.
4296 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4297 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4298 * gnu/awt/j2d/Graphics2DImpl.java: New file.
4299 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4300 * gnu/awt/j2d/MappedRaster.java: New file.
4301 * gnu/awt/xlib/XCanvasPeer.java: New file.
4302 * gnu/awt/xlib/XEventLoop.java: New file.
4303 * gnu/awt/xlib/XEventQueue.java: New file.
4304 * gnu/awt/xlib/XFontMetrics.java: New file.
4305 * gnu/awt/xlib/XFramePeer.java: New file.
4306 * gnu/awt/xlib/XGraphics.java: New file.
4307 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4308 * gnu/awt/xlib/XPanelPeer.java: New file.
4309 * gnu/awt/xlib/XToolkit.java: New file.
4310 * gnu/gcj/xlib/Clip.java: New file.
4311 * gnu/gcj/xlib/Colormap.java: New file.
4312 * gnu/gcj/xlib/Display.java: New file.
4313 * gnu/gcj/xlib/Drawable.java: New file.
4314 * gnu/gcj/xlib/Font.java: New file.
4315 * gnu/gcj/xlib/GC.java: New file.
4316 * gnu/gcj/xlib/Pixmap.java: New file.
4317 * gnu/gcj/xlib/Screen.java: New file.
4318 * gnu/gcj/xlib/Visual.java: New file.
4319 * gnu/gcj/xlib/WMSizeHints.java: New file.
4320 * gnu/gcj/xlib/Window.java: New file.
4321 * gnu/gcj/xlib/WindowAttributes.java: New file.
4322 * gnu/gcj/xlib/XAnyEvent.java: New file.
4323 * gnu/gcj/xlib/XButtonEvent.java: New file.
4324 * gnu/gcj/xlib/XColor.java: New file.
4325 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4326 * gnu/gcj/xlib/XConnectException.java: New file.
4327 * gnu/gcj/xlib/XEvent.java: New file.
4328 * gnu/gcj/xlib/XException.java: New file.
4329 * gnu/gcj/xlib/XExposeEvent.java: New file.
4330 * gnu/gcj/xlib/XID.java: New file.
4331 * gnu/gcj/xlib/XImage.java: New file.
4332 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4333 * gnu/gcj/xlib/natClip.cc: New file.
4334 * gnu/gcj/xlib/natColormap.cc: New file.
4335 * gnu/gcj/xlib/natDisplay.cc: New file.
4336 * gnu/gcj/xlib/natDrawable.cc: New file.
4337 * gnu/gcj/xlib/natFont.cc: New file.
4338 * gnu/gcj/xlib/natGC.cc: New file.
4339 * gnu/gcj/xlib/natPixmap.cc: New file.
4340 * gnu/gcj/xlib/natScreen.cc: New file.
4341 * gnu/gcj/xlib/natVisual.cc: New file.
4342 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4343 * gnu/gcj/xlib/natWindow.cc: New file.
4344 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4345 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4346 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4347 * gnu/gcj/xlib/natXColor.cc: New file.
4348 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4349 * gnu/gcj/xlib/natXException.cc: New file.
4350 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4351 * gnu/gcj/xlib/natXImage.cc: New file.
4352 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4353 * java/awt/EventDispatchThread.java: Start thead on creation.
4355 2000-10-20 Tom Tromey <tromey@cygnus.com>
4357 From Arno J. Klaassen:
4358 * interpret.cc: Include <stdlib.h> for alloca.
4359 * defineclass.cc: Include <stdlib.h> for alloca.
4361 * Makefile.in: Rebuilt.
4362 * Makefile.am: Include deps.mk.
4363 (GCJCOMPILE): Added -MD, -MT, and -MF.
4364 ($(javao_files)): Don't depend on libgcj.zip.
4365 (all-recursive): New target.
4366 (%.lo:%.cc): Do dependency tracking.
4367 ($(nat_headers)): Don't depend on libgcj.zip.
4368 * configure: Rebuilt.
4369 * configure.in: Make .d files and deps.mk.
4371 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4373 * exception.cc: Don't #include "exception".
4374 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4376 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4377 * Makefile.in: Updated.
4379 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4381 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4382 * java/awt/peer/ComponentPeer.java (disable): Removed.
4385 (minimumSize): Removed.
4386 (preferredSize): Removed.
4389 * java/awt/peer/ListPeer.java (addItem): Removed.
4391 (minimumSize): Removed.
4392 (preferredSize): Removed.
4393 (setMultipleSelections): Removed.
4394 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4395 (remove): Renamed from removeMenu.
4396 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4398 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4399 (remove): Renamed from removeItem.
4400 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4401 (getMinimumSize): Removed.
4402 (getPreferredSize): Removed.
4403 (minimumSize): Removed.
4404 (preferredSize): Removed.
4405 (replaceText): Removed.
4406 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4407 (preferredSize): Removed.
4408 (getMinimumSize): Removed.
4409 (getPreferredSize): Removed.
4410 (setEchoCharacter): Removed.
4412 2000-10-10 Warren Levy <warrenl@cygnus.com>
4414 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4415 * java/sql/Date.java (serialVersionUID): New field.
4416 * java/sql/Time.java (serialVersionUID): New field.
4417 * java/sql/Timestamp.java (serialVersionUID): New field.
4418 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4419 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4420 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4421 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4422 (readObject): New serialization method.
4423 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4424 (serialVersionOnStream): New field.
4425 (readObject): New serialization method.
4426 (getMonetaryDecimalSeparator): New method.
4427 (setMonetaryDecimalSeparator): New method.
4428 * java/text/NumberFormat.java (maxFractionDigits): New field.
4429 (maxIntegerDigits): New field.
4430 (minFractionDigits): New field.
4431 (minIntegerDigits): New field.
4432 (serialVersionOnStream): New field.
4433 (serialVersionUID): New field.
4434 (readObject): New serialization method.
4435 (writeObject): New serialization method.
4436 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4437 (serialVersionOnStream): New field.
4438 (serialVersionUID): New field.
4439 (readObject): New serialization method.
4441 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4443 * configure.in (GCJ): Avoid bogus error message when looking for
4444 (and not finding) gcj in the build tree.
4445 * configure: Rebuilt.
4447 2000-10-09 Tom Tromey <tromey@cygnus.com>
4449 * configure: Rebuilt.
4450 * configure.in: Include sys/types.h when checking for socklen_t.
4451 From Arno J. Klaassen.
4453 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4455 * include/jvm.h: Enable __builtin_expect().
4457 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4458 the main program. Fix for PR libgcj/341.
4460 2000-10-07 Tom Tromey <tromey@cygnus.com>
4462 * java/util/Properties.java: Merged with Classpath version.
4464 2000-10-05 Tom Tromey <tromey@cygnus.com>
4466 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4467 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4468 * java/lang/Class.h (Object): Added `class$' field.
4469 * java/lang/Object.h (Object): Added `class$' field.
4470 * defineclass.cc (ClassClass): Use `class$' form.
4471 (ClassObject): Likewise.
4472 * resolve.cc (ClassObject): Use `class$' form.
4473 (ObjectClass): Likewise.
4474 * interpret.cc (ClassError): Removed.
4475 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4477 (IntegerClass): Likewise.
4478 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4480 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4481 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4482 SerializableClass): Likewise.
4483 Include Serializable.h, Cloneable.h.
4484 * java/lang/natSystem.cc (SystemClass): Removed.
4485 (init_properties): Use `class$' form.
4486 * java/lang/natObject.cc (CloneableClass): Removed.
4487 (clone): Use `class$' form.
4488 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4489 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4490 ConstructorClass): Likewise.
4491 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4492 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4493 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4494 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4496 (ClassClass): Likewise.
4497 * include/jvm.h (StringClass): Use `class$' form.
4498 * prims.cc (ObjectClass): Removed.
4499 (_Jv_RunMain): Use `class$' form.
4500 (_Jv_AllocObject): Likewise.
4501 * jni.cc (ClassClass): Use `class$' form.
4502 (ThrowableClass): Likewise.
4503 (ObjectClass): Likewise.
4504 (MethodClass): Likewise.
4505 (ThreadGroupClass): Likewise.
4506 (NativeThreadClass): Likewise.
4507 * boehm.cc (ObjectClass): Removed.
4508 (ClassClass): Removed.
4509 (_Jv_MarkObj): Use `class$' form.
4510 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4513 2000-10-05 Warren Levy <warrenl@cygnus.com>
4515 * Makefile.am: Removed java/io/Replaceable.java and
4516 java/io/Resolvable.java.
4517 * Makefile.in: Rebuilt.
4518 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4520 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4522 (processResolution): Handle readResolve method via reflection with
4523 removal of Resolvable interface.
4524 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4525 method via reflection with removal of Replaceable interface.
4526 * java/io/Replaceable.java: Removed.
4527 * java/io/Resolvable.java: Removed.
4528 * java/security/Key.java (serialVersionUID): New field.
4529 * java/security/Provider.java (serialVersionUID): New field.
4530 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4532 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4534 * java/sql/DataTruncation.java (serialVersionUID): New field.
4535 * java/sql/SQLException.java (serialVersionUID): New field.
4536 * java/sql/SQLWarning.java (serialVersionUID): New field.
4537 * java/util/Date.java (serialVersionUID): New field.
4538 (millis): Made transient.
4539 (readObject): New method.
4540 (writeObject): New method.
4542 2000-10-05 Tom Tromey <tromey@cygnus.com>
4544 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4546 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4548 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4549 (JvRunMain): Set _Jv_argv and _Jv_argc.
4550 * java/awt/Component.java: Minor fixes.
4551 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4552 * java/awt/Toolkit.java (systemEventQueue): Removed.
4553 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4554 * java/awt/Window.java (getToolkit): Don't call super.
4555 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4556 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4557 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4558 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4559 * gnu/awt/gtk/GtkFramePeer.java: New file.
4560 * gnu/awt/gtk/GtkMainThread.java: New file.
4561 * gnu/awt/gtk/GtkToolkit.java: New file.
4562 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4563 * gnu/awt/gtk/gtkcommon.cc: New file.
4564 * gnu/awt/gtk/gtkcommon.h: New file.
4565 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4566 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4567 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4568 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4569 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4570 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4572 2000-09-30 Tom Tromey <tromey@cygnus.com>
4574 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4575 interrupted before modifying the cv's wait set.
4578 2000-09-30 Hans Boehm <boehm@acm.org>
4579 Bryce McKinlay <bryce@albatross.co.nz>
4581 Implement bitmap descriptor based marking for Boehm GC.
4583 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4584 * configure: Rebuilt.
4585 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4586 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4587 method get_finalizer().
4588 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4589 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4590 (_Jv_AllocObj): Add new jclass parameter.
4591 (_Jv_AllocArray): Ditto.
4592 (_Jv_BuildGCDescr): New prototype.
4593 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4594 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4595 get_finalizer() instead of direct finalizer vtable offset.
4596 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4597 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4598 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4599 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4600 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4601 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4602 (_Jv_DetermineVTableIndex): Ditto.
4603 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4604 calculations to account for new gc_descr field.
4605 * boehm.cc: #include gc_gcj.h.
4606 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4607 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4608 New commentary from HB. Mark the classes vtable.
4609 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4610 (GC_DEFAULT_DESCR): New #define.
4611 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4612 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4613 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4614 scan conservativly if size is less than min_heap_addr. Set vtable
4615 pointer of new object before returning.
4616 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4617 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4618 allocation for obj_kind_x.
4619 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4620 (_Jv_AllocObj): Set vtable on returned object.
4621 (_Jv_AllocArray): Ditto.
4622 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4623 (_Jv_NewPrimArray): Ditto.
4624 (_Jv_AllocObj): Declare as a friend.
4625 (_Jv_AllocArray): Ditto.
4626 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4627 from &ObjectClass into new array class. Remove offset-by-one
4628 adjustments from `method' size calculations to account for gc_descr
4631 2000-09-26 Tom Tromey <tromey@cygnus.com>
4633 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4634 `remove', not `add'.
4636 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4638 * java/lang/natSystem.cc (file_encoding): Added return statement.
4640 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4642 * Makefile.am: Re-work shell commands that exceeded command-line
4644 * Makefile.in: Rebuilt.
4646 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4648 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4649 * java/lang/natDouble.cc: Likewise.
4650 * java/lang/reflect/natMethod.cc: Likewise.
4651 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4653 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4655 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4657 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4658 * acinclude.m4: Arrange for automake to not bring in a new
4659 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4660 * Makefile.am: Leave it up to automake to subst GCJ.
4661 * aclocal.m4, configure, Makefile.in: Rebuilt.
4663 2000-09-13 Tom Tromey <tromey@cygnus.com>
4665 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4666 (get): Ensure Boolean class is initialized.
4667 * java/lang/reflect/natField.cc (BooleanClass): New define.
4668 (get): Ensure Boolean class is initialized.
4670 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4672 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4673 Initialize with anonymous class.
4674 (compareToIgnoreCase): New method.
4676 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4677 (uncaughtException): Set had_uncaught_exception.
4678 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4679 exit with error status if set.
4680 (_Jv_RunMain): Ditto.
4682 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4684 * configure: Rebuilt with new ../libtool.m4.
4686 2000-09-11 Tom Tromey <tromey@cygnus.com>
4688 * java/lang/reflect/Field.java (toString): Don't rely on
4691 2000-09-08 Tom Tromey <tromey@cygnus.com>
4693 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4694 default decoder use iconv.
4695 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4696 Let default encoder use iconv.
4697 * configure: Rebuilt.
4698 * configure.in: Check for nl_langinfo and <langinfo.h>.
4699 * java/lang/natSystem.cc (file_encoding): New function.
4700 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4702 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4704 * acinclude.m4: Simplify the tests for CC and CXX.
4705 * aclocal.m4, configure: Rebuilt.
4707 * acinclude.m4: Include libtool macros from the source tree.
4708 * aclocal.m4, configure: Rebuilt.
4710 2000-09-08 Warren Levy <warrenl@cygnus.com>
4712 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4713 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4714 * java/io/File.java (writeObject): Added.
4715 (readObject): Added.
4716 (serialVersionUID): Added.
4717 * java/io/ObjectOutputStream.java (writeObject): Initialized
4718 fieldsAlreadyWritten before recursion rather than after.
4719 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4720 * java/io/OptionalDataException.java (serialVersionUID): Added.
4721 (OptionalDataException): Made package private.
4722 * java/io/SyncFailedException.java (SyncFailedException): Removed
4723 default constructor to match spec.
4724 * java/lang/Boolean.java (serialVersionUID): Added.
4725 * java/lang/Byte.java (serialVersionUID): Added.
4726 * java/lang/Character.java (serialVersionUID): Added.
4727 * java/lang/Double.java (serialVersionUID): Added.
4728 * java/lang/Float.java (serialVersionUID): Added.
4729 * java/lang/Integer.java (serialVersionUID): Added.
4730 * java/lang/Long.java (serialVersionUID): Added.
4731 * java/lang/Number.java (serialVersionUID): Added.
4732 * java/lang/Short.java (serialVersionUID): Added.
4733 * java/lang/String.java (serialVersionUID): Added.
4734 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4736 * java/lang/reflect/InvocationTargetException.java
4737 (serialVersionUID): Added.
4738 * java/net/URL.java (handler): Made transient.
4739 (hashCode): Added field for serialization, per spec. and use
4740 cached value if available.
4741 (serialVersionUID): Added.
4742 (URL): Initialize hashCode.
4743 (set): Adjust hashCode.
4744 (readObject): New Method to initialize the protocol handler when
4746 (writeObject): New method.
4747 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4748 * java/text/Collator.java: Removed 'implements Serializable'.
4749 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4750 * java/util/Properties.java (serialVersionUID): Added.
4751 * java/util/Random.java (serialVersionUID): Added.
4752 (seed): Made private.
4753 (nextNextGaussian): Made private.
4754 (haveNextNextGaussian): Made private.
4755 * java/util/Stack.java (serialVersionUID): Added.
4756 * java/util/TimeZone.java (serialVersionUID): Added.
4757 * java/util/Vector.java (serialVersionUID): Added.
4759 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4761 * Makefile.am (Thread.h): Don't be friends with native threads
4763 * Makefile.in: Rebuilt.
4764 * java/lang/Thread.java (interrupt_flag): Make package-private.
4766 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4768 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4769 to avoid long long division.
4771 2000-09-06 Tom Tromey <tromey@cygnus.com>
4773 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4775 * java/lang/reflect/Method.java (toString): Use `getName' for
4778 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4779 `args' if method takes no parameters.
4781 Fix for PR java.lang/339:
4782 * java/lang/natPosixProcess.cc (fail): New function.
4783 (cleanup): New function.
4784 (startProcess): Use them. Create pipe so child can communicate
4785 exec failure back to parent.
4787 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4789 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4791 (send): Undo last patch. Remove the label only.
4793 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4795 * java/net/natInetAdress.cc: Ditto.
4797 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4799 2000-09-05 Tom Tromey <tromey@cygnus.com>
4801 * doc/cni.sgml: Updated from master copy.
4803 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4805 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4807 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4809 * java/lang/fdlibm.h: #undef __P if previously defined.
4810 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4811 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4815 2000-09-04 Tom Tromey <tromey@cygnus.com>
4817 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4820 2000-09-04 Anthony Green <green@redhat.com>
4822 Fix for PR java.io/203:
4823 * java/io/File.java (createTempFile): Obey directory argument.
4824 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4825 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4826 variable to set java.io.tmpdir on non-WIN32 systems.
4828 2000-09-04 Anthony Green <green@redhat.com>
4830 * java/io/File.java (deleteOnExit): New method.
4831 * gnu/gcj/runtime/FileDeleter.java: New class.
4832 * java/lang/natRuntime.cc (exit): Call
4833 FileDeleter.deleteOnExitNow()
4834 * Makefile.am: Add FileDeleter.java.
4835 * Makefile.in: Rebuilt.
4837 2000-09-02 Tom Tromey <tromey@cygnus.com>
4839 * Makefile.in: Rebuilt.
4840 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4841 environment variable.
4843 2000-09-01 Andrew Haley <aph@redhat.com>
4845 * java/io/StreamTokenizer.java: Don't throw a
4846 NumberFormatException if a field is numeric as far as the
4847 StreamTokenizer is concerned but not as far as Double.valueOf() is
4848 concerned: return a zero instead.
4850 2000-08-30 Tom Tromey <tromey@cygnus.com>
4852 * Makefile.in: Rebuilt.
4853 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4855 2000-08-28 Tom Tromey <tromey@cygnus.com>
4857 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4858 gnu/gcj/awt/ComponentDataBlitOp.java,
4859 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4860 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4861 java/awt/color/ICC_ColorSpace.java,
4862 java/awt/color/ICC_Profile.java,
4863 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4864 java/awt/image/ComponentColorModel.java,
4865 java/awt/image/ComponentSampleModel.java,
4866 java/awt/image/DataBuffer.java,
4867 java/awt/image/DataBufferByte.java,
4868 java/awt/image/DataBufferInt.java,
4869 java/awt/image/DataBufferUShort.java,
4870 java/awt/image/DirectColorModel.java,
4871 java/awt/image/IndexColorModel.java,
4872 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4873 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4874 java/awt/image/SinglePixelPackedSampleModel.java,
4875 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4876 Removed Latin-1 copyright symbols.
4877 * java/util/zip/ZipFile.java: Indentation fixes.
4879 2000-08-27 Mark Wielaard <mark@klomp.org>
4881 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4882 constructor, close can delete the file, finalize calls close.
4883 * java/util/jar/JarFile.java: Constructor that takes mode now
4886 2000-08-27 Anthony Green <green@redhat.com>
4888 * java/util/ArrayList.java, java/util/Timer.java,
4889 java/util/LinkedList.java, java/util/TimerTask.java,
4890 java/util/HashMap.java, java/util/AbstractMap.java,
4891 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4892 java/util/SortedSet.java: Imported from GNU Classpath.
4893 * Makefile.in: Rebuilt.
4894 * Makefile.am: Added new files.
4896 2000-08-26 Anthony Green <green@redhat.com>
4898 * Makefile.in: Rebuilt.
4899 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4902 * prims.cc: Include ClassLoader.h.
4903 (_Jv_RunMain): When executing jar files, classpath must be the jar
4904 file only. Lose our reference to the system ClassLoader in order
4905 to get a new one with the correct classpath.
4906 * java/lang/natSystem.cc (init_properties): When executing a jar
4907 file, only use the jar file for java.class.path.
4909 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4910 for bytecode archives.
4912 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4913 exists, but not Main-Class.
4915 2000-08-23 Mark Wielaard <mark@klomp.org>
4917 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4918 return -1 when fill() has no more data for the Inflater.
4920 2000-08-23 Mark Wielaard <mark@klomp.org>
4922 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4923 write(String) already does.
4925 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4927 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4928 to `alive_flag', call `init'.
4929 (init): New native method.
4930 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4933 2000-08-21 Mark Wielaard <mark@klomp.org>
4935 * Makefile.in: Rebuilt.
4936 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4938 (java/lang/reflect/Field.h): Likewise.
4939 (java/lang/reflect/Method.h): Likewise.
4940 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4943 2000-08-21 Tom Tromey <tromey@cygnus.com>
4945 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4948 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4950 * java/lang/natSystem.cc (init_properties): Change sourceware
4951 reference to sources.redhat.com.
4953 * include/java-props.h: Add _Jv_Jar_Class_Path.
4954 * prims.cc: Ditto. Set it from `gij -jar file' option.
4956 * java/lang/natSystem.cc (init_properties): Set java.class.path
4958 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4960 * java/util/PropertyPermission.java: Import from GNU Classpath.
4961 * Makefile.in: Rebuilt.
4962 * Makefile.am: Add java/util/PropertyPermission.java.
4963 * java/lang/System.java: Add setProperty method.
4965 * gij.cc (main): Add -jar option to execute jar files.
4966 (help): Describe -jar option.
4967 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4968 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4969 * gnu/gcj/runtime/FirstThread.java (main): New method.
4971 * java/util/jar/Attributes.java: Correct comment spelling.
4973 2000-08-20 Mark Wielaard <mark@klomp.org>
4975 * java/util/zip/Adler32.java: Make private variables really private
4976 * java/util/zip/CRC32.java: Make private variables really private
4977 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4979 * java/util/zip/InflaterInputStream.java: skip() could skip to
4981 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4982 * java/util/zip/ZipFile.java: size() new 1.2 method
4983 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4984 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4987 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4989 * java/util/jar/JarFile.java: Don't call
4990 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4993 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4995 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4996 Read the entire contents of the class file, not just what is
4999 * java/net/JarURLConnection.java: getEntry doesn't take any
5000 arguments. Return null if element is null.
5002 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
5003 size from the archive, not the inflated size.
5005 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
5006 java.util.zip.ZipFile.getEntry.
5008 * gij.cc (help): Change sourceware reference to
5011 2000-08-19 Tom Tromey <tromey@cygnus.com>
5013 * java/util/zip/ZipInputStream.java (createZipEntry):
5016 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
5018 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
5019 java/util/jar/JarException.java, java/util/jar/JarFile.java,
5020 java/util/jar/JarInputStream.java,
5021 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
5022 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
5023 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
5024 java/security/cert/CRL.java, java/security/cert/CRLException.java,
5025 java/security/cert/Certificate.java,
5026 java/security/cert/CertificateEncodingException.java,
5027 java/security/cert/CertificateException.java,
5028 java/security/cert/CertificateExpiredException.java,
5029 java/security/cert/CertificateFactory.java,
5030 java/security/cert/CertificateFactorySpi.java,
5031 java/security/cert/CertificateNotYetValidException.java,
5032 java/security/cert/CertificateParsingException.java,
5033 java/security/cert/X509CRL.java,
5034 java/security/cert/X509CRLEntry.java,
5035 java/security/cert/X509Certificate.java,
5036 java/security/cert/X509Extension.java: Imported from Classpath.
5037 * java/util/Hashtable.java: Imported from Classpath.
5039 * java/util/zip/ZipInputStream.java: Create stub for
5042 * gcj/javaprims.h: Updated class list.
5044 * Makefile.in, gcj/Makefile.in: Rebuilt.
5045 * Makefile.am (ordinary_java_source_files): Add these new classes.
5047 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5049 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
5050 * gnu/gcj/awt/GLightweightPeer.java: New file.
5051 * java/awt/BorderLayout.java: Implemented all methods.
5052 * java/awt/Button.java (actionListener, actionCommand): Renamed
5053 and modifier change.
5054 (addNotify): Call super.
5055 (dispatchEventImpl): New method.
5056 (getListeners): New method.
5057 (label): Made package-private, not private.
5058 * java/awt/Canvas.java: Implemented class body.
5059 * java/awt/Color.java (brighter): New method.
5060 (darker): New method.
5061 (hashCode): New method.
5062 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
5063 (getGraphicsConfiguration): Delegate to
5064 getGraphicsConfigurationImpl().
5065 (getGraphicsConfigurationImpl): New method.
5066 (getToolkit): Only return value from peer if not null.
5067 (isDisplayable): Check with parent.
5068 (isShowing): No parent implies not showing.
5069 (getForeground): Check parent property if local is null.
5070 (getBackground): Likewise.
5071 (getFont): Likewise.
5072 (setForeground): Inform peer.
5073 (setBackground): Likewise
5074 (setLocale): Invalidate component.
5075 (getColorModel): Implemented.
5076 (setLocation): Invalidate, or ignore if no change.
5077 (setSize): Invalidate, or ignore if no change.
5078 (setBounds): Invalidate, or ignore if no change.
5079 (isOpaque): By default, heavyweight implies opaque.
5080 (isLightweight): Implemented.
5081 (getMaximumSize): Implemented.
5082 (doLayout): Implemented, NOP.
5083 (validate): Implemented, NOP.
5084 (invalidate): Only propagate to parent if parent was valid.
5085 (getGraphics): Implemented.
5086 (getFontMetrics): Implemented.
5087 (update): Implemented.
5088 (paintAll): Implemented.
5089 (repaint): Implemented all repaint methods.
5090 (print): Implemented.
5091 (printAll): Implemented.
5092 (createImage): Implemented.
5093 (dispatchEvent): Give the peer a chance to handle the event.
5094 (dispatchEventImpl): Dispatch paint events.
5095 (enableEvents): Lightweights enable events on parent component.
5096 (coalesceEvents): Coalesce paint events, and select event type
5098 (coalescePaintEvents): New method.
5099 (processEvent): Fix unfortunate ordering of statements, and call
5100 correct method for MOUSE_CLICKED.
5101 (processPaintEvent): New method.
5102 (addNotify): Allow container to notify children before event
5103 mask is set in peer.
5104 (addNotifyContainerChildren): New method.
5105 (removeNotify): Visibility should not change on removeNotify.
5106 (paramString): Implemented.
5107 (list): Implemented two of the list methods.
5108 * Container (myInsets): Removed, insets are managed by peer.
5109 (getInsets): Query peer.
5110 (addImpl): Fix reparenting, enable events for lightweights,
5111 initialize component array.
5112 (validate): Call doLayout in validateTree() instead.
5113 (validateTree): Do nothing if already valid. Call beginValidate(),
5114 endValidate() on peer. Call validateTree() instead of validate()
5115 for children that are containers. Mark valid after validation of
5117 (setFont): Partial implementation.
5118 (paint): Implemented.
5119 (visitChildren): New method.
5120 (visitChild): New method.
5121 (update): Implemented.
5122 (print): Implemented.
5123 (paintComponents): Implemented.
5124 (printComponents): Consider translation and clipping.
5125 (getComponentAt): Ignore invisible children. Return this if no
5127 (addNotify): Call super.
5128 (addNotifyContainerChildren): New method.
5129 (paramString): Implemented.
5130 (list): Implemented.
5131 * java/awt/EventQueue (invokeAndWait): Get system event queue the
5133 (invokeLater): Likewise.
5134 (isDispatchThread): Likewise.
5135 * java/awt/FontMetrics (getLeading): Formula change.
5136 (getDescent): Consider leading also.
5137 (getMaxAscent): Default to getAscent().
5138 (getMaxDescent): Default to getDescent.
5139 (getMaxAdvance): Return value signifying unknown.
5140 (charWidth): Both methods implemented.
5141 (charsWidth): Implemented.
5142 (bytesWidth): Implemented.
5143 (getWidths): Implemented.
5144 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
5146 (Frame): Rearragend constuctor chaining to disallow null being
5147 passed as a graphics configuration.
5148 (getTitle): Return empty string if null.
5150 (getIconImage): New method.
5151 (setIconImage): New method.
5152 (finalize): New method.
5153 (setMenuBar): Notify peer.
5154 (isResizable): New method.
5155 (setResizable): New method.
5156 (getState): New method.
5158 (remove): Implemented.
5159 (removeNotify): New method.
5160 (getFrames): New method.
5161 * java/awt/Graphics.java: Implemented body of class.
5162 * java/awt/Graphics2D.java: New file.
5163 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
5164 * java/awt/Image.java: Implemented body of class.
5165 * java/awt/Panel.java (Panel): Call correct super constructor.
5166 (addNotify): Implemented.
5167 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
5168 * java/awt/RenderingHints.java: New file.
5169 * java/awt/Toolkit.java (createComponent): Implemented.
5170 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
5171 * java/awt/Window.java (Window): Two new constructors. Reordered
5172 constructor chaining.
5173 (getGraphicsConfigurationImpl): New method.
5174 (finalize): Call super.
5175 (addNotify): Call super.
5176 (pack): Do layout stuff.
5177 (show): Ensure that peer exists and that component is valid.
5178 (dispose): Dispose owned children.
5179 (getOwner): Simplify code, casting null pointers is valid.
5180 (getGraphicsConfiguration): Ask peer if local value is null.
5181 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
5183 * java/awt/image/BufferedImage.java: New file.
5184 * java/awt/image/RasterOp.java: New file.
5185 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
5186 More powerfull replacement for getColorModel().
5187 (getColorModel) Removed.
5188 (setEventMask) New method.
5189 * Makefile.am: Added new files.
5190 * Makefile.in: Rebuilt.
5192 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
5194 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
5195 (finit_leg_name): New global.
5196 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5197 `$finit$'. This is a backward compatibility hack.
5198 (java::lang::Class::_getMethods): Likewise.
5200 2000-08-15 Andrew Haley <aph@cygnus.com>
5202 * include/jvm.h (_Jv_HashCode): New hash code.
5204 2000-08-15 Tom Tromey <tromey@cygnus.com>
5206 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5208 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
5210 * THANKS: More thanks.
5212 2000-08-10 Tom Tromey <tromey@cygnus.com>
5214 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5216 (connect): Likewise.
5218 (getOption): Likewise.
5219 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5220 case when errno not set.
5223 (receive): Likewise.
5224 (mcastGrp): Likewise.
5225 (setOption): Likewise.
5226 (getOption): Likewise.
5228 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
5229 John Stracke <francis@ecal.com>
5231 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5232 (connect): Don't falsely claim HTTP/1.1 compliance. Call
5234 (disconnect): Don't unset connected flag.
5235 (getHeaderField (String)): Call connect() if not connected.
5236 (getHeaderField (int)): Ditto.
5237 (getHeaderFieldKey): Ditto.
5238 (getHttpHeaders): Don't call connect().
5239 * java/net/HttpURLConnection.java (instanceFollowRedirects,
5240 gotResponseVals): New fields.
5241 (getResponseCode): Call getResponseVals() conditionally.
5242 (getResponseMessage): Ditto.
5243 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5245 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
5247 * Makefile.am: Move beans and applet classes to awt_java_source_files.
5248 * Makefile.in: Rebuilt.
5249 * java/awt/Color.java (getTransparency): New method.
5250 * java/awt/Component.java: Various updates.
5251 * java/awt/Container.java (removeNotify): Call super.removeNotify()
5252 after dealing with children.
5253 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5254 * java/awt/Window.java: Various new methods and updates.
5255 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5257 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5258 * java/awt/event/WindowEvent.java (paramString): Ditto.
5259 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5261 * java/awt/geom/Point2D.java (clone): Ditto.
5262 * java/awt/geom/RectangularShape.java (clone): Ditto.
5263 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5264 isAlphaPremultiplied): Make package-private, not private.
5266 2000-08-08 Tom Tromey <tromey@cygnus.com>
5268 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5269 surrogate characters.
5270 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5272 (write): Correct handling of surrogate characters.
5274 2000-08-07 Tom Tromey <tromey@cygnus.com>
5276 * java/lang/reflect/Method.java (hashCode): Use getName().
5277 (toString): Likewise.
5278 * java/lang/reflect/natMethod.cc (getType): Initialize
5281 * java/lang/reflect/Method.java (toString): Use Class.getName, not
5283 * java/lang/reflect/Field.java (toString): Correct formatting.
5286 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5288 (receive): Streamlined.
5290 2000-08-05 Tom Tromey <tromey@cygnus.com>
5292 * java/io/PrintWriter.java: Merged comments from Classpath.
5293 (printlnUnsynchronized): Removed.
5294 (println()): Print the separator.
5295 (println): Call println(), not printlnUnsynchronized.
5296 (out): Now protected, to match spec.
5298 2000-08-04 Tom Tromey <tromey@cygnus.com>
5300 * java/io/StreamTokenizer.java (TT_NONE): Now private.
5301 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5304 2000-08-03 Warren Levy <warrenl@cygnus.com>
5306 * java/io/ObjectInputStream.java (readFields): Turn off
5307 readDataFromBlock while reading via GetField.
5308 (GetField$1.get(String, Object)): Pass Class of default value to
5310 (getField): Allow for null default values.
5312 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5313 (PutField$1.put): Fixed calls of checkType in most of the put
5314 methods to pass the correct parameter.
5315 (PutField$1.put(String, Object)): Allow for null value arg.
5316 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5319 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5320 typo in spec'ed field name.
5321 (getSerialPersistentFields): Changed spelling of method to match
5322 the correct spelling of the spec'ed field name.
5324 2000-08-03 Tom Tromey <tromey@cygnus.com>
5326 * Makefile.in: Rebuilt.
5327 * Makefile.am (awt_java_source_files): Added new files.
5329 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5331 * Makefile.am: Add new AWT stubs.
5332 * java/awt/Canvas.java: New placeholder class.
5333 * java/awt/Checkbox.java: Ditto.
5334 * java/awt/CheckboxMenuItem.java: Ditto.
5335 * java/awt/Choice.java: Ditto.
5336 * java/awt/Dialog.java: Ditto.
5337 * java/awt/FileDialog.java: Ditto.
5338 * java/awt/List.java: Ditto.
5339 * java/awt/ScrollPane.java: Ditto.
5340 * java/awt/TextField.java: Ditto.
5341 * java/awt/datatransfer/Clipboard.java: Ditto.
5342 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5343 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5344 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5345 Some commented out. Partially implemented.
5346 * java/awt/natToolkit.cc: Removed file.
5348 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5350 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5351 Fixes "make -j" builds.
5352 * Makefile.in: Rebuild.
5354 2000-08-02 Tom Tromey <tromey@cygnus.com>
5356 * Makefile.in: Rebuilt.
5357 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5358 * java/net/natPlainSocketImpl.cc: Include posix.h.
5359 (accept): Use _Jv_select.
5360 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5361 (receive): Use _Jv_select.
5362 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5363 (available): Use _Jv_select.
5364 * java/lang/natSystem.cc: Include posix.h.
5365 (currentTimeMillis): Use _Jv_gettimeofday.
5366 * include/posix.h: New file.
5367 * posix.cc: New file.
5369 * scripts/encodings.pl: New file.
5370 * Makefile.in: Rebuilt.
5371 * Makefile.am (convert_source_files): Added IOConverter.java.
5372 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5374 (getDefaultDecodingClass): Canonicalize default encoding name.
5375 (getEncoder): Likewise.
5376 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5378 (getDefaultDecodingClass): Canonicalize default encoding name.
5379 (getDecoder): Likewise.
5380 * gnu/gcj/convert/IOConverter.java: New file.
5382 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5384 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5385 to match C declaration in ffi.h.
5386 * Makefile.am: Add java/awt/Button.java.
5387 * Makefile.in: Rebuilt.
5389 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5391 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5392 cast of the second argument to `ffi_raw_call' changed to match
5395 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5397 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5398 argument to `ffi_raw_call' changed to match prototype.
5400 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5402 * java/awt/Component.java (toString): Implemented.
5403 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5404 dispatchEvent() to dispatch the event.
5405 (removeImpl): Ditto.
5407 2000-07-30 Anthony Green <green@redhat.com>
5409 * java/awt/Component.java: Add treeLock object.
5410 (getTreeLock): Implement.
5411 (isShowing): Implement.
5413 2000-07-30 Tom Tromey <tromey@cygnus.com>
5415 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5417 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5419 * java/awt/Window.java (addNotify): Wrote.
5420 (addWindowListener): Wrote.
5422 (getWarningString): Wrote.
5423 (processEvent): Wrote.
5424 (processWindowEvent): Wrote.
5425 (removeWindowListener): Wrote.
5426 (show): Call validate(), setVisible().
5430 * java/awt/Toolkit.java (createWindow): Declare.
5432 * java/awt/Frame.java (addNotify): Use getToolkit to find
5435 * java/awt/Component.java (invalidate): Wrote.
5437 (getToolkit): Wrote.
5439 * java/awt/Container.java (addContainerListener): Removed
5441 (removeContainerListener): Likewise.
5443 (add(Component)): Use it.
5444 (add(String,Component)): Likewise.
5445 (add(Component,int)): Likewise.
5446 (add(Component,Object)): Likewise.
5447 (add(Component,Object,int)): Likewise.
5449 (getAlignmentX): Wrote.
5450 (getAlignmentY): Wrote.
5451 (getComponentAt): Wrote.
5452 (getMaximumSize): Wrote.
5453 (invalidate): Wrote.
5454 (list(PrintStream,int)): Wrote.
5455 (list(PrintWriter,int)): Wrote.
5456 (getMinimumSize): Wrote.
5457 (getPreferredSize): Wrote.
5458 (printComponents): Wrote.
5459 (processContainerEvent): Look at containerListener, not
5461 (remove): Added event processing and peer destruction.
5462 (removeAll): Use remove.
5463 (removeNotify): Wrote.
5465 (validateTree): Wrote.
5467 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5468 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5469 * java/awt/Container.java (addNotify): Don't create Container
5471 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5473 2000-07-30 Tom Tromey <tromey@cygnus.com>
5475 * java/awt/Container.java (remove(int)): Wrote.
5476 (remove(Component)): Wrote.
5477 (add(Component)): Wrote.
5478 (add(Component,int)): Wrote.
5480 (addNotify): Set our own peer.
5481 * java/awt/Scrollbar.java (listeners): Changed type.
5482 (Scrollbar): Don't initialize listeners.
5484 (setValue): Call setValues.
5485 (setMinimum): Likewise.
5486 (setMaxPriority): Likewise.
5487 (setVisibleAmount): Likewise.
5489 (setUnitIncrement): Forward to peer.
5490 (setLineIncrement): Call setUnitIncrement.
5491 (setPageIncrement): Call setBlockIncrement.
5492 (setBlockIncrement): Forward to peer.
5493 (addAdjustmentListener): Rewrote.
5494 (removeAdjustmentListener): Rewrote.
5495 (processAdjustmentEvent): Rewrote.
5496 (paramString): Wrote.
5497 * Makefile.in: Rebuilt.
5498 * Makefile.am (awt_java_source_files): Added Button.java.
5499 * java/awt/Button.java: New file.
5500 * java/awt/Toolkit.java (createLabel): Declare.
5501 (createButton): Likewise.
5502 (createScrollbar): Likewise.
5503 (createContainer): Likewise.
5504 * java/awt/Label.java (addNotify): Wrote.
5505 (setAlignment): Call setAlignment in the peer.
5506 (setText): Call setText in the peer.
5508 2000-07-28 Warren Levy <warrenl@cygnus.com>
5510 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5511 NotSerializableException with just the class name.
5513 2000-07-26 Andrew Haley <aph@cygnus.com>
5515 * interpret.cc (continue1): Insert missing break into switch.
5517 2000-07-28 Warren Levy <warrenl@cygnus.com>
5519 * java/io/ObjectStreamException.java: Made constructors protected.
5521 2000-07-27 Tom Tromey <tromey@cygnus.com>
5523 * java/io/OutputStreamWriter.java (close): Only flush if not
5526 2000-07-27 Warren Levy <warrenl@cygnus.com>
5528 * mauve-libgcj: Activated serialization tests.
5529 * gcj/field.h (getModifiers): Mask off unknown flags.
5530 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5531 spurious bits don't cause discrepancies.
5532 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5533 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5534 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5535 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5536 * java/lang/Throwable.java (serialVersionUID): New field.
5537 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5538 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5540 * java/lang/reflect/natMethod.cc: Ditto.
5541 * java/security/Key.java (serialVersionUID): Removed field for now.
5542 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5543 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5545 2000-07-22 Tom Tromey <tromey@cygnus.com>
5547 * java/awt/geom/RectangularShape.java (getPathIterator):
5550 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5552 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5553 stub libjava/java/awt/ColorModel.java which was located in the
5555 * libjava/java/awt/image/ComponentColorModel.java: New file.
5556 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5557 * libjava/java/awt/image/DataBuffer.java: New file.
5558 * libjava/java/awt/image/DataBufferByte.java: New file.
5559 * libjava/java/awt/image/DataBufferInt.java: New file.
5560 * libjava/java/awt/image/DataBufferUShort.java: New file.
5561 * libjava/java/awt/image/DirectColorModel.java: New file.
5562 * libjava/java/awt/image/PackedColorModel.java: New file.
5563 * libjava/java/awt/image/Raster.java: New file.
5564 * libjava/java/awt/image/SampleModel.java: New file.
5565 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5567 * libjava/java/awt/image/IndexColorModel.java: New file.
5568 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5569 java.awt.ColorModel stub.
5571 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5572 * gnu/gcj/util/Buffers.java: New file, utility class.
5574 * libjava/Makefile.am: Updated to include new files.
5575 * libjava/Makefile.in: Rebuilt.
5577 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5579 * java/io/StreamTokenizer.java: Merged with classpath.
5581 2000-07-20 Tom Tromey <tromey@cygnus.com>
5583 * Makefile.in: Rebuilt.
5584 * Makefile.am (awt_java_source_files): Updated for new files.
5585 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5586 * java/awt/Label.java: New file.
5587 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5588 (createIntersection, createUnion, getBounds2D): New methods.
5589 * java/awt/Scrollbar.java: New file.
5590 * java/awt/Shape.java: Updated to 1.2.
5591 * java/awt/geom/AffineTransform.java: New file.
5592 * java/awt/geom/Ellipse2D.java: New file.
5593 * java/awt/geom/NoninvertibleTransformException.java: New file.
5594 * java/awt/geom/PathIterator.java: New file.
5595 * java/awt/geom/Rectangle2D.java: New file.
5596 * java/awt/geom/RectangularShape.java: New file.
5597 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5598 * java/awt/geom/IllegalPathStateException.java: New file.
5600 * scripts/showval.java: New file.
5602 * scripts/classes.pl (scan): Print inner classes properly.
5603 * gcj/javaprims.h: Updated class list.
5605 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5606 initialize String fields for interpreted classes. Fixes bug
5607 reported by Hans Boehm.
5609 * java/io/File.java (getParentFile): New method, from Classpath
5610 via Oskar Liljeblad.
5612 * java/util/Vector.java (remove(Object)): Implemented.
5614 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5616 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5617 zero return from backtrace().
5619 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5621 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5623 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5624 before calling notifyAll().
5626 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5628 Add missing files from last check-in:
5629 * java/awt/image/ImageConsumer.java: New file.
5630 * java/awt/image/ImageProducer.java: New file.
5631 * java/awt/image/ImageObserver.java: New file.
5633 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5635 Merged implementation of java.applet from classpath:
5636 * java/applet/Applet.java: New file.
5637 * java/applet/AppletContext.java: New file.
5638 * java/applet/AppletStub.java: New file.
5639 * java/applet/AudioClip.java: New file.
5641 * Makefile.am: Added new java.applet classes.
5642 * Makefile.in: Rebuilt.
5644 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5647 * java/util/ResourceBundle.java (getLocale): stub.
5648 * Makefile.am: Added new AWT classes.
5649 * Makefile.in: Rebuilt.
5650 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5651 constructors. Fix toString() and paramString().
5652 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5653 * java/awt/CheckboxGroup.java: New class.
5654 * java/awt/ColorModel.java: New class.
5655 * java/awt/Component.java: Added stubs for most methods. Implemented
5657 * java/awt/Container.java: ditto.
5658 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5659 * java/awt/Cursor.java: ditto.
5660 * java/awt/Event.java: Fix paramString().
5661 * java/awt/EventQueue.java: New class. Implemented.
5662 * java/awt/Font.java: Added additional stub methods. Implemented
5664 * java/awt/FontMetrics.java: New class. Stubbed.
5665 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5667 * java/awt/Insets.java: New class. Implemented.
5668 * java/awt/Menu.java: Add new methods. Partially implemented.
5669 * java/awt/MenuItem.java: Add new methods and fields. Partially
5671 * java/awt/MenuShortcut.java: New class. Implemented.
5672 * java/awt/Panel.java: New class. Placeholder.
5673 * java/awt/PopupMenu.java: New class. Stubbed.
5674 * java/awt/Rectangle.java: New class. Implemented.
5675 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5676 * java/awt/event/ActionEvent.java: Implement paramString().
5677 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5678 * java/awt/event/ComponentEvent.java: Implement paramString().
5679 * java/awt/event/ContainerEvent.java: Implement paramString().
5680 * java/awt/event/FocusEvent.java: Implement paramString().
5681 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5682 * java/awt/event/HierarchyBoundsListener.java: New class.
5683 * java/awt/event/HierarchyEvent.java: New class.
5684 * java/awt/event/HierarchyListener.java: New class.
5685 * java/awt/event/InputMethodEvent.java: Implement paramString().
5686 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5687 exception if !catchExceptions.
5688 * java/awt/event/ItemEvent.java: Implement paramString().
5689 * java/awt/event/KeyEvent.java: Implement paramString().
5690 * java/awt/event/MouseEvent.java: Implement paramString().
5691 * java/awt/event/PaintEvent.java: Implement paramString().
5692 * java/awt/event/TextEvent.java: Implement paramString().
5693 * java/awt/event/WindowEvent.java: Implement paramString().
5695 AWT Peer interfaces:
5696 * java/awt/peer/ButtonPeer.java: New file.
5697 * java/awt/peer/ListPeer.java: New file.
5698 * java/awt/peer/CanvasPeer.java: New file.
5699 * java/awt/peer/MenuBarPeer.java: New file.
5700 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5701 * java/awt/peer/MenuComponentPeer.java: New file.
5702 * java/awt/peer/CheckboxPeer.java: New file.
5703 * java/awt/peer/MenuItemPeer.java: New file.
5704 * java/awt/peer/ChoicePeer.java: New file.
5705 * java/awt/peer/MenuPeer.java: New file.
5706 * java/awt/peer/ComponentPeer.java: Implemented.
5707 * java/awt/peer/PanelPeer.java: New file.
5708 * java/awt/peer/ContainerPeer.java: Implemented.
5709 * java/awt/peer/PopupMenuPeer.java: New file.
5710 * java/awt/peer/DialogPeer.java: New file.
5711 * java/awt/peer/ScrollPanePeer.java: New file.
5712 * java/awt/peer/FileDialogPeer.java: New file.
5713 * java/awt/peer/ScrollbarPeer.java: New file.
5714 * java/awt/peer/FontPeer.java: New file.
5715 * java/awt/peer/TextAreaPeer.java: New file.
5716 * java/awt/peer/FramePeer.java: Implemented.
5717 * java/awt/peer/TextComponentPeer.java: New file.
5718 * java/awt/peer/LabelPeer.java: New file.
5719 * java/awt/peer/TextFieldPeer.java: New file.
5720 * java/awt/peer/LightweightPeer.java: New file.
5721 * java/awt/peer/WindowPeer.java: Implemented.
5723 2000-07-06 Tom Tromey <tromey@cygnus.com>
5725 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5726 Initialize static final String fields.
5728 2000-07-03 Tom Tromey <tromey@cygnus.com>
5730 * java/io/PrintWriter.java (print): Call write(String), not
5731 print(String). See PR libgcj/277.
5732 (print(String)): Use write, not out.write.
5734 2000-06-30 Tom Tromey <tromey@cygnus.com>
5736 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5738 2000-06-27 Andrew Haley <aph@cygnus.com>
5740 * java/io/File.java (createTempFile): Close the FileDescriptor
5741 used to create a temp file. Fixes some of PR 203.
5742 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5743 collection if we run out of file handles.
5745 2000-06-28 Warren Levy <warrenl@cygnus.com>
5747 * gnu/java/security/provider/Gnu.java: New file.
5748 * gnu/java/security/provider/SHA.java: New file.
5749 * gnu/java/security/provider/SHA1PRNG.java: New file.
5750 * Makefile.am: Added the above files.
5751 * Makefile.in: Rebuilt.
5753 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5755 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5757 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5758 (destroyed_flag): Removed.
5759 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5760 (activeCount): Added spec note.
5762 2000-06-27 Warren Levy <warrenl@cygnus.com>
5764 * java/security/Principal.java: New file.
5765 * Makefile.am: Added Principal.java.
5766 * Makefile.in: Rebuilt.
5768 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5770 * java/awt/event/MouseEvent.java: Fixed coordinate space
5773 2000-06-27 Tom Tromey <tromey@cygnus.com>
5775 * java/io/PushbackInputStream.java (read): If there are characters
5776 in the buffer, don't also call super.read().
5777 * java/io/PushbackReader.java (read): If there are characters in
5778 the buffer, don't also call super.read().
5780 * java/lang/Double.java (valueOf): Call parseDouble().
5782 2000-06-26 Warren Levy <warrenl@cygnus.com>
5784 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5785 (newVal): Renamed to newValue.
5786 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5787 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5788 (revokeNow): Renamed to invalidateRefs.
5789 * java/io/OptionalDataException.java: Updated FIXME.
5790 (eof): New placeholder field.
5792 * java/io/WriteAbortedException.java (message): Made transient.
5793 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5794 * java/lang/Throwable.java (stackTrace): Made transient.
5795 * java/net/InetAddress.java: Made Serializable.
5796 * java/security/KeyPair.java: Made Serializable.
5797 * java/security/Provider.java: Replaced with Classpath version that
5798 implements serialization and proper methods.
5799 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5800 (limits): Renamed to choiceLimits.
5802 2000-06-24 Tom Tromey <tromey@cygnus.com>
5804 * java/lang/natDouble.cc (parseDouble): Renamed from
5806 * java/lang/Double.java (parseDouble): Renamed from
5807 doubleValueOf. Now public.
5809 2000-06-23 Andrew Haley <aph@cygnus.com>
5811 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5812 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5814 2000-06-23 Tom Tromey <tromey@cygnus.com>
5816 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5817 * java/lang/natDouble.cc: Always include <alloca.h>.
5818 Fix for PR libgcj/267.
5820 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5822 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5823 comply with classpath VM spec.
5824 (add(Group)): Rename to addGroup().
5825 * java/lang/Thread.java (Thread): Use addThread().
5826 * java/lang/natThread.cc (finish_): Use removeThread().
5828 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5830 * java/lang/ThreadGroup.java: Merged with classpath.
5831 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5832 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5834 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5835 ThreadGroup.root if Thread.currentThread is null. Honour the
5836 ThreadGroup's max priority setting.
5838 2000-06-18 Tom Tromey <tromey@cygnus.com>
5840 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5841 returned class. For PR gcj/260.
5843 2000-06-16 Tom Tromey <tromey@cygnus.com>
5845 Fix for PR libgcj/261:
5846 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5848 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5849 argument. (This is a patch from long ago that somehow went
5852 2000-06-15 Tom Tromey <tromey@cygnus.com>
5854 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5858 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5860 Fix for PR java.lang/258:
5861 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5862 JV_STATE_DONE, to prevent accidental initialization.
5863 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5864 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5865 interface or an abstract class. Remove redundant initializeClass calls.
5866 Remove duplicate if_idt test.
5867 (_Jv_InterfaceAssignableFrom): New function.
5868 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5870 2000-05-31 Tom Tromey <tromey@cygnus.com>
5872 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5873 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5874 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5875 (NUM_OBJECT_METHODS): New define.
5876 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5877 `array_vtable' parameter. Added assertion.
5878 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5881 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5883 * gcj/cni.h: Include <string.h>.
5884 * defineclass.cc: Include <alloca.h>.
5885 * interpret.cc: Ditto.
5886 * gij.cc: Include <stdlib.h>.
5888 2000-05-30 Tom Tromey <tromey@cygnus.com>
5890 * include/name-finder.h: Include <sys/wait.h>.
5891 (_Jv_name_finder::pid): Now of type `pid_t'.
5892 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5893 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5896 2000-05-24 Warren Levy <warrenl@cygnus.com>
5898 * java/io/ObjectOutputStream.java (writeObject): Use component type
5899 when writing arrays.
5902 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5904 Fix for PR libgcj/226:
5905 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5906 since this is an installed header.
5908 Fix for PR libgcj/228:
5909 * java/util/zip/ZipFile (getInputStream): Create inflater with
5912 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5913 with DataFormatException.
5915 2000-05-20 Tom Tromey <tromey@cygnus.com>
5917 * Makefile.in: Rebuilt.
5918 * Makefile.am (hack1): Removed.
5919 (awto_files): Likewise.
5920 (libgcjawt_la_SOURCES): Likewise.
5921 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5922 (libgcjawt_la_DEPENDENCIES): Likewise.
5923 (libgcjawt_la_LIBADD): Likewise.
5924 (libgcjawt_la_LDFLAGS): Likewise.
5925 (libgcjawt_la_LINK): Likewise.
5926 ($(awt_java_source_files:.java=.class)): Likewise.
5927 (libgcj.zip): Don't depend on AWT files.
5928 (MOSTLYCLEANFILES): Don't include AWT files.
5929 ($(awto_files)): Removed.
5930 (nat_headers): Removed AWT files.
5931 (cond_awt_java_source_files): Removed.
5932 (ordinary_java_source_files): Added awt_java_source_files.
5933 * libgcj.spec.in (*lib): Removed -lgcjawt.
5934 * configure: Rebuilt.
5935 * configure.in: Removed --enable-java-awt option.
5937 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5939 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5940 (ZipEntry): Copy the `name' field.
5941 (clone): Implement JDK1.2 method.
5942 (setCompressedSize): ditto.
5945 2000-05-19 Tom Tromey <tromey@cygnus.com>
5947 * java/io/BufferedWriter.java: Merged with Classpath.
5948 * java/io/BufferedOutputStream.java: Merged with Classpath.
5950 2000-05-16 Andrew Haley <aph@cygnus.com>
5952 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5953 build_ia64_frame_state.
5954 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5957 2000-05-15 Warren Levy <warrenl@cygnus.com>
5959 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5960 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5961 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5962 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5963 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5964 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5965 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5966 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5967 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5968 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5969 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5970 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5971 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5972 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5973 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5974 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5975 * gnu/gcj/io/NullOutputStream.java: Removed.
5976 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5977 * gnu/gcj/lang/ArrayHelper.java: Removed.
5978 * gnu/gcj/lang/ClassHelper.java: Removed.
5979 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5981 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5982 * gnu/java/beans/EmptyBeanInfo.java: New file.
5983 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5984 * gnu/java/beans/IntrospectionIncubator.java: New file.
5985 * gnu/java/beans/editors/ColorEditor.java: New file.
5986 * gnu/java/beans/editors/FontEditor.java: New file.
5987 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5988 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5989 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5990 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5991 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5992 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5993 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5994 * gnu/java/beans/editors/StringEditor.java: New file.
5995 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5996 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5997 * gnu/java/io/NullOutputStream.java: New file.
5998 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5999 * gnu/java/lang/ArrayHelper.java: New file.
6000 * gnu/java/lang/ClassHelper.java: New file.
6001 * gnu/java/lang/reflect/TypeSignature.java: New file.
6003 * Makefile.am: Updated for moving Classpath files from gnu/gcj
6004 namespace back to the original Classpath gnu/java namespace.
6005 * Makefile.in: Rebuilt.
6007 * java/beans/Beans.java: Namespace change.
6008 * java/beans/EventSetDescriptor.java: Namespace change.
6009 * java/beans/Introspector.java: Namespace change.
6010 * java/beans/PropertyEditorManager.java: Namespace change.
6011 * java/io/ObjectInputStream.java: Namespace change.
6012 * java/io/ObjectOutputStream.java: Namespace change.
6013 * java/io/ObjectStreamClass.java: Namespace change.
6014 * java/io/ObjectStreamField.java: Namespace change.
6016 2000-04-21 Warren Levy <warrenl@cygnus.com>
6018 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
6019 now that compiler patch is available.
6020 Removed unneeded System.loadLibrary.
6021 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
6022 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
6024 2000-04-19 Andrew Haley <aph@cygnus.com>
6026 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
6027 and target classes have been initialized.
6029 2000-04-19 Andrew Haley <aph@cygnus.com>
6031 * java/lang/String.java: implement Serializable, Comparable.
6032 (compareTo (Object)): New method.
6034 2000-04-19 Warren Levy <warrenl@cygnus.com>
6036 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
6037 instead of getField to retrieve non-public field.
6038 (getSerialPersistantFields): Ditto.
6040 2000-04-18 Warren Levy <warrenl@cygnus.com>
6042 * mauve-libgcj: Turned off object serialization tests temporarily
6043 due to compiler error.
6045 2000-04-17 Warren Levy <warrenl@cygnus.com>
6047 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
6048 to avoid build problem.
6050 * mauve-libgcj: Turned on object serialization tests.
6052 2000-04-17 Tom Tromey <tromey@cygnus.com>
6054 * libgcj.spec.in (*lib): Added -lgcjawt.
6056 2000-04-17 Andrew Haley <aph@cygnus.com>
6058 * Makefile.am: Add new files:
6059 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
6061 * Makefile.in: Rebuilt.
6063 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
6064 interface that has no implementations.
6065 Check for an attempt to assign an abstract class to an interface.
6067 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
6068 if we fail to find MessageDigest.getInstance ("SHA").
6070 * gnu/gcj/io/SimpleSHSStream.java: New file.
6071 * gnu/gcj/io/natSimpleSHSStream.java: New file.
6072 * gnu/gcj/io/shs.cc: New file.
6073 * gnu/gcj/io/shs.h: new file.
6075 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
6078 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
6079 punctuation from the classname of an array element.
6081 * gcj/javaprims.h: Add SimpleDigestStream.
6083 2000-04-17 Andrew Haley <aph@cygnus.com>
6085 * java/lang/natClass.cc (getPrivateField): Make recursive calls
6086 to getPrivateField for superclasses.
6088 2000-04-14 Andrew Haley <aph@cygnus.com>
6090 * Makefile.am: Add new files:
6091 java/io/ObjectOutputStream$PutField.h,
6092 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
6093 java/io/natObjectOutputStream.cc
6094 * Makefile.in: Rebuilt.
6095 * gcj/Makefile.in: Rebuilt.
6096 * include/Makefile.in: Rebuilt.
6097 * java/lang/Class.h (getPrivateField): New method.
6098 (getPrivateMethod): Ditto.
6099 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
6100 and java::io::ObjectStreamClass our friends.
6101 * java/lang/natClass.cc (getPrivateField): New method.
6102 (getPrivateMethod): Ditto.
6103 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
6104 * gcj/javaprims.h: Add serialization classes.
6105 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
6106 (setByteField): Ditto.
6107 (setCharField): Ditto.
6108 (setDoubleField): Ditto.
6109 (setFloatField): Ditto.
6110 (setIntField): Ditto.
6111 (setLongField): Ditto.
6112 (setShortField): Ditto.
6113 (setObjectField): Ditto.
6114 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
6116 (getByteField): Ditto.
6117 (getCharField): Ditto.
6118 (getDoubleField): Ditto.
6119 (getFloatField): Ditto.
6120 (getIntField): Ditto.
6121 (getLongField): Ditto.
6122 (getShortField): Ditto.
6123 (getObjectField): Ditto.
6124 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
6126 (getSerialPersistantFields): Ditto.
6127 (getDefinedSUID): Ditto.
6128 * java/io/natObjectOutputStream.cc: New file.
6129 * java/io/natObjectInputStream.cc: New file.
6131 2000-04-13 Warren Levy <warrenl@cygnus.com>
6133 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
6134 problems. Revert to previous version to reproduce and when fixed.
6136 2000-04-13 Warren Levy <warrenl@cygnus.com>
6138 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
6139 * gnu/gcj/io/NullOutputStream.java: New file.
6140 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
6141 * java/io/BlockDataException.java: New file.
6142 * java/io/Externalizable.java: New file.
6143 * java/io/InvalidClassException.java: New file.
6144 * java/io/InvalidObjectException.java: New file.
6145 * java/io/NotActiveException.java: New file.
6146 * java/io/NotSerializableException.java: New file.
6147 * java/io/ObjectInput.java: New file.
6148 * java/io/ObjectInputStream.java: New file.
6149 * java/io/ObjectInputValidation.java: New file.
6150 * java/io/ObjectOutput.java: New file.
6151 * java/io/ObjectOutputStream.java: New file.
6152 * java/io/ObjectStreamClass.java: New file.
6153 * java/io/ObjectStreamConstants.java: New file.
6154 * java/io/ObjectStreamField.java: New file.
6155 * java/io/Replaceable.java: New file.
6156 * java/io/Resolvable.java: New file.
6157 * java/io/SerializablePermission.java: New file.
6158 * java/io/WriteAbortedException.java: New file.
6159 * java/security/BasicPermission.java: New file.
6160 * java/security/DigestOutputStream.java: New file.
6161 * java/security/Guard.java: New file.
6162 * java/security/Permission.java: New file.
6163 * java/security/PermissionCollection.java: New file.
6164 * Makefile.am: Added above files.
6165 * Makefile.in: Rebuilt.
6167 * java/beans/Beans.java (instantiate): Activated serialization code.
6168 * java/lang/SecurityManager.java (checkPermission): New method.
6170 2000-04-12 Warren Levy <warrenl@cygnus.com>
6172 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
6173 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
6174 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
6175 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
6176 * gnu/gcj/beans/editors/ColorEditor.java: New file.
6177 * gnu/gcj/beans/editors/FontEditor.java: New file.
6178 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
6179 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
6180 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
6181 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
6182 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
6183 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
6184 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
6185 * gnu/gcj/beans/editors/StringEditor.java: New file.
6186 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
6187 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
6188 * gnu/gcj/lang/ArrayHelper.java: New file.
6189 * gnu/gcj/lang/ClassHelper.java: New file.
6190 * java/beans/BeanDescriptor.java: New file.
6191 * java/beans/BeanInfo.java: New file.
6192 * java/beans/Beans.java: New file.
6193 * java/beans/Customizer.java: New file.
6194 * java/beans/DesignMode.java: New file.
6195 * java/beans/EventSetDescriptor.java: New file.
6196 * java/beans/FeatureDescriptor.java: New file.
6197 * java/beans/IndexedPropertyDescriptor.java: New file.
6198 * java/beans/IntrospectionException.java: New file.
6199 * java/beans/Introspector.java: New file.
6200 * java/beans/MethodDescriptor.java: New file.
6201 * java/beans/ParameterDescriptor.java: New file.
6202 * java/beans/PropertyChangeEvent.java: New file.
6203 * java/beans/PropertyChangeListener.java: New file.
6204 * java/beans/PropertyChangeSupport.java: New file.
6205 * java/beans/PropertyDescriptor.java: New file.
6206 * java/beans/PropertyEditor.java: New file.
6207 * java/beans/PropertyEditorManager.java: New file.
6208 * java/beans/PropertyEditorSupport.java: New file.
6209 * java/beans/PropertyVetoException.java: New file.
6210 * java/beans/SimpleBeanInfo.java: New file.
6211 * java/beans/VetoableChangeListener.java: New file.
6212 * java/beans/VetoableChangeSupport.java: New file.
6213 * java/beans/Visibility.java: New file.
6214 * java/beans/beancontext/BeanContext.java: New file.
6215 * java/beans/beancontext/BeanContextChild.java: New file.
6216 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6217 * java/beans/beancontext/BeanContextChildSupport.java: New file.
6218 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6219 * java/beans/beancontext/BeanContextEvent.java: New file.
6220 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6221 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6222 * java/beans/beancontext/BeanContextProxy.java: New file.
6223 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6225 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6226 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6228 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6229 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6231 * java/beans/beancontext/BeanContextServices.java: New file.
6232 * java/beans/beancontext/BeanContextServicesListener.java: New file.
6233 * java/util/AbstractCollection.java: New file.
6234 * java/util/AbstractList.java: New file.
6235 * java/util/Arrays.java: New file.
6236 * Makefile.am: Added above files.
6237 * Makefile.in: Rebuilt.
6239 2000-04-11 Warren Levy <warrenl@cygnus.com>
6241 * java/awt/AWTError.java: New file.
6242 * java/awt/AWTEvent.java: New file.
6243 * java/awt/AWTException.java: New file.
6244 * java/awt/ActiveEvent.java: New file.
6245 * java/awt/Adjustable.java: New file.
6246 * java/awt/BorderLayout.java: New file.
6247 * java/awt/Color.java: New file.
6248 * java/awt/Component.java: New file.
6249 * java/awt/Container.java: New file.
6250 * java/awt/Dimension.java: New file.
6251 * java/awt/Event.java: New file.
6252 * java/awt/Font.java: New file.
6253 * java/awt/Frame.java: New file.
6254 * java/awt/Graphics.java: New file.
6255 * java/awt/IllegalComponentStateException.java: New file.
6256 * java/awt/Image.java: New file.
6257 * java/awt/ItemSelectable.java: New file.
6258 * java/awt/LayoutManager.java: New file.
6259 * java/awt/LayoutManager2.java: New file.
6260 * java/awt/Menu.java: New file.
6261 * java/awt/MenuBar.java: New file.
6262 * java/awt/MenuComponent.java: New file.
6263 * java/awt/MenuContainer.java: New file.
6264 * java/awt/MenuItem.java: New file.
6265 * java/awt/Paint.java: New file.
6266 * java/awt/PaintContext.java: New file.
6267 * java/awt/Point.java: New file.
6268 * java/awt/Rectangle.java: New file.
6269 * java/awt/Shape.java: New file.
6270 * java/awt/TextArea.java: New file.
6271 * java/awt/TextComponent.java: New file.
6272 * java/awt/Toolkit.java: New file.
6273 * java/awt/Transparency.java: New file.
6274 * java/awt/Window.java: New file.
6275 * java/awt/natToolkit.cc: New file.
6276 * java/awt/event/AWTEventListener.java: New file.
6277 * java/awt/event/ActionEvent.java: New file.
6278 * java/awt/event/ActionListener.java: New file.
6279 * java/awt/event/AdjustmentEvent.java: New file.
6280 * java/awt/event/AdjustmentListener.java: New file.
6281 * java/awt/event/ComponentAdapter.java: New file.
6282 * java/awt/event/ComponentEvent.java: New file.
6283 * java/awt/event/ComponentListener.java: New file.
6284 * java/awt/event/ContainerAdapter.java: New file.
6285 * java/awt/event/ContainerEvent.java: New file.
6286 * java/awt/event/ContainerListener.java: New file.
6287 * java/awt/event/FocusAdapter.java: New file.
6288 * java/awt/event/FocusEvent.java: New file.
6289 * java/awt/event/FocusListener.java: New file.
6290 * java/awt/event/InputEvent.java: New file.
6291 * java/awt/event/InputMethodEvent.java: New file.
6292 * java/awt/event/InputMethodListener.java: New file.
6293 * java/awt/event/InvocationEvent.java: New file.
6294 * java/awt/event/ItemEvent.java: New file.
6295 * java/awt/event/ItemListener.java: New file.
6296 * java/awt/event/KeyAdapter.java: New file.
6297 * java/awt/event/KeyEvent.java: New file.
6298 * java/awt/event/KeyListener.java: New file.
6299 * java/awt/event/MouseAdapter.java: New file.
6300 * java/awt/event/MouseEvent.java: New file.
6301 * java/awt/event/MouseListener.java: New file.
6302 * java/awt/event/MouseMotionAdapter.java: New file.
6303 * java/awt/event/MouseMotionListener.java: New file.
6304 * java/awt/event/PaintEvent.java: New file.
6305 * java/awt/event/TextEvent.java: New file.
6306 * java/awt/event/TextListener.java: New file.
6307 * java/awt/event/WindowAdapter.java: New file.
6308 * java/awt/event/WindowEvent.java: New file.
6309 * java/awt/event/WindowListener.java: New file.
6310 * java/awt/geom/Dimension2D.java: New file.
6311 * java/awt/geom/Point2D.java: New file.
6312 * java/awt/peer/ComponentPeer.java: New file.
6313 * java/awt/peer/ContainerPeer.java: New file.
6314 * java/awt/peer/FramePeer.java: New file.
6315 * java/awt/peer/WindowPeer.java: New file.
6316 * java/util/Collection.java: New file.
6317 * java/util/Comparator.java: New file.
6318 * java/util/Iterator.java: New file.
6319 * java/util/List.java: New file.
6320 * java/util/ListIterator.java: New file.
6321 * Makefile.am: Added above files.
6322 * Makefile.in: Rebuilt.
6324 2000-04-10 Warren Levy <warrenl@cygnus.com>
6326 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6327 * java/lang/FirstThread.java: Ditto.
6328 * java/lang/StringBuffer.java: Ditto.
6329 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6331 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6332 Special case handled in java.math.BigInteger.
6333 * java/math/BigInteger.java (divide): Handle the special case when
6334 dividing by 1 and the high bit of the dividend is set.
6335 (setShiftRight): Handle case when count == 0.
6337 2000-04-05 Andrew Haley <aph@cygnus.com>
6339 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6342 2000-04-05 Andrew Haley <aph@cygnus.com>
6344 * sysdep/ia64.c (rse_address_add): Delete.
6345 (IS_NaT_COLLECTION_ADDR): Delete.
6346 (ia64_backtrace_helper): check for null unwind_info.
6348 * sysdep/ia64-frame.h: add calc_caller_bsp.
6350 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6353 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6354 (_Jv_remI): Likewise.
6355 (_Jv_divJ): Likewise.
6356 (_Jv_remJ): Likewise.
6358 * interpret.cc (continue1): Use divide subroutines to guarantee
6359 correct Java standard behaviour.
6360 Floating-point division should not abort; make it so.
6362 2000-03-29 Tom Tromey <tromey@cygnus.com>
6364 * configure: Rebuilt.
6365 * configure.in: Test against `libgcj_sjlj', not
6366 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6367 to be set even when using sjlj.
6369 2000-03-24 Andrew Haley <aph@cygnus.com>
6371 * Makefile.am: Add file addr2name.awk.
6372 * Makefile.in: Rebuilt.
6373 * addr2name.awk: New file.
6374 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6376 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6379 2000-03-22 Andrew Haley <aph@cygnus.com>
6381 * configure.host: Add -funwind-tables for IA64.
6382 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6383 * Makefile.in: Rebuilt.
6384 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6385 * sysdep/ia64.c: New file.
6386 * sysdep/ia64-frame.h: New file.
6387 * configure.in: Add sysdep/ia64.c for ia64.
6388 * configure: Rebuilt.
6390 2000-03-17 Andrew Haley <aph@cygnus.com>
6392 * java/lang/natString.cc: Remove `register' keyword.
6393 interpret.cc: ditto.
6395 2000-03-16 Andrew Haley <aph@cygnus.com>
6397 * configure.host (ia64): Enable interpreter.
6399 2000-03-14 Hans Boehm <boehm@acm.org>
6401 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6403 2000-03-14 Andrew Haley <aph@cygnus.com>
6405 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6408 2000-03-10 Andrew Haley <aph@cygnus.com>
6410 * java/lang/ieeefp.h: Import latest version from fdlibm.
6412 2000-03-14 Andrew Haley <aph@cygnus.com>
6414 * prims.cc (_Jv_ThrowSignal): New function.
6415 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6417 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6418 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6419 * include/ppc-signal.h: New file.
6421 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6423 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6424 * java/lang/natThread.java (initialize_native): Cast `data' to
6426 * gnu/gcj/RawData.java: Clarify documentation.
6428 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6429 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6430 `jarFile', not `jarFileURL'.
6432 2000-05-15 Andrew Haley <aph@cygnus.com>
6434 * include/ppc-signal.h: New file.
6436 2000-05-11 Tom Tromey <tromey@cygnus.com>
6438 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6439 file headers, don't include `size' in the skip call.
6441 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6443 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6444 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6446 (replace): Reimplemented. Fix javadoc.
6447 (reverse): Call ensureCapacity_unsynchronized().
6448 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6450 (replace): Calculate length for arraycopy() correctly.
6452 2000-05-09 Tom Tromey <tromey@cygnus.com>
6454 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6456 (insert(int,char[],int,int): New method.
6457 (delete): New method from Classpath.
6458 (deleteCharAt): Likewise.
6459 (substring): Likewise.
6460 (shared): No longer private.
6461 Added JavaDoc comments from Classpath.
6462 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6465 2000-05-07 Tom Tromey <tromey@cygnus.com>
6467 * Makefile.in: Rebuilt.
6468 * Makefile.am (LIBLINK): New macro.
6469 (libgcj_la_LINK): Use it.
6470 (libgcjawt_la_LINK): Likewise.
6472 2000-05-06 Tom Tromey <tromey@cygnus.com>
6474 * Makefile.in: Rebuilt.
6475 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6477 2000-05-05 Tom Tromey <tromey@cygnus.com>
6479 Fix for PR libgcj/220:
6480 * Makefile.in: Rebuilt.
6481 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6482 (jv_convert_LDFLAGS): Likewise.
6483 (libgcj_la_LDFLAGS): Likewise.
6484 (GCJLINK): New macro.
6485 (jv_convert_LINK): Use it.
6486 (gij_LINK): Likewise.
6487 (libgcj_la_LINK): New macro.
6488 (libgcjawt_la_LINK): Likewise.
6490 2000-05-04 Tom Tromey <tromey@cygnus.com>
6492 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6494 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6498 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6500 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6501 (_Jv_IsAssignableFrom): Ditto.
6502 (_Jv_IsInstanceOf): Ditto.
6503 (_Jv_CheckCast): Ditto.
6504 (_Jv_CheckArrayStore): Ditto.
6505 * java/lang/Class.h (_Jv_InitClass): Ditto.
6506 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6511 (_Jv_MonitorExit): Ditto.
6512 * boehm.cc (_Jv_MarkObj): Ditto.
6513 (_Jv_MarkObj): Ditto.
6514 (_Jv_MarkArray): Ditto.
6515 * prims.cc (_Jv_AllocObject): Ditto.
6516 (_Jv_NewObjectArray): Ditto.
6517 (_Jv_NewPrimArray): Ditto.
6518 (_Jv_Malloc): Ditto.
6519 (_Jv_Realloc): Ditto.
6520 (_Jv_MallocUnchecked): Ditto.
6526 2000-05-04 Tom Tromey <tromey@cygnus.com>
6528 * java/util/Locale.java (Locale): Don't explicitly check for
6530 * java/util/Hashtable.java (containsKey): Don't explicitly check
6533 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6535 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6537 * java/text/StringCharacterIterator.java
6538 (StringCharacterIterator): Don't check for null.
6539 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6541 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6542 check for null pointer.
6543 (leaveGroup): Likewise.
6544 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6546 (setData): Likewise.
6547 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6550 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6552 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6553 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6554 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6555 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6556 -rpath for in-gcc builds.
6557 * Makefile.in: Rebuilt.
6559 2000-04-28 Tom Tromey <tromey@cygnus.com>
6561 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6564 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6566 * libjava/java/lang/String.java (toString): Remove `final' hack.
6568 2000-04-05 Tom Tromey <tromey@cygnus.com>
6570 Runtime support for PR gcj/2:
6571 * prims.cc (_Jv_ThrowNullPointerException): New function.
6572 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6574 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6576 * prims.cc (_Jv_NewObjectArray): Fix typo.
6578 2000-04-26 Tom Tromey <tromey@cygnus.com>
6580 * Makefile.in: Rebuilt.
6581 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6583 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6585 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6588 2000-04-22 Anthony Green <green@cygnus.com>
6590 * include/jvm.h (__builtin_expect): Define as unused for now.
6591 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6595 (_Jv_MonitorExit): Ditto.
6596 * boehm.cc (_Jv_MarkObj): Ditto.
6597 (_Jv_MarkObj): Ditto.
6598 (_Jv_MarkArray): Ditto.
6599 (_Jv_AllocBytes): Ditto.
6600 * prims.cc (_Jv_AllocObject): Ditto.
6601 (_Jv_NewObjectArray): Ditto.
6602 (_Jv_NewPrimArray): Ditto.
6603 (_Jv_Malloc): Ditto.
6604 (_Jv_Realloc): Ditto.
6605 (_Jv_MallocUnchecked): Ditto.
6611 * include/Makefile.in: Rebuilt.
6612 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6614 2000-04-21 Tom Tromey <tromey@cygnus.com>
6616 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6617 Yet another new version from Classpath.
6619 Fix for PR libgcj/15:
6620 * java/util/natGregorianCalendar.cc (_REENTRANT,
6621 _POSIX_PTHREAD_SEMANTICS): Don't define.
6622 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6623 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6625 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6627 * configure: Rebuilt.
6628 * configure.in: If using POSIX threads, define _REENTRANT if
6629 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6630 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6632 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6633 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6634 version from Classpath.
6636 Fix for PR libgcj/213:
6637 * Makefile.in: Rebuilt.
6638 * Makefile.am (gij_SOURCES): Added gij.cc.
6639 (EXTRA_gij_SOURCES): Removed.
6640 (gij_LDADD): Removed gij.lo.
6641 (gij_DEPENDENCIES): Likewise.
6642 ($(gij_OBJECTS)): Depend on nat_headers.
6644 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6645 `setURL', not `url.set'.
6647 2000-04-20 Tom Tromey <tromey@cygnus.com>
6649 Fix for PR java.io/204:
6650 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6651 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6654 Fix for PR libgcj/212:
6655 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6656 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6657 * java/lang/Class.h (_Jv_word): Declare.
6659 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6661 2000-04-19 Tom Tromey <tromey@cygnus.com>
6663 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6664 doesn't have a loader.
6666 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6668 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6669 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6671 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6673 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6675 (available): Initialize `where' to prevent bogus compiler warning.
6677 2000-04-12 Tom Tromey <tromey@cygnus.com>
6679 * java/lang/natString.cc (intern): Temporarily disable finalizer
6682 * java/lang/natString.cc (unintern): Added `obj' argument.
6683 (intern): Register finalizer for string.
6684 * java/lang/String.java (unintern): Now static; added obj
6687 2000-04-11 Tom Tromey <tromey@cygnus.com>
6689 * java/util/Vector.java (VectorEnumeration): Now `final'.
6690 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6691 (HashtableEnumeration): Likewise.
6692 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6693 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6695 2000-04-10 Warren Levy <warrenl@cygnus.com>
6697 * java/io/ObjectStreamException.java: New file.
6698 * java/io/OptionalDataException.java: New file.
6699 * java/io/StreamCorruptedException.java: New file.
6700 * java/math/BigDecimal.java: New file.
6701 * java/sql/CallableStatement.java: New file.
6702 * java/sql/Connection.java: New file.
6703 * java/sql/DataTruncation.java: New file.
6704 * java/sql/DatabaseMetaData.java: New file.
6705 * java/sql/Date.java: New file.
6706 * java/sql/Driver.java: New file.
6707 * java/sql/DriverManager.java: New file.
6708 * java/sql/DriverPropertyInfo.java: New file.
6709 * java/sql/PreparedStatement.java: New file.
6710 * java/sql/ResultSet.java: New file.
6711 * java/sql/ResultSetMetaData.java: New file.
6712 * java/sql/SQLException.java: New file.
6713 * java/sql/SQLWarning.java: New file.
6714 * java/sql/Statement.java: New file.
6715 * java/sql/Time.java: New file.
6716 * java/sql/Timestamp.java: New file.
6717 * java/sql/Types.java: New file.
6718 * Makefile.am: Added above new files.
6719 * Makefile.in: Rebuilt.
6721 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6722 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6723 DatagramSocket constructor instead of null.
6725 2000-04-08 Anthony Green <green@cygnus.com>
6727 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6730 2000-04-08 Anthony Green <green@cygnus.com>
6732 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6733 (_Jv_MutexUnlock): Ditto.
6734 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6735 (_Jv_MutexUnlock): Ditto.
6737 2000-04-08 Anthony Green <green@cygnus.com>
6739 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6740 (ensureCapacity_unsynchronized): New private method.
6741 (append): Use ensureCapacity_unsynchronized.
6743 2000-04-08 Tom Tromey <tromey@cygnus.com>
6745 * Makefile.in: Rebuilt.
6746 * Makefile.am (awt_java_source_files): Added new files.
6747 * java/awt/IllegalComponentStateException.java: New file.
6748 * java/awt/ItemSelectable.java: New file.
6749 * java/awt/event/WindowEvent.java: Finished.
6750 * java/awt/event/TextEvent.java: Finished.
6751 * java/awt/event/ContainerEvent.java: New file.
6752 * java/awt/Component.java (getX, getY): New methods.
6753 * java/awt/event/PaintEvent.java: New file.
6754 * java/awt/event/MouseEvent.java: New file.
6755 * java/awt/ActiveEvent.java: New file.
6756 * java/awt/event/KeyEvent.java: Finished.
6757 * java/awt/event/ItemEvent.java: New file.
6758 * java/awt/Adjustable.java: New file.
6759 * java/awt/event/InputMethodEvent.java: New file.
6760 * java/awt/event/InputEvent.java: Finished.
6761 * java/awt/event/FocusEvent.java: New file.
6762 * java/awt/event/MouseMotionAdapter.java: New file.
6763 * java/awt/event/MouseAdapter.java: New file.
6764 * java/awt/event/KeyAdapter.java: New file.
6765 * java/awt/event/FocusAdapter.java: New file.
6766 * java/awt/event/ContainerAdapter.java: New file.
6767 * java/awt/event/ComponentEvent.java: Finished.
6768 * java/awt/event/AdjustmentEvent.java: New file.
6769 * java/awt/event/ComponentAdapter.java: New file.
6770 * java/awt/event/ActionEvent.java: Finished.
6771 * java/awt/event/MouseMotionListener.java: New file.
6772 * java/awt/event/MouseListener.java: New file.
6773 * java/awt/event/ItemListener.java: New file.
6774 * java/awt/event/InputMethodListener.java: New file.
6775 * java/awt/event/ContainerListener.java: New file.
6776 * java/awt/event/FocusListener.java: New file.
6777 * java/awt/event/ComponentListener.java: New file.
6778 * java/awt/event/AWTEventListener.java: New file.
6779 * java/awt/event/AdjustmentListener.java: New file.
6781 2000-04-08 Anthony Green <green@cygnus.com>
6783 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6784 check when we have to.
6786 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6789 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6792 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6793 inline hasMoreElements.
6795 2000-04-05 Tom Tromey <tromey@cygnus.com>
6797 * configure: Rebuilt.
6798 * configure.in: Recognize --enable-java-awt.
6799 (AWT): New conditional.
6800 * Makefile.in: Rebuilt.
6801 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6803 (libgcjawt_la_SOURCES): New macro.
6804 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6805 (libgcjawt_la_DEPENDENCIES): Likewise.
6806 (libgcjawt_la_LIBADD): Likewise.
6807 (libgcjawt_la_LDFLAGS): Likewise.
6808 (libgcj.zip): Depend on cond_java_awt_source_files
6809 (cond_awt_java_source_files): New macro.
6810 (MOSTLYCLEANFILES): Added awto_files.
6811 (awto_files): New macro. Use where javao_files used.
6812 (nat_headers): Use cond_awt_java_source_files.
6814 2000-04-04 Tom Tromey <tromey@cygnus.com>
6816 * Makefile.in: Rebuilt.
6817 * Makefile.am (awt_java_source_files): Added AWTException.java.
6818 * java/awt/AWTException.java: New file.
6820 2000-04-03 Tom Tromey <tromey@cygnus.com>
6822 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6823 commentary from Alex.
6825 * Makefile.in: Rebuilt.
6826 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6829 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6831 * configure: Rebuilt.
6832 * configure.in: Add --disable-jvmpi.
6833 * include/config.h.in: Rebuilt.
6834 * acconfig.h: Add ENABLE_JVMPI.
6836 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6837 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6838 (_Jv_JVMPI_Notify_THREAD_END): New define.
6839 (_Jv_JVMPI_Notify_THREAD_END): New define.
6840 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6841 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6842 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6844 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6847 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6848 (finish_): Generate JVMPI thread end events.
6849 (run_): Generate JVMPI thread start events.
6850 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6851 preloaded JNI library.
6852 Include JVMPI headers if necessary.
6853 (run): Generate JVMPI thread start events.
6855 * boehm.cc: Define GC_disable and GC_enable.
6856 (_Jv_DisableGC): New function.
6857 (_Jv_EnableGC): New function.
6858 (disable_gc_mutex): Declare.
6859 * nogc.cc (_Jv_DisableGC): New function.
6860 (_Jv_EnableGC): New function.
6862 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6863 (_Jv_JVMPI_Interface): Define.
6864 (jvmpiEnableEvent): New function.
6865 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6867 * include/jvmpi.h: New file.
6869 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6871 * Makefile.in: New #defines and friends for Thread.h.
6872 * Makefile.am: Ditto.
6873 * posix-threads.cc: (struct starter): Remove `object'.
6874 (_Jv_CondWait): Use interruptable condition variables and new
6875 recursive mutexes. New return codes on interrupt or non-ownership
6877 (_Jv_CondNotify): Ditto.
6878 (_Jv_CondNotifyAll): Ditto.
6879 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6880 the target thread by signaling its wait condition.
6881 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6882 not the starter struct. Initialize wait_mutex and wait_cond.
6883 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6885 (_Jv_MutexUnlock): Ditto.
6886 (really_start): Set info->data->thread from pthread_self() to work
6887 around a race condition. Destroy wait_mutex and wait_cond when run()
6889 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6890 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6892 startable_flag: New private field.
6893 (Thread): Initialize `startable_flag'.
6894 (toString): Check for null thread group.
6895 * java/lang/natThread.cc: (struct natThread): New fields
6896 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6897 (class locker): Removed.
6898 (initialize_native): Initialize `join_cond' and `join_mutex'.
6899 (interrupt): Now just calls _Jv_ThreadInterrupt().
6900 (join): Simplified. Just wait on the target thread's join condition.
6901 (finish_): Remove join list code. Unset thread group. Signal
6902 potential joiners by notifying the dying threads join_cond.
6903 (start): Check for illegal restarts.
6904 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6906 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6907 #defines and #ifdefs.
6908 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6909 `wait_mutex', `next'.
6910 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6911 directly mapping to pthread_cond_t.
6912 (struct _Jv_Mutex_t): New recursive implementation.
6913 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6914 _Jv_HaveCondDestroy: Never define this for posix-threads.
6915 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6916 (_Jv_CondNotifyAll): Ditto.
6917 (_Jv_MutexLock): Ditto.
6918 (_Jv_MutexUnlock): Ditto.
6919 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6920 (_Jv_MutexDestroy): Ditto.
6921 (_Jv_CondDestroy): Removed.
6922 (_Jv_PthreadGetMutex): Removed.
6923 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6924 error. Add a FIXME about this.
6925 (_Jv_CondNotifyAll): Ditto.
6926 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6927 _JV_NOT_OWNER on other errors. Add FIXME.
6929 2000-03-26 Tom Tromey <tromey@cygnus.com>
6931 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6933 (call): Don't throw exception here.
6935 2000-03-26 Tom Tromey <tromey@cygnus.com>
6937 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6938 * interpret.cc: Use SIZEOF_VOID_P.
6939 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6940 (_Jv_loadLong): Likewise.
6941 (_Jv_storeDouble): Likewise.
6942 * configure: Rebuilt.
6943 * configure.in: Check size of void*.
6945 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6947 2000-03-26 Hans Boehm <boehm@acm.org>
6949 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6950 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6952 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6953 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6954 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6955 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6957 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6958 (FFI_RAW_SIZE): Likewise.
6959 (_Jv_InterpMethod::ncode): Use them.
6960 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6961 STORED): Define differently on a 64 bit machine.
6962 (continue1): Use ffi_java_raw_call when appropriate.
6964 2000-03-24 Warren Levy <warrenl@cygnus.com>
6966 * java/math/BigInteger.java(divide): Handle the special case when
6967 dividing by 1 and the high bit of the dividend is set.
6968 (setShiftRight): Handle case when count == 0.
6970 2000-03-24 Warren Levy <warrenl@cygnus.com>
6972 * java/awt/Font.java(isBold): Fix syntax error.
6974 * java/awt/Frame.java(postEvent): ditto.
6975 * java/awt/Menu.java(postEvent): ditto.
6976 * java/awt/MenuBar.java(postEvent): ditto.
6977 * java/awt/Toolkit.java(init): Included a stub.
6979 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6981 * java/awt/Event.java: Add all the event type constants.
6982 (Event): Implemented constructors.
6983 (controlDown): Implemented.
6984 (metaDown): Implemented.
6985 (paramString): Stubbed.
6986 (shiftDown): Implemented.
6987 (toString): Implemented.
6988 (translate): Implemented.
6990 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6992 * java/lang/natClass.cc (isInstance): Initialize `this'.
6993 (isAssignableFrom): Initialize `this' and `klass'.
6994 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6995 implemented by any loaded class, so return false.
6996 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6997 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6999 2000-03-19 Warren Levy <warrenl@cygnus.com>
7001 * java/awt/Color.java: Specified java.io for Serializable.
7002 * java/awt/Toolkit.java: Imported java.net.URL.
7004 2000-03-19 Warren Levy <warrenl@cygnus.com>
7006 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
7008 2000-03-16 Warren Levy <warrenl@cygnus.com>
7010 * java/awt/Color.java: New file.
7011 * java/awt/Graphics.java: New file.
7012 * java/awt/Image.java: New file.
7013 * java/awt/Paint.java: New file.
7014 * java/awt/PaintContext.java: New file.
7015 * java/awt/Transparency.java: New file.
7016 * java/util/Collection.java: New file.
7017 * java/util/Comparator.java: New file.
7018 * java/util/Iterator.java: New file.
7019 * java/util/List.java: New file.
7020 * java/util/ListIterator.java: New file.
7021 * Makefile.am: Added above new files.
7022 * Makefile.in: Rebuilt.
7024 * java/awt/Font.java (PLAIN): New field.
7026 (ITALIC): New field.
7027 (ROMAN_BASELINE): New field.
7028 (CENTER_BASELINE): New field.
7029 (HANGING_BASELINE): New field.
7033 (pointSize): New field.
7034 (Font): Implemented constructor.
7035 (isPlain): Implemented method.
7036 (isBold): Implemented method.
7037 (isItalic): Implemented method.
7038 (getName): Implemented method.
7039 (getStyle): Implemented method.
7040 (getSize): Implemented method.
7041 (getSize2D): Implemented method.
7043 * java/awt/Frame.java (getFont): Stubbed.
7044 (postEvent): Stubbed.
7046 * java/awt/Menu.java (postEvent): Stubbed.
7047 * java/awt/MenuBar.java (getFont): Stubbed.
7048 (postEvent): Stubbed.
7049 * java/awt/Toolkit.java (getImage): Added abstract method.
7051 2000-03-15 Tom Tromey <tromey@cygnus.com>
7053 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
7055 * prims.cc (win32_exception_handler): Reformatted.
7057 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
7058 (_Jv_HaveMutexDestroy): Likewise.
7060 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
7062 * java/io/natFileDescriptorWin32.cc: New file.
7063 * java/io/natFileWin32.cc: New file.
7064 * java/net/natInetAddress.cc: Added conditional inclusion of
7065 Windows / Winsock headers.
7066 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
7067 inclusion of Windows / Winsock headers.
7068 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
7069 Windows / Winsock headers.
7070 * include/win32-signal.h: New file.
7071 * include/win32-threads.h: New file.
7072 * win32-threads.cc: New file.
7073 * exception.cc (win32_get_restart_frame): New function.
7074 * prims.cc (win32_exception_handler): New function.
7075 (main_init) Performs Winsock initialisation.
7076 (main_init) Installs exeception handler.
7078 2000-03-14 Tom Tromey <tromey@cygnus.com>
7080 * jni.cc (mangled_name): Fixed assertion.
7081 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
7082 turned assert into actual failure.
7084 2000-03-09 Warren Levy <warrenl@cygnus.com>
7086 * java/security/Key.java(serialVersionUID): Set to 0 for now.
7087 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
7088 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
7090 2000-03-09 Warren Levy <warrenl@cygnus.com>
7092 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
7093 * java/security/DigestException.java: New file.
7094 * java/security/GeneralSecurityException.java: New file.
7095 * java/security/InvalidAlgorithmParameterException.java: New file.
7096 * java/security/InvalidKeyException.java: New file.
7097 * java/security/InvalidParameterException.java: New file.
7098 * java/security/Key.java: New file.
7099 * java/security/KeyException.java: New file.
7100 * java/security/KeyPair.java: New file.
7101 * java/security/KeyPairGenerator.java: New file.
7102 * java/security/KeyPairGeneratorSpi.java: New file.
7103 * java/security/NoSuchProviderException.java: New file.
7104 * java/security/PrivateKey.java: New file.
7105 * java/security/Provider.java: New file.
7106 * java/security/PublicKey.java: New file.
7107 * java/security/SecureRandom.java: New file.
7108 * java/security/Security.java: New file.
7109 * java/security/Signature.java: New file.
7110 * java/security/SignatureException.java: New file.
7111 * java/security/interfaces/DSAKey.java: New file.
7112 * java/security/interfaces/DSAParams.java: New file.
7113 * java/security/interfaces/DSAPrivateKey.java: New file.
7114 * java/security/interfaces/DSAPublicKey.java: New file.
7115 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
7116 * java/security/interfaces/RSAPrivateKey.java: New file.
7117 * java/security/interfaces/RSAPublicKey.java: New file.
7118 * java/security/spec/AlgorithmParameterSpec.java: New file.
7119 * java/security/spec/InvalidKeySpecException.java: New file.
7120 * java/security/spec/InvalidParameterSpecException.java: New file.
7121 * java/security/spec/KeySpec.java: New file.
7122 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
7123 * java/security/spec/RSAPrivateKeySpec.java: New file.
7124 * java/security/spec/RSAPublicKeySpec.java: New file.
7125 * Makefile.am: Added above java.security files.
7126 * Makefile.in: Rebuilt.
7128 * java/security/MessageDigest.java: Rewritten.
7129 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
7131 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7135 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7137 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
7138 _Jv_PrepareConstantTimeTables.
7139 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
7140 classes should have an IDT, so don't return if klass is an array
7143 2000-03-08 Tom Tromey <tromey@cygnus.com>
7145 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
7146 of `void' to be created.
7148 2000-03-08 Warren Levy <warrenl@cygnus.com>
7150 * java/math/BigInteger.java(signum): Handle zero properly.
7152 2000-03-07 Tom Tromey <tromey@cygnus.com>
7154 * All files: Updated copyright information.
7155 * COPYING: New file.
7156 * COPYING.LIB: Removed.
7157 * LIBGCJ_LICENSE: We now use GPL + special exception.
7159 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7161 * resolve.cc (_Jv_SearchMethodInClass): New function.
7162 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
7163 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
7165 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7167 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
7168 (struct _Jv_ifaces): New declaration.
7169 JV_CLASS: New macro definition.
7170 (getComponentType): Relocate below isArray() for inlining.
7171 (getModifiers): Declare `inline'.
7172 (getSuperclass): Ditto.
7174 (isPrimitive): Ditto.
7175 (_Jv_IsAssignableFrom): New prototype.
7176 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
7178 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
7179 Check for JV_STATE_DONE before invoking initializeClass().
7180 (_Jv_PrepareConstantTimeTables): New prototype.
7181 (_Jv_GetInterfaces): Ditto.
7182 (_Jv_GenerateITable): Ditto.
7183 (_Jv_GetMethodString): Ditto.
7184 (_Jv_AppendPartialITable): Ditto.
7185 (_Jv_FindIIndex): Ditto.
7186 depth, ancestors, idt: New class fields.
7188 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
7189 inline function `_Jv_IsAssignableFrom'. Use that function.
7190 (isInstance): Declare `inline'.
7191 (initializeClass): Get lock on class before checking `state'. Unlock
7192 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
7194 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
7195 (_Jv_IsAssignableFrom): New inline function. Test assignability using
7196 class->depth and ancestor table.
7197 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7198 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7199 _Jv_IsAssignableFrom.
7200 (_Jv_CheckArrayStore): Ditto.
7201 (_Jv_LookupInterfaceMethodIdx): New function.
7202 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7203 (_Jv_PrepareConstantTimeTables): New function.
7204 (_Jv_IndexOf): Ditto.
7205 (_Jv_GetInterfaces): Ditto.
7206 (_Jv_GenerateITable): Ditto.
7207 (_Jv_GetMethodString): Ditto.
7208 (_Jv_AppendPartialITable): Ditto.
7209 iindex_mutex, iindex_mutex_initialized: New static fields.
7210 (_Jv_FindIIndex): New function.
7212 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7214 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7215 (_Jv_CheckArrayStore): Ditto.
7216 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7217 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7218 Moved to gcj/array.h.
7219 (_Jv_Realloc): New function.
7221 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7223 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7224 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7225 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7226 JvNewDoubleArray): Implementations moved from prims.cc and
7229 * gcj/javaprims.h (_Jv_Realloc): Prototype.
7231 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7233 2000-03-06 Tom Tromey <tromey@cygnus.com>
7235 * jni.cc (MARK_NONE): New define.
7236 (MARK_USER): Likewise.
7237 (MARK_SYSTEM): Likewise.
7238 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7240 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7241 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7242 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7243 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7245 (call): Use MARK_SYSTEM.
7246 (_Jv_GetJNIEnvNewFrame): New function.
7247 (_Jv_LookupJNIMethod): New function.
7248 (_Jv_JNI_PopSystemFrame): New function.
7249 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7251 2000-03-05 Tom Tromey <tromey@cygnus.com>
7253 Fix for PR libgcj/43:
7254 * include/Makefile.in: Rebuilt.
7255 * include/Makefile.am (include_HEADERS): New define.
7257 2000-03-05 Anthony Green <green@redhat.com>
7259 * gcj/javaprims.h ("Java"): Remove FirstThread.
7261 * configure.host: Fix __NO_MATH_INLNES botch.
7263 * Makefile.in: Rebuilt.
7264 * Makefile.am (nat_source_files): Move natFirstThread.cc.
7265 (gnu/gcj/runtime/FirstThread.h): Moved.
7266 (ordinary_java_source_files): Move FirstThread.java.
7267 * prims.cc: Deal with FirstThread movement.
7269 (_Jv_RunMain): Ditto.
7271 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7272 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7274 2000-03-05 Warren Levy <warrenl@cygnus.com>
7276 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7277 Handle null addresses.
7279 2000-03-04 Anthony Green <green@redhat.com>
7281 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7284 2000-03-04 Anthony Green <green@redhat.com>
7286 * configure: Rebuilt.
7287 * configure.in (ZLIBTESTSPEC): New macro.
7288 (GCTESTSPEC): New macro.
7289 (LIBGCJTESTSPEC): New macro.
7290 * libgcj-test.spec.in: New file.
7292 2000-03-02 Tom Tromey <tromey@cygnus.com>
7294 * include/java-interp.h: Don't include MethodInvocation.h.
7295 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7296 * Makefile.in: Rebuilt.
7297 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7298 (ordinary_java_source_files): Don't mention
7299 MethodInvocation.java.
7300 * gnu/gcj/runtime/MethodInvocation.java: Removed.
7301 * interpret.cc (MethodInvocation::continue1): Removed.
7302 (run): Handle exceptions here.
7303 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7305 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7307 (defineClass2): Removed.
7309 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7311 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7313 (hack_call): Removed.
7315 * java/lang/Class.h (Class): Removed hackRunInitializers,
7317 * java/lang/natClass.cc (hackRunInitializers): Removed.
7318 (initializeClass): Catch exceptions here.
7319 Include ExceptionInInitializerError.h.
7320 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7323 * java/lang/Object.h (Object): Don't mention hack12_6.
7324 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7326 * java/lang/Object.java (hack12_6): Removed.
7328 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7329 (start): Use run_, not run__.
7330 * java/lang/Thread.java (run_): Renamed from run__; old run_
7333 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7334 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7335 (_Jv_JNI_DefineClass): Likewise.
7336 (_Jv_JNI_ThrowNew): Likewise.
7337 (_Jv_JNI_AllocObject): Likewise.
7338 (_Jv_JNI_GetAnyMethodID): Likewise.
7339 (_Jv_JNI_CallAnyMethodV): Likewise.
7340 (_Jv_JNI_CallAnyMethodA): Likewise.
7341 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7342 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7343 (_Jv_JNI_GetAnyFieldID): Likewise.
7344 (_Jv_JNI_NewString): Likewise.
7345 (_Jv_JNI_NewStringUTF): Likewise.
7346 (_Jv_JNI_GetStringUTFChars): Likewise.
7347 (_Jv_JNI_NewObjectArray): Likewise.
7348 (_Jv_JNI_NewPrimitiveArray): Likewise.
7349 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7350 (_Jv_JNI_GetStringRegion): Likewise.
7351 (_Jv_JNI_GetStringUTFRegion): Likewise.
7352 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7353 (_Jv_JNI_MonitorEnter): Likewise.
7354 (_Jv_JNI_MonitorExit): Likewise.
7355 (_Jv_JNI_ToReflectedField): Likewise.
7356 (_Jv_JNI_ToReflectedMethod): Likewise.
7357 (_Jv_JNI_RegisterNatives): Likewise.
7358 (_Jv_JNI_AttachCurrentThread): Likewise.
7359 (_Jv_JNI_DestroyJavaVM): Likewise.
7361 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7363 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7364 error caused by the incorrect casting of a long to an int.
7366 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7368 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7369 SIGSEV caused by use of the wrong instance variable.
7371 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7373 * java/io/File.java (File(String, String)): For dirPath, treat an
7374 empty String the same as `null'.
7376 2000-02-26 Anthony Green <green@cygnus.com>
7378 * gnu/gcj/io/MimeTypes.java: Test for null.
7380 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7381 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7383 * java/net/URLConnection.java: Update copyright notice.
7385 2000-02-25 Tom Tromey <tromey@cygnus.com>
7387 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7390 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7392 * java/net/URLConnection.java (initializeDateFormats): New
7394 (getHeaderFieldDate): Call initializeDateFormats if required.
7395 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7397 Fix for PR libgcj/38.
7399 2000-02-24 Warren Levy <warrenl@cygnus.com>
7401 * java/math/BigInteger.java(ival): Made private.
7405 2000-02-20 Anthony Green <green@cygnus.com>
7407 * Makefile.in: Rebuilt.
7408 * Makefile.am (ordinary_java_source_files): Add
7409 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7411 * scripts/MakeDefaultMimeTypes.java: New file.
7412 * scripts/mime.types: New file.
7413 * scripts/classes.pl: Moved from top level.
7414 * classes.pl: Moved to scripts directory.
7416 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7418 * gnu/gcj/io/MimeTypes.java: New file.
7419 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7421 2000-02-20 Tom Tromey <tromey@cygnus.com>
7423 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7425 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7427 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7430 2000-02-18 Tom Tromey <tromey@cygnus.com>
7432 * include/jvm.h (_Jv_GetJavaVM): Declare.
7433 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7434 (_Jv_MethodBase::get_method): New method.
7435 (_Jv_JNIMethod::set_function): New method.
7436 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7437 (_Jv_JNI_RegisterNatives): New function.
7438 (_Jv_JNIFunctions): Updated for new functions.
7439 (_Jv_GetJavaVM): New function.
7440 (_Jv_JNI_GetJavaVM): Use it. Now static.
7441 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7442 is already a Java thread but does not have a JNIEnv yet.
7444 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7447 2000-02-17 Tom Tromey <tromey@cygnus.com>
7449 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7452 2000-02-16 Tom Tromey <tromey@cygnus.com>
7454 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7456 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7457 (_Jv_JNI_NewObject): Likewise.
7458 (_Jv_JNI_NewObjectA): Likewise.
7459 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7460 as "return" type to _Jv_CallAnyMethodA.
7461 (_Jv_JNI_CallAnyMethodA): Likewise.
7462 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7464 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7467 2000-02-15 Tom Tromey <tromey@cygnus.com>
7469 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7471 (init_cif): Added `rtype_p' argument.
7472 * include/java-interp.h (class _Jv_MethodBase): Added
7474 (class _Jv_InterpMethod): Removed args_raw_size.
7475 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7476 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7477 class pointer as well as the ordinary arguments.
7479 * jni.cc (mangled_name): Skip leading `(' in signature.
7481 * jni.cc (add_char): Added missing `else'.
7483 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7486 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7490 * java/lang/natRuntime.cc (_load): Include library path with
7493 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7496 * java/lang/natThread.cc (dumpStack): Removed.
7497 * java/lang/Thread.java (dumpStack): Implemented.
7499 2000-02-15 Tom Tromey <tromey@cygnus.com>
7501 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7502 with `lib' for loadLibrary. Fixes PR gcj/150.
7504 2000-02-14 Warren Levy <warrenl@cygnus.com>
7506 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7508 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7512 (modPow): Rewritten to not use the naive, slow, brute force approach.
7513 (isProbablePrime): Implemented.
7514 (testBit): Implemented.
7515 (flipBit): Implemented.
7516 (getLowestSetBit): Implemented.
7518 2000-02-16 Anthony Green <green@redhat.com>
7520 * configure.host: Use the same options for i386 and i486 as we do
7523 2000-02-12 Tom Tromey <tromey@cygnus.com>
7525 * java/io/File.java (createTempFile): Use low bits from counter,
7528 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7530 * THANKS: More thanks.
7532 2000-02-11 Tom Tromey <tromey@cygnus.com>
7534 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7535 astore instruction. From Hans Boehm.
7537 2000-02-11 Warren Levy <warrenl@cygnus.com>
7539 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7540 (BigInteger(String)): New constructor.
7541 (not): Rewritten using version from Kawa's BitOps class.
7542 (valueOf): New private methods from Kawa's BitOps class.
7549 (andNot): Implemented.
7550 (clearBit): Implemented.
7551 (setBit): Implemented.
7552 (bitCount): Implemented.
7553 (toByteArray): Implemented.
7555 2000-02-11 Tom Tromey <tromey@cygnus.com>
7557 * java/io/File.java (nextValue): Now synchronized.
7559 2000-02-10 Tom Tromey <tromey@cygnus.com>
7561 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7562 * java/io/FileDescriptor.java (EXCL): New static field.
7563 * java/io/File.java (tmpdir): New static field.
7564 (createTempFile): New method.
7565 (nextValue): New method.
7566 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7569 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7570 (jboolean): Declare as an attributed int, not a bool.
7571 (_Jv_func): Declare differently for C.
7573 * gnu/gcj/jni/natNativeThread.cc: New file.
7574 * gnu/gcj/jni/NativeThread.java: New file.
7575 * java/lang/Thread.java (data): Now a RawData.
7576 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7578 * Makefile.in: Rebuilt.
7579 * Makefile.am (java/lang/Thread.h): New target.
7580 (ordinary_java_source_files): Added NativeThread.java.
7581 (nat_source_files): Added natNativeThread.cc.
7582 * java/lang/natThread.cc: Include <jni.h>
7583 (struct natThread): Added `jni_env' field.
7584 (_Jv_GetCurrentJNIEnv): New function.
7585 (_Jv_SetCurrentJNIEnv): Likewise.
7586 (initialize_native): Initialize jni_env.
7588 * jni.cc (ThreadGroupClass): New define.
7589 (_Jv_JNI_InvokeFunctions): New structure.
7590 (JNI_GetCreatedJavaVMs): New function.
7591 (the_vm): New global.
7592 (JNI_GetDefaultJavaVMInitArgs): New function.
7593 Include NativeThread.h.
7594 (NativeThreadClass): New define.
7595 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7596 (_Jv_JNI_DestroyJavaVM): New function.
7597 (_Jv_JNI_AttachCurrentThread): New function.
7598 (_Jv_JNI_DetachCurrentThread): New function.
7599 (_Jv_JNI_GetEnv): New function.
7600 (JNI_CreateJavaVM): New function.
7601 (_Jv_JNI_GetJavaVM): New function.
7602 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7603 * include/jni.h (JavaVMAttachArgs): New structure.
7604 (JNI_EDETACHED): New define.
7605 (JNI_EVERSION): Likewise.
7606 (JavaVM): Define properly.
7607 (struct JNIInvokeInterface): New structure.
7608 (class _Jv_JavaVM): New class.
7609 (JNI_OnLoad, JNI_OnUnload): Declare.
7610 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7611 JNI_GetCreatedJavaVMs): Declare.
7612 (JavaVMInitArgs): New typedef.
7613 (JavaVMOption): Likewise.
7614 (JNI_ERR): New define.
7617 2000-02-10 Andrew Haley <aph@cygnus.com>
7619 * interpret.cc: Don't include fdlibm.h.
7620 Replace #if with #ifdef throughout.
7621 Declare extern __ieee754_fmod.
7622 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7624 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7625 Search class hierarchy for superclass vtable.
7627 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7628 off the end of a pointer list.
7630 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7634 2000-02-09 Tom Tromey <tromey@cygnus.com>
7636 * java/lang/natRuntime.cc (_load): Call add_library.
7637 (loadLibraryInternal): Likewise.
7639 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7640 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7641 (Output_iconv::finalize): Likewise.
7643 2000-02-08 Tom Tromey <tromey@cygnus.com>
7645 * java/util/Properties.java (setProperty): New method.
7646 (store): New method.
7648 2000-02-07 Tom Tromey <tromey@cygnus.com>
7650 * java/lang/Runtime.java (_load): Declare.
7651 (load, loadLibrary): Wrote in terms of _load.
7652 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7654 (loadLibrary): Likewise.
7656 (_load): New method.
7657 (loadLibrary, load): Removed.
7659 * jni.cc (ThrowableClass): New define.
7660 (_Jv_JNI_Throw): Check argument.
7661 (_Jv_JNI_ThrowNew): Likewise.
7662 (wrap_value): Don't wrap object if it is NULL.
7663 (_Jv_JNI_DefineClass): Use wrap_value.
7664 (_Jv_JNI_FindClass): Likewise.
7665 (_Jv_JNI_GetSuperclass): Likewise.
7666 (_Jv_JNI_ExceptionOccurred): Likewise.
7667 (_Jv_JNI_AllocObject): Likewise.
7668 (_Jv_JNI_GetObjectClass): Likewise.
7669 (_Jv_JNI_NewString): Likewise.
7670 (_Jv_JNI_NewStringUTF): Likewise.
7671 (_Jv_JNI_NewObjectArray): Likewise.
7672 (_Jv_JNI_GetObjectArrayElement): Likewise.
7673 (_Jv_JNI_NewPrimitiveArray): Likewise.
7674 (_Jv_JNI_ToReflectedField): Likewise.
7675 (_Jv_JNI_ToReflectedMethod): Likewise.
7676 (_Jv_JNI_AllocObject): Check argument.
7677 (_Jv_JNI_NewObjectV): Likewise.
7678 (_Jv_JNI_NewObject): Likewise.
7679 (_Jv_JNI_NewObjectA): Likewise.
7680 (_Jv_JNI_GetObjectClass): Likewise.
7681 (_Jv_JNI_GetField): Likewise.
7682 (_Jv_JNI_SetField): Likewise.
7684 * interpret.cc (PUSHL): Don't use expression statement.
7689 * jni.cc (add_char): Conditional on INTERPRETER.
7690 (mangled_name): Likewise.
7692 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7694 (class _Jv_JNIMethod): Likewise.
7696 2000-02-04 Warren Levy <warrenl@cygnus.com>
7698 * Makefile.am: Added MPN.java and BigInteger.java.
7699 * Makefile.in: Rebuilt.
7700 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7702 * java/math/BigInteger.java: New file. Based primarily on
7703 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7705 2000-02-04 Tom Tromey <tromey@cygnus.com>
7707 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7709 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7710 if the method is native.
7711 * resolve.cc (ncode): Don't handle native methods.
7712 (_Jv_JNIMethod::ncode): New method.
7713 (_Jv_PrepareClass): Handle native methods.
7714 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7715 Include AbstractMethodError.h.
7716 (add_char): New function.
7717 (mangled_name): Likewise.
7718 * include/java-interp.h (class _Jv_JNIMethod): New class.
7719 (class _Jv_MethodBase): New class.
7720 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7721 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7724 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7725 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7726 libraries): New globals.
7727 (add_library): New function.
7728 (_Jv_FindSymbolInExecutable): New function.
7730 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7733 2000-02-04 Andrew Haley <aph@cygnus.com>
7735 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7736 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7737 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7738 printStackTrace to printRawStackTrace.
7740 2000-02-03 Tom Tromey <tromey@cygnus.com>
7742 * java/util/Calendar.java (toString): New method.
7743 * java/util/SimpleTimeZone.java (clone): New method.
7744 (toString): New method.
7745 * java/util/TimeZone.java (clone): New method.
7746 * java/text/SimpleDateFormat.java (clone): New method.
7747 * java/text/NumberFormat.java (clone): New method.
7748 (equals): New method.
7749 * java/text/Format.java (clone): New method.
7750 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7752 (clone): New method.
7753 * java/text/DateFormat.java (clone): New method.
7754 * java/text/Collator.java (clone): New method.
7756 2000-02-03 Tom Tromey <tromey@cygnus.com>
7758 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7761 2000-02-01 Tom Tromey <tromey@cygnus.com>
7763 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7764 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7765 constructing the closure if the function is native.
7766 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7767 a template function, #if'd out, or static.
7768 Include <java-interp.h>.
7770 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7772 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7774 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7775 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7777 (wrap_value): New function.
7778 (_Jv_JNI_CallAnyMethodV): Use it.
7779 (_Jv_JNI_CallAnyMethodA): Likewise.
7780 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7781 (_Jv_JNI_GetStaticField): Likewise.
7783 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7784 (_Jv_JNI_GetStaticField): Likewise.
7786 2000-01-31 Tom Tromey <tromey@cygnus.com>
7788 * prims.cc (_Jv_MallocUnchecked): New function.
7789 (main_init): Call _Jv_JNI_Init.
7790 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7791 (_Jv_JNI_Init): Declare.
7792 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7794 (_Jv_JNI_NewGlobalRef): New function.
7795 (_Jv_JNI_DeleteGlobalRef): New function.
7796 (_Jv_JNI_DeleteLocalRef): New function.
7797 (_Jv_JNI_conversion_call): Initialize and clear local reference
7799 (_Jv_JNI_NewLocalRef): New function.
7800 (struct _Jv_JNI_LocalFrame): New structure.
7801 (_Jv_JNI_PushLocalFrame): New function.
7802 (_Jv_JNI_EnsureLocalCapacity): New function.
7803 (FRAME_SIZE): New define.
7804 (_Jv_JNI_GetStringChars): Mark string, not characters.
7805 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7806 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7807 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7809 (_Jv_JNI_DefineClass): Make return value a local ref.
7810 (_Jv_JNI_FindClass): Likewise.
7811 (_Jv_JNI_GetSuperclass): Likewise.
7812 (_Jv_JNI_ExceptionOccurred): Likewise.
7813 (_Jv_JNI_AllocObject): Likewise.
7814 (_Jv_JNI_GetObjectClass): Likewise.
7815 (_Jv_JNI_CallAnyMethodV): Likewise.
7816 (_Jv_JNI_NewString): Likewise.
7817 (_Jv_JNI_NewStringUTF): Likewise.
7818 (_Jv_JNI_NewObjectArray): Likewise.
7819 (_Jv_JNI_GetObjectArrayElement): Likewise.
7820 (_Jv_JNI_ToReflectedField): Likewise.
7821 (_Jv_JNI_ToReflectedMethod): Likewise.
7822 (_Jv_JNIFunctions): Updated table for new functions.
7823 (_Jv_JNI_Init): New function.
7824 (mark_for_gc): Wrote.
7825 (unmark_for_gc): Wrote.
7826 * include/jni.h (struct JNINativeInterface): Removed name from
7827 PopLocalFrame parameter.
7828 (class _Jv_JNIEnv): Added `locals' field.
7830 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7832 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7835 2000-01-30 Tom Tromey <tromey@cygnus.com>
7837 * include/config.h.in: Rebuilt.
7838 * acconfig.h (HAVE_ICONV): Define.
7839 * configure: Rebuilt.
7840 * configure.in: Check for `iconv' function.
7841 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7842 no specific encoder exists.
7843 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7844 no specific encoder exists.
7845 * Makefile.in: Rebuilt.
7846 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7848 (nat_source_files): Added natIconv.cc.
7849 * gnu/gcj/convert/natIconv.cc: New file.
7850 * gnu/gcj/convert/Input_iconv.java: New file.
7851 * gnu/gcj/convert/Output_iconv.java: New file.
7853 2000-01-28 Tom Tromey <tromey@cygnus.com>
7855 * Makefile.in: Rebuilt.
7856 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7858 2000-01-26 Tom Tromey <tromey@cygnus.com>
7860 * gcj/method.h (JvNumMethods): Moved from Class.h.
7861 (JvGetFirstMethod): Likewise.
7862 * java/lang/Class.h (Object): Updated decl of
7863 _Jv_JNI_ToReflectedField.
7864 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7865 * Makefile.in: Rebuilt.
7866 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7867 argument of _Jv_JNI_ToReflectedField.
7868 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7870 (java/lang/reflect/Method.h): Likewise.
7871 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7873 (jweak): New typedef.
7874 (struct JNINativeInterface): Correctly declare remaining entries.
7875 * jni.cc: Include Class.h, ClassLoader.h.
7876 (_Jv_JNI_FindClass): New function.
7877 (_Jv_JNI_DefineClass): New function.
7878 (_Jv_JNI_conversion_call): New function.
7879 (_Jv_JNI_FindClass): Use current class loader to find class.
7880 (_Jv_JNI_ExceptionCheck): New function.
7881 (_Jv_JNI_FromReflectedField): Now static.
7882 (MethodClass): New define.
7883 (_Jv_JNI_FromReflectedMethod): New function.
7884 (_Jv_JNI_ToReflectedMethod): Likewise.
7886 (_Jv_JNI_IsAssignableFrom): Renamed.
7887 (_Jv_JNI_GetStringRegion): New function.
7888 Include StringIndexOutOfBoundsException.h.
7889 (_Jv_JNI_GetStringUTFRegion): New function.
7890 (_Jv_JNIFunctions): Updated for new functions.
7891 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7892 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7893 (_Jv_JNI_GetStringCritical): New function.
7894 (_Jv_JNI_ReleaseStringCritical): Likewise.
7895 (get_throwable): Removed.
7896 (GCJ_JV_JNIENV_FRIEND): Removed.
7897 (__GCJ_JNI_IMPL__): Define.
7900 * resolve.cc (get_ffi_type_from_signature): Handle case where
7903 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7905 * interpret.cc (run): Don't call println.
7906 Don't include PrintStream.h.
7908 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7909 nameIndex. Use "jint" as type for boffset.
7910 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7912 (Class): Likewise. Also changed type of method_count,
7913 vtable_method_count, size_in_bytes, field_count,
7914 static_field_count, interface_count.
7915 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7918 2000-01-21 Tom Tromey <tromey@cygnus.com>
7920 * java/lang/reflect/natConstructor.cc (newInstance): Use
7922 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7923 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7924 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7927 (invoke): Use _Jv_CallAnyMethodA.
7929 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7930 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7932 (struct _Jv_Method): Added getNextMethod method.
7933 (JvNumMethods): New function.
7934 (JvGetFirstMethod): Likewise.
7935 * gcj/field.h (JvGetFirstStaticField): New function.
7936 (JvNumStaticFields): Likewise.
7937 (getNextField): Renamed from getNextInstanceField.
7938 (struct _Jv_Field): New method getClass.
7939 * jni.cc: Wrote many new functions.
7940 * include/jni.h (JNI_TRUE): Define.
7941 (JNI_FALSE): Likewise.
7942 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7943 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7944 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7945 (jfieldID, jmethodID): Likewise.
7946 (JNI_COMMIT, JNI_ABORT): New defines.
7947 (JNINativeMethod): New struct.
7948 (struct JNINativeInterface): Correctly declared more entries.
7949 (class _Jv_JNIEnv): Added `ex' member.
7950 (JNI_VERSION_1_1): New define.
7951 (JNI_VERSION_1_2): Likewise.
7953 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7954 getNextInstanceField.
7956 2000-01-20 Tom Tromey <tromey@cygnus.com>
7958 * resolve.cc (StringClass): Removed.
7959 * defineclass.cc (StringClass): Removed.
7961 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7965 2000-01-19 Tom Tromey <tromey@cygnus.com>
7967 * interpret.cc (PC_REGISTER_ASM): Removed.
7969 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7970 From Bryce McKinlay.
7972 * All files: Updated copyright to reflect Cygnus purchase.
7974 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7976 * configure: Rebuilt.
7977 * configure.in: Recognize --disable-interpreter.
7979 2000-01-18 Andrew Haley <aph@cygnus.com>
7981 * name-finder.cc (lookup): Check for dladdr function.
7982 acconfig.h (HAVE_DLADDR): Add.
7983 configure.in: Check for HAVE_DLADDR
7985 include/config.h.in: Rebuilt.
7987 2000-01-17 Andrew Haley <aph@cygnus.com>
7989 * prims.cc (_Jv_RunMain): Set the name of this executable.
7991 2000-01-17 Tom Tromey <tromey@cygnus.com>
7993 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7994 when backtrace can't be computed.
7996 * configure: Rebuilt.
7997 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7999 * java/lang/Runtime.java (loadLibraryInternal): Declare.
8000 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
8001 (_Jv_FindClassInCache): Likewise.
8002 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
8003 (findSystemClass): Try to load class from compiled module.
8005 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
8006 (loadLibrary): Likewise.
8007 (lt_preloaded_symbols): Define.
8008 (loadLibraryInternal): New method.
8009 * include/config.h.in: Rebuilt.
8010 * acconfig.h (USE_LTDL): Added.
8011 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
8012 (INCLUDES): Added $(INCLTDL).
8013 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
8014 (libgcj_la_LIBADD): Likewise.
8015 * aclocal.m4, configure: Rebuilt.
8016 * configure.in: Added libltdl support.
8018 2000-01-15 Tom Tromey <tromey@cygnus.com>
8020 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
8022 2000-01-14 Andrew Haley <aph@cygnus.com>
8024 * java/lang/natThrowable.cc: New file.
8026 * java/lang/Throwable.java (fillInStackTrace): Make native.
8027 (printStackTrace): Call native method to do this.
8028 (Throwable): Call fillInStackTrace.
8029 (stackTrace): New variable.
8031 * include/jvm.h: Add _Jv_ThisExecutable functions.
8033 * prims.cc: (_Jv_execName): New variable.
8034 (catch_segv): Call fillInStackTrace.
8036 (_Jv_ThisExecutable): New functions.
8037 (JvRunMain): Set the name of this executable.
8039 * Makefile.am: Add java/lang/natThrowable.cc.
8041 * Makefile.in: Rebuilt.
8043 * acconfig.h: Add HAVE_PROC_SELF_EXE.
8045 * configure.in: Force link with __frame_state_for in
8046 FORCELIBGCCSPEC. Add new checks for backtrace.
8047 * include/config.h.in: Rebuilt.
8049 * name-finder.cc: New file.
8050 * include/name-finder.h: New file.
8052 2000-01-16 Anthony Green <green@cygnus.com>
8054 * java/lang/StringBuffer.java (StringBuffer): Don't special case
8057 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
8059 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
8061 2000-01-13 Tom Tromey <tromey@cygnus.com>
8063 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
8064 not system loader, as initiating loader.
8066 2000-01-11 Tom Tromey <tromey@cygnus.com>
8068 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
8069 HP/UX. From David Scott Urban.
8071 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
8073 * java/lang/natMath.cc (pow): Cast args to `double', not
8076 (IEEEremainder): Likewise.
8077 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
8078 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
8080 2000-01-09 Anthony Green <green@cygnus.com>
8082 * java/lang/natString.cc (init): Test for overflow condition
8083 during out of bounds check.
8084 (getChars): Throw StringIndexOutOfBoundsException, not
8085 ArrayIndexOutOfBoundsException.
8087 (regionMatches): Obey case option during string comparison.
8089 * configure.host (ligcj_interpreter): New variable. Enable
8090 interpreter by default on IA-32.
8091 * configure.in: Examine libgcj_interpreter.
8092 * configure: Rebuilt.
8094 2000-01-07 Tom Tromey <tromey@cygnus.com>
8096 * mauve-libgcj: Don't disable ClassTest.
8098 * java/lang/natClass.cc (getClasses): Wrote.
8100 2000-01-06 Tom Tromey <tromey@cygnus.com>
8102 * java/lang/natClass.cc (_getConstructors): Correctly check
8103 whether method name is the init name.
8104 (getMethod): Look at accflags on method in `klass', not `this'.
8106 2000-01-05 Tom Tromey <tromey@cygnus.com>
8108 * java/lang/natClass.cc (getMethod): Compute offset relative to
8109 `klass's methods table, not `this's table.
8111 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
8112 In unwrapping/widening case, check whether `k' is null, not
8113 whether it is primitive. Initialize `num' from `argelts', not
8114 `paramelts'. Correct create and pass arguments to ffi_call.
8115 Don't let presence of `this' argument affect index used to look in
8117 (COPY): Set appropriate element in `values' vector.
8119 * java/lang/natClass.cc: Include <gcj/method.h>.
8121 * java/lang/Class.h (_getMethods): Correctly declare as private,
8124 * java/lang/Class.h (_getMethods): Declare.
8125 * java/lang/Class.java (_getMethods): Declare.
8126 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
8127 (getDeclaredClasses): Always return empty array.
8128 (_getMethods): New method.
8129 (getMethods): Wrote.
8130 (getDeclaredMethod): Return `rmethod'.
8131 (finit_name): New global.
8132 (getDeclaredMethods): Check for finit_name.
8133 (_getMethods): Likewise.
8134 (getMethod): Only return public methods.
8136 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
8137 jboolean and select correct ffi type on that basis.
8138 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
8139 Constructor call always has `void' return type.
8141 2000-01-04 Tom Tromey <tromey@cygnus.com>
8143 * java/lang/Class.h (getSignature): Updated.
8144 * java/lang/Class.java (getSignature): Updated.
8145 * java/lang/natClass.cc (getSignature): Added `is_constructor'
8147 (getConstructor): Ensure constructor is public.
8148 (_getConstructors): Check for public-ness of constructor when
8149 `declared' is false, not when it is true.
8151 2000-01-04 Warren Levy <warrenl@cygnus.com>
8153 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
8155 (receive): Set the sender's address in the DatagramPacket.
8157 2000-01-04 Tom Tromey <tromey@cygnus.com>
8159 * java/lang/reflect/natConstructor.cc (newInstance): Pass
8160 declaring class as return_type argument to
8161 _Jv_CallNonvirtualMethodA.
8162 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
8163 constructor case, create object and use it as `this' argument.
8164 * java/lang/Class.h (_getConstructors): Declare.
8165 (_getFields): Declare.
8166 * java/lang/Class.java (getConstructors): Wrote.
8167 (_getConstructors): New native method.
8168 (getDeclaredConstructors): Wrote.
8169 (_getFields): Declare new native method.
8170 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
8172 (getMethod): Work correctly when class is primitive.
8173 (getDeclaredMethods): Likewise. Compute offset using `method',
8175 (getDeclaredMethod): Likewise.
8176 (getConstructor): Wrote.
8177 (ConstructorClass): New define.
8178 (getDeclaredConstructor): Wrote.
8179 (_getConstructors): New method.
8180 (_getFields): New method.
8183 * Makefile.in: Rebuilt.
8184 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
8186 * prims.cc: Remove `#pragma implementation'.
8187 * gcj/array.h: Remove `#pragma interface'.
8189 * prims.cc (_Jv_equaln): New function.
8190 * java/lang/Class.java (getSignature): Declare.
8191 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
8192 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
8194 (getSignature): New method.
8195 (getDeclaredMethod): Wrote.
8197 Include StringBuffer.h.
8198 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8199 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
8201 (getSignature): Declare.
8202 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8203 (_Jv_equaln): Declare.
8204 (_Jv_CallNonvirtualMethodA): Declare.
8205 * Makefile.in: Rebuilt.
8206 * Makefile.am (nat_source_files): Added natConstructor.cc.
8207 (java/lang/reflect/Constructor.h): New target.
8208 * java/lang/reflect/natConstructor.cc: New file.
8209 * java/lang/reflect/Constructor.java (newInstance): Now native.
8210 (declaringClass): Renamed from decl_class.
8211 (offset): Renamed from index.
8212 (getType): New native method.
8213 (getModifiers): Now native.
8214 (getParameterTypes): Call getType if required.
8215 (hashCode): Include hash code from declaring class.
8216 (modifiers): Removed.
8217 (toString): Call getType if required.
8218 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8219 * java/lang/reflect/natMethod.cc (hack_call): New method.
8220 Removed `#if 0' around FFI code.
8221 Include <gnu/gcj/RawData.h>.
8222 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
8223 IllegalArgumentException when argument object and class disagree.
8224 (_Jv_GetTypesFromSignature): New function.
8226 (ObjectClass): New define.
8227 (_Jv_CallNonvirtualMethodA): New function.
8228 * java/lang/reflect/Method.java (hack_trampoline): New method.
8229 (hack_call): New native method.