OSDN Git Service

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