OSDN Git Service

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