1 2001-10-23 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3 * prims.cc (_Jv_Abort): Always print error message using fprintf,
5 (_Jv_CreateJavaVM): Set gcj::runTimeInitialized.
6 * include/jvm.h (gcj::runTimeInitialized): New variable declaration.
7 * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle
8 duplicate class registration with JvFail if the runtime hasn't been
11 2001-10-22 Tom Tromey <tromey@redhat.com>
13 * java/util/GregorianCalendar.java (getGregorianChange): Removed
16 2001-10-22 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18 * gnu/gcj/convert/JIS0208_to_Unicode.cc: Declare java_exceptions pragma.
19 * gnu/gcj/convert/JIS0212_to_Unicode.cc: Likewise.
20 * gnu/gcj/convert/Unicode_to_JIS.cc: Likewise.
21 * gnu/gcj/convert/gen-from-JIS.c: Put java_exceptions pragma in output
24 2001-10-19 Mark Wielaard <mark@klomp.org>
26 * java/lang/Double.java: More Classpath merging
27 (isInfinite): Don't use doubleToLongBits
28 (isNaN (Object)): return v != v
29 (initIDs): make native
30 * java/lang/Float.java: Ditto
31 (isInfinite): Don't use floatToIntBits
32 (isNaN (Object)): return v != v
33 * java/lang/natDouble.cc: add empty initIDs()
35 2001-10-19 Mark Wielaard <mark@klomp.org>
37 * javax/naming/BinaryRefAddr.java: New file
38 * javax/naming/InitialContext.java: Compile fix
39 * javax/naming/InvalidNameException.java: Add comments
40 * javax/naming/Name.java: Ditto
41 * javax/naming/NamingException.java: Implement
42 * javax/naming/OperationNotSupportedException.java: Compile fix
43 * javax/naming/RefAddr.java: Implement
44 * javax/naming/StringRefAddr.java: Add comments and implement
45 * javax/naming/directory/InitialDirContext.java: Compile fix
47 2001-10-18 Tom Tromey <tromey@redhat.com>
49 * java/io/BufferedWriter.java (write(String,int,int)): Correctly
52 * java/security/Security.java (loadProviders): Removed unused
53 `pname' variable. Don't create `File' object. Don't update
55 (providerCount): Removed.
56 (insertProviderAt): Don't use `providerCount'.
57 (addProvider(Provider,int)): Likewise.
58 (removeProvider): Likewise.
59 (addProvider(Provider)): Rewrote.
60 (getProviders): Rewrote.
61 (getProvider): Don't use `providerCount'.
63 2001-10-17 Tom Tromey <tromey@redhat.com>
65 * gnu/java/security/provider/SHA1PRNG.java (engineNextBytes):
67 * java/security/SecureRandom.java (setSeed(long)): Don't set seed
68 if secureRandomSpi is not initialized.
70 * Makefile.in: Rebuilt.
71 * Makefile.am (secdir): New macro.
72 (install-data-local): Install new data files.
73 * java/security/classpath.security: New file.
74 * java/security/libgcj.security: New file.
76 * java/security/Security.java (loadProviders): Added `vendor'
78 Load both `classpath' and `java.vm.name' providers.
80 2001-10-17 Anthony Green <green@redhat.com>
82 * java/security/Security.java (loadProviders): Fix bug in how
85 2001-10-16 Tom Tromey <tromey@redhat.com>
87 * gcj/javaprims.h: Updated class list.
88 * java/util/Hashtable.java: Re-merged with Classpath.
90 2001-10-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
92 * name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
94 Eliminate use of C++ static constructors.
95 * interpret.cc: Remove static Utf8Consts. Use namespace gcj.
97 * resolve.cc: Likewise.
98 * defineclass.cc: Likewise.
99 (_Jv_ClassReader::handleClassBegin): Synchronize call to
101 * include/jvm.h (void_signature, clinit_name, init_name, finit_name):
102 Declare in namespace gcj.
103 * java/lang/Class.h (Class): Remove initialization for primitive
105 (friend void _Jv_InitPrimClass): This is in prims.cc.
106 * prims.cc (_Jv_InitPrimClass): Do primitive type initialization
108 (void_signature, clinit_name, init_name, finit_name): Define in
110 (_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and
111 _Jv_InitializeSyncMutex from here. Initialize Utf8 constants.
112 Initialize primitive types.
113 * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
114 initialization routines. Don't synchronize.
115 * java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
118 2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
120 * java/util/HashMap.java (HashEntry.clone): Removed.
121 (HashMap(Map)): Use putAllInternal.
123 (putAllInternal): New method. Efficient counterpart to putAll which
125 * java/util/LinkedHashMap.java (rethread): Removed.
126 (putAllInternal): New method. Clear "head" and "tail".
127 (addEntry): New argument "callRemove". Don't call removeEldestEntry()
128 if callRemove == false.
130 * Makefile.am: Add new classes RandomAccess and LinkedHashMap.
131 * Makefile.in: Rebuilt.
133 2001-10-15 Eric Blake <ebb9@email.byu.edu>
135 * java/util/Collection.java: Updated javadoc.
136 * java/util/Comparator.java: Updated javadoc.
137 * java/util/Enumeration.java: Updated javadoc.
138 * java/util/Iterator.java: Updated javadoc.
139 * java/util/List.java: Updated javadoc.
140 * java/util/ListIterator.java: Updated javadoc.
141 * java/util/Map.java: Updated javadoc.
142 * java/util/RandomAccess.java: New file.
143 * java/util/Set.java: Updated javadoc.
144 * java/util/SortedMap.java: Updated javadoc.
145 * java/util/SortedSet.java: Updated javadoc.
147 2001-10-15 Tom Tromey <tromey@redhat.com>
149 * java/lang/reflect/AccessibleObject.java (checkPermission):
151 Updated copyright information.
153 2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
155 * java/lang/natObject.cc (heavy_lock): Moved fields
156 old_client_data, old_finalization_proc near beginning.
157 (heavy_lock_finalization_proc): Now inline; changed type of
159 (JV_SYNC_TABLE_SZ): Now 2048.
161 (spin): `mp' now global.
162 (heavy_lock_obj_finalization_proc): Updated to correctly handle
163 heavy lock finalization.
164 (remove_all_heavy): New function.
165 (maybe_remove_all_heavy): Likewise.
166 (_Jv_MonitorEnter): Throw exception if object is NULL.
167 (_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
169 * include/jvm.h (_Jv_AllocTraceTwo): Declare.
170 * nogc.cc (_Jv_AllocTraceTwo): New function.
171 * boehm.cc (trace_two_vtable): New global.
172 (_Jv_AllocTraceTwo): New function.
174 2001-10-15 Tom Tromey <tromey@redhat.com>
176 * Makefile.in: Rebuilt.
177 * Makefile.am (awt_java_source_files): Added new file.
178 * java/beans/AppletInitializer.java: New file.
180 * java/net/SocketPermission.java (hostport, actions): Now
183 2001-10-14 Mark Wielaard <mark@klomp.org>
185 * java/lang/Double.java: Partial merge with Classpath
186 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
188 (static): new static block to load native libary (not used in libgcj)
189 (Double (String)): call parseDouble()
190 (byteValue): removed, already defined in superclass Number
191 (shortValue): likewise
192 (valueOf (String)): call new Double(String) directly
193 (compare (double,double)): new 1.4 method
194 (compareTo (Double)): call new compare(double,double) method
195 (initIDs): new private method (not used in libgcj)
196 * java/lang/Float.java: Partial merge with Classpath
197 (TYPE): initialized through VMClassLoader.getPrimitiveClass()
199 (static): new static block to load native libary (not used in libgcj)
200 (Float (String)): call parseFloat()
201 (byteValue): removed, already defined in superclass Number
202 (shortValue): likewise
203 (valueOf (String)): call new Float(String) directly
204 (compare (float,float)): new 1.4 method
205 (compareTo (Float)): call new compare(double,double) method
207 2001-10-13 Tom Tromey <tromey@redhat.com>
209 * java/lang/SecurityManager.java (SecurityManager): Now public.
211 * java/security/AccessController.java (checkPermission): Now
212 throws AccessControlException.
213 * java/security/AllPermission.java: Class now final.
214 * java/security/Permission.java (getName): Now final.
216 (equals): New abstract method.
217 * java/security/PermissionCollection.java (linesep): Now private.
218 * java/security/Permissions.java: Class now final.
219 * java/security/Security.java (Security): New private
221 * java/security/UnresolvedPermission.java: Import
222 java.security.cert.Certificate. Class now final.
223 * java/security/acl/Group.java: Now extends Principal.
224 (isMember): Added Principal argument.
225 * java/security/spec/X509EncodedKeySpec.java (getFormat): Now
227 * java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
230 2001-10-12 Tom Tromey <tromey@redhat.com>
232 * Makefile.in: Rebuilt.
233 * Makefile.am (rmi_java_source_files): Added new files.
234 * gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
236 * gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
237 * gnu/java/rmi/rmic/Compile_gcj.java: New file.
238 * gnu/java/rmi/rmic/CompilerProcess.java: New file.
239 * gnu/java/rmi/rmic/Compiler.java: New file.
241 2001-10-11 Tom Tromey <tromey@redhat.com>
243 * configure: Rebuilt.
244 * configure.in: Recognize --disable-java-awt.
246 2001-10-10 Tom Tromey <tromey@redhat.com>
248 * gnu/gcj/runtime/natFinalizerThread.cc: New file.
249 * java/lang/natRuntime.cc: Include FinalizerThread.h.
250 (runFinalization): Call finalizerReady.
251 * nogc.cc (_Jv_GCInitializeFinalizers): New function.
252 * prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
253 (_Jv_CreateJavaVM): Start the finalizer thread.
254 * no-threads.cc: Include InternalError.h.
255 (_Jv_ThreadStart): Throw InternalError.
256 (_Jv_ThreadInitData): Don't throw error if this is not the first
258 * Makefile.in: Rebuilt.
259 * Makefile.am (ordinary_java_source_files): Added
260 FinalizerThread.java.
261 (nat_source_files): Added natFinalizerThread.cc.
262 * include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
263 * boehm.cc (_Jv_GCInitializeFinalizers): New function.
264 * gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
265 * gnu/gcj/runtime/FinalizerThread.java: New file.
267 2001-10-09 Per Bothner <per@bothner.com>
269 * strtod.c (_strtod_r): Logic to check for missing digits
270 after exponent had 'else' attached to wrong 'if'.
272 2001-10-09 Mark Wielaard <mark@klomp.org>
274 * java/net/SocketImpl.java: Merge with Classpath
276 2001-10-08 Mark Wielaard <mark@klomp.org>
278 * java/net/DatagramSocketImpl.java: Merge with Classpath
280 2001-10-07 Mark Wielaard <mark@klomp.org>
282 * java/net/URLDecoder.java: Remerge with Classpath
283 * java/net/URLEncoder.java: Merge with Classpath
285 2001-10-08 Tom Tromey <tromey@redhat.com>
287 Fix for PR libgcj/4481:
288 * java/io/File.java (getParent): Handle case where path is "/".
289 (normalizePath): Use correct string for UNC leader.
291 2001-10-06 Mark Wielaard <mark@klomp.org>
293 * java/io/BufferedInputStream.java: Merge with Classpath
295 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
297 * defineclass.cc, java/awt/image/ColorModel.java,
298 java/awt/image/SampleModel.java, java/lang/Package.java,
299 java/security/cert/X509Extension.java: Fix spelling errors of
300 "separate" as "seperate", and corresponding spelling errors of
303 2001-10-05 Tom Tromey <tromey@redhat.com>
305 * java/text/DecimalFormat.java (format): Use localized minus sign
306 when generating exponent; never use `+'. Use floor to compute
309 2001-10-05 Mark Wielaard <mark@klomp.org>
311 * java/util/zip/Adler32.java: Merge with Classpath
312 * java/util/zip/CRC32.java: Ditto
313 * java/util/zip/Checksum.java: Ditto
314 * java/util/zip/DataFormatException.java: Ditto
315 * java/util/zip/ZipException.java: Ditto
317 2001-10-04 Martin Kahlert <martin.kahlert@infineon.com>
319 * jni.cc (_Jv_JNI_DeleteLocalRef): Use correct frame size
321 2001-10-04 Mark Wielaard <mark@klomp.org>
323 * java/lang/reflect/Modifier.java: Merge with Classpath
325 2001-10-03 Mark Wielaard <mark@klomp.org>
327 * java/io/SequenceInputStream.java: Merge with Classpath
328 * java/io/StringBufferInputStream.java: Ditto
329 * java/util/Collections.java: Remerge with Classpath
331 2001-10-03 Tom Tromey <tromey@redhat.com>
333 * java/lang/ref/natReference.cc (add_to_hash): Set n->next before
336 2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
338 * resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
339 * gij.cc (version): Use GCJVERSION.
341 2001-10-02 Mark Wielaard <mark@klomp.org>
343 * Makefile.am (core_java_source_files): add InheritableThreadLocal
344 * Makefile.in: regenerate
345 * gcj/javaprims.h: ditto
346 * java/lang/InheritableThreadLocal.java: new class from Classpath
347 * java/lang/Thread.java Thread (Thread, ThreadGroup, Runnable, String):
348 call InheritableThreadLocal.newChildThread()
350 2001-10-01 Mark Wielaard <mark@klomp.org>
352 * Makefile.am: Add new classes
353 (core_java_source_files): CharSequence
354 (ordinary_java_source_files): Authenticator, PasswordAuthentication
355 * Makefile.in: regenerate
356 * gcj/javaprims.h: ditto
357 * java/lang/CharSequence: new class from Classpath
358 * java/lang/String.java: implements CharSequence
359 (subSequence (int,int)): new method
360 * java/lang/SubString.java: implements CharSequence
361 (subSequence (int,int)): new method
362 remerge comments with Classpath
363 * java/net/Authenticator.java: new class from Classpath
364 * java/net/PasswordAuthentication.java: ditto
366 2001-10-01 Tom Tromey <tromey@redhat.com>
368 * gcj/javaprims.h: Rebuilt class list.
369 * boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
370 (_Jv_GCCanReclaimSoftReference): New function.
371 * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
372 (_Jv_GCCanReclaimSoftReference): Declare.
373 * java/lang/ref/Reference.java (referent): Now a RawData.
374 (create): Renamed from `created'. Added object argument.
375 (Reference): Don't initialize `referent' here.
376 * Makefile.in: Rebuilt.
377 * Makefile.am (nat_source_files): Added new file.
378 * java/lang/ref/natReference.cc: New file.
380 * prims.cc (_Jv_NewMultiArrayUnchecked): New method.
381 (_Jv_NewMultiArray): Use it. Check each array dimension.
382 (_Jv_NewMultiArray): Likewise.
383 * java/lang/reflect/natMethod.cc (can_widen): Nothing promotes to
385 * java/lang/reflect/natArray.cc (newInstance): Throw
386 IllegalArgumentException if there are no dimensions.
388 2001-10-01 Mark Wielaard <mark@klomp.org>
390 * java/io/FileWriter.java: Merge with Classpath.
391 * java/io/FilterInputStream.java: Ditto.
392 (mark): no longer synchronized
394 * java/io/FilterOutputStream.java: Merge with Classpath.
395 * java/io/FilterReader.java: Ditto.
396 (mark): no longer synchronized
398 * java/io/FilterWriter.java: Merge with Classpath.
399 * java/io/Writer.java: Ditto.
400 * java/lang/Compiler.java: Ditto.
401 * java/lang/Process.java: Ditto.
402 * java/lang/Void.java: Ditto.
403 * java/net/ContentHandler.java: Ditto.
404 * java/net/DatagramPacket.java: Ditto.
405 * java/net/MulticastSocket.java: Merge comments with Classpath.
407 2001-09-30 Mark Wielaard <mark@klomp.org>
409 * java/io/DataInput.java: Merge with Classpath.
410 * java/io/DataOutput.java: Idem.
411 * java/io/FilenameFilter.java: Idem.
412 * java/io/Serializable.java: Idem.
413 * java/lang/Cloneable.java: Idem.
414 * java/lang/Comparable.java: Idem.
415 * java/lang/Runnable.java: Idem.
416 * java/lang/reflect/Member.java: Idem.
417 * java/net/ContentHandlerFactory.java: Idem.
418 * java/net/FileNameMap.java: Idem.
419 * java/net/SocketImplFactory.java: Idem.
420 * java/net/SocketOptions.java: Idem.
421 * java/net/URLStreamHandlerFactory.java: Idem.
423 2001-09-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
425 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Handle the case of
426 an uninitialized target class.
428 * gnu/gcj/protocol/file/Connection.java (connect): Throw
429 FileNotFoundException if appropriate.
430 * gnu/gcj/protocol/file/Handler.java (openConnection): Throw an
431 IOException if we got a file: url with a hostname. Comment out protocol
432 switch to ftp for now.
433 * java/net/URL.java (URL): Include protocol name in exception message
434 when handler can't be found.
436 2001-09-28 Per Bothner <per@bothner.com>
438 * gnu/gcj/runtime/SharedLibLoader.java: New class.
439 * gnu/gcj/runtime/natSharedLibLoader.cc: Native methods.
440 * Makefile.am: Update accordingly.
441 * configure.in: Add AC_CHECK_LIB for dlopen.
442 * include/config.h.in: Add HAVE_DLOPEN.
444 2001-09-29 Jeff Sturm <jsturm@one-point.com>
446 * Makefile.am (libgcj_la_LDFLAGS): Added $(GCLIBS), $(ZLIBS).
447 * Makefile.in: Rebuilt.
449 2001-09-27 Tom Tromey <tromey@redhat.com>
451 * java/util/IdentityHashMap.java (containsKey): Use getHash.
455 (getHash): New method.
456 (tombstone, emptyslot): Now static final.
457 (put): Correctly determine when to rehash, and correctly rehash.
458 (containsKey, remove): Test against table length with `>='.
460 2001-09-26 Tom Tromey <tromey@redhat.com>
462 * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
464 * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
465 Re-merged with Classpath.
467 * java/io/DataInputStream.java (readChar): Use readFully.
469 (readLong): Likewise.
470 (readShort): Likewise.
471 (readUnsignedShort): Likewise.
473 2001-09-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
475 * java/lang/PosixProcess.java (exitValue): Implement here. Throw
476 IllegalThreadStateException if process hasn't exited yet.
477 * java/lang/natPosixProcess.cc (exitValue): Removed.
478 (waitFor): Only check thread interrupted status if waitpid() returned
479 an error. Use WIFEXITED and WEXITSTATUS to process process's exit
482 * java/security/cert/X509Extension.java: Merge from classpath.
484 2001-09-22 Anthony Green <green@redhat.com>
486 * java/security/DummyKeyPairGenerator.java (initialize): New
487 method (with AlgorithmParameterSpec argument).
489 2001-09-22 Anthony Green <green@redhat.com>
491 * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
493 * gnu/java/security/provider/SHA1PRNG.java: Extend from
495 (engineNextBytes): Fix order of memory copies.
497 2001-09-21 Richard Henderson <rth@redhat.com>
499 * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
500 add get_method, set_method, vtable_elt_size, new_vtable.
501 (_Jv_ArrayVTable): Derive from _Jv_VTable.
502 * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
503 * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
504 * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
506 2001-09-21 Richard Henderson <rth@redhat.com>
508 * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
509 * java/lang/mprec.c (lo0bits): Fix paren typo.
511 2001-09-20 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
513 * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
514 blocking IO via pthread_kill().
515 * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread
516 interrupted status flag only if ::write returned an error.
517 (write (jbyteArray, jint, jint): Likewise.
518 (read (jint)): Likewise.
519 (read (jbyteArray, jint, jint): Likewise.
521 2001-09-19 Anthony Green <green@redhat.com>
523 * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
526 2001-09-17 Andreas Jaeger <aj@suse.de>
528 * jni.cc (array_from_valist): Use promoted types for va_arg.
530 2001-09-16 Anthony Green <green@redhat.com>
532 * gnu/java/locale/LocaleInformation.java: Extend
533 LocaleInformation_en_US, not LocaleInformation_en.
535 2001-09-16 Anthony Green <green@redhat.com>
537 * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
539 2001-09-14 Tom Tromey <tromey@redhat.com>
541 * java/util/TimeZone.java: Updated list of timezones from
544 * java/lang/CloneNotSupportedException.java: Re-merged with
547 2001-09-14 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
549 * java/io/File.java (normalizePath): Use equals() not '==' for string
552 * java/util/Hashtable.java (Enumerator): Ensure that if
553 hasMoreElements() returns true, nextElement() will always return
554 something even if the table has been modified.
556 2001-09-12 Tom Tromey <tromey@redhat.com>
558 * Makefile.in: Rebuilt.
559 * Makefile.am (class-check): New target.
561 2001-09-11 Tom Tromey <tromey@redhat.com>
563 * java/io/File.java (toURL): Use getAbsolutePath and `file://'.
565 2001-09-10 Tom Tromey <tromey@redhat.com>
567 * java/util/Properties.java (load): Correctly read \u sequences.
568 Report from Anthony Green.
570 2001-09-10 Manfred Hollstein <manfredh@redhat.com>
572 * configure.in (LIBFFIINCS): Quote uses of $(top_srcdir)
573 and $(MULTIBUILDTOP).
574 * configure: Re-generate.
576 2001-09-10 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
578 * include/jvm.h (_Jv_AllocRawObj): New prototype.
579 * boehm.cc (_Jv_AllocRawObj): Implement.
580 * nogc.cc (_Jv_AllocRawObj): Likewise.
581 * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
583 2001-09-06 Anthony Green <green@redhat.com>
585 * java/util/ResourceBundle.java (tryLocalBundle): Eliminate
586 redundant method calls.
587 (emptyLocale): New private member.
588 (tryBundle): Use emptyLocale. Remove duplicate code. Only cache
591 2001-09-06 Tom Tromey <tromey@redhat.com>
593 * java/text/RuleBasedCollator.java (clone): Rewrote.
594 (RuleBasedCollator(RuleBasedCollator)): Removed.
595 * java/text/MessageFormat.java: Re-merged from Classpath.
596 * java/text/DecimalFormat.java: Re-merged from Classpath.
598 2001-09-06 Anthony Green <green@redhat.com>
600 * include/jvm.h: Declare _Jv_RegisterResource.
601 * gnu/gcj/Core.java, gnu/gcj/natCore.cc,
602 gnu/gcj/protocol/core/Connection.java,
603 gnu/gcj/protocol/core/Handler.java,
604 gnu/gcj/protocol/core/CoreInputStream.java,
605 gnu/gcj/protocol/core/natCoreInputStream.cc: New files.
606 * java/net/URL.java (setURLStreamHandler): Use
607 gnu.gcj.protocol.core.Handler for the core protocol.
608 * gnu/gcj/runtime/VMClassLoader.java (init): Add "core:/" to the
609 end of java.class.path.
610 * Makefile.am (ordinary_java_source_files): Add new java files.
611 (nat_source_files): Add new native code files.
612 * Makefile.in: Rebuilt.
614 2001-09-05 Tom Tromey <tromey@redhat.com>
616 * java/util/Properties.java: Re-merged from Classpath.
618 From Eric Blake, via Classpath:
619 * java/lang/String.java (CaseInsensitiveComparator): New class.
620 (CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
622 * java/util/Date.java: Re-merged with Classpath.
624 * java/text/DateFormatSymbols.java: Re-merged with Classpath.
626 2001-09-05 Corey Minyard <minyard@acm.org>
627 Tom Tromey <tromey@redhat.com>
629 * java/lang/natClassLoader.cc: Include VirtualMachineError.h
630 (_Jv_RegisterClassHookDefault): Throw error if a class is
633 2001-09-05 Tom Tromey <tromey@redhat.com>
635 * java/lang/natSystem.cc (init_properties): Default locale is
638 2001-09-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
640 * java/text/MessageFormat.java (setLocale): Don't catch ParseException
641 here, DecimalFormat.applyPattern() does not throw it.
643 2001-09-04 Tom Tromey <tromey@redhat.com>
645 * java/util/AbstractMap.java: Re-merged with Classpath.
646 * java/util/IdentityHashMap.java: Re-merged with Classpath.
648 * java/text/SimpleDateFormat.java: Re-merged with Classpath.
649 * gnu/gcj/text/LocaleData.java, gnu/gcj/text/LocaleData_en.java,
650 gnu/gcj/text/LocaleData_en_US.java: Removed.
651 * java/text/DateFormatSymbols.java (clone): Use Classpath
653 (equals): Simplified.
654 (DateFormatSymbols): Look in gnu.java.locale for information.
655 (DateFormatSymbols(DateFormatSymbols)): Removed.
656 (safeGetResource): Removed.
657 (DateFormatSymbols): Throws MissingResourceException.
658 (ampmsDefault, erasDefault, localPatternCharsDefault,
659 monthsDefault, shortMonthsDefault, shortWeekdaysDefault,
660 weekdaysDefault, zoneStringsDefault): Removed.
661 * java/text/Collator.java (getAvailableLocales): Use modified
662 Classpath implementation.
663 (getInstance): Look in gnu.java.locale for information.
665 * java/text/MessageFormat.java: Reindented.
667 * java/text/FieldPosition.java: Merged with Classpath.
668 * java/text/ParsePosition.java: Merged with Classpath.
669 * java/text/Format.java: Merged with Classpath.
670 * java/text/StringCharacterIterator.java
671 (StringCharacterIterator(StringCharacterIterator,int,int)): New
672 constructor from Classpath.
673 * java/text/Annotation.java,
674 java/text/AttributedCharacterIterator.java,
675 java/text/AttributedString.java,
676 java/text/AttributedStringIterator.java: New from Classpath.
677 * java/text/CharacterIterator.java: Copied from Classpath.
678 * java/text/ChoiceFormat.java: Reindented.
680 * gnu/java/text/BaseBreakIterator.java,
681 gnu/java/text/CharacterBreakIterator.java,
682 gnu/java/text/LineBreakIterator.java,
683 gnu/java/text/LocaleData_en.java,
684 gnu/java/text/LocaleData_en_US.java,
685 gnu/java/text/SentenceBreakIterator.java,
686 gnu/java/text/WordBreakIterator.java: Renamed from gnu/gcj/text/*.
687 * gnu/gcj/text/BaseBreakIterator.java (last): Advance past final
689 * java/text/BreakIterator.java (getAvailableLocales): Use
690 Classpath implementation.
691 (getInstance): Look in gnu.java.locale for information.
692 (getCharacterInstance, getLineInstance, getSentenceInstance,
693 getWordInstance): Look in gnu.java.text for implementations.
694 * java/text/DecimalFormatSymbols.java: Reindented
695 (clone): Use Classpath implementation.
696 (DecimalFormatSymbols(DecimalFormatSymbols)): Removed.
697 (DecimalFormatSymbols(Locale)): Look in gnu.java.locale for
699 * java/text/DateFormat.java: Merged with Classpath.
700 (getAvailableLocales): Use Classpath implementation.
701 (format(Object,StringBuffer,FieldPosition)): Minor cleanup.
702 (computeInstance): Look in gnu.java.locale for information.
703 * java/text/NumberFormat.java: Reindented.
704 (computeInstance): Look in gnu.java.locale for information.
705 (getAvailableLocales): Use implementation from Classpath.
706 (setMaximumIntegerDigits): Likewise.
707 (setMinimumIntegerDigits): Likewise.
708 (setMaximumFractionDigits): Likewise.
710 * java/text/DecimalFormat.java: Reindented.
711 * gnu/java/locale/LocaleInformation_en.java: Copied from Classpath.
712 * gnu/java/locale/LocaleInformation_en_US.java: Copied from Classpath.
713 * Makefile.in: Rebuilt.
714 * Makefile.am (ordinary_java_source_files): Added all new files.
715 (ordinary_java_source_files): Renamed or removed gnu/gcj/text/*.
716 * java/security/spec/AlgorithmParameterSpec.java,
717 java/security/spec/KeySpec.java: Re-merged with Classpath.
719 Fix for PR libgcj/4213:
720 * Makefile.am (ordinary_java_source_files): Added new file.
721 * gnu/gcj/text/LocaleData.java: New file.
723 2001-09-03 Tom Tromey <tromey@redhat.com>
725 * java/lang/reflect/natField.cc (set): Allow for case when the
726 value is null. Fixes PR libgcj/4208.
728 * gcj/javaprims.h: Regenerated class list.
729 * java/lang/IllegalThreadStateException.java,
730 java/lang/InstantiationException.java: Minor comment tweaks to
731 satisfy libgcj `classes.pl' script.
733 2001-09-01 Tom Tromey <tromey@redhat.com>
735 * Makefile.in: Rebuilt.
736 * Makefile.am (core_java_source_files): Added
737 UnsupportedClassVersionError.
738 * java/lang/UnsupportedClassVersionError.java: New file from
741 * java/io/CharConversionException.java, java/io/EOFException.java,
742 java/io/FileNotFoundException.java, java/io/IOException.java,
743 java/io/InterruptedIOException.java,
744 java/io/ObjectStreamException.java,
745 java/io/OptionalDataException.java,
746 java/io/StreamCorruptedException.java,
747 java/io/SyncFailedException.java,
748 java/io/UTFDataFormatException.java,
749 java/io/UnsupportedEncodingException.java,
750 java/lang/AbstractMethodError.java,
751 java/lang/ArithmeticException.java,
752 java/lang/ArrayIndexOutOfBoundsException.java,
753 java/lang/ArrayStoreException.java,
754 java/lang/ClassCastException.java,
755 java/lang/ClassCircularityError.java,
756 java/lang/ClassFormatError.java,
757 java/lang/CloneNotSupportedException.java, java/lang/Error.java,
758 java/lang/Exception.java,
759 java/lang/ExceptionInInitializerError.java,
760 java/lang/IllegalAccessError.java,
761 java/lang/IllegalAccessException.java,
762 java/lang/IllegalArgumentException.java,
763 java/lang/IllegalMonitorStateException.java,
764 java/lang/IllegalStateException.java,
765 java/lang/IllegalThreadStateException.java,
766 java/lang/IncompatibleClassChangeError.java,
767 java/lang/IndexOutOfBoundsException.java,
768 java/lang/InstantiationError.java,
769 java/lang/InstantiationException.java,
770 java/lang/InternalError.java, java/lang/InterruptedException.java,
771 java/lang/LinkageError.java,
772 java/lang/NegativeArraySizeException.java,
773 java/lang/NoClassDefFoundError.java,
774 java/lang/NoSuchFieldError.java,
775 java/lang/NoSuchFieldException.java,
776 java/lang/NoSuchMethodError.java,
777 java/lang/NoSuchMethodException.java,
778 java/lang/NullPointerException.java,
779 java/lang/NumberFormatException.java,
780 java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
781 java/lang/SecurityException.java,
782 java/lang/StackOverflowError.java,
783 java/lang/StringIndexOutOfBoundsException.java,
784 java/lang/ThreadDeath.java, java/lang/UnknownError.java,
785 java/lang/UnsatisfiedLinkError.java,
786 java/lang/UnsupportedOperationException.java,
787 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
788 java/lang/reflect/InvocationTargetException.java,
789 java/net/BindException.java, java/net/ConnectException.java,
790 java/net/MalformedURLException.java,
791 java/net/NoRouteToHostException.java,
792 java/net/ProtocolException.java, java/net/SocketException.java,
793 java/net/UnknownHostException.java,
794 java/net/UnknownServiceException.java,
795 java/text/ParseException.java: Copied from Classpath, thanks to
796 Mark Wielaard who did the merge.
798 * java/lang/System.java (getProperty): Use single argument form of
799 SecurityManager.checkPropertyAccess.
800 * Makefile.in: Rebuilt.
801 * Makefile.am (core_java_source_files): Added VMSecurityManager.
802 * java/lang/VMSecurityManager.java: New file.
803 * java/lang/SecurityManager.java: Merged with Classpath.
805 2001-08-31 Per Bothner <per@bothner.com>
807 * gcj/javaprims.h (_Jv_RegisterClassHook): New extern declaration.
808 (_Jv_RegisterClassHookDefault): Likewise.
809 * java/lang/Class.h (_Jv_RegisterClassHookDefault): Declare as friend.
810 * java/lang/natClassLoader.cc (_Jv_RegisterClassHook): New variable.
811 (_Jv_RegisterClassHookDefault): New.function.
812 (_Jv_RegisterClasses): Call _Jv_RegisterClassHook.
814 * java/lang/ClassLoader.java (system): Remove static field.
815 (getSystemClassLoader): Get gnu.gcj.runtime.VMClassLoader.instance
816 directly instead of using it to set the system field.
817 (loadClass): Use VMClassLoader.instance instead of system field.
818 (findSystemClass): Similar.
819 * prims.cc (_Jv_RunMain): Clear VMClassLoader::instance rather
820 than ClassLoader::system which no longer exists.
821 * java/lang/natClassLoader.java (_Jv_FindClass): Simplify.
823 2001-08-31 Tom Tromey <tromey@redhat.com>
825 * java/io/BufferedReader.java, java/io/ObjectInput.java,
826 java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
827 Re-merged with Classpath.
829 Re-merge with Classpath:
830 * java/util/Comparator (equals): Added.
831 * java/io/PipedWriter.java (write): Changed argument to `int'.
833 * java/io/FileDescriptor.java (FileDescriptor()): New
835 * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
837 * Makefile.in: Rebuilt.
838 * Makefile.am (ordinary_java_source_files): Removed
839 EnumerationChain, added DoubleEnumeration.
840 (nat_source_files): Added natResourceBundle.cc.
841 * java/util/natResourceBundle.cc: New file.
842 * gnu/java/util/DoubleEnumeration.java: New file.
843 * gnu/gcj/util/EnumerationChain.java: Removed.
844 * java/beans/VetoableChangeSupport.java: Merged with Classpath.
845 * java/util/ResourceBundle.java: Merged with Classpath.
846 * java/util/StringTokenizer.java: Merged with Classpath.
847 * java/util/Locale.java: Merged with Classpath.
848 * java/util/Random.java: Merged with Classpath.
849 * java/util/PropertyResourceBundle.java: Merged with Classpath.
850 * java/util/ListResourceBundle.java: Merged with Classpath.
851 * java/util/ConcurrentModificationException.java: Re-merged with
853 * java/util/EmptyStackException.java: Likewise.
854 * java/util/MissingResourceException.java: Likewise.
855 * java/util/NoSuchElementException.java: Likewise.
856 * java/util/TooManyListenersException.java: Likewise.
858 * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
859 * java/io/OptionalDataException.java: Merged with Classpath.
861 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
863 * exception.cc (PERSONALITY_FUNCTION): Simplify
866 2001-08-31 Tom Tromey <tromey@redhat.com>
868 * java/io/ByteArrayInputStream.java: Merged with Classpath.
870 2001-08-30 Tom Tromey <tromey@redhat.com>
872 * java/io/BufferedReader.java: Re-merged with Classpath.
874 2001-08-28 Per Bothner <per@bothner.com>
876 * java/math/BigInteger.java (init(int,Random)): New method.
877 Move body of constructor <init>(int,Random)) here.
878 Re-write it to avoid constructing unneeded temporaries.
879 (<init>(int,int,Random)): Use new init method to avoid constructing
880 extra temporary BigIntegers.
882 2001-08-27 Tom Tromey <tromey@redhat.com>
884 * java/rmi/activation/Activatable.java,
885 java/rmi/activation/ActivateFailedException.java,
886 java/rmi/activation/ActivationDesc.java,
887 java/rmi/activation/ActivationException.java,
888 java/rmi/activation/ActivationGroup.java,
889 java/rmi/activation/ActivationGroupDesc.java,
890 java/rmi/activation/ActivationGroupID.java,
891 java/rmi/activation/ActivationID.java,
892 java/rmi/activation/ActivationInstantiator.java,
893 java/rmi/activation/ActivationMonitor.java,
894 java/rmi/activation/ActivationSystem.java,
895 java/rmi/activation/Activator.java,
896 java/rmi/activation/UnknownGroupException.java,
897 java/rmi/activation/UnknownObjectException.java,
898 java/rmi/AccessException.java,
899 java/rmi/AlreadyBoundException.java,
900 java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
901 java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
902 java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
903 java/rmi/NotBoundException.java,
904 java/rmi/RMISecurityException.java,
905 java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
906 java/rmi/RemoteException.java, java/rmi/ServerError.java,
907 java/rmi/ServerException.java,
908 java/rmi/ServerRuntimeException.java,
909 java/rmi/StubNotFoundException.java,
910 java/rmi/UnexpectedException.java,
911 java/rmi/UnknownHostException.java,
912 java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
913 java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
914 java/rmi/registry/LocateRegistry.java,
915 java/rmi/registry/Registry.java,
916 java/rmi/registry/RegistryHandler.java,
917 java/rmi/server/ExportException.java,
918 java/rmi/server/LoaderHandler.java,
919 java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
920 java/rmi/server/Operation.java,
921 java/rmi/server/RMIClassLoader.java,
922 java/rmi/server/RMIClientSocketFactory.java,
923 java/rmi/server/RMIFailureHandler.java,
924 java/rmi/server/RMIServerSocketFactory.java,
925 java/rmi/server/RMISocketFactory.java,
926 java/rmi/server/RemoteCall.java,
927 java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
928 java/rmi/server/RemoteServer.java,
929 java/rmi/server/RemoteStub.java,
930 java/rmi/server/ServerCloneException.java,
931 java/rmi/server/ServerNotActiveException.java,
932 java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
933 java/rmi/server/SkeletonMismatchException.java,
934 java/rmi/server/SkeletonNotFoundException.java,
935 java/rmi/server/SocketSecurityException.java,
936 java/rmi/server/UID.java,
937 java/rmi/server/UnicastRemoteObject.java,
938 java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
939 gnu/java/rmi/dgc/DGCImpl_Skel.java,
940 gnu/java/rmi/dgc/DGCImpl_Stub.java,
941 gnu/java/rmi/registry/RegistryImpl.java,
942 gnu/java/rmi/registry/RegistryImpl_Skel.java,
943 gnu/java/rmi/registry/RegistryImpl_Stub.java,
944 gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
945 gnu/java/rmi/server/ProtocolConstants.java,
946 gnu/java/rmi/server/RMIDefaultSocketFactory.java,
947 gnu/java/rmi/server/RMIHashes.java,
948 gnu/java/rmi/server/RMIObjectInputStream.java,
949 gnu/java/rmi/server/RMIObjectOutputStream.java,
950 gnu/java/rmi/server/UnicastConnection.java,
951 gnu/java/rmi/server/UnicastConnectionManager.java,
952 gnu/java/rmi/server/UnicastRef.java,
953 gnu/java/rmi/server/UnicastRemoteCall.java,
954 gnu/java/rmi/server/UnicastRemoteStub.java,
955 gnu/java/rmi/server/UnicastServer.java,
956 gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
957 Kaffe. Relabelled classes to fit into Classpath tree.
958 * Makefile.in: Rebuilt.
959 * Makefile.am (rmi_java_source_files): New macro.
960 (ordinary_java_source_files): Reference it.
961 (bin_PROGRAMS): Added rmic and rmiregistry.
962 (rmic_SOURCES): New macro.
963 (EXTRA_rmic_SOURCES): Likewise.
964 (rmic_LDFLAGS): Likewise.
965 (rmic_LINK): Likewise.
966 (rmic_LDADD): Likewise.
967 (rmic_DEPENDENCIES): Likewise.
968 (rmiregistry_SOURCES): New macro.
969 (EXTRA_rmiregistry_SOURCES): Likewise.
970 (rmiregistry_LDFLAGS): Likewise.
971 (rmiregistry_LINK): Likewise.
972 (rmiregistry_LDADD): Likewise.
973 (rmiregistry_DEPENDENCIES): Likewise.
975 2001-08-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
977 * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
979 * Makefile.am: New friends for java/lang/Thread.h.
980 * prims.cc (runFirst): Removed.
981 (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
982 (_Jv_RunMain): Now takes either a klass or class name parameter.
983 Create a gnu.gcj.runtime.FirstThread and attach the native thread
984 to that, then run it using _Jv_ThreadRun. Remove special handling of
985 jar files, instead pass is_jar parameter through to FirstThread.
986 * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
987 of _Jv_AttachCurrentThread.
988 * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
989 (run): New method. Take care of looking up main class manifest
990 attribute and calling forName if neccessary. Then call call_main.
991 (call_main): New native method.
992 * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
993 relocated from prims.cc. Look up and call main method.
994 * java/lang/Thread.java (run_): Removed.
995 * java/lang/natThread.cc (run_): Renamed to...
996 (_Jv_ThreadRun): this. JVMPI notification code moved to ...
997 (_Jv_NotifyThreadStart): here. New function.
998 (countStackFrames, destroy, resume, suspend, stop): Throw
999 UnsupportedOperationExceptions rather than JvFail'ing.
1000 (_Jv_AttachCurrentThread): New variant takes a Thread argument.
1001 Existing version wraps new variant.
1004 2001-08-23 Tom Tromey <tromey@redhat.com>
1006 * java/lang/reflect/Field.java (toString): Use
1007 Method.appendClassName.
1008 * java/lang/reflect/Constructor.java (toString): Use
1009 Method.appendClassName.
1010 * java/lang/reflect/Method.java: Reindented.
1011 (appendClassName): New method.
1013 * defineclass.cc (handleMethod ): Initialize `throws' field of
1015 (read_one_method_attribute): Handle Exceptions attribute.
1016 * java/lang/reflect/natMethod.cc (ClassClass): Removed.
1017 (ObjectClass): Removed.
1018 (getType): Compute `exception_types'.
1019 * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
1021 2001-08-21 Anthony Green <green@redhat.com>
1023 * java/lang/natClassLoader.cc (findClass): Search for
1024 lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
1026 2001-08-21 Jeff Sturm <jsturm@one-point.com>
1028 * java/util/IdentityHashMap.java (get): Fix off-by-one error.
1031 2001-08-20 Tom Tromey <tromey@redhat.com>
1033 * java/awt/GridBagConstraints.java: Removed comment.
1035 * jni.cc (nathash, nathash_count, nathash_size): New globals.
1036 (DELETED_ENTRY): New define.
1037 (hash): New function.
1038 (nathash_find_slot): Likewise.
1039 (natrehash): Likewise.
1040 (nathash_add): Likewise.
1041 (_Jv_JNI_RegisterNatives): No longer interpreter-specific. Use
1043 (nathash_find): New function.
1044 (_Jv_LookupJNIMethod): Use it. Synchronize body.
1045 (call): Synchronize around assignment.
1047 2001-08-17 Jeff Sturm <jsturm@one-point.com>
1049 * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
1050 starting from zero offset.
1052 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1054 * boehm.cc: Include gc_local_alloc.h if appropriate.
1055 (GC_GENERIC_MALLOC): Don't define.
1056 (MAYBE_MARK): Redefine for GC 6.0.
1057 (_Jv_MarkObj): Mark class differently.
1058 (_Jv_AllocArray): Use GC_generic_malloc.
1060 2001-08-17 Mark J Roberts <mjr@anarcast.net>
1062 * java/math/BigInteger.java (randBytes): New method.
1063 (BigInteger(int,Random)): Use randBytes.
1065 2001-08-17 Tom Tromey <tromey@redhat.com>
1067 * gnu/gcj/convert/IOConverter.java: Add `646' alias.
1069 2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
1071 * BigInteger.java: fix right shifts by nonzero multiples of 32.
1073 2001-08-15 Tom Tromey <tromey@redhat.com>
1075 * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
1076 (local_ref_table, global_ref_table): Now IdentityHashMap.
1077 (_Jv_JNI_Init): Updated for new types.
1078 (mark_for_gc): Likewise.
1079 (unmark_for_gc): Likewise.
1080 * gcj/javaprims.h: Rebuilt class list.
1081 * Makefile.in: Rebuilt.
1082 * Makefile.am (core_java_source_files): Added new file.
1083 * java/util/IdentityHashMap.java: New file.
1085 * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
1088 2001-08-09 Tom Tromey <tromey@redhat.com>
1090 * java/awt/image/SampleModel.java (getPixel): Set correct array
1091 element. From Chris Meyer.
1093 2001-08-10 Loren J. Rittle <ljrittle@acm.org>
1095 * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
1096 * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
1098 2001-08-06 Tom Tromey <tromey@redhat.com>
1100 * java/io/InputStreamReader.java (refill): Only call refill on
1101 BufferedInputStream when appropriate constraints are met.
1103 2001-08-05 Tom Tromey <tromey@redhat.com>
1105 * java/io/StringWriter.java: Merged with Classpath.
1106 * java/io/InputStream.java: Merged with Classpath.
1107 * java/io/OutputStream.java: Merged with Classpath.
1108 * java/io/PushbackInputStream.java: Merged with Classpath.
1109 * java/io/CharArrayReader.java: Merged with Classpath.
1110 * java/io/CharArrayWriter.java: Merged with Classpath.
1112 2001-08-02 Tom Tromey <tromey@redhat.com>
1114 * prims.cc (JNI_OnLoad): Don't declare.
1115 (_JNI_OnLoad): Don't define.
1116 (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
1118 2001-08-02 Tom Tromey <tromey@redhat.com>
1120 * java/io/RandomAccessFile.java (seek): Let seek go past end of
1122 (skipBytes): Don't fail if seeking past end of file.
1123 * java/io/FileInputStream.java (skip): Don't fail if seeking past
1125 * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
1127 * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
1129 * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
1131 * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
1133 2001-08-02 Martin Kahlert <martin.kahlert@infineon.com>
1135 * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
1136 to initialize global_ref_table/local_ref_table.
1138 2001-08-02 Tom Tromey <tromey@redhat.com>
1140 * configure: Rebuilt.
1141 * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin. From
1144 2001-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1146 * include/posix.h (_POSIX_PII_SOCKET): Define.
1147 * configure.in (HAVE_SOCKLEN_T): Define.
1148 * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
1150 (_JV_accept): New function, avoids Tru64 UNIX accept macro.
1151 (java::net::PlainSocketImpl::accept): Use it.
1152 Fixes PRs libgcj/3694, libgcj/3696.
1154 * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
1155 * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
1156 * configure, include/config.h.in: Regenerate.
1157 * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
1158 (mcastGrp): Likewise.
1159 (java::net::PlainDatagramSocketImpl::setOption): Guard against
1160 missing IPV6_MULTICAST_IF.
1161 Fixes PR libgcj/3694.
1163 2001-08-01 Jeff Sturm <jsturm@one-point.com>
1165 * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
1167 2001-07-30 Christian Iseli <chris@ludwig-alpha.unil.ch>
1169 * Makefile.in: Rebuilt.
1170 * Makefile.am (GCJLINK): Added --tag=GCJ.
1171 (LIBLINK): Likewise.
1173 2001-07-30 Tom Tromey <tromey@redhat.com>
1175 * java/util/Date.java: Re-merged with Classpath.
1177 2001-07-30 Jeff Sturm <jsturm@one-point.com>
1179 * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
1180 (_Jv_bind): New static function.
1181 (bind): Use _Jv_bind.
1182 * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
1183 (_Jv_bind, _Jv_connect): New static functions.
1184 (bind): Use _Jv_bind.
1185 (connect): Use _Jv_connect.
1187 2001-07-30 Tom Tromey <tromey@redhat.com>
1188 Corey Minyard <minyard@acm.org>
1190 * gnu/gcj/convert/natIconv.cc (done): New methods.
1191 * gnu/gcj/convert/Output_iconv.java (done): New method.
1192 * gnu/gcj/convert/Input_iconv.java (done): New method.
1193 * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
1195 (getDefaultEncodingClass): Removed.
1196 (getDefaultEncoder): Use getEncoder.
1198 (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
1200 * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
1202 (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
1204 (getDefaultDecodingClass): Removed.
1205 (getDefaultDecoder): Use getDecoder.
1206 (getDecoder): Look up decoder in cache.
1208 * java/lang/natString.cc (init): Call `done' on converter.
1209 (getBytes): Likewise.
1211 2001-07-30 Tom Tromey <tromey@redhat.com>
1213 * java/lang/Integer.java: Merged with Classpath.
1215 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1217 * java/util/GregorianCalendar.java (GregorianCalendar): Call
1218 setTimeInMillis() to set the default/current time.
1220 2001-07-29 Mark Wielaard <mark@klomp.org>
1222 * HACKING: add description on updating namespace
1224 2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1226 * java/util/Calendar.java (set): Never recompute fields here. They
1227 will already be set if someone set time explicitly, and it can cause
1228 problems to do so. Don't invalidate AM_PM setting if HOUR is set.
1229 * java/util/GregorianCalendar.java (computeTime): Don't ignore an
1230 HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
1232 * java/text/SimpleDateFormat.java (defaultCentury): New field.
1233 (readObject): Call set2DigitYearStart if appropriate so that
1234 defaultCentury is calculated.
1235 (SimpleDateFormat): Don't bother clearing calendar here. Call
1236 computeCenturyStart().
1237 (set2DigitYearStart): Calculate and set defaultCentury.
1238 (format): Don't clone the calendar. Use "calendar" not "theCalendar"
1240 (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
1241 2 numeric digits, use the 80-20 heuristic to parse the value into a
1242 default century based on defaultCenturyStart.
1243 (computeCenturyStart): Rewritten. Call set2DigitYearStart().
1245 2001-07-25 Tom Tromey <tromey@redhat.com>
1247 * Makefile.in: Rebuilt.
1248 * Makefile.am (libgcj.jar): Correctly fail when bytecode
1251 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1253 * prims.cc (_JNI_OnLoad): New function.
1254 (JNI_OnLoad): Use it.
1255 (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
1257 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1259 * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
1260 Makefile.in: Regenerate.
1262 2001-07-24 Tom Tromey <tromey@redhat.com>
1264 * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
1267 2001-07-23 Tom Tromey <tromey@redhat.com>
1269 * gcj/javaprims.h: Rebuilt class list.
1270 * Makefile.in: Rebuilt.
1271 * Makefile.am (core_java_source_files): Added VMClassLoader.
1272 * java/lang/VMClassLoader.java: New file.
1273 * java/lang/Boolean.java: Merged with Classpath.
1274 * java/lang/Byte.java: Merged with Classpath.
1275 * java/lang/Integer.java: Merged with Classpath.
1276 * java/lang/Long.java: Merged with Classpath.
1277 * java/lang/Number.java: Merged with Classpath.
1278 * java/lang/Short.java: Merged with Classpath.
1280 2001-07-22 Jeff Sturm <jsturm@one-point.com>
1282 * configure.host: Enable hash synchronization for alpha*-*.
1283 * include/posix-threads.h (_Jv_ThreadSelf): Added inline
1285 * java/lang/natObject.cc (compare_and_swap, release_set,
1286 compare_and_swap_release): Added inline functions for alpha.
1288 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1290 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
1291 2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
1292 back to old RFC 2133 variants if missing.
1294 2001-07-18 Tom Tromey <tromey@redhat.com>
1296 * java/io/natFileWin32.cc (_access): Renamed.
1298 * java/io/natFile.cc (_access): Renamed.
1300 * java/io/File.java (access, stat): Add leading `_' to name.
1301 Updated all callers.
1303 2001-07-18 Tom Tromey <tromey@redhat.com>
1306 * libgcj.spec.in (*lib): Added LIBICONV.
1307 * configure: Rebuilt.
1308 * configure.in: Call AM_ICONV. Don't check for iconv function.
1309 Add parameters to JV_HASH_SYNCHRONIZATION define.
1310 * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
1312 2001-07-17 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1314 * java/util/LinkedList.java (clone): Clear the copy list with clear(),
1315 not by setting its size field.
1317 2001-07-13 Alexandre Petit-Bianco <apbianco@redhat.com>
1319 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
1322 2001-07-12 Tom Tromey <tromey@redhat.com>
1323 David Brownell <david-b@pacbell.net>
1325 Fix for PR libgcj/3426:
1326 * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
1328 (read): Throw exception if character conversion fails.
1329 * java/io/BufferedInputStream.java (refill): Now package-private.
1330 * java/io/InputStreamReader.java (ready): Simplified.
1331 (refill): New method.
1334 2001-07-12 Tom Tromey <tromey@redhat.com>
1336 Report from Henner Zeller:
1337 * java/io/FileOutputStream.java (FileOutputStream): Throw
1338 FileNotFoundException, not IOException.
1340 2001-07-10 Anthony Green <green@redhat.com>
1342 * Makefile.in: Rebuilt.
1343 * Makefile.am: Add new files.
1344 * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
1345 org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
1346 org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
1347 org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
1348 org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
1349 org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
1350 org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
1351 org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
1352 org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
1353 org/w3c/dom/ranges/DocumentRange.java,
1354 org/w3c/dom/ranges/Range.java,
1355 org/w3c/dom/ranges/RangeException.java,
1356 org/w3c/dom/traversal/DocumentTraversal.java,
1357 org/w3c/dom/traversal/NodeFilter.java,
1358 org/w3c/dom/traversal/NodeIterator.java,
1359 org/w3c/dom/traversal/TreeWalker.java,
1360 org/xml/sax/ext/DeclHandler.java,
1361 org/xml/sax/ext/LexicalHandler.java,
1362 org/xml/sax/helpers/AttributeListImpl.java,
1363 org/xml/sax/helpers/AttributesImpl.java,
1364 org/xml/sax/helpers/DefaultHandler.java,
1365 org/xml/sax/helpers/LocatorImpl.java,
1366 org/xml/sax/helpers/NamespaceSupport.java,
1367 org/xml/sax/helpers/ParserAdapter.java,
1368 org/xml/sax/helpers/ParserFactory.java,
1369 org/xml/sax/helpers/XMLFilterImpl.java,
1370 org/xml/sax/helpers/XMLReaderAdapter.java,
1371 org/xml/sax/helpers/XMLReaderFactory.java,
1372 org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
1373 org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
1374 org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
1375 org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
1376 org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
1377 org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
1378 org/xml/sax/SAXNotRecognizedException.java,
1379 org/xml/sax/SAXNotSupportedException.java,
1380 org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
1381 org/xml/sax/XMLReader.java: New files.
1383 2001-07-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1385 * Makefile.am: Added `java/lang/ThreadLocal.java'.
1386 * Makefile.in: Regenerate.
1387 * java/lang/ThreadLocal.java: Initial import.
1389 2001-07-07 Jeff Sturm <jsturm@one-point.com>
1391 * Makefile.am (libgcj.jar): Don't recursively make
1392 built_java_source_files. Avoid long command lines.
1393 Don't change to $(srcdir) to invoke javac.
1394 (libgcj.la, libgcjx.la); Avoid long command lines.
1395 ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
1396 * Makefile.in: Rebuilt.
1398 2001-07-06 Andrew Haley <aph@cambridge.redhat.com>
1400 * include/i386-signal.h: Don't do anything with unsigned divide
1401 overflow except throw an exception.
1403 2001-07-05 Tom Tromey <tromey@redhat.com>
1406 * java/lang/Class.h (Class(void)): Now private. Removed
1407 implementation. From dmorsberger@sensysdl.com.
1409 2001-07-02 Tom Tromey <tromey@redhat.com>
1411 Fix for PR bootstrap/3281:
1412 * aclocal.m4, configure: Rebuilt.
1413 * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
1414 Correctly compute libgcj_basedir.
1415 (mkinstalldirs): Define and subst.
1417 2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
1420 * java/io/LineNumberReader.java (reset): Pass correct arguments to
1423 2001-06-27 Tom Tromey <tromey@redhat.com>
1425 * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
1428 2001-06-25 Tom Tromey <tromey@redhat.com>
1430 * scripts/encodings.pl: Generate lower-case names. Updated URL
1431 for `character-sets' file.
1432 * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
1434 Rebuilt list of aliases.
1436 2001-06-25 Tom Tromey <tromey@redhat.com>
1438 * java/io/natFileDescriptorPosix.cc (open): Change error message
1439 formatting. From David Brownell.
1441 2001-06-21 Tom Tromey <tromey@redhat.com>
1443 * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
1446 2001-06-19 Mark J. Roberts <mjr@statesmean.com>
1448 * java/math/BigInteger.java (byteArrayToIntArray): Don't include
1449 extraneous/malformed sign word.
1451 2001-06-15 Tom Tromey <tromey@redhat.com>
1453 * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
1455 2001-06-15 Tom Tromey <tromey@redhat.com>
1457 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
1458 NULL if no library on the list has the symbol.
1459 (init): Call add_library on the program itself.
1460 * prims.cc (JvRunMain): Initialize Runtime before searching for
1462 (_Jv_RunMain): Likewise.
1464 2001-06-15 Tom Tromey <tromey@redhat.com>
1466 * jni.cc (ClassClass): Removed; updated all users.
1467 (ObjectClass): Likewise.
1468 (ThrowableClass): Likewise.
1469 (MethodClass): Likewise.
1470 (ThreadGroupClass): Likewise.
1471 (local_ref_table): Renamed from `ref_table'.
1472 (global_ref_table): New global.
1473 (_Jv_JNI_Init): Initialize both ref tables.
1474 (mark_for_gc): Added `ref_table' parameter.
1475 (unmark_for_gc): Likewise. Also, fail if we unreferenced too many
1477 (_Jv_JNI_NewGlobalRef): Updated for new mark function.
1478 (_Jv_JNI_DeleteGlobalRef): Likewise.
1479 (_Jv_JNI_DeleteLocalRef): Likewise.
1480 (_Jv_JNI_NewLocalRef): Likewise.
1481 (_Jv_JNI_PopLocalFrame): Likewise.
1482 (_Jv_JNI_GetStringChars): Likewise.
1483 (_Jv_JNI_ReleaseStringChars): Likewise.
1484 (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
1485 (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
1487 2001-06-14 Tom Tromey <tromey@redhat.com>
1489 Fix for PR libgcj/3144:
1490 * java/util/Date.java: Merged with Classpath.
1492 2001-06-12 Tom Tromey <tromey@redhat.com>
1494 * aclocal.m4, configure: Rebuilt.
1495 * acinclude.m4: Find configure.host in srcdir.
1497 2001-06-07 Tom Tromey <tromey@redhat.com>
1499 Fix for PR libgcj/3059:
1500 * java/lang/natSystem.cc (init_properties): Define `java.home'.
1501 * Makefile.in: Rebuilt.
1502 * Makefile.am (AM_CXXFLAGS): Define PREFIX.
1504 2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
1506 * exception.cc (cstdlib): Replaces stdlib.h.
1507 (_Jv_Throw): Use std::abort().
1508 (PERSONALITY_FUNCTION): Likewise.
1510 2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
1512 * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
1513 nothing, as in autoconf 2.50.
1514 * aclocal.m4, configure: Rebuilt.
1516 2001-06-08 Tom Tromey <tromey@redhat.com>
1518 * configure: Rebuilt.
1519 * configure.in: Compute new aux dir using `pwd'.
1521 2001-06-07 Tom Tromey <tromey@redhat.com>
1523 For PR bootstrap/3075:
1524 * configure, aclocal.m4, Makefile.am: Rebuilt.
1525 * configure.in: Pass `--with-auxdir' to subdir configure. Don't
1526 call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h
1527 relative to libgcj_basedir.
1528 * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
1529 AC_CANONICAL_SYSTEM here.
1530 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
1532 ($(extra_headers)): New target.
1534 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com>
1535 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1537 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
1538 table index is within allowed bounds. Ensure that we dont try to access
1539 class itable at a negative offset. Avoid an ancestor table lookup if
1540 source is a primitive type class.
1541 (isInstance): Remove redundant isPrimitive() check.
1543 2001-06-04 Tom Tromey <tromey@redhat.com>
1545 * java/security/PublicKey.java: Extend Key.
1546 * java/security/PrivateKey.java: Extend Key.
1548 2001-06-02 Anthony Green <green@redhat.com>
1550 * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
1551 alternate when USE_LTDL not defined.
1553 2001-06-02 Anthony Green <green@redhat.com>
1555 * configure: Rebuild.
1556 * configure.in: Remove data_start hack.
1557 * libgcj.spec.in: Ditto.
1558 * Makefile.in: Rebuild.
1559 * Makefile.am: Ditto.
1560 * libgcjdata.c: Remove.
1562 2001-06-02 Anthony Green <green@redhat.com>
1564 * configure: Rebuild.
1565 * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
1566 --without-libffi option. Tweak --disable-java-net processing.
1567 * Makefile.in: Rebuild.
1568 * Makefile.am (LIBFFIINCS, LIBFFI): Use.
1569 * include/config.h.in: Rebuild.
1570 * acconfig.h (USE_LIBFFI): Define.
1571 * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
1573 2001-06-02 Anthony Green <green@redhat.com>
1575 * configure: Rebuilt.
1576 * configure.in: Test for sigaction on native builds.
1577 * prims.cc: Check HAVE_SIGACTION.
1578 * include/config.h.in: Rebuilt.
1580 2001-05-31 Jeff Sturm <jsturm@one-point.com>
1582 * natFile.cc (get_entry): Removed functions.
1583 (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
1584 Allocate enough storage for d_name if using readdir_r.
1586 2001-05-31 Tom Tromey <tromey@redhat.com>
1588 * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
1590 (write): Loop until write completes. From Corey Minyard.
1592 2001-05-29 Laurent Guerby <guerby@acm.org>
1594 * java/awt/geom/Rectangle2D.java: fix doc typo.
1596 2001-05-31 Tom Tromey <tromey@redhat.com>
1598 * java/sql/DriverManager.java (getDrivers): Handle case where
1599 driver's class loader is null. From Corey Minyard.
1601 2001-05-29 Tom Tromey <tromey@redhat.com>
1603 * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
1605 * configure: Rebuilt.
1606 * configure.in: Only add multilib support code if we just rebuilt
1609 2001-05-29 Andrew Haley <aph@redhat.com>
1611 * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
1612 pointer: the dwarf unwinder in libgcc will do everything that's
1614 (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any
1615 more than we absolutely need to.
1616 * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
1617 * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
1619 (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
1621 * configure: Rebuilt.
1622 * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
1624 (SIGNAL_HANDLER): Use siginfo style handler.
1625 (INIT_SEGV): Likewise.
1626 (INIT_FPE): Likewise.
1627 * include/ppc-signal.h: Delete whole file.
1629 2001-05-24 Tom Tromey <tromey@redhat.com>
1631 * java/lang/natString.cc (init): Throw
1632 ArrayIndexOutOfBoundsException.
1633 (getChars): Likewise.
1634 (getBytes): Likewise.
1635 (valueOf): Likewise.
1637 * configure.in: Only allow hash synchronization when POSIX threads
1639 * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
1640 of sync info object.
1642 2001-05-23 Tom Tromey <tromey@redhat.com>
1644 * Makefile.in: Rebuilt.
1645 * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
1647 Revert patch of 2001-05-21:
1648 * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
1649 (libgcj_la_LIBADD): Likewise.
1650 (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
1651 (libgcjx_la_LIBADD): Likewise.
1653 * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
1654 * gcj/Makefile.in: Rebuilt.
1655 * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
1656 * gcj/javaprims.h: Include gcj/libgcj-config.h.
1657 * gcj/libgcj-config.h.in: New file.
1658 * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
1659 * configure: Rebuilt.
1660 * configure.in: Enable hash synchronization by default on some
1662 (HASH_SYNC_SPEC): New subst.
1663 (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
1664 Correctly use `test -z' instead of `test -n' in a couple places.
1665 (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
1667 * configure.host (enable_java_net_default): Initialize.
1668 (enable_hash_synchronization_default): New variable.
1670 2001-05-23 Hans Boehm <Hans_Boehm@hp.com>
1672 * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
1673 synchronization in use.
1674 (_Jv_MarkArray): Likewise.
1675 (_Jv_AllocBytes): Don't check return result.
1676 (handle_out_of_memory): New function.
1677 (_Jv_InitGC): Set GC_oom_fn.
1678 (trace_one_vtable): New global.
1679 (_Jv_AllocTraceOne): New function.
1680 * configure.in: Added --enable-hash-synchronization.
1681 * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
1682 java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
1683 * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
1684 (_Jv_AllocArray): Likewise.
1685 (_Jv_AllocBytes): Likewise.
1686 (_Jv_AllocPtrFreeObject): New function.
1687 (_Jv_AllocTraceOne): Likewise.
1688 * posix-threads.cc (_Jv_ThreadRegister): Handle slow
1690 (self_cache): New global.
1691 (_Jv_ThreadSelf_out_of_line): New function.
1692 * prims.cc (_Jv_AllocBytesChecked): Removed.
1693 (_Jv_ThrowNoMemory): New function.
1694 (_Jv_AllocObject): Don't check for null return from allocator.
1695 (_Jv_NewObjectArray): Likewise.
1696 (_Jv_AllocPtrFreeObject): New function.
1697 (_Jv_NewPrimArray): Allocate pointer-free object if possible.
1698 * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
1699 (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
1700 * include/boehm-gc.h (_Jv_AllocObj): Define.
1701 (_Jv_AllocPtrFreeObj): Define.
1702 * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
1703 (_Jv_ThrowNoMemory): Declare.
1704 (_Jv_AllocTraceOne): Declare.
1705 (_Jv_AllocBytesChecked): Removed.
1706 * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
1707 _Jv_MutexUnlock): Handle LOCK_DEBUG.
1708 (_Jv_ThreadSelf): Handle case where system pthread_self() is
1710 * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
1712 * java/lang/Object.h (sync_info): Conditional upon presence of
1713 hash synchronization.
1714 * java/lang/natObject.cc: Much new code to handle thin locks and
1715 hash synchronization.
1716 * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
1719 2001-05-23 Joseph S. Myers <jsm28@cam.ac.uk>
1721 * gij.cc (version): Update copyright year.
1723 2001-05-22 Anthony Green <green@redhat.com>
1725 * configure.in: Tweak canadian cross test, and don't redefine GCJ
1728 2001-05-21 Per Bothner <per@bothner.com>
1730 Implement invocation interface; don't create new thread for main.
1731 * java/lang/Thread.java (gen_name): Make native.
1732 (<init>(Thread,THreadGroup,Runnable,String)): New private
1733 constructor, used by other constructors, and _Jv_AttachCurrentThread.
1734 * java/lang/natThread.cc (gen_name): New implementation.
1735 (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread): New.
1736 * prims.cc (main_init): Removed, replaced by _Jv_CreateJavaVM.
1737 (_Jv_CreateJavaVM): New runtime initialization procedure.
1738 (runFirst): New proecdure - mostly code from old FirstThread::run.
1739 (JvRunMain, _Jv_RunMain): Re-write to use new invocation code.
1740 * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1741 JvDetachCurrentThread): New inline wrappers.
1742 * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1743 _Jv_DetachCurrentThread): New declarations.
1744 * gnu/gcj/runtime/FirstThread.java: Gutted. Now contains only ...
1745 (getMain): new static method.
1746 * gnu/gcj/runtime/natFirstThread.cc: Removed; run method replaced
1747 by runFirst in prims.cc.
1748 (java/lang/Thread.h): Update for new invocation interface.
1749 * include/posix-threads.h (_Jv_ThreadRegister,
1750 _Jv_ThreadUnRegister): New declarations.
1751 * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1752 (really_start): Use new _Jv_ThreadRegister.
1753 * include/no-threads.h (_Jv_ThreadInitData): No longer inline.
1754 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New empty inlines.
1755 * no-threads.cc (_Jv_ThreadInitData): Set _Jv_OnlyThread here.
1756 Complain of called when _Jv_OnlyThread already set.
1757 (_Jv_ThreadStart): Always JvFail.
1758 * include/win32-threads.h (_Jv_Thread_t): New thread_obj field.
1759 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New declarations.
1760 * win32-threads.cc (struct starter): Remove objet field -
1761 we use _Jv_Thread_t's new thread_obj field instead.
1762 (_Jv_ThreadInitData): Set _Jv_Thread_t's thread_obj field.
1763 (_Jv_ThreadRegister, _Jv_ThreadUnRegister): New.
1764 (really_start): Use new _Jv_ThreadRegister.
1765 * jni.cc (_Jv_JNI_AttachCurrentThread): Use _Jv_AttachCurrentThread.
1766 (_Jv_JNI_DetachCurrentThread): Use _Jv_DetachCurrentThread.
1767 * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1768 Removed - no longer needed with new invocation interface.
1769 * Makefile.am: Update for removed/added files.
1771 2001-05-21 Per Bothner <per@bothner.com>
1773 * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
1774 (libgcj_la_LIBADD): Likewise.
1775 (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files).
1777 2001-05-21 Per Bothner <per@bothner.com>
1779 * gcj/javaprims.h (_Jv_FormatInt): New declaration.
1780 * java/lang/natString.cc (_JvFormatInt): New primitive, with logic
1781 taken from old Integer.toString code.
1782 (Integer::valueOf): Use _Jv_FormatInt.
1783 * java/lang/Integer.java (toString): Just use call String.valueOf.
1784 * java/lang/Long.java (toString): Fix typo in comment.
1785 * java/lang/String.java (valueOf(int)): Make native.
1786 * java/lang/StringBuffer.java (append(int)): Make native.
1787 * java/lang/natStringBuffer.cc: New file, for append(jint).
1788 * Makefile.am (nat_source_files): Add java/lang/natStringBuffer.cc.
1790 2001-05-21 Tom Tromey <tromey@redhat.com>
1792 * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1794 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>
1796 * include/dwarf2-signal.h: New file.
1797 * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1798 * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1799 * configure: Rebuilt.
1801 2001-05-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1803 * configure.in: Update boehm-gc include dir for new GC version.
1804 * configure: Rebuilt.
1805 * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1807 * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1808 GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1809 * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1812 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
1814 * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1815 (_Jv_MutexInit): Likewise.
1817 2001-05-18 Tom Tromey <tromey@redhat.com>
1819 * Makefile.in: Rebuilt.
1820 * Makefile.am (awt_java_source_files): Added Polygon.java.
1822 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1824 * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1825 * gcj/javaprims.h: ... here.
1826 * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1828 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com>
1830 * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
1831 with length of ioffset table.
1832 (_Jv_IsAssignableFrom): Likewise.
1834 2001-05-17 Per Bothner <per@bothner.com>
1836 * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".
1838 2001-05-16 Tom Tromey <tromey@redhat.com>
1840 * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1843 2001-05-15 Tom Tromey <tromey@redhat.com>
1845 * java/util/GregorianCalendar.java (computeTime): Only call
1848 2001-05-14 Tom Tromey <tromey@redhat.com>
1850 * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1851 ZONE_OFFSET just before computing the time.
1853 2001-05-12 Zack Weinberg <zackw@stanford.edu>
1855 * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1856 * Makefile.in: Regenerate (by hand).
1857 * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1858 * doc/cni.sgml: Document #pragma GCC java_exceptions.
1860 2001-05-11 Richard Henderson <rth@redhat.com>
1862 * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1863 * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1865 2001-05-11 Richard Henderson <rth@redhat.com>
1867 * exception.cc: Include unwind-pe.h. Remove all pointer
1870 2001-05-10 Tom Tromey <tromey@redhat.com>
1872 * Makefile.in: Rebuilt.
1873 * Makefile.am (awt_java_source_files): Added Polygon.java.
1874 * java/awt/Polygon.java: New file.
1876 * java/awt/geom/AffineTransform.java
1877 (setToRotation(double,double,double)): New method.
1878 (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1879 (setToShear): Likewise.
1881 2001-05-10 Tom Tromey <tromey@redhat.com>
1883 * java/util/GregorianCalendar.java: Imported from Classpath.
1884 * gnu/java/locale/LocaleInformation_nl.java: New file from
1886 * gnu/java/locale/LocaleInformation_en.java: Likewise.
1887 * gnu/java/locale/LocaleInformation_de.java: Likewise.
1888 * gnu/java/locale/LocaleInformation.java: Likewise.
1889 * natGregorianCalendar.cc: Removed.
1890 * Makefile.in: Rebuilt.
1891 * Makefile.am (nat_source_files): Removed
1892 natGregorianCalendar.cc.
1894 2001-05-10 Tom Tromey <tromey@redhat.com>
1896 * java/text/SimpleDateFormat.java (computeCenturyStart): New
1898 (defaultCenturyStart): Use it.
1899 (readObject): Likewise.
1900 (SimpleDateFormat): Clear the calendar. Set the grouping on the
1902 (parse): Copy the calendar before modifying it. Correctly handle
1905 * java/util/Calendar.java (clear): Set field value(s) to 0.
1907 2001-05-10 Jeff Sturm <jsturm@one-point.com>
1909 * Calendar.java (get): Clear areFieldsSet if requested field
1911 (set): Unset fields that depend on new value.
1913 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1915 * java/lang/Class.h (_Jv_Self): New union type.
1916 (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1917 Jeff Sturm and Fergus Henderson.
1919 2001-05-06 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1921 * java/lang/ClassLoader.java: Remove dead code fragment.
1923 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com>
1925 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1927 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1929 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>
1931 * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1932 * configure.host (EXCEPTIONSPEC): New.
1933 * configure.in (EXCEPTIONSPEC): New.
1934 * configure: Rebuilt.
1936 2001-05-02 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1938 * doc/*.texi: Remove generated documentation.
1940 2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1942 * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1943 (performDelete): Fix #endif placement.
1945 2001-04-27 Zack Weinberg <zackw@stanford.edu>
1947 * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1948 * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1949 (_Jv_ThreadDestroyData): Use _Jv_Free.
1950 * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1953 2001-04-27 Tom Tromey <tromey@redhat.com>
1955 * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1957 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1959 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com>
1961 * include/jni.h (struct JNINativeInterface): Fixed types in
1962 Get/Set*ArrayRegion declarations.
1963 (class _Jv_JNIEnv): Likewise.
1965 2001-04-26 Alexandre Oliva <aoliva@redhat.com>
1967 * configure.in: Obtain THREADS with `gcc -v'.
1968 * configure: Rebuilt.
1970 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1973 * java/io/ObjectStreamClass.java (setClass): Calculate
1974 serialVersionUID for local class and compare it against the UID
1975 from the Object Stream. Throw InvalidClassException upon mismatch.
1976 (setUID): Renamed to...
1977 (getClassUID): this. Return the calculated class UID rather than
1978 setting uid field directly.
1979 (getDefinedSUID): Removed.
1980 * java/io/ObjectInputStream.java (resolveClass): Use the
1981 three-argument Class.forName().
1982 * java/io/InvalidClassException (toString): Don't include classname in
1983 result if it is null.
1985 2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1987 * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1988 Wrap use of inet_pton in HAVE_INET6.
1990 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1992 java.security merge and ClassLoader compliance fixes.
1994 * java/lang/Class.h (Class): Include ProtectionDomain.h.
1995 New protectionDomain field.
1996 (forName): Add initialize parameter. Fixes declaration to comply with
1998 * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1999 variant. Honour "initialize" flag.
2000 (getProtectionDomain0): New method.
2001 * java/lang/Class.java: Fix forName() declaration.
2002 (getPackage): New method based on Classpath implementation.
2003 (getProtectionDomain0): New native method decl.
2004 (getProtectionDomain): New method.
2005 * java/lang/ClassLoader.java (getParent): Now final.
2006 (definedPackages): New field.
2008 (defineClass): New variant with protectionDomain argument.
2009 (definePackage): New.
2011 (findSystemClass): Now final.
2012 (getSystemResourceAsStream): Remove redundant "final" modifier.
2013 (getSystemResource): Remove redundant "final" modifier.
2014 (getResources): Now final.
2015 (protectionDomainPermission): New static field.
2016 (unknownProtectionDomain): Ditto.
2017 (defaultProtectionDomain): Ditto.
2018 (getSystemClassLoader): Now non-native.
2019 * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
2020 arguments for Class.forName().
2021 * java/lang/Package.java: New file.
2022 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
2023 (instance): Static initialize singleton.
2024 (findClass): Override this, not findSystemClass.
2025 * java/lang/natClassLoader.cc (defineClass0): Set class's
2026 protectionDomain field as specified.
2027 (getSystemClassLoader): Removed.
2028 (findClass): Renamed from findSystemClass. Call the interpreter via
2029 URLClassLoader.findClass if loading class via dlopen fails.
2031 * java/security/*.java: java.security import/merge with Classpath.
2032 * java/security/acl/*.java: Likewise.
2033 * java/security/interfaces/*.java: Likewise.
2034 * java/security/spec/*.java: Likewise.
2035 * java/net/NetPermission.java: Likewise.
2036 * java/net/SocketPermission.java: Likewise.
2037 * gnu/java/security/provider/DefaultPolicy.java: Likewise.
2039 * Makefile.am: Add new classes.
2040 * Makefile.in: Rebuilt.
2041 * gcj/javaprims.h: CNI namespace rebuild.
2043 2001-04-24 Alexandre Oliva <aoliva@redhat.com>
2045 * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
2046 for libtool tests. Pre-create gnu/classpath/Configuration.java.
2047 * configure: Rebuilt.
2049 2001-04-21 Tom Tromey <tromey@redhat.com>
2051 * Makefile.in: Rebuilt.
2052 * Makefile.am (awt_java_source_files): Added Line2D.java.
2053 * java/awt/geom/Line2D.java: Wrote.
2055 * java/awt/Menu.java (addNotify): Wrote.
2057 * java/awt/PopupMenu.java (addNotify): Implemented.
2060 * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
2061 * java/awt/List.java (addNotify): Call super.addNotify.
2062 * java/awt/Label.java (addNotify): Call super.addNotify.
2063 * java/awt/FileDialog.java (addNotify): Call super.addNotify.
2064 * java/awt/Dialog.java (addNotify): Call super.addNotify.
2065 * java/awt/Choice.java (addNotify): Call super.addNotify.
2066 * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
2067 * java/awt/Checkbox.java (addNotify): Call super.addNotify.
2069 * java/awt/List.java (replaceItem): Notify peer.
2071 * java/awt/geom/Rectangle2D.java
2072 (Float.setRect(float,float,float,float)): New method.
2074 * java/awt/event/ContainerEvent.java (getContainer): Now returns
2077 * java/awt/RenderingHints.java (Key): Class now public.
2079 * java/awt/Rectangle.java (Rectangle): Now implements
2081 (getPathIterator): Removed.
2083 * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
2086 * java/awt/FileDialog.java: Wrote.
2088 * java/awt/EventQueue.java (isDispatchThread): Now public.
2089 (invokeLater): Likewise.
2091 * java/awt/Component.java (setCursor): Update peer.
2092 (getFontMetrics): Use peer.
2094 * java/awt/ComponentOrientation.java (ComponentOrientation): Class
2097 2001-04-20 Tom Tromey <tromey@redhat.com>
2099 * java/awt/List.java: Wrote.
2100 * java/awt/Dialog.java: Wrote.
2102 2001-04-20 Warren Levy <warrenl@redhat.com>
2104 * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
2105 * java/text/SimpleDateFormat.java
2106 (indexInArray): Removed private method.
2107 (processYear): Removed private method.
2108 (parseLenient): Removed private method.
2109 (parseLeadingZeros): Removed private method.
2110 (parseStrict): Removed private method.
2111 (expect): Added new private method.
2112 (parse): Reverted to pre-Classpath merge version with minor fixes.
2113 * java/util/natGregorianCalendar.cc (computeTime): Handle strict
2116 2001-04-12 Bryce McKinlay <bryce@albatross.co.nz>
2118 * java/io/File.java (normalizePath): New private method.
2119 (File (String)): Use normalizePath().
2120 (File (String, String)): Likewise.
2122 * Makefile.am (libffi_files): Removed.
2123 (libgcj.la): Link libffi as a convenience library instead of
2124 refering to its object files directly.
2125 * Makefile.in: Rebuilt.
2127 2001-04-08 Per Bothner <per@bothner.com>
2129 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
2130 Recalculate hash, since Utf8Const's hash is only 16 bits.
2132 * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order
2133 bits of hash to calculate step for chaining.
2135 * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash
2136 when 2/3 full, rather than 3/4 full.
2138 2001-04-06 Tom Tromey <tromey@redhat.com>
2140 * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
2141 (wrap_value<T*>): New specialization.
2142 (_Jv_JNI_PopLocalFrame): Update env->locals.
2144 2001-04-05 Tom Tromey <tromey@redhat.com>
2146 * libtool-version: Updated current.
2148 2001-04-04 Andreas Jaeger <aj@suse.de>
2150 * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2151 * gcj/Makefile.in: Rebuilt.
2152 * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2153 * Makefile.in: Rebuilt.
2154 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2155 * testsuite/Makefile.in: Rebuild.
2156 * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2157 * include/Makefile.in: Rebuild.
2159 2001-04-02 Zack Weinberg <zackw@stanford.edu>
2161 * testsuite/lib/libjava.exp: Correct typo: 'output from source
2162 compiled test', not 'execution from source compiled test'.
2163 Use UNTESTED, not XFAIL, for tests which are not run because
2164 they depend on a previous test which failed.
2166 2001-04-02 Richard Henderson <rth@redhat.com>
2168 * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
2169 the same tree as gcc.
2170 * configure: Rebuilt.
2172 * exception.cc (_Jv_Throw): Clarify commentary.
2174 2001-04-02 Marcus G. Daniels <mgd@swarm.org>
2176 * jni.cc (wrap_value<jclass>): New specialization.
2178 2001-04-02 Tom Tromey <tromey@redhat.com>
2180 * java/io/PrintStream.java (out): Removed field. Fixes PR
2182 (write): Call flush, not out.flush, per spec.
2183 (close): Flush output stream, per spec. Handle
2184 InterruptedIOException.
2185 (checkError): Likewise.
2186 (flush, print, write): Handle InterruptedIOException per spec.
2187 (PrintStream): Don't create BufferedOutputStream.
2188 (work_bytes): New field.
2189 (writeChars): Use work_bytes. Don't assume `out' is a
2190 BufferedOutputStream.
2192 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
2194 * java/text/MessageFormat.java (setLocale): Added missing `else'.
2197 2001-03-30 Tom Tromey <tromey@redhat.com>
2199 * jni.cc (add_char): Correctly encode non-ascii characters.
2200 (add_char): Define even when INTERPRETER not defined.
2201 (mangled_name): Likewise.
2202 (_Jv_GetJNIEnvNewFrame): Likewise.
2203 (_Jv_LookupJNIMethod): Likewise.
2205 2001-03-23 Kevin B Hendricks <khendricks@ivey.uwo.ca>
2207 * configure.host: Enable interpreter for PPC.
2209 2001-04-02 Bryce McKinlay <bryce@albatross.co.nz>
2211 * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
2212 to "file.separator", "path.separator", and "java.io.tmpdir" property
2214 * java/io/File.java: Likewise.
2215 * java/io/natFile.cc (init_native): Likewise.
2216 * java/io/natFileWin32.cc (init_native): Likewise.
2218 2001-04-01 Per Bothner <per@bothner.com>
2220 * java/lang/natString.cc (intern): If string's data does not point to
2221 this String, make a fresh String that does.
2223 * java/lang/natString.cc (unintern): Replace by static function.
2224 * java/lang/String.java (unintern): Remove method.
2226 2001-04-01 Per Bothner <per@bothner.com>
2228 * DeflaterOutputStream.java (deflate): Loop while def.needsInput.
2229 (finish): def.deflate needs to be called in a loop.
2230 (inbuf, inbufLength): New private fields.
2231 (write(int)): Use inbuf.
2232 (write(byte[],int,int): Check if pending output in inbuf.
2233 * ZipOutputStream.java: Don't use Deflater if stored.
2234 Use a Checksum object directly, not via a CheckedOutputStream.
2235 (uncompressed_size): New field,
2236 (closeEntry): Only write data_directory if needed.
2237 (write): If STORED, write directly.
2238 Always update crc, and uncompressed_size.
2239 (write_entry): Fix lots of protocol erors.
2241 2001-04-01 Bryce McKinlay <bryce@albatross.co.nz>
2243 1.3-Compliant Implementation of java.io.File.
2244 * java/lang/natSystem.cc (init_properties): Get "file.separator",
2245 "path.separator", and "java.io.tmpdir" from the File class, instead
2246 of setting them explicitly.
2247 * java/io/File.java: Do not canonicalize paths for security manager
2248 checks. Call init_native() from static initializer. Do not pass path
2249 argument to native methods. New native method declarations. Some
2250 security manager checks moved to checkWrite().
2251 (equals): Check file system case sensitivity and act appropriatly.
2252 (hashCode): Likewise.
2253 (isHidden): New method implemented.
2254 (performList): Changed prototype. Now takes a class argument specifying
2255 the class of the returned array: Strings or File objects. Also added
2256 FileFilter argument.
2257 (listFiles): New variants with "File" return type implemented.
2258 (createTempFile): Use createNewFile(). Use maxPathLen.
2259 (setReadOnly): New method implemented.
2260 (listRoots): Likewise.
2261 (compareTo): Likewise.
2262 (setLastModified): Likewise.
2263 (checkWrite): New method.
2265 * java/io/natFile.cc: Various functions no longer take canonical path
2267 (stat): Handle ISHIDDEN query.
2268 (isAbsolute): Remove WIN32 cruft.
2269 (performList): New arguments. Handle returning either File[] or String[]
2270 arrays. Check with FileFilter or FilenameFilter arguments as
2271 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2272 (performSetReadOnly): New method implemented.
2273 (performListRoots): Likewise.
2274 (performSetLastModified): Likewise.
2275 (performCreate): Likewise.
2276 (init_native): New initialization function.
2277 * java/io/natFileWin32.cc: Various functions no longer take canonical
2279 (stat): Add FIXME about ISHIDDEN query.
2280 (performList): New arguments. Handle returning either File[] or String[]
2281 arrays. Check with FileFilter or FilenameFilter arguments as
2282 appropriate. Use an ArrayList, not a Vector, for the temporary list.
2283 (performSetReadOnly): New. Stubbed.
2284 (performListRoots): Likewise.
2285 (performSetLastModified): Likewise.
2286 (performCreate): Likewise.
2287 (init_native) New initialization function.
2288 * configure.in: Check for utime() and chmod().
2289 * configure: Rebuilt.
2290 * include/config.h.in: Rebuilt.
2292 Resolves PR libgcj/1759.
2294 2001-03-28 Richard Henderson <rth@redhat.com>
2296 IA-64 ABI Exception Handling:
2297 * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
2298 (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
2299 Remove EXCEPTIONSPEC.
2300 * configure.host (libgcj_sjlj): Remove.
2301 * configure.in (EXCEPTIONSPEC): Remove.
2302 (enable-sjlj-exceptions): Detect if not specified.
2303 (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
2304 what header we're looking for.
2305 * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
2306 * Makefile.in, configure: Regenerate.
2307 * exception.cc: Don't declare libgcc2 stuff.
2308 (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
2309 (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
2310 (win32_get_restart_frame): Remove.
2311 (struct java_exception_header): New.
2312 (__gcj_exception_class): New.
2313 (get_exception_header_from_ue): New.
2314 (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
2315 (size_of_encoded_value, read_encoded_value): New.
2316 (read_uleb128, read_sleb128, parse_lsda_header): New.
2317 (get_ttype_entry, __gcj_personality_sj0): New.
2318 * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
2320 2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2322 * javax/naming/InitialContext.java (init): Fix typo.
2323 (composeName): Remove unnecessary semicolon.
2324 (addToEnvironment): Remove unnecessary semicolon.
2325 (addToEnvironment): Use put() instead of add().
2327 * javax/naming/InitialContext.java (InitialContext):
2329 (destroySubcontext): Method doesn't return a result.
2330 * javax/naming/Context.java: Import java.util.Hashtable.
2331 * javax/naming/Name.java: Import java.util.Enumeration.
2333 2001-03-27 Bryce McKinlay <bryce@albatross.co.nz>
2335 * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
2336 objects in subdirectories.
2337 * Makefile.in: Rebuilt.
2339 2001-03-25 Richard Henderson <rth@redhat.com>
2341 * exception.cc (java_eh_info): Make value type jthrowable.
2342 (_Jv_type_matcher): Remove now unneeded cast.
2343 (_Jv_Throw): Make argument type jthrowable. Munge name
2344 for SJLJ_EXCEPTIONS here ...
2345 * gcj/cni.h: ... not here.
2347 * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
2349 * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
2350 prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
2351 gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
2352 gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
2353 gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
2354 java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
2355 java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
2356 java/lang/natClass.cc, java/lang/natClassLoader.cc,
2357 java/lang/natDouble.cc, java/lang/natObject.cc,
2358 java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
2359 java/lang/natString.cc, java/lang/natSystem.cc,
2360 java/lang/natThread.cc, java/lang/reflect/natArray.cc,
2361 java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
2362 java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
2363 java/util/zip/natInflater.cc:
2364 Use throw, not JvThrow or _Jv_Throw.
2366 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz>
2368 * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
2369 paramater, bump it to 1.
2370 * java/util/Hashtable.java (Hashtable): Likewise.
2372 2001-03-23 Per Bothner <per@bothner.com>
2374 * java/lang/natDouble.cc (parseDouble): Cannot use errno to
2375 check for errors, since we don't want to throw exception on
2376 overflow/underflow. Instead, trim whitespace, and then check that
2377 _strtod_r uses up all the rest of the string.
2379 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
2380 ancestors array is invalid for interfaces, so do that *after*
2381 check that the target type is not an interface.
2383 2000-03-23 Jeff Sturm <jsturm@one-point.com>
2385 * prims.cc (_Jv_FindClassFromSignature): Check return of
2386 recursive call. Do not abort on invalid signature; return NULL
2389 2001-03-22 Tom Tromey <tromey@redhat.com>
2391 * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
2392 * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
2394 * include/jvm.h (_Jv_ResolveField): Declare.
2395 * include/java-interp.h (_Jv_ResolveField): Don't declare.
2396 * resolve.cc (_Jv_ResolveField): No longer conditional on
2399 2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
2401 Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
2402 for libtool hacking.
2403 * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
2404 to a temporary file, then invoke libtool with the -objectlist
2406 (libgcjx.la): Likewise.
2407 * Makefile.in: Rebuilt.
2409 2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
2411 * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
2413 2001-03-22 Marcus G. Daniels <mgd@swarm.org>
2415 * jni.cc (add_char): Handle `.' like `/'.
2417 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
2419 * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
2420 initialize if exception_types is null.
2421 * java/lang/reflect/Constructor.java: Likewise.
2422 * java/lang/reflect/natConstructor.cc (getType): Initialize
2423 exception_types to an empty Object array.
2425 2001-03-21 Tom Tromey <tromey@redhat.com>
2427 * configure: Rebuilt.
2428 * configure.in (GCJFLAGS): Subst.
2429 * Makefile.in: Rebuilt.
2430 * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
2431 (gij_LDFLAGS): Likewise.
2432 (JC1FLAGS): Added GCJFLAGS and removed -g.
2434 * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
2435 read/write case. Fixes PR libgcj/2338.
2437 2001-03-20 Warren Levy <warrenl@redhat.com>
2439 * java/util/TimeZone.java: Sync up with Classpath. Includes new
2440 and corrected SimpleTimeZone's for the timezones hash table.
2442 2001-03-19 Per Bothner <per@bothner.com>
2444 * java/net/URLStreamHandler.java (parseURL): Fix bug which would
2445 "canonicalize" "../../xxx" to "/xxx".
2447 2001-03-19 Mark Wielaard <mark@klomp.org>
2449 * java/util/ArrayList.java: Remove RCS keywords from comments
2450 * java/util/BasicMapEntry.java: idem
2451 * java/util/Dictionary.java: idem
2452 * java/util/HashSet.java: idem
2454 * java/util/EventObject.java: reindent
2455 * java/util/Properties.java: idem
2456 * java/util/SortedMap.java: idem
2458 * java/util/Enumeration.java: Merge with Classpath
2459 * java/util/EventListener.java: idem
2460 * java/util/Observable.java: idem
2461 * java/util/Observer.java: idem
2462 * java/util/Stack.java: idem
2464 2001-03-17 Tom Tromey <tromey@redhat.com>
2466 * java/lang/natString.cc (rehash): Don't bother with memset;
2467 _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked.
2469 (UNMASK_PTR): New macro.
2470 (intern): Unmask pointer before returning it. Register finalizer
2472 (unintern): Handle case where
2473 (MASK_PTR): New macro.
2474 (PTR_MAKSED): Likewise.
2475 (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
2477 2001-03-01 Andrew Haley <aph@redhat.com>
2479 * java/lang/natThrowable.cc (printRawStackTrace): Copy the
2480 stackTrace buffer to a correctly aligned pointer array.
2482 2001-03-12 Bryce McKinlay <bryce@albatross.co.nz>
2484 * java/lang/Runtime.java (_exit): Declare new package-private native.
2485 * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
2486 without a security manager check.
2487 (exit): Call _exit after security check.
2488 * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
2490 * java/lang/System.java (setSecurityManager): If a security manager
2491 is already in place, call checkPermission.
2492 * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
2493 throws an exception, try to deal with it gracefully.
2494 * java/lang/ExceptionInInitializerError.java (printStackTrace):
2495 Only try to print the subordinate stack trace if "exception" is set.
2496 Print our class name first.
2498 2001-03-08 Tom Tromey <tromey@redhat.com>
2500 * java/io/ObjectStreamClass.java (setUID): Don't write interface
2501 info for array classes.
2502 Fixes PR libgcj/1971.
2504 2001-03-06 Bryce McKinlay <bryce@albatross.co.nz>
2506 * java/util/TreeSet.java (writeObject): Use a for-loop instead of
2509 2001-03-05 Jochen Hoenicke <jochen@gnu.org>
2511 * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
2512 instead of the new JDK1.2 API. This is simpler and makes
2513 back-porting the classes to JDK1.1 trivial.
2514 (readObject): likewise.
2516 2001-03-01 Per Bothner <per@bothner.com>
2518 Changes merged from Kawa's gnu.math.
2519 * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
2520 (rshift(int[],int[],int,int): Removed - not needed.
2521 (gcd): Use rshift0 rather than rshift.
2522 * java/math/BigInteger.java (setShiftRight): Likewise.
2523 (divide): Simplify by using rshift0.
2524 (divide): Zero-extend results if high-order bit set.
2526 2001-02-27 Bryce McKinlay <bryce@albatross.co.nz>
2528 * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
2531 2001-02-23 Per Bothner <per@bothner.com>
2533 Change to sometimes include class name in ClassFormatError message.
2534 * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
2535 _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)): Return
2536 boolean instead of throwing ClassFormatError on failure.
2537 (throw_class_format_error): Change static function to method.
2538 (_Jv_ClassReader): New inline methods verify_identifier,
2539 two overloads of verify_classname, verify_field_signature, and
2540 verify_method_signature
2541 * include/java-interp.h: Update declarations to return bool.
2542 * java/lang/natClassLoader.cc (defineClass0): Explicitly throw
2543 ClassFormatError since _Jv_VerifyClassName now returns bool.
2545 2001-02-23 Per Bothner <per@bothner.com>
2547 * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to
2548 c++filt to select java-style output.
2550 2001-02-22 Bryce McKinlay <bryce@albatross.co.nz>
2552 Fix for PR java/2040:
2553 * java/util/HashMap.java (HashMap): Don't throw exception for
2554 loadFactor > 1. Add exception messages.
2555 * java/util/Hashtable.java (Hashtable): Likewise.
2557 2001-02-21 Bryce McKinlay <bryce@albatross.co.nz>
2559 Disable libgcjx by default.
2560 * configure.in: Add support for --enable-java-awt configure option.
2561 Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
2562 * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
2563 * Makefile.in: Rebuilt.
2564 * configure: Rebuilt.
2566 2001-02-20 Tom Tromey <tromey@redhat.com>
2568 * java/io/PipedWriter.java (flush): Throw exception if stream
2570 * java/io/OutputStreamWriter.java (write): Throw exception if
2572 (writeChars): Don't throw exception if stream closed.
2573 * java/io/CharArrayWriter.java (closed): New field.
2575 (flush): Throw exception if stream closed.
2576 (reset): Synchronize on correct lock. Allow stream to be
2578 (toCharArray, toString, writeTo): Synchronize.
2579 (write): Throwe exception if stream closed.
2580 * java/io/BufferedWriter.java (close): Clear `buffer'.
2581 (flush): Throw IOException if stream is closed.
2584 2001-02-16 Tom Tromey <tromey@cygnus.com>
2586 * java/lang/ThreadGroup.java (activeCount): Only include threads
2588 (enumerate): Likewise.
2590 2001-02-19 Bryce McKinlay <bryce@albatross.co.nz>
2592 * java/lang/Integer.java (getInteger): Return default argument if
2593 property is not set. Don't call decode with null argument.
2594 * java/lang/Long.java (getLong): Likewise.
2596 * java/io/CharArrayReader.java (CharArrayReader): Throw
2597 IllegalArgumentException if constructor arguments are illegal.
2598 (ready): Return false if no more characters can be read.
2599 * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
2601 2001-02-17 Mark Wielaard <mark@klomp.org>
2603 * java/util/TimerTask.java: New version from Classpath.
2605 2001-02-17 Mark Wielaard <mark@klomp.org>
2607 Remerge with Classpath
2608 (changes by Bryce McKinlay <bryce@albatross.co.nz>)
2609 * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
2610 (readByte): Use convertToByte().
2611 (readChar): Use convertToChar().
2612 (readInt): Use convertToInt().
2613 (readLong): Use convertToLong().
2614 (readShort): Use convertToShort().
2615 (readUnsignedByte): Use convertToUnsignedByte().
2616 (readUnsignedShort): Use convertToUnsignedShort().
2617 (readUTF): Use convertToUTF().
2619 (convertToBoolean): Resurrected.
2620 (convertToByte): Ditto.
2621 (convertToChar): Ditto.
2622 (convertToInt): Ditto.
2623 (convertToLong): Ditto.
2624 (convertToShort): Ditto.
2625 (convertToUnsignedByte): Ditto.
2626 (convertToUnsignedShort): Ditto.
2627 (convertToUTF): Ditto.
2629 2001-02-17 Mark Wielaard <mark@klomp.org>
2633 2001-02-17 Mark Wielaard <mark@klomp.org>
2635 * java/io/DataInputStream.java: update copyright notice
2636 * java/io/PrintWriter.java: idem
2637 * java/io/Reader.java: idem
2638 * java/io/StreamTokenizer.java: idem
2639 * java/io/StringReader.java: idem
2640 * java/lang/reflect/ReflectPermission.java: idem
2642 2001-02-16 Bryce McKinlay <bryce@albatross.co.nz>
2644 * java/util/TreeSet.java (clone): Made subclass safe, use
2645 super.clone(), not new.
2646 * java/util/TreeMap.java (clone): Likewise.
2648 * java/util/TreeMap.java (nil): Made non-final.
2649 (clone): Create new nil node for copy.
2651 * java/util/HashSet.java (clone): Made subclass safe, use
2652 super.clone(), not new.
2654 2001-02-14 Andrew Haley <aph@redhat.com>
2656 * include/i386-signal.h (INIT_SEGV): Use a direct system call to
2659 2001-02-15 Anthony Green <green@redhat.com>
2661 * defineclass.cc: Don't include alloca.h.
2662 (prepare_pool_entry): Convert alloca to __builtin_alloca.
2663 * interpret.cc (run_normal): Ditto.
2665 * java/lang/natDouble.cc (parseDouble): Ditto.
2667 2001-02-15 Bryce McKinlay <bryce@albatross.co.nz>
2669 * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
2671 * java/util/Collections.java (ReverseComparator): New static class.
2672 (reverseOrder): Return static instance of ReverseComparator.
2674 * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
2675 * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
2676 Rectangle.clone(), not Object.clone().
2678 * java/util/HashSet.java (clone): Remove try/catch.
2680 * java/util/AbstractSequentialList.java: Synchronize with Classpath.
2681 * java/util/Collection.java: Likewise.
2682 * java/util/Comparator.java: Likewise.
2683 * java/util/Dictionary.java: Likewise.
2684 * java/util/Iterator.java: Likewise.
2685 * java/util/ListIterator.java: Likewise.
2686 * java/util/Map.java: Likewise.
2687 * java/util/Set.java: Likewise.
2689 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
2691 * java/util/TreeMap.java: New file.
2692 * java/util/TreeSet.java: New file.
2693 * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
2694 * Makefile.in: Rebuilt.
2695 * java/util/HashSet.java (clone): Use constructor instead of calling
2697 * java/util/SortedSet.java: Sync with classpath.
2698 * java/util/HashMap.java (hash): Use if statement instead of ternary,
2701 * java/lang/natClass.cc (getSignature): Don't try to dereference
2702 param_types if it is null. Instead, take this to mean "no parameters".
2703 * java/lang/TreeMap.java (TreeIterator.next): Throw
2704 NoSuchElementException in preference to ConcurrentModificationException.
2705 (TreeIterator.remove): Throw IllegalStateException in preference to
2706 ConcurrentModificationException.
2707 (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
2708 throw a NoSuchElementException.
2709 (SubMap.lastKey): Likewise.
2711 2001-02-13 Tom Tromey <tromey@redhat.com>
2713 * java/io/PipedReader.java (ready): Throw IOException if pipe
2715 * java/io/FilterReader.java (close): Don't clear `in'.
2716 * java/io/CharArrayReader.java (mark): Throw IOException if stream
2718 (read, ready, reset, skip): Added exception message.
2719 * java/io/BufferedReader.java (mark, reset, ready, read, skip):
2720 Perform checkStatus check inside synchronized block.
2722 2001-02-13 Tom Tromey <tromey@redhat.com>
2724 * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2726 2001-02-13 Tom Tromey <tromey@redhat.com>
2728 Fix for PR libgcj/1351:
2729 * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2731 Include Thread.h and InterruptedIOException.h.
2733 2001-02-13 Bryce McKinlay <bryce@albatross.co.nz>
2735 * java/io/BlockDataException.java: Removed.
2736 * java/io/ObjectInputStream.java (readObject): Throw
2737 StreamCorruptedException, not BlockDataException.
2738 * Makefile.am: Remove BlockDataException.
2739 * Makefile.in: Rebuild.
2741 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com>
2742 Tom Tromey <tromey@redhat.com>
2744 * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2747 2001-02-09 Tom Tromey <tromey@redhat.com>
2749 * java/util/Timer.java: New version from Classpath.
2751 2001-02-09 Bryce McKinlay <bryce@albatross.co.nz>
2753 * java/lang/Double.java (doubleToRawLongBits): Now native.
2754 * java/lang/Float.java (floatToRawIntBits): Likewise.
2755 * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2756 * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2758 2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
2760 * java/io/File.java (java.net): Imported.
2761 (getAbsoluteFile): Added.
2762 (getCanonicalPath): Likewise.
2765 2001-02-08 Bryce McKinlay <bryce@albatross.co.nz>
2767 * java/lang/Byte.java: Remove redundant instanceof and null checks.
2768 * java/lang/Integer.java: Likewise.
2769 * java/lang/Long.java: Likewise.
2770 * java/lang/Short.java: Likewise.
2771 * java/lang/Double.java: Likewise.
2772 (doubleToRawLongBits): New method.
2773 * java/lang/Float.java: As above.
2774 (floatToRawIntBits): New method.
2776 * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2777 IOException if stream closed.
2779 2001-02-08 Tom Tromey <tromey@redhat.com>
2781 * java/lang/Float.java (parseFloat): New method.
2783 2001-02-08 Tom Tromey <tromey@redhat.com>
2785 From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
2786 * java/io/InputStreamReader.java (ready, read): Throw IOException
2787 if stream has been closed.
2789 2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
2791 * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2792 Change sources.redhat.com and sourceware.cygnus.com references to
2795 2001-02-07 Tom Tromey <tromey@redhat.com>
2797 Fix for PR libgcj/1906:
2798 * java/text/MessageFormat.java (setLocale): Use named class
2801 (format(Object,StringBuffer,FieldPosition)): Special case if
2802 argument is an Object[].
2804 2001-02-07 Bryce McKinlay <bryce@albatross.co.nz>
2806 * java/util/Arrays.java: Removed "cmp" methods.
2807 (qsort): Don't use "cmp".
2810 2001-02-07 Mark Benvenuto <mcb54@columbia.edu>
2812 * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2813 sort. Fix for PR java/1895.
2815 2001-02-03 Jeff Sturm <jeff.sturm@commerceone.com>
2817 * configure.host: Use sjlj-exceptions for Alpha.
2819 2001-02-03 Bryce McKinlay <bryce@albatross.co.nz>
2821 * libgcj.spec.in: Don't force static libgcc into the executable.
2822 * configure.in (FORCELIBGCCSPEC): Removed.
2823 * configure: Rebuilt.
2825 2001-01-31 Tom Tromey <tromey@redhat.com>
2827 * Makefile.in: Rebuilt.
2828 * Makefile.am (LTCXXCOMPILE): New macro.
2830 2001-01-26 Andrew Haley <aph@redhat.com>
2832 (INIT_FPE): Use a direct system call to set the handler.
2834 2001-01-27 Richard Henderson <rth@redhat.com>
2836 * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2838 2001-01-27 Tom Tromey <tromey@redhat.com>
2840 * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2841 native interface structure.
2843 2001-01-27 Bryce McKinlay <bryce@albatross.co.nz>
2845 * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2847 (read (byte[], int, int)): Only call readNextBlock() if the block
2848 buffer would actually be overrun. Increment blockDataPosition.
2849 (callReadMethod): Propagate exceptions from invocation target.
2850 * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2851 exceptions from invocation target.
2853 2001-01-26 Tom Tromey <tromey@redhat.com>
2855 * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2856 to internal representation.
2857 (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use
2858 _Jv_FindClassFromSignature.
2860 2001-01-26 Warren Levy <warrenl@redhat.com>
2862 * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2863 and timezone if they are available on the system.
2865 2001-01-24 Tom Tromey <tromey@redhat.com>
2867 * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2869 2001-01-24 Tom Tromey <tromey@redhat.com>
2871 * Makefile.in: Rebuilt.
2872 * Makefile.am (c_source_files): Added sf_fabs.c.
2873 * java/lang/sf_fabs.c: New file.
2875 2001-01-19 Warren Levy <warrenl@redhat.com>
2877 * java/text/SimpleDateFormat.java (format): Compute hour for cases
2878 HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2879 correctly. Adjust properly from 0-23 clock hour.
2881 2001-01-17 Mark Wielaard <mark@klomp.org>
2883 * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2885 2001-01-17 Bryce McKinlay <bryce@albatross.co.nz>
2887 * java/lang/Class.h (isInterface): Move implementation from
2888 natClass.cc. Declare inline.
2889 (Class): Add default constructor.
2890 * java/lang/Object.h: Update comments.
2891 * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2892 initialize superclass, saving a call if super is already initialized.
2894 2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com>
2896 * prims.cc (init_prim_class): Deleted.
2897 (DECLARE_PRIM_TYPE): Rewritten.
2898 * java/lang/Class.h (stdio.h): Include removed.
2899 (stddef.h): Included.
2900 (java/lang/reflect/Modifier.h): Likewise.
2901 (Class): Contructor now takes arguments, initializes fields.
2902 (initializePrim): Prototype deleted.
2903 * java/lang/natClass.cc (initializePrim): Deleted.
2905 2001-01-16 Warren Levy <warrenl@redhat.com>
2907 * java/math/BigInteger.java: Update Copyright year.
2909 2001-01-16 Hans Boehm <hans_boehm@hp.com>
2911 * java/math/BigInteger.java (setShiftRight): Only do negative shift
2914 2001-01-14 Mark Wielaard <mark@klomp.org>
2915 * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2916 (decode): Merge comments with Classpath, don't throw Exception
2918 2001-01-12 Tom Tromey <tromey@redhat.com>
2920 * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2924 * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2925 * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2926 * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2927 * gnu/awt/gtk/GtkLabelPeer.java: New file.
2928 * gnu/awt/gtk/GtkButtonPeer.java: New file.
2930 * java/lang/natSystem.cc: Include locale.h if it exists.
2931 * configure: Rebuilt.
2932 * configure.in: Check for locale.h.
2934 2001-01-11 Tom Tromey <tromey@redhat.com>
2936 * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2937 (Cursor(int), getPredefinedCursor): Throw exception if argument
2940 2001-01-03 Tom Tromey <tromey@redhat.com>
2942 * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2943 (getLocationOnScreen): Wrote.
2945 2001-01-11 Bryce McKinlay <bryce@albatross.co.nz>
2947 * Makefile.am: Re-enable dependencies.
2948 * Makefile.in: Rebuilt.
2950 2001-01-10 Warren Levy <warrenl@redhat.com>
2952 * java/math/BigDecimal.java (divide): Fixed comment.
2954 2001-01-10 Warren Levy <warrenl@redhat.com>
2956 Fix for PR libgcj/1596:
2957 * java/math/BigDecimal.java (divide): Check newScale for validity.
2958 Ensure that BigInteger.pow() is called with a non-negative value.
2959 (setScale (int)): New public method.
2960 (setScale (int,int)): New public method.
2962 2001-01-09 Oskar Liljeblad <osk@hem.passagen.se>
2964 Fix for PR libgcj/1338:
2965 * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2966 commentChar. Fixed typos in comments.
2968 2001-01-08 Warren Levy <warrenl@redhat.com>
2970 Fix for PR libgcj/1411:
2971 * Makefile.am: Removed java/util/natTimeZone.cc.
2972 * Makefile.in: Rebuilt.
2973 * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2974 missing localized timezone names.
2975 * java/lang/System.java (getDefaultTimeZoneId): New private method.
2976 * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2977 (init_properties): Set user.timezone property.
2978 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2979 default timezone names; removed non-standard ones. Use standard
2981 * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2983 * java/util/TimeZone.java: Add standard ID names per JCL; removed
2985 (getDefaultTimeZoneId): Removed.
2987 * java/util/natTimeZone.cc: Removed.
2989 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
2991 * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2992 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2993 (_Jv_GetArrayClass): New inline function.
2994 (arrayclass): New field.
2995 * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2996 _Jv_GetArrayElementFromElementType.
2997 (_Jv_NewPrimArray): Ditto.
2998 (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2999 "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
3000 Set Modifier::ABSTRACT.
3001 * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
3002 (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
3003 Now synchronized. Array classes are now referenced from
3004 elementClass->arrayclass. Don't use _Jv_FindClassInCache.
3005 Set array classes' accessibility flags correctly. Optimize so that
3006 all array classes share the same IDT.
3007 * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
3008 * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
3009 * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
3010 in superclasses from overwriting classes own fields.
3011 (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
3012 Modifier::isAbstract().
3013 (null_idt): New static field.
3014 (_Jv_PrepareConstantTimeTables): Optimize case where class implements
3016 (_Jv_IndexOf): Made inline.
3017 * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
3019 2001-01-08 Tom Tromey <tromey@redhat.com>
3021 Fix for PR java/1586:
3022 * Makefile.in: Rebuilt.
3023 * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
3025 2001-01-08 Bryce McKinlay <bryce@albatross.co.nz>
3027 * Makefile.am: Use the new "-M -MF" option for generating dependencies
3028 from the c++ compiler.
3029 * Makefile.in: Rebuilt.
3031 2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com>
3033 All files with updated copyright.
3034 * prims.cc (class _Jv_PrimClass): Removed.
3035 (init_prim_class): New function.
3036 (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
3037 `_Jv_PrimClass' in primitive type declarations. Assign to the
3038 value returned by `init_prim_class.'
3039 * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
3040 primitive type declarations.
3041 (JvPrimClass): Cast to `jclass' removed.
3042 * java/lang/Class.h (Class): New constructor.
3043 (Class): New copy constructor.
3044 (initializePrim): New prototype.
3045 (_Jv_PrimClass): Field removed.
3046 * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
3047 nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
3048 (class java::lang::Object): `finalize' moved up front.
3049 * java/lang/natClass.cc
3050 (isAssignableFrom): Turned outline.
3051 (isInstance): Likewise.
3052 (isInterface): Likewise, fixed indentation.
3053 (initializePrim): New function.
3055 2001-01-07 Anthony Green <green@redhat.com>
3057 * Makefile.am (texinfo): Add texinfo target for generating texinfo
3059 * Makefile.in: Rebuilt.
3061 * scripts/TexinfoDoclet.java: New file.
3063 * doc/java-applet.texi, doc/java-lang-reflect.texi,
3064 doc/java-awt-color.texi, doc/java-lang.texi,
3065 doc/java-awt-datatransfer.texi, doc/java-math.texi,
3066 doc/java-awt-event.texi, doc/java-net.texi,
3067 doc/java-awt-geom.texi, doc/java-security-spec.texi,
3068 doc/java-awt-image.texi, doc/java-security.texi,
3069 doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
3070 doc/java-text.texi, doc/java-beans-beancontext.texi,
3071 doc/java-util-jar.texi, doc/java-beans.texi,
3072 doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
3073 doc/java-lang-ref.texi: New files.
3075 2001-01-07 Anthony Green <green@redhat.com>
3077 * java/net/URLConnection.java (setDoOutput): URLConnection's may
3078 be used for both input and output, so don't clear doInput.
3080 * java/lang/StringBuffer.java: Fix comments.
3082 2001-01-06 Anthony Green <green@redhat.com>
3084 * java/beans/PropertyDescriptor.java: Fix comment.
3085 * java/io/PushbackReader.java: Fix comment.
3086 * java/io/ObjectStreamClass.java: Fix comment.
3087 * java/io/DataInputStream.java: Fix comment.
3088 * java/io/PipedInputStream.java: Fix comments.
3089 * java/io/PipedReader.java: Fix comments.
3090 * java/sql/DatabaseMetaData.java: Fix comments.
3092 2001-01-06 Bryce McKinlay <bryce@albatross.co.nz>
3094 * java/io/PipedReader: Synchronize on "lock" instead of this.
3096 2001-01-05 Bryce McKinlay <bryce@albatross.co.nz>
3098 * java/lang/Thread.java: Update comment.
3100 * java/io/PipedInputStream: Rewrote to be simpler and more correct.
3101 * java/io/PipedOutputStream: Updated to match new PipedInputStream.
3102 * java/io/PipedReader: New implementation based on new
3104 * java/io/PipedWriter: Updated to match new PipedReader.
3106 2001-01-03 Tom Tromey <tromey@redhat.com>
3108 * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
3109 (getViewportSize): Insets include scrollbar size.
3110 (doLayout): Finished.
3111 (getScrollPosition): Wrote.
3112 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
3114 2001-01-02 Tom Tromey <tromey@redhat.com>
3116 * java/awt/ScrollPane.java: Wrote.
3117 * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
3120 * java/awt/Panel.java (Panel()): Fixed.
3122 * java/awt/Component.java (isShowing): Return false if no peer
3123 exists, and true if component is visible and no parent exists.
3124 (getLocationOnScreen): Wrote.
3125 (getPreferredSize): Removed FIXME comment.
3126 (getMinimumSize): Likewise.
3127 (getAlignmentX, getAlignmentY): Wrote.
3129 (requestFocus): Wrote.
3130 (transferFocus): Wrote.
3131 (findNextFocusComponent): New method.
3132 (hasFocus()): Wrote.
3133 (checkImage): Wrote.
3134 (enableEvents): Call setEventMask on the peer.
3136 * java/awt/Container.java (list): Use super.list() to print self.
3137 (findNextFocusComponent): New method.
3138 (setLayout): Call invalidate.
3139 (findComponentAt): Wrote.
3141 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
3143 * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
3144 the correct versions of various linuxthreads functions get linked.
3145 * Makefile.in: Rebuilt.
3146 * java/lang/natThread.cc (finalize_native): New static function. Call
3147 _Jv_ThreadDestroyData.
3148 (initialize_native): Register finalizer for "data".
3149 * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
3150 (_Jv_ThreadDestroyData): New prototype.
3151 * include/win32-threads.h: Ditto.
3152 * include/no-threads.h: Ditto.
3153 * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3154 (_Jv_ThreadDestroyData): New function. Free native thread "data" and
3155 move mutex and condition variable destroy code from:
3156 (really_start): ...here.
3157 (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
3158 * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
3159 (_Jv_ThreadDestroyData): Implemented.
3160 * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
3161 (_Jv_AllocArray): Ditto.
3163 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
3165 * java/sql/DriverManager.java (getConnection): Don't set user/password
3168 2000-12-27 Warren Levy <warrenl@redhat.com>
3170 Fix for PR libgcj/1358:
3171 * java/lang/System.java: Update Copyright date properly.
3172 * java/util/Calendar.java: Fix typo in comment.
3173 (set): Set 24-hour clock hour instead of 12-hour clock hour.
3174 * java/util/GregorianCalendar.java (GregorianCalendar): Properly
3175 initialize times. Spec says to set H:M:S values to zero only if
3177 * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
3178 needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
3179 * java/util/natGregorianCalendar.cc (computeTime): Properly handle
3180 timezones and GMT offsets, being careful to account for units of
3181 milliseconds vs. seconds.
3183 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
3185 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
3186 not be assigned to Object.
3188 Fix for PR libgcj/1516:
3189 * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
3191 (can_widen): Declared inline. Remove redundant checks for void
3192 arguments and char->short conversion. Add special case for boolean
3194 (ffi_type): Declared inline.
3195 (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
3197 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
3199 * java/sql/SQLWarning.java: Fixed typo in comment.
3201 2000-12-26 Tom Tromey <tromey@redhat.com>
3203 * java/awt/MenuItem.java (paramString): Now protected.
3205 * java/awt/MenuShortcut.java: Implements Serializable.
3207 * java/awt/MenuBar.java: Rewrote from scratch.
3209 * java/awt/MenuComponent.java (removeNotify): Wrote.
3210 Implements Serializable.
3212 * java/awt/GridBagConstraints.java (GridBagConstraints): New
3215 * java/awt/CheckboxMenuItem.java: Wrote.
3217 2000-12-25 Tom Tromey <tromey@redhat.com>
3219 * java/awt/MenuContainer.java: Fixed typo.
3221 * Makefile.in: Rebuilt.
3222 * Makefile.am (awt_java_source_files): Added SystemColor.java.
3223 * java/awt/SystemColor.java: New file.
3225 * java/awt/Color.java (rgba): Now package-private.
3227 * java/awt/event/InputEvent.java (isAltGraphDown): New method.
3229 * java/awt/event/ContainerEvent.java (getContainer): Renamed from
3232 * java/awt/MenuItem.java (addNotify): New method.
3233 (MenuItem(String,MenuShortcut)): New constructor.
3234 (setLabel): Notify peer of change.
3235 (setEnabled): Likewise.
3237 * java/awt/GridLayout.java (toString): New method.
3239 * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
3240 (FlowLayout): Check for LEADING and TRAILING.
3241 (setAlignment): Likewise.
3242 (layoutContainer): Handle component orientation.
3244 * java/awt/Component.java (orientatin): New field.
3245 (setComponentOrientation): Wrote.
3246 (getComponentOrientation): Wrote.
3248 * java/awt/Event.java (Event): Implements Serializable.
3249 (consumed): New field for serialization.
3250 * java/awt/Dimension.java (Dimension): Implements Serializable.
3251 * java/awt/Cursor.java (Cursor): Implements Serializable.
3252 * java/awt/Container.java (Container): No longer abstract.
3254 * java/awt/Choice.java: Wrote.
3255 * java/awt/Checkbox.java: Wrote.
3256 * java/awt/ItemSelectable.java: Documented.
3257 * java/awt/CheckboxGroup.java: Wrote.
3259 * java/awt/CardLayout.java (layoutContainer): Directly use fields
3261 (getSize): Likewise.
3263 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
3265 * java/io/FileDescriptor.java: Initialize fd to -1.
3266 Remove default constructor.
3268 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
3270 * java/lang/mprec.h: Change C9X reference to refer to C99.
3272 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
3274 * java/lang/Throwable.java (trace_enabled): New static field.
3275 * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
3276 trace_enabled not set.
3277 * prims.cc (main_init): Turn off trace_enabled while creating
3278 default exception objects.
3280 2000-12-21 Tom Tromey <tromey@redhat.com>
3282 * java/beans/PropertyChangeListener.java: Extends EventListener.
3283 * java/beans/VetoableChangeListener.java: Extends EventListener.
3285 * java/util/zip/Deflater.java (update, init): Now private.
3287 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
3289 * java/util/BasicMapEntry.java: Re-added.
3290 * java/util/HashMap.java (Entry): Extend BasicMapEntry.
3291 (putAll): Test for BasicMapEntry.
3292 * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
3293 (putAll): Test for BasicMapEntry.
3294 Change references from `HashMap.Entry' to `Entry' in various places.
3295 * Makefile.am: Add BasicMapEntry.java.
3296 * Makefile.in: Rebuilt.
3298 2000-12-18 Warren Levy <warrenl@redhat.com>
3300 * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
3301 need to set timezone to a valid non-null value. Partial fix for
3304 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3306 * java/awt/Window.java (addNotify): Remove peer casting hack now that
3308 * java/awt/Button.java (addNotify): Likewise.
3309 * java/awt/Label.java (addNotify): Likewise.
3310 * java/awt/Panel.java (addNotify): Likewise.
3311 * java/awt/Scrollbar.java (addNotify): Likewise.
3312 * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
3313 Remove redundant null checks.
3315 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
3317 * COPYING: Update to current
3318 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
3319 to 19yy as example year in copyright notice).
3321 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
3323 * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
3324 end-of-stream if avail_in is 0.
3326 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
3328 * java/util/ArrayList.java (data): Declare transient.
3329 (serialPersistantFields): Removed.
3330 (readObject): Use defaultReadObject(), not readFields().
3331 (writeObject): Use defaultWriteObject(), not writeFields().
3333 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
3335 * java/util/Hashtable.java (put): Remove `last' variable.
3336 Link new entry to head of list.
3337 * java/util/HashMap.java (put): Ditto.
3339 2000-12-15 Tom Tromey <tromey@redhat.com>
3341 * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
3342 loader to Class.forName.
3344 2000-12-14 Tom Tromey <tromey@redhat.com>
3346 * java/util/ResourceBundle.java
3347 (getBundle(String,Locale,ClassLoader)): New method.
3348 (trySomeGetBundle): Added `loader' argument.
3349 (partialGetBundle): Likewise.
3351 * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
3352 maximumFractionDigits, maximumIntegerDigits,
3353 minimumFractionDigits, minimumIntegerDigits): Now
3356 * java/lang/Thread.java (checkAccess): Now final.
3358 * java/lang/RuntimePermission.java: Class now final.
3360 * java/io/StringWriter.java (StringWriter(int)): Now public.
3362 * java/io/SerializablePermission.java (legal_names): Now private.
3364 * java/lang/Character.java: Updated UnicodeBlock constants.
3365 * scripts/blocks.pl: Special case private use and surrogate
3368 2000-12-12 Tom Tromey <tromey@redhat.com>
3370 * Makefile.in: Rebuilt.
3371 * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
3373 (GCJCOMPILE): Use it.
3376 2000-12-11 Tom Tromey <tromey@redhat.com>
3378 * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
3379 New static final fields.
3381 * scripts/classes.pl (scan): Skip lines with leading `*'.
3382 Fix for PR libgcj/378.
3384 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3386 * configure.in: Remove check for -fuse-divide-subroutine.
3387 * configure: Rebuilt.
3389 * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
3391 * gcj/javaprims.h: Rebuilt CNI namespace declarations.
3393 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
3395 * Makefile.am: Add HashSet.java and java/lang/ref classes.
3396 Remove BasicMapEntry.java and Bucket.java.
3397 * Makefile.in: Rebuilt.
3398 * java/util/HashMap.java: Rewritten.
3399 * java/util/HashSet.java: Imported from classpath.
3400 * java/util/WeakHashMap.java: Imported from classpath.
3401 * java/util/Hashtable.java: Rewritten based on new HashMap code.
3402 * java/util/Bucket.java: Deleted.
3403 * java/util/BasicMapEntry.java: Deleted.
3404 * java/util/Collections.java (search): Use a for-loop, not iterator
3406 (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
3407 of elements in source.
3408 (max): Use a for-loop.
3410 (reverse): Keep track of positions instead of using Iterator's
3411 nextIndex() and previousIndex().
3412 (shuffle(List)): Initialize defaultRandom if required using
3413 double-check thread safety idiom. Call two-argument shuffle method
3414 using defaultRandom.
3415 (defaultRandom): New field.
3416 (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
3417 using previousIndex() and nextIndex().
3418 (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
3419 * java/util/AbstractCollection.java (toString): Use a StringBuffer.
3420 * java/util/AbstractMap.java (toString): Use StringBuffer.
3421 * java/lang/ref/PhantomReference.java: Imported from classpath.
3422 * java/lang/ref/SoftReference.java: Ditto.
3423 * java/lang/ref/Reference.java: Ditto.
3424 * java/lang/ref/WeakReference.java: Ditto.
3425 * java/lang/ref/ReferenceQueue.java: Ditto.
3427 2000-12-10 Richard Henderson <rth@redhat.com>
3429 * configure.host: Recognize alpha*-*, not alphaev6-*.
3431 2000-12-09 Anthony Green <green@redhat.com>
3433 * configure.host: Enable interpreter for Alpha.
3435 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
3437 * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
3438 (ZIP): Points at fastjar instead of zip.
3439 (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3440 (libgcj_la_LDFLAGS): Correctly point at libsupc++.
3441 (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
3442 (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
3443 ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
3444 ($(x_java_source_files:.java=.class):): Likewise.
3445 (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
3447 (CLEANFILES): libgcj.jar replaces libgcj.zip.
3448 (java/lang/ClassLoader.h:): Depends on libgcj.jar.
3449 (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
3450 java/lang/String.h:, java/lang/reflect/Constructor.h:,
3451 java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
3452 gnu/gcj/runtime/VMClassLoader.h:,
3453 java/io/ObjectInputStream$$GetField.h:,
3454 java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
3455 (Makefile.in): Rebuilt.
3457 2000-12-08 Tom Tromey <tromey@redhat.com>
3460 * configure: Rebuilt.
3461 * configure.in: Use echo, not `:', to create .d files.
3463 2000-12-08 Warren Levy <warrenl@redhat.com>
3465 * java/lang/StringBuffer.java (insert(int,char[])): Avoid
3466 NullPointerException so proper check of offset can be done.
3468 2000-12-08 Warren Levy <warrenl@redhat.com>
3470 * java/io/FileInputStream.java (close): Check if the fd is valid.
3471 * java/io/RandomAccessFile.java (close): Ditto.
3472 * java/net/PlainDatagramSocketImpl.java (close): Ditto.
3473 * java/net/PlainSocketImpl.java (close): Ditto.
3475 2000-12-06 Tom Tromey <tromey@redhat.com>
3477 * java/awt/GridBagConstraints.java: Filled in values for static
3480 * java/util/BitSet.java: Updated copyright notice.
3482 * Makefile.in: Rebuilt.
3483 * Makefile.am (awt_java_source_files): Added new file.
3484 * java/awt/GridBagConstraints.java: New file.
3486 2000-12-05 Tom Tromey <tromey@redhat.com>
3488 * java/text/Collator.java (decomposeCharacter, decmp, strength):
3489 Now package-private, not protected.
3490 * java/text/DateFormatSymbols.java (equals): Now private.
3491 * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
3492 * java/util/BitSet.java: Class no longer final.
3494 2000-12-04 Warren Levy <warrenl@redhat.com>
3496 * java/util/TimeZone.java (getAvailableIDs): Activated commented
3497 out code dependent on compiler and library changes.
3499 2000-12-04 Warren Levy <warrenl@redhat.com>
3501 * java/io/FilePermission.java: Made class final per spec.
3502 * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
3503 method name to match spec (fixed typo).
3504 * java/util/LinkedList.java: Implements List.
3506 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
3508 * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
3509 Edgar Villanueva <edgarvil@home.com>.
3511 2000-12-03 Tom Tromey <tromey@redhat.com>
3513 * java/awt/geom/Point2D.java: Added protected constructor.
3514 (equals): New method.
3515 (Float.setLocation(float,float)): New method.
3516 * java/awt/geom/Dimension2D.java: Added protected constructor.
3517 * java/awt/geom/AffineTransform.java: Made all constants public.
3518 (concatenate): Fixed typo in name.
3519 * java/awt/event/WindowAdapter.java: Class now abstract.
3520 * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
3521 * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
3524 * java/awt/AWTError.java: Extend Error, not
3525 IllegalStateException.
3527 * Makefile.in: Rebuilt.
3528 * Makefile.am (awt_java_source_files): Added new file.
3529 * java/awt/geom/RoundRectangle2D.java: New file.
3531 * Makefile.in: Rebuilt.
3532 * Makefile.am (awt_java_source_files): Added new file.
3533 * java/awt/FlowLayout.java: New file.
3535 * Makefile.in: Rebuilt.
3536 * Makefile.am (awt_java_source_files): Added new file.
3537 * java/awt/GridLayout.java: New file.
3539 2000-12-02 Tom Tromey <tromey@redhat.com>
3541 * Makefile.in: Rebuilt.
3542 * Makefile.am (awt_java_source_files): Added new files.
3543 * java/awt/CardLayout.java: New file.
3544 * java/awt/AWTPermission.java: New file.
3546 2000-12-01 Tom Tromey <tromey@redhat.com>
3548 * java/util/Vector.java (insertElementAt): Unconditionally
3549 increment elementCount.
3550 (removeRange): Clear unused slots in vector.
3552 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
3554 * java/lang/natMath.cc: Declare fabsf() function.
3555 * java/lang/mprec.h: Don't include math.h.
3556 * java/lang/dtoa.c: Include string.h.
3557 * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
3560 From Adam Welc <welc@cs.purdue.edu>:
3561 * java/util/LinkedList.java (removeFirst): Update `first' field.
3562 Handle the last == first case.
3563 (removeLast): Update `last' field. Handle the last == first case.
3565 2000-12-01 Warren Levy <warrenl@cygnus.com>
3567 * Makefile.am: Added entries for new java.sql modules.
3568 * Makefile.in: Rebuilt.
3570 2000-12-01 Warren Levy <warrenl@cygnus.com>
3572 * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
3573 that aren't quite 1.2 compatible yet.
3575 2000-11-30 Warren Levy <warrenl@cygnus.com>
3577 * java/sql/Array.java: New file from classpath.
3578 * java/sql/BatchUpdateException.java: Ditto.
3579 * java/sql/Blob.java: Ditto.
3580 * java/sql/Clob.java: Ditto.
3581 * java/sql/Ref.java: Ditto.
3582 * java/sql/SQLData.java: Ditto.
3583 * java/sql/SQLInput.java: Ditto.
3584 * java/sql/SQLOutput.java: Ditto.
3585 * java/sql/Struct.java: Ditto.
3586 * java/sql/CallableStatement.java: Merged file from claspath.
3587 * java/sql/Connection.java: Ditto.
3588 * java/sql/DataTruncation.java: Ditto.
3589 * java/sql/DatabaseMetaData.java: Ditto.
3590 * java/sql/DriverManager.java: Ditto.
3591 * java/sql/PreparedStatement.java: Ditto.
3592 * java/sql/ResultSet.java: Ditto.
3593 * java/sql/ResultSetMetaData.java: Ditto.
3594 * java/sql/SQLException.java: Ditto.
3595 * java/sql/SQLWarning.java: Ditto.
3596 * java/sql/Statement.java: Ditto.
3597 * java/sql/Types.java: Ditto.
3599 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
3601 * java/lang/natSystem.cc (init_properties): Set user.language and
3603 * configure.in: Check for setlocale.
3604 * configure: Rebuilt.
3605 * include/config.h.in: Rebuilt.
3607 * java/util/zip/InflaterInputStream (read): Don't return -1 unless
3608 the infate() call didn't deliver any output. Throw a ZipException if
3609 the needsDictionary() call returns true.
3610 * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
3611 * java/io/InputStreamReader: Use the default buffer size for the
3612 contained BufferedInputStream.
3614 2000-11-28 Warren Levy <warrenl@cygnus.com>
3616 * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
3617 more time zone entries.
3618 * java/text/SimpleDateFormat.java (format): Added case for
3621 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
3623 * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
3624 directly rather than read() in all cases. Make primitive read
3625 implementations more efficient, as defined in JDK online docs.
3626 (skipBytes): Behave like the JDK's implementation.
3627 * java/io/BufferedReader.java: Merge classpath docs. Check for a
3628 closed stream with checkStatus() whenever an IOException can be
3630 (checkStatus): New private method.
3632 2000-11-27 Warren Levy <warrenl@cygnus.com>
3634 * Makefile.am: Added natTimeZone.cc.
3635 * Makefile.in: Rebuilt.
3636 * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
3637 * java/text/DateFormatSymbols.java (ampms): Made package private.
3638 (eras): Made package private.
3639 (months): Made package private.
3640 (shortMonths): Made package private.
3641 (shortWeekdays): Made package private.
3642 (weekdays): Made package private.
3643 (formatPrefixes): New private field.
3644 (localPatternCharsDefault): Made private.
3645 (dateFormats): New package private field.
3646 (timeFormats): New package private field.
3647 (formatsForKey): New private method.
3648 (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
3649 (DateFormatSymbols(DateFormatSymbols)): Ditto.
3650 * java/text/SimpleDateFormat.java: Merged with Classpath.
3651 * java/util/TimeZone.java: Merged with Classpath.
3652 * java/util/natTimeZone.cc: New file.
3654 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
3656 * java/util/Vector.java (ensureCapacity): Don't increment modCount.
3657 (addElement): Don't increment elementCount twice. Doh.
3658 * java/util/ArrayList.java (add): Only call ensureCapacity if the
3659 array needs to be expanded.
3661 * java/util/Collections.java (UnmodifiableCollection): Implement
3663 (UnmodifiableList): Throw UnsupportedOperationException from
3664 modification methods. Set `l' from the one-parameter constructor.
3665 (UnmodifiableMap): Implement toString().
3666 (SynchronizedCollection): Ditto.
3667 (SynchronizedList): Set `l' from the one-parameter constructor.
3668 (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
3669 (SynchronizedMap): Implement toString().
3671 Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
3673 * javax/naming/NameParser.java,
3674 javax/naming/directory/AttributeInUseException.java,
3675 javax/naming/directory/AttributeModificationException.java,
3676 javax/naming/directory/InvalidAttributeIdentifierException.java,
3677 javax/naming/directory/InvalidAttributesException.java,
3678 javax/naming/directory/InvalidAttributeValueException.java,
3679 javax/naming/directory/InvalidSearchControlsException.java,
3680 javax/naming/directory/InvalidSearchFilterException.java,
3681 javax/naming/directory/NoSuchAttributeException.java,
3682 javax/naming/directory/SchemaViolationException.java: New files.
3684 Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
3686 * javax/naming/InitialContext.java (rebind): Implement.
3687 (unbind): Implement.
3688 (rename): Implement.
3690 (listBindings): Implement.
3691 (destroySubcontext): Implement.
3692 (createSubcontext): Implement.
3693 (lookupLink): Implement.
3694 (getNameParser): Implement.
3695 (composeName): Implement.
3696 (addToEnvironment): Implement.
3698 Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
3700 * javax/naming/AuthenticationException.java,
3701 javax/naming/AuthenticationNotSupportedException.java,
3702 javax/naming/CannotProceedException.java,
3703 javax/naming/CommunicationException.java,
3704 javax/naming/ConfigurationException.java,
3705 javax/naming/ContextNotEmptyException.java,
3706 javax/naming/InsufficientResourcesException.java,
3707 javax/naming/InterruptedNamingException.java,
3708 javax/naming/InvalidNameException.java,
3709 javax/naming/LimitExceededException.java,
3710 javax/naming/LinkException.java,
3711 javax/naming/LinkLoopException.java,
3712 javax/naming/MalformedLinkException.java,
3713 javax/naming/NameAlreadyBoundException.java,
3714 javax/naming/NameNotFoundException.java,
3715 javax/naming/NamingSecurityException.java,
3716 javax/naming/NoPermissionException.java,
3717 javax/naming/NotContextException.java,
3718 javax/naming/PartialResultException.java,
3719 javax/naming/ReferralException.java,
3720 javax/naming/ServiceUnavailableException.java,
3721 javax/naming/SizeLimitExceededException.java,
3722 javax/naming/TimeLimitExceededException.java: New files.
3724 * javax/naming/Name.java (clone): New method.
3725 (compareTo): New method.
3726 (isEmpty): New method.
3727 (getAll): New method.
3728 (getPrefix): New method.
3729 (getSuffix): New method.
3730 (startsWith): New method.
3731 (endsWith): New method.
3732 (addAll): New method.
3733 (addAll): New method.
3736 (remove): New method.
3738 * javax/naming/Context.java (lookup): New method.
3739 (rebind): New method.
3740 (unbind): New method.
3741 (rename): New method.
3743 (listBindings): New method.
3744 (destroySubcontext): New method.
3745 (createSubcontext): New method.
3746 (lookupLink): New method.
3747 (getNameParser): New method.
3748 (composeName): New method.
3749 (addToEnvironment): New method.
3750 (removeFromEnvironment): New method.
3751 (getEnvironment): New method.
3752 (close): New method.
3753 (getNameInNamespace): New method.
3755 * javax/naming/InitialContext.java (lookup): New method.
3756 (rebind): New method.
3757 (unbind): New method.
3758 (rename): New method.
3760 (listBindings): New method.
3761 (destroySubcontext): New method.
3762 (createSubcontext): New method.
3763 (lookupLink): New method.
3764 (getNameParser): New method.
3765 (composeName): New method.
3766 (addToEnvironment): New method.
3767 (removeFromEnvironment): New method.
3768 (getEnvironment): New method.
3769 (close): New method.
3770 (getNameInNamespace): New method.
3772 2000-11-26 Tom Tromey <tromey@cygnus.com>
3774 * Makefile.in: Rebuilt.
3775 * Makefile.am (core_java_source_files): Added
3776 RuntimePermission.java.
3777 * java/lang/RuntimePermission.java: Imported from Classpath.
3778 * java/lang/Thread.java (getContextClassLoader): Now
3779 synchronized. Added security code.
3780 (setContextClassLoader): Likewise.
3782 * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3783 length field of array.
3784 (_Jv_NewPrimArray): Likewise.
3785 * gcj/array.h (__JArray): `length' field now const. Added
3788 2000-11-26 Anthony Green <green@redhat.com>
3790 * javax/naming/spi/NamingManager.java,
3791 javax/naming/spi/ObjectFactory.java,
3792 javax/naming/spi/InitialContextFactory.java,
3793 javax/naming/spi/InitialContextFactoryBuilder.java,
3794 javax/naming/RefAddr.java, javax/naming/Reference.java,
3795 javax/naming/NamingException.java, javax/naming/Context.java,
3796 javax/naming/Referenceable.java,
3797 javax/naming/directory/InitialDirContext.java,
3798 javax/naming/directory/DirContext.java,
3799 javax/naming/directory/Attributes.java,
3800 javax/naming/directory/Attribute.java,
3801 javax/naming/StringRefAddr.java,
3802 javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3803 javax/naming/InitialContext.java,
3804 javax/naming/NoInitialContextException.java: New files.
3806 2000-11-25 Anthony Green <green@redhat.com>
3808 * prims.cc (_Jv_NewObjectArray): Undo placement change.
3809 (_Jv_NewPrimArray): Likewise.
3810 * gcj/array.h (__JArray): Undo const change. Removed constructor.
3811 (class JArray): Removed constructor.
3813 * java/lang/Thread.java (context_class_loader): New private data.
3814 (getContextClassLoader): New method.
3815 (setContextClassLoader): New method.
3816 (Thread): Initialize context_class_loader.
3818 * java/net/URLClassLoader.java: Import java.util.Enumeration.
3819 (getResource): Rename to findResource.
3820 (findResource): New method. Used to be getResource.
3821 (getResourceAsStream): Deleted.
3822 (jarFileize): Extracted logic from URLClassLoader constructor into
3823 this new private method.
3824 (addURL): New protected method.
3825 (URLClassLoader): Call jarFileize. Use addElement instead of
3827 (findResources): New method.
3829 * java/lang/ClassLoader.java: Import java.util.Enumeration.
3830 (getResource): Implement correct logic.
3831 (findResource): New method.
3832 (getResources): New method.
3833 (findClass): Create a ClassNotFoundException with the name of the
3834 class rather than nothing at all.
3835 (defineClass) Only throw ClassFormatError.
3837 * java/lang/Class.java (forName): New method.
3838 * java/lang/Class.h (forName): New method.
3839 * java/lang/natClass.cc (forName): New method.
3841 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3843 * java/lang/System.java (setProperties): Only call init_properties()
3844 if properties is null.
3845 (getProperties): Ditto.
3846 (getProperty): Ditto.
3847 (setProperty): Call init_properties if properties are null.
3848 (prop_init): Remove field.
3849 * java/lang/natSystem.cc (init_properties): Synchronize the entire
3850 method. Check for null properties after synchronizing instead of
3851 prop_init flag. Set the properties field last for thread safety.
3853 * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3854 test for gcj.dumpobjects property and enable object stream dumping
3856 (dumpElement): No longer native.
3857 (dumpElementln): Ditto.
3858 (setDump): Do not define.
3859 * java/io/natObjectInputStream.cc (dumpElement): Removed.
3860 (dumpElementln): Removed.
3863 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
3865 * configure: Rebuilt.
3866 * Makefile.in: Rebuilt.
3867 * Makefile.am (built_java_source_files): Add Configuration.java.
3868 * configure.in: Add Configuration.java to CONFIG_FILES. Set
3869 LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3870 Create `gnu' directory in the build tree.
3871 * gnu/classpath/Configuration.java.in: New file.
3873 2000-11-24 Tom Tromey <tromey@cygnus.com>
3875 * prims.cc (_Jv_NewObjectArray): Use placement new to create
3877 (_Jv_NewPrimArray): Likewise.
3879 * gcj/array.h (__JArray): `length' field now const. Added
3881 (class JArray): Added constructor.
3883 2000-11-23 Mark Wielaard <mark@klomp.org>
3885 * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3888 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
3890 * java/util/Vector.java: Improve exception messages.
3891 (Vector): Check initialCapacity for IllegalArgumentException.
3892 (tromToSize): Don't check for elementCount == elementData.length
3894 (toArray): Don't try to set null marker if target array is the same
3895 length as the vector.
3897 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
3899 * Makefile.in: Rebuilt.
3900 * Makefile.am (core_java_source_files): Added Collections.java.
3901 * java/util/List.java: Merged from classpath.
3902 * java/util/Vector.java: Ditto.
3903 * java/util/Collections.java: From classpath.
3904 * java/util/ArrayList.java (addAll(Collection)): Call
3905 addAll(int,Collection) instead of duplicating code.
3906 (indexOf): Clean up int initialization.
3907 (clear): Set cleared array entries to null, to allow garbage
3909 * java/util/List.java: Minor formatting fixes.
3910 * java/util/SimpleTimeZone.java: ditto.
3912 2000-11-18 Tom Tromey <tromey@cygnus.com>
3914 * Makefile.in: Rebuilt.
3915 * Makefile.am (core_java_source_files): Added new files.
3916 * java/lang/reflect/ReflectPermission.java: New class.
3917 * java/io/FileFilter.java: From Classpath
3918 * java/io/FilePermission.java: From Classpath.
3920 2000-11-17 Tom Tromey <tromey@cygnus.com>
3922 * java/lang/reflect/AccessibleObject.java (isAccessible,
3923 setAccessible): Now public.
3925 * java/lang/natString.cc: Include Locale.h.
3926 (toUpperCase): Added `locale' argument. Handle locale
3928 (toLowerCase): Added `locale' argument. Handle locale
3930 (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3931 CAPITAL_I): New defines.
3932 * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3935 (toUpperCase, toLowerCase): New methods. Variants which accept
3938 * java/lang/ExceptionInInitializerError.java (printStackTrace):
3941 * java/util/PropertyPermission.java: Re-merged from Classpath.
3943 * java/text/RuleBasedCollator.java (getCollationElementIterator):
3945 * java/text/StringCharacterIterator.java: Reindented.
3946 (setText): New method.
3948 2000-11-17 Mark Wielaard <mark@klomp.org>
3950 Merge with Classpath (changes by Bryce McKinlay)
3951 * java/util/jar/*.java: Reformat all to unofficial standard coding
3952 style. No changes of substance.
3954 2000-11-17 Mark Wielaard <mark@klomp.org>
3956 * java/util/zip/*.java: Javadoc updates.
3958 2000-11-17 Tom Tromey <tromey@cygnus.com>
3960 * java/text/CollationKey.java: Implement Comparable.
3961 (compareTo(Object)): New method.
3962 * java/text/Collator.java (compare(Object,Object)): New method.
3963 Implement Comparator.
3965 * java/util/zip/InflaterInputStream.java (available): New method.
3966 (close): New method.
3967 (read, available, skip, fill): Throw exception if stream closed.
3968 * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3969 getNextEntry): Throw exception if closed.
3971 2000-11-16 Tom Tromey <tromey@cygnus.com>
3973 * java/io/PushbackReader.java: Merged with Classpath.
3974 * java/util/Arrays.java: Updated from Classpath.
3976 * scripts/blocks.pl: New file.
3977 * java/lang/Character.java (Subset): New class.
3978 (UnicodeBlock): New class.
3980 * java/lang/Math.java (toDegrees, toRadians): New methods.
3982 * java/lang/Float.java: Implement Comparable.
3983 (compareTo): New methods.
3984 * java/lang/Double.java: Implement Comparable.
3985 (compareTo): New methods.
3987 2000-11-16 Warren Levy <warrenl@cygnus.com>
3989 * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3991 (listeners): Made transient.
3992 (source): Renamed from 'bean'.
3993 (children): New field for serialization.
3994 (propertyChangeSupportSerializedDataVersion): Ditto.
3995 (serialVersionUID): Ditto.
3996 (writeObject): New serialization method.
3997 (readObject): New serialization method.
3998 * java/beans/VetoableChangeSupport.java (propertyListeners): Made
4000 (listeners): Made transient.
4001 (source): Renamed from 'bean'.
4002 (children): New field for serialization.
4003 (vetoableChangeSupportSerializedDataVersion): Ditto.
4004 (serialVersionUID): Ditto.
4005 (writeObject): New serialization method.
4006 (readObject): New serialization method.
4007 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
4008 to allow constructor to have a return type (i.e. the class that the
4009 constructor constructs).
4011 2000-11-14 Tom Tromey <tromey@cygnus.com>
4013 * Makefile.in: Rebuilt.
4014 * Makefile.am (libgcj.zip): Fail immediately if compilation fails
4017 2000-11-02 Warren Levy <warrenl@cygnus.com>
4019 * java/io/ObjectInputStream.java (readObject): Added code to
4020 conditionally dump out the serialized data.
4021 Handle ENDBLOCKDATA case a bit more gracefully since the current
4022 behavior doesn't seem to work as expected.
4023 (readStreamHeader): Added code for serialized data dumper.
4024 (readNextBlock): Ditto.
4025 (readFields): Ditto.
4026 (dump): New private static field for turning on/off dumper.
4027 (setDump): New native method.
4028 (dumpElement): New native method.
4029 (dumpElementln): New native method.
4030 * java/io/natObjectInputStream.cc (setDump): New method.
4031 (dumpElement): New method.
4032 (dumpElementln): New method.
4034 2000-11-02 Warren Levy <warrenl@cygnus.com>
4036 * java/net/InetAddress.java (addr): Renamed from 'address'.
4037 (address): New field to match Serialized Form doc.
4038 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4039 (family): New serialization field.
4040 (serialVersionUID): New field.
4041 (readObject): New method.
4042 (writeObject): New method.
4043 (getFamily): New native method.
4044 (InetAddress): Set family.
4045 * java/net/natInetAddress.cc (getFamily): New method.
4046 (addr): Renamed from 'address'.
4047 (hostName): Renamed from 'hostname' to match Serialized Form doc.
4048 * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
4049 * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
4051 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
4053 * java/util/AbstractList.java (SubList): Make it a top-level private
4055 * java/util/LinkedList.java (remove): Do update modCount and knownMod.
4057 * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
4058 * Makefile.in: Rebuilt.
4060 2000-11-02 Tom Tromey <tromey@cygnus.com>
4062 * Makefile.in: Rebuilt.
4063 * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
4066 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4068 * java/util/AbstractList.java (remove): Comment out modCount increment
4069 to work around compiler bug.
4072 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
4074 * java/util/AbstractList.java: Throw messages with
4075 IndexOutOfBoundsExceptions.
4076 (listIterator()): Call listIterator(0).
4077 (size): New field. Initialize to size().
4078 (hasNext): Test position against size, not size().
4079 (remove): Increment knownMod by one instead of resetting it from
4082 (SubList.upMod): Removed.
4083 (SubList.set): Don't call upMod() or update knownMod.
4084 (SubList.add(int,Object)): Increment modCount instead of caling upMod().
4085 (SubList.remove): Ditto.
4086 (SubList.addAll): Don't call backingList.size(). Increment size from
4088 (SubList.iterator): New method. Call listIterator(0).
4089 (SubList.listIterator): New method. Restore code to return an anonymous
4090 listIterator implementation (with some changes).
4091 * java/util/AbstractSequentialList.java: Throw messages with
4092 IndexOutOfBoundsExceptions.
4093 (addAll): Add a specnote.
4094 * java/util/ArrayList.java (removeRange): Get the math right.
4095 (addAll): Increment modCount _before_ creating iterator.
4096 * java/util/LinkedList.java: Rewritten, mostly.
4098 2000-11-01 Tom Tromey <tromey@cygnus.com>
4100 * scripts/encodings.pl: Added `ASCII' alias.
4101 * Makefile.in: Rebuilt.
4102 * Makefile.am (convert_source_files): Added new files.
4103 * gnu/gcj/convert/Input_ASCII.java: New file.
4104 * gnu/gcj/convert/Output_ASCII.java: New file.
4105 * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
4106 out-of-range characters.
4107 * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
4108 (read): Swap bytes if required. Treat `count' as character count,
4110 (write): Likewise. Also, handle case where iconv fails on a given
4112 (init): Put encoding into exception.
4113 * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
4114 (static): Call iconv_init. Rebuilt alias list.
4115 (iconv_init): New private method.
4117 2000-11-01 Tom Tromey <tromey@cygnus.com>
4119 * Makefile.in: Rebuilt.
4120 * Makefile.am (install-exec-hook): Only make a single symlink, and
4121 remove the destination before making the link.
4122 * configure: Rebuilt.
4123 * configure.in: Call AC_PROG_LN_S.
4125 2000-10-31 Warren Levy <warrenl@cygnus.com>
4127 * jni.cc: Added include of java/lang/ThreadGroup.h.
4128 * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
4129 per change of 2000-10-05.
4131 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
4133 * java/util/BitSet.java: Updated @specnote.
4135 * java/io/Reader.java: Merge docs from classpath.
4136 (skip): Synchronize on `lock'.
4137 * java/io/FileReader.java: Import correct implementation from
4139 * java/io/StringReader.java: Merge docs from classpath.
4140 (ready): Throw IOException if stream is closed.
4142 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
4144 * java/util/AbstractCollection.java (addAll): Use size() instead of
4145 hasNext() in iterator loop.
4147 (contains): Ditto. Simplify loop.
4148 (containsAll): Ditto.
4153 (toString): Ditto. Use string concatenation operators, not
4155 * java/util/AbstractList.java (addAll): Use size() instead of
4156 hasNext() in iterator loop.
4159 (indexOf): Ditto. Don't take null check outside of the loop.
4160 (iterator): Return an AbstractListItr instead of anonymous class.
4161 (lastIndexOf): Use a for loop bounded by size() instead of
4162 hasPrevious() in iterator loop.
4163 (listIterator): Return an AbstractListItr.
4164 (removeRange): Remove bounds checking code and docs.
4165 (AbstractListItr): New inner class. Code moved here from
4167 (SubList.iterator): Removed. Use default implementation from
4168 AbstractList instead.
4169 (SubList.listIterator): As above.
4170 * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
4171 instead of hasNext() in iterator loop.
4172 (containsValue): Ditto.
4178 (toString): Ditto. Use string concatenation operators, not
4180 * java/util/AbstractSequentialList.java (addAll): Use a for loop
4181 bounded by size() instead of hasNext() in iterator loop.
4182 * java/util/AbstractSet.java (hashCode): Don't catch exception as
4183 part of normal execution flow. Do an explicit null check instead.
4184 * java/util/ArrayList.java (_iSize): Rename to `size'.
4185 (_arData): Rename to `data'.
4186 (get): Check lower bounds also. Simplify IndexOutOfBoundsException
4189 (removeRange): Make protected. Don't check bounds.
4190 (add): Check lower bounds also. Simplify IndexOutOfBoundsException
4192 (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
4194 (addAll (int, Collection)): Check lower bounds. Simplify exception
4196 (clone): Clone the data array too.
4197 (indexOf): Inline doesEqual().
4198 (lastIndexOf): Ditto.
4199 (clear): Don't set array data to null.
4200 (set): Check lower bounds. Simplify exception string.
4201 (toArray): Correct comment.
4202 (trimToSize): Don't update modCount, this is not a structural change.
4205 * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
4207 (toString): Declare `bit' as long, not int.
4208 (data): Made package-private, not private.
4210 2000-10-27 Warren Levy <warrenl@cygnus.com>
4212 * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
4213 array elements to true.
4215 2000-10-27 Warren Levy <warrenl@cygnus.com>
4217 * Makefile.am: Added locale files from Classpath.
4218 * Makefile.in: Rebuilt.
4219 * gnu/java/locale/Calendar.java: New file.
4220 * gnu/java/locale/Calendar_de.java: New file.
4221 * gnu/java/locale/Calendar_en.java: New file.
4222 * gnu/java/locale/Calendar_nl.java: New file.
4223 * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
4224 * java/math/BigDecimal.java (intVal): Renamed from 'num' for
4225 serialization compatibility.
4226 (scale): Made private.
4227 (serialVersionUID): New field.
4228 * java/math/BigInteger.java (ival): Made transient.
4229 (words): Made transient.
4230 (bitCount): New serialization field.
4232 (firstNonzeroByteNum): Ditto.
4233 (lowestSetBit): Ditto.
4236 (serialVersionUID): New field.
4237 (readObject): New method.
4238 (writeObject): New method.
4239 * java/util/BitSet.java (serialVersionUID): New field.
4240 * java/util/Calendar.java: Replaced with Classpath file.
4241 * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
4242 of getDefault() for TimeZone or Locale instead of passing nulls.
4243 * java/util/Locale.java (serialVersionUID): New field.
4244 (writeObject): New method.
4245 (readObject): New method.
4246 * java/util/SimpleTimeZone.java: Replaced with Classpath file.
4248 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
4250 * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
4251 (core_java_source_files): Put java.lang, java.io, and java.util here.
4252 (ordinary_java_source_files): Order so that core_java_source_files are
4254 (java_source_files): Reorder so that special_java_source_files are
4256 * configure.in: Don't pass -I flag to gcj.
4257 * Makefile.in: Rebuilt.
4258 * configure: Rebuilt.
4260 2000-10-25 Tom Tromey <tromey@cygnus.com>
4262 * Makefile.in: Rebuilt.
4263 * Makefile.am (install-exec-hook): New target.
4265 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
4267 * java/util/EventObject.java: Merged from classpath.
4269 * java/lang/ThreadGroup.java (uncaughtException): Print thread name
4272 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4274 * java/util/AbstractSet.java (equals): Re-installed original code.
4276 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
4278 * Makefile.am: Added rules for libgcjx library.
4279 * Makefile.in: Rebuilt.
4280 * configure.in: Added check for X.
4281 * configure: Rebuilt.
4282 * gnu/awt/LightweightRedirector.java: New file.
4283 * gnu/awt/j2d/AbstractGraphicsState.java: New file.
4284 * gnu/awt/j2d/DirectRasterGraphics.java: New file.
4285 * gnu/awt/j2d/Graphics2DImpl.java: New file.
4286 * gnu/awt/j2d/IntegerGraphicsState.java: New file.
4287 * gnu/awt/j2d/MappedRaster.java: New file.
4288 * gnu/awt/xlib/XCanvasPeer.java: New file.
4289 * gnu/awt/xlib/XEventLoop.java: New file.
4290 * gnu/awt/xlib/XEventQueue.java: New file.
4291 * gnu/awt/xlib/XFontMetrics.java: New file.
4292 * gnu/awt/xlib/XFramePeer.java: New file.
4293 * gnu/awt/xlib/XGraphics.java: New file.
4294 * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
4295 * gnu/awt/xlib/XPanelPeer.java: New file.
4296 * gnu/awt/xlib/XToolkit.java: New file.
4297 * gnu/gcj/xlib/Clip.java: New file.
4298 * gnu/gcj/xlib/Colormap.java: New file.
4299 * gnu/gcj/xlib/Display.java: New file.
4300 * gnu/gcj/xlib/Drawable.java: New file.
4301 * gnu/gcj/xlib/Font.java: New file.
4302 * gnu/gcj/xlib/GC.java: New file.
4303 * gnu/gcj/xlib/Pixmap.java: New file.
4304 * gnu/gcj/xlib/Screen.java: New file.
4305 * gnu/gcj/xlib/Visual.java: New file.
4306 * gnu/gcj/xlib/WMSizeHints.java: New file.
4307 * gnu/gcj/xlib/Window.java: New file.
4308 * gnu/gcj/xlib/WindowAttributes.java: New file.
4309 * gnu/gcj/xlib/XAnyEvent.java: New file.
4310 * gnu/gcj/xlib/XButtonEvent.java: New file.
4311 * gnu/gcj/xlib/XColor.java: New file.
4312 * gnu/gcj/xlib/XConfigureEvent.java: New file.
4313 * gnu/gcj/xlib/XConnectException.java: New file.
4314 * gnu/gcj/xlib/XEvent.java: New file.
4315 * gnu/gcj/xlib/XException.java: New file.
4316 * gnu/gcj/xlib/XExposeEvent.java: New file.
4317 * gnu/gcj/xlib/XID.java: New file.
4318 * gnu/gcj/xlib/XImage.java: New file.
4319 * gnu/gcj/xlib/XUnmapEvent.java: New file.
4320 * gnu/gcj/xlib/natClip.cc: New file.
4321 * gnu/gcj/xlib/natColormap.cc: New file.
4322 * gnu/gcj/xlib/natDisplay.cc: New file.
4323 * gnu/gcj/xlib/natDrawable.cc: New file.
4324 * gnu/gcj/xlib/natFont.cc: New file.
4325 * gnu/gcj/xlib/natGC.cc: New file.
4326 * gnu/gcj/xlib/natPixmap.cc: New file.
4327 * gnu/gcj/xlib/natScreen.cc: New file.
4328 * gnu/gcj/xlib/natVisual.cc: New file.
4329 * gnu/gcj/xlib/natWMSizeHints.cc: New file.
4330 * gnu/gcj/xlib/natWindow.cc: New file.
4331 * gnu/gcj/xlib/natWindowAttributes.cc: New file.
4332 * gnu/gcj/xlib/natXAnyEvent.cc: New file.
4333 * gnu/gcj/xlib/natXButtonEvent.cc: New file.
4334 * gnu/gcj/xlib/natXColor.cc: New file.
4335 * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
4336 * gnu/gcj/xlib/natXException.cc: New file.
4337 * gnu/gcj/xlib/natXExposeEvent.cc: New file.
4338 * gnu/gcj/xlib/natXImage.cc: New file.
4339 * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
4340 * java/awt/EventDispatchThread.java: Start thead on creation.
4342 2000-10-20 Tom Tromey <tromey@cygnus.com>
4344 From Arno J. Klaassen:
4345 * interpret.cc: Include <stdlib.h> for alloca.
4346 * defineclass.cc: Include <stdlib.h> for alloca.
4348 * Makefile.in: Rebuilt.
4349 * Makefile.am: Include deps.mk.
4350 (GCJCOMPILE): Added -MD, -MT, and -MF.
4351 ($(javao_files)): Don't depend on libgcj.zip.
4352 (all-recursive): New target.
4353 (%.lo:%.cc): Do dependency tracking.
4354 ($(nat_headers)): Don't depend on libgcj.zip.
4355 * configure: Rebuilt.
4356 * configure.in: Make .d files and deps.mk.
4358 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
4360 * exception.cc: Don't #include "exception".
4361 (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
4363 * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
4364 * Makefile.in: Updated.
4366 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
4368 * java/awt/peer/ChoicePeer.java (addItem): Removed.
4369 * java/awt/peer/ComponentPeer.java (disable): Removed.
4372 (minimumSize): Removed.
4373 (preferredSize): Removed.
4376 * java/awt/peer/ListPeer.java (addItem): Removed.
4378 (minimumSize): Removed.
4379 (preferredSize): Removed.
4380 (setMultipleSelections): Removed.
4381 * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
4382 (remove): Renamed from removeMenu.
4383 * java/awt/peer/MenuItemPeer.java (disable): Removed.
4385 * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
4386 (remove): Renamed from removeItem.
4387 * java/awt/peer/TextAreaPeer.java (insertText): Removed.
4388 (getMinimumSize): Removed.
4389 (getPreferredSize): Removed.
4390 (minimumSize): Removed.
4391 (preferredSize): Removed.
4392 (replaceText): Removed.
4393 * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
4394 (preferredSize): Removed.
4395 (getMinimumSize): Removed.
4396 (getPreferredSize): Removed.
4397 (setEchoCharacter): Removed.
4399 2000-10-10 Warren Levy <warrenl@cygnus.com>
4401 * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
4402 * java/sql/Date.java (serialVersionUID): New field.
4403 * java/sql/Time.java (serialVersionUID): New field.
4404 * java/sql/Timestamp.java (serialVersionUID): New field.
4405 * java/text/ChoiceFormat.java (serialVersionUID): New field.
4406 * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
4407 * java/text/DateFormatSymbols.java (serialVersionUID): New field.
4408 * java/text/DecimalFormat.java (serialVersionOnStream): New field.
4409 (readObject): New serialization method.
4410 * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
4411 (serialVersionOnStream): New field.
4412 (readObject): New serialization method.
4413 (getMonetaryDecimalSeparator): New method.
4414 (setMonetaryDecimalSeparator): New method.
4415 * java/text/NumberFormat.java (maxFractionDigits): New field.
4416 (maxIntegerDigits): New field.
4417 (minFractionDigits): New field.
4418 (minIntegerDigits): New field.
4419 (serialVersionOnStream): New field.
4420 (serialVersionUID): New field.
4421 (readObject): New serialization method.
4422 (writeObject): New serialization method.
4423 * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
4424 (serialVersionOnStream): New field.
4425 (serialVersionUID): New field.
4426 (readObject): New serialization method.
4428 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
4430 * configure.in (GCJ): Avoid bogus error message when looking for
4431 (and not finding) gcj in the build tree.
4432 * configure: Rebuilt.
4434 2000-10-09 Tom Tromey <tromey@cygnus.com>
4436 * configure: Rebuilt.
4437 * configure.in: Include sys/types.h when checking for socklen_t.
4438 From Arno J. Klaassen.
4440 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
4442 * include/jvm.h: Enable __builtin_expect().
4444 * name-finder.cc (lookup): Don't trust dladdr() if the address is from
4445 the main program. Fix for PR libgcj/341.
4447 2000-10-07 Tom Tromey <tromey@cygnus.com>
4449 * java/util/Properties.java: Merged with Classpath version.
4451 2000-10-05 Tom Tromey <tromey@cygnus.com>
4453 * java/lang/reflect/natField.cc (BooleanClass): Don't define.
4454 * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
4455 * java/lang/Class.h (Object): Added `class$' field.
4456 * java/lang/Object.h (Object): Added `class$' field.
4457 * defineclass.cc (ClassClass): Use `class$' form.
4458 (ClassObject): Likewise.
4459 * resolve.cc (ClassObject): Use `class$' form.
4460 (ObjectClass): Likewise.
4461 * interpret.cc (ClassError): Removed.
4462 * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
4464 (IntegerClass): Likewise.
4465 * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
4467 * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
4468 (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
4469 SerializableClass): Likewise.
4470 Include Serializable.h, Cloneable.h.
4471 * java/lang/natSystem.cc (SystemClass): Removed.
4472 (init_properties): Use `class$' form.
4473 * java/lang/natObject.cc (CloneableClass): Removed.
4474 (clone): Use `class$' form.
4475 * java/lang/natClass.cc (CloneableClass): Use `class$' form.
4476 (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
4477 ConstructorClass): Likewise.
4478 * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
4479 (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
4480 IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
4481 * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
4483 (ClassClass): Likewise.
4484 * include/jvm.h (StringClass): Use `class$' form.
4485 * prims.cc (ObjectClass): Removed.
4486 (_Jv_RunMain): Use `class$' form.
4487 (_Jv_AllocObject): Likewise.
4488 * jni.cc (ClassClass): Use `class$' form.
4489 (ThrowableClass): Likewise.
4490 (ObjectClass): Likewise.
4491 (MethodClass): Likewise.
4492 (ThreadGroupClass): Likewise.
4493 (NativeThreadClass): Likewise.
4494 * boehm.cc (ObjectClass): Removed.
4495 (ClassClass): Removed.
4496 (_Jv_MarkObj): Use `class$' form.
4497 * gcj/field.h (JvFieldIsRef): Use `class$' form.
4500 2000-10-05 Warren Levy <warrenl@cygnus.com>
4502 * Makefile.am: Removed java/io/Replaceable.java and
4503 java/io/Resolvable.java.
4504 * Makefile.in: Rebuilt.
4505 * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
4507 * java/io/ObjectInputStream.java (processResolution): Fixed typo
4509 (processResolution): Handle readResolve method via reflection with
4510 removal of Resolvable interface.
4511 * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
4512 method via reflection with removal of Replaceable interface.
4513 * java/io/Replaceable.java: Removed.
4514 * java/io/Resolvable.java: Removed.
4515 * java/security/Key.java (serialVersionUID): New field.
4516 * java/security/Provider.java (serialVersionUID): New field.
4517 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
4519 * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
4521 * java/sql/DataTruncation.java (serialVersionUID): New field.
4522 * java/sql/SQLException.java (serialVersionUID): New field.
4523 * java/sql/SQLWarning.java (serialVersionUID): New field.
4524 * java/util/Date.java (serialVersionUID): New field.
4525 (millis): Made transient.
4526 (readObject): New method.
4527 (writeObject): New method.
4529 2000-10-05 Tom Tromey <tromey@cygnus.com>
4531 * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
4533 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
4535 * prims.cc (_Jv_argv, _Jv_argc): New fields.
4536 (JvRunMain): Set _Jv_argv and _Jv_argc.
4537 * java/awt/Component.java: Minor fixes.
4538 * java/awt/Image.java (UndefinedProperty): Initialize final field.
4539 * java/awt/Toolkit.java (systemEventQueue): Removed.
4540 (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
4541 * java/awt/Window.java (getToolkit): Don't call super.
4542 * java/awt/image/BufferedImage.java: Fix definate assignment errors.
4543 * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
4544 * gnu/awt/gtk/GtkComponentPeer.java: New file.
4545 * gnu/awt/gtk/GtkContainerPeer.java: New file.
4546 * gnu/awt/gtk/GtkFramePeer.java: New file.
4547 * gnu/awt/gtk/GtkMainThread.java: New file.
4548 * gnu/awt/gtk/GtkToolkit.java: New file.
4549 * gnu/awt/gtk/GtkWindowPeer.java: New file.
4550 * gnu/awt/gtk/gtkcommon.cc: New file.
4551 * gnu/awt/gtk/gtkcommon.h: New file.
4552 * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
4553 * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
4554 * gnu/awt/gtk/natGtkFramePeer.cc: New file.
4555 * gnu/awt/gtk/natGtkMainThread.cc: New file.
4556 * gnu/awt/gtk/natGtkToolkit.cc: New file.
4557 * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
4559 2000-09-30 Tom Tromey <tromey@cygnus.com>
4561 * posix-threads.cc (_Jv_CondWait): Check to see if we are
4562 interrupted before modifying the cv's wait set.
4565 2000-09-30 Hans Boehm <boehm@acm.org>
4566 Bryce McKinlay <bryce@albatross.co.nz>
4568 Implement bitmap descriptor based marking for Boehm GC.
4570 * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
4571 * configure: Rebuilt.
4572 * libgcj.spec.in: Pass JC1GCSPEC to jc1.
4573 * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
4574 method get_finalizer().
4575 (struct _Jv_ArrayVTable): Ditto. Declare method array with
4576 NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
4577 (_Jv_AllocObj): Add new jclass parameter.
4578 (_Jv_AllocArray): Ditto.
4579 (_Jv_BuildGCDescr): New prototype.
4580 * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
4581 `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
4582 get_finalizer() instead of direct finalizer vtable offset.
4583 (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
4584 `klass' to _Jv_AllocArray. Don't set the new array's vtable.
4585 (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
4586 `klass' to _Jv_AllocObj. Don't set the new array's vtable.
4587 * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
4588 (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
4589 (_Jv_DetermineVTableIndex): Ditto.
4590 (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
4591 calculations to account for new gc_descr field.
4592 * boehm.cc: #include gc_gcj.h.
4593 (obj_kind_x, obj_free_list): `#if 0'-ed away.
4594 (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
4595 New commentary from HB. Mark the classes vtable.
4596 (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
4597 (GC_DEFAULT_DESCR): New #define.
4598 (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
4599 (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
4600 (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
4601 scan conservativly if size is less than min_heap_addr. Set vtable
4602 pointer of new object before returning.
4603 (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
4604 (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
4605 allocation for obj_kind_x.
4606 * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
4607 (_Jv_AllocObj): Set vtable on returned object.
4608 (_Jv_AllocArray): Ditto.
4609 * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
4610 (_Jv_NewPrimArray): Ditto.
4611 (_Jv_AllocObj): Declare as a friend.
4612 (_Jv_AllocArray): Ditto.
4613 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
4614 from &ObjectClass into new array class. Remove offset-by-one
4615 adjustments from `method' size calculations to account for gc_descr
4618 2000-09-26 Tom Tromey <tromey@cygnus.com>
4620 * java/awt/Scrollbar.java (removeAdjustmentListener): Use
4621 `remove', not `add'.
4623 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
4625 * java/lang/natSystem.cc (file_encoding): Added return statement.
4627 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4629 * Makefile.am: Re-work shell commands that exceeded command-line
4631 * Makefile.in: Rebuilt.
4633 * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
4635 * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
4636 * java/lang/natDouble.cc: Likewise.
4637 * java/lang/reflect/natMethod.cc: Likewise.
4638 * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
4640 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
4642 * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
4644 (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
4645 * acinclude.m4: Arrange for automake to not bring in a new
4646 libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
4647 * Makefile.am: Leave it up to automake to subst GCJ.
4648 * aclocal.m4, configure, Makefile.in: Rebuilt.
4650 2000-09-13 Tom Tromey <tromey@cygnus.com>
4652 * java/lang/reflect/natArray.cc (BooleanClass): New define.
4653 (get): Ensure Boolean class is initialized.
4654 * java/lang/reflect/natField.cc (BooleanClass): New define.
4655 (get): Ensure Boolean class is initialized.
4657 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
4659 * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
4660 Initialize with anonymous class.
4661 (compareToIgnoreCase): New method.
4663 * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
4664 (uncaughtException): Set had_uncaught_exception.
4665 * prims.cc (JvRunMain): Check value of had_uncaught_exception and
4666 exit with error status if set.
4667 (_Jv_RunMain): Ditto.
4669 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
4671 * configure: Rebuilt with new ../libtool.m4.
4673 2000-09-11 Tom Tromey <tromey@cygnus.com>
4675 * java/lang/reflect/Field.java (toString): Don't rely on
4678 2000-09-08 Tom Tromey <tromey@cygnus.com>
4680 * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
4681 default decoder use iconv.
4682 * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
4683 Let default encoder use iconv.
4684 * configure: Rebuilt.
4685 * configure.in: Check for nl_langinfo and <langinfo.h>.
4686 * java/lang/natSystem.cc (file_encoding): New function.
4687 (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
4689 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
4691 * acinclude.m4: Simplify the tests for CC and CXX.
4692 * aclocal.m4, configure: Rebuilt.
4694 * acinclude.m4: Include libtool macros from the source tree.
4695 * aclocal.m4, configure: Rebuilt.
4697 2000-09-08 Warren Levy <warrenl@cygnus.com>
4699 * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
4700 * java/beans/PropertyVetoException.java (serialVersionUID): Added.
4701 * java/io/File.java (writeObject): Added.
4702 (readObject): Added.
4703 (serialVersionUID): Added.
4704 * java/io/ObjectOutputStream.java (writeObject): Initialized
4705 fieldsAlreadyWritten before recursion rather than after.
4706 * java/io/ObjectStreamClass.java (serialVersionUID): Added.
4707 * java/io/OptionalDataException.java (serialVersionUID): Added.
4708 (OptionalDataException): Made package private.
4709 * java/io/SyncFailedException.java (SyncFailedException): Removed
4710 default constructor to match spec.
4711 * java/lang/Boolean.java (serialVersionUID): Added.
4712 * java/lang/Byte.java (serialVersionUID): Added.
4713 * java/lang/Character.java (serialVersionUID): Added.
4714 * java/lang/Double.java (serialVersionUID): Added.
4715 * java/lang/Float.java (serialVersionUID): Added.
4716 * java/lang/Integer.java (serialVersionUID): Added.
4717 * java/lang/Long.java (serialVersionUID): Added.
4718 * java/lang/Number.java (serialVersionUID): Added.
4719 * java/lang/Short.java (serialVersionUID): Added.
4720 * java/lang/String.java (serialVersionUID): Added.
4721 * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
4723 * java/lang/reflect/InvocationTargetException.java
4724 (serialVersionUID): Added.
4725 * java/net/URL.java (handler): Made transient.
4726 (hashCode): Added field for serialization, per spec. and use
4727 cached value if available.
4728 (serialVersionUID): Added.
4729 (URL): Initialize hashCode.
4730 (set): Adjust hashCode.
4731 (readObject): New Method to initialize the protocol handler when
4733 (writeObject): New method.
4734 * java/text/BreakIterator.java: Removed 'implements Serializable'.
4735 * java/text/Collator.java: Removed 'implements Serializable'.
4736 * java/util/GregorianCalendar.java (serialVersionUID): Added.
4737 * java/util/Properties.java (serialVersionUID): Added.
4738 * java/util/Random.java (serialVersionUID): Added.
4739 (seed): Made private.
4740 (nextNextGaussian): Made private.
4741 (haveNextNextGaussian): Made private.
4742 * java/util/Stack.java (serialVersionUID): Added.
4743 * java/util/TimeZone.java (serialVersionUID): Added.
4744 * java/util/Vector.java (serialVersionUID): Added.
4746 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
4748 * Makefile.am (Thread.h): Don't be friends with native threads
4750 * Makefile.in: Rebuilt.
4751 * java/lang/Thread.java (interrupt_flag): Make package-private.
4753 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
4755 * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
4756 to avoid long long division.
4758 2000-09-06 Tom Tromey <tromey@cygnus.com>
4760 * java/lang/reflect/Constructor.java (toString): Use `getName' for
4762 * java/lang/reflect/Method.java (toString): Use `getName' for
4765 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
4766 `args' if method takes no parameters.
4768 Fix for PR java.lang/339:
4769 * java/lang/natPosixProcess.cc (fail): New function.
4770 (cleanup): New function.
4771 (startProcess): Use them. Create pipe so child can communicate
4772 exec failure back to parent.
4774 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4776 * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
4778 (send): Undo last patch. Remove the label only.
4780 * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
4782 * java/net/natInetAdress.cc: Ditto.
4784 * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
4786 2000-09-05 Tom Tromey <tromey@cygnus.com>
4788 * doc/cni.sgml: Updated from master copy.
4790 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
4792 * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
4794 * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
4796 * java/lang/fdlibm.h: #undef __P if previously defined.
4797 * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
4798 * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
4802 2000-09-04 Tom Tromey <tromey@cygnus.com>
4804 * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
4807 2000-09-04 Anthony Green <green@redhat.com>
4809 Fix for PR java.io/203:
4810 * java/io/File.java (createTempFile): Obey directory argument.
4811 Use java.io.tmpdir if needed. Don't leave FileDescripators open.
4812 * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
4813 variable to set java.io.tmpdir on non-WIN32 systems.
4815 2000-09-04 Anthony Green <green@redhat.com>
4817 * java/io/File.java (deleteOnExit): New method.
4818 * gnu/gcj/runtime/FileDeleter.java: New class.
4819 * java/lang/natRuntime.cc (exit): Call
4820 FileDeleter.deleteOnExitNow()
4821 * Makefile.am: Add FileDeleter.java.
4822 * Makefile.in: Rebuilt.
4824 2000-09-02 Tom Tromey <tromey@cygnus.com>
4826 * Makefile.in: Rebuilt.
4827 * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
4828 environment variable.
4830 2000-09-01 Andrew Haley <aph@redhat.com>
4832 * java/io/StreamTokenizer.java: Don't throw a
4833 NumberFormatException if a field is numeric as far as the
4834 StreamTokenizer is concerned but not as far as Double.valueOf() is
4835 concerned: return a zero instead.
4837 2000-08-30 Tom Tromey <tromey@cygnus.com>
4839 * Makefile.in: Rebuilt.
4840 * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
4842 2000-08-28 Tom Tromey <tromey@cygnus.com>
4844 * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
4845 gnu/gcj/awt/ComponentDataBlitOp.java,
4846 gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
4847 java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
4848 java/awt/color/ICC_ColorSpace.java,
4849 java/awt/color/ICC_Profile.java,
4850 java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
4851 java/awt/image/ComponentColorModel.java,
4852 java/awt/image/ComponentSampleModel.java,
4853 java/awt/image/DataBuffer.java,
4854 java/awt/image/DataBufferByte.java,
4855 java/awt/image/DataBufferInt.java,
4856 java/awt/image/DataBufferUShort.java,
4857 java/awt/image/DirectColorModel.java,
4858 java/awt/image/IndexColorModel.java,
4859 java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
4860 java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
4861 java/awt/image/SinglePixelPackedSampleModel.java,
4862 java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
4863 Removed Latin-1 copyright symbols.
4864 * java/util/zip/ZipFile.java: Indentation fixes.
4866 2000-08-27 Mark Wielaard <mark@klomp.org>
4868 * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
4869 constructor, close can delete the file, finalize calls close.
4870 * java/util/jar/JarFile.java: Constructor that takes mode now
4873 2000-08-27 Anthony Green <green@redhat.com>
4875 * java/util/ArrayList.java, java/util/Timer.java,
4876 java/util/LinkedList.java, java/util/TimerTask.java,
4877 java/util/HashMap.java, java/util/AbstractMap.java,
4878 java/util/SortedMap.java, java/util/AbstractSequentialList.java,
4879 java/util/SortedSet.java: Imported from GNU Classpath.
4880 * Makefile.in: Rebuilt.
4881 * Makefile.am: Added new files.
4883 2000-08-26 Anthony Green <green@redhat.com>
4885 * Makefile.in: Rebuilt.
4886 * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
4889 * prims.cc: Include ClassLoader.h.
4890 (_Jv_RunMain): When executing jar files, classpath must be the jar
4891 file only. Lose our reference to the system ClassLoader in order
4892 to get a new one with the correct classpath.
4893 * java/lang/natSystem.cc (init_properties): When executing a jar
4894 file, only use the jar file for java.class.path.
4896 * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
4897 for bytecode archives.
4899 * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
4900 exists, but not Main-Class.
4902 2000-08-23 Mark Wielaard <mark@klomp.org>
4904 * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
4905 return -1 when fill() has no more data for the Inflater.
4907 2000-08-23 Mark Wielaard <mark@klomp.org>
4909 * java/io/PrintWriter.java (print(String)): Don't catch IOException,
4910 write(String) already does.
4912 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
4914 * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
4915 to `alive_flag', call `init'.
4916 (init): New native method.
4917 * gnu/gcj/jni/natNativeThread.cc (init): New native method
4920 2000-08-21 Mark Wielaard <mark@klomp.org>
4922 * Makefile.in: Rebuilt.
4923 * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
4925 (java/lang/reflect/Field.h): Likewise.
4926 (java/lang/reflect/Method.h): Likewise.
4927 (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
4930 2000-08-21 Tom Tromey <tromey@cygnus.com>
4932 * java/util/ResourceBundle.java (trySomeGetBundle): Removed
4935 Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
4937 * java/lang/natSystem.cc (init_properties): Change sourceware
4938 reference to sources.redhat.com.
4940 * include/java-props.h: Add _Jv_Jar_Class_Path.
4941 * prims.cc: Ditto. Set it from `gij -jar file' option.
4943 * java/lang/natSystem.cc (init_properties): Set java.class.path
4945 {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
4947 * java/util/PropertyPermission.java: Import from GNU Classpath.
4948 * Makefile.in: Rebuilt.
4949 * Makefile.am: Add java/util/PropertyPermission.java.
4950 * java/lang/System.java: Add setProperty method.
4952 * gij.cc (main): Add -jar option to execute jar files.
4953 (help): Describe -jar option.
4954 * prims.cc (_Jv_RunMain): Add support for jar execution mode.
4955 * include/jvm.h: Add is_jar argument to _Jv_RunMain.
4956 * gnu/gcj/runtime/FirstThread.java (main): New method.
4958 * java/util/jar/Attributes.java: Correct comment spelling.
4960 2000-08-20 Mark Wielaard <mark@klomp.org>
4962 * java/util/zip/Adler32.java: Make private variables really private
4963 * java/util/zip/CRC32.java: Make private variables really private
4964 * java/util/zip/CheckedInputStream.java: skip() could skip to much
4966 * java/util/zip/InflaterInputStream.java: skip() could skip to
4968 * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
4969 * java/util/zip/ZipFile.java: size() new 1.2 method
4970 * java/util/zip/ZipInputStream.java: Use createZipEntry not new
4971 ZipEntry. since 1.2 available() always returns just 1 or 0 when
4974 Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
4976 * java/util/jar/JarFile.java: Don't call
4977 java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
4980 Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
4982 * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
4983 Read the entire contents of the class file, not just what is
4986 * java/net/JarURLConnection.java: getEntry doesn't take any
4987 arguments. Return null if element is null.
4989 * java/util/zip/ZipFile.java (getInputStream): Read the compressed
4990 size from the archive, not the inflated size.
4992 * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
4993 java.util.zip.ZipFile.getEntry.
4995 * gij.cc (help): Change sourceware reference to
4998 2000-08-19 Tom Tromey <tromey@cygnus.com>
5000 * java/util/zip/ZipInputStream.java (createZipEntry):
5003 Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
5005 * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
5006 java/util/jar/JarException.java, java/util/jar/JarFile.java,
5007 java/util/jar/JarInputStream.java,
5008 java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
5009 java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
5010 java/util/AbstractSet.java, java/util/BasicMapEntry.java,
5011 java/security/cert/CRL.java, java/security/cert/CRLException.java,
5012 java/security/cert/Certificate.java,
5013 java/security/cert/CertificateEncodingException.java,
5014 java/security/cert/CertificateException.java,
5015 java/security/cert/CertificateExpiredException.java,
5016 java/security/cert/CertificateFactory.java,
5017 java/security/cert/CertificateFactorySpi.java,
5018 java/security/cert/CertificateNotYetValidException.java,
5019 java/security/cert/CertificateParsingException.java,
5020 java/security/cert/X509CRL.java,
5021 java/security/cert/X509CRLEntry.java,
5022 java/security/cert/X509Certificate.java,
5023 java/security/cert/X509Extension.java: Imported from Classpath.
5024 * java/util/Hashtable.java: Imported from Classpath.
5026 * java/util/zip/ZipInputStream.java: Create stub for
5029 * gcj/javaprims.h: Updated class list.
5031 * Makefile.in, gcj/Makefile.in: Rebuilt.
5032 * Makefile.am (ordinary_java_source_files): Add these new classes.
5034 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5036 * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
5037 * gnu/gcj/awt/GLightweightPeer.java: New file.
5038 * java/awt/BorderLayout.java: Implemented all methods.
5039 * java/awt/Button.java (actionListener, actionCommand): Renamed
5040 and modifier change.
5041 (addNotify): Call super.
5042 (dispatchEventImpl): New method.
5043 (getListeners): New method.
5044 (label): Made package-private, not private.
5045 * java/awt/Canvas.java: Implemented class body.
5046 * java/awt/Color.java (brighter): New method.
5047 (darker): New method.
5048 (hashCode): New method.
5049 * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
5050 (getGraphicsConfiguration): Delegate to
5051 getGraphicsConfigurationImpl().
5052 (getGraphicsConfigurationImpl): New method.
5053 (getToolkit): Only return value from peer if not null.
5054 (isDisplayable): Check with parent.
5055 (isShowing): No parent implies not showing.
5056 (getForeground): Check parent property if local is null.
5057 (getBackground): Likewise.
5058 (getFont): Likewise.
5059 (setForeground): Inform peer.
5060 (setBackground): Likewise
5061 (setLocale): Invalidate component.
5062 (getColorModel): Implemented.
5063 (setLocation): Invalidate, or ignore if no change.
5064 (setSize): Invalidate, or ignore if no change.
5065 (setBounds): Invalidate, or ignore if no change.
5066 (isOpaque): By default, heavyweight implies opaque.
5067 (isLightweight): Implemented.
5068 (getMaximumSize): Implemented.
5069 (doLayout): Implemented, NOP.
5070 (validate): Implemented, NOP.
5071 (invalidate): Only propagate to parent if parent was valid.
5072 (getGraphics): Implemented.
5073 (getFontMetrics): Implemented.
5074 (update): Implemented.
5075 (paintAll): Implemented.
5076 (repaint): Implemented all repaint methods.
5077 (print): Implemented.
5078 (printAll): Implemented.
5079 (createImage): Implemented.
5080 (dispatchEvent): Give the peer a chance to handle the event.
5081 (dispatchEventImpl): Dispatch paint events.
5082 (enableEvents): Lightweights enable events on parent component.
5083 (coalesceEvents): Coalesce paint events, and select event type
5085 (coalescePaintEvents): New method.
5086 (processEvent): Fix unfortunate ordering of statements, and call
5087 correct method for MOUSE_CLICKED.
5088 (processPaintEvent): New method.
5089 (addNotify): Allow container to notify children before event
5090 mask is set in peer.
5091 (addNotifyContainerChildren): New method.
5092 (removeNotify): Visibility should not change on removeNotify.
5093 (paramString): Implemented.
5094 (list): Implemented two of the list methods.
5095 * Container (myInsets): Removed, insets are managed by peer.
5096 (getInsets): Query peer.
5097 (addImpl): Fix reparenting, enable events for lightweights,
5098 initialize component array.
5099 (validate): Call doLayout in validateTree() instead.
5100 (validateTree): Do nothing if already valid. Call beginValidate(),
5101 endValidate() on peer. Call validateTree() instead of validate()
5102 for children that are containers. Mark valid after validation of
5104 (setFont): Partial implementation.
5105 (paint): Implemented.
5106 (visitChildren): New method.
5107 (visitChild): New method.
5108 (update): Implemented.
5109 (print): Implemented.
5110 (paintComponents): Implemented.
5111 (printComponents): Consider translation and clipping.
5112 (getComponentAt): Ignore invisible children. Return this if no
5114 (addNotify): Call super.
5115 (addNotifyContainerChildren): New method.
5116 (paramString): Implemented.
5117 (list): Implemented.
5118 * java/awt/EventQueue (invokeAndWait): Get system event queue the
5120 (invokeLater): Likewise.
5121 (isDispatchThread): Likewise.
5122 * java/awt/FontMetrics (getLeading): Formula change.
5123 (getDescent): Consider leading also.
5124 (getMaxAscent): Default to getAscent().
5125 (getMaxDescent): Default to getDescent.
5126 (getMaxAdvance): Return value signifying unknown.
5127 (charWidth): Both methods implemented.
5128 (charsWidth): Implemented.
5129 (bytesWidth): Implemented.
5130 (getWidths): Implemented.
5131 * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
5133 (Frame): Rearragend constuctor chaining to disallow null being
5134 passed as a graphics configuration.
5135 (getTitle): Return empty string if null.
5137 (getIconImage): New method.
5138 (setIconImage): New method.
5139 (finalize): New method.
5140 (setMenuBar): Notify peer.
5141 (isResizable): New method.
5142 (setResizable): New method.
5143 (getState): New method.
5145 (remove): Implemented.
5146 (removeNotify): New method.
5147 (getFrames): New method.
5148 * java/awt/Graphics.java: Implemented body of class.
5149 * java/awt/Graphics2D.java: New file.
5150 * java/awt/GraphicsConfiguration.java: Enabled part of the API.
5151 * java/awt/Image.java: Implemented body of class.
5152 * java/awt/Panel.java (Panel): Call correct super constructor.
5153 (addNotify): Implemented.
5154 * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
5155 * java/awt/RenderingHints.java: New file.
5156 * java/awt/Toolkit.java (createComponent): Implemented.
5157 (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
5158 * java/awt/Window.java (Window): Two new constructors. Reordered
5159 constructor chaining.
5160 (getGraphicsConfigurationImpl): New method.
5161 (finalize): Call super.
5162 (addNotify): Call super.
5163 (pack): Do layout stuff.
5164 (show): Ensure that peer exists and that component is valid.
5165 (dispose): Dispose owned children.
5166 (getOwner): Simplify code, casting null pointers is valid.
5167 (getGraphicsConfiguration): Ask peer if local value is null.
5168 * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
5170 * java/awt/image/BufferedImage.java: New file.
5171 * java/awt/image/RasterOp.java: New file.
5172 * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
5173 More powerfull replacement for getColorModel().
5174 (getColorModel) Removed.
5175 (setEventMask) New method.
5176 * Makefile.am: Added new files.
5177 * Makefile.in: Rebuilt.
5179 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
5181 * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
5182 (finit_leg_name): New global.
5183 (java::lang::Class::getDeclaredMethods): Test for `finit$' or
5184 `$finit$'. This is a backward compatibility hack.
5185 (java::lang::Class::_getMethods): Likewise.
5187 2000-08-15 Andrew Haley <aph@cygnus.com>
5189 * include/jvm.h (_Jv_HashCode): New hash code.
5191 2000-08-15 Tom Tromey <tromey@cygnus.com>
5193 * java/io/ByteArrayOutputStream.java: Merged with Classpath.
5195 Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
5197 * THANKS: More thanks.
5199 2000-08-10 Tom Tromey <tromey@cygnus.com>
5201 * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
5203 (connect): Likewise.
5205 (getOption): Likewise.
5206 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
5207 case when errno not set.
5210 (receive): Likewise.
5211 (mcastGrp): Likewise.
5212 (setOption): Likewise.
5213 (getOption): Likewise.
5215 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
5216 John Stracke <francis@ecal.com>
5218 * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
5219 (connect): Don't falsely claim HTTP/1.1 compliance. Call
5221 (disconnect): Don't unset connected flag.
5222 (getHeaderField (String)): Call connect() if not connected.
5223 (getHeaderField (int)): Ditto.
5224 (getHeaderFieldKey): Ditto.
5225 (getHttpHeaders): Don't call connect().
5226 * java/net/HttpURLConnection.java (instanceFollowRedirects,
5227 gotResponseVals): New fields.
5228 (getResponseCode): Call getResponseVals() conditionally.
5229 (getResponseMessage): Ditto.
5230 (getResponseVals): Call connect(). Don't throw FileNotFoundException.
5232 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
5234 * Makefile.am: Move beans and applet classes to awt_java_source_files.
5235 * Makefile.in: Rebuilt.
5236 * java/awt/Color.java (getTransparency): New method.
5237 * java/awt/Component.java: Various updates.
5238 * java/awt/Container.java (removeNotify): Call super.removeNotify()
5239 after dealing with children.
5240 * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
5241 * java/awt/Window.java: Various new methods and updates.
5242 * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
5244 * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
5245 * java/awt/event/WindowEvent.java (paramString): Ditto.
5246 * java/awt/geom/Dimension2D.java (clone): Wrap super call with
5248 * java/awt/geom/Point2D.java (clone): Ditto.
5249 * java/awt/geom/RectangularShape.java (clone): Ditto.
5250 * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
5251 isAlphaPremultiplied): Make package-private, not private.
5253 2000-08-08 Tom Tromey <tromey@cygnus.com>
5255 * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
5256 surrogate characters.
5257 * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
5259 (write): Correct handling of surrogate characters.
5261 2000-08-07 Tom Tromey <tromey@cygnus.com>
5263 * java/lang/reflect/Method.java (hashCode): Use getName().
5264 (toString): Likewise.
5265 * java/lang/reflect/natMethod.cc (getType): Initialize
5268 * java/lang/reflect/Method.java (toString): Use Class.getName, not
5270 * java/lang/reflect/Field.java (toString): Correct formatting.
5273 * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
5275 (receive): Streamlined.
5277 2000-08-05 Tom Tromey <tromey@cygnus.com>
5279 * java/io/PrintWriter.java: Merged comments from Classpath.
5280 (printlnUnsynchronized): Removed.
5281 (println()): Print the separator.
5282 (println): Call println(), not printlnUnsynchronized.
5283 (out): Now protected, to match spec.
5285 2000-08-04 Tom Tromey <tromey@cygnus.com>
5287 * java/io/StreamTokenizer.java (TT_NONE): Now private.
5288 (nextToken): Handle backslashed newline. From Oskar Liljeblad.
5291 2000-08-03 Warren Levy <warrenl@cygnus.com>
5293 * java/io/ObjectInputStream.java (readFields): Turn off
5294 readDataFromBlock while reading via GetField.
5295 (GetField$1.get(String, Object)): Pass Class of default value to
5297 (getField): Allow for null default values.
5299 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5300 (PutField$1.put): Fixed calls of checkType in most of the put
5301 methods to pass the correct parameter.
5302 (PutField$1.put(String, Object)): Allow for null value arg.
5303 (PutField$1.write): Turn off writeDataAsBlocks while writing via
5306 * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
5307 typo in spec'ed field name.
5308 (getSerialPersistentFields): Changed spelling of method to match
5309 the correct spelling of the spec'ed field name.
5311 2000-08-03 Tom Tromey <tromey@cygnus.com>
5313 * Makefile.in: Rebuilt.
5314 * Makefile.am (awt_java_source_files): Added new files.
5316 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5318 * Makefile.am: Add new AWT stubs.
5319 * java/awt/Canvas.java: New placeholder class.
5320 * java/awt/Checkbox.java: Ditto.
5321 * java/awt/CheckboxMenuItem.java: Ditto.
5322 * java/awt/Choice.java: Ditto.
5323 * java/awt/Dialog.java: Ditto.
5324 * java/awt/FileDialog.java: Ditto.
5325 * java/awt/List.java: Ditto.
5326 * java/awt/ScrollPane.java: Ditto.
5327 * java/awt/TextField.java: Ditto.
5328 * java/awt/datatransfer/Clipboard.java: Ditto.
5329 * java/awt/Component.java (treeLock): Now a static String. Add comment.
5330 * java/awt/MenuItem.java (MenuItem): Add default constructor.
5331 * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
5332 Some commented out. Partially implemented.
5333 * java/awt/natToolkit.cc: Removed file.
5335 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
5337 * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
5338 Fixes "make -j" builds.
5339 * Makefile.in: Rebuild.
5341 2000-08-02 Tom Tromey <tromey@cygnus.com>
5343 * Makefile.in: Rebuilt.
5344 * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
5345 * java/net/natPlainSocketImpl.cc: Include posix.h.
5346 (accept): Use _Jv_select.
5347 * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
5348 (receive): Use _Jv_select.
5349 * java/io/natFileDescriptorPosix.cc: Include posix.h.
5350 (available): Use _Jv_select.
5351 * java/lang/natSystem.cc: Include posix.h.
5352 (currentTimeMillis): Use _Jv_gettimeofday.
5353 * include/posix.h: New file.
5354 * posix.cc: New file.
5356 * scripts/encodings.pl: New file.
5357 * Makefile.in: Rebuilt.
5358 * Makefile.am (convert_source_files): Added IOConverter.java.
5359 * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
5361 (getDefaultDecodingClass): Canonicalize default encoding name.
5362 (getEncoder): Likewise.
5363 * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
5365 (getDefaultDecodingClass): Canonicalize default encoding name.
5366 (getDecoder): Likewise.
5367 * gnu/gcj/convert/IOConverter.java: New file.
5369 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
5371 * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
5372 to match C declaration in ffi.h.
5373 * Makefile.am: Add java/awt/Button.java.
5374 * Makefile.in: Rebuilt.
5376 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
5378 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
5379 cast of the second argument to `ffi_raw_call' changed to match
5382 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
5384 * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
5385 argument to `ffi_raw_call' changed to match prototype.
5387 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
5389 * java/awt/Component.java (toString): Implemented.
5390 * java/awt/Container.java (addImpl): Remove FIXME. Only call
5391 dispatchEvent() to dispatch the event.
5392 (removeImpl): Ditto.
5394 2000-07-30 Anthony Green <green@redhat.com>
5396 * java/awt/Component.java: Add treeLock object.
5397 (getTreeLock): Implement.
5398 (isShowing): Implement.
5400 2000-07-30 Tom Tromey <tromey@cygnus.com>
5402 * java/awt/BorderLayout.java (BorderLayout()): New constructor.
5404 * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
5406 * java/awt/Window.java (addNotify): Wrote.
5407 (addWindowListener): Wrote.
5409 (getWarningString): Wrote.
5410 (processEvent): Wrote.
5411 (processWindowEvent): Wrote.
5412 (removeWindowListener): Wrote.
5413 (show): Call validate(), setVisible().
5417 * java/awt/Toolkit.java (createWindow): Declare.
5419 * java/awt/Frame.java (addNotify): Use getToolkit to find
5422 * java/awt/Component.java (invalidate): Wrote.
5424 (getToolkit): Wrote.
5426 * java/awt/Container.java (addContainerListener): Removed
5428 (removeContainerListener): Likewise.
5430 (add(Component)): Use it.
5431 (add(String,Component)): Likewise.
5432 (add(Component,int)): Likewise.
5433 (add(Component,Object)): Likewise.
5434 (add(Component,Object,int)): Likewise.
5436 (getAlignmentX): Wrote.
5437 (getAlignmentY): Wrote.
5438 (getComponentAt): Wrote.
5439 (getMaximumSize): Wrote.
5440 (invalidate): Wrote.
5441 (list(PrintStream,int)): Wrote.
5442 (list(PrintWriter,int)): Wrote.
5443 (getMinimumSize): Wrote.
5444 (getPreferredSize): Wrote.
5445 (printComponents): Wrote.
5446 (processContainerEvent): Look at containerListener, not
5448 (remove): Added event processing and peer destruction.
5449 (removeAll): Use remove.
5450 (removeNotify): Wrote.
5452 (validateTree): Wrote.
5454 * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
5455 * java/awt/Label.java (addNotify): Do nothing if peer exists.
5456 * java/awt/Container.java (addNotify): Don't create Container
5458 * java/awt/Button.java (addNotify): Do nothing if peer exists.
5460 2000-07-30 Tom Tromey <tromey@cygnus.com>
5462 * java/awt/Container.java (remove(int)): Wrote.
5463 (remove(Component)): Wrote.
5464 (add(Component)): Wrote.
5465 (add(Component,int)): Wrote.
5467 (addNotify): Set our own peer.
5468 * java/awt/Scrollbar.java (listeners): Changed type.
5469 (Scrollbar): Don't initialize listeners.
5471 (setValue): Call setValues.
5472 (setMinimum): Likewise.
5473 (setMaxPriority): Likewise.
5474 (setVisibleAmount): Likewise.
5476 (setUnitIncrement): Forward to peer.
5477 (setLineIncrement): Call setUnitIncrement.
5478 (setPageIncrement): Call setBlockIncrement.
5479 (setBlockIncrement): Forward to peer.
5480 (addAdjustmentListener): Rewrote.
5481 (removeAdjustmentListener): Rewrote.
5482 (processAdjustmentEvent): Rewrote.
5483 (paramString): Wrote.
5484 * Makefile.in: Rebuilt.
5485 * Makefile.am (awt_java_source_files): Added Button.java.
5486 * java/awt/Button.java: New file.
5487 * java/awt/Toolkit.java (createLabel): Declare.
5488 (createButton): Likewise.
5489 (createScrollbar): Likewise.
5490 (createContainer): Likewise.
5491 * java/awt/Label.java (addNotify): Wrote.
5492 (setAlignment): Call setAlignment in the peer.
5493 (setText): Call setText in the peer.
5495 2000-07-28 Warren Levy <warrenl@cygnus.com>
5497 * java/io/ObjectOutputStream.java (writeObject): Per spec, call
5498 NotSerializableException with just the class name.
5500 2000-07-26 Andrew Haley <aph@cygnus.com>
5502 * interpret.cc (continue1): Insert missing break into switch.
5504 2000-07-28 Warren Levy <warrenl@cygnus.com>
5506 * java/io/ObjectStreamException.java: Made constructors protected.
5508 2000-07-27 Tom Tromey <tromey@cygnus.com>
5510 * java/io/OutputStreamWriter.java (close): Only flush if not
5513 2000-07-27 Warren Levy <warrenl@cygnus.com>
5515 * mauve-libgcj: Activated serialization tests.
5516 * gcj/field.h (getModifiers): Mask off unknown flags.
5517 * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
5518 spurious bits don't cause discrepancies.
5519 * java/io/ObjectOutputStream.java: Fixed typo in comment.
5520 * java/io/ObjectStreamClass.java: Fixed typos in comments.
5521 (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
5522 (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
5523 * java/lang/Throwable.java (serialVersionUID): New field.
5524 * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
5525 * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
5527 * java/lang/reflect/natMethod.cc: Ditto.
5528 * java/security/Key.java (serialVersionUID): Removed field for now.
5529 * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
5530 * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
5532 2000-07-22 Tom Tromey <tromey@cygnus.com>
5534 * java/awt/geom/RectangularShape.java (getPathIterator):
5537 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5539 * libjava/java/awt/image/ColorModel.java: New file, replaces the
5540 stub libjava/java/awt/ColorModel.java which was located in the
5542 * libjava/java/awt/image/ComponentColorModel.java: New file.
5543 * libjava/java/awt/image/ComponentSampleModel.java: New file.
5544 * libjava/java/awt/image/DataBuffer.java: New file.
5545 * libjava/java/awt/image/DataBufferByte.java: New file.
5546 * libjava/java/awt/image/DataBufferInt.java: New file.
5547 * libjava/java/awt/image/DataBufferUShort.java: New file.
5548 * libjava/java/awt/image/DirectColorModel.java: New file.
5549 * libjava/java/awt/image/PackedColorModel.java: New file.
5550 * libjava/java/awt/image/Raster.java: New file.
5551 * libjava/java/awt/image/SampleModel.java: New file.
5552 * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
5554 * libjava/java/awt/image/IndexColorModel.java: New file.
5555 * libjava/java/awt/image/ImageConsumer.java: Removed import of
5556 java.awt.ColorModel stub.
5558 * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
5559 * gnu/gcj/util/Buffers.java: New file, utility class.
5561 * libjava/Makefile.am: Updated to include new files.
5562 * libjava/Makefile.in: Rebuilt.
5564 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
5566 * java/io/StreamTokenizer.java: Merged with classpath.
5568 2000-07-20 Tom Tromey <tromey@cygnus.com>
5570 * Makefile.in: Rebuilt.
5571 * Makefile.am (awt_java_source_files): Updated for new files.
5572 * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
5573 * java/awt/Label.java: New file.
5574 * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
5575 (createIntersection, createUnion, getBounds2D): New methods.
5576 * java/awt/Scrollbar.java: New file.
5577 * java/awt/Shape.java: Updated to 1.2.
5578 * java/awt/geom/AffineTransform.java: New file.
5579 * java/awt/geom/Ellipse2D.java: New file.
5580 * java/awt/geom/NoninvertibleTransformException.java: New file.
5581 * java/awt/geom/PathIterator.java: New file.
5582 * java/awt/geom/Rectangle2D.java: New file.
5583 * java/awt/geom/RectangularShape.java: New file.
5584 * java/awt/geom/Point2D.java (Double, Float): New inner classes.
5585 * java/awt/geom/IllegalPathStateException.java: New file.
5587 * scripts/showval.java: New file.
5589 * scripts/classes.pl (scan): Print inner classes properly.
5590 * gcj/javaprims.h: Updated class list.
5592 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
5593 initialize String fields for interpreted classes. Fixes bug
5594 reported by Hans Boehm.
5596 * java/io/File.java (getParentFile): New method, from Classpath
5597 via Oskar Liljeblad.
5599 * java/util/Vector.java (remove(Object)): Implemented.
5601 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
5603 * java/lang/natThrowable.cc (fillInStackTrace): Check for
5604 zero return from backtrace().
5606 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
5608 * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
5610 * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
5611 before calling notifyAll().
5613 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
5615 Add missing files from last check-in:
5616 * java/awt/image/ImageConsumer.java: New file.
5617 * java/awt/image/ImageProducer.java: New file.
5618 * java/awt/image/ImageObserver.java: New file.
5620 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5622 Merged implementation of java.applet from classpath:
5623 * java/applet/Applet.java: New file.
5624 * java/applet/AppletContext.java: New file.
5625 * java/applet/AppletStub.java: New file.
5626 * java/applet/AudioClip.java: New file.
5628 * Makefile.am: Added new java.applet classes.
5629 * Makefile.in: Rebuilt.
5631 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
5634 * java/util/ResourceBundle.java (getLocale): stub.
5635 * Makefile.am: Added new AWT classes.
5636 * Makefile.in: Rebuilt.
5637 * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
5638 constructors. Fix toString() and paramString().
5639 * java/awt/AWTEventMulticaster.java: New class. Implemented.
5640 * java/awt/CheckboxGroup.java: New class.
5641 * java/awt/ColorModel.java: New class.
5642 * java/awt/Component.java: Added stubs for most methods. Implemented
5644 * java/awt/Container.java: ditto.
5645 * java/awt/ComponentOrientation.java: New class. Partly implemented.
5646 * java/awt/Cursor.java: ditto.
5647 * java/awt/Event.java: Fix paramString().
5648 * java/awt/EventQueue.java: New class. Implemented.
5649 * java/awt/Font.java: Added additional stub methods. Implemented
5651 * java/awt/FontMetrics.java: New class. Stubbed.
5652 * java/awt/GraphicsConfiguration.java: New class. Complete, except for
5654 * java/awt/Insets.java: New class. Implemented.
5655 * java/awt/Menu.java: Add new methods. Partially implemented.
5656 * java/awt/MenuItem.java: Add new methods and fields. Partially
5658 * java/awt/MenuShortcut.java: New class. Implemented.
5659 * java/awt/Panel.java: New class. Placeholder.
5660 * java/awt/PopupMenu.java: New class. Stubbed.
5661 * java/awt/Rectangle.java: New class. Implemented.
5662 * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
5663 * java/awt/event/ActionEvent.java: Implement paramString().
5664 * java/awt/event/AdjustmentEvent.java: Implement paramString().
5665 * java/awt/event/ComponentEvent.java: Implement paramString().
5666 * java/awt/event/ContainerEvent.java: Implement paramString().
5667 * java/awt/event/FocusEvent.java: Implement paramString().
5668 * java/awt/event/HierarchyBoundsAdapter.java: New class.
5669 * java/awt/event/HierarchyBoundsListener.java: New class.
5670 * java/awt/event/HierarchyEvent.java: New class.
5671 * java/awt/event/HierarchyListener.java: New class.
5672 * java/awt/event/InputMethodEvent.java: Implement paramString().
5673 * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
5674 exception if !catchExceptions.
5675 * java/awt/event/ItemEvent.java: Implement paramString().
5676 * java/awt/event/KeyEvent.java: Implement paramString().
5677 * java/awt/event/MouseEvent.java: Implement paramString().
5678 * java/awt/event/PaintEvent.java: Implement paramString().
5679 * java/awt/event/TextEvent.java: Implement paramString().
5680 * java/awt/event/WindowEvent.java: Implement paramString().
5682 AWT Peer interfaces:
5683 * java/awt/peer/ButtonPeer.java: New file.
5684 * java/awt/peer/ListPeer.java: New file.
5685 * java/awt/peer/CanvasPeer.java: New file.
5686 * java/awt/peer/MenuBarPeer.java: New file.
5687 * java/awt/peer/CheckboxMenuItemPeer.java: New file.
5688 * java/awt/peer/MenuComponentPeer.java: New file.
5689 * java/awt/peer/CheckboxPeer.java: New file.
5690 * java/awt/peer/MenuItemPeer.java: New file.
5691 * java/awt/peer/ChoicePeer.java: New file.
5692 * java/awt/peer/MenuPeer.java: New file.
5693 * java/awt/peer/ComponentPeer.java: Implemented.
5694 * java/awt/peer/PanelPeer.java: New file.
5695 * java/awt/peer/ContainerPeer.java: Implemented.
5696 * java/awt/peer/PopupMenuPeer.java: New file.
5697 * java/awt/peer/DialogPeer.java: New file.
5698 * java/awt/peer/ScrollPanePeer.java: New file.
5699 * java/awt/peer/FileDialogPeer.java: New file.
5700 * java/awt/peer/ScrollbarPeer.java: New file.
5701 * java/awt/peer/FontPeer.java: New file.
5702 * java/awt/peer/TextAreaPeer.java: New file.
5703 * java/awt/peer/FramePeer.java: Implemented.
5704 * java/awt/peer/TextComponentPeer.java: New file.
5705 * java/awt/peer/LabelPeer.java: New file.
5706 * java/awt/peer/TextFieldPeer.java: New file.
5707 * java/awt/peer/LightweightPeer.java: New file.
5708 * java/awt/peer/WindowPeer.java: Implemented.
5710 2000-07-06 Tom Tromey <tromey@cygnus.com>
5712 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
5713 Initialize static final String fields.
5715 2000-07-03 Tom Tromey <tromey@cygnus.com>
5717 * java/io/PrintWriter.java (print): Call write(String), not
5718 print(String). See PR libgcj/277.
5719 (print(String)): Use write, not out.write.
5721 2000-06-30 Tom Tromey <tromey@cygnus.com>
5723 * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
5725 2000-06-27 Andrew Haley <aph@cygnus.com>
5727 * java/io/File.java (createTempFile): Close the FileDescriptor
5728 used to create a temp file. Fixes some of PR 203.
5729 * java/io/natFileDescriptorPosix.cc (open): Call garbage
5730 collection if we run out of file handles.
5732 2000-06-28 Warren Levy <warrenl@cygnus.com>
5734 * gnu/java/security/provider/Gnu.java: New file.
5735 * gnu/java/security/provider/SHA.java: New file.
5736 * gnu/java/security/provider/SHA1PRNG.java: New file.
5737 * Makefile.am: Added the above files.
5738 * Makefile.in: Rebuilt.
5740 * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
5742 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
5744 * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
5745 (destroyed_flag): Removed.
5746 (isDestroyed, removeGroup, removeThread): Test for parent == null.
5747 (activeCount): Added spec note.
5749 2000-06-27 Warren Levy <warrenl@cygnus.com>
5751 * java/security/Principal.java: New file.
5752 * Makefile.am: Added Principal.java.
5753 * Makefile.in: Rebuilt.
5755 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
5757 * java/awt/event/MouseEvent.java: Fixed coordinate space
5760 2000-06-27 Tom Tromey <tromey@cygnus.com>
5762 * java/io/PushbackInputStream.java (read): If there are characters
5763 in the buffer, don't also call super.read().
5764 * java/io/PushbackReader.java (read): If there are characters in
5765 the buffer, don't also call super.read().
5767 * java/lang/Double.java (valueOf): Call parseDouble().
5769 2000-06-26 Warren Levy <warrenl@cygnus.com>
5771 * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
5772 (newVal): Renamed to newValue.
5773 * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
5774 * java/beans/beancontext/BeanContextServiceRevokedEvent.java
5775 (revokeNow): Renamed to invalidateRefs.
5776 * java/io/OptionalDataException.java: Updated FIXME.
5777 (eof): New placeholder field.
5779 * java/io/WriteAbortedException.java (message): Made transient.
5780 * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
5781 * java/lang/Throwable.java (stackTrace): Made transient.
5782 * java/net/InetAddress.java: Made Serializable.
5783 * java/security/KeyPair.java: Made Serializable.
5784 * java/security/Provider.java: Replaced with Classpath version that
5785 implements serialization and proper methods.
5786 * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
5787 (limits): Renamed to choiceLimits.
5789 2000-06-24 Tom Tromey <tromey@cygnus.com>
5791 * java/lang/natDouble.cc (parseDouble): Renamed from
5793 * java/lang/Double.java (parseDouble): Renamed from
5794 doubleValueOf. Now public.
5796 2000-06-23 Andrew Haley <aph@cygnus.com>
5798 * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
5799 * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
5801 2000-06-23 Tom Tromey <tromey@cygnus.com>
5803 * java/lang/reflect/natMethod.cc: Include <alloca.h>.
5804 * java/lang/natDouble.cc: Always include <alloca.h>.
5805 Fix for PR libgcj/267.
5807 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
5809 * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
5810 comply with classpath VM spec.
5811 (add(Group)): Rename to addGroup().
5812 * java/lang/Thread.java (Thread): Use addThread().
5813 * java/lang/natThread.cc (finish_): Use removeThread().
5815 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
5817 * java/lang/ThreadGroup.java: Merged with classpath.
5818 * prims.cc (_Jv_RunMain): Don't use `main_group'.
5819 * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
5821 * java/lang/Thread.java (Thread): Bootstrap initial thread from
5822 ThreadGroup.root if Thread.currentThread is null. Honour the
5823 ThreadGroup's max priority setting.
5825 2000-06-18 Tom Tromey <tromey@cygnus.com>
5827 * java/lang/natClass.cc (forName): Removed dead code. Initialize
5828 returned class. For PR gcj/260.
5830 2000-06-16 Tom Tromey <tromey@cygnus.com>
5832 Fix for PR libgcj/261:
5833 * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
5835 * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
5836 argument. (This is a patch from long ago that somehow went
5839 2000-06-15 Tom Tromey <tromey@cygnus.com>
5841 * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
5845 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
5847 Fix for PR java.lang/258:
5848 * prims.cc (_Jv_PrimClass): Set state of primitive class to
5849 JV_STATE_DONE, to prevent accidental initialization.
5850 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
5851 _Jv_InterfaceAssignableFrom if target is an interface and source is an
5852 interface or an abstract class. Remove redundant initializeClass calls.
5853 Remove duplicate if_idt test.
5854 (_Jv_InterfaceAssignableFrom): New function.
5855 * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
5857 2000-05-31 Tom Tromey <tromey@cygnus.com>
5859 * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
5860 (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
5861 * include/jvm.h (struct _Jv_ArrayVTable): Declare.
5862 (NUM_OBJECT_METHODS): New define.
5863 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
5864 `array_vtable' parameter. Added assertion.
5865 * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
5868 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
5870 * gcj/cni.h: Include <string.h>.
5871 * defineclass.cc: Include <alloca.h>.
5872 * interpret.cc: Ditto.
5873 * gij.cc: Include <stdlib.h>.
5875 2000-05-30 Tom Tromey <tromey@cygnus.com>
5877 * include/name-finder.h: Include <sys/wait.h>.
5878 (_Jv_name_finder::pid): Now of type `pid_t'.
5879 (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
5880 * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
5883 2000-05-24 Warren Levy <warrenl@cygnus.com>
5885 * java/io/ObjectOutputStream.java (writeObject): Use component type
5886 when writing arrays.
5889 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5891 Fix for PR libgcj/226:
5892 * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
5893 since this is an installed header.
5895 Fix for PR libgcj/228:
5896 * java/util/zip/ZipFile (getInputStream): Create inflater with
5899 * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
5900 with DataFormatException.
5902 2000-05-20 Tom Tromey <tromey@cygnus.com>
5904 * Makefile.in: Rebuilt.
5905 * Makefile.am (hack1): Removed.
5906 (awto_files): Likewise.
5907 (libgcjawt_la_SOURCES): Likewise.
5908 (EXTRA_libgcjawt_la_SOURCES): Likewise.
5909 (libgcjawt_la_DEPENDENCIES): Likewise.
5910 (libgcjawt_la_LIBADD): Likewise.
5911 (libgcjawt_la_LDFLAGS): Likewise.
5912 (libgcjawt_la_LINK): Likewise.
5913 ($(awt_java_source_files:.java=.class)): Likewise.
5914 (libgcj.zip): Don't depend on AWT files.
5915 (MOSTLYCLEANFILES): Don't include AWT files.
5916 ($(awto_files)): Removed.
5917 (nat_headers): Removed AWT files.
5918 (cond_awt_java_source_files): Removed.
5919 (ordinary_java_source_files): Added awt_java_source_files.
5920 * libgcj.spec.in (*lib): Removed -lgcjawt.
5921 * configure: Rebuilt.
5922 * configure.in: Removed --enable-java-awt option.
5924 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
5926 * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
5927 (ZipEntry): Copy the `name' field.
5928 (clone): Implement JDK1.2 method.
5929 (setCompressedSize): ditto.
5932 2000-05-19 Tom Tromey <tromey@cygnus.com>
5934 * java/io/BufferedWriter.java: Merged with Classpath.
5935 * java/io/BufferedOutputStream.java: Merged with Classpath.
5937 2000-05-16 Andrew Haley <aph@cygnus.com>
5939 * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
5940 build_ia64_frame_state.
5941 * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
5944 2000-05-15 Warren Levy <warrenl@cygnus.com>
5946 * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
5947 * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
5948 * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
5949 * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
5950 * gnu/gcj/beans/editors/ColorEditor.java: Removed.
5951 * gnu/gcj/beans/editors/FontEditor.java: Removed.
5952 * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
5953 * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
5954 * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
5955 * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
5956 * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
5957 * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
5958 * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
5959 * gnu/gcj/beans/editors/StringEditor.java: Removed.
5960 * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
5961 * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
5962 * gnu/gcj/io/NullOutputStream.java: Removed.
5963 * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
5964 * gnu/gcj/lang/ArrayHelper.java: Removed.
5965 * gnu/gcj/lang/ClassHelper.java: Removed.
5966 * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
5968 * gnu/java/beans/BeanInfoEmbryo.java: New file.
5969 * gnu/java/beans/EmptyBeanInfo.java: New file.
5970 * gnu/java/beans/ExplicitBeanInfo.java: New file.
5971 * gnu/java/beans/IntrospectionIncubator.java: New file.
5972 * gnu/java/beans/editors/ColorEditor.java: New file.
5973 * gnu/java/beans/editors/FontEditor.java: New file.
5974 * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
5975 * gnu/java/beans/editors/NativeByteEditor.java: New file.
5976 * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
5977 * gnu/java/beans/editors/NativeFloatEditor.java: New file.
5978 * gnu/java/beans/editors/NativeIntEditor.java: New file.
5979 * gnu/java/beans/editors/NativeLongEditor.java: New file.
5980 * gnu/java/beans/editors/NativeShortEditor.java: New file.
5981 * gnu/java/beans/editors/StringEditor.java: New file.
5982 * gnu/java/beans/info/ComponentBeanInfo.java: New file.
5983 * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
5984 * gnu/java/io/NullOutputStream.java: New file.
5985 * gnu/java/io/ObjectIdentityWrapper.java: New file.
5986 * gnu/java/lang/ArrayHelper.java: New file.
5987 * gnu/java/lang/ClassHelper.java: New file.
5988 * gnu/java/lang/reflect/TypeSignature.java: New file.
5990 * Makefile.am: Updated for moving Classpath files from gnu/gcj
5991 namespace back to the original Classpath gnu/java namespace.
5992 * Makefile.in: Rebuilt.
5994 * java/beans/Beans.java: Namespace change.
5995 * java/beans/EventSetDescriptor.java: Namespace change.
5996 * java/beans/Introspector.java: Namespace change.
5997 * java/beans/PropertyEditorManager.java: Namespace change.
5998 * java/io/ObjectInputStream.java: Namespace change.
5999 * java/io/ObjectOutputStream.java: Namespace change.
6000 * java/io/ObjectStreamClass.java: Namespace change.
6001 * java/io/ObjectStreamField.java: Namespace change.
6003 2000-04-21 Warren Levy <warrenl@cygnus.com>
6005 * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
6006 now that compiler patch is available.
6007 Removed unneeded System.loadLibrary.
6008 * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
6009 * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
6011 2000-04-19 Andrew Haley <aph@cygnus.com>
6013 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
6014 and target classes have been initialized.
6016 2000-04-19 Andrew Haley <aph@cygnus.com>
6018 * java/lang/String.java: implement Serializable, Comparable.
6019 (compareTo (Object)): New method.
6021 2000-04-19 Warren Levy <warrenl@cygnus.com>
6023 * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
6024 instead of getField to retrieve non-public field.
6025 (getSerialPersistantFields): Ditto.
6027 2000-04-18 Warren Levy <warrenl@cygnus.com>
6029 * mauve-libgcj: Turned off object serialization tests temporarily
6030 due to compiler error.
6032 2000-04-17 Warren Levy <warrenl@cygnus.com>
6034 * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
6035 to avoid build problem.
6037 * mauve-libgcj: Turned on object serialization tests.
6039 2000-04-17 Tom Tromey <tromey@cygnus.com>
6041 * libgcj.spec.in (*lib): Added -lgcjawt.
6043 2000-04-17 Andrew Haley <aph@cygnus.com>
6045 * Makefile.am: Add new files:
6046 gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
6048 * Makefile.in: Rebuilt.
6050 * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
6051 interface that has no implementations.
6052 Check for an attempt to assign an abstract class to an interface.
6054 * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
6055 if we fail to find MessageDigest.getInstance ("SHA").
6057 * gnu/gcj/io/SimpleSHSStream.java: New file.
6058 * gnu/gcj/io/natSimpleSHSStream.java: New file.
6059 * gnu/gcj/io/shs.cc: New file.
6060 * gnu/gcj/io/shs.h: new file.
6062 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
6065 * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
6066 punctuation from the classname of an array element.
6068 * gcj/javaprims.h: Add SimpleDigestStream.
6070 2000-04-17 Andrew Haley <aph@cygnus.com>
6072 * java/lang/natClass.cc (getPrivateField): Make recursive calls
6073 to getPrivateField for superclasses.
6075 2000-04-14 Andrew Haley <aph@cygnus.com>
6077 * Makefile.am: Add new files:
6078 java/io/ObjectOutputStream$PutField.h,
6079 java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
6080 java/io/natObjectOutputStream.cc
6081 * Makefile.in: Rebuilt.
6082 * gcj/Makefile.in: Rebuilt.
6083 * include/Makefile.in: Rebuilt.
6084 * java/lang/Class.h (getPrivateField): New method.
6085 (getPrivateMethod): Ditto.
6086 Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
6087 and java::io::ObjectStreamClass our friends.
6088 * java/lang/natClass.cc (getPrivateField): New method.
6089 (getPrivateMethod): Ditto.
6090 (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
6091 * gcj/javaprims.h: Add serialization classes.
6092 * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
6093 (setByteField): Ditto.
6094 (setCharField): Ditto.
6095 (setDoubleField): Ditto.
6096 (setFloatField): Ditto.
6097 (setIntField): Ditto.
6098 (setLongField): Ditto.
6099 (setShortField): Ditto.
6100 (setObjectField): Ditto.
6101 * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
6103 (getByteField): Ditto.
6104 (getCharField): Ditto.
6105 (getDoubleField): Ditto.
6106 (getFloatField): Ditto.
6107 (getIntField): Ditto.
6108 (getLongField): Ditto.
6109 (getShortField): Ditto.
6110 (getObjectField): Ditto.
6111 * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
6113 (getSerialPersistantFields): Ditto.
6114 (getDefinedSUID): Ditto.
6115 * java/io/natObjectOutputStream.cc: New file.
6116 * java/io/natObjectInputStream.cc: New file.
6118 2000-04-13 Warren Levy <warrenl@cygnus.com>
6120 * java/io/ObjectInputStream.java: Temporary workarounds for compiler
6121 problems. Revert to previous version to reproduce and when fixed.
6123 2000-04-13 Warren Levy <warrenl@cygnus.com>
6125 * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
6126 * gnu/gcj/io/NullOutputStream.java: New file.
6127 * gnu/gcj/lang/reflect/TypeSignature.java: New file.
6128 * java/io/BlockDataException.java: New file.
6129 * java/io/Externalizable.java: New file.
6130 * java/io/InvalidClassException.java: New file.
6131 * java/io/InvalidObjectException.java: New file.
6132 * java/io/NotActiveException.java: New file.
6133 * java/io/NotSerializableException.java: New file.
6134 * java/io/ObjectInput.java: New file.
6135 * java/io/ObjectInputStream.java: New file.
6136 * java/io/ObjectInputValidation.java: New file.
6137 * java/io/ObjectOutput.java: New file.
6138 * java/io/ObjectOutputStream.java: New file.
6139 * java/io/ObjectStreamClass.java: New file.
6140 * java/io/ObjectStreamConstants.java: New file.
6141 * java/io/ObjectStreamField.java: New file.
6142 * java/io/Replaceable.java: New file.
6143 * java/io/Resolvable.java: New file.
6144 * java/io/SerializablePermission.java: New file.
6145 * java/io/WriteAbortedException.java: New file.
6146 * java/security/BasicPermission.java: New file.
6147 * java/security/DigestOutputStream.java: New file.
6148 * java/security/Guard.java: New file.
6149 * java/security/Permission.java: New file.
6150 * java/security/PermissionCollection.java: New file.
6151 * Makefile.am: Added above files.
6152 * Makefile.in: Rebuilt.
6154 * java/beans/Beans.java (instantiate): Activated serialization code.
6155 * java/lang/SecurityManager.java (checkPermission): New method.
6157 2000-04-12 Warren Levy <warrenl@cygnus.com>
6159 * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
6160 * gnu/gcj/beans/EmptyBeanInfo.java: New file.
6161 * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
6162 * gnu/gcj/beans/IntrospectionIncubator.java: New file.
6163 * gnu/gcj/beans/editors/ColorEditor.java: New file.
6164 * gnu/gcj/beans/editors/FontEditor.java: New file.
6165 * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
6166 * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
6167 * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
6168 * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
6169 * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
6170 * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
6171 * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
6172 * gnu/gcj/beans/editors/StringEditor.java: New file.
6173 * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
6174 * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
6175 * gnu/gcj/lang/ArrayHelper.java: New file.
6176 * gnu/gcj/lang/ClassHelper.java: New file.
6177 * java/beans/BeanDescriptor.java: New file.
6178 * java/beans/BeanInfo.java: New file.
6179 * java/beans/Beans.java: New file.
6180 * java/beans/Customizer.java: New file.
6181 * java/beans/DesignMode.java: New file.
6182 * java/beans/EventSetDescriptor.java: New file.
6183 * java/beans/FeatureDescriptor.java: New file.
6184 * java/beans/IndexedPropertyDescriptor.java: New file.
6185 * java/beans/IntrospectionException.java: New file.
6186 * java/beans/Introspector.java: New file.
6187 * java/beans/MethodDescriptor.java: New file.
6188 * java/beans/ParameterDescriptor.java: New file.
6189 * java/beans/PropertyChangeEvent.java: New file.
6190 * java/beans/PropertyChangeListener.java: New file.
6191 * java/beans/PropertyChangeSupport.java: New file.
6192 * java/beans/PropertyDescriptor.java: New file.
6193 * java/beans/PropertyEditor.java: New file.
6194 * java/beans/PropertyEditorManager.java: New file.
6195 * java/beans/PropertyEditorSupport.java: New file.
6196 * java/beans/PropertyVetoException.java: New file.
6197 * java/beans/SimpleBeanInfo.java: New file.
6198 * java/beans/VetoableChangeListener.java: New file.
6199 * java/beans/VetoableChangeSupport.java: New file.
6200 * java/beans/Visibility.java: New file.
6201 * java/beans/beancontext/BeanContext.java: New file.
6202 * java/beans/beancontext/BeanContextChild.java: New file.
6203 * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
6204 * java/beans/beancontext/BeanContextChildSupport.java: New file.
6205 * java/beans/beancontext/BeanContextContainerProxy.java: New file.
6206 * java/beans/beancontext/BeanContextEvent.java: New file.
6207 * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
6208 * java/beans/beancontext/BeanContextMembershipListener.java: New file.
6209 * java/beans/beancontext/BeanContextProxy.java: New file.
6210 * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
6212 * java/beans/beancontext/BeanContextServiceProvider.java: New file.
6213 * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
6215 * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
6216 * java/beans/beancontext/BeanContextServiceRevokedListener.java:
6218 * java/beans/beancontext/BeanContextServices.java: New file.
6219 * java/beans/beancontext/BeanContextServicesListener.java: New file.
6220 * java/util/AbstractCollection.java: New file.
6221 * java/util/AbstractList.java: New file.
6222 * java/util/Arrays.java: New file.
6223 * Makefile.am: Added above files.
6224 * Makefile.in: Rebuilt.
6226 2000-04-11 Warren Levy <warrenl@cygnus.com>
6228 * java/awt/AWTError.java: New file.
6229 * java/awt/AWTEvent.java: New file.
6230 * java/awt/AWTException.java: New file.
6231 * java/awt/ActiveEvent.java: New file.
6232 * java/awt/Adjustable.java: New file.
6233 * java/awt/BorderLayout.java: New file.
6234 * java/awt/Color.java: New file.
6235 * java/awt/Component.java: New file.
6236 * java/awt/Container.java: New file.
6237 * java/awt/Dimension.java: New file.
6238 * java/awt/Event.java: New file.
6239 * java/awt/Font.java: New file.
6240 * java/awt/Frame.java: New file.
6241 * java/awt/Graphics.java: New file.
6242 * java/awt/IllegalComponentStateException.java: New file.
6243 * java/awt/Image.java: New file.
6244 * java/awt/ItemSelectable.java: New file.
6245 * java/awt/LayoutManager.java: New file.
6246 * java/awt/LayoutManager2.java: New file.
6247 * java/awt/Menu.java: New file.
6248 * java/awt/MenuBar.java: New file.
6249 * java/awt/MenuComponent.java: New file.
6250 * java/awt/MenuContainer.java: New file.
6251 * java/awt/MenuItem.java: New file.
6252 * java/awt/Paint.java: New file.
6253 * java/awt/PaintContext.java: New file.
6254 * java/awt/Point.java: New file.
6255 * java/awt/Rectangle.java: New file.
6256 * java/awt/Shape.java: New file.
6257 * java/awt/TextArea.java: New file.
6258 * java/awt/TextComponent.java: New file.
6259 * java/awt/Toolkit.java: New file.
6260 * java/awt/Transparency.java: New file.
6261 * java/awt/Window.java: New file.
6262 * java/awt/natToolkit.cc: New file.
6263 * java/awt/event/AWTEventListener.java: New file.
6264 * java/awt/event/ActionEvent.java: New file.
6265 * java/awt/event/ActionListener.java: New file.
6266 * java/awt/event/AdjustmentEvent.java: New file.
6267 * java/awt/event/AdjustmentListener.java: New file.
6268 * java/awt/event/ComponentAdapter.java: New file.
6269 * java/awt/event/ComponentEvent.java: New file.
6270 * java/awt/event/ComponentListener.java: New file.
6271 * java/awt/event/ContainerAdapter.java: New file.
6272 * java/awt/event/ContainerEvent.java: New file.
6273 * java/awt/event/ContainerListener.java: New file.
6274 * java/awt/event/FocusAdapter.java: New file.
6275 * java/awt/event/FocusEvent.java: New file.
6276 * java/awt/event/FocusListener.java: New file.
6277 * java/awt/event/InputEvent.java: New file.
6278 * java/awt/event/InputMethodEvent.java: New file.
6279 * java/awt/event/InputMethodListener.java: New file.
6280 * java/awt/event/InvocationEvent.java: New file.
6281 * java/awt/event/ItemEvent.java: New file.
6282 * java/awt/event/ItemListener.java: New file.
6283 * java/awt/event/KeyAdapter.java: New file.
6284 * java/awt/event/KeyEvent.java: New file.
6285 * java/awt/event/KeyListener.java: New file.
6286 * java/awt/event/MouseAdapter.java: New file.
6287 * java/awt/event/MouseEvent.java: New file.
6288 * java/awt/event/MouseListener.java: New file.
6289 * java/awt/event/MouseMotionAdapter.java: New file.
6290 * java/awt/event/MouseMotionListener.java: New file.
6291 * java/awt/event/PaintEvent.java: New file.
6292 * java/awt/event/TextEvent.java: New file.
6293 * java/awt/event/TextListener.java: New file.
6294 * java/awt/event/WindowAdapter.java: New file.
6295 * java/awt/event/WindowEvent.java: New file.
6296 * java/awt/event/WindowListener.java: New file.
6297 * java/awt/geom/Dimension2D.java: New file.
6298 * java/awt/geom/Point2D.java: New file.
6299 * java/awt/peer/ComponentPeer.java: New file.
6300 * java/awt/peer/ContainerPeer.java: New file.
6301 * java/awt/peer/FramePeer.java: New file.
6302 * java/awt/peer/WindowPeer.java: New file.
6303 * java/util/Collection.java: New file.
6304 * java/util/Comparator.java: New file.
6305 * java/util/Iterator.java: New file.
6306 * java/util/List.java: New file.
6307 * java/util/ListIterator.java: New file.
6308 * Makefile.am: Added above files.
6309 * Makefile.in: Rebuilt.
6311 2000-04-10 Warren Levy <warrenl@cygnus.com>
6313 * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
6314 * java/lang/FirstThread.java: Ditto.
6315 * java/lang/StringBuffer.java: Ditto.
6316 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6318 * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
6319 Special case handled in java.math.BigInteger.
6320 * java/math/BigInteger.java (divide): Handle the special case when
6321 dividing by 1 and the high bit of the dividend is set.
6322 (setShiftRight): Handle case when count == 0.
6324 2000-04-05 Andrew Haley <aph@cygnus.com>
6326 * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
6329 2000-04-05 Andrew Haley <aph@cygnus.com>
6331 * sysdep/ia64.c (rse_address_add): Delete.
6332 (IS_NaT_COLLECTION_ADDR): Delete.
6333 (ia64_backtrace_helper): check for null unwind_info.
6335 * sysdep/ia64-frame.h: add calc_caller_bsp.
6337 * java/lang/natThrowable.cc (printRawStackTrace): Flush
6340 * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
6341 (_Jv_remI): Likewise.
6342 (_Jv_divJ): Likewise.
6343 (_Jv_remJ): Likewise.
6345 * interpret.cc (continue1): Use divide subroutines to guarantee
6346 correct Java standard behaviour.
6347 Floating-point division should not abort; make it so.
6349 2000-03-29 Tom Tromey <tromey@cygnus.com>
6351 * configure: Rebuilt.
6352 * configure.in: Test against `libgcj_sjlj', not
6353 `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
6354 to be set even when using sjlj.
6356 2000-03-24 Andrew Haley <aph@cygnus.com>
6358 * Makefile.am: Add file addr2name.awk.
6359 * Makefile.in: Rebuilt.
6360 * addr2name.awk: New file.
6361 * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
6363 * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
6366 2000-03-22 Andrew Haley <aph@cygnus.com>
6368 * configure.host: Add -funwind-tables for IA64.
6369 * Makefile.am (c_source_files): Add SYSDEP_SORCES.
6370 * Makefile.in: Rebuilt.
6371 * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
6372 * sysdep/ia64.c: New file.
6373 * sysdep/ia64-frame.h: New file.
6374 * configure.in: Add sysdep/ia64.c for ia64.
6375 * configure: Rebuilt.
6377 2000-03-17 Andrew Haley <aph@cygnus.com>
6379 * java/lang/natString.cc: Remove `register' keyword.
6380 interpret.cc: ditto.
6382 2000-03-16 Andrew Haley <aph@cygnus.com>
6384 * configure.host (ia64): Enable interpreter.
6386 2000-03-14 Hans Boehm <boehm@acm.org>
6388 * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
6390 2000-03-14 Andrew Haley <aph@cygnus.com>
6392 * include/default-signal.h (MAKE_THROW_FRAME): Add arg
6395 2000-03-10 Andrew Haley <aph@cygnus.com>
6397 * java/lang/ieeefp.h: Import latest version from fdlibm.
6399 2000-03-14 Andrew Haley <aph@cygnus.com>
6401 * prims.cc (_Jv_ThrowSignal): New function.
6402 (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
6404 * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
6405 * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
6406 * include/ppc-signal.h: New file.
6408 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
6410 * java/lang/Thread.java: Declare `data' as Object, not RawData.
6411 * java/lang/natThread.java (initialize_native): Cast `data' to
6413 * gnu/gcj/RawData.java: Clarify documentation.
6415 From Gregory R. Warnes <warnes@biostat.washington.edu>:
6416 * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
6417 `jarFile', not `jarFileURL'.
6419 2000-05-15 Andrew Haley <aph@cygnus.com>
6421 * include/ppc-signal.h: New file.
6423 2000-05-11 Tom Tromey <tromey@cygnus.com>
6425 * java/util/zip/ZipInputStream.java (getNextEntry): When reading
6426 file headers, don't include `size' in the skip call.
6428 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
6430 * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
6431 Avoid arrayCopy() call where possible. Update `count' _after_ calling
6433 (replace): Reimplemented. Fix javadoc.
6434 (reverse): Call ensureCapacity_unsynchronized().
6435 (StringBuffer (String)): Use DEFAULT_CAPACITY.
6437 (replace): Calculate length for arraycopy() correctly.
6439 2000-05-09 Tom Tromey <tromey@cygnus.com>
6441 * java/lang/StringBuffer.java (toString): Don't mark buffer as
6443 (insert(int,char[],int,int): New method.
6444 (delete): New method from Classpath.
6445 (deleteCharAt): Likewise.
6446 (substring): Likewise.
6447 (shared): No longer private.
6448 Added JavaDoc comments from Classpath.
6449 * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
6452 2000-05-07 Tom Tromey <tromey@cygnus.com>
6454 * Makefile.in: Rebuilt.
6455 * Makefile.am (LIBLINK): New macro.
6456 (libgcj_la_LINK): Use it.
6457 (libgcjawt_la_LINK): Likewise.
6459 2000-05-06 Tom Tromey <tromey@cygnus.com>
6461 * Makefile.in: Rebuilt.
6462 * Makefile.am (libgcj.zip): Don't pass -L to javac.
6464 2000-05-05 Tom Tromey <tromey@cygnus.com>
6466 Fix for PR libgcj/220:
6467 * Makefile.in: Rebuilt.
6468 * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
6469 (jv_convert_LDFLAGS): Likewise.
6470 (libgcj_la_LDFLAGS): Likewise.
6471 (GCJLINK): New macro.
6472 (jv_convert_LINK): Use it.
6473 (gij_LINK): Likewise.
6474 (libgcj_la_LINK): New macro.
6475 (libgcjawt_la_LINK): Likewise.
6477 2000-05-04 Tom Tromey <tromey@cygnus.com>
6479 * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
6481 * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
6485 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
6487 * java/lang/natClass.cc (isInstance): Use __builtin_expect.
6488 (_Jv_IsAssignableFrom): Ditto.
6489 (_Jv_IsInstanceOf): Ditto.
6490 (_Jv_CheckCast): Ditto.
6491 (_Jv_CheckArrayStore): Ditto.
6492 * java/lang/Class.h (_Jv_InitClass): Ditto.
6493 * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
6498 (_Jv_MonitorExit): Ditto.
6499 * boehm.cc (_Jv_MarkObj): Ditto.
6500 (_Jv_MarkObj): Ditto.
6501 (_Jv_MarkArray): Ditto.
6502 * prims.cc (_Jv_AllocObject): Ditto.
6503 (_Jv_NewObjectArray): Ditto.
6504 (_Jv_NewPrimArray): Ditto.
6505 (_Jv_Malloc): Ditto.
6506 (_Jv_Realloc): Ditto.
6507 (_Jv_MallocUnchecked): Ditto.
6513 2000-05-04 Tom Tromey <tromey@cygnus.com>
6515 * java/util/Locale.java (Locale): Don't explicitly check for
6517 * java/util/Hashtable.java (containsKey): Don't explicitly check
6520 * java/util/BitSet.java (and, or, xor): Don't explicitly check for
6522 * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
6524 * java/text/StringCharacterIterator.java
6525 (StringCharacterIterator): Don't check for null.
6526 * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
6528 * java/net/MulticastSocket.java (joinGroup): Don't explicitly
6529 check for null pointer.
6530 (leaveGroup): Likewise.
6531 * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
6533 (setData): Likewise.
6534 * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
6537 2000-04-28 Jakub Jelinek <jakub@redhat.com>
6539 * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
6540 gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
6541 (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
6542 (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
6543 -rpath for in-gcc builds.
6544 * Makefile.in: Rebuilt.
6546 2000-04-28 Tom Tromey <tromey@cygnus.com>
6548 * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
6551 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
6553 * libjava/java/lang/String.java (toString): Remove `final' hack.
6555 2000-04-05 Tom Tromey <tromey@cygnus.com>
6557 Runtime support for PR gcj/2:
6558 * prims.cc (_Jv_ThrowNullPointerException): New function.
6559 * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
6561 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
6563 * prims.cc (_Jv_NewObjectArray): Fix typo.
6565 2000-04-26 Tom Tromey <tromey@cygnus.com>
6567 * Makefile.in: Rebuilt.
6568 * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
6570 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
6572 * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
6575 2000-04-22 Anthony Green <green@cygnus.com>
6577 * include/jvm.h (__builtin_expect): Define as unused for now.
6578 * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
6582 (_Jv_MonitorExit): Ditto.
6583 * boehm.cc (_Jv_MarkObj): Ditto.
6584 (_Jv_MarkObj): Ditto.
6585 (_Jv_MarkArray): Ditto.
6586 (_Jv_AllocBytes): Ditto.
6587 * prims.cc (_Jv_AllocObject): Ditto.
6588 (_Jv_NewObjectArray): Ditto.
6589 (_Jv_NewPrimArray): Ditto.
6590 (_Jv_Malloc): Ditto.
6591 (_Jv_Realloc): Ditto.
6592 (_Jv_MallocUnchecked): Ditto.
6598 * include/Makefile.in: Rebuilt.
6599 * include/Makefile.am (include_HEADERS): Add jvmpi.h.
6601 2000-04-21 Tom Tromey <tromey@cygnus.com>
6603 * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
6604 Yet another new version from Classpath.
6606 Fix for PR libgcj/15:
6607 * java/util/natGregorianCalendar.cc (_REENTRANT,
6608 _POSIX_PTHREAD_SEMANTICS): Don't define.
6609 * java/net/natInetAddress.cc (_REENTRANT): Don't define.
6610 * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
6612 * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
6614 * configure: Rebuilt.
6615 * configure.in: If using POSIX threads, define _REENTRANT if
6616 needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
6617 GETHOSTBYNAME_R_NEEDS_REENTRANT.
6619 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6620 java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
6621 version from Classpath.
6623 Fix for PR libgcj/213:
6624 * Makefile.in: Rebuilt.
6625 * Makefile.am (gij_SOURCES): Added gij.cc.
6626 (EXTRA_gij_SOURCES): Removed.
6627 (gij_LDADD): Removed gij.lo.
6628 (gij_DEPENDENCIES): Likewise.
6629 ($(gij_OBJECTS)): Depend on nat_headers.
6631 * gnu/gcj/protocol/file/Handler.java (openConnection): Use
6632 `setURL', not `url.set'.
6634 2000-04-20 Tom Tromey <tromey@cygnus.com>
6636 Fix for PR java.io/204:
6637 * java/io/PipedInputStream.java, java/io/PipedReader.java,
6638 java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
6641 Fix for PR libgcj/212:
6642 * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
6643 * include/jvm.h (_Jv_word, _Jv_word2): Define.
6644 * java/lang/Class.h (_Jv_word): Declare.
6646 * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
6648 2000-04-19 Tom Tromey <tromey@cygnus.com>
6650 * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
6651 doesn't have a loader.
6653 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
6655 * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
6656 MAYBE_MARK to ptr_t, for compatibility with new GC version.
6658 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
6660 * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
6662 (available): Initialize `where' to prevent bogus compiler warning.
6664 2000-04-12 Tom Tromey <tromey@cygnus.com>
6666 * java/lang/natString.cc (intern): Temporarily disable finalizer
6669 * java/lang/natString.cc (unintern): Added `obj' argument.
6670 (intern): Register finalizer for string.
6671 * java/lang/String.java (unintern): Now static; added obj
6674 2000-04-11 Tom Tromey <tromey@cygnus.com>
6676 * java/util/Vector.java (VectorEnumeration): Now `final'.
6677 * java/util/Hashtable.java (HashtableEntry): Now `final'.
6678 (HashtableEnumeration): Likewise.
6679 * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
6680 * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
6682 2000-04-10 Warren Levy <warrenl@cygnus.com>
6684 * java/io/ObjectStreamException.java: New file.
6685 * java/io/OptionalDataException.java: New file.
6686 * java/io/StreamCorruptedException.java: New file.
6687 * java/math/BigDecimal.java: New file.
6688 * java/sql/CallableStatement.java: New file.
6689 * java/sql/Connection.java: New file.
6690 * java/sql/DataTruncation.java: New file.
6691 * java/sql/DatabaseMetaData.java: New file.
6692 * java/sql/Date.java: New file.
6693 * java/sql/Driver.java: New file.
6694 * java/sql/DriverManager.java: New file.
6695 * java/sql/DriverPropertyInfo.java: New file.
6696 * java/sql/PreparedStatement.java: New file.
6697 * java/sql/ResultSet.java: New file.
6698 * java/sql/ResultSetMetaData.java: New file.
6699 * java/sql/SQLException.java: New file.
6700 * java/sql/SQLWarning.java: New file.
6701 * java/sql/Statement.java: New file.
6702 * java/sql/Time.java: New file.
6703 * java/sql/Timestamp.java: New file.
6704 * java/sql/Types.java: New file.
6705 * Makefile.am: Added above new files.
6706 * Makefile.in: Rebuilt.
6708 * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
6709 * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
6710 DatagramSocket constructor instead of null.
6712 2000-04-08 Anthony Green <green@cygnus.com>
6714 * include/posix-threads.h (_Jv_MutexUnlock): Replace
6717 2000-04-08 Anthony Green <green@cygnus.com>
6719 * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
6720 (_Jv_MutexUnlock): Ditto.
6721 * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
6722 (_Jv_MutexUnlock): Ditto.
6724 2000-04-08 Anthony Green <green@cygnus.com>
6726 * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
6727 (ensureCapacity_unsynchronized): New private method.
6728 (append): Use ensureCapacity_unsynchronized.
6730 2000-04-08 Tom Tromey <tromey@cygnus.com>
6732 * Makefile.in: Rebuilt.
6733 * Makefile.am (awt_java_source_files): Added new files.
6734 * java/awt/IllegalComponentStateException.java: New file.
6735 * java/awt/ItemSelectable.java: New file.
6736 * java/awt/event/WindowEvent.java: Finished.
6737 * java/awt/event/TextEvent.java: Finished.
6738 * java/awt/event/ContainerEvent.java: New file.
6739 * java/awt/Component.java (getX, getY): New methods.
6740 * java/awt/event/PaintEvent.java: New file.
6741 * java/awt/event/MouseEvent.java: New file.
6742 * java/awt/ActiveEvent.java: New file.
6743 * java/awt/event/KeyEvent.java: Finished.
6744 * java/awt/event/ItemEvent.java: New file.
6745 * java/awt/Adjustable.java: New file.
6746 * java/awt/event/InputMethodEvent.java: New file.
6747 * java/awt/event/InputEvent.java: Finished.
6748 * java/awt/event/FocusEvent.java: New file.
6749 * java/awt/event/MouseMotionAdapter.java: New file.
6750 * java/awt/event/MouseAdapter.java: New file.
6751 * java/awt/event/KeyAdapter.java: New file.
6752 * java/awt/event/FocusAdapter.java: New file.
6753 * java/awt/event/ContainerAdapter.java: New file.
6754 * java/awt/event/ComponentEvent.java: Finished.
6755 * java/awt/event/AdjustmentEvent.java: New file.
6756 * java/awt/event/ComponentAdapter.java: New file.
6757 * java/awt/event/ActionEvent.java: Finished.
6758 * java/awt/event/MouseMotionListener.java: New file.
6759 * java/awt/event/MouseListener.java: New file.
6760 * java/awt/event/ItemListener.java: New file.
6761 * java/awt/event/InputMethodListener.java: New file.
6762 * java/awt/event/ContainerListener.java: New file.
6763 * java/awt/event/FocusListener.java: New file.
6764 * java/awt/event/ComponentListener.java: New file.
6765 * java/awt/event/AWTEventListener.java: New file.
6766 * java/awt/event/AdjustmentListener.java: New file.
6768 2000-04-08 Anthony Green <green@cygnus.com>
6770 * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
6771 check when we have to.
6773 * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
6776 * java/util/StringTokenizer.java: Minor optimization. Eliminates
6779 * java/util/Vector.java (VectorEnumeration.nextElement): Manually
6780 inline hasMoreElements.
6782 2000-04-05 Tom Tromey <tromey@cygnus.com>
6784 * configure: Rebuilt.
6785 * configure.in: Recognize --enable-java-awt.
6786 (AWT): New conditional.
6787 * Makefile.in: Rebuilt.
6788 * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
6790 (libgcjawt_la_SOURCES): New macro.
6791 (EXTRA_libgcjawt_la_SOURCES): Likewise.
6792 (libgcjawt_la_DEPENDENCIES): Likewise.
6793 (libgcjawt_la_LIBADD): Likewise.
6794 (libgcjawt_la_LDFLAGS): Likewise.
6795 (libgcj.zip): Depend on cond_java_awt_source_files
6796 (cond_awt_java_source_files): New macro.
6797 (MOSTLYCLEANFILES): Added awto_files.
6798 (awto_files): New macro. Use where javao_files used.
6799 (nat_headers): Use cond_awt_java_source_files.
6801 2000-04-04 Tom Tromey <tromey@cygnus.com>
6803 * Makefile.in: Rebuilt.
6804 * Makefile.am (awt_java_source_files): Added AWTException.java.
6805 * java/awt/AWTException.java: New file.
6807 2000-04-03 Tom Tromey <tromey@cygnus.com>
6809 * include/jvm.h (_Jv_GetArrayElementFromElementType): More
6810 commentary from Alex.
6812 * Makefile.in: Rebuilt.
6813 * Makefile.am ($(javao_files)): Depend on libgcj.zip.
6816 Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
6818 * configure: Rebuilt.
6819 * configure.in: Add --disable-jvmpi.
6820 * include/config.h.in: Rebuilt.
6821 * acconfig.h: Add ENABLE_JVMPI.
6823 * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
6824 (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
6825 (_Jv_JVMPI_Notify_THREAD_END): New define.
6826 (_Jv_JVMPI_Notify_THREAD_END): New define.
6827 * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
6828 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6829 (_Jv_JVMPI_Notify_THREAD_END): Declare.
6831 * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
6834 * java/lang/natThread.cc: Include JVMPI headers if necessary.
6835 (finish_): Generate JVMPI thread end events.
6836 (run_): Generate JVMPI thread start events.
6837 * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
6838 preloaded JNI library.
6839 Include JVMPI headers if necessary.
6840 (run): Generate JVMPI thread start events.
6842 * boehm.cc: Define GC_disable and GC_enable.
6843 (_Jv_DisableGC): New function.
6844 (_Jv_EnableGC): New function.
6845 (disable_gc_mutex): Declare.
6846 * nogc.cc (_Jv_DisableGC): New function.
6847 (_Jv_EnableGC): New function.
6849 * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
6850 (_Jv_JVMPI_Interface): Define.
6851 (jvmpiEnableEvent): New function.
6852 (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
6854 * include/jvmpi.h: New file.
6856 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
6858 * Makefile.in: New #defines and friends for Thread.h.
6859 * Makefile.am: Ditto.
6860 * posix-threads.cc: (struct starter): Remove `object'.
6861 (_Jv_CondWait): Use interruptable condition variables and new
6862 recursive mutexes. New return codes on interrupt or non-ownership
6864 (_Jv_CondNotify): Ditto.
6865 (_Jv_CondNotifyAll): Ditto.
6866 (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
6867 the target thread by signaling its wait condition.
6868 (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
6869 not the starter struct. Initialize wait_mutex and wait_cond.
6870 (_Jv_MutexLock): New recursive mutex implementation. Moved from
6872 (_Jv_MutexUnlock): Ditto.
6873 (really_start): Set info->data->thread from pthread_self() to work
6874 around a race condition. Destroy wait_mutex and wait_cond when run()
6876 * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
6877 `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
6879 startable_flag: New private field.
6880 (Thread): Initialize `startable_flag'.
6881 (toString): Check for null thread group.
6882 * java/lang/natThread.cc: (struct natThread): New fields
6883 `join_mutex', `join_cond'. Removed fields `joiner', `next'.
6884 (class locker): Removed.
6885 (initialize_native): Initialize `join_cond' and `join_mutex'.
6886 (interrupt): Now just calls _Jv_ThreadInterrupt().
6887 (join): Simplified. Just wait on the target thread's join condition.
6888 (finish_): Remove join list code. Unset thread group. Signal
6889 potential joiners by notifying the dying threads join_cond.
6890 (start): Check for illegal restarts.
6891 * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
6893 * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
6894 #defines and #ifdefs.
6895 (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
6896 `wait_mutex', `next'.
6897 (struct _Jv_ConditionVariable_t): Define as a struct instead of
6898 directly mapping to pthread_cond_t.
6899 (struct _Jv_Mutex_t): New recursive implementation.
6900 (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
6901 _Jv_HaveCondDestroy: Never define this for posix-threads.
6902 (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
6903 (_Jv_CondNotifyAll): Ditto.
6904 (_Jv_MutexLock): Ditto.
6905 (_Jv_MutexUnlock): Ditto.
6906 (_Jv_MutexInit): Changed to reflect new mutex implementation.
6907 (_Jv_MutexDestroy): Ditto.
6908 (_Jv_CondDestroy): Removed.
6909 (_Jv_PthreadGetMutex): Removed.
6910 * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
6911 error. Add a FIXME about this.
6912 (_Jv_CondNotifyAll): Ditto.
6913 * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
6914 _JV_NOT_OWNER on other errors. Add FIXME.
6916 2000-03-26 Tom Tromey <tromey@cygnus.com>
6918 * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
6920 (call): Don't throw exception here.
6922 2000-03-26 Tom Tromey <tromey@cygnus.com>
6924 * java/lang/mprec.h: Use SIZEOF_VOID_P.
6925 * interpret.cc: Use SIZEOF_VOID_P.
6926 * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
6927 (_Jv_loadLong): Likewise.
6928 (_Jv_storeDouble): Likewise.
6929 * configure: Rebuilt.
6930 * configure.in: Check size of void*.
6932 * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
6934 2000-03-26 Hans Boehm <boehm@acm.org>
6936 * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
6937 _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
6939 * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
6940 __IEEE_LITTLE_ENDIAN appropriately on IA64.
6941 * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
6942 * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
6944 * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
6945 (FFI_RAW_SIZE): Likewise.
6946 (_Jv_InterpMethod::ncode): Use them.
6947 * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
6948 STORED): Define differently on a 64 bit machine.
6949 (continue1): Use ffi_java_raw_call when appropriate.
6951 2000-03-24 Warren Levy <warrenl@cygnus.com>
6953 * java/math/BigInteger.java(divide): Handle the special case when
6954 dividing by 1 and the high bit of the dividend is set.
6955 (setShiftRight): Handle case when count == 0.
6957 2000-03-24 Warren Levy <warrenl@cygnus.com>
6959 * java/awt/Font.java(isBold): Fix syntax error.
6961 * java/awt/Frame.java(postEvent): ditto.
6962 * java/awt/Menu.java(postEvent): ditto.
6963 * java/awt/MenuBar.java(postEvent): ditto.
6964 * java/awt/Toolkit.java(init): Included a stub.
6966 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6968 * java/awt/Event.java: Add all the event type constants.
6969 (Event): Implemented constructors.
6970 (controlDown): Implemented.
6971 (metaDown): Implemented.
6972 (paramString): Stubbed.
6973 (shiftDown): Implemented.
6974 (toString): Implemented.
6975 (translate): Implemented.
6977 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
6979 * java/lang/natClass.cc (isInstance): Initialize `this'.
6980 (isAssignableFrom): Initialize `this' and `klass'.
6981 (_Jv_IsAssignableFrom): If an interface has no idt, it is not
6982 implemented by any loaded class, so return false.
6983 * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
6984 not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
6986 2000-03-19 Warren Levy <warrenl@cygnus.com>
6988 * java/awt/Color.java: Specified java.io for Serializable.
6989 * java/awt/Toolkit.java: Imported java.net.URL.
6991 2000-03-19 Warren Levy <warrenl@cygnus.com>
6993 * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
6995 2000-03-16 Warren Levy <warrenl@cygnus.com>
6997 * java/awt/Color.java: New file.
6998 * java/awt/Graphics.java: New file.
6999 * java/awt/Image.java: New file.
7000 * java/awt/Paint.java: New file.
7001 * java/awt/PaintContext.java: New file.
7002 * java/awt/Transparency.java: New file.
7003 * java/util/Collection.java: New file.
7004 * java/util/Comparator.java: New file.
7005 * java/util/Iterator.java: New file.
7006 * java/util/List.java: New file.
7007 * java/util/ListIterator.java: New file.
7008 * Makefile.am: Added above new files.
7009 * Makefile.in: Rebuilt.
7011 * java/awt/Font.java (PLAIN): New field.
7013 (ITALIC): New field.
7014 (ROMAN_BASELINE): New field.
7015 (CENTER_BASELINE): New field.
7016 (HANGING_BASELINE): New field.
7020 (pointSize): New field.
7021 (Font): Implemented constructor.
7022 (isPlain): Implemented method.
7023 (isBold): Implemented method.
7024 (isItalic): Implemented method.
7025 (getName): Implemented method.
7026 (getStyle): Implemented method.
7027 (getSize): Implemented method.
7028 (getSize2D): Implemented method.
7030 * java/awt/Frame.java (getFont): Stubbed.
7031 (postEvent): Stubbed.
7033 * java/awt/Menu.java (postEvent): Stubbed.
7034 * java/awt/MenuBar.java (getFont): Stubbed.
7035 (postEvent): Stubbed.
7036 * java/awt/Toolkit.java (getImage): Added abstract method.
7038 2000-03-15 Tom Tromey <tromey@cygnus.com>
7040 * java/io/natFileDescriptorWin32.cc (winerr): Now static.
7042 * prims.cc (win32_exception_handler): Reformatted.
7044 * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
7045 (_Jv_HaveMutexDestroy): Likewise.
7047 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
7049 * java/io/natFileDescriptorWin32.cc: New file.
7050 * java/io/natFileWin32.cc: New file.
7051 * java/net/natInetAddress.cc: Added conditional inclusion of
7052 Windows / Winsock headers.
7053 * java/net/natPlainDatagramSocketImpl.cc: Added conditional
7054 inclusion of Windows / Winsock headers.
7055 * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
7056 Windows / Winsock headers.
7057 * include/win32-signal.h: New file.
7058 * include/win32-threads.h: New file.
7059 * win32-threads.cc: New file.
7060 * exception.cc (win32_get_restart_frame): New function.
7061 * prims.cc (win32_exception_handler): New function.
7062 (main_init) Performs Winsock initialisation.
7063 (main_init) Installs exeception handler.
7065 2000-03-14 Tom Tromey <tromey@cygnus.com>
7067 * jni.cc (mangled_name): Fixed assertion.
7068 (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
7069 turned assert into actual failure.
7071 2000-03-09 Warren Levy <warrenl@cygnus.com>
7073 * java/security/Key.java(serialVersionUID): Set to 0 for now.
7074 * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
7075 * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
7077 2000-03-09 Warren Levy <warrenl@cygnus.com>
7079 * java/security/AlgorithmParameterGeneratorSpi.java: New file.
7080 * java/security/DigestException.java: New file.
7081 * java/security/GeneralSecurityException.java: New file.
7082 * java/security/InvalidAlgorithmParameterException.java: New file.
7083 * java/security/InvalidKeyException.java: New file.
7084 * java/security/InvalidParameterException.java: New file.
7085 * java/security/Key.java: New file.
7086 * java/security/KeyException.java: New file.
7087 * java/security/KeyPair.java: New file.
7088 * java/security/KeyPairGenerator.java: New file.
7089 * java/security/KeyPairGeneratorSpi.java: New file.
7090 * java/security/NoSuchProviderException.java: New file.
7091 * java/security/PrivateKey.java: New file.
7092 * java/security/Provider.java: New file.
7093 * java/security/PublicKey.java: New file.
7094 * java/security/SecureRandom.java: New file.
7095 * java/security/Security.java: New file.
7096 * java/security/Signature.java: New file.
7097 * java/security/SignatureException.java: New file.
7098 * java/security/interfaces/DSAKey.java: New file.
7099 * java/security/interfaces/DSAParams.java: New file.
7100 * java/security/interfaces/DSAPrivateKey.java: New file.
7101 * java/security/interfaces/DSAPublicKey.java: New file.
7102 * java/security/interfaces/RSAPrivateCrtKey.java: New file.
7103 * java/security/interfaces/RSAPrivateKey.java: New file.
7104 * java/security/interfaces/RSAPublicKey.java: New file.
7105 * java/security/spec/AlgorithmParameterSpec.java: New file.
7106 * java/security/spec/InvalidKeySpecException.java: New file.
7107 * java/security/spec/InvalidParameterSpecException.java: New file.
7108 * java/security/spec/KeySpec.java: New file.
7109 * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
7110 * java/security/spec/RSAPrivateKeySpec.java: New file.
7111 * java/security/spec/RSAPublicKeySpec.java: New file.
7112 * Makefile.am: Added above java.security files.
7113 * Makefile.in: Rebuilt.
7115 * java/security/MessageDigest.java: Rewritten.
7116 * java/security/SecureClassLoader.java: Added JDK1.2 comment.
7118 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7122 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
7124 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
7125 _Jv_PrepareConstantTimeTables.
7126 * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
7127 classes should have an IDT, so don't return if klass is an array
7130 2000-03-08 Tom Tromey <tromey@cygnus.com>
7132 * java/lang/reflect/natArray.cc (newInstance): Don't allow array
7133 of `void' to be created.
7135 2000-03-08 Warren Levy <warrenl@cygnus.com>
7137 * java/math/BigInteger.java(signum): Handle zero properly.
7139 2000-03-07 Tom Tromey <tromey@cygnus.com>
7141 * All files: Updated copyright information.
7142 * COPYING: New file.
7143 * COPYING.LIB: Removed.
7144 * LIBGCJ_LICENSE: We now use GPL + special exception.
7146 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7148 * resolve.cc (_Jv_SearchMethodInClass): New function.
7149 (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
7150 * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
7152 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
7154 * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
7155 (struct _Jv_ifaces): New declaration.
7156 JV_CLASS: New macro definition.
7157 (getComponentType): Relocate below isArray() for inlining.
7158 (getModifiers): Declare `inline'.
7159 (getSuperclass): Ditto.
7161 (isPrimitive): Ditto.
7162 (_Jv_IsAssignableFrom): New prototype.
7163 (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
7165 (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
7166 Check for JV_STATE_DONE before invoking initializeClass().
7167 (_Jv_PrepareConstantTimeTables): New prototype.
7168 (_Jv_GetInterfaces): Ditto.
7169 (_Jv_GenerateITable): Ditto.
7170 (_Jv_GetMethodString): Ditto.
7171 (_Jv_AppendPartialITable): Ditto.
7172 (_Jv_FindIIndex): Ditto.
7173 depth, ancestors, idt: New class fields.
7175 * java/lang/natClass.cc (isAssignableFrom): Move functionality to
7176 inline function `_Jv_IsAssignableFrom'. Use that function.
7177 (isInstance): Declare `inline'.
7178 (initializeClass): Get lock on class before checking `state'. Unlock
7179 before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
7181 (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
7182 (_Jv_IsAssignableFrom): New inline function. Test assignability using
7183 class->depth and ancestor table.
7184 (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
7185 (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
7186 _Jv_IsAssignableFrom.
7187 (_Jv_CheckArrayStore): Ditto.
7188 (_Jv_LookupInterfaceMethodIdx): New function.
7189 INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
7190 (_Jv_PrepareConstantTimeTables): New function.
7191 (_Jv_IndexOf): Ditto.
7192 (_Jv_GetInterfaces): Ditto.
7193 (_Jv_GenerateITable): Ditto.
7194 (_Jv_GetMethodString): Ditto.
7195 (_Jv_AppendPartialITable): Ditto.
7196 iindex_mutex, iindex_mutex_initialized: New static fields.
7197 (_Jv_FindIIndex): New function.
7199 * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
7201 * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
7202 (_Jv_CheckArrayStore): Ditto.
7203 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
7204 JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
7205 Moved to gcj/array.h.
7206 (_Jv_Realloc): New function.
7208 * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
7210 * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
7211 (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
7212 JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
7213 JvNewDoubleArray): Implementations moved from prims.cc and
7216 * gcj/javaprims.h (_Jv_Realloc): Prototype.
7218 * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
7220 2000-03-06 Tom Tromey <tromey@cygnus.com>
7222 * jni.cc (MARK_NONE): New define.
7223 (MARK_USER): Likewise.
7224 (MARK_SYSTEM): Likewise.
7225 (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
7227 (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
7228 (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
7229 (_Jv_JNI_PushLocalFrame): Use MARK_USER.
7230 (_Jv_JNI_PopLocalFrame): New version with additional `stop'
7232 (call): Use MARK_SYSTEM.
7233 (_Jv_GetJNIEnvNewFrame): New function.
7234 (_Jv_LookupJNIMethod): New function.
7235 (_Jv_JNI_PopSystemFrame): New function.
7236 (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
7238 2000-03-05 Tom Tromey <tromey@cygnus.com>
7240 Fix for PR libgcj/43:
7241 * include/Makefile.in: Rebuilt.
7242 * include/Makefile.am (include_HEADERS): New define.
7244 2000-03-05 Anthony Green <green@redhat.com>
7246 * gcj/javaprims.h ("Java"): Remove FirstThread.
7248 * configure.host: Fix __NO_MATH_INLNES botch.
7250 * Makefile.in: Rebuilt.
7251 * Makefile.am (nat_source_files): Move natFirstThread.cc.
7252 (gnu/gcj/runtime/FirstThread.h): Moved.
7253 (ordinary_java_source_files): Move FirstThread.java.
7254 * prims.cc: Deal with FirstThread movement.
7256 (_Jv_RunMain): Ditto.
7258 * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
7259 * gnu/gcj/runtime/natFirstThread.cc: Ditto.
7261 2000-03-05 Warren Levy <warrenl@cygnus.com>
7263 * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
7264 Handle null addresses.
7266 2000-03-04 Anthony Green <green@redhat.com>
7268 * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
7271 2000-03-04 Anthony Green <green@redhat.com>
7273 * configure: Rebuilt.
7274 * configure.in (ZLIBTESTSPEC): New macro.
7275 (GCTESTSPEC): New macro.
7276 (LIBGCJTESTSPEC): New macro.
7277 * libgcj-test.spec.in: New file.
7279 2000-03-02 Tom Tromey <tromey@cygnus.com>
7281 * include/java-interp.h: Don't include MethodInvocation.h.
7282 (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
7283 * Makefile.in: Rebuilt.
7284 * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
7285 (ordinary_java_source_files): Don't mention
7286 MethodInvocation.java.
7287 * gnu/gcj/runtime/MethodInvocation.java: Removed.
7288 * interpret.cc (MethodInvocation::continue1): Removed.
7289 (run): Handle exceptions here.
7290 * java/lang/ClassLoader.java (defineClass1, defineClass2):
7292 * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
7294 (defineClass2): Removed.
7296 * java/lang/reflect/Method.java (hack_trampoline, hack_call):
7298 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
7300 (hack_call): Removed.
7302 * java/lang/Class.h (Class): Removed hackRunInitializers,
7304 * java/lang/natClass.cc (hackRunInitializers): Removed.
7305 (initializeClass): Catch exceptions here.
7306 Include ExceptionInInitializerError.h.
7307 * java/lang/Class.java (hackTrampoline, hackRunInitializers):
7310 * java/lang/Object.h (Object): Don't mention hack12_6.
7311 * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
7313 * java/lang/Object.java (hack12_6): Removed.
7315 * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
7316 (start): Use run_, not run__.
7317 * java/lang/Thread.java (run_): Renamed from run__; old run_
7320 * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
7321 (_Jv_JNI_EnsureLocalCapacity): Likewise.
7322 (_Jv_JNI_DefineClass): Likewise.
7323 (_Jv_JNI_ThrowNew): Likewise.
7324 (_Jv_JNI_AllocObject): Likewise.
7325 (_Jv_JNI_GetAnyMethodID): Likewise.
7326 (_Jv_JNI_CallAnyMethodV): Likewise.
7327 (_Jv_JNI_CallAnyMethodA): Likewise.
7328 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7329 (_Jv_JNI_CallAnyVoidMethodA): Likewise.
7330 (_Jv_JNI_GetAnyFieldID): Likewise.
7331 (_Jv_JNI_NewString): Likewise.
7332 (_Jv_JNI_NewStringUTF): Likewise.
7333 (_Jv_JNI_GetStringUTFChars): Likewise.
7334 (_Jv_JNI_NewObjectArray): Likewise.
7335 (_Jv_JNI_NewPrimitiveArray): Likewise.
7336 (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
7337 (_Jv_JNI_GetStringRegion): Likewise.
7338 (_Jv_JNI_GetStringUTFRegion): Likewise.
7339 (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
7340 (_Jv_JNI_MonitorEnter): Likewise.
7341 (_Jv_JNI_MonitorExit): Likewise.
7342 (_Jv_JNI_ToReflectedField): Likewise.
7343 (_Jv_JNI_ToReflectedMethod): Likewise.
7344 (_Jv_JNI_RegisterNatives): Likewise.
7345 (_Jv_JNI_AttachCurrentThread): Likewise.
7346 (_Jv_JNI_DestroyJavaVM): Likewise.
7348 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7350 * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
7351 error caused by the incorrect casting of a long to an int.
7353 2000-02-28 Mo DeJong <mdejong@cygnus.com>
7355 * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
7356 SIGSEV caused by use of the wrong instance variable.
7358 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
7360 * java/io/File.java (File(String, String)): For dirPath, treat an
7361 empty String the same as `null'.
7363 2000-02-26 Anthony Green <green@cygnus.com>
7365 * gnu/gcj/io/MimeTypes.java: Test for null.
7367 * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
7368 (JNI_GetCreatedJavaVMs): Remove compiler warning.
7370 * java/net/URLConnection.java: Update copyright notice.
7372 2000-02-25 Tom Tromey <tromey@cygnus.com>
7374 * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
7377 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
7379 * java/net/URLConnection.java (initializeDateFormats): New
7381 (getHeaderFieldDate): Call initializeDateFormats if required.
7382 locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
7384 Fix for PR libgcj/38.
7386 2000-02-24 Warren Levy <warrenl@cygnus.com>
7388 * java/math/BigInteger.java(ival): Made private.
7392 2000-02-20 Anthony Green <green@cygnus.com>
7394 * Makefile.in: Rebuilt.
7395 * Makefile.am (ordinary_java_source_files): Add
7396 gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
7398 * scripts/MakeDefaultMimeTypes.java: New file.
7399 * scripts/mime.types: New file.
7400 * scripts/classes.pl: Moved from top level.
7401 * classes.pl: Moved to scripts directory.
7403 * java/net/URLConnection.java: Implement guessContentTypeFromName.
7405 * gnu/gcj/io/MimeTypes.java: New file.
7406 * gnu/gcj/io/DefaultMimeTypes.java: New file.
7408 2000-02-20 Tom Tromey <tromey@cygnus.com>
7410 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
7412 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
7414 * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
7417 2000-02-18 Tom Tromey <tromey@cygnus.com>
7419 * include/jvm.h (_Jv_GetJavaVM): Declare.
7420 * include/java-interp.h (_Jv_GetFirstMethod): New function.
7421 (_Jv_MethodBase::get_method): New method.
7422 (_Jv_JNIMethod::set_function): New method.
7423 * jni.cc (_Jv_JNI_UnregisterNatives): New function.
7424 (_Jv_JNI_RegisterNatives): New function.
7425 (_Jv_JNIFunctions): Updated for new functions.
7426 (_Jv_GetJavaVM): New function.
7427 (_Jv_JNI_GetJavaVM): Use it. Now static.
7428 (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
7429 is already a Java thread but does not have a JNIEnv yet.
7431 * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
7434 2000-02-17 Tom Tromey <tromey@cygnus.com>
7436 * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
7439 2000-02-16 Tom Tromey <tromey@cygnus.com>
7441 * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
7443 * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
7444 (_Jv_JNI_NewObject): Likewise.
7445 (_Jv_JNI_NewObjectA): Likewise.
7446 (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
7447 as "return" type to _Jv_CallAnyMethodA.
7448 (_Jv_JNI_CallAnyMethodA): Likewise.
7449 (_Jv_JNI_CallAnyVoidMethodV): Likewise.
7451 * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
7454 2000-02-15 Tom Tromey <tromey@cygnus.com>
7456 * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
7458 (init_cif): Added `rtype_p' argument.
7459 * include/java-interp.h (class _Jv_MethodBase): Added
7461 (class _Jv_InterpMethod): Removed args_raw_size.
7462 (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
7463 * jni.cc (call): Pass JNIEnv and (for static methods only) the
7464 class pointer as well as the ordinary arguments.
7466 * jni.cc (mangled_name): Skip leading `(' in signature.
7468 * jni.cc (add_char): Added missing `else'.
7470 * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
7473 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
7477 * java/lang/natRuntime.cc (_load): Include library path with
7480 * java/lang/natSystem.cc (init_properties): set java.lang.classpath
7483 * java/lang/natThread.cc (dumpStack): Removed.
7484 * java/lang/Thread.java (dumpStack): Implemented.
7486 2000-02-15 Tom Tromey <tromey@cygnus.com>
7488 * java/lang/natRuntime.cc (_load): On Unix, prefix library name
7489 with `lib' for loadLibrary. Fixes PR gcj/150.
7491 2000-02-14 Warren Levy <warrenl@cygnus.com>
7493 * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
7495 * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
7499 (modPow): Rewritten to not use the naive, slow, brute force approach.
7500 (isProbablePrime): Implemented.
7501 (testBit): Implemented.
7502 (flipBit): Implemented.
7503 (getLowestSetBit): Implemented.
7505 2000-02-16 Anthony Green <green@redhat.com>
7507 * configure.host: Use the same options for i386 and i486 as we do
7510 2000-02-12 Tom Tromey <tromey@cygnus.com>
7512 * java/io/File.java (createTempFile): Use low bits from counter,
7515 Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
7517 * THANKS: More thanks.
7519 2000-02-11 Tom Tromey <tromey@cygnus.com>
7521 * interpret.cc (continue1): Use STOREA, not STOREI, to implement
7522 astore instruction. From Hans Boehm.
7524 2000-02-11 Warren Levy <warrenl@cygnus.com>
7526 * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
7527 (BigInteger(String)): New constructor.
7528 (not): Rewritten using version from Kawa's BitOps class.
7529 (valueOf): New private methods from Kawa's BitOps class.
7536 (andNot): Implemented.
7537 (clearBit): Implemented.
7538 (setBit): Implemented.
7539 (bitCount): Implemented.
7540 (toByteArray): Implemented.
7542 2000-02-11 Tom Tromey <tromey@cygnus.com>
7544 * java/io/File.java (nextValue): Now synchronized.
7546 2000-02-10 Tom Tromey <tromey@cygnus.com>
7548 * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
7549 * java/io/FileDescriptor.java (EXCL): New static field.
7550 * java/io/File.java (tmpdir): New static field.
7551 (createTempFile): New method.
7552 (nextValue): New method.
7553 * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
7556 * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
7557 (jboolean): Declare as an attributed int, not a bool.
7558 (_Jv_func): Declare differently for C.
7560 * gnu/gcj/jni/natNativeThread.cc: New file.
7561 * gnu/gcj/jni/NativeThread.java: New file.
7562 * java/lang/Thread.java (data): Now a RawData.
7563 * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
7565 * Makefile.in: Rebuilt.
7566 * Makefile.am (java/lang/Thread.h): New target.
7567 (ordinary_java_source_files): Added NativeThread.java.
7568 (nat_source_files): Added natNativeThread.cc.
7569 * java/lang/natThread.cc: Include <jni.h>
7570 (struct natThread): Added `jni_env' field.
7571 (_Jv_GetCurrentJNIEnv): New function.
7572 (_Jv_SetCurrentJNIEnv): Likewise.
7573 (initialize_native): Initialize jni_env.
7575 * jni.cc (ThreadGroupClass): New define.
7576 (_Jv_JNI_InvokeFunctions): New structure.
7577 (JNI_GetCreatedJavaVMs): New function.
7578 (the_vm): New global.
7579 (JNI_GetDefaultJavaVMInitArgs): New function.
7580 Include NativeThread.h.
7581 (NativeThreadClass): New define.
7582 (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
7583 (_Jv_JNI_DestroyJavaVM): New function.
7584 (_Jv_JNI_AttachCurrentThread): New function.
7585 (_Jv_JNI_DetachCurrentThread): New function.
7586 (_Jv_JNI_GetEnv): New function.
7587 (JNI_CreateJavaVM): New function.
7588 (_Jv_JNI_GetJavaVM): New function.
7589 (_Jv_JNIFunctions): Added entry for GetJavaVM.
7590 * include/jni.h (JavaVMAttachArgs): New structure.
7591 (JNI_EDETACHED): New define.
7592 (JNI_EVERSION): Likewise.
7593 (JavaVM): Define properly.
7594 (struct JNIInvokeInterface): New structure.
7595 (class _Jv_JavaVM): New class.
7596 (JNI_OnLoad, JNI_OnUnload): Declare.
7597 (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
7598 JNI_GetCreatedJavaVMs): Declare.
7599 (JavaVMInitArgs): New typedef.
7600 (JavaVMOption): Likewise.
7601 (JNI_ERR): New define.
7604 2000-02-10 Andrew Haley <aph@cygnus.com>
7606 * interpret.cc: Don't include fdlibm.h.
7607 Replace #if with #ifdef throughout.
7608 Declare extern __ieee754_fmod.
7609 (continue1): Remove op_getfield, op_getstatic, op_putfield,
7611 * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
7612 Search class hierarchy for superclass vtable.
7614 * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
7615 off the end of a pointer list.
7617 * java/lang/natThread.cc (stop): Don't abort, throw an exception
7621 2000-02-09 Tom Tromey <tromey@cygnus.com>
7623 * java/lang/natRuntime.cc (_load): Call add_library.
7624 (loadLibraryInternal): Likewise.
7626 * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
7627 iconv_close when handle is not NULL. Thanks to Andrew Haley.
7628 (Output_iconv::finalize): Likewise.
7630 2000-02-08 Tom Tromey <tromey@cygnus.com>
7632 * java/util/Properties.java (setProperty): New method.
7633 (store): New method.
7635 2000-02-07 Tom Tromey <tromey@cygnus.com>
7637 * java/lang/Runtime.java (_load): Declare.
7638 (load, loadLibrary): Wrote in terms of _load.
7639 * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
7641 (loadLibrary): Likewise.
7643 (_load): New method.
7644 (loadLibrary, load): Removed.
7646 * jni.cc (ThrowableClass): New define.
7647 (_Jv_JNI_Throw): Check argument.
7648 (_Jv_JNI_ThrowNew): Likewise.
7649 (wrap_value): Don't wrap object if it is NULL.
7650 (_Jv_JNI_DefineClass): Use wrap_value.
7651 (_Jv_JNI_FindClass): Likewise.
7652 (_Jv_JNI_GetSuperclass): Likewise.
7653 (_Jv_JNI_ExceptionOccurred): Likewise.
7654 (_Jv_JNI_AllocObject): Likewise.
7655 (_Jv_JNI_GetObjectClass): Likewise.
7656 (_Jv_JNI_NewString): Likewise.
7657 (_Jv_JNI_NewStringUTF): Likewise.
7658 (_Jv_JNI_NewObjectArray): Likewise.
7659 (_Jv_JNI_GetObjectArrayElement): Likewise.
7660 (_Jv_JNI_NewPrimitiveArray): Likewise.
7661 (_Jv_JNI_ToReflectedField): Likewise.
7662 (_Jv_JNI_ToReflectedMethod): Likewise.
7663 (_Jv_JNI_AllocObject): Check argument.
7664 (_Jv_JNI_NewObjectV): Likewise.
7665 (_Jv_JNI_NewObject): Likewise.
7666 (_Jv_JNI_NewObjectA): Likewise.
7667 (_Jv_JNI_GetObjectClass): Likewise.
7668 (_Jv_JNI_GetField): Likewise.
7669 (_Jv_JNI_SetField): Likewise.
7671 * interpret.cc (PUSHL): Don't use expression statement.
7676 * jni.cc (add_char): Conditional on INTERPRETER.
7677 (mangled_name): Likewise.
7679 * include/java-interp.h (class _Jv_MethodBase): Conditional on
7681 (class _Jv_JNIMethod): Likewise.
7683 2000-02-04 Warren Levy <warrenl@cygnus.com>
7685 * Makefile.am: Added MPN.java and BigInteger.java.
7686 * Makefile.in: Rebuilt.
7687 * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
7689 * java/math/BigInteger.java: New file. Based primarily on
7690 Kawa's IntNum.java by Per Bothner <per@bothner.com>.
7692 2000-02-04 Tom Tromey <tromey@cygnus.com>
7694 * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
7696 (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
7697 if the method is native.
7698 * resolve.cc (ncode): Don't handle native methods.
7699 (_Jv_JNIMethod::ncode): New method.
7700 (_Jv_PrepareClass): Handle native methods.
7701 * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
7702 Include AbstractMethodError.h.
7703 (add_char): New function.
7704 (mangled_name): Likewise.
7705 * include/java-interp.h (class _Jv_JNIMethod): New class.
7706 (class _Jv_MethodBase): New class.
7707 (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
7708 (_Jv_InterpClass): Changed `interpreted_methods' field to type
7711 * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
7712 * java/lang/natRuntime.cc (libraries_size, libraries_count,
7713 libraries): New globals.
7714 (add_library): New function.
7715 (_Jv_FindSymbolInExecutable): New function.
7717 * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
7720 2000-02-04 Andrew Haley <aph@cygnus.com>
7722 * java/lang/Throwable.java (CPlusPlusDemangler): New class.
7723 (printStackTrace): Use a CPlusPlusDemangler to demangle names.
7724 * java/lang/natThrowable.cc (printRawStackTrace): Rename
7725 printStackTrace to printRawStackTrace.
7727 2000-02-03 Tom Tromey <tromey@cygnus.com>
7729 * java/util/Calendar.java (toString): New method.
7730 * java/util/SimpleTimeZone.java (clone): New method.
7731 (toString): New method.
7732 * java/util/TimeZone.java (clone): New method.
7733 * java/text/SimpleDateFormat.java (clone): New method.
7734 * java/text/NumberFormat.java (clone): New method.
7735 (equals): New method.
7736 * java/text/Format.java (clone): New method.
7737 * java/text/DateFormatSymbols.java (DateFormatSymbols): New
7739 (clone): New method.
7740 * java/text/DateFormat.java (clone): New method.
7741 * java/text/Collator.java (clone): New method.
7743 2000-02-03 Tom Tromey <tromey@cygnus.com>
7745 * java/io/PipedOutputStream.java (write(byte[], int, int)): New
7748 2000-02-01 Tom Tromey <tromey@cygnus.com>
7750 * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
7751 * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
7752 constructing the closure if the function is native.
7753 * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
7754 a template function, #if'd out, or static.
7755 Include <java-interp.h>.
7757 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
7759 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
7761 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
7762 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
7764 (wrap_value): New function.
7765 (_Jv_JNI_CallAnyMethodV): Use it.
7766 (_Jv_JNI_CallAnyMethodA): Likewise.
7767 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
7768 (_Jv_JNI_GetStaticField): Likewise.
7770 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
7771 (_Jv_JNI_GetStaticField): Likewise.
7773 2000-01-31 Tom Tromey <tromey@cygnus.com>
7775 * prims.cc (_Jv_MallocUnchecked): New function.
7776 (main_init): Call _Jv_JNI_Init.
7777 * include/jvm.h (_Jv_MallocUnchecked): Declare.
7778 (_Jv_JNI_Init): Declare.
7779 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
7781 (_Jv_JNI_NewGlobalRef): New function.
7782 (_Jv_JNI_DeleteGlobalRef): New function.
7783 (_Jv_JNI_DeleteLocalRef): New function.
7784 (_Jv_JNI_conversion_call): Initialize and clear local reference
7786 (_Jv_JNI_NewLocalRef): New function.
7787 (struct _Jv_JNI_LocalFrame): New structure.
7788 (_Jv_JNI_PushLocalFrame): New function.
7789 (_Jv_JNI_EnsureLocalCapacity): New function.
7790 (FRAME_SIZE): New define.
7791 (_Jv_JNI_GetStringChars): Mark string, not characters.
7792 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
7793 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
7794 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
7796 (_Jv_JNI_DefineClass): Make return value a local ref.
7797 (_Jv_JNI_FindClass): Likewise.
7798 (_Jv_JNI_GetSuperclass): Likewise.
7799 (_Jv_JNI_ExceptionOccurred): Likewise.
7800 (_Jv_JNI_AllocObject): Likewise.
7801 (_Jv_JNI_GetObjectClass): Likewise.
7802 (_Jv_JNI_CallAnyMethodV): Likewise.
7803 (_Jv_JNI_NewString): Likewise.
7804 (_Jv_JNI_NewStringUTF): Likewise.
7805 (_Jv_JNI_NewObjectArray): Likewise.
7806 (_Jv_JNI_GetObjectArrayElement): Likewise.
7807 (_Jv_JNI_ToReflectedField): Likewise.
7808 (_Jv_JNI_ToReflectedMethod): Likewise.
7809 (_Jv_JNIFunctions): Updated table for new functions.
7810 (_Jv_JNI_Init): New function.
7811 (mark_for_gc): Wrote.
7812 (unmark_for_gc): Wrote.
7813 * include/jni.h (struct JNINativeInterface): Removed name from
7814 PopLocalFrame parameter.
7815 (class _Jv_JNIEnv): Added `locals' field.
7817 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
7819 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
7822 2000-01-30 Tom Tromey <tromey@cygnus.com>
7824 * include/config.h.in: Rebuilt.
7825 * acconfig.h (HAVE_ICONV): Define.
7826 * configure: Rebuilt.
7827 * configure.in: Check for `iconv' function.
7828 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
7829 no specific encoder exists.
7830 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
7831 no specific encoder exists.
7832 * Makefile.in: Rebuilt.
7833 * Makefile.am (convert_source_files): Mention Input_iconv.java and
7835 (nat_source_files): Added natIconv.cc.
7836 * gnu/gcj/convert/natIconv.cc: New file.
7837 * gnu/gcj/convert/Input_iconv.java: New file.
7838 * gnu/gcj/convert/Output_iconv.java: New file.
7840 2000-01-28 Tom Tromey <tromey@cygnus.com>
7842 * Makefile.in: Rebuilt.
7843 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
7845 2000-01-26 Tom Tromey <tromey@cygnus.com>
7847 * gcj/method.h (JvNumMethods): Moved from Class.h.
7848 (JvGetFirstMethod): Likewise.
7849 * java/lang/Class.h (Object): Updated decl of
7850 _Jv_JNI_ToReflectedField.
7851 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
7852 * Makefile.in: Rebuilt.
7853 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
7854 argument of _Jv_JNI_ToReflectedField.
7855 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
7857 (java/lang/reflect/Method.h): Likewise.
7858 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
7860 (jweak): New typedef.
7861 (struct JNINativeInterface): Correctly declare remaining entries.
7862 * jni.cc: Include Class.h, ClassLoader.h.
7863 (_Jv_JNI_FindClass): New function.
7864 (_Jv_JNI_DefineClass): New function.
7865 (_Jv_JNI_conversion_call): New function.
7866 (_Jv_JNI_FindClass): Use current class loader to find class.
7867 (_Jv_JNI_ExceptionCheck): New function.
7868 (_Jv_JNI_FromReflectedField): Now static.
7869 (MethodClass): New define.
7870 (_Jv_JNI_FromReflectedMethod): New function.
7871 (_Jv_JNI_ToReflectedMethod): Likewise.
7873 (_Jv_JNI_IsAssignableFrom): Renamed.
7874 (_Jv_JNI_GetStringRegion): New function.
7875 Include StringIndexOutOfBoundsException.h.
7876 (_Jv_JNI_GetStringUTFRegion): New function.
7877 (_Jv_JNIFunctions): Updated for new functions.
7878 (_Jv_JNI_GetPrimitiveArrayCritical): New function
7879 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
7880 (_Jv_JNI_GetStringCritical): New function.
7881 (_Jv_JNI_ReleaseStringCritical): Likewise.
7882 (get_throwable): Removed.
7883 (GCJ_JV_JNIENV_FRIEND): Removed.
7884 (__GCJ_JNI_IMPL__): Define.
7887 * resolve.cc (get_ffi_type_from_signature): Handle case where
7890 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
7892 * interpret.cc (run): Don't call println.
7893 Don't include PrintStream.h.
7895 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
7896 nameIndex. Use "jint" as type for boffset.
7897 * java/lang/Class.h (struct _Jv_Method): Made accflags a
7899 (Class): Likewise. Also changed type of method_count,
7900 vtable_method_count, size_in_bytes, field_count,
7901 static_field_count, interface_count.
7902 * gcj/array.h (__JArray): Made `length' a const jsize, not an
7905 2000-01-21 Tom Tromey <tromey@cygnus.com>
7907 * java/lang/reflect/natConstructor.cc (newInstance): Use
7909 * include/jvm.h: Declare _Jv_CallAnyMethodA.
7910 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7911 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
7914 (invoke): Use _Jv_CallAnyMethodA.
7916 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
7917 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
7919 (struct _Jv_Method): Added getNextMethod method.
7920 (JvNumMethods): New function.
7921 (JvGetFirstMethod): Likewise.
7922 * gcj/field.h (JvGetFirstStaticField): New function.
7923 (JvNumStaticFields): Likewise.
7924 (getNextField): Renamed from getNextInstanceField.
7925 (struct _Jv_Field): New method getClass.
7926 * jni.cc: Wrote many new functions.
7927 * include/jni.h (JNI_TRUE): Define.
7928 (JNI_FALSE): Likewise.
7929 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
7930 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
7931 jcharArray, jfloatArray, jdoubleArray): New typedefs.
7932 (jfieldID, jmethodID): Likewise.
7933 (JNI_COMMIT, JNI_ABORT): New defines.
7934 (JNINativeMethod): New struct.
7935 (struct JNINativeInterface): Correctly declared more entries.
7936 (class _Jv_JNIEnv): Added `ex' member.
7937 (JNI_VERSION_1_1): New define.
7938 (JNI_VERSION_1_2): Likewise.
7940 * boehm.cc (_Jv_MarkObj): Use getNextField, not
7941 getNextInstanceField.
7943 2000-01-20 Tom Tromey <tromey@cygnus.com>
7945 * resolve.cc (StringClass): Removed.
7946 * defineclass.cc (StringClass): Removed.
7948 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
7952 2000-01-19 Tom Tromey <tromey@cygnus.com>
7954 * interpret.cc (PC_REGISTER_ASM): Removed.
7956 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
7957 From Bryce McKinlay.
7959 * All files: Updated copyright to reflect Cygnus purchase.
7961 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
7963 * configure: Rebuilt.
7964 * configure.in: Recognize --disable-interpreter.
7966 2000-01-18 Andrew Haley <aph@cygnus.com>
7968 * name-finder.cc (lookup): Check for dladdr function.
7969 acconfig.h (HAVE_DLADDR): Add.
7970 configure.in: Check for HAVE_DLADDR
7972 include/config.h.in: Rebuilt.
7974 2000-01-17 Andrew Haley <aph@cygnus.com>
7976 * prims.cc (_Jv_RunMain): Set the name of this executable.
7978 2000-01-17 Tom Tromey <tromey@cygnus.com>
7980 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
7981 when backtrace can't be computed.
7983 * configure: Rebuilt.
7984 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
7986 * java/lang/Runtime.java (loadLibraryInternal): Declare.
7987 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
7988 (_Jv_FindClassInCache): Likewise.
7989 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
7990 (findSystemClass): Try to load class from compiled module.
7992 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
7993 (loadLibrary): Likewise.
7994 (lt_preloaded_symbols): Define.
7995 (loadLibraryInternal): New method.
7996 * include/config.h.in: Rebuilt.
7997 * acconfig.h (USE_LTDL): Added.
7998 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
7999 (INCLUDES): Added $(INCLTDL).
8000 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
8001 (libgcj_la_LIBADD): Likewise.
8002 * aclocal.m4, configure: Rebuilt.
8003 * configure.in: Added libltdl support.
8005 2000-01-15 Tom Tromey <tromey@cygnus.com>
8007 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
8009 2000-01-14 Andrew Haley <aph@cygnus.com>
8011 * java/lang/natThrowable.cc: New file.
8013 * java/lang/Throwable.java (fillInStackTrace): Make native.
8014 (printStackTrace): Call native method to do this.
8015 (Throwable): Call fillInStackTrace.
8016 (stackTrace): New variable.
8018 * include/jvm.h: Add _Jv_ThisExecutable functions.
8020 * prims.cc: (_Jv_execName): New variable.
8021 (catch_segv): Call fillInStackTrace.
8023 (_Jv_ThisExecutable): New functions.
8024 (JvRunMain): Set the name of this executable.
8026 * Makefile.am: Add java/lang/natThrowable.cc.
8028 * Makefile.in: Rebuilt.
8030 * acconfig.h: Add HAVE_PROC_SELF_EXE.
8032 * configure.in: Force link with __frame_state_for in
8033 FORCELIBGCCSPEC. Add new checks for backtrace.
8034 * include/config.h.in: Rebuilt.
8036 * name-finder.cc: New file.
8037 * include/name-finder.h: New file.
8039 2000-01-16 Anthony Green <green@cygnus.com>
8041 * java/lang/StringBuffer.java (StringBuffer): Don't special case
8044 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
8046 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
8048 2000-01-13 Tom Tromey <tromey@cygnus.com>
8050 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
8051 not system loader, as initiating loader.
8053 2000-01-11 Tom Tromey <tromey@cygnus.com>
8055 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
8056 HP/UX. From David Scott Urban.
8058 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
8060 * java/lang/natMath.cc (pow): Cast args to `double', not
8063 (IEEEremainder): Likewise.
8064 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
8065 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
8067 2000-01-09 Anthony Green <green@cygnus.com>
8069 * java/lang/natString.cc (init): Test for overflow condition
8070 during out of bounds check.
8071 (getChars): Throw StringIndexOutOfBoundsException, not
8072 ArrayIndexOutOfBoundsException.
8074 (regionMatches): Obey case option during string comparison.
8076 * configure.host (ligcj_interpreter): New variable. Enable
8077 interpreter by default on IA-32.
8078 * configure.in: Examine libgcj_interpreter.
8079 * configure: Rebuilt.
8081 2000-01-07 Tom Tromey <tromey@cygnus.com>
8083 * mauve-libgcj: Don't disable ClassTest.
8085 * java/lang/natClass.cc (getClasses): Wrote.
8087 2000-01-06 Tom Tromey <tromey@cygnus.com>
8089 * java/lang/natClass.cc (_getConstructors): Correctly check
8090 whether method name is the init name.
8091 (getMethod): Look at accflags on method in `klass', not `this'.
8093 2000-01-05 Tom Tromey <tromey@cygnus.com>
8095 * java/lang/natClass.cc (getMethod): Compute offset relative to
8096 `klass's methods table, not `this's table.
8098 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
8099 In unwrapping/widening case, check whether `k' is null, not
8100 whether it is primitive. Initialize `num' from `argelts', not
8101 `paramelts'. Correct create and pass arguments to ffi_call.
8102 Don't let presence of `this' argument affect index used to look in
8104 (COPY): Set appropriate element in `values' vector.
8106 * java/lang/natClass.cc: Include <gcj/method.h>.
8108 * java/lang/Class.h (_getMethods): Correctly declare as private,
8111 * java/lang/Class.h (_getMethods): Declare.
8112 * java/lang/Class.java (_getMethods): Declare.
8113 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
8114 (getDeclaredClasses): Always return empty array.
8115 (_getMethods): New method.
8116 (getMethods): Wrote.
8117 (getDeclaredMethod): Return `rmethod'.
8118 (finit_name): New global.
8119 (getDeclaredMethods): Check for finit_name.
8120 (_getMethods): Likewise.
8121 (getMethod): Only return public methods.
8123 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
8124 jboolean and select correct ffi type on that basis.
8125 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
8126 Constructor call always has `void' return type.
8128 2000-01-04 Tom Tromey <tromey@cygnus.com>
8130 * java/lang/Class.h (getSignature): Updated.
8131 * java/lang/Class.java (getSignature): Updated.
8132 * java/lang/natClass.cc (getSignature): Added `is_constructor'
8134 (getConstructor): Ensure constructor is public.
8135 (_getConstructors): Check for public-ness of constructor when
8136 `declared' is false, not when it is true.
8138 2000-01-04 Warren Levy <warrenl@cygnus.com>
8140 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
8142 (receive): Set the sender's address in the DatagramPacket.
8144 2000-01-04 Tom Tromey <tromey@cygnus.com>
8146 * java/lang/reflect/natConstructor.cc (newInstance): Pass
8147 declaring class as return_type argument to
8148 _Jv_CallNonvirtualMethodA.
8149 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
8150 constructor case, create object and use it as `this' argument.
8151 * java/lang/Class.h (_getConstructors): Declare.
8152 (_getFields): Declare.
8153 * java/lang/Class.java (getConstructors): Wrote.
8154 (_getConstructors): New native method.
8155 (getDeclaredConstructors): Wrote.
8156 (_getFields): Declare new native method.
8157 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
8159 (getMethod): Work correctly when class is primitive.
8160 (getDeclaredMethods): Likewise. Compute offset using `method',
8162 (getDeclaredMethod): Likewise.
8163 (getConstructor): Wrote.
8164 (ConstructorClass): New define.
8165 (getDeclaredConstructor): Wrote.
8166 (_getConstructors): New method.
8167 (_getFields): New method.
8170 * Makefile.in: Rebuilt.
8171 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
8173 * prims.cc: Remove `#pragma implementation'.
8174 * gcj/array.h: Remove `#pragma interface'.
8176 * prims.cc (_Jv_equaln): New function.
8177 * java/lang/Class.java (getSignature): Declare.
8178 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
8179 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
8181 (getSignature): New method.
8182 (getDeclaredMethod): Wrote.
8184 Include StringBuffer.h.
8185 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
8186 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
8188 (getSignature): Declare.
8189 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
8190 (_Jv_equaln): Declare.
8191 (_Jv_CallNonvirtualMethodA): Declare.
8192 * Makefile.in: Rebuilt.
8193 * Makefile.am (nat_source_files): Added natConstructor.cc.
8194 (java/lang/reflect/Constructor.h): New target.
8195 * java/lang/reflect/natConstructor.cc: New file.
8196 * java/lang/reflect/Constructor.java (newInstance): Now native.
8197 (declaringClass): Renamed from decl_class.
8198 (offset): Renamed from index.
8199 (getType): New native method.
8200 (getModifiers): Now native.
8201 (getParameterTypes): Call getType if required.
8202 (hashCode): Include hash code from declaring class.
8203 (modifiers): Removed.
8204 (toString): Call getType if required.
8205 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
8206 * java/lang/reflect/natMethod.cc (hack_call): New method.
8207 Removed `#if 0' around FFI code.
8208 Include <gnu/gcj/RawData.h>.
8209 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
8210 IllegalArgumentException when argument object and class disagree.
8211 (_Jv_GetTypesFromSignature): New function.
8213 (ObjectClass): New define.
8214 (_Jv_CallNonvirtualMethodA): New function.
8215 * java/lang/reflect/Method.java (hack_trampoline): New method.
8216 (hack_call): New native method.