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