OSDN Git Service

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