OSDN Git Service

4c70701a62e25d1f5eaaf5fa27ac45eeb5c1b943
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
1 2001-09-02  Tom Tromey  <tromey@redhat.com>
2
3         * java/security/spec/AlgorithmParameterSpec.java,
4         java/security/spec/KeySpec.java: Re-merged with Classpath.
5
6         * gcj/javaprims.h: Regenerated class list.
7         * java/lang/IllegalThreadStateException.java,
8         java/lang/InstantiationException.java: Minor comment tweaks to
9         satisfy libgcj `classes.pl' script.
10
11 2001-09-01  Tom Tromey  <tromey@redhat.com>
12
13         * Makefile.in: Rebuilt.
14         * Makefile.am (core_java_source_files): Added
15         UnsupportedClassVersionError.
16         * java/lang/UnsupportedClassVersionError.java: New file from
17         Classpath.
18
19         * java/io/CharConversionException.java, java/io/EOFException.java,
20         java/io/FileNotFoundException.java, java/io/IOException.java,
21         java/io/InterruptedIOException.java,
22         java/io/ObjectStreamException.java,
23         java/io/OptionalDataException.java,
24         java/io/StreamCorruptedException.java,
25         java/io/SyncFailedException.java,
26         java/io/UTFDataFormatException.java,
27         java/io/UnsupportedEncodingException.java,
28         java/lang/AbstractMethodError.java,
29         java/lang/ArithmeticException.java,
30         java/lang/ArrayIndexOutOfBoundsException.java,
31         java/lang/ArrayStoreException.java,
32         java/lang/ClassCastException.java,
33         java/lang/ClassCircularityError.java,
34         java/lang/ClassFormatError.java,
35         java/lang/CloneNotSupportedException.java, java/lang/Error.java,
36         java/lang/Exception.java,
37         java/lang/ExceptionInInitializerError.java,
38         java/lang/IllegalAccessError.java,
39         java/lang/IllegalAccessException.java,
40         java/lang/IllegalArgumentException.java,
41         java/lang/IllegalMonitorStateException.java,
42         java/lang/IllegalStateException.java,
43         java/lang/IllegalThreadStateException.java,
44         java/lang/IncompatibleClassChangeError.java,
45         java/lang/IndexOutOfBoundsException.java,
46         java/lang/InstantiationError.java,
47         java/lang/InstantiationException.java,
48         java/lang/InternalError.java, java/lang/InterruptedException.java,
49         java/lang/LinkageError.java,
50         java/lang/NegativeArraySizeException.java,
51         java/lang/NoClassDefFoundError.java,
52         java/lang/NoSuchFieldError.java,
53         java/lang/NoSuchFieldException.java,
54         java/lang/NoSuchMethodError.java,
55         java/lang/NoSuchMethodException.java,
56         java/lang/NullPointerException.java,
57         java/lang/NumberFormatException.java,
58         java/lang/OutOfMemoryError.java, java/lang/RuntimeException.java,
59         java/lang/SecurityException.java,
60         java/lang/StackOverflowError.java,
61         java/lang/StringIndexOutOfBoundsException.java,
62         java/lang/ThreadDeath.java, java/lang/UnknownError.java,
63         java/lang/UnsatisfiedLinkError.java,
64         java/lang/UnsupportedOperationException.java,
65         java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
66         java/lang/reflect/InvocationTargetException.java,
67         java/net/BindException.java, java/net/ConnectException.java,
68         java/net/MalformedURLException.java,
69         java/net/NoRouteToHostException.java,
70         java/net/ProtocolException.java, java/net/SocketException.java,
71         java/net/UnknownHostException.java,
72         java/net/UnknownServiceException.java,
73         java/text/ParseException.java: Copied from Classpath, thanks to
74         Mark Wielaard who did the merge.
75
76         * java/lang/System.java (getProperty): Use single argument form of
77         SecurityManager.checkPropertyAccess.
78         * Makefile.in: Rebuilt.
79         * Makefile.am (core_java_source_files): Added VMSecurityManager.
80         * java/lang/VMSecurityManager.java: New file.
81         * java/lang/SecurityManager.java: Merged with Classpath.
82
83 2001-08-31  Per Bothner  <per@bothner.com>
84
85         * gcj/javaprims.h (_Jv_RegisterClassHook):  New extern declaration.
86         (_Jv_RegisterClassHookDefault):  Likewise.
87         * java/lang/Class.h (_Jv_RegisterClassHookDefault):  Declare as friend.
88         * java/lang/natClassLoader.cc (_Jv_RegisterClassHook):  New variable.
89         (_Jv_RegisterClassHookDefault):  New.function.
90         (_Jv_RegisterClasses):  Call _Jv_RegisterClassHook.
91
92         * java/lang/ClassLoader.java (system):  Remove static field.
93         (getSystemClassLoader):  Get gnu.gcj.runtime.VMClassLoader.instance
94         directly instead of using it to set the system field.
95         (loadClass):  Use VMClassLoader.instance instead of system field.
96         (findSystemClass):   Similar.
97         * prims.cc (_Jv_RunMain):  Clear VMClassLoader::instance rather
98         than ClassLoader::system which no longer exists.
99         * java/lang/natClassLoader.java (_Jv_FindClass):  Simplify.
100
101 2001-08-31  Tom Tromey  <tromey@redhat.com>
102
103         * java/io/BufferedReader.java, java/io/ObjectInput.java,
104         java/io/ObjectInputValidation.java, java/io/ObjectOutput.java:
105         Re-merged with Classpath.
106
107         Re-merge with Classpath:
108         * java/util/Comparator (equals): Added.
109         * java/io/PipedWriter.java (write): Changed argument to `int'.
110
111         * java/io/FileDescriptor.java (FileDescriptor()): New
112         constructor.
113         * java/io/File.java (getAbsoluteFile): Doesn't throw IOException.
114
115         * Makefile.in: Rebuilt.
116         * Makefile.am (ordinary_java_source_files): Removed
117         EnumerationChain, added DoubleEnumeration.
118         (nat_source_files): Added natResourceBundle.cc.
119         * java/util/natResourceBundle.cc: New file.
120         * gnu/java/util/DoubleEnumeration.java: New file.
121         * gnu/gcj/util/EnumerationChain.java: Removed.
122         * java/beans/VetoableChangeSupport.java: Merged with Classpath.
123         * java/util/ResourceBundle.java: Merged with Classpath.
124         * java/util/StringTokenizer.java: Merged with Classpath.
125         * java/util/Locale.java: Merged with Classpath.
126         * java/util/Random.java: Merged with Classpath.
127         * java/util/PropertyResourceBundle.java: Merged with Classpath.
128         * java/util/ListResourceBundle.java: Merged with Classpath.
129         * java/util/ConcurrentModificationException.java: Re-merged with
130         Classpath.
131         * java/util/EmptyStackException.java: Likewise.
132         * java/util/MissingResourceException.java: Likewise.
133         * java/util/NoSuchElementException.java: Likewise.
134         * java/util/TooManyListenersException.java: Likewise.
135
136         * java/io/ByteArrayOutputStream.java: Re-merged with Classpath.
137         * java/io/OptionalDataException.java: Merged with Classpath.
138
139 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
140
141         * exception.cc (PERSONALITY_FUNCTION): Simplify
142         leb128 handling.
143
144 2001-08-31  Tom Tromey  <tromey@redhat.com>
145
146         * java/io/ByteArrayInputStream.java: Merged with Classpath.
147
148 2001-08-30  Tom Tromey  <tromey@redhat.com>
149
150         * java/io/BufferedReader.java: Re-merged with Classpath.
151
152 2001-08-28  Per Bothner  <per@bothner.com>
153
154         * java/math/BigInteger.java (init(int,Random)):  New method.
155         Move body of constructor <init>(int,Random)) here.
156         Re-write it to avoid constructing unneeded temporaries.
157         (<init>(int,int,Random)):  Use new init method to avoid constructing
158         extra temporary BigIntegers.
159         
160 2001-08-27  Tom Tromey  <tromey@redhat.com>
161
162         * java/rmi/activation/Activatable.java,
163         java/rmi/activation/ActivateFailedException.java,
164         java/rmi/activation/ActivationDesc.java,
165         java/rmi/activation/ActivationException.java,
166         java/rmi/activation/ActivationGroup.java,
167         java/rmi/activation/ActivationGroupDesc.java,
168         java/rmi/activation/ActivationGroupID.java,
169         java/rmi/activation/ActivationID.java,
170         java/rmi/activation/ActivationInstantiator.java,
171         java/rmi/activation/ActivationMonitor.java,
172         java/rmi/activation/ActivationSystem.java,
173         java/rmi/activation/Activator.java,
174         java/rmi/activation/UnknownGroupException.java,
175         java/rmi/activation/UnknownObjectException.java,
176         java/rmi/AccessException.java,
177         java/rmi/AlreadyBoundException.java,
178         java/rmi/ConnectException.java, java/rmi/ConnectIOException.java,
179         java/rmi/MarshalException.java, java/rmi/MarshalledObject.java,
180         java/rmi/Naming.java, java/rmi/NoSuchObjectException.java,
181         java/rmi/NotBoundException.java,
182         java/rmi/RMISecurityException.java,
183         java/rmi/RMISecurityManager.java, java/rmi/Remote.java,
184         java/rmi/RemoteException.java, java/rmi/ServerError.java,
185         java/rmi/ServerException.java,
186         java/rmi/ServerRuntimeException.java,
187         java/rmi/StubNotFoundException.java,
188         java/rmi/UnexpectedException.java,
189         java/rmi/UnknownHostException.java,
190         java/rmi/UnmarshalException.java, java/rmi/dgc/DGC.java,
191         java/rmi/dgc/Lease.java, java/rmi/dgc/VMID.java,
192         java/rmi/registry/LocateRegistry.java,
193         java/rmi/registry/Registry.java,
194         java/rmi/registry/RegistryHandler.java,
195         java/rmi/server/ExportException.java,
196         java/rmi/server/LoaderHandler.java,
197         java/rmi/server/LogStream.java, java/rmi/server/ObjID.java,
198         java/rmi/server/Operation.java,
199         java/rmi/server/RMIClassLoader.java,
200         java/rmi/server/RMIClientSocketFactory.java,
201         java/rmi/server/RMIFailureHandler.java,
202         java/rmi/server/RMIServerSocketFactory.java,
203         java/rmi/server/RMISocketFactory.java,
204         java/rmi/server/RemoteCall.java,
205         java/rmi/server/RemoteObject.java, java/rmi/server/RemoteRef.java,
206         java/rmi/server/RemoteServer.java,
207         java/rmi/server/RemoteStub.java,
208         java/rmi/server/ServerCloneException.java,
209         java/rmi/server/ServerNotActiveException.java,
210         java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java,
211         java/rmi/server/SkeletonMismatchException.java,
212         java/rmi/server/SkeletonNotFoundException.java,
213         java/rmi/server/SocketSecurityException.java,
214         java/rmi/server/UID.java,
215         java/rmi/server/UnicastRemoteObject.java,
216         java/rmi/server/Unreferenced.java, gnu/java/rmi/dgc/DGCImpl.java,
217         gnu/java/rmi/dgc/DGCImpl_Skel.java,
218         gnu/java/rmi/dgc/DGCImpl_Stub.java,
219         gnu/java/rmi/registry/RegistryImpl.java,
220         gnu/java/rmi/registry/RegistryImpl_Skel.java,
221         gnu/java/rmi/registry/RegistryImpl_Stub.java,
222         gnu/java/rmi/rmic/RMIC.java, gnu/java/rmi/rmic/TabbedWriter.java,
223         gnu/java/rmi/server/ProtocolConstants.java,
224         gnu/java/rmi/server/RMIDefaultSocketFactory.java,
225         gnu/java/rmi/server/RMIHashes.java,
226         gnu/java/rmi/server/RMIObjectInputStream.java,
227         gnu/java/rmi/server/RMIObjectOutputStream.java,
228         gnu/java/rmi/server/UnicastConnection.java,
229         gnu/java/rmi/server/UnicastConnectionManager.java,
230         gnu/java/rmi/server/UnicastRef.java,
231         gnu/java/rmi/server/UnicastRemoteCall.java,
232         gnu/java/rmi/server/UnicastRemoteStub.java,
233         gnu/java/rmi/server/UnicastServer.java,
234         gnu/java/rmi/server/UnicastServerRef.java: RMI implementation from
235         Kaffe.  Relabelled classes to fit into Classpath tree.
236         * Makefile.in: Rebuilt.
237         * Makefile.am (rmi_java_source_files): New macro.
238         (ordinary_java_source_files): Reference it.
239         (bin_PROGRAMS): Added rmic and rmiregistry.
240         (rmic_SOURCES): New macro.
241         (EXTRA_rmic_SOURCES): Likewise.
242         (rmic_LDFLAGS): Likewise.
243         (rmic_LINK): Likewise.
244         (rmic_LDADD): Likewise.
245         (rmic_DEPENDENCIES): Likewise.
246         (rmiregistry_SOURCES): New macro.
247         (EXTRA_rmiregistry_SOURCES): Likewise.
248         (rmiregistry_LDFLAGS): Likewise.
249         (rmiregistry_LINK): Likewise.
250         (rmiregistry_LDADD): Likewise.
251         (rmiregistry_DEPENDENCIES): Likewise.
252
253 2001-08-26  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
254
255         * name-finder.cc (lookup): Ignore a null dli_fname from dladdr.
256
257         * Makefile.am: New friends for java/lang/Thread.h.
258         * prims.cc (runFirst): Removed.
259         (JvRunMain): Merged into _Jv_RunMain. Now just calls that.
260         (_Jv_RunMain): Now takes either a klass or class name parameter.
261         Create a gnu.gcj.runtime.FirstThread and attach the native thread
262         to that, then run it using _Jv_ThreadRun. Remove special handling of
263         jar files, instead pass is_jar parameter through to FirstThread.
264         * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
265         of _Jv_AttachCurrentThread.
266         * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
267         (run): New method. Take care of looking up main class manifest 
268         attribute and calling forName if neccessary. Then call call_main.
269         (call_main): New native method.
270         * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code 
271         relocated from prims.cc. Look up and call main method. 
272         * java/lang/Thread.java (run_): Removed.
273         * java/lang/natThread.cc (run_): Renamed to...
274         (_Jv_ThreadRun): this. JVMPI notification code moved to ...
275         (_Jv_NotifyThreadStart): here. New function.
276         (countStackFrames, destroy, resume, suspend, stop): Throw
277         UnsupportedOperationExceptions rather than JvFail'ing.
278         (_Jv_AttachCurrentThread): New variant takes a Thread argument.
279         Existing version wraps new variant.
280         
281
282 2001-08-23  Tom Tromey  <tromey@redhat.com>
283
284         * java/lang/reflect/Field.java (toString): Use
285         Method.appendClassName.
286         * java/lang/reflect/Constructor.java (toString): Use
287         Method.appendClassName.
288         * java/lang/reflect/Method.java: Reindented.
289         (appendClassName): New method.
290         (toString): Use it.
291         * defineclass.cc (handleMethod ): Initialize `throws' field of
292         method.
293         (read_one_method_attribute): Handle Exceptions attribute.
294         * java/lang/reflect/natMethod.cc (ClassClass): Removed.
295         (ObjectClass): Removed.
296         (getType): Compute `exception_types'.
297         * java/lang/Class.h (struct _Jv_Method): Added `throws' field.
298
299 2001-08-21  Anthony Green  <green@redhat.com>
300
301         * java/lang/natClassLoader.cc (findClass): Search for
302         lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
303
304 2001-08-21  Jeff Sturm  <jsturm@one-point.com>
305
306         * java/util/IdentityHashMap.java (get): Fix off-by-one error.
307         (put): Likewise.
308
309 2001-08-20  Tom Tromey  <tromey@redhat.com>
310
311         * java/awt/GridBagConstraints.java: Removed comment.
312
313         * jni.cc (nathash, nathash_count, nathash_size): New globals.
314         (DELETED_ENTRY): New define.
315         (hash): New function.
316         (nathash_find_slot): Likewise.
317         (natrehash): Likewise.
318         (nathash_add): Likewise.
319         (_Jv_JNI_RegisterNatives): No longer interpreter-specific.  Use
320         nathash_add.
321         (nathash_find): New function.
322         (_Jv_LookupJNIMethod): Use it.  Synchronize body.
323         (call): Synchronize around assignment.
324
325 2001-08-17  Jeff Sturm  <jsturm@one-point.com>
326
327         * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
328         starting from zero offset.
329
330 2001-08-17  Hans-J. Boehm <Hans_Boehm@hp.com>
331
332         * boehm.cc: Include gc_local_alloc.h if appropriate.
333         (GC_GENERIC_MALLOC): Don't define.
334         (MAYBE_MARK): Redefine for GC 6.0.
335         (_Jv_MarkObj): Mark class differently.
336         (_Jv_AllocArray): Use GC_generic_malloc.
337
338 2001-08-17  Mark J Roberts  <mjr@anarcast.net>
339
340         * java/math/BigInteger.java (randBytes): New method.
341         (BigInteger(int,Random)): Use randBytes.
342
343 2001-08-17  Tom Tromey  <tromey@redhat.com>
344
345         * gnu/gcj/convert/IOConverter.java: Add `646' alias.
346
347 2001-08-17  Hans-J. Boehm <Hans_Boehm@hp.com>
348
349         * BigInteger.java: fix right shifts by nonzero multiples of 32.
350         
351 2001-08-15  Tom Tromey  <tromey@redhat.com>
352
353         * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
354         (local_ref_table, global_ref_table): Now IdentityHashMap.
355         (_Jv_JNI_Init): Updated for new types.
356         (mark_for_gc): Likewise.
357         (unmark_for_gc): Likewise.
358         * gcj/javaprims.h: Rebuilt class list.
359         * Makefile.in: Rebuilt.
360         * Makefile.am (core_java_source_files): Added new file.
361         * java/util/IdentityHashMap.java: New file.
362
363         * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
364         correctly.
365
366 2001-08-09  Tom Tromey  <tromey@redhat.com>
367
368         * java/awt/image/SampleModel.java (getPixel): Set correct array
369         element.  From Chris Meyer.
370
371 2001-08-10  Loren J. Rittle  <ljrittle@acm.org>
372
373         * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
374         * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
375
376 2001-08-06  Tom Tromey  <tromey@redhat.com>
377
378         * java/io/InputStreamReader.java (refill): Only call refill on
379         BufferedInputStream when appropriate constraints are met.
380
381 2001-08-05  Tom Tromey  <tromey@redhat.com>
382
383         * java/io/StringWriter.java: Merged with Classpath.
384         * java/io/InputStream.java: Merged with Classpath.
385         * java/io/OutputStream.java: Merged with Classpath.
386         * java/io/PushbackInputStream.java: Merged with Classpath.
387         * java/io/CharArrayReader.java: Merged with Classpath.
388         * java/io/CharArrayWriter.java: Merged with Classpath.
389
390 2001-08-02  Tom Tromey  <tromey@redhat.com>
391
392         * prims.cc (JNI_OnLoad): Don't declare.
393         (_JNI_OnLoad): Don't define.
394         (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
395
396 2001-08-02  Tom Tromey  <tromey@redhat.com>
397
398         * java/io/RandomAccessFile.java (seek): Let seek go past end of
399         file.
400         (skipBytes): Don't fail if seeking past end of file.
401         * java/io/FileInputStream.java (skip): Don't fail if seeking past
402         end of file.
403         * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
404         argument.
405         * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
406         argument.
407         * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
408         argument.
409         * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
410
411 2001-08-02  Martin Kahlert  <martin.kahlert@infineon.com>
412
413         * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
414         to initialize global_ref_table/local_ref_table.
415
416 2001-08-02  Tom Tromey  <tromey@redhat.com>
417
418         * configure: Rebuilt.
419         * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin.  From
420         David Billinghurst.
421
422 2001-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
423
424         * include/posix.h (_POSIX_PII_SOCKET): Define.
425         * configure.in (HAVE_SOCKLEN_T): Define.
426         * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
427         definition up. 
428         (_JV_accept): New function, avoids Tru64 UNIX accept macro.
429         (java::net::PlainSocketImpl::accept): Use it.
430         Fixes PRs libgcj/3694, libgcj/3696.
431         
432         * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
433         * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
434         * configure, include/config.h.in: Regenerate.
435         * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
436         (mcastGrp): Likewise.
437         (java::net::PlainDatagramSocketImpl::setOption): Guard against
438         missing IPV6_MULTICAST_IF.
439         Fixes PR libgcj/3694.
440
441 2001-08-01  Jeff Sturm  <jsturm@one-point.com>
442
443         * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
444
445 2001-07-30  Christian Iseli  <chris@ludwig-alpha.unil.ch>
446
447         * Makefile.in: Rebuilt.
448         * Makefile.am (GCJLINK): Added --tag=GCJ.
449         (LIBLINK): Likewise.
450
451 2001-07-30  Tom Tromey  <tromey@redhat.com>
452
453         * java/util/Date.java: Re-merged with Classpath.
454
455 2001-07-30  Jeff Sturm  <jsturm@one-point.com>
456
457         * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
458         (_Jv_bind): New static function.
459         (bind): Use _Jv_bind.
460         * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
461         (_Jv_bind, _Jv_connect): New static functions.
462         (bind): Use _Jv_bind.
463         (connect): Use _Jv_connect.
464
465 2001-07-30  Tom Tromey  <tromey@redhat.com>
466             Corey Minyard  <minyard@acm.org>
467
468         * gnu/gcj/convert/natIconv.cc (done): New methods.
469         * gnu/gcj/convert/Output_iconv.java (done): New method.
470         * gnu/gcj/convert/Input_iconv.java (done): New method.
471         * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
472         Removed.
473         (getDefaultEncodingClass): Removed.
474         (getDefaultEncoder): Use getEncoder.
475         (done): New method.
476         (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
477         static fields.
478         * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
479         Removed.
480         (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
481         static fields.
482         (getDefaultDecodingClass): Removed.
483         (getDefaultDecoder): Use getDecoder.
484         (getDecoder): Look up decoder in cache.
485         (done): New method.
486         * java/lang/natString.cc (init): Call `done' on converter.
487         (getBytes): Likewise.
488
489 2001-07-30  Tom Tromey  <tromey@redhat.com>
490
491         * java/lang/Integer.java: Merged with Classpath.
492
493 2001-07-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
494
495         * java/util/GregorianCalendar.java (GregorianCalendar): Call
496         setTimeInMillis() to set the default/current time.
497
498 2001-07-29  Mark Wielaard <mark@klomp.org>
499
500         * HACKING: add description on updating namespace
501
502 2001-07-26  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
503
504         * java/util/Calendar.java (set): Never recompute fields here. They 
505         will already be set if someone set time explicitly, and it can cause
506         problems to do so. Don't invalidate AM_PM setting if HOUR is set.
507         * java/util/GregorianCalendar.java (computeTime): Don't ignore an
508         HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is 
509         sane.
510         * java/text/SimpleDateFormat.java (defaultCentury): New field.
511         (readObject): Call set2DigitYearStart if appropriate so that 
512         defaultCentury is calculated.
513         (SimpleDateFormat): Don't bother clearing calendar here. Call
514         computeCenturyStart().
515         (set2DigitYearStart): Calculate and set defaultCentury.
516         (format): Don't clone the calendar. Use "calendar" not "theCalendar"
517         everywhere.
518         (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
519         2 numeric digits, use the 80-20 heuristic to parse the value into a
520         default century based on defaultCenturyStart.
521         (computeCenturyStart): Rewritten. Call set2DigitYearStart().
522
523 2001-07-25  Tom Tromey  <tromey@redhat.com>
524
525         * Makefile.in: Rebuilt.
526         * Makefile.am (libgcj.jar): Correctly fail when bytecode
527         compilation fails.
528
529 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
530
531         * prims.cc (_JNI_OnLoad): New function.
532         (JNI_OnLoad): Use it.
533         (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
534
535 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
536
537         * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
538         Makefile.in: Regenerate.
539
540 2001-07-24  Tom Tromey  <tromey@redhat.com>
541
542         * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
543         type.
544
545 2001-07-23  Tom Tromey  <tromey@redhat.com>
546
547         * gcj/javaprims.h: Rebuilt class list.
548         * Makefile.in: Rebuilt.
549         * Makefile.am (core_java_source_files): Added VMClassLoader.
550         * java/lang/VMClassLoader.java: New file.
551         * java/lang/Boolean.java: Merged with Classpath.
552         * java/lang/Byte.java: Merged with Classpath.
553         * java/lang/Integer.java: Merged with Classpath.
554         * java/lang/Long.java: Merged with Classpath.
555         * java/lang/Number.java: Merged with Classpath.
556         * java/lang/Short.java: Merged with Classpath.
557
558 2001-07-22  Jeff Sturm  <jsturm@one-point.com>
559
560         * configure.host: Enable hash synchronization for alpha*-*.
561         * include/posix-threads.h (_Jv_ThreadSelf): Added inline
562         function for alpha.
563         * java/lang/natObject.cc (compare_and_swap, release_set,
564         compare_and_swap_release): Added inline functions for alpha.
565
566 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
567
568         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
569         2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
570         back to old RFC 2133 variants if missing.
571
572 2001-07-18  Tom Tromey  <tromey@redhat.com>
573
574         * java/io/natFileWin32.cc (_access): Renamed.
575         (_stat): Likewise.
576         * java/io/natFile.cc (_access): Renamed.
577         (_stat): Likewise.
578         * java/io/File.java (access, stat): Add leading `_' to name.
579         Updated all callers.
580
581 2001-07-18  Tom Tromey  <tromey@redhat.com>
582
583         For PR java/2812:
584         * libgcj.spec.in (*lib): Added LIBICONV.
585         * configure: Rebuilt.
586         * configure.in: Call AM_ICONV.  Don't check for iconv function.
587         Add parameters to JV_HASH_SYNCHRONIZATION define.
588         * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
589
590 2001-07-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
591
592         * java/util/LinkedList.java (clone): Clear the copy list with clear(), 
593         not by setting its size field.
594
595 2001-07-13  Alexandre Petit-Bianco  <apbianco@redhat.com>
596
597         * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
598         local `_ebp.'
599
600 2001-07-12  Tom Tromey  <tromey@redhat.com>
601             David Brownell  <david-b@pacbell.net>
602         
603         Fix for PR libgcj/3426:
604         * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
605         errno.h.
606         (read): Throw exception if character conversion fails.
607         * java/io/BufferedInputStream.java (refill): Now package-private.
608         * java/io/InputStreamReader.java (ready): Simplified.
609         (refill): New method.
610         (read): Use it.
611
612 2001-07-12  Tom Tromey  <tromey@redhat.com>
613
614         Report from Henner Zeller:
615         * java/io/FileOutputStream.java (FileOutputStream): Throw
616         FileNotFoundException, not IOException.
617
618 2001-07-10  Anthony Green  <green@redhat.com>
619
620         * Makefile.in: Rebuilt.
621         * Makefile.am: Add new files.
622         * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
623         org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
624         org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
625         org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
626         org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
627         org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
628         org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
629         org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
630         org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
631         org/w3c/dom/ranges/DocumentRange.java,
632         org/w3c/dom/ranges/Range.java,
633         org/w3c/dom/ranges/RangeException.java,
634         org/w3c/dom/traversal/DocumentTraversal.java,
635         org/w3c/dom/traversal/NodeFilter.java,
636         org/w3c/dom/traversal/NodeIterator.java,
637         org/w3c/dom/traversal/TreeWalker.java,
638         org/xml/sax/ext/DeclHandler.java,
639         org/xml/sax/ext/LexicalHandler.java,
640         org/xml/sax/helpers/AttributeListImpl.java,
641         org/xml/sax/helpers/AttributesImpl.java,
642         org/xml/sax/helpers/DefaultHandler.java,
643         org/xml/sax/helpers/LocatorImpl.java,
644         org/xml/sax/helpers/NamespaceSupport.java,
645         org/xml/sax/helpers/ParserAdapter.java,
646         org/xml/sax/helpers/ParserFactory.java,
647         org/xml/sax/helpers/XMLFilterImpl.java,
648         org/xml/sax/helpers/XMLReaderAdapter.java,
649         org/xml/sax/helpers/XMLReaderFactory.java,
650         org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
651         org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
652         org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
653         org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
654         org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
655         org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
656         org/xml/sax/SAXNotRecognizedException.java,
657         org/xml/sax/SAXNotSupportedException.java,
658         org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
659         org/xml/sax/XMLReader.java:  New files.
660
661 2001-07-10  Alexandre Petit-Bianco  <apbianco@redhat.com>
662
663         * Makefile.am: Added `java/lang/ThreadLocal.java'.
664         * Makefile.in: Regenerate.
665         * java/lang/ThreadLocal.java: Initial import.
666
667 2001-07-07  Jeff Sturm  <jsturm@one-point.com>
668         
669         * Makefile.am (libgcj.jar): Don't recursively make
670         built_java_source_files.  Avoid long command lines.
671         Don't change to $(srcdir) to invoke javac.
672         (libgcj.la, libgcjx.la); Avoid long command lines.
673         ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
674         * Makefile.in: Rebuilt.
675
676 2001-07-06  Andrew Haley  <aph@cambridge.redhat.com>
677
678         * include/i386-signal.h: Don't do anything with unsigned divide
679         overflow except throw an exception.
680
681 2001-07-05  Tom Tromey  <tromey@redhat.com>
682
683         For PR java/3562:
684         * java/lang/Class.h (Class(void)): Now private.  Removed
685         implementation.  From dmorsberger@sensysdl.com.
686
687 2001-07-02  Tom Tromey  <tromey@redhat.com>
688
689         Fix for PR bootstrap/3281:
690         * aclocal.m4, configure: Rebuilt.
691         * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
692         Correctly compute libgcj_basedir.
693         (mkinstalldirs): Define and subst.
694
695 2001-07-01  Jeremy Nimmer  <jwnimmer@alum.mit.edu>
696
697         For PR libgcj/3523:
698         * java/io/LineNumberReader.java (reset): Pass correct arguments to
699         countLines.
700
701 2001-06-27  Tom Tromey  <tromey@redhat.com>
702
703         * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
704         lowercase.
705
706 2001-06-25  Tom Tromey  <tromey@redhat.com>
707
708         * scripts/encodings.pl: Generate lower-case names.  Updated URL
709         for `character-sets' file.
710         * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
711         lower case.
712         Rebuilt list of aliases.
713
714 2001-06-25  Tom Tromey  <tromey@redhat.com>
715
716         * java/io/natFileDescriptorPosix.cc (open): Change error message
717         formatting.  From David Brownell.
718
719 2001-06-21  Tom Tromey  <tromey@redhat.com>
720
721         * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
722         From Corey Minyard.
723
724 2001-06-19  Mark J. Roberts  <mjr@statesmean.com>
725
726         * java/math/BigInteger.java (byteArrayToIntArray): Don't include
727         extraneous/malformed sign word.
728
729 2001-06-15  Tom Tromey  <tromey@redhat.com>
730
731         * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
732
733 2001-06-15  Tom Tromey  <tromey@redhat.com>
734
735         * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
736         NULL if no library on the list has the symbol.
737         (init): Call add_library on the program itself.
738         * prims.cc (JvRunMain): Initialize Runtime before searching for
739         `main'.
740         (_Jv_RunMain): Likewise.
741
742 2001-06-15  Tom Tromey  <tromey@redhat.com>
743
744         * jni.cc (ClassClass): Removed; updated all users.
745         (ObjectClass): Likewise.
746         (ThrowableClass): Likewise.
747         (MethodClass): Likewise.
748         (ThreadGroupClass): Likewise.
749         (local_ref_table): Renamed from `ref_table'.
750         (global_ref_table): New global.
751         (_Jv_JNI_Init): Initialize both ref tables.
752         (mark_for_gc): Added `ref_table' parameter.
753         (unmark_for_gc): Likewise.  Also, fail if we unreferenced too many
754         times.
755         (_Jv_JNI_NewGlobalRef): Updated for new mark function.
756         (_Jv_JNI_DeleteGlobalRef): Likewise.
757         (_Jv_JNI_DeleteLocalRef): Likewise.
758         (_Jv_JNI_NewLocalRef): Likewise.
759         (_Jv_JNI_PopLocalFrame): Likewise.
760         (_Jv_JNI_GetStringChars): Likewise.
761         (_Jv_JNI_ReleaseStringChars): Likewise.
762         (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
763         (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
764
765 2001-06-14  Tom Tromey  <tromey@redhat.com>
766
767         Fix for PR libgcj/3144:
768         * java/util/Date.java: Merged with Classpath.
769
770 2001-06-12  Tom Tromey  <tromey@redhat.com>
771
772         * aclocal.m4, configure: Rebuilt.
773         * acinclude.m4: Find configure.host in srcdir.
774
775 2001-06-07  Tom Tromey  <tromey@redhat.com>
776
777         Fix for PR libgcj/3059:
778         * java/lang/natSystem.cc (init_properties): Define `java.home'.
779         * Makefile.in: Rebuilt.
780         * Makefile.am (AM_CXXFLAGS): Define PREFIX.
781
782 2001-06-10  Alexandre Petit-Bianco  <apbianco@redhat.com>
783
784         * exception.cc (cstdlib): Replaces stdlib.h.
785         (_Jv_Throw): Use std::abort().
786         (PERSONALITY_FUNCTION): Likewise.
787
788 2001-06-09  Alexandre Oliva  <aoliva@redhat.com>, Stephen L Moshier  <moshier@mediaone.net>
789
790         * acinclude.m4 (AC_EXEEXT): Work around in case it expands to
791         nothing, as in autoconf 2.50.
792         * aclocal.m4, configure: Rebuilt.
793
794 2001-06-08  Tom Tromey  <tromey@redhat.com>
795
796         * configure: Rebuilt.
797         * configure.in: Compute new aux dir using `pwd'.
798
799 2001-06-07  Tom Tromey  <tromey@redhat.com>
800
801         For PR bootstrap/3075:
802         * configure, aclocal.m4, Makefile.am: Rebuilt.
803         * configure.in: Pass `--with-auxdir' to subdir configure.  Don't
804         call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM.  Look for unwind.h
805         relative to libgcj_basedir.
806         * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
807         AC_CANONICAL_SYSTEM here.
808         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
809         libgcj_basedir.
810         ($(extra_headers)): New target.
811
812 2001-06-05  Martin Kahlert  <martin.kahlert@infineon.com>
813             Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
814
815         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
816         table index is within allowed bounds. Ensure that we dont try to access
817         class itable at a negative offset. Avoid an ancestor table lookup if
818         source is a primitive type class.
819         (isInstance): Remove redundant isPrimitive() check.
820
821 2001-06-04  Tom Tromey  <tromey@redhat.com>
822
823         * java/security/PublicKey.java: Extend Key.
824         * java/security/PrivateKey.java: Extend Key.
825
826 2001-06-02  Anthony Green  <green@redhat.com>
827
828         * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
829         alternate when USE_LTDL not defined.
830
831 2001-06-02  Anthony Green  <green@redhat.com>
832
833         * configure: Rebuild.
834         * configure.in: Remove data_start hack.
835         * libgcj.spec.in: Ditto.
836         * Makefile.in: Rebuild.
837         * Makefile.am: Ditto.
838         * libgcjdata.c: Remove.
839         
840 2001-06-02  Anthony Green  <green@redhat.com>
841
842         * configure: Rebuild.
843         * configure.in (LIBFFIINCS, LIBFFI): Introduce.  Add
844         --without-libffi option.  Tweak --disable-java-net processing.
845         * Makefile.in: Rebuild.
846         * Makefile.am (LIBFFIINCS, LIBFFI): Use.
847         * include/config.h.in: Rebuild.
848         * acconfig.h (USE_LIBFFI): Define.
849         * java/lang/reflect/natMethod.c: Use USE_LIBFFI.
850
851 2001-06-02  Anthony Green  <green@redhat.com>
852
853         * configure: Rebuilt.
854         * configure.in: Test for sigaction on native builds.
855         * prims.cc: Check HAVE_SIGACTION.
856         * include/config.h.in: Rebuilt.
857
858 2001-05-31  Jeff Sturm  <jsturm@one-point.com>
859
860         * natFile.cc (get_entry): Removed functions.
861         (performList): Call readdir or readdir_r if HAVE_READDIR_R defined.
862         Allocate enough storage for d_name if using readdir_r.
863
864 2001-05-31  Tom Tromey  <tromey@redhat.com>
865
866         * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to
867         correct size.
868         (write): Loop until write completes.  From Corey Minyard.
869
870 2001-05-29  Laurent Guerby  <guerby@acm.org>
871
872         * java/awt/geom/Rectangle2D.java: fix doc typo.
873
874 2001-05-31  Tom Tromey  <tromey@redhat.com>
875
876         * java/sql/DriverManager.java (getDrivers): Handle case where
877         driver's class loader is null.  From Corey Minyard.
878
879 2001-05-29  Tom Tromey  <tromey@redhat.com>
880
881         * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
882
883         * configure: Rebuilt.
884         * configure.in: Only add multilib support code if we just rebuilt
885         top-level Makefile.
886
887 2001-05-29  Andrew Haley  <aph@redhat.com>
888
889         * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
890         pointer: the dwarf unwinder in libgcc will do everything that's
891         needed.
892         (HANDLE_DIVIDE_OVERFLOW): Tidy.  Don't mess with stack frames any
893         more than we absolutely need to.
894         * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
895         * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
896         Alpha.
897         (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
898         "$libgcj_sjlj".
899         * configure: Rebuilt.
900         * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
901         for Alpha.
902         (SIGNAL_HANDLER): Use siginfo style handler.
903         (INIT_SEGV): Likewise.
904         (INIT_FPE): Likewise.
905         * include/ppc-signal.h: Delete whole file.
906
907 2001-05-24  Tom Tromey  <tromey@redhat.com>
908
909         * java/lang/natString.cc (init): Throw
910         ArrayIndexOutOfBoundsException.
911         (getChars): Likewise.
912         (getBytes): Likewise.
913         (valueOf): Likewise.
914
915         * configure.in: Only allow hash synchronization when POSIX threads
916         are enabled.
917         * java/lang/natObject.cc (alloc_heavy): Properly find `init' field
918         of sync info object.
919
920 2001-05-23  Tom Tromey  <tromey@redhat.com>
921
922         * Makefile.in: Rebuilt.
923         * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks.
924
925         Revert patch of 2001-05-21:
926         * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files.
927         (libgcj_la_LIBADD): Likewise.
928         (libgcjx_la_DEPENDENCIES): Removed x_nat_files.
929         (libgcjx_la_LIBADD): Likewise.
930
931         * posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
932         * gcj/Makefile.in: Rebuilt.
933         * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
934         * gcj/javaprims.h: Include gcj/libgcj-config.h.
935         * gcj/libgcj-config.h.in: New file.
936         * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
937         * configure: Rebuilt.
938         * configure.in: Enable hash synchronization by default on some
939         platforms.
940         (HASH_SYNC_SPEC): New subst.
941         (AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
942         Correctly use `test -z' instead of `test -n' in a couple places.
943         (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
944         LIBGCJ_CXXFLAGS.
945         * configure.host (enable_java_net_default): Initialize.
946         (enable_hash_synchronization_default): New variable.
947
948 2001-05-23  Hans Boehm <Hans_Boehm@hp.com>
949
950         * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
951         synchronization in use.
952         (_Jv_MarkArray): Likewise.
953         (_Jv_AllocBytes): Don't check return result.
954         (handle_out_of_memory): New function.
955         (_Jv_InitGC): Set GC_oom_fn.
956         (trace_one_vtable): New global.
957         (_Jv_AllocTraceOne): New function.
958         * configure.in: Added --enable-hash-synchronization.
959         * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
960         java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
961         * nogc.cc (_Jv_AllocObj): Throw out-of-memory.
962         (_Jv_AllocArray): Likewise.
963         (_Jv_AllocBytes): Likewise.
964         (_Jv_AllocPtrFreeObject): New function.
965         (_Jv_AllocTraceOne): Likewise.
966         * posix-threads.cc (_Jv_ThreadRegister): Handle slow
967         pthread_self().
968         (self_cache): New global.
969         (_Jv_ThreadSelf_out_of_line): New function.
970         * prims.cc (_Jv_AllocBytesChecked): Removed.
971         (_Jv_ThrowNoMemory): New function.
972         (_Jv_AllocObject): Don't check for null return from allocator.
973         (_Jv_NewObjectArray): Likewise.
974         (_Jv_AllocPtrFreeObject): New function.
975         (_Jv_NewPrimArray): Allocate pointer-free object if possible.
976         * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
977         (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
978         * include/boehm-gc.h (_Jv_AllocObj): Define.
979         (_Jv_AllocPtrFreeObj): Define.
980         * include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
981         (_Jv_ThrowNoMemory): Declare.
982         (_Jv_AllocTraceOne): Declare.
983         (_Jv_AllocBytesChecked): Removed.
984         * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
985         _Jv_MutexUnlock): Handle LOCK_DEBUG.
986         (_Jv_ThreadSelf): Handle case where system pthread_self() is
987         slow.
988         * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
989         friend.
990         * java/lang/Object.h (sync_info): Conditional upon presence of
991         hash synchronization.
992         * java/lang/natObject.cc: Much new code to handle thin locks and
993         hash synchronization.
994         * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
995         object if possible.
996
997 2001-05-23  Joseph S. Myers  <jsm28@cam.ac.uk>
998
999         * gij.cc (version): Update copyright year.
1000
1001 2001-05-22  Anthony Green  <green@redhat.com>
1002
1003         * configure.in: Tweak canadian cross test, and don't redefine GCJ
1004         for cross builds.
1005
1006 2001-05-21  Per Bothner  <per@bothner.com>
1007
1008         Implement invocation interface; don't create new thread for main.
1009         * java/lang/Thread.java (gen_name):  Make native.
1010         (<init>(Thread,THreadGroup,Runnable,String)):  New private
1011         constructor, used by other constructors, and _Jv_AttachCurrentThread.
1012         * java/lang/natThread.cc (gen_name):  New implementation.
1013         (_Jv_AttachCurrentThread, _Jv_DetachCurrentThread):  New.
1014         * prims.cc (main_init):  Removed, replaced by _Jv_CreateJavaVM.
1015         (_Jv_CreateJavaVM):  New runtime initialization procedure.
1016         (runFirst):  New proecdure - mostly code from old FirstThread::run.
1017         (JvRunMain, _Jv_RunMain):  Re-write to use new invocation code.
1018         * gcj/cni.h (JvCreateJavaVM, JvAttachCurrentThread,
1019         JvDetachCurrentThread):  New inline wrappers.
1020         * gcj/javaprims.h (_Jv_CreateJavaVM, _Jv_AttachCurrentThread,
1021         _Jv_DetachCurrentThread):  New declarations.
1022         * gnu/gcj/runtime/FirstThread.java:  Gutted.  Now contains only ...
1023         (getMain): new static method.
1024         * gnu/gcj/runtime/natFirstThread.cc:  Removed;  run method replaced
1025         by runFirst in prims.cc.
1026         (java/lang/Thread.h):  Update for new invocation interface.
1027         * include/posix-threads.h (_Jv_ThreadRegister,
1028         _Jv_ThreadUnRegister):  New declarations.
1029         * posix-threads.cc (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New.
1030         (really_start):  Use new _Jv_ThreadRegister.
1031         * include/no-threads.h (_Jv_ThreadInitData):  No longer inline.
1032         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New empty inlines.
1033         * no-threads.cc (_Jv_ThreadInitData):  Set _Jv_OnlyThread here.
1034         Complain of called when _Jv_OnlyThread already set.
1035         (_Jv_ThreadStart):  Always JvFail.
1036         * include/win32-threads.h  (_Jv_Thread_t):  New thread_obj field.
1037         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New declarations.
1038         * win32-threads.cc (struct starter):  Remove objet field -
1039         we use _Jv_Thread_t's new thread_obj field instead.
1040         (_Jv_ThreadInitData):  Set _Jv_Thread_t's thread_obj field.
1041         (_Jv_ThreadRegister, _Jv_ThreadUnRegister):  New.
1042         (really_start):  Use new _Jv_ThreadRegister.
1043         * jni.cc (_Jv_JNI_AttachCurrentThread):  Use _Jv_AttachCurrentThread.
1044         (_Jv_JNI_DetachCurrentThread):  Use _Jv_DetachCurrentThread.
1045         * gnu/gcj/jni/NativeThread.java, gnu/gcj/jni/natNativeThread.cc:
1046         Removed - no longer needed with new invocation interface.
1047         * Makefile.am:  Update for removed/added files.
1048
1049 2001-05-21  Per Bothner  <per@bothner.com>
1050
1051         * Makefile.am (libgcj_la_DEPENDENCIES):  Add $(nat_files).
1052         (libgcj_la_LIBADD):  Likewise.
1053         (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD):  Add $(x_nat_files).
1054         
1055 2001-05-21  Per Bothner  <per@bothner.com>
1056
1057         * gcj/javaprims.h (_Jv_FormatInt):  New declaration.
1058         * java/lang/natString.cc (_JvFormatInt):  New primitive, with logic
1059         taken from old Integer.toString code.
1060         (Integer::valueOf):  Use _Jv_FormatInt.
1061         * java/lang/Integer.java (toString):  Just use call String.valueOf.
1062         * java/lang/Long.java (toString):  Fix typo in comment.
1063         * java/lang/String.java (valueOf(int)):  Make native.
1064         * java/lang/StringBuffer.java (append(int)):  Make native.
1065         * java/lang/natStringBuffer.cc:  New file, for append(jint).
1066         * Makefile.am (nat_source_files):  Add java/lang/natStringBuffer.cc.
1067
1068 2001-05-21  Tom Tromey  <tromey@redhat.com>
1069
1070         * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
1071
1072 2001-05-18  Andrew Haley  <aph@cambridge.redhat.com>
1073
1074         * include/dwarf2-signal.h: New file.    
1075         * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
1076         * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
1077         * configure: Rebuilt.
1078
1079 2001-05-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1080
1081         * configure.in: Update boehm-gc include dir for new GC version.
1082         * configure: Rebuilt.
1083         * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
1084         extern "C" wrapper.
1085         * boehm.cc: Update includes for new GC version. MAKE_PROC is now
1086         GC_MAKE_PROC. mark_proc is now GC_mark_proc.
1087         * posix-threads.cc: Only include <gc.h>. Don't need to wrap with
1088         extern "C".
1089
1090 2001-05-18  Alexandre Petit-Bianco  <apbianco@redhat.com>
1091
1092         * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
1093         (_Jv_MutexInit): Likewise.
1094
1095 2001-05-18  Tom Tromey  <tromey@redhat.com>
1096
1097         * Makefile.in: Rebuilt.
1098         * Makefile.am (awt_java_source_files): Added Polygon.java.
1099
1100 2001-05-18  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1101
1102         * include/jvm.h: Move "#pragma GCC java_exceptions" to ...
1103         * gcj/javaprims.h: ... here.
1104         * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions".
1105
1106 2001-05-17  Martin Kahlert  <martin.kahlert@infineon.com>
1107
1108         * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error 
1109         with length of ioffset table.
1110         (_Jv_IsAssignableFrom): Likewise.
1111
1112 2001-05-17  Per Bothner  <per@bothner.com>
1113
1114         * Makefile.am (ZIP):  The "fastjar" binary is now plain "jar".
1115
1116 2001-05-16  Tom Tromey  <tromey@redhat.com>
1117
1118         * java/text/SimpleDateFormat.java (parse): Handle non-dst time
1119         zones.
1120
1121 2001-05-15  Tom Tromey  <tromey@redhat.com>
1122
1123         * java/util/GregorianCalendar.java (computeTime): Only call
1124         getTimeZone() once.
1125
1126 2001-05-14  Tom Tromey  <tromey@redhat.com>
1127
1128         * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and
1129         ZONE_OFFSET just before computing the time.
1130
1131 2001-05-12  Zack Weinberg  <zackw@stanford.edu>
1132
1133         * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la.
1134         * Makefile.in: Regenerate (by hand).
1135         * include/jvm.h: Add #pragma GCC java_exceptions at top of file.
1136         * doc/cni.sgml: Document #pragma GCC java_exceptions.
1137
1138 2001-05-11  Richard Henderson  <rth@redhat.com>
1139
1140         * configure.in (ia64-*): Don't set SYSDEP_SOURCES.
1141         * java/lang/natThrowable.cc: Don't use __ia64_backtrace.
1142
1143 2001-05-11  Richard Henderson  <rth@redhat.com>
1144
1145         * exception.cc: Include unwind-pe.h.  Remove all pointer
1146         encoding logic.
1147
1148 2001-05-10  Tom Tromey  <tromey@redhat.com>
1149
1150         * Makefile.in: Rebuilt.
1151         * Makefile.am (awt_java_source_files): Added Polygon.java.
1152         * java/awt/Polygon.java: New file.
1153
1154         * java/awt/geom/AffineTransform.java
1155         (setToRotation(double,double,double)): New method.
1156         (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM.
1157         (setToShear): Likewise.
1158
1159 2001-05-10  Tom Tromey  <tromey@redhat.com>
1160
1161         * java/util/GregorianCalendar.java: Imported from Classpath.
1162         * gnu/java/locale/LocaleInformation_nl.java: New file from
1163         Classpath.
1164         * gnu/java/locale/LocaleInformation_en.java: Likewise.
1165         * gnu/java/locale/LocaleInformation_de.java: Likewise.
1166         * gnu/java/locale/LocaleInformation.java: Likewise.
1167         * natGregorianCalendar.cc: Removed.
1168         * Makefile.in: Rebuilt.
1169         * Makefile.am (nat_source_files): Removed
1170         natGregorianCalendar.cc.
1171
1172 2001-05-10  Tom Tromey  <tromey@redhat.com>
1173
1174         * java/text/SimpleDateFormat.java (computeCenturyStart): New
1175         method.
1176         (defaultCenturyStart): Use it.
1177         (readObject): Likewise.
1178         (SimpleDateFormat): Clear the calendar.  Set the grouping on the
1179         number format.
1180         (parse): Copy the calendar before modifying it.  Correctly handle
1181         the time zone.
1182
1183         * java/util/Calendar.java (clear): Set field value(s) to 0.
1184
1185 2001-05-10  Jeff Sturm  <jsturm@one-point.com>
1186
1187         * Calendar.java (get): Clear areFieldsSet if requested field
1188         is not set.
1189         (set): Unset fields that depend on new value.
1190
1191 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1192
1193         * java/lang/Class.h (_Jv_Self): New union type.
1194         (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to
1195         Jeff Sturm and Fergus Henderson.
1196
1197 2001-05-06  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1198
1199         * java/lang/ClassLoader.java: Remove dead code fragment.
1200
1201 2001-05-03  Martin Kahlert  <martin.kahlert@infineon.com>
1202
1203         * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1204         checking.
1205         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1206
1207 2001-04-30  Andrew Haley  <aph@cambridge.redhat.com>
1208
1209         * libgcj.spec.in (jc1): Add EXCEPTIONSPEC.
1210         * configure.host (EXCEPTIONSPEC): New.
1211         * configure.in (EXCEPTIONSPEC): New.
1212         * configure: Rebuilt.
1213
1214 2001-05-02  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1215
1216         * doc/*.texi: Remove generated documentation.
1217
1218 2001-04-30  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
1219
1220         * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
1221         (performDelete): Fix #endif placement.
1222
1223 2001-04-27  Zack Weinberg  <zackw@stanford.edu>
1224
1225         * prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
1226         * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc.
1227         (_Jv_ThreadDestroyData): Use _Jv_Free.
1228         * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
1229         Use _Jv_Malloc.
1230
1231 2001-04-27  Tom Tromey  <tromey@redhat.com>
1232
1233         * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds
1234         checking.
1235         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
1236
1237 2001-04-27  Martin Kahlert  <martin.kahlert@infineon.com>
1238
1239         * include/jni.h (struct JNINativeInterface): Fixed types in
1240         Get/Set*ArrayRegion declarations.
1241         (class _Jv_JNIEnv): Likewise.
1242
1243 2001-04-26  Alexandre Oliva  <aoliva@redhat.com>
1244
1245         * configure.in: Obtain THREADS with `gcc -v'.
1246         * configure: Rebuilt.
1247
1248 2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1249
1250         Fix PR libgcj/2237:
1251         * java/io/ObjectStreamClass.java (setClass): Calculate 
1252         serialVersionUID for local class and compare it against the UID
1253         from the Object Stream. Throw InvalidClassException upon mismatch.
1254         (setUID): Renamed to...
1255         (getClassUID): this. Return the calculated class UID rather than 
1256         setting uid field directly.
1257         (getDefinedSUID): Removed.
1258         * java/io/ObjectInputStream.java (resolveClass): Use the 
1259         three-argument Class.forName(). 
1260         * java/io/InvalidClassException (toString): Don't include classname in
1261         result if it is null.
1262
1263 2001-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1264
1265         * java/net/natInetAddress.cc (java::net::InetAddress::aton):
1266         Wrap use of inet_pton in HAVE_INET6.
1267
1268 2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1269
1270         java.security merge and ClassLoader compliance fixes.
1271
1272         * java/lang/Class.h (Class): Include ProtectionDomain.h. 
1273         New protectionDomain field.
1274         (forName): Add initialize parameter. Fixes declaration to comply with 
1275         JDK spec.
1276         * java/lang/natClass.cc (forName): Correct declaration of the three-arg
1277         variant. Honour "initialize" flag.
1278         (getProtectionDomain0): New method.
1279         * java/lang/Class.java: Fix forName() declaration.
1280         (getPackage): New method based on Classpath implementation.
1281         (getProtectionDomain0): New native method decl.
1282         (getProtectionDomain): New method.
1283         * java/lang/ClassLoader.java (getParent): Now final.
1284         (definedPackages): New field.
1285         (getPackage): New.
1286         (defineClass): New variant with protectionDomain argument.
1287         (definePackage): New.
1288         (getPackages): New.
1289         (findSystemClass): Now final.
1290         (getSystemResourceAsStream): Remove redundant "final" modifier.
1291         (getSystemResource): Remove redundant "final" modifier.
1292         (getResources): Now final.
1293         (protectionDomainPermission): New static field.
1294         (unknownProtectionDomain): Ditto.
1295         (defaultProtectionDomain): Ditto.
1296         (getSystemClassLoader): Now non-native.
1297         * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct
1298         arguments for Class.forName().
1299         * java/lang/Package.java: New file.
1300         * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed.
1301         (instance): Static initialize singleton.
1302         (findClass): Override this, not findSystemClass.
1303         * java/lang/natClassLoader.cc (defineClass0): Set class's
1304         protectionDomain field as specified.
1305         (getSystemClassLoader): Removed.
1306         (findClass): Renamed from findSystemClass. Call the interpreter via
1307         URLClassLoader.findClass if loading class via dlopen fails.
1308
1309         * java/security/*.java: java.security import/merge with Classpath.
1310         * java/security/acl/*.java: Likewise.
1311         * java/security/interfaces/*.java: Likewise.
1312         * java/security/spec/*.java: Likewise.
1313         * java/net/NetPermission.java: Likewise.
1314         * java/net/SocketPermission.java: Likewise.
1315         * gnu/java/security/provider/DefaultPolicy.java: Likewise.
1316         
1317         * Makefile.am: Add new classes.
1318         * Makefile.in: Rebuilt.
1319         * gcj/javaprims.h: CNI namespace rebuild.
1320
1321 2001-04-24  Alexandre Oliva  <aoliva@redhat.com>
1322
1323         * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS
1324         for libtool tests.  Pre-create gnu/classpath/Configuration.java.
1325         * configure: Rebuilt.
1326
1327 2001-04-21  Tom Tromey  <tromey@redhat.com>
1328
1329         * Makefile.in: Rebuilt.
1330         * Makefile.am (awt_java_source_files): Added Line2D.java.
1331         * java/awt/geom/Line2D.java: Wrote.
1332
1333         * java/awt/Menu.java (addNotify): Wrote.
1334
1335         * java/awt/PopupMenu.java (addNotify): Implemented.
1336         (show): Likewise.
1337
1338         * java/awt/Scrollbar.java (addNotify): Call super.addNotify.
1339         * java/awt/List.java (addNotify): Call super.addNotify.
1340         * java/awt/Label.java (addNotify): Call super.addNotify.
1341         * java/awt/FileDialog.java (addNotify): Call super.addNotify.
1342         * java/awt/Dialog.java (addNotify): Call super.addNotify.
1343         * java/awt/Choice.java (addNotify): Call super.addNotify.
1344         * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify.
1345         * java/awt/Checkbox.java (addNotify): Call super.addNotify.
1346
1347         * java/awt/List.java (replaceItem): Notify peer.
1348
1349         * java/awt/geom/Rectangle2D.java
1350         (Float.setRect(float,float,float,float)): New method.
1351
1352         * java/awt/event/ContainerEvent.java (getContainer): Now returns
1353         Container.
1354
1355         * java/awt/RenderingHints.java (Key): Class now public.
1356
1357         * java/awt/Rectangle.java (Rectangle): Now implements
1358         Serializable.
1359         (getPathIterator): Removed.
1360
1361         * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New
1362         constructor.
1363
1364         * java/awt/FileDialog.java: Wrote.
1365
1366         * java/awt/EventQueue.java (isDispatchThread): Now public.
1367         (invokeLater): Likewise.
1368
1369         * java/awt/Component.java (setCursor): Update peer.
1370         (getFontMetrics): Use peer.
1371
1372         * java/awt/ComponentOrientation.java (ComponentOrientation): Class
1373         now final.
1374
1375 2001-04-20  Tom Tromey  <tromey@redhat.com>
1376
1377         * java/awt/List.java: Wrote.
1378         * java/awt/Dialog.java: Wrote.
1379
1380 2001-04-20  Warren Levy  <warrenl@redhat.com>
1381
1382         * java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST.
1383         * java/text/SimpleDateFormat.java
1384         (indexInArray): Removed private method.
1385         (processYear): Removed private method.
1386         (parseLenient): Removed private method.
1387         (parseLeadingZeros): Removed private method.
1388         (parseStrict): Removed private method.
1389         (expect): Added new private method.
1390         (parse): Reverted to pre-Classpath merge version with minor fixes.
1391         * java/util/natGregorianCalendar.cc (computeTime): Handle strict
1392         calendars.
1393
1394 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
1395
1396         * java/io/File.java (normalizePath): New private method. 
1397         (File (String)): Use normalizePath().
1398         (File (String, String)): Likewise.
1399
1400         * Makefile.am (libffi_files): Removed.
1401         (libgcj.la): Link libffi as a convenience library instead of 
1402         refering to its object files directly.
1403         * Makefile.in: Rebuilt.
1404
1405 2001-04-08  Per Bothner  <per@bothner.com>
1406
1407         * java/lang/natString.cc (_Jv_NewStringUtf8Const):  Register finalizer.
1408         Recalculate hash, since Utf8Const's hash is only 16 bits.
1409
1410         * java/lang/natString.cc (_Jv_StringFindSlot, rehash):  Use high-order
1411         bits of hash to calculate step for chaining.
1412
1413         * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const):  Rehash
1414         when 2/3 full, rather than 3/4 full.
1415
1416 2001-04-06  Tom Tromey  <tromey@redhat.com>
1417
1418         * jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed.
1419         (wrap_value<T*>): New specialization.
1420         (_Jv_JNI_PopLocalFrame): Update env->locals.
1421
1422 2001-04-05  Tom Tromey  <tromey@redhat.com>
1423
1424         * libtool-version: Updated current.
1425
1426 2001-04-04  Andreas Jaeger  <aj@suse.de>
1427
1428         * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1429         * gcj/Makefile.in: Rebuilt.
1430         * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1431         * Makefile.in: Rebuilt.
1432         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1433         * testsuite/Makefile.in: Rebuild.
1434         * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
1435         * include/Makefile.in: Rebuild.
1436
1437 2001-04-02 Zack Weinberg <zackw@stanford.edu>
1438
1439         * testsuite/lib/libjava.exp: Correct typo: 'output from source
1440         compiled test', not 'execution from source compiled test'.
1441         Use UNTESTED, not XFAIL, for tests which are not run because
1442         they depend on a previous test which failed.
1443
1444 2001-04-02  Richard Henderson  <rth@redhat.com>
1445
1446         * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
1447         the same tree as gcc.
1448         * configure: Rebuilt.
1449
1450         * exception.cc (_Jv_Throw): Clarify commentary.
1451
1452 2001-04-02  Marcus G. Daniels  <mgd@swarm.org>
1453
1454         * jni.cc (wrap_value<jclass>): New specialization.
1455
1456 2001-04-02  Tom Tromey  <tromey@redhat.com>
1457
1458         * java/io/PrintStream.java (out): Removed field.  Fixes PR
1459         java/2449.
1460         (write): Call flush, not out.flush, per spec.
1461         (close): Flush output stream, per spec.  Handle
1462         InterruptedIOException.
1463         (checkError): Likewise.
1464         (flush, print, write): Handle InterruptedIOException per spec.
1465         (PrintStream): Don't create BufferedOutputStream.
1466         (work_bytes): New field.
1467         (writeChars): Use work_bytes.  Don't assume `out' is a
1468         BufferedOutputStream.
1469
1470 2001-04-02  Torsten Rueger  <torsten.rueger@firsthop.com>
1471
1472         * java/text/MessageFormat.java (setLocale): Added missing `else'.
1473         For PR libgcj/2429.
1474
1475 2001-03-30  Tom Tromey  <tromey@redhat.com>
1476
1477         * jni.cc (add_char): Correctly encode non-ascii characters.
1478         (add_char): Define even when INTERPRETER not defined.
1479         (mangled_name): Likewise.
1480         (_Jv_GetJNIEnvNewFrame): Likewise.
1481         (_Jv_LookupJNIMethod): Likewise.
1482
1483 2001-03-23  Kevin B Hendricks  <khendricks@ivey.uwo.ca>
1484
1485         * configure.host: Enable interpreter for PPC.
1486
1487 2001-04-02  Bryce McKinlay  <bryce@albatross.co.nz>
1488
1489         * java/lang/natSystem.cc (init_properties): Revert yesterday's changes
1490         to "file.separator", "path.separator", and "java.io.tmpdir" property
1491         initialization.
1492         * java/io/File.java: Likewise.
1493         * java/io/natFile.cc (init_native): Likewise.
1494         * java/io/natFileWin32.cc (init_native): Likewise.
1495
1496 2001-04-01  Per Bothner  <per@bothner.com>
1497
1498         * java/lang/natString.cc (intern):  If string's data does not point to
1499         this String, make a fresh String that does.
1500
1501         * java/lang/natString.cc (unintern):  Replace by static function.
1502         * java/lang/String.java (unintern):  Remove method.
1503
1504 2001-04-01  Per Bothner  <per@bothner.com>
1505
1506         * DeflaterOutputStream.java (deflate):  Loop while def.needsInput.
1507         (finish):  def.deflate needs to be called in a loop.
1508         (inbuf, inbufLength):  New private fields.
1509         (write(int)): Use inbuf.
1510         (write(byte[],int,int):  Check if pending output in inbuf.
1511         * ZipOutputStream.java:  Don't use Deflater if stored.
1512         Use a Checksum object directly, not via a CheckedOutputStream.
1513         (uncompressed_size):  New field,
1514         (closeEntry):  Only write data_directory if needed.
1515         (write):  If STORED, write directly.
1516         Always update crc, and uncompressed_size.
1517         (write_entry):  Fix lots of protocol erors.
1518
1519 2001-04-01  Bryce McKinlay  <bryce@albatross.co.nz>
1520
1521         1.3-Compliant Implementation of java.io.File.
1522         * java/lang/natSystem.cc (init_properties): Get "file.separator",
1523         "path.separator", and "java.io.tmpdir" from the File class, instead
1524         of setting them explicitly.
1525         * java/io/File.java: Do not canonicalize paths for security manager
1526         checks. Call init_native() from static initializer. Do not pass path
1527         argument to native methods. New native method declarations. Some
1528         security manager checks moved to checkWrite().
1529         (equals): Check file system case sensitivity and act appropriatly.
1530         (hashCode): Likewise.
1531         (isHidden): New method implemented.
1532         (performList): Changed prototype. Now takes a class argument specifying
1533         the class of the returned array: Strings or File objects. Also added
1534         FileFilter argument.
1535         (listFiles): New variants with "File" return type implemented.
1536         (createTempFile): Use createNewFile(). Use maxPathLen.
1537         (setReadOnly): New method implemented.
1538         (listRoots): Likewise.
1539         (compareTo): Likewise.
1540         (setLastModified): Likewise.
1541         (checkWrite): New method.
1542         (setPath): Removed.
1543         * java/io/natFile.cc: Various functions no longer take canonical path
1544         argument.
1545         (stat): Handle ISHIDDEN query.
1546         (isAbsolute): Remove WIN32 cruft.
1547         (performList): New arguments. Handle returning either File[] or String[]
1548         arrays. Check with FileFilter or FilenameFilter arguments as
1549         appropriate. Use an ArrayList, not a Vector, for the temporary list.
1550         (performSetReadOnly): New method implemented.
1551         (performListRoots): Likewise.
1552         (performSetLastModified): Likewise.
1553         (performCreate): Likewise.
1554         (init_native): New initialization function.
1555         * java/io/natFileWin32.cc: Various functions no longer take canonical
1556         path argument.
1557         (stat): Add FIXME about ISHIDDEN query.
1558         (performList): New arguments. Handle returning either File[] or String[]
1559         arrays. Check with FileFilter or FilenameFilter arguments as
1560         appropriate. Use an ArrayList, not a Vector, for the temporary list.
1561         (performSetReadOnly): New. Stubbed.
1562         (performListRoots): Likewise.
1563         (performSetLastModified): Likewise.
1564         (performCreate): Likewise.
1565         (init_native) New initialization function.
1566         * configure.in: Check for utime() and chmod().
1567         * configure: Rebuilt.
1568         * include/config.h.in: Rebuilt.
1569
1570         Resolves PR libgcj/1759.
1571
1572 2001-03-28  Richard Henderson  <rth@redhat.com>
1573
1574         IA-64 ABI Exception Handling:
1575         * Makefile.am (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE.
1576         (AM_CXXFLAGS): -fnon-call-exceptions not -fasynchronous-exceptions.
1577         Remove EXCEPTIONSPEC.
1578         * configure.host (libgcj_sjlj): Remove.
1579         * configure.in (EXCEPTIONSPEC): Remove.
1580         (enable-sjlj-exceptions): Detect if not specified.
1581         (GCC_UNWIND_INCLUDE): Rename from EH_COMMON_INCLUDE; change
1582         what header we're looking for.
1583         * libgcj.spec.in (jc1): Remove EXCEPTIONSPEC.
1584         * Makefile.in, configure: Regenerate.
1585         * exception.cc: Don't declare libgcc2 stuff.
1586         (java_eh_info, _Jv_type_matcher, _Jv_exception_info): Remove.
1587         (_Jv_eh_alloc, _Jv_eh_free, _Jv_setup_eh_info): Remove.
1588         (win32_get_restart_frame): Remove.
1589         (struct java_exception_header): New.
1590         (__gcj_exception_class): New.
1591         (get_exception_header_from_ue): New.
1592         (_Jv_Throw): Rewrite for IA-64 ABI unwind routines.
1593         (size_of_encoded_value, read_encoded_value): New.
1594         (read_uleb128, read_sleb128, parse_lsda_header): New.
1595         (get_ttype_entry, __gcj_personality_sj0): New.
1596         * gcj/javaprims.h (_Jv_Sjlj_Throw): Remove.
1597
1598 2001-03-27  Joerg Brunsmann  <joerg_brunsmann@yahoo.de>
1599
1600         * javax/naming/InitialContext.java (init): Fix typo.
1601         (composeName): Remove unnecessary semicolon.
1602         (addToEnvironment): Remove unnecessary semicolon.
1603         (addToEnvironment): Use put() instead of add().
1604
1605         * javax/naming/InitialContext.java (InitialContext):
1606         Make public.
1607         (destroySubcontext): Method doesn't return a result.
1608         * javax/naming/Context.java: Import java.util.Hashtable.
1609         * javax/naming/Name.java: Import java.util.Enumeration.
1610
1611 2001-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
1612
1613         * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
1614         objects in subdirectories.
1615         * Makefile.in: Rebuilt.
1616
1617 2001-03-25  Richard Henderson  <rth@redhat.com>
1618
1619         * exception.cc (java_eh_info): Make value type jthrowable.
1620         (_Jv_type_matcher): Remove now unneeded cast.
1621         (_Jv_Throw): Make argument type jthrowable.  Munge name
1622         for SJLJ_EXCEPTIONS here ...
1623         * gcj/cni.h: ... not here.
1624         (JvThrow): Remove.
1625         * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
1626
1627         * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
1628         prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
1629         gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
1630         gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
1631         gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
1632         java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
1633         java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
1634         java/lang/natClass.cc, java/lang/natClassLoader.cc,
1635         java/lang/natDouble.cc, java/lang/natObject.cc,
1636         java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
1637         java/lang/natString.cc, java/lang/natSystem.cc,
1638         java/lang/natThread.cc, java/lang/reflect/natArray.cc,
1639         java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
1640         java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
1641         java/util/zip/natInflater.cc:
1642         Use throw, not JvThrow or _Jv_Throw.
1643
1644 2001-03-24  Bryce McKinlay  <bryce@albatross.co.nz>
1645
1646         * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity
1647         paramater, bump it to 1.
1648         * java/util/Hashtable.java (Hashtable): Likewise.
1649
1650 2001-03-23  Per Bothner  <per@bothner.com>
1651
1652         * java/lang/natDouble.cc (parseDouble):  Cannot use errno to
1653         check for errors, since we don't want to throw exception on
1654         overflow/underflow.  Instead, trim whitespace, and then check that
1655         _strtod_r uses up all the rest of the string.
1656
1657         * java/lang/natClass.cc (_Jv_IsAssignableFrom):  Checking the
1658         ancestors array is invalid for interfaces, so do that *after*
1659         check that the target type is not an interface.
1660
1661 2000-03-23  Jeff Sturm  <jsturm@one-point.com>
1662
1663         * prims.cc (_Jv_FindClassFromSignature): Check return of
1664         recursive call.  Do not abort on invalid signature; return NULL
1665         instead.
1666
1667 2001-03-22  Tom Tromey  <tromey@redhat.com>
1668
1669         * jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
1670         * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
1671         unconditionally.
1672         * include/jvm.h (_Jv_ResolveField): Declare.
1673         * include/java-interp.h (_Jv_ResolveField): Don't declare.
1674         * resolve.cc (_Jv_ResolveField): No longer conditional on
1675         INTERPRETER.
1676
1677 2001-03-23  Bryce McKinlay  <bryce@albatross.co.nz>
1678
1679         Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
1680         for libtool hacking.
1681         * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
1682         to a temporary file, then invoke libtool with the -objectlist
1683         paramater.
1684         (libgcjx.la): Likewise.
1685         * Makefile.in: Rebuilt.
1686
1687 2001-03-22  Joerg Brunsmann <joerg_brunsmann@yahoo.de>
1688
1689         * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
1690
1691 2001-03-22  Marcus G. Daniels  <mgd@swarm.org>
1692
1693         * jni.cc (add_char): Handle `.' like `/'.
1694
1695 2001-03-22  Bryce McKinlay  <bryce@albatross.co.nz>
1696
1697         * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
1698         initialize if exception_types is null.
1699         * java/lang/reflect/Constructor.java: Likewise.
1700         * java/lang/reflect/natConstructor.cc (getType): Initialize
1701         exception_types to an empty Object array.
1702
1703 2001-03-21  Tom Tromey  <tromey@redhat.com>
1704
1705         * configure: Rebuilt.
1706         * configure.in (GCJFLAGS): Subst.
1707         * Makefile.in: Rebuilt.
1708         * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
1709         (gij_LDFLAGS): Likewise.
1710         (JC1FLAGS): Added GCJFLAGS and removed -g.
1711
1712         * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
1713         read/write case.  Fixes PR libgcj/2338.
1714
1715 2001-03-20  Warren Levy  <warrenl@redhat.com>
1716
1717         * java/util/TimeZone.java: Sync up with Classpath.  Includes new
1718         and corrected SimpleTimeZone's for the timezones hash table.
1719
1720 2001-03-19  Per Bothner  <per@bothner.com>
1721
1722         * java/net/URLStreamHandler.java (parseURL):  Fix bug which would
1723         "canonicalize" "../../xxx" to "/xxx".
1724
1725 2001-03-19  Mark Wielaard <mark@klomp.org>
1726
1727         * java/util/ArrayList.java: Remove RCS keywords from comments
1728         * java/util/BasicMapEntry.java: idem
1729         * java/util/Dictionary.java: idem
1730         * java/util/HashSet.java: idem
1731
1732         * java/util/EventObject.java: reindent
1733         * java/util/Properties.java: idem
1734         * java/util/SortedMap.java: idem
1735
1736         * java/util/Enumeration.java: Merge with Classpath
1737         * java/util/EventListener.java: idem
1738         * java/util/Observable.java: idem
1739         * java/util/Observer.java: idem
1740         * java/util/Stack.java: idem
1741
1742 2001-03-17  Tom Tromey  <tromey@redhat.com>
1743
1744         * java/lang/natString.cc (rehash): Don't bother with memset;
1745         _Jv_AllocBytes returns zero'd memory.  Use _Jv_AllocBytesChecked.
1746         Use UNMASK_PTR.
1747         (UNMASK_PTR): New macro.
1748         (intern): Unmask pointer before returning it.  Register finalizer
1749         for the string.
1750         (unintern): Handle case where
1751         (MASK_PTR): New macro.
1752         (PTR_MAKSED): Likewise.
1753         (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
1754
1755 2001-03-01  Andrew Haley  <aph@redhat.com>
1756
1757         * java/lang/natThrowable.cc (printRawStackTrace): Copy the
1758         stackTrace buffer to a correctly aligned pointer array.
1759
1760 2001-03-12  Bryce McKinlay  <bryce@albatross.co.nz>
1761
1762         * java/lang/Runtime.java (_exit): Declare new package-private native.
1763         * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
1764         without a security manager check.
1765         (exit): Call _exit after security check.
1766         * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
1767         "naturally".
1768         * java/lang/System.java (setSecurityManager): If a security manager
1769         is already in place, call checkPermission.
1770         * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
1771         throws an exception, try to deal with it gracefully.
1772         * java/lang/ExceptionInInitializerError.java (printStackTrace):
1773         Only try to print the subordinate stack trace if "exception" is set.
1774         Print our class name first.
1775
1776 2001-03-08  Tom Tromey  <tromey@redhat.com>
1777
1778         * java/io/ObjectStreamClass.java (setUID): Don't write interface
1779         info for array classes.
1780         Fixes PR libgcj/1971.
1781
1782 2001-03-06  Bryce McKinlay  <bryce@albatross.co.nz>
1783
1784         * java/util/TreeSet.java (writeObject): Use a for-loop instead of
1785         Iterator.hasNext().
1786
1787 2001-03-05  Jochen Hoenicke  <jochen@gnu.org>
1788
1789         * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
1790         instead of the new JDK1.2 API.  This is simpler and makes
1791         back-porting the classes to JDK1.1 trivial.
1792         (readObject): likewise.
1793
1794 2001-03-01  Per Bothner  <per@bothner.com>
1795
1796         Changes merged from Kawa's gnu.math.
1797         * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
1798         (rshift(int[],int[],int,int):  Removed - not needed.
1799         (gcd):  Use rshift0 rather than rshift.
1800         * java/math/BigInteger.java (setShiftRight):  Likewise.
1801         (divide):  Simplify by using rshift0.
1802         (divide):  Zero-extend results if high-order bit set.
1803
1804 2001-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
1805
1806         * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
1807         linking.
1808
1809 2001-02-23  Per Bothner  <per@bothner.com>
1810
1811         Change to sometimes include class name in ClassFormatError message.
1812         * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
1813         _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)):  Return
1814         boolean instead of throwing ClassFormatError on failure.
1815         (throw_class_format_error):  Change static function to method.
1816         (_Jv_ClassReader):  New inline methods verify_identifier,
1817         two overloads of verify_classname, verify_field_signature, and
1818         verify_method_signature
1819         * include/java-interp.h:  Update declarations to return bool.
1820         * java/lang/natClassLoader.cc (defineClass0):  Explicitly throw
1821         ClassFormatError since _Jv_VerifyClassName now returns bool.
1822
1823 2001-02-23  Per Bothner  <per@bothner.com>
1824
1825         * java/lang/Throwable.java (CPlusPlusDemangler):  Pass -s java to
1826         c++filt to select java-style output.
1827
1828 2001-02-22  Bryce McKinlay  <bryce@albatross.co.nz>
1829
1830         Fix for PR java/2040:
1831         * java/util/HashMap.java (HashMap): Don't throw exception for
1832         loadFactor > 1. Add exception messages.
1833         * java/util/Hashtable.java (Hashtable): Likewise.
1834
1835 2001-02-21  Bryce McKinlay  <bryce@albatross.co.nz>
1836
1837         Disable libgcjx by default.
1838         * configure.in: Add support for --enable-java-awt configure option.
1839         Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
1840         * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
1841         * Makefile.in: Rebuilt.
1842         * configure: Rebuilt.
1843
1844 2001-02-20  Tom Tromey  <tromey@redhat.com>
1845
1846         * java/io/PipedWriter.java (flush): Throw exception if stream
1847         closed.
1848         * java/io/OutputStreamWriter.java (write): Throw exception if
1849         stream closed.
1850         (writeChars): Don't throw exception if stream closed.
1851         * java/io/CharArrayWriter.java (closed): New field.
1852         (close): Set it.
1853         (flush): Throw exception if stream closed.
1854         (reset): Synchronize on correct lock.  Allow stream to be
1855         reopened.
1856         (toCharArray, toString, writeTo): Synchronize.
1857         (write): Throwe exception if stream closed.
1858         * java/io/BufferedWriter.java (close): Clear `buffer'.
1859         (flush): Throw IOException if stream is closed.
1860         (write): Likewise.
1861
1862 2001-02-16  Tom Tromey  <tromey@cygnus.com>
1863
1864         * java/lang/ThreadGroup.java (activeCount): Only include threads
1865         which are alive.
1866         (enumerate): Likewise.
1867
1868 2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
1869
1870         * java/lang/Integer.java (getInteger): Return default argument if
1871         property is not set. Don't call decode with null argument.
1872         * java/lang/Long.java (getLong): Likewise.
1873
1874         * java/io/CharArrayReader.java (CharArrayReader): Throw
1875         IllegalArgumentException if constructor arguments are illegal.
1876         (ready): Return false if no more characters can be read.
1877         * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
1878
1879 2001-02-17  Mark Wielaard <mark@klomp.org>
1880
1881         * java/util/TimerTask.java: New version from Classpath.
1882
1883 2001-02-17  Mark Wielaard <mark@klomp.org>
1884
1885         Remerge with Classpath
1886         (changes by Bryce McKinlay  <bryce@albatross.co.nz>)
1887         * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
1888         (readByte): Use convertToByte().
1889         (readChar): Use convertToChar().
1890         (readInt): Use convertToInt().
1891         (readLong): Use convertToLong().
1892         (readShort): Use convertToShort().
1893         (readUnsignedByte): Use convertToUnsignedByte().
1894         (readUnsignedShort): Use convertToUnsignedShort().
1895         (readUTF): Use convertToUTF().
1896
1897         (convertToBoolean): Resurrected.
1898         (convertToByte): Ditto.
1899         (convertToChar): Ditto.
1900         (convertToInt): Ditto.
1901         (convertToLong): Ditto.
1902         (convertToShort): Ditto.
1903         (convertToUnsignedByte): Ditto.
1904         (convertToUnsignedShort): Ditto.
1905         (convertToUTF): Ditto.
1906
1907 2001-02-17  Mark Wielaard <mark@klomp.org>
1908
1909         * HACKING: new file
1910
1911 2001-02-17  Mark Wielaard <mark@klomp.org>
1912
1913         * java/io/DataInputStream.java: update copyright notice
1914         * java/io/PrintWriter.java: idem
1915         * java/io/Reader.java: idem
1916         * java/io/StreamTokenizer.java: idem
1917         * java/io/StringReader.java: idem
1918         * java/lang/reflect/ReflectPermission.java: idem
1919
1920 2001-02-16  Bryce McKinlay  <bryce@albatross.co.nz>
1921
1922         * java/util/TreeSet.java (clone): Made subclass safe, use
1923         super.clone(), not new.
1924         * java/util/TreeMap.java (clone): Likewise.
1925
1926         * java/util/TreeMap.java (nil): Made non-final.
1927         (clone): Create new nil node for copy.
1928
1929         * java/util/HashSet.java (clone): Made subclass safe, use
1930         super.clone(), not new.
1931
1932 2001-02-14  Andrew Haley  <aph@redhat.com>
1933
1934         * include/i386-signal.h (INIT_SEGV): Use a direct system call to
1935         set the handler.
1936
1937 2001-02-15  Anthony Green  <green@redhat.com>
1938
1939         * defineclass.cc: Don't include alloca.h.
1940         (prepare_pool_entry): Convert alloca to __builtin_alloca.
1941         * interpret.cc (run_normal): Ditto.
1942         (continue1): Ditto.
1943         * java/lang/natDouble.cc (parseDouble): Ditto.
1944
1945 2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
1946
1947         * java/util/TreeSet.java (clone): Call TreeMap.clone(), not
1948         Object.clone().
1949         * java/util/Collections.java (ReverseComparator): New static class.
1950         (reverseOrder): Return static instance of ReverseComparator.
1951
1952         * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
1953         * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
1954         Rectangle.clone(), not Object.clone().
1955
1956         * java/util/HashSet.java (clone): Remove try/catch.
1957
1958         * java/util/AbstractSequentialList.java: Synchronize with Classpath.
1959         * java/util/Collection.java: Likewise.
1960         * java/util/Comparator.java: Likewise.
1961         * java/util/Dictionary.java: Likewise.
1962         * java/util/Iterator.java: Likewise.
1963         * java/util/ListIterator.java: Likewise.
1964         * java/util/Map.java: Likewise.
1965         * java/util/Set.java: Likewise.
1966
1967 2001-02-14  Bryce McKinlay  <bryce@albatross.co.nz>
1968
1969         * java/util/TreeMap.java: New file.
1970         * java/util/TreeSet.java: New file.
1971         * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
1972         * Makefile.in: Rebuilt.
1973         * java/util/HashSet.java (clone): Use constructor instead of calling
1974         clone on itself.
1975         * java/util/SortedSet.java: Sync with classpath.
1976         * java/util/HashMap.java (hash): Use if statement instead of ternary,
1977         for clarity.
1978
1979         * java/lang/natClass.cc (getSignature): Don't try to dereference
1980         param_types if it is null. Instead, take this to mean "no parameters".
1981         * java/lang/TreeMap.java (TreeIterator.next): Throw
1982         NoSuchElementException in preference to ConcurrentModificationException.
1983         (TreeIterator.remove): Throw IllegalStateException in preference to
1984         ConcurrentModificationException.
1985         (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
1986         throw a NoSuchElementException.
1987         (SubMap.lastKey): Likewise.
1988
1989 2001-02-13  Tom Tromey  <tromey@redhat.com>
1990
1991         * java/io/PipedReader.java (ready): Throw IOException if pipe
1992         closed.
1993         * java/io/FilterReader.java (close): Don't clear `in'.
1994         * java/io/CharArrayReader.java (mark): Throw IOException if stream
1995         closed.
1996         (read, ready, reset, skip): Added exception message.
1997         * java/io/BufferedReader.java (mark, reset, ready, read, skip):
1998         Perform checkStatus check inside synchronized block.
1999
2000 2001-02-13  Tom Tromey  <tromey@redhat.com>
2001
2002         * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
2003
2004 2001-02-13  Tom Tromey  <tromey@redhat.com>
2005
2006         Fix for PR libgcj/1351:
2007         * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
2008         interrupted.
2009         Include Thread.h and InterruptedIOException.h.
2010
2011 2001-02-13  Bryce McKinlay  <bryce@albatross.co.nz>
2012
2013         * java/io/BlockDataException.java: Removed.
2014         * java/io/ObjectInputStream.java (readObject): Throw
2015         StreamCorruptedException, not BlockDataException.
2016         * Makefile.am: Remove BlockDataException.
2017         * Makefile.in: Rebuild.
2018
2019 2001-02-12  Jeff Sturm  <jeff.sturm@commerceone.com>
2020             Tom Tromey  <tromey@redhat.com>
2021
2022         * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
2023         null pointer check.
2024
2025 2001-02-09  Tom Tromey  <tromey@redhat.com>
2026
2027         * java/util/Timer.java: New version from Classpath.
2028
2029 2001-02-09  Bryce McKinlay  <bryce@albatross.co.nz>
2030
2031         * java/lang/Double.java (doubleToRawLongBits): Now native.
2032         * java/lang/Float.java (floatToRawIntBits): Likewise.
2033         * java/lang/natDouble.cc (doubleToRawLongBits): New method.
2034         * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
2035
2036 2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>
2037
2038         * java/io/File.java (java.net): Imported.
2039         (getAbsoluteFile): Added.
2040         (getCanonicalPath): Likewise.
2041         (toURL): Likewise.
2042
2043 2001-02-08  Bryce McKinlay  <bryce@albatross.co.nz>
2044
2045         * java/lang/Byte.java: Remove redundant instanceof and null checks.
2046         * java/lang/Integer.java: Likewise.
2047         * java/lang/Long.java: Likewise.
2048         * java/lang/Short.java: Likewise.
2049         * java/lang/Double.java: Likewise.
2050         (doubleToRawLongBits): New method.
2051         * java/lang/Float.java: As above.
2052         (floatToRawIntBits): New method.
2053
2054         * java/io/OutputStreamWriter.java: (flush, writeChars): Throw
2055         IOException if stream closed.
2056
2057 2001-02-08  Tom Tromey  <tromey@redhat.com>
2058
2059         * java/lang/Float.java (parseFloat): New method.
2060
2061 2001-02-08  Tom Tromey  <tromey@redhat.com>
2062
2063         From paul@dawa.demon.co.uk.  Fix for PR libgcj/1913:
2064         * java/io/InputStreamReader.java (ready, read): Throw IOException
2065         if stream has been closed.
2066
2067 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
2068
2069         * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
2070         Change sources.redhat.com and sourceware.cygnus.com references to
2071         gcc.gnu.org.
2072
2073 2001-02-07  Tom Tromey  <tromey@redhat.com>
2074
2075         Fix for PR libgcj/1906:
2076         * java/text/MessageFormat.java (setLocale): Use named class
2077         literals.
2078         (forName): Removed.
2079         (format(Object,StringBuffer,FieldPosition)): Special case if
2080         argument is an Object[].
2081
2082 2001-02-07  Bryce McKinlay  <bryce@albatross.co.nz>
2083
2084         * java/util/Arrays.java: Removed "cmp" methods.
2085         (qsort): Don't use "cmp".
2086         (med3): Likewise.
2087
2088 2001-02-07  Mark Benvenuto  <mcb54@columbia.edu>
2089
2090         * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
2091         sort. Fix for PR java/1895.
2092
2093 2001-02-03  Jeff Sturm  <jeff.sturm@commerceone.com>
2094
2095         * configure.host: Use sjlj-exceptions for Alpha.
2096
2097 2001-02-03  Bryce McKinlay  <bryce@albatross.co.nz>
2098
2099         * libgcj.spec.in: Don't force static libgcc into the executable.
2100         * configure.in (FORCELIBGCCSPEC): Removed.
2101         * configure: Rebuilt.
2102
2103 2001-01-31  Tom Tromey  <tromey@redhat.com>
2104
2105         * Makefile.in: Rebuilt.
2106         * Makefile.am (LTCXXCOMPILE): New macro.
2107
2108 2001-01-26  Andrew Haley  <aph@redhat.com>
2109
2110         (INIT_FPE): Use a direct system call to set the handler.
2111
2112 2001-01-27  Richard Henderson  <rth@redhat.com>
2113
2114         * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
2115
2116 2001-01-27  Tom Tromey  <tromey@redhat.com>
2117
2118         * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
2119         native interface structure.
2120
2121 2001-01-27  Bryce McKinlay  <bryce@albatross.co.nz>
2122
2123         * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
2124         result unsigned.
2125         (read (byte[], int, int)): Only call readNextBlock() if the block
2126         buffer would actually be overrun. Increment blockDataPosition.
2127         (callReadMethod): Propagate exceptions from invocation target.
2128         * java/io/ObjectOutputStream.java (callWriteMethod): Propagate
2129         exceptions from invocation target.
2130
2131 2001-01-26  Tom Tromey  <tromey@redhat.com>
2132
2133         * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
2134         to internal representation.
2135         (_Jv_JNI_GetAnyFieldID): Likewise.  Also, only use
2136         _Jv_FindClassFromSignature.
2137
2138 2001-01-26  Warren Levy  <warrenl@redhat.com>
2139
2140         * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
2141         and timezone if they are available on the system.
2142
2143 2001-01-24  Tom Tromey  <tromey@redhat.com>
2144
2145         * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
2146
2147 2001-01-24  Tom Tromey  <tromey@redhat.com>
2148
2149         * Makefile.in: Rebuilt.
2150         * Makefile.am (c_source_files): Added sf_fabs.c.
2151         * java/lang/sf_fabs.c: New file.
2152
2153 2001-01-19  Warren Levy  <warrenl@redhat.com>
2154
2155         * java/text/SimpleDateFormat.java (format): Compute hour for cases
2156         HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
2157         correctly.  Adjust properly from 0-23 clock hour.
2158
2159 2001-01-17  Mark Wielaard  <mark@klomp.org>
2160
2161         * java/bean/Beans.java (instantiate): enable Applet code from Classpath
2162
2163 2001-01-17  Bryce McKinlay  <bryce@albatross.co.nz>
2164
2165         * java/lang/Class.h (isInterface): Move implementation from
2166         natClass.cc. Declare inline.
2167         (Class): Add default constructor.
2168         * java/lang/Object.h: Update comments.
2169         * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
2170         initialize superclass, saving a call if super is already initialized.
2171
2172 2001-01-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2173
2174         * prims.cc (init_prim_class): Deleted.
2175         (DECLARE_PRIM_TYPE): Rewritten.
2176         * java/lang/Class.h (stdio.h): Include removed.
2177         (stddef.h): Included.
2178         (java/lang/reflect/Modifier.h): Likewise.
2179         (Class): Contructor now takes arguments, initializes fields.
2180         (initializePrim): Prototype deleted.
2181         * java/lang/natClass.cc (initializePrim): Deleted.
2182
2183 2001-01-16  Warren Levy  <warrenl@redhat.com>
2184
2185         * java/math/BigInteger.java: Update Copyright year.
2186
2187 2001-01-16  Hans Boehm  <hans_boehm@hp.com>
2188
2189         * java/math/BigInteger.java (setShiftRight): Only do negative shift
2190         if count != 0.
2191
2192 2001-01-14  Mark Wielaard  <mark@klomp.org>
2193         * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
2194         (decode): Merge comments with Classpath, don't throw Exception
2195
2196 2001-01-12  Tom Tromey  <tromey@redhat.com>
2197
2198         * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
2199         Wrote.
2200         (setCursor): Wrote.
2201         Include Cursor.h.
2202         * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
2203         * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
2204         * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
2205         * gnu/awt/gtk/GtkLabelPeer.java: New file.
2206         * gnu/awt/gtk/GtkButtonPeer.java: New file.
2207
2208         * java/lang/natSystem.cc: Include locale.h if it exists.
2209         * configure: Rebuilt.
2210         * configure.in: Check for locale.h.
2211
2212 2001-01-11  Tom Tromey  <tromey@redhat.com>
2213
2214         * java/awt/Cursor.java (Cursor(String)): Set type to custom.
2215         (Cursor(int), getPredefinedCursor): Throw exception if argument
2216         invalid.
2217
2218 2001-01-03  Tom Tromey  <tromey@redhat.com>
2219
2220         * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
2221         (getLocationOnScreen): Wrote.
2222
2223 2001-01-11  Bryce McKinlay  <bryce@albatross.co.nz>
2224
2225         * Makefile.am: Re-enable dependencies.
2226         * Makefile.in: Rebuilt.
2227
2228 2001-01-10  Warren Levy  <warrenl@redhat.com>
2229
2230         * java/math/BigDecimal.java (divide): Fixed comment.
2231
2232 2001-01-10  Warren Levy  <warrenl@redhat.com>
2233
2234         Fix for PR libgcj/1596:
2235         * java/math/BigDecimal.java (divide): Check newScale for validity.
2236         Ensure that BigInteger.pow() is called with a non-negative value.
2237         (setScale (int)): New public method.
2238         (setScale (int,int)): New public method.
2239
2240 2001-01-09  Oskar Liljeblad <osk@hem.passagen.se>
2241
2242         Fix for PR libgcj/1338:
2243         * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
2244         commentChar.  Fixed typos in comments.
2245
2246 2001-01-08  Warren Levy  <warrenl@redhat.com>
2247
2248         Fix for PR libgcj/1411:
2249         * Makefile.am: Removed java/util/natTimeZone.cc.
2250         * Makefile.in: Rebuilt.
2251         * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
2252         missing localized timezone names.
2253         * java/lang/System.java (getDefaultTimeZoneId): New private method.
2254         * java/lang/natSystem.cc (getSystemTimeZone): New private method.
2255         (init_properties): Set user.timezone property.
2256         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2257         default timezone names; removed non-standard ones.  Use standard
2258         ID names per JCL.
2259         * java/util/Date.java (toGMTString): Removed zoneGMT variable.
2260         (UTC): Ditto.
2261         * java/util/TimeZone.java: Add standard ID names per JCL; removed
2262         non-standard ones.
2263         (getDefaultTimeZoneId): Removed.
2264         (zoneGMT): Removed.
2265         * java/util/natTimeZone.cc: Removed.
2266
2267 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
2268
2269         * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
2270         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
2271         (_Jv_GetArrayClass): New inline function.
2272         (arrayclass): New field.
2273         * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
2274         _Jv_GetArrayElementFromElementType.
2275         (_Jv_NewPrimArray): Ditto.
2276         (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
2277         "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
2278         Set Modifier::ABSTRACT.
2279         * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
2280         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
2281         Now synchronized. Array classes are now referenced from
2282         elementClass->arrayclass. Don't use _Jv_FindClassInCache.
2283         Set array classes' accessibility flags correctly. Optimize so that
2284         all array classes share the same IDT.
2285         * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
2286         * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
2287         * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
2288         in superclasses from overwriting classes own fields.
2289         (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
2290         Modifier::isAbstract().
2291         (null_idt): New static field.
2292         (_Jv_PrepareConstantTimeTables): Optimize case where class implements
2293         no interfaces.
2294         (_Jv_IndexOf): Made inline.
2295         * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
2296
2297 2001-01-08  Tom Tromey  <tromey@redhat.com>
2298
2299         Fix for PR java/1586:
2300         * Makefile.in: Rebuilt.
2301         * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
2302
2303 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
2304
2305         * Makefile.am: Use the new "-M -MF" option for generating dependencies
2306         from the c++ compiler.
2307         * Makefile.in: Rebuilt.
2308
2309 2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2310
2311         All files with updated copyright.
2312         * prims.cc (class _Jv_PrimClass): Removed.
2313         (init_prim_class): New function.
2314         (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
2315         `_Jv_PrimClass' in primitive type declarations. Assign to the
2316         value returned by `init_prim_class.'
2317         * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
2318         primitive type declarations.
2319         (JvPrimClass): Cast to `jclass' removed.
2320         * java/lang/Class.h (Class): New constructor.
2321         (Class): New copy constructor.
2322         (initializePrim): New prototype.
2323         (_Jv_PrimClass): Field removed.
2324         * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
2325         nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
2326         (class java::lang::Object): `finalize' moved up front.
2327         * java/lang/natClass.cc
2328         (isAssignableFrom): Turned outline.
2329         (isInstance): Likewise.
2330         (isInterface): Likewise, fixed indentation.
2331         (initializePrim): New function.
2332
2333 2001-01-07  Anthony Green  <green@redhat.com>
2334
2335         * Makefile.am (texinfo): Add texinfo target for generating texinfo
2336         documentation.
2337         * Makefile.in: Rebuilt.
2338
2339         * scripts/TexinfoDoclet.java: New file.
2340
2341         * doc/java-applet.texi, doc/java-lang-reflect.texi,
2342         doc/java-awt-color.texi, doc/java-lang.texi,
2343         doc/java-awt-datatransfer.texi, doc/java-math.texi,
2344         doc/java-awt-event.texi, doc/java-net.texi,
2345         doc/java-awt-geom.texi, doc/java-security-spec.texi,
2346         doc/java-awt-image.texi, doc/java-security.texi,
2347         doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
2348         doc/java-text.texi, doc/java-beans-beancontext.texi,
2349         doc/java-util-jar.texi, doc/java-beans.texi,
2350         doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
2351         doc/java-lang-ref.texi: New files.
2352
2353 2001-01-07  Anthony Green  <green@redhat.com>
2354
2355         * java/net/URLConnection.java (setDoOutput): URLConnection's may
2356         be used for both input and output, so don't clear doInput.
2357
2358         * java/lang/StringBuffer.java: Fix comments.
2359
2360 2001-01-06  Anthony Green  <green@redhat.com>
2361
2362         * java/beans/PropertyDescriptor.java: Fix comment.
2363         * java/io/PushbackReader.java: Fix comment.
2364         * java/io/ObjectStreamClass.java: Fix comment.
2365         * java/io/DataInputStream.java: Fix comment.
2366         * java/io/PipedInputStream.java: Fix comments.
2367         * java/io/PipedReader.java: Fix comments.
2368         * java/sql/DatabaseMetaData.java: Fix comments.
2369
2370 2001-01-06  Bryce McKinlay  <bryce@albatross.co.nz>
2371
2372         * java/io/PipedReader: Synchronize on "lock" instead of this.
2373
2374 2001-01-05  Bryce McKinlay  <bryce@albatross.co.nz>
2375
2376         * java/lang/Thread.java: Update comment.
2377
2378         * java/io/PipedInputStream: Rewrote to be simpler and more correct.
2379         * java/io/PipedOutputStream: Updated to match new PipedInputStream.
2380         * java/io/PipedReader: New implementation based on new
2381         PipedInputStream.
2382         * java/io/PipedWriter: Updated to match new PipedReader.
2383
2384 2001-01-03  Tom Tromey  <tromey@redhat.com>
2385
2386         * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
2387         (getViewportSize): Insets include scrollbar size.
2388         (doLayout): Finished.
2389         (getScrollPosition): Wrote.
2390         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
2391
2392 2001-01-02  Tom Tromey  <tromey@redhat.com>
2393
2394         * java/awt/ScrollPane.java: Wrote.
2395         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
2396         method.
2397
2398         * java/awt/Panel.java (Panel()): Fixed.
2399
2400         * java/awt/Component.java (isShowing): Return false if no peer
2401         exists, and true if component is visible and no parent exists.
2402         (getLocationOnScreen): Wrote.
2403         (getPreferredSize): Removed FIXME comment.
2404         (getMinimumSize): Likewise.
2405         (getAlignmentX, getAlignmentY): Wrote.
2406         (list): Wrote.
2407         (requestFocus): Wrote.
2408         (transferFocus): Wrote.
2409         (findNextFocusComponent): New method.
2410         (hasFocus()): Wrote.
2411         (checkImage): Wrote.
2412         (enableEvents): Call setEventMask on the peer.
2413
2414         * java/awt/Container.java (list): Use super.list() to print self.
2415         (findNextFocusComponent): New method.
2416         (setLayout): Call invalidate.
2417         (findComponentAt): Wrote.
2418
2419 2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>
2420
2421         * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
2422         the correct versions of various linuxthreads functions get linked.
2423         * Makefile.in: Rebuilt.
2424         * java/lang/natThread.cc (finalize_native): New static function. Call
2425         _Jv_ThreadDestroyData.
2426         (initialize_native): Register finalizer for "data".
2427         * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
2428         (_Jv_ThreadDestroyData): New prototype.
2429         * include/win32-threads.h: Ditto.
2430         * include/no-threads.h: Ditto.
2431         * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2432         (_Jv_ThreadDestroyData): New function. Free native thread "data" and
2433         move mutex and condition variable destroy code from:
2434         (really_start): ...here.
2435         (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
2436         * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
2437         (_Jv_ThreadDestroyData): Implemented.
2438         * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
2439         (_Jv_AllocArray): Ditto.
2440
2441 2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>
2442
2443         * java/sql/DriverManager.java (getConnection): Don't set user/password
2444         properties if null.
2445
2446 2000-12-27  Warren Levy  <warrenl@redhat.com>
2447
2448         Fix for PR libgcj/1358:
2449         * java/lang/System.java: Update Copyright date properly.
2450         * java/util/Calendar.java: Fix typo in comment.
2451         (set): Set 24-hour clock hour instead of 12-hour clock hour.
2452         * java/util/GregorianCalendar.java (GregorianCalendar): Properly
2453         initialize times.  Spec says to set H:M:S values to zero only if
2454         a date is given.
2455         * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
2456         needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
2457         * java/util/natGregorianCalendar.cc (computeTime): Properly handle
2458         timezones and GMT offsets, being careful to account for units of
2459         milliseconds vs. seconds.
2460
2461 2000-12-28  Bryce McKinlay  <bryce@albatross.co.nz>
2462
2463         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
2464         not be assigned to Object.
2465
2466         Fix for PR libgcj/1516:
2467         * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
2468         Add boolean entry.
2469         (can_widen): Declared inline. Remove redundant checks for void
2470         arguments and char->short conversion. Add special case for boolean
2471         conversions.
2472         (ffi_type): Declared inline.
2473         (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
2474
2475 2000-12-26  Petter Reinholdtsen  <pere@hungry.com>
2476
2477         * java/sql/SQLWarning.java: Fixed typo in comment.
2478
2479 2000-12-26  Tom Tromey  <tromey@redhat.com>
2480
2481         * java/awt/MenuItem.java (paramString): Now protected.
2482
2483         * java/awt/MenuShortcut.java: Implements Serializable.
2484
2485         * java/awt/MenuBar.java: Rewrote from scratch.
2486
2487         * java/awt/MenuComponent.java (removeNotify): Wrote.
2488         Implements Serializable.
2489
2490         * java/awt/GridBagConstraints.java (GridBagConstraints): New
2491         constructor.
2492
2493         * java/awt/CheckboxMenuItem.java: Wrote.
2494
2495 2000-12-25  Tom Tromey  <tromey@redhat.com>
2496
2497         * java/awt/MenuContainer.java: Fixed typo.
2498
2499         * Makefile.in: Rebuilt.
2500         * Makefile.am (awt_java_source_files): Added SystemColor.java.
2501         * java/awt/SystemColor.java: New file.
2502
2503         * java/awt/Color.java (rgba): Now package-private.
2504
2505         * java/awt/event/InputEvent.java (isAltGraphDown): New method.
2506
2507         * java/awt/event/ContainerEvent.java (getContainer): Renamed from
2508         getComponent.
2509
2510         * java/awt/MenuItem.java (addNotify): New method.
2511         (MenuItem(String,MenuShortcut)): New constructor.
2512         (setLabel): Notify peer of change.
2513         (setEnabled): Likewise.
2514
2515         * java/awt/GridLayout.java (toString): New method.
2516
2517         * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
2518         (FlowLayout): Check for LEADING and TRAILING.
2519         (setAlignment): Likewise.
2520         (layoutContainer): Handle component orientation.
2521
2522         * java/awt/Component.java (orientatin): New field.
2523         (setComponentOrientation): Wrote.
2524         (getComponentOrientation): Wrote.
2525
2526         * java/awt/Event.java (Event): Implements Serializable.
2527         (consumed): New field for serialization.
2528         * java/awt/Dimension.java (Dimension): Implements Serializable.
2529         * java/awt/Cursor.java (Cursor): Implements Serializable.
2530         * java/awt/Container.java (Container): No longer abstract.
2531
2532         * java/awt/Choice.java: Wrote.
2533         * java/awt/Checkbox.java: Wrote.
2534         * java/awt/ItemSelectable.java: Documented.
2535         * java/awt/CheckboxGroup.java: Wrote.
2536
2537         * java/awt/CardLayout.java (layoutContainer): Directly use fields
2538         in other classes.
2539         (getSize): Likewise.
2540
2541 2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>
2542
2543         * java/io/FileDescriptor.java: Initialize fd to -1.
2544         Remove default constructor.
2545
2546 2000-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
2547
2548         * java/lang/mprec.h: Change C9X reference to refer to C99.
2549
2550 2000-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
2551
2552         * java/lang/Throwable.java (trace_enabled): New static field.
2553         * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
2554         trace_enabled not set.
2555         * prims.cc (main_init): Turn off trace_enabled while creating
2556         default exception objects.
2557
2558 2000-12-21  Tom Tromey  <tromey@redhat.com>
2559
2560         * java/beans/PropertyChangeListener.java: Extends EventListener.
2561         * java/beans/VetoableChangeListener.java: Extends EventListener.
2562
2563         * java/util/zip/Deflater.java (update, init): Now private.
2564
2565 2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
2566
2567         * java/util/BasicMapEntry.java: Re-added.
2568         * java/util/HashMap.java (Entry): Extend BasicMapEntry.
2569         (putAll): Test for BasicMapEntry.
2570         * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
2571         (putAll): Test for BasicMapEntry.
2572         Change references from `HashMap.Entry' to `Entry' in various places.
2573         * Makefile.am: Add BasicMapEntry.java.
2574         * Makefile.in: Rebuilt.
2575
2576 2000-12-18  Warren Levy  <warrenl@redhat.com>
2577
2578         * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
2579         need to set timezone to a valid non-null value.  Partial fix for
2580         PR 331.
2581
2582 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
2583
2584         * java/awt/Window.java (addNotify): Remove peer casting hack now that
2585         gcj/312 is fixed.
2586         * java/awt/Button.java (addNotify): Likewise.
2587         * java/awt/Label.java (addNotify): Likewise.
2588         * java/awt/Panel.java (addNotify): Likewise.
2589         * java/awt/Scrollbar.java (addNotify): Likewise.
2590         * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
2591         Remove redundant null checks.
2592
2593 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2594
2595         * COPYING: Update to current
2596         ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
2597         to 19yy as example year in copyright notice).
2598
2599 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
2600
2601         * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
2602         end-of-stream if avail_in is 0.
2603
2604 2000-12-17  Bryce McKinlay  <bryce@albatross.co.nz>
2605
2606         * java/util/ArrayList.java (data): Declare transient.
2607         (serialPersistantFields): Removed.
2608         (readObject): Use defaultReadObject(), not readFields().
2609         (writeObject): Use defaultWriteObject(), not writeFields().
2610
2611 2000-12-17  Jeff Sturm  <jeff.sturm@commerceone.com>
2612
2613         * java/util/Hashtable.java (put): Remove `last' variable.
2614         Link new entry to head of list.
2615         * java/util/HashMap.java (put): Ditto.
2616
2617 2000-12-15  Tom Tromey  <tromey@redhat.com>
2618
2619         * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
2620         loader to Class.forName.
2621
2622 2000-12-14  Tom Tromey  <tromey@redhat.com>
2623
2624         * java/util/ResourceBundle.java
2625         (getBundle(String,Locale,ClassLoader)): New method.
2626         (trySomeGetBundle): Added `loader' argument.
2627         (partialGetBundle): Likewise.
2628
2629         * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
2630         maximumFractionDigits, maximumIntegerDigits,
2631         minimumFractionDigits, minimumIntegerDigits): Now
2632         package-private.
2633
2634         * java/lang/Thread.java (checkAccess): Now final.
2635
2636         * java/lang/RuntimePermission.java: Class now final.
2637
2638         * java/io/StringWriter.java (StringWriter(int)): Now public.
2639
2640         * java/io/SerializablePermission.java (legal_names): Now private.
2641
2642         * java/lang/Character.java: Updated UnicodeBlock constants.
2643         * scripts/blocks.pl: Special case private use and surrogate
2644         areas.  Updated URL.
2645
2646 2000-12-12  Tom Tromey  <tromey@redhat.com>
2647
2648         * Makefile.in: Rebuilt.
2649         * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
2650         option.
2651         (GCJCOMPILE): Use it.
2652         (JAVAC): Likewise.
2653
2654 2000-12-11  Tom Tromey  <tromey@redhat.com>
2655
2656         * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
2657         New static final fields.
2658
2659         * scripts/classes.pl (scan): Skip lines with leading `*'.
2660         Fix for PR libgcj/378.
2661
2662 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
2663
2664         * configure.in: Remove check for -fuse-divide-subroutine.
2665         * configure: Rebuilt.
2666
2667         * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2668
2669         * gcj/javaprims.h: Rebuilt CNI namespace declarations.
2670
2671 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
2672
2673         * Makefile.am: Add HashSet.java and java/lang/ref classes.
2674         Remove BasicMapEntry.java and Bucket.java.
2675         * Makefile.in: Rebuilt.
2676         * java/util/HashMap.java: Rewritten.
2677         * java/util/HashSet.java: Imported from classpath.
2678         * java/util/WeakHashMap.java: Imported from classpath.
2679         * java/util/Hashtable.java: Rewritten based on new HashMap code.
2680         * java/util/Bucket.java: Deleted.
2681         * java/util/BasicMapEntry.java: Deleted.
2682         * java/util/Collections.java (search): Use a for-loop, not iterator
2683         hasNext().
2684         (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
2685         of elements in source.
2686         (max): Use a for-loop.
2687         (min): Ditto.
2688         (reverse): Keep track of positions instead of using Iterator's
2689         nextIndex() and previousIndex().
2690         (shuffle(List)): Initialize defaultRandom if required using
2691         double-check thread safety idiom. Call two-argument shuffle method
2692         using defaultRandom.
2693         (defaultRandom): New field.
2694         (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
2695         using previousIndex() and nextIndex().
2696         (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
2697         * java/util/AbstractCollection.java (toString): Use a StringBuffer.
2698         * java/util/AbstractMap.java (toString): Use StringBuffer.
2699         * java/lang/ref/PhantomReference.java: Imported from classpath.
2700         * java/lang/ref/SoftReference.java: Ditto.
2701         * java/lang/ref/Reference.java: Ditto.
2702         * java/lang/ref/WeakReference.java: Ditto.
2703         * java/lang/ref/ReferenceQueue.java: Ditto.
2704
2705 2000-12-10  Richard Henderson <rth@redhat.com>
2706
2707         * configure.host: Recognize alpha*-*, not alphaev6-*.
2708
2709 2000-12-09  Anthony Green  <green@redhat.com>
2710
2711         * configure.host: Enable interpreter for Alpha.
2712
2713 2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2714
2715         * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
2716         (ZIP): Points at fastjar instead of zip.
2717         (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2718         (libgcj_la_LDFLAGS): Correctly point at libsupc++.
2719         (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
2720         (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
2721         ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
2722         ($(x_java_source_files:.java=.class):): Likewise.
2723         (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
2724         fastar's flags.
2725         (CLEANFILES): libgcj.jar replaces libgcj.zip.
2726         (java/lang/ClassLoader.h:): Depends on libgcj.jar.
2727         (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
2728         java/lang/String.h:, java/lang/reflect/Constructor.h:,
2729         java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
2730         gnu/gcj/runtime/VMClassLoader.h:,
2731         java/io/ObjectInputStream$$GetField.h:,
2732         java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
2733         (Makefile.in): Rebuilt.
2734
2735 2000-12-08  Tom Tromey  <tromey@redhat.com>
2736
2737         From Phil Edwards:
2738         * configure: Rebuilt.
2739         * configure.in: Use echo, not `:', to create .d files.
2740
2741 2000-12-08  Warren Levy  <warrenl@redhat.com>
2742
2743         * java/lang/StringBuffer.java (insert(int,char[])): Avoid
2744         NullPointerException so proper check of offset can be done.
2745
2746 2000-12-08  Warren Levy  <warrenl@redhat.com>
2747
2748         * java/io/FileInputStream.java (close): Check if the fd is valid.
2749         * java/io/RandomAccessFile.java (close): Ditto.
2750         * java/net/PlainDatagramSocketImpl.java (close): Ditto.
2751         * java/net/PlainSocketImpl.java (close): Ditto.
2752
2753 2000-12-06  Tom Tromey  <tromey@redhat.com>
2754
2755         * java/awt/GridBagConstraints.java: Filled in values for static
2756         final fields.
2757
2758         * java/util/BitSet.java: Updated copyright notice.
2759
2760         * Makefile.in: Rebuilt.
2761         * Makefile.am (awt_java_source_files): Added new file.
2762         * java/awt/GridBagConstraints.java: New file.
2763
2764 2000-12-05  Tom Tromey  <tromey@redhat.com>
2765
2766         * java/text/Collator.java (decomposeCharacter, decmp, strength):
2767         Now package-private, not protected.
2768         * java/text/DateFormatSymbols.java (equals): Now private.
2769         * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
2770         * java/util/BitSet.java: Class no longer final.
2771
2772 2000-12-04  Warren Levy  <warrenl@redhat.com>
2773
2774         * java/util/TimeZone.java (getAvailableIDs): Activated commented
2775         out code dependent on compiler and library changes.
2776
2777 2000-12-04  Warren Levy  <warrenl@redhat.com>
2778
2779         * java/io/FilePermission.java: Made class final per spec.
2780         * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
2781         method name to match spec (fixed typo).
2782         * java/util/LinkedList.java: Implements List.
2783
2784 2000-12-04  Bryce McKinlay  <bryce@albatross.co.nz>
2785
2786         * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
2787         Edgar Villanueva <edgarvil@home.com>.
2788
2789 2000-12-03  Tom Tromey  <tromey@redhat.com>
2790
2791         * java/awt/geom/Point2D.java: Added protected constructor.
2792         (equals): New method.
2793         (Float.setLocation(float,float)): New method.
2794         * java/awt/geom/Dimension2D.java: Added protected constructor.
2795         * java/awt/geom/AffineTransform.java: Made all constants public.
2796         (concatenate): Fixed typo in name.
2797         * java/awt/event/WindowAdapter.java: Class now abstract.
2798         * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
2799         * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
2800         AWTEvent.
2801
2802         * java/awt/AWTError.java: Extend Error, not
2803         IllegalStateException.
2804
2805         * Makefile.in: Rebuilt.
2806         * Makefile.am (awt_java_source_files): Added new file.
2807         * java/awt/geom/RoundRectangle2D.java: New file.
2808
2809         * Makefile.in: Rebuilt.
2810         * Makefile.am (awt_java_source_files): Added new file.
2811         * java/awt/FlowLayout.java: New file.
2812
2813         * Makefile.in: Rebuilt.
2814         * Makefile.am (awt_java_source_files): Added new file.
2815         * java/awt/GridLayout.java: New file.
2816
2817 2000-12-02  Tom Tromey  <tromey@redhat.com>
2818
2819         * Makefile.in: Rebuilt.
2820         * Makefile.am (awt_java_source_files): Added new files.
2821         * java/awt/CardLayout.java: New file.
2822         * java/awt/AWTPermission.java: New file.
2823
2824 2000-12-01  Tom Tromey  <tromey@redhat.com>
2825
2826         * java/util/Vector.java (insertElementAt): Unconditionally
2827         increment elementCount.
2828         (removeRange): Clear unused slots in vector.
2829
2830 2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
2831
2832         * java/lang/natMath.cc: Declare fabsf() function.
2833         * java/lang/mprec.h: Don't include math.h.
2834         * java/lang/dtoa.c: Include string.h.
2835         * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
2836         compiler warning.
2837
2838         From Adam Welc <welc@cs.purdue.edu>:
2839         * java/util/LinkedList.java (removeFirst): Update `first' field.
2840         Handle the last == first case.
2841         (removeLast): Update `last' field. Handle the last == first case.
2842
2843 2000-12-01  Warren Levy  <warrenl@cygnus.com>
2844
2845         * Makefile.am: Added entries for new java.sql modules.
2846         * Makefile.in: Rebuilt.
2847
2848 2000-12-01  Warren Levy  <warrenl@cygnus.com>
2849
2850         * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
2851         that aren't quite 1.2 compatible yet.
2852
2853 2000-11-30  Warren Levy  <warrenl@cygnus.com>
2854
2855         * java/sql/Array.java: New file from classpath.
2856         * java/sql/BatchUpdateException.java: Ditto.
2857         * java/sql/Blob.java: Ditto.
2858         * java/sql/Clob.java: Ditto.
2859         * java/sql/Ref.java: Ditto.
2860         * java/sql/SQLData.java: Ditto.
2861         * java/sql/SQLInput.java: Ditto.
2862         * java/sql/SQLOutput.java: Ditto.
2863         * java/sql/Struct.java: Ditto.
2864         * java/sql/CallableStatement.java: Merged file from claspath.
2865         * java/sql/Connection.java: Ditto.
2866         * java/sql/DataTruncation.java: Ditto.
2867         * java/sql/DatabaseMetaData.java: Ditto.
2868         * java/sql/DriverManager.java: Ditto.
2869         * java/sql/PreparedStatement.java: Ditto.
2870         * java/sql/ResultSet.java: Ditto.
2871         * java/sql/ResultSetMetaData.java: Ditto.
2872         * java/sql/SQLException.java: Ditto.
2873         * java/sql/SQLWarning.java: Ditto.
2874         * java/sql/Statement.java: Ditto.
2875         * java/sql/Types.java: Ditto.
2876
2877 2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>
2878
2879         * java/lang/natSystem.cc (init_properties): Set user.language and
2880         user.region.
2881         * configure.in: Check for setlocale.
2882         * configure: Rebuilt.
2883         * include/config.h.in: Rebuilt.
2884
2885         * java/util/zip/InflaterInputStream (read): Don't return -1 unless
2886         the infate() call didn't deliver any output. Throw a ZipException if
2887         the needsDictionary() call returns true.
2888         * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
2889         * java/io/InputStreamReader: Use the default buffer size for the
2890         contained BufferedInputStream.
2891
2892 2000-11-28  Warren Levy  <warrenl@cygnus.com>
2893
2894         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
2895         more time zone entries.
2896         * java/text/SimpleDateFormat.java (format): Added case for
2897         TIMEZONE_FIELD.
2898
2899 2000-11-28  Bryce McKinlay  <bryce@albatross.co.nz>
2900
2901         * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
2902         directly rather than read() in all cases. Make primitive read
2903         implementations more efficient, as defined in JDK online docs.
2904         (skipBytes): Behave like the JDK's implementation.
2905         * java/io/BufferedReader.java: Merge classpath docs. Check for a
2906         closed stream with checkStatus() whenever an IOException can be
2907         thrown.
2908         (checkStatus): New private method.
2909
2910 2000-11-27  Warren Levy  <warrenl@cygnus.com>
2911
2912         * Makefile.am: Added natTimeZone.cc.
2913         * Makefile.in: Rebuilt.
2914         * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
2915         * java/text/DateFormatSymbols.java (ampms): Made package private.
2916         (eras): Made package private.
2917         (months): Made package private.
2918         (shortMonths): Made package private.
2919         (shortWeekdays): Made package private.
2920         (weekdays): Made package private.
2921         (formatPrefixes): New private field.
2922         (localPatternCharsDefault): Made private.
2923         (dateFormats): New package private field.
2924         (timeFormats): New package private field.
2925         (formatsForKey): New private method.
2926         (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
2927         (DateFormatSymbols(DateFormatSymbols)): Ditto.
2928         * java/text/SimpleDateFormat.java: Merged with Classpath.
2929         * java/util/TimeZone.java: Merged with Classpath.
2930         * java/util/natTimeZone.cc: New file.
2931
2932 2000-11-27  Bryce McKinlay  <bryce@albatross.co.nz>
2933
2934         * java/util/Vector.java (ensureCapacity): Don't increment modCount.
2935         (addElement): Don't increment elementCount twice. Doh.
2936         * java/util/ArrayList.java (add): Only call ensureCapacity if the
2937         array needs to be expanded.
2938         (addAll): Ditto.
2939         * java/util/Collections.java (UnmodifiableCollection): Implement
2940         toString().
2941         (UnmodifiableList): Throw UnsupportedOperationException from
2942         modification methods. Set `l' from the one-parameter constructor.
2943         (UnmodifiableMap): Implement toString().
2944         (SynchronizedCollection): Ditto.
2945         (SynchronizedList): Set `l' from the one-parameter constructor.
2946         (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
2947         (SynchronizedMap): Implement toString().
2948
2949 Sun Nov 26 23:59:55 2000  Anthony Green  <green@redhat.com>
2950
2951         * javax/naming/NameParser.java,
2952         javax/naming/directory/AttributeInUseException.java,
2953         javax/naming/directory/AttributeModificationException.java,
2954         javax/naming/directory/InvalidAttributeIdentifierException.java,
2955         javax/naming/directory/InvalidAttributesException.java,
2956         javax/naming/directory/InvalidAttributeValueException.java,
2957         javax/naming/directory/InvalidSearchControlsException.java,
2958         javax/naming/directory/InvalidSearchFilterException.java,
2959         javax/naming/directory/NoSuchAttributeException.java,
2960         javax/naming/directory/SchemaViolationException.java: New files.
2961
2962 Sun Nov 26 22:35:53 2000  Anthony Green  <green@redhat.com>
2963
2964         * javax/naming/InitialContext.java (rebind): Implement.
2965         (unbind): Implement.
2966         (rename): Implement.
2967         (list): Implement.
2968         (listBindings): Implement.
2969         (destroySubcontext): Implement.
2970         (createSubcontext): Implement.
2971         (lookupLink): Implement.
2972         (getNameParser): Implement.
2973         (composeName): Implement.
2974         (addToEnvironment): Implement.
2975
2976 Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
2977
2978         * javax/naming/AuthenticationException.java,
2979         javax/naming/AuthenticationNotSupportedException.java,
2980         javax/naming/CannotProceedException.java,
2981         javax/naming/CommunicationException.java,
2982         javax/naming/ConfigurationException.java,
2983         javax/naming/ContextNotEmptyException.java,
2984         javax/naming/InsufficientResourcesException.java,
2985         javax/naming/InterruptedNamingException.java,
2986         javax/naming/InvalidNameException.java,
2987         javax/naming/LimitExceededException.java,
2988         javax/naming/LinkException.java,
2989         javax/naming/LinkLoopException.java,
2990         javax/naming/MalformedLinkException.java,
2991         javax/naming/NameAlreadyBoundException.java,
2992         javax/naming/NameNotFoundException.java,
2993         javax/naming/NamingSecurityException.java,
2994         javax/naming/NoPermissionException.java,
2995         javax/naming/NotContextException.java,
2996         javax/naming/PartialResultException.java,
2997         javax/naming/ReferralException.java,
2998         javax/naming/ServiceUnavailableException.java,
2999         javax/naming/SizeLimitExceededException.java,
3000         javax/naming/TimeLimitExceededException.java: New files.
3001
3002         * javax/naming/Name.java (clone): New method.
3003         (compareTo): New method.
3004         (isEmpty): New method.
3005         (getAll): New method.
3006         (getPrefix): New method.
3007         (getSuffix): New method.
3008         (startsWith): New method.
3009         (endsWith): New method.
3010         (addAll): New method.
3011         (addAll): New method.
3012         (add): New method.
3013         (add): New method.
3014         (remove): New method.
3015
3016         * javax/naming/Context.java (lookup): New method.
3017         (rebind): New method.
3018         (unbind): New method.
3019         (rename): New method.
3020         (list): New method.
3021         (listBindings): New method.
3022         (destroySubcontext): New method.
3023         (createSubcontext): New method.
3024         (lookupLink): New method.
3025         (getNameParser): New method.
3026         (composeName): New method.
3027         (addToEnvironment): New method.
3028         (removeFromEnvironment): New method.
3029         (getEnvironment): New method.
3030         (close): New method.
3031         (getNameInNamespace): New method.
3032
3033         * javax/naming/InitialContext.java (lookup): New method.
3034         (rebind): New method.
3035         (unbind): New method.
3036         (rename): New method.
3037         (list): New method.
3038         (listBindings): New method.
3039         (destroySubcontext): New method.
3040         (createSubcontext): New method.
3041         (lookupLink): New method.
3042         (getNameParser): New method.
3043         (composeName): New method.
3044         (addToEnvironment): New method.
3045         (removeFromEnvironment): New method.
3046         (getEnvironment): New method.
3047         (close): New method.
3048         (getNameInNamespace): New method.
3049
3050 2000-11-26  Tom Tromey  <tromey@cygnus.com>
3051
3052         * Makefile.in: Rebuilt.
3053         * Makefile.am (core_java_source_files): Added
3054         RuntimePermission.java.
3055         * java/lang/RuntimePermission.java: Imported from Classpath.
3056         * java/lang/Thread.java (getContextClassLoader): Now
3057         synchronized.  Added security code.
3058         (setContextClassLoader): Likewise.
3059
3060         * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
3061         length field of array.
3062         (_Jv_NewPrimArray): Likewise.
3063         * gcj/array.h (__JArray): `length' field now const.  Added
3064         constructor.
3065
3066 2000-11-26  Anthony Green  <green@redhat.com>
3067
3068         * javax/naming/spi/NamingManager.java,
3069         javax/naming/spi/ObjectFactory.java,
3070         javax/naming/spi/InitialContextFactory.java,
3071         javax/naming/spi/InitialContextFactoryBuilder.java,
3072         javax/naming/RefAddr.java, javax/naming/Reference.java,
3073         javax/naming/NamingException.java, javax/naming/Context.java,
3074         javax/naming/Referenceable.java,
3075         javax/naming/directory/InitialDirContext.java,
3076         javax/naming/directory/DirContext.java,
3077         javax/naming/directory/Attributes.java,
3078         javax/naming/directory/Attribute.java,
3079         javax/naming/StringRefAddr.java,
3080         javax/naming/NamingEnumeration.java, javax/naming/Name.java,
3081         javax/naming/InitialContext.java,
3082         javax/naming/NoInitialContextException.java: New files.
3083
3084 2000-11-25  Anthony Green  <green@redhat.com>
3085
3086         * prims.cc (_Jv_NewObjectArray): Undo placement change.
3087         (_Jv_NewPrimArray): Likewise.
3088         * gcj/array.h (__JArray): Undo const change.  Removed constructor.
3089         (class JArray): Removed constructor.
3090
3091         * java/lang/Thread.java (context_class_loader): New private data.
3092         (getContextClassLoader): New method.
3093         (setContextClassLoader): New method.
3094         (Thread): Initialize context_class_loader.
3095
3096         * java/net/URLClassLoader.java: Import java.util.Enumeration.
3097         (getResource): Rename to findResource.
3098         (findResource): New method.  Used to be getResource.
3099         (getResourceAsStream): Deleted.
3100         (jarFileize): Extracted logic from URLClassLoader constructor into
3101         this new private method.
3102         (addURL): New protected method.
3103         (URLClassLoader): Call jarFileize.  Use addElement instead of
3104         insertElementAt.
3105         (findResources): New method.
3106
3107         * java/lang/ClassLoader.java: Import java.util.Enumeration.
3108         (getResource): Implement correct logic.
3109         (findResource): New method.
3110         (getResources): New method.
3111         (findClass): Create a ClassNotFoundException with the name of the
3112         class rather than nothing at all.
3113         (defineClass) Only throw ClassFormatError.
3114
3115         * java/lang/Class.java (forName): New method.
3116         * java/lang/Class.h (forName): New method.
3117         * java/lang/natClass.cc (forName): New method.
3118
3119 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
3120
3121         * java/lang/System.java (setProperties): Only call init_properties()
3122         if properties is null.
3123         (getProperties): Ditto.
3124         (getProperty): Ditto.
3125         (setProperty): Call init_properties if properties are null.
3126         (prop_init): Remove field.
3127         * java/lang/natSystem.cc (init_properties): Synchronize the entire
3128         method. Check for null properties after synchronizing instead of
3129         prop_init flag. Set the properties field last for thread safety.
3130
3131         * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
3132         test for gcj.dumpobjects property and enable object stream dumping
3133         if it is set.
3134         (dumpElement): No longer native.
3135         (dumpElementln): Ditto.
3136         (setDump): Do not define.
3137         * java/io/natObjectInputStream.cc (dumpElement): Removed.
3138         (dumpElementln): Removed.
3139         (setDump): Removed.
3140
3141 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
3142
3143         * configure: Rebuilt.
3144         * Makefile.in: Rebuilt.
3145         * Makefile.am (built_java_source_files): Add Configuration.java.
3146         * configure.in: Add Configuration.java to CONFIG_FILES. Set
3147         LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
3148         Create `gnu' directory in the build tree.
3149         * gnu/classpath/Configuration.java.in: New file.
3150
3151 2000-11-24  Tom Tromey  <tromey@cygnus.com>
3152
3153         * prims.cc (_Jv_NewObjectArray): Use placement new to create
3154         array.
3155         (_Jv_NewPrimArray): Likewise.
3156         Include <new>.
3157         * gcj/array.h (__JArray): `length' field now const.  Added
3158         constructor.
3159         (class JArray): Added constructor.
3160
3161 2000-11-23  Mark Wielaard  <mark@klomp.org>
3162
3163         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
3164         lookup.
3165
3166 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
3167
3168         * java/util/Vector.java: Improve exception messages.
3169         (Vector): Check initialCapacity for IllegalArgumentException.
3170         (tromToSize): Don't check for elementCount == elementData.length
3171         case.
3172         (toArray): Don't try to set null marker if target array is the same
3173         length as the vector.
3174
3175 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
3176
3177         * Makefile.in: Rebuilt.
3178         * Makefile.am (core_java_source_files): Added Collections.java.
3179         * java/util/List.java: Merged from classpath.
3180         * java/util/Vector.java: Ditto.
3181         * java/util/Collections.java: From classpath.
3182         * java/util/ArrayList.java (addAll(Collection)): Call
3183         addAll(int,Collection) instead of duplicating code.
3184         (indexOf): Clean up int initialization.
3185         (clear): Set cleared array entries to null, to allow garbage
3186         collection.
3187         * java/util/List.java: Minor formatting fixes.
3188         * java/util/SimpleTimeZone.java: ditto.
3189
3190 2000-11-18  Tom Tromey  <tromey@cygnus.com>
3191
3192         * Makefile.in: Rebuilt.
3193         * Makefile.am (core_java_source_files): Added new files.
3194         * java/lang/reflect/ReflectPermission.java: New class.
3195         * java/io/FileFilter.java: From Classpath
3196         * java/io/FilePermission.java: From Classpath.
3197
3198 2000-11-17  Tom Tromey  <tromey@cygnus.com>
3199
3200         * java/lang/reflect/AccessibleObject.java (isAccessible,
3201         setAccessible): Now public.
3202
3203         * java/lang/natString.cc: Include Locale.h.
3204         (toUpperCase): Added `locale' argument.  Handle locale
3205         sensitivity.
3206         (toLowerCase): Added `locale' argument.  Handle locale
3207         sensitivity.
3208         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
3209         CAPITAL_I): New defines.
3210         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
3211         final.
3212         Import Locale.
3213         (toUpperCase, toLowerCase): New methods.  Variants which accept
3214         locale now native.
3215
3216         * java/lang/ExceptionInInitializerError.java (printStackTrace):
3217         New methods.
3218
3219         * java/util/PropertyPermission.java: Re-merged from Classpath.
3220
3221         * java/text/RuleBasedCollator.java (getCollationElementIterator):
3222         New method.
3223         * java/text/StringCharacterIterator.java: Reindented.
3224         (setText): New method.
3225
3226 2000-11-17  Mark Wielaard  <mark@klomp.org>
3227
3228         Merge with Classpath (changes by Bryce McKinlay)
3229         * java/util/jar/*.java: Reformat all to unofficial standard coding
3230         style. No changes of substance.
3231
3232 2000-11-17  Mark Wielaard  <mark@klomp.org>
3233
3234         * java/util/zip/*.java: Javadoc updates.
3235
3236 2000-11-17  Tom Tromey  <tromey@cygnus.com>
3237
3238         * java/text/CollationKey.java: Implement Comparable.
3239         (compareTo(Object)): New method.
3240         * java/text/Collator.java (compare(Object,Object)): New method.
3241         Implement Comparator.
3242
3243         * java/util/zip/InflaterInputStream.java (available): New method.
3244         (close): New method.
3245         (read, available, skip, fill): Throw exception if stream closed.
3246         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
3247         getNextEntry): Throw exception if closed.
3248
3249 2000-11-16  Tom Tromey  <tromey@cygnus.com>
3250
3251         * java/io/PushbackReader.java: Merged with Classpath.
3252         * java/util/Arrays.java: Updated from Classpath.
3253
3254         * scripts/blocks.pl: New file.
3255         * java/lang/Character.java (Subset): New class.
3256         (UnicodeBlock): New class.
3257
3258         * java/lang/Math.java (toDegrees, toRadians): New methods.
3259
3260         * java/lang/Float.java: Implement Comparable.
3261         (compareTo): New methods.
3262         * java/lang/Double.java: Implement Comparable.
3263         (compareTo): New methods.
3264
3265 2000-11-16  Warren Levy  <warrenl@cygnus.com>
3266
3267         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
3268         transient.
3269         (listeners): Made transient.
3270         (source): Renamed from 'bean'.
3271         (children): New field for serialization.
3272         (propertyChangeSupportSerializedDataVersion): Ditto.
3273         (serialVersionUID): Ditto.
3274         (writeObject): New serialization method.
3275         (readObject): New serialization method.
3276         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
3277         transient.
3278         (listeners): Made transient.
3279         (source): Renamed from 'bean'.
3280         (children): New field for serialization.
3281         (vetoableChangeSupportSerializedDataVersion): Ditto.
3282         (serialVersionUID): Ditto.
3283         (writeObject): New serialization method.
3284         (readObject): New serialization method.
3285         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
3286         to allow constructor to have a return type (i.e. the class that the
3287         constructor constructs).
3288
3289 2000-11-14  Tom Tromey  <tromey@cygnus.com>
3290
3291         * Makefile.in: Rebuilt.
3292         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
3293         and -k not given.
3294
3295 2000-11-02  Warren Levy  <warrenl@cygnus.com>
3296
3297         * java/io/ObjectInputStream.java (readObject): Added code to
3298         conditionally dump out the serialized data.
3299         Handle ENDBLOCKDATA case a bit more gracefully since the current
3300         behavior doesn't seem to work as expected.
3301         (readStreamHeader): Added code for serialized data dumper.
3302         (readNextBlock): Ditto.
3303         (readFields): Ditto.
3304         (dump): New private static field for turning on/off dumper.
3305         (setDump): New native method.
3306         (dumpElement): New native method.
3307         (dumpElementln): New native method.
3308         * java/io/natObjectInputStream.cc (setDump): New method.
3309         (dumpElement): New method.
3310         (dumpElementln): New method.
3311
3312 2000-11-02  Warren Levy  <warrenl@cygnus.com>
3313
3314         * java/net/InetAddress.java (addr): Renamed from 'address'.
3315         (address): New field to match Serialized Form doc.
3316         (hostName): Renamed from 'hostname' to match Serialized Form doc.
3317         (family): New serialization field.
3318         (serialVersionUID): New field.
3319         (readObject): New method.
3320         (writeObject): New method.
3321         (getFamily): New native method.
3322         (InetAddress): Set family.
3323         * java/net/natInetAddress.cc (getFamily): New method.
3324         (addr): Renamed from 'address'.
3325         (hostName): Renamed from 'hostname' to match Serialized Form doc.
3326         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
3327         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
3328
3329 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
3330
3331         * java/util/AbstractList.java (SubList): Make it a top-level private
3332         class.
3333         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
3334         (add): Ditto.
3335         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
3336         * Makefile.in: Rebuilt.
3337
3338 2000-11-02  Tom Tromey  <tromey@cygnus.com>
3339
3340         * Makefile.in: Rebuilt.
3341         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
3342         link.
3343
3344 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
3345
3346         * java/util/AbstractList.java (remove): Comment out modCount increment
3347         to work around compiler bug.
3348         (add): Ditto.
3349
3350 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
3351
3352         * java/util/AbstractList.java: Throw messages with
3353         IndexOutOfBoundsExceptions.
3354          (listIterator()): Call listIterator(0).
3355         (size): New field. Initialize to size().
3356         (hasNext): Test position against size, not size().
3357         (remove): Increment knownMod by one instead of resetting it from
3358         modCount.
3359         (add): Ditto.
3360         (SubList.upMod): Removed.
3361         (SubList.set): Don't call upMod() or update knownMod.
3362         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
3363         (SubList.remove): Ditto.
3364         (SubList.addAll): Don't call backingList.size(). Increment size from
3365         c.size().
3366         (SubList.iterator): New method. Call listIterator(0).
3367         (SubList.listIterator): New method. Restore code to return an anonymous
3368         listIterator implementation (with some changes).
3369         * java/util/AbstractSequentialList.java: Throw messages with
3370         IndexOutOfBoundsExceptions.
3371         (addAll): Add a specnote.
3372         * java/util/ArrayList.java (removeRange): Get the math right.
3373         (addAll): Increment modCount _before_ creating iterator.
3374         * java/util/LinkedList.java: Rewritten, mostly.
3375
3376 2000-11-01  Tom Tromey  <tromey@cygnus.com>
3377
3378         * scripts/encodings.pl: Added `ASCII' alias.
3379         * Makefile.in: Rebuilt.
3380         * Makefile.am (convert_source_files): Added new files.
3381         * gnu/gcj/convert/Input_ASCII.java: New file.
3382         * gnu/gcj/convert/Output_ASCII.java: New file.
3383         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
3384         out-of-range characters.
3385         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
3386         (read): Swap bytes if required.  Treat `count' as character count,
3387         not byte count.
3388         (write): Likewise.  Also, handle case where iconv fails on a given
3389         character.
3390         (init): Put encoding into exception.
3391         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
3392         (static): Call iconv_init.  Rebuilt alias list.
3393         (iconv_init): New private method.
3394
3395 2000-11-01  Tom Tromey  <tromey@cygnus.com>
3396
3397         * Makefile.in: Rebuilt.
3398         * Makefile.am (install-exec-hook): Only make a single symlink, and
3399         remove the destination before making the link.
3400         * configure: Rebuilt.
3401         * configure.in: Call AC_PROG_LN_S.
3402
3403 2000-10-31  Warren Levy  <warrenl@cygnus.com>
3404
3405         * jni.cc: Added include of java/lang/ThreadGroup.h.
3406         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
3407         per change of 2000-10-05.
3408
3409 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
3410
3411         * java/util/BitSet.java: Updated @specnote.
3412
3413         * java/io/Reader.java: Merge docs from classpath.
3414         (skip): Synchronize on `lock'.
3415         * java/io/FileReader.java: Import correct implementation from
3416         classpath.
3417         * java/io/StringReader.java: Merge docs from classpath.
3418         (ready): Throw IOException if stream is closed.
3419
3420 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
3421
3422         * java/util/AbstractCollection.java (addAll): Use size() instead of
3423         hasNext() in iterator loop.
3424         (clear): Ditto.
3425         (contains): Ditto. Simplify loop.
3426         (containsAll): Ditto.
3427         (remove): Ditto.
3428         (removeAll): Ditto.
3429         (retainAll): Ditto.
3430         (toArray): Ditto.
3431         (toString): Ditto. Use string concatenation operators, not
3432         StringBuffer.
3433         * java/util/AbstractList.java (addAll): Use size() instead of
3434         hasNext() in iterator loop.
3435         (equals): Ditto.
3436         (hashCode): Ditto.
3437         (indexOf): Ditto. Don't take null check outside of the loop.
3438         (iterator): Return an AbstractListItr instead of anonymous class.
3439         (lastIndexOf): Use a for loop bounded by size() instead of
3440         hasPrevious() in iterator loop.
3441         (listIterator): Return an AbstractListItr.
3442         (removeRange): Remove bounds checking code and docs.
3443         (AbstractListItr): New inner class. Code moved here from
3444         listIterator().
3445         (SubList.iterator): Removed. Use default implementation from
3446         AbstractList instead.
3447         (SubList.listIterator): As above.
3448         * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
3449         instead of hasNext() in iterator loop.
3450         (containsValue): Ditto.
3451         (equals): Ditto.
3452         (get): Ditto.
3453         (put): Ditto.
3454         (putAll): Ditto.
3455         (remove): Ditto.
3456         (toString): Ditto. Use string concatenation operators, not
3457         StringBuffer.
3458         * java/util/AbstractSequentialList.java (addAll): Use a for loop
3459         bounded by size() instead of hasNext() in iterator loop.
3460         * java/util/AbstractSet.java (hashCode): Don't catch exception as
3461         part of normal execution flow. Do an explicit null check instead.
3462         * java/util/ArrayList.java (_iSize): Rename to `size'.
3463         (_arData): Rename to `data'.
3464         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
3465         message.
3466         (remove): Ditto.
3467         (removeRange): Make protected. Don't check bounds.
3468         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
3469         message.
3470         (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
3471         check.
3472         (addAll (int, Collection)): Check lower bounds. Simplify exception
3473         string.
3474         (clone): Clone the data array too.
3475         (indexOf): Inline doesEqual().
3476         (lastIndexOf): Ditto.
3477         (clear): Don't set array data to null.
3478         (set): Check lower bounds. Simplify exception string.
3479         (toArray): Correct comment.
3480         (trimToSize): Don't update modCount, this is not a structural change.
3481         Add comment.
3482
3483         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
3484         implemented.
3485         (toString): Declare `bit' as long, not int.
3486         (data): Made package-private, not private.
3487
3488 2000-10-27  Warren Levy  <warrenl@cygnus.com>
3489
3490         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
3491         array elements to true.
3492
3493 2000-10-27  Warren Levy  <warrenl@cygnus.com>
3494
3495         * Makefile.am: Added locale files from Classpath.
3496         * Makefile.in: Rebuilt.
3497         * gnu/java/locale/Calendar.java: New file.
3498         * gnu/java/locale/Calendar_de.java: New file.
3499         * gnu/java/locale/Calendar_en.java: New file.
3500         * gnu/java/locale/Calendar_nl.java: New file.
3501         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
3502         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
3503         serialization compatibility.
3504         (scale): Made private.
3505         (serialVersionUID): New field.
3506         * java/math/BigInteger.java (ival): Made transient.
3507         (words): Made transient.
3508         (bitCount): New serialization field.
3509         (bitLength): Ditto.
3510         (firstNonzeroByteNum): Ditto.
3511         (lowestSetBit): Ditto.
3512         (magnitude): Ditto.
3513         (signum): Ditto.
3514         (serialVersionUID): New field.
3515         (readObject): New method.
3516         (writeObject): New method.
3517         * java/util/BitSet.java (serialVersionUID): New field.
3518         * java/util/Calendar.java: Replaced with Classpath file.
3519         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
3520         of getDefault() for TimeZone or Locale instead of passing nulls.
3521         * java/util/Locale.java (serialVersionUID): New field.
3522         (writeObject): New method.
3523         (readObject): New method.
3524         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
3525
3526 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
3527
3528         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
3529         (core_java_source_files): Put java.lang, java.io, and java.util here.
3530         (ordinary_java_source_files): Order so that core_java_source_files are
3531         built first.
3532         (java_source_files): Reorder so that special_java_source_files are
3533         built first.
3534         * configure.in: Don't pass -I flag to gcj.
3535         * Makefile.in: Rebuilt.
3536         * configure: Rebuilt.
3537
3538 2000-10-25  Tom Tromey  <tromey@cygnus.com>
3539
3540         * Makefile.in: Rebuilt.
3541         * Makefile.am (install-exec-hook): New target.
3542
3543 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
3544
3545         * java/util/EventObject.java: Merged from classpath.
3546
3547         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
3548         with stack dump.
3549
3550 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3551
3552         * java/util/AbstractSet.java (equals): Re-installed original code.
3553
3554 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3555
3556         * Makefile.am: Added rules for libgcjx library.
3557         * Makefile.in: Rebuilt.
3558         * configure.in: Added check for X.
3559         * configure: Rebuilt.
3560         * gnu/awt/LightweightRedirector.java: New file.
3561         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
3562         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
3563         * gnu/awt/j2d/Graphics2DImpl.java: New file.
3564         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
3565         * gnu/awt/j2d/MappedRaster.java: New file.
3566         * gnu/awt/xlib/XCanvasPeer.java: New file.
3567         * gnu/awt/xlib/XEventLoop.java: New file.
3568         * gnu/awt/xlib/XEventQueue.java: New file.
3569         * gnu/awt/xlib/XFontMetrics.java: New file.
3570         * gnu/awt/xlib/XFramePeer.java: New file.
3571         * gnu/awt/xlib/XGraphics.java: New file.
3572         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
3573         * gnu/awt/xlib/XPanelPeer.java: New file.
3574         * gnu/awt/xlib/XToolkit.java: New file.
3575         * gnu/gcj/xlib/Clip.java: New file.
3576         * gnu/gcj/xlib/Colormap.java: New file.
3577         * gnu/gcj/xlib/Display.java: New file.
3578         * gnu/gcj/xlib/Drawable.java: New file.
3579         * gnu/gcj/xlib/Font.java: New file.
3580         * gnu/gcj/xlib/GC.java: New file.
3581         * gnu/gcj/xlib/Pixmap.java: New file.
3582         * gnu/gcj/xlib/Screen.java: New file.
3583         * gnu/gcj/xlib/Visual.java: New file.
3584         * gnu/gcj/xlib/WMSizeHints.java: New file.
3585         * gnu/gcj/xlib/Window.java: New file.
3586         * gnu/gcj/xlib/WindowAttributes.java: New file.
3587         * gnu/gcj/xlib/XAnyEvent.java: New file.
3588         * gnu/gcj/xlib/XButtonEvent.java: New file.
3589         * gnu/gcj/xlib/XColor.java: New file.
3590         * gnu/gcj/xlib/XConfigureEvent.java: New file.
3591         * gnu/gcj/xlib/XConnectException.java: New file.
3592         * gnu/gcj/xlib/XEvent.java: New file.
3593         * gnu/gcj/xlib/XException.java: New file.
3594         * gnu/gcj/xlib/XExposeEvent.java: New file.
3595         * gnu/gcj/xlib/XID.java: New file.
3596         * gnu/gcj/xlib/XImage.java: New file.
3597         * gnu/gcj/xlib/XUnmapEvent.java: New file.
3598         * gnu/gcj/xlib/natClip.cc: New file.
3599         * gnu/gcj/xlib/natColormap.cc: New file.
3600         * gnu/gcj/xlib/natDisplay.cc: New file.
3601         * gnu/gcj/xlib/natDrawable.cc: New file.
3602         * gnu/gcj/xlib/natFont.cc: New file.
3603         * gnu/gcj/xlib/natGC.cc: New file.
3604         * gnu/gcj/xlib/natPixmap.cc: New file.
3605         * gnu/gcj/xlib/natScreen.cc: New file.
3606         * gnu/gcj/xlib/natVisual.cc: New file.
3607         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
3608         * gnu/gcj/xlib/natWindow.cc: New file.
3609         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
3610         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
3611         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
3612         * gnu/gcj/xlib/natXColor.cc: New file.
3613         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
3614         * gnu/gcj/xlib/natXException.cc: New file.
3615         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
3616         * gnu/gcj/xlib/natXImage.cc: New file.
3617         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
3618         * java/awt/EventDispatchThread.java: Start thead on creation.
3619
3620 2000-10-20  Tom Tromey  <tromey@cygnus.com>
3621
3622         From Arno J. Klaassen:
3623         * interpret.cc: Include <stdlib.h> for alloca.
3624         * defineclass.cc: Include <stdlib.h> for alloca.
3625
3626         * Makefile.in: Rebuilt.
3627         * Makefile.am: Include deps.mk.
3628         (GCJCOMPILE): Added -MD, -MT, and -MF.
3629         ($(javao_files)): Don't depend on libgcj.zip.
3630         (all-recursive): New target.
3631         (%.lo:%.cc): Do dependency tracking.
3632         ($(nat_headers)): Don't depend on libgcj.zip.
3633         * configure: Rebuilt.
3634         * configure.in: Make .d files and deps.mk.
3635
3636 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
3637
3638         * exception.cc: Don't #include "exception".
3639         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
3640
3641         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
3642         * Makefile.in: Updated.
3643
3644 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
3645
3646         * java/awt/peer/ChoicePeer.java (addItem): Removed.
3647         * java/awt/peer/ComponentPeer.java (disable): Removed.
3648         (enable): Removed.
3649         (hide): Removed.
3650         (minimumSize): Removed.
3651         (preferredSize): Removed.
3652         (reshape): Removed.
3653         (show): Removed.
3654         * java/awt/peer/ListPeer.java (addItem): Removed.
3655         (clear): Removed.
3656         (minimumSize): Removed.
3657         (preferredSize): Removed.
3658         (setMultipleSelections): Removed.
3659         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
3660         (remove): Renamed from removeMenu.
3661         * java/awt/peer/MenuItemPeer.java (disable): Removed.
3662         (enable): Removed.
3663         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
3664         (remove): Renamed from removeItem.
3665         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
3666         (getMinimumSize): Removed.
3667         (getPreferredSize): Removed.
3668         (minimumSize): Removed.
3669         (preferredSize): Removed.
3670         (replaceText): Removed.
3671         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
3672         (preferredSize): Removed.
3673         (getMinimumSize): Removed.
3674         (getPreferredSize): Removed.
3675         (setEchoCharacter): Removed.
3676
3677 2000-10-10  Warren Levy  <warrenl@cygnus.com>
3678
3679         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
3680         * java/sql/Date.java (serialVersionUID): New field.
3681         * java/sql/Time.java (serialVersionUID): New field.
3682         * java/sql/Timestamp.java (serialVersionUID): New field.
3683         * java/text/ChoiceFormat.java (serialVersionUID): New field.
3684         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
3685         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
3686         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
3687         (readObject): New serialization method.
3688         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
3689         (serialVersionOnStream): New field.
3690         (readObject): New serialization method.
3691         (getMonetaryDecimalSeparator): New method.
3692         (setMonetaryDecimalSeparator): New method.
3693         * java/text/NumberFormat.java (maxFractionDigits): New field.
3694         (maxIntegerDigits): New field.
3695         (minFractionDigits): New field.
3696         (minIntegerDigits): New field.
3697         (serialVersionOnStream): New field.
3698         (serialVersionUID): New field.
3699         (readObject): New serialization method.
3700         (writeObject): New serialization method.
3701         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
3702         (serialVersionOnStream): New field.
3703         (serialVersionUID): New field.
3704         (readObject): New serialization method.
3705
3706 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
3707
3708         * configure.in (GCJ): Avoid bogus error message when looking for
3709         (and not finding) gcj in the build tree.
3710         * configure: Rebuilt.
3711
3712 2000-10-09  Tom Tromey  <tromey@cygnus.com>
3713
3714         * configure: Rebuilt.
3715         * configure.in: Include sys/types.h when checking for socklen_t.
3716         From Arno J. Klaassen.
3717
3718 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
3719
3720         * include/jvm.h: Enable __builtin_expect().
3721
3722         * name-finder.cc (lookup): Don't trust dladdr() if the address is from
3723         the main program. Fix for PR libgcj/341.
3724
3725 2000-10-07  Tom Tromey  <tromey@cygnus.com>
3726
3727         * java/util/Properties.java: Merged with Classpath version.
3728
3729 2000-10-05  Tom Tromey  <tromey@cygnus.com>
3730
3731         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
3732         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
3733         * java/lang/Class.h (Object): Added `class$' field.
3734         * java/lang/Object.h (Object): Added `class$' field.
3735         * defineclass.cc (ClassClass): Use `class$' form.
3736         (ClassObject): Likewise.
3737         * resolve.cc (ClassObject): Use `class$' form.
3738         (ObjectClass): Likewise.
3739         * interpret.cc (ClassError): Removed.
3740         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
3741         `class$' form.
3742         (IntegerClass): Likewise.
3743         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
3744         form.
3745         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
3746         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
3747         SerializableClass): Likewise.
3748         Include Serializable.h, Cloneable.h.
3749         * java/lang/natSystem.cc (SystemClass): Removed.
3750         (init_properties): Use `class$' form.
3751         * java/lang/natObject.cc (CloneableClass): Removed.
3752         (clone): Use `class$' form.
3753         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
3754         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
3755         ConstructorClass): Likewise.
3756         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
3757         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
3758         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
3759         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
3760         form.
3761         (ClassClass): Likewise.
3762         * include/jvm.h (StringClass): Use `class$' form.
3763         * prims.cc (ObjectClass): Removed.
3764         (_Jv_RunMain): Use `class$' form.
3765         (_Jv_AllocObject): Likewise.
3766         * jni.cc (ClassClass): Use `class$' form.
3767         (ThrowableClass): Likewise.
3768         (ObjectClass): Likewise.
3769         (MethodClass): Likewise.
3770         (ThreadGroupClass): Likewise.
3771         (NativeThreadClass): Likewise.
3772         * boehm.cc (ObjectClass): Removed.
3773         (ClassClass): Removed.
3774         (_Jv_MarkObj): Use `class$' form.
3775         * gcj/field.h (JvFieldIsRef): Use `class$' form.
3776         Include RawData.h.
3777
3778 2000-10-05  Warren Levy  <warrenl@cygnus.com>
3779
3780         * Makefile.am: Removed java/io/Replaceable.java and
3781         java/io/Resolvable.java.
3782         * Makefile.in: Rebuilt.
3783         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
3784         namespace.
3785         * java/io/ObjectInputStream.java (processResolution): Fixed typo
3786         in method name.
3787         (processResolution): Handle readResolve method via reflection with
3788         removal of Resolvable interface.
3789         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
3790         method via reflection with removal of Replaceable interface.
3791         * java/io/Replaceable.java: Removed.
3792         * java/io/Resolvable.java: Removed.
3793         * java/security/Key.java (serialVersionUID): New field.
3794         * java/security/Provider.java (serialVersionUID): New field.
3795         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
3796         New field.
3797         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
3798         New field.
3799         * java/sql/DataTruncation.java (serialVersionUID): New field.
3800         * java/sql/SQLException.java (serialVersionUID): New field.
3801         * java/sql/SQLWarning.java (serialVersionUID): New field.
3802         * java/util/Date.java (serialVersionUID): New field.
3803         (millis): Made transient.
3804         (readObject): New method.
3805         (writeObject): New method.
3806
3807 2000-10-05  Tom Tromey  <tromey@cygnus.com>
3808
3809         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
3810
3811 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
3812
3813         * prims.cc (_Jv_argv, _Jv_argc): New fields.
3814         (JvRunMain): Set _Jv_argv and _Jv_argc.
3815         * java/awt/Component.java: Minor fixes.
3816         * java/awt/Image.java (UndefinedProperty): Initialize final field.
3817         * java/awt/Toolkit.java (systemEventQueue): Removed.
3818         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
3819         * java/awt/Window.java (getToolkit): Don't call super.
3820         * java/awt/image/BufferedImage.java: Fix definate assignment errors.
3821         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
3822         * gnu/awt/gtk/GtkComponentPeer.java: New file.
3823         * gnu/awt/gtk/GtkContainerPeer.java: New file.
3824         * gnu/awt/gtk/GtkFramePeer.java: New file.
3825         * gnu/awt/gtk/GtkMainThread.java: New file.
3826         * gnu/awt/gtk/GtkToolkit.java: New file.
3827         * gnu/awt/gtk/GtkWindowPeer.java: New file.
3828         * gnu/awt/gtk/gtkcommon.cc: New file.
3829         * gnu/awt/gtk/gtkcommon.h: New file.
3830         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
3831         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
3832         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
3833         * gnu/awt/gtk/natGtkMainThread.cc: New file.
3834         * gnu/awt/gtk/natGtkToolkit.cc: New file.
3835         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
3836
3837 2000-09-30  Tom Tromey  <tromey@cygnus.com>
3838
3839         * posix-threads.cc (_Jv_CondWait): Check to see if we are
3840         interrupted before modifying the cv's wait set.
3841         From Corey Minyard.
3842
3843 2000-09-30  Hans Boehm  <boehm@acm.org>
3844             Bryce McKinlay  <bryce@albatross.co.nz>
3845
3846         Implement bitmap descriptor based marking for Boehm GC.
3847
3848         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
3849         * configure: Rebuilt.
3850         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
3851         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
3852         method get_finalizer().
3853         (struct _Jv_ArrayVTable): Ditto. Declare method array with
3854         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
3855         (_Jv_AllocObj): Add new jclass parameter.
3856         (_Jv_AllocArray): Ditto.
3857         (_Jv_BuildGCDescr): New prototype.
3858         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
3859         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
3860         get_finalizer() instead of direct finalizer vtable offset.
3861         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
3862         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
3863         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
3864         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
3865         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
3866         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
3867         (_Jv_DetermineVTableIndex): Ditto.
3868         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
3869         calculations to account for new gc_descr field.
3870         * boehm.cc: #include gc_gcj.h.
3871         (obj_kind_x, obj_free_list): `#if 0'-ed away.
3872         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
3873         New commentary from HB. Mark the classes vtable.
3874         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
3875         (GC_DEFAULT_DESCR): New #define.
3876         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
3877         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
3878         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
3879         scan conservativly if size is less than min_heap_addr. Set vtable
3880         pointer of new object before returning.
3881         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
3882         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
3883         allocation for obj_kind_x.
3884         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
3885         (_Jv_AllocObj): Set vtable on returned object.
3886         (_Jv_AllocArray): Ditto.
3887         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
3888         (_Jv_NewPrimArray): Ditto.
3889         (_Jv_AllocObj): Declare as a friend.
3890         (_Jv_AllocArray): Ditto.
3891         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
3892         from &ObjectClass into new array class. Remove offset-by-one
3893         adjustments from `method' size calculations to account for gc_descr
3894         field.
3895
3896 2000-09-26  Tom Tromey  <tromey@cygnus.com>
3897
3898         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
3899         `remove', not `add'.
3900
3901 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3902
3903         * java/lang/natSystem.cc (file_encoding): Added return statement.
3904
3905 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
3906
3907         * Makefile.am: Re-work shell commands that exceeded command-line
3908         length limits.
3909         * Makefile.in: Rebuilt.
3910
3911         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
3912
3913         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
3914         * java/lang/natDouble.cc: Likewise.
3915         * java/lang/reflect/natMethod.cc: Likewise.
3916         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
3917
3918 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
3919
3920         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
3921         libgcjdata.a.
3922         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
3923         * acinclude.m4: Arrange for automake to not bring in a new
3924         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
3925         * Makefile.am: Leave it up to automake to subst GCJ.
3926         * aclocal.m4, configure, Makefile.in: Rebuilt.
3927
3928 2000-09-13  Tom Tromey  <tromey@cygnus.com>
3929
3930         * java/lang/reflect/natArray.cc (BooleanClass): New define.
3931         (get): Ensure Boolean class is initialized.
3932         * java/lang/reflect/natField.cc (BooleanClass): New define.
3933         (get): Ensure Boolean class is initialized.
3934
3935 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
3936
3937         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
3938         Initialize with anonymous class.
3939         (compareToIgnoreCase): New method.
3940
3941         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
3942         (uncaughtException): Set had_uncaught_exception.
3943         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
3944         exit with error status if set.
3945         (_Jv_RunMain): Ditto.
3946
3947 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
3948
3949         * configure: Rebuilt with new ../libtool.m4.
3950
3951 2000-09-11  Tom Tromey  <tromey@cygnus.com>
3952
3953         * java/lang/reflect/Field.java (toString): Don't rely on
3954         Class.toString.
3955
3956 2000-09-08  Tom Tromey  <tromey@cygnus.com>
3957
3958         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
3959         default decoder use iconv.
3960         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
3961         Let default encoder use iconv.
3962         * configure: Rebuilt.
3963         * configure.in: Check for nl_langinfo and <langinfo.h>.
3964         * java/lang/natSystem.cc (file_encoding): New function.
3965         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
3966
3967 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
3968
3969         * acinclude.m4: Simplify the tests for CC and CXX.
3970         * aclocal.m4, configure: Rebuilt.
3971
3972         * acinclude.m4: Include libtool macros from the source tree.
3973         * aclocal.m4, configure: Rebuilt.
3974
3975 2000-09-08  Warren Levy  <warrenl@cygnus.com>
3976
3977         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
3978         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
3979         * java/io/File.java (writeObject): Added.
3980         (readObject): Added.
3981         (serialVersionUID): Added.
3982         * java/io/ObjectOutputStream.java (writeObject): Initialized
3983         fieldsAlreadyWritten before recursion rather than after.
3984         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
3985         * java/io/OptionalDataException.java (serialVersionUID): Added.
3986         (OptionalDataException): Made package private.