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