OSDN Git Service

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