OSDN Git Service

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