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