OSDN Git Service

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