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