OSDN Git Service

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