OSDN Git Service

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