OSDN Git Service

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