OSDN Git Service

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