Method.java (getExceptionTypes): Call getType() to initialize if exception_types...
[platform/upstream/gcc.git] / libjava / ChangeLog
1 2001-03-22  Bryce McKinlay  <bryce@albatross.co.nz>
2
3         * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
4         initialize if exception_types is null.
5         * java/lang/reflect/Constructor.java: Likewise.
6         * java/lang/reflect/natConstructor.cc (getType): Initialize 
7         exception_types to an empty Object array.
8
9 2001-03-21  Tom Tromey  <tromey@redhat.com>
10
11         * configure: Rebuilt.
12         * configure.in (GCJFLAGS): Subst.
13         * Makefile.in: Rebuilt.
14         * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
15         (gij_LDFLAGS): Likewise.
16         (JC1FLAGS): Added GCJFLAGS and removed -g.
17
18         * java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
19         read/write case.  Fixes PR libgcj/2338.
20
21 2001-03-20  Warren Levy  <warrenl@redhat.com>
22
23         * java/util/TimeZone.java: Sync up with Classpath.  Includes new
24         and corrected SimpleTimeZone's for the timezones hash table.
25
26 2001-03-19  Per Bothner  <per@bothner.com>
27
28         * java/net/URLStreamHandler.java (parseURL):  Fix bug which would
29         "canonicalize" "../../xxx" to "/xxx".
30
31 2001-03-19  Mark Wielaard <mark@klomp.org>
32
33         * java/util/ArrayList.java: Remove RCS keywords from comments
34         * java/util/BasicMapEntry.java: idem
35         * java/util/Dictionary.java: idem
36         * java/util/HashSet.java: idem
37
38         * java/util/EventObject.java: reindent
39         * java/util/Properties.java: idem
40         * java/util/SortedMap.java: idem
41
42         * java/util/Enumeration.java: Merge with Classpath
43         * java/util/EventListener.java: idem
44         * java/util/Observable.java: idem
45         * java/util/Observer.java: idem
46         * java/util/Stack.java: idem
47
48 2001-03-17  Tom Tromey  <tromey@redhat.com>
49
50         * java/lang/natString.cc (rehash): Don't bother with memset;
51         _Jv_AllocBytes returns zero'd memory.  Use _Jv_AllocBytesChecked.
52         Use UNMASK_PTR.
53         (UNMASK_PTR): New macro.
54         (intern): Unmask pointer before returning it.  Register finalizer
55         for the string.
56         (unintern): Handle case where 
57         (MASK_PTR): New macro.
58         (PTR_MAKSED): Likewise.
59         (_Jv_NewStringUtf8Const): Use UNMASK_PTR.
60
61 2001-03-01  Andrew Haley  <aph@redhat.com>
62
63         * java/lang/natThrowable.cc (printRawStackTrace): Copy the
64         stackTrace buffer to a correctly aligned pointer array.
65  
66 2001-03-12  Bryce McKinlay  <bryce@albatross.co.nz>
67
68         * java/lang/Runtime.java (_exit): Declare new package-private native.
69         * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but
70         without a security manager check.
71         (exit): Call _exit after security check.
72         * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime
73         "naturally".
74         * java/lang/System.java (setSecurityManager): If a security manager
75         is already in place, call checkPermission. 
76         * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace()
77         throws an exception, try to deal with it gracefully.
78         * java/lang/ExceptionInInitializerError.java (printStackTrace):
79         Only try to print the subordinate stack trace if "exception" is set.
80         Print our class name first.
81
82 2001-03-08  Tom Tromey  <tromey@redhat.com>
83
84         * java/io/ObjectStreamClass.java (setUID): Don't write interface
85         info for array classes.
86         Fixes PR libgcj/1971.
87
88 2001-03-06  Bryce McKinlay  <bryce@albatross.co.nz>
89
90         * java/util/TreeSet.java (writeObject): Use a for-loop instead of
91         Iterator.hasNext().
92
93 2001-03-05  Jochen Hoenicke  <jochen@gnu.org>
94
95         * java/util/TreeMap.java (writeObject): Use defaultWriteObject()
96         instead of the new JDK1.2 API.  This is simpler and makes 
97         back-porting the classes to JDK1.1 trivial.
98         (readObject): likewise.
99         
100 2001-03-01  Per Bothner  <per@bothner.com>
101
102         Changes merged from Kawa's gnu.math.
103         * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
104         (rshift(int[],int[],int,int):  Removed - not needed.
105         (gcd):  Use rshift0 rather than rshift.
106         * java/math/BigInteger.java (setShiftRight):  Likewise.
107         (divide):  Simplify by using rshift0.
108         (divide):  Zero-extend results if high-order bit set.
109
110 2001-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
111
112         * libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static
113         linking.
114
115 2001-02-23  Per Bothner  <per@bothner.com>
116
117         Change to sometimes include class name in ClassFormatError message.
118         * defineclass.cc (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature,
119         _Jv_VerifyIdentifier, _Jv_VerifyClassName (two overlods)):  Return
120         boolean instead of throwing ClassFormatError on failure.
121         (throw_class_format_error):  Change static function to method.
122         (_Jv_ClassReader):  New inline methods verify_identifier,
123         two overloads of verify_classname, verify_field_signature, and
124         verify_method_signature
125         * include/java-interp.h:  Update declarations to return bool.
126         * java/lang/natClassLoader.cc (defineClass0):  Explicitly throw
127         ClassFormatError since _Jv_VerifyClassName now returns bool.
128
129 2001-02-23  Per Bothner  <per@bothner.com>
130
131         * java/lang/Throwable.java (CPlusPlusDemangler):  Pass -s java to
132         c++filt to select java-style output.
133
134 2001-02-22  Bryce McKinlay  <bryce@albatross.co.nz>
135
136         Fix for PR java/2040:
137         * java/util/HashMap.java (HashMap): Don't throw exception for 
138         loadFactor > 1. Add exception messages.
139         * java/util/Hashtable.java (Hashtable): Likewise.
140
141 2001-02-21  Bryce McKinlay  <bryce@albatross.co.nz>
142
143         Disable libgcjx by default.
144         * configure.in: Add support for --enable-java-awt configure option. 
145         Use --enable-java-awt=xlib to build the xlib peers (libgcjx).
146         * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X.
147         * Makefile.in: Rebuilt.
148         * configure: Rebuilt.
149
150 2001-02-20  Tom Tromey  <tromey@redhat.com>
151
152         * java/io/PipedWriter.java (flush): Throw exception if stream
153         closed.
154         * java/io/OutputStreamWriter.java (write): Throw exception if
155         stream closed.
156         (writeChars): Don't throw exception if stream closed.
157         * java/io/CharArrayWriter.java (closed): New field.
158         (close): Set it.
159         (flush): Throw exception if stream closed.
160         (reset): Synchronize on correct lock.  Allow stream to be
161         reopened.
162         (toCharArray, toString, writeTo): Synchronize.
163         (write): Throwe exception if stream closed.
164         * java/io/BufferedWriter.java (close): Clear `buffer'.
165         (flush): Throw IOException if stream is closed.
166         (write): Likewise.
167
168 2001-02-16  Tom Tromey  <tromey@cygnus.com>
169
170         * java/lang/ThreadGroup.java (activeCount): Only include threads
171         which are alive.
172         (enumerate): Likewise.
173
174 2001-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
175
176         * java/lang/Integer.java (getInteger): Return default argument if
177         property is not set. Don't call decode with null argument.
178         * java/lang/Long.java (getLong): Likewise.
179
180         * java/io/CharArrayReader.java (CharArrayReader): Throw 
181         IllegalArgumentException if constructor arguments are illegal.
182         (ready): Return false if no more characters can be read.
183         * java/io/ByteArrayInputStream.java (ByteArrayInputStream): Likewise.
184
185 2001-02-17  Mark Wielaard <mark@klomp.org>
186
187         * java/util/TimerTask.java: New version from Classpath.
188
189 2001-02-17  Mark Wielaard <mark@klomp.org>
190
191         Remerge with Classpath
192         (changes by Bryce McKinlay  <bryce@albatross.co.nz>)
193         * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
194         (readByte): Use convertToByte().
195         (readChar): Use convertToChar().
196         (readInt): Use convertToInt().
197         (readLong): Use convertToLong().
198         (readShort): Use convertToShort().
199         (readUnsignedByte): Use convertToUnsignedByte().
200         (readUnsignedShort): Use convertToUnsignedShort().
201         (readUTF): Use convertToUTF().
202
203         (convertToBoolean): Resurrected.
204         (convertToByte): Ditto.
205         (convertToChar): Ditto.
206         (convertToInt): Ditto.
207         (convertToLong): Ditto.
208         (convertToShort): Ditto.
209         (convertToUnsignedByte): Ditto.
210         (convertToUnsignedShort): Ditto.
211         (convertToUTF): Ditto.
212
213 2001-02-17  Mark Wielaard <mark@klomp.org>
214
215         * HACKING: new file
216
217 2001-02-17  Mark Wielaard <mark@klomp.org>
218
219         * java/io/DataInputStream.java: update copyright notice
220         * java/io/PrintWriter.java: idem
221         * java/io/Reader.java: idem
222         * java/io/StreamTokenizer.java: idem
223         * java/io/StringReader.java: idem
224         * java/lang/reflect/ReflectPermission.java: idem
225
226 2001-02-16  Bryce McKinlay  <bryce@albatross.co.nz>
227
228         * java/util/TreeSet.java (clone): Made subclass safe, use 
229         super.clone(), not new.
230         * java/util/TreeMap.java (clone): Likewise.
231         
232         * java/util/TreeMap.java (nil): Made non-final.
233         (clone): Create new nil node for copy.
234         
235         * java/util/HashSet.java (clone): Made subclass safe, use 
236         super.clone(), not new.
237
238 2001-02-14  Andrew Haley  <aph@redhat.com>
239
240         * include/i386-signal.h (INIT_SEGV): Use a direct system call to
241         set the handler.
242
243 2001-02-15  Anthony Green  <green@redhat.com>
244
245         * defineclass.cc: Don't include alloca.h.
246         (prepare_pool_entry): Convert alloca to __builtin_alloca.
247         * interpret.cc (run_normal): Ditto.
248         (continue1): Ditto.
249         * java/lang/natDouble.cc (parseDouble): Ditto.
250
251 2001-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
252
253         * java/util/TreeSet.java (clone): Call TreeMap.clone(), not 
254         Object.clone().
255         * java/util/Collections.java (ReverseComparator): New static class.
256         (reverseOrder): Return static instance of ReverseComparator.
257         
258         * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
259         * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call 
260         Rectangle.clone(), not Object.clone().
261
262         * java/util/HashSet.java (clone): Remove try/catch.
263         
264         * java/util/AbstractSequentialList.java: Synchronize with Classpath.
265         * java/util/Collection.java: Likewise.
266         * java/util/Comparator.java: Likewise.
267         * java/util/Dictionary.java: Likewise.
268         * java/util/Iterator.java: Likewise.
269         * java/util/ListIterator.java: Likewise.
270         * java/util/Map.java: Likewise.
271         * java/util/Set.java: Likewise.
272
273 2001-02-14  Bryce McKinlay  <bryce@albatross.co.nz>
274
275         * java/util/TreeMap.java: New file.
276         * java/util/TreeSet.java: New file.
277         * Makefile.am: Add TreeMap and TreeSet. Enable WeakHashMap.
278         * Makefile.in: Rebuilt.
279         * java/util/HashSet.java (clone): Use constructor instead of calling
280         clone on itself.
281         * java/util/SortedSet.java: Sync with classpath.
282         * java/util/HashMap.java (hash): Use if statement instead of ternary,
283         for clarity.
284         
285         * java/lang/natClass.cc (getSignature): Don't try to dereference 
286         param_types if it is null. Instead, take this to mean "no parameters".
287         * java/lang/TreeMap.java (TreeIterator.next): Throw 
288         NoSuchElementException in preference to ConcurrentModificationException.
289         (TreeIterator.remove): Throw IllegalStateException in preference to 
290         ConcurrentModificationException.
291         (SubMap.firstKey): Do a better check for empty SubMap, and if it is,
292         throw a NoSuchElementException.
293         (SubMap.lastKey): Likewise.
294
295 2001-02-13  Tom Tromey  <tromey@redhat.com>
296
297         * java/io/PipedReader.java (ready): Throw IOException if pipe
298         closed.
299         * java/io/FilterReader.java (close): Don't clear `in'.
300         * java/io/CharArrayReader.java (mark): Throw IOException if stream
301         closed.
302         (read, ready, reset, skip): Added exception message.
303         * java/io/BufferedReader.java (mark, reset, ready, read, skip):
304         Perform checkStatus check inside synchronized block.
305
306 2001-02-13  Tom Tromey  <tromey@redhat.com>
307
308         * gnu/awt/j2d/AbstractGraphicsState.java (clone): Made public.
309
310 2001-02-13  Tom Tromey  <tromey@redhat.com>
311
312         Fix for PR libgcj/1351:
313         * posix.cc (_Jv_select): Throw InterruptedIOException if thread is
314         interrupted.
315         Include Thread.h and InterruptedIOException.h.
316
317 2001-02-13  Bryce McKinlay  <bryce@albatross.co.nz>
318
319         * java/io/BlockDataException.java: Removed.
320         * java/io/ObjectInputStream.java (readObject): Throw 
321         StreamCorruptedException, not BlockDataException.
322         * Makefile.am: Remove BlockDataException.
323         * Makefile.in: Rebuild.
324
325 2001-02-12  Jeff Sturm  <jeff.sturm@commerceone.com>
326             Tom Tromey  <tromey@redhat.com>
327
328         * interpret.cc (continue1): [insn_invokevirtual] Do an explicit
329         null pointer check.
330
331 2001-02-09  Tom Tromey  <tromey@redhat.com>
332
333         * java/util/Timer.java: New version from Classpath.
334
335 2001-02-09  Bryce McKinlay  <bryce@albatross.co.nz>
336
337         * java/lang/Double.java (doubleToRawLongBits): Now native.
338         * java/lang/Float.java (floatToRawIntBits): Likewise.
339         * java/lang/natDouble.cc (doubleToRawLongBits): New method.
340         * java/lang/natFloat.cc (floatToRawIntBits): Likewise.
341
342 2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>
343
344         * java/io/File.java (java.net): Imported.
345         (getAbsoluteFile): Added.
346         (getCanonicalPath): Likewise.
347         (toURL): Likewise.
348
349 2001-02-08  Bryce McKinlay  <bryce@albatross.co.nz>
350
351         * java/lang/Byte.java: Remove redundant instanceof and null checks.
352         * java/lang/Integer.java: Likewise.
353         * java/lang/Long.java: Likewise.
354         * java/lang/Short.java: Likewise.
355         * java/lang/Double.java: Likewise.
356         (doubleToRawLongBits): New method.
357         * java/lang/Float.java: As above.
358         (floatToRawIntBits): New method.
359
360         * java/io/OutputStreamWriter.java: (flush, writeChars): Throw 
361         IOException if stream closed.
362
363 2001-02-08  Tom Tromey  <tromey@redhat.com>
364
365         * java/lang/Float.java (parseFloat): New method.
366
367 2001-02-08  Tom Tromey  <tromey@redhat.com>
368
369         From paul@dawa.demon.co.uk.  Fix for PR libgcj/1913:
370         * java/io/InputStreamReader.java (ready, read): Throw IOException
371         if stream has been closed.
372
373 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
374
375         * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc:
376         Change sources.redhat.com and sourceware.cygnus.com references to
377         gcc.gnu.org.
378
379 2001-02-07  Tom Tromey  <tromey@redhat.com>
380
381         Fix for PR libgcj/1906:
382         * java/text/MessageFormat.java (setLocale): Use named class
383         literals.
384         (forName): Removed.
385         (format(Object,StringBuffer,FieldPosition)): Special case if
386         argument is an Object[].
387
388 2001-02-07  Bryce McKinlay  <bryce@albatross.co.nz>
389
390         * java/util/Arrays.java: Removed "cmp" methods.
391         (qsort): Don't use "cmp".
392         (med3): Likewise.
393
394 2001-02-07  Mark Benvenuto  <mcb54@columbia.edu>
395
396         * java/util/Arrays.java (qsort): Handle N value of 7 with insertion
397         sort. Fix for PR java/1895.
398
399 2001-02-03  Jeff Sturm  <jeff.sturm@commerceone.com>
400
401         * configure.host: Use sjlj-exceptions for Alpha.
402
403 2001-02-03  Bryce McKinlay  <bryce@albatross.co.nz>
404
405         * libgcj.spec.in: Don't force static libgcc into the executable.
406         * configure.in (FORCELIBGCCSPEC): Removed.
407         * configure: Rebuilt.
408
409 2001-01-31  Tom Tromey  <tromey@redhat.com>
410
411         * Makefile.in: Rebuilt.
412         * Makefile.am (LTCXXCOMPILE): New macro.
413
414 2001-01-26  Andrew Haley  <aph@redhat.com>
415
416         (INIT_FPE): Use a direct system call to set the handler.
417         
418 2001-01-27  Richard Henderson  <rth@redhat.com>
419
420         * configure.host (alpha*-*) [libgcj_flags]: Add -mieee.
421
422 2001-01-27  Tom Tromey  <tromey@redhat.com>
423
424         * jni.cc (_Jv_JNIFunctions): Added comment for each entry in
425         native interface structure.
426
427 2001-01-27  Bryce McKinlay  <bryce@albatross.co.nz>
428
429         * java/io/ObjectInputStream.java (read): AND byte with 0xff to make
430         result unsigned.
431         (read (byte[], int, int)): Only call readNextBlock() if the block 
432         buffer would actually be overrun. Increment blockDataPosition.
433         (callReadMethod): Propagate exceptions from invocation target.
434         * java/io/ObjectOutputStream.java (callWriteMethod): Propagate 
435         exceptions from invocation target.
436
437 2001-01-26  Tom Tromey  <tromey@redhat.com>
438
439         * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
440         to internal representation.
441         (_Jv_JNI_GetAnyFieldID): Likewise.  Also, only use
442         _Jv_FindClassFromSignature.
443
444 2001-01-26  Warren Levy  <warrenl@redhat.com>
445
446         * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
447         and timezone if they are available on the system.
448
449 2001-01-24  Tom Tromey  <tromey@redhat.com>
450
451         * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
452
453 2001-01-24  Tom Tromey  <tromey@redhat.com>
454
455         * Makefile.in: Rebuilt.
456         * Makefile.am (c_source_files): Added sf_fabs.c.
457         * java/lang/sf_fabs.c: New file.
458
459 2001-01-19  Warren Levy  <warrenl@redhat.com>
460
461         * java/text/SimpleDateFormat.java (format): Compute hour for cases
462         HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
463         correctly.  Adjust properly from 0-23 clock hour.
464
465 2001-01-17  Mark Wielaard  <mark@klomp.org>
466
467         * java/bean/Beans.java (instantiate): enable Applet code from Classpath
468
469 2001-01-17  Bryce McKinlay  <bryce@albatross.co.nz>
470
471         * java/lang/Class.h (isInterface): Move implementation from 
472         natClass.cc. Declare inline.
473         (Class): Add default constructor.
474         * java/lang/Object.h: Update comments.
475         * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to
476         initialize superclass, saving a call if super is already initialized.
477
478 2001-01-16  Alexandre Petit-Bianco  <apbianco@cygnus.com>
479
480         * prims.cc (init_prim_class): Deleted.
481         (DECLARE_PRIM_TYPE): Rewritten.
482         * java/lang/Class.h (stdio.h): Include removed.
483         (stddef.h): Included.
484         (java/lang/reflect/Modifier.h): Likewise.
485         (Class): Contructor now takes arguments, initializes fields.
486         (initializePrim): Prototype deleted.
487         * java/lang/natClass.cc (initializePrim): Deleted.
488
489 2001-01-16  Warren Levy  <warrenl@redhat.com>
490
491         * java/math/BigInteger.java: Update Copyright year.
492
493 2001-01-16  Hans Boehm  <hans_boehm@hp.com>
494
495         * java/math/BigInteger.java (setShiftRight): Only do negative shift
496         if count != 0.
497
498 2001-01-14  Mark Wielaard  <mark@klomp.org>
499         * java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)
500         (decode): Merge comments with Classpath, don't throw Exception
501
502 2001-01-12  Tom Tromey  <tromey@redhat.com>
503
504         * gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
505         Wrote.
506         (setCursor): Wrote.
507         Include Cursor.h.
508         * gnu/awt/gtk/natGtkLabelPeer.cc: New file.
509         * gnu/awt/gtk/natGtkButtonPeer.cc: New file.
510         * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
511         * gnu/awt/gtk/GtkLabelPeer.java: New file.
512         * gnu/awt/gtk/GtkButtonPeer.java: New file.
513
514         * java/lang/natSystem.cc: Include locale.h if it exists.
515         * configure: Rebuilt.
516         * configure.in: Check for locale.h.
517
518 2001-01-11  Tom Tromey  <tromey@redhat.com>
519
520         * java/awt/Cursor.java (Cursor(String)): Set type to custom.
521         (Cursor(int), getPredefinedCursor): Throw exception if argument
522         invalid.
523
524 2001-01-03  Tom Tromey  <tromey@redhat.com>
525
526         * gnu/awt/gtk/natGtkComponentPeer.cc (setCursor): Wrote.
527         (getLocationOnScreen): Wrote.
528
529 2001-01-11  Bryce McKinlay  <bryce@albatross.co.nz>
530
531         * Makefile.am: Re-enable dependencies.
532         * Makefile.in: Rebuilt.
533
534 2001-01-10  Warren Levy  <warrenl@redhat.com>
535
536         * java/math/BigDecimal.java (divide): Fixed comment.
537
538 2001-01-10  Warren Levy  <warrenl@redhat.com>
539
540         Fix for PR libgcj/1596:
541         * java/math/BigDecimal.java (divide): Check newScale for validity.
542         Ensure that BigInteger.pow() is called with a non-negative value.
543         (setScale (int)): New public method.
544         (setScale (int,int)): New public method.
545
546 2001-01-09  Oskar Liljeblad <osk@hem.passagen.se>
547
548         Fix for PR libgcj/1338:
549         * java/io/StreamTokenizer.java (nextToken): Handle // and /* before
550         commentChar.  Fixed typos in comments.
551
552 2001-01-08  Warren Levy  <warrenl@redhat.com>
553
554         Fix for PR libgcj/1411:
555         * Makefile.am: Removed java/util/natTimeZone.cc.
556         * Makefile.in: Rebuilt.
557         * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added
558         missing localized timezone names.
559         * java/lang/System.java (getDefaultTimeZoneId): New private method.
560         * java/lang/natSystem.cc (getSystemTimeZone): New private method.
561         (init_properties): Set user.timezone property.
562         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
563         default timezone names; removed non-standard ones.  Use standard
564         ID names per JCL.
565         * java/util/Date.java (toGMTString): Removed zoneGMT variable.
566         (UTC): Ditto.
567         * java/util/TimeZone.java: Add standard ID names per JCL; removed
568         non-standard ones.
569         (getDefaultTimeZoneId): Removed.
570         (zoneGMT): Removed.
571         * java/util/natTimeZone.cc: Removed.
572
573 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
574
575         * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
576         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
577         (_Jv_GetArrayClass): New inline function.
578         (arrayclass): New field.
579         * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
580         _Jv_GetArrayElementFromElementType. 
581         (_Jv_NewPrimArray): Ditto.
582         (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
583         "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
584         Set Modifier::ABSTRACT.
585         * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
586         (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void. 
587         Now synchronized. Array classes are now referenced from
588         elementClass->arrayclass. Don't use _Jv_FindClassInCache.
589         Set array classes' accessibility flags correctly. Optimize so that
590         all array classes share the same IDT.
591         * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
592         * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
593         * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
594         in superclasses from overwriting classes own fields.
595         (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
596         Modifier::isAbstract().
597         (null_idt): New static field.
598         (_Jv_PrepareConstantTimeTables): Optimize case where class implements
599         no interfaces.
600         (_Jv_IndexOf): Made inline.
601         * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
602
603 2001-01-08  Tom Tromey  <tromey@redhat.com>
604
605         Fix for PR java/1586:
606         * Makefile.in: Rebuilt.
607         * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies.
608
609 2001-01-08  Bryce McKinlay  <bryce@albatross.co.nz>
610
611         * Makefile.am: Use the new "-M -MF" option for generating dependencies
612         from the c++ compiler.
613         * Makefile.in: Rebuilt.
614
615 2001-01-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
616
617         All files with updated copyright.
618         * prims.cc (class _Jv_PrimClass): Removed.
619         (init_prim_class): New function.
620         (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces
621         `_Jv_PrimClass' in primitive type declarations. Assign to the
622         value returned by `init_prim_class.'
623         * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in
624         primitive type declarations.
625         (JvPrimClass): Cast to `jclass' removed.
626         * java/lang/Class.h (Class): New constructor.
627         (Class): New copy constructor.
628         (initializePrim): New prototype.
629         (_Jv_PrimClass): Field removed.
630         * java/lang/Object.h (struct _JvObjectPrefix): New virtuals
631         nacd_1 and nacd_2 (for compatibility with the new C++ ABI.)
632         (class java::lang::Object): `finalize' moved up front.
633         * java/lang/natClass.cc 
634         (isAssignableFrom): Turned outline.
635         (isInstance): Likewise.
636         (isInterface): Likewise, fixed indentation.
637         (initializePrim): New function.
638
639 2001-01-07  Anthony Green  <green@redhat.com>
640
641         * Makefile.am (texinfo): Add texinfo target for generating texinfo
642         documentation.
643         * Makefile.in: Rebuilt.
644
645         * scripts/TexinfoDoclet.java: New file.
646
647         * doc/java-applet.texi, doc/java-lang-reflect.texi,
648         doc/java-awt-color.texi, doc/java-lang.texi,
649         doc/java-awt-datatransfer.texi, doc/java-math.texi,
650         doc/java-awt-event.texi, doc/java-net.texi,
651         doc/java-awt-geom.texi, doc/java-security-spec.texi,
652         doc/java-awt-image.texi, doc/java-security.texi,
653         doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi,
654         doc/java-text.texi, doc/java-beans-beancontext.texi,
655         doc/java-util-jar.texi, doc/java-beans.texi,
656         doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi,
657         doc/java-lang-ref.texi: New files.
658
659 2001-01-07  Anthony Green  <green@redhat.com>
660
661         * java/net/URLConnection.java (setDoOutput): URLConnection's may
662         be used for both input and output, so don't clear doInput.
663
664         * java/lang/StringBuffer.java: Fix comments.
665
666 2001-01-06  Anthony Green  <green@redhat.com>
667
668         * java/beans/PropertyDescriptor.java: Fix comment.
669         * java/io/PushbackReader.java: Fix comment.
670         * java/io/ObjectStreamClass.java: Fix comment.
671         * java/io/DataInputStream.java: Fix comment.
672         * java/io/PipedInputStream.java: Fix comments.
673         * java/io/PipedReader.java: Fix comments.
674         * java/sql/DatabaseMetaData.java: Fix comments.
675
676 2001-01-06  Bryce McKinlay  <bryce@albatross.co.nz>
677
678         * java/io/PipedReader: Synchronize on "lock" instead of this.
679
680 2001-01-05  Bryce McKinlay  <bryce@albatross.co.nz>
681
682         * java/lang/Thread.java: Update comment.
683
684         * java/io/PipedInputStream: Rewrote to be simpler and more correct.
685         * java/io/PipedOutputStream: Updated to match new PipedInputStream.
686         * java/io/PipedReader: New implementation based on new 
687         PipedInputStream.
688         * java/io/PipedWriter: Updated to match new PipedReader.
689
690 2001-01-03  Tom Tromey  <tromey@redhat.com>
691
692         * java/awt/ScrollPane.java (setBlockIncrement): Throw error.
693         (getViewportSize): Insets include scrollbar size.
694         (doLayout): Finished.
695         (getScrollPosition): Wrote.
696         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed.
697
698 2001-01-02  Tom Tromey  <tromey@redhat.com>
699
700         * java/awt/ScrollPane.java: Wrote.
701         * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New
702         method.
703
704         * java/awt/Panel.java (Panel()): Fixed.
705
706         * java/awt/Component.java (isShowing): Return false if no peer
707         exists, and true if component is visible and no parent exists.
708         (getLocationOnScreen): Wrote.
709         (getPreferredSize): Removed FIXME comment.
710         (getMinimumSize): Likewise.
711         (getAlignmentX, getAlignmentY): Wrote.
712         (list): Wrote.
713         (requestFocus): Wrote.
714         (transferFocus): Wrote.
715         (findNextFocusComponent): New method.
716         (hasFocus()): Wrote.
717         (checkImage): Wrote.
718         (enableEvents): Call setEventMask on the peer.
719
720         * java/awt/Container.java (list): Use super.list() to print self.
721         (findNextFocusComponent): New method.
722         (setLayout): Call invalidate.
723         (findComponentAt): Wrote.
724
725 2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>
726
727         * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
728         the correct versions of various linuxthreads functions get linked.
729         * Makefile.in: Rebuilt.
730         * java/lang/natThread.cc (finalize_native): New static function. Call
731         _Jv_ThreadDestroyData.
732         (initialize_native): Register finalizer for "data".
733         * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
734         (_Jv_ThreadDestroyData): New prototype.
735         * include/win32-threads.h: Ditto.
736         * include/no-threads.h: Ditto.
737         * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
738         (_Jv_ThreadDestroyData): New function. Free native thread "data" and 
739         move mutex and condition variable destroy code from:
740         (really_start): ...here.
741         (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
742         * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
743         (_Jv_ThreadDestroyData): Implemented.
744         * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
745         (_Jv_AllocArray): Ditto.        
746         
747 2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>
748
749         * java/sql/DriverManager.java (getConnection): Don't set user/password
750         properties if null.
751
752 2000-12-27  Warren Levy  <warrenl@redhat.com>
753
754         Fix for PR libgcj/1358:
755         * java/lang/System.java: Update Copyright date properly.
756         * java/util/Calendar.java: Fix typo in comment.
757         (set): Set 24-hour clock hour instead of 12-hour clock hour.
758         * java/util/GregorianCalendar.java (GregorianCalendar): Properly
759         initialize times.  Spec says to set H:M:S values to zero only if
760         a date is given.
761         * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
762         needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
763         * java/util/natGregorianCalendar.cc (computeTime): Properly handle
764         timezones and GMT offsets, being careful to account for units of
765         milliseconds vs. seconds.
766
767 2000-12-28  Bryce McKinlay  <bryce@albatross.co.nz>
768
769         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
770         not be assigned to Object.
771
772         Fix for PR libgcj/1516:
773         * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
774         Add boolean entry.
775         (can_widen): Declared inline. Remove redundant checks for void 
776         arguments and char->short conversion. Add special case for boolean 
777         conversions.
778         (ffi_type): Declared inline.
779         (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
780
781 2000-12-26  Petter Reinholdtsen  <pere@hungry.com>
782
783         * java/sql/SQLWarning.java: Fixed typo in comment.
784
785 2000-12-26  Tom Tromey  <tromey@redhat.com>
786
787         * java/awt/MenuItem.java (paramString): Now protected.
788
789         * java/awt/MenuShortcut.java: Implements Serializable.
790
791         * java/awt/MenuBar.java: Rewrote from scratch.
792
793         * java/awt/MenuComponent.java (removeNotify): Wrote.
794         Implements Serializable.
795
796         * java/awt/GridBagConstraints.java (GridBagConstraints): New
797         constructor.
798
799         * java/awt/CheckboxMenuItem.java: Wrote.
800
801 2000-12-25  Tom Tromey  <tromey@redhat.com>
802
803         * java/awt/MenuContainer.java: Fixed typo.
804
805         * Makefile.in: Rebuilt.
806         * Makefile.am (awt_java_source_files): Added SystemColor.java.
807         * java/awt/SystemColor.java: New file.
808
809         * java/awt/Color.java (rgba): Now package-private.
810
811         * java/awt/event/InputEvent.java (isAltGraphDown): New method.
812
813         * java/awt/event/ContainerEvent.java (getContainer): Renamed from
814         getComponent.
815
816         * java/awt/MenuItem.java (addNotify): New method.
817         (MenuItem(String,MenuShortcut)): New constructor.
818         (setLabel): Notify peer of change.
819         (setEnabled): Likewise.
820
821         * java/awt/GridLayout.java (toString): New method.
822
823         * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
824         (FlowLayout): Check for LEADING and TRAILING.
825         (setAlignment): Likewise.
826         (layoutContainer): Handle component orientation.
827
828         * java/awt/Component.java (orientatin): New field.
829         (setComponentOrientation): Wrote.
830         (getComponentOrientation): Wrote.
831
832         * java/awt/Event.java (Event): Implements Serializable.
833         (consumed): New field for serialization.
834         * java/awt/Dimension.java (Dimension): Implements Serializable.
835         * java/awt/Cursor.java (Cursor): Implements Serializable.
836         * java/awt/Container.java (Container): No longer abstract.
837
838         * java/awt/Choice.java: Wrote.
839         * java/awt/Checkbox.java: Wrote.
840         * java/awt/ItemSelectable.java: Documented.
841         * java/awt/CheckboxGroup.java: Wrote.
842
843         * java/awt/CardLayout.java (layoutContainer): Directly use fields
844         in other classes.
845         (getSize): Likewise.
846
847 2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>
848
849         * java/io/FileDescriptor.java: Initialize fd to -1.
850         Remove default constructor.
851
852 2000-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
853
854         * java/lang/mprec.h: Change C9X reference to refer to C99.
855
856 2000-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
857
858         * java/lang/Throwable.java (trace_enabled): New static field.
859         * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
860         trace_enabled not set.
861         * prims.cc (main_init): Turn off trace_enabled while creating
862         default exception objects.
863
864 2000-12-21  Tom Tromey  <tromey@redhat.com>
865
866         * java/beans/PropertyChangeListener.java: Extends EventListener.
867         * java/beans/VetoableChangeListener.java: Extends EventListener.
868
869         * java/util/zip/Deflater.java (update, init): Now private.
870
871 2000-12-21  Bryce McKinlay  <bryce@albatross.co.nz>
872
873         * java/util/BasicMapEntry.java: Re-added.
874         * java/util/HashMap.java (Entry): Extend BasicMapEntry.
875         (putAll): Test for BasicMapEntry.
876         * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
877         (putAll): Test for BasicMapEntry.
878         Change references from `HashMap.Entry' to `Entry' in various places.
879         * Makefile.am: Add BasicMapEntry.java.
880         * Makefile.in: Rebuilt.
881
882 2000-12-18  Warren Levy  <warrenl@redhat.com>
883
884         * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
885         need to set timezone to a valid non-null value.  Partial fix for
886         PR 331.
887
888 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
889
890         * java/awt/Window.java (addNotify): Remove peer casting hack now that 
891         gcj/312 is fixed.
892         * java/awt/Button.java (addNotify): Likewise.
893         * java/awt/Label.java (addNotify): Likewise.
894         * java/awt/Panel.java (addNotify): Likewise.
895         * java/awt/Scrollbar.java (addNotify): Likewise.
896         * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
897         Remove redundant null checks.
898
899 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
900
901         * COPYING: Update to current
902         ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
903         to 19yy as example year in copyright notice).
904
905 2000-12-18  Bryce McKinlay  <bryce@albatross.co.nz>
906
907         * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as 
908         end-of-stream if avail_in is 0.
909
910 2000-12-17  Bryce McKinlay  <bryce@albatross.co.nz>
911
912         * java/util/ArrayList.java (data): Declare transient.
913         (serialPersistantFields): Removed.
914         (readObject): Use defaultReadObject(), not readFields().
915         (writeObject): Use defaultWriteObject(), not writeFields().
916
917 2000-12-17  Jeff Sturm  <jeff.sturm@commerceone.com>
918
919         * java/util/Hashtable.java (put): Remove `last' variable.
920         Link new entry to head of list.
921         * java/util/HashMap.java (put): Ditto.
922
923 2000-12-15  Tom Tromey  <tromey@redhat.com>
924
925         * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
926         loader to Class.forName.
927
928 2000-12-14  Tom Tromey  <tromey@redhat.com>
929
930         * java/util/ResourceBundle.java
931         (getBundle(String,Locale,ClassLoader)): New method.
932         (trySomeGetBundle): Added `loader' argument.
933         (partialGetBundle): Likewise.
934
935         * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
936         maximumFractionDigits, maximumIntegerDigits,
937         minimumFractionDigits, minimumIntegerDigits): Now
938         package-private.
939
940         * java/lang/Thread.java (checkAccess): Now final.
941
942         * java/lang/RuntimePermission.java: Class now final.
943
944         * java/io/StringWriter.java (StringWriter(int)): Now public.
945
946         * java/io/SerializablePermission.java (legal_names): Now private.
947
948         * java/lang/Character.java: Updated UnicodeBlock constants.
949         * scripts/blocks.pl: Special case private use and surrogate
950         areas.  Updated URL.
951
952 2000-12-12  Tom Tromey  <tromey@redhat.com>
953
954         * Makefile.in: Rebuilt.
955         * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
956         option.
957         (GCJCOMPILE): Use it.
958         (JAVAC): Likewise.
959
960 2000-12-11  Tom Tromey  <tromey@redhat.com>
961
962         * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
963         New static final fields.
964
965         * scripts/classes.pl (scan): Skip lines with leading `*'.
966         Fix for PR libgcj/378.
967
968 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
969
970         * configure.in: Remove check for -fuse-divide-subroutine.
971         * configure: Rebuilt.
972         
973         * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
974
975         * gcj/javaprims.h: Rebuilt CNI namespace declarations.
976         
977 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
978
979         * Makefile.am: Add HashSet.java and java/lang/ref classes.
980         Remove BasicMapEntry.java and Bucket.java.
981         * Makefile.in: Rebuilt.
982         * java/util/HashMap.java: Rewritten.
983         * java/util/HashSet.java: Imported from classpath.
984         * java/util/WeakHashMap.java: Imported from classpath.
985         * java/util/Hashtable.java: Rewritten based on new HashMap code.
986         * java/util/Bucket.java: Deleted.
987         * java/util/BasicMapEntry.java: Deleted.
988         * java/util/Collections.java (search): Use a for-loop, not iterator
989         hasNext().
990         (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out 
991         of elements in source.
992         (max): Use a for-loop.
993         (min): Ditto.
994         (reverse): Keep track of positions instead of using Iterator's 
995         nextIndex() and previousIndex().
996         (shuffle(List)): Initialize defaultRandom if required using 
997         double-check thread safety idiom. Call two-argument shuffle method 
998         using defaultRandom.
999         (defaultRandom): New field.
1000         (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
1001         using previousIndex() and nextIndex().
1002         (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
1003         * java/util/AbstractCollection.java (toString): Use a StringBuffer.
1004         * java/util/AbstractMap.java (toString): Use StringBuffer.
1005         * java/lang/ref/PhantomReference.java: Imported from classpath.
1006         * java/lang/ref/SoftReference.java: Ditto.
1007         * java/lang/ref/Reference.java: Ditto.
1008         * java/lang/ref/WeakReference.java: Ditto.
1009         * java/lang/ref/ReferenceQueue.java: Ditto.
1010
1011 2000-12-10  Richard Henderson <rth@redhat.com>
1012         
1013         * configure.host: Recognize alpha*-*, not alphaev6-*.
1014
1015 2000-12-09  Anthony Green  <green@redhat.com>
1016
1017         * configure.host: Enable interpreter for Alpha.
1018
1019 2000-12-09  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1020
1021         * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
1022         (ZIP): Points at fastjar instead of zip.
1023         (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1024         (libgcj_la_LDFLAGS): Correctly point at libsupc++.
1025         (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
1026         (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
1027         ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
1028         ($(x_java_source_files:.java=.class):): Likewise.
1029         (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
1030         fastar's flags.
1031         (CLEANFILES): libgcj.jar replaces libgcj.zip.
1032         (java/lang/ClassLoader.h:): Depends on libgcj.jar.
1033         (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
1034         java/lang/String.h:, java/lang/reflect/Constructor.h:,
1035         java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
1036         gnu/gcj/runtime/VMClassLoader.h:,
1037         java/io/ObjectInputStream$$GetField.h:, 
1038         java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
1039         (Makefile.in): Rebuilt.
1040         
1041 2000-12-08  Tom Tromey  <tromey@redhat.com>
1042
1043         From Phil Edwards:
1044         * configure: Rebuilt.
1045         * configure.in: Use echo, not `:', to create .d files.
1046
1047 2000-12-08  Warren Levy  <warrenl@redhat.com>
1048
1049         * java/lang/StringBuffer.java (insert(int,char[])): Avoid
1050         NullPointerException so proper check of offset can be done.
1051
1052 2000-12-08  Warren Levy  <warrenl@redhat.com>
1053
1054         * java/io/FileInputStream.java (close): Check if the fd is valid.
1055         * java/io/RandomAccessFile.java (close): Ditto.
1056         * java/net/PlainDatagramSocketImpl.java (close): Ditto.
1057         * java/net/PlainSocketImpl.java (close): Ditto.
1058
1059 2000-12-06  Tom Tromey  <tromey@redhat.com>
1060
1061         * java/awt/GridBagConstraints.java: Filled in values for static
1062         final fields.
1063
1064         * java/util/BitSet.java: Updated copyright notice.
1065
1066         * Makefile.in: Rebuilt.
1067         * Makefile.am (awt_java_source_files): Added new file.
1068         * java/awt/GridBagConstraints.java: New file.
1069
1070 2000-12-05  Tom Tromey  <tromey@redhat.com>
1071
1072         * java/text/Collator.java (decomposeCharacter, decmp, strength):
1073         Now package-private, not protected.
1074         * java/text/DateFormatSymbols.java (equals): Now private.
1075         * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
1076         * java/util/BitSet.java: Class no longer final.
1077
1078 2000-12-04  Warren Levy  <warrenl@redhat.com>
1079
1080         * java/util/TimeZone.java (getAvailableIDs): Activated commented
1081         out code dependent on compiler and library changes.
1082
1083 2000-12-04  Warren Levy  <warrenl@redhat.com>
1084
1085         * java/io/FilePermission.java: Made class final per spec.
1086         * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
1087         method name to match spec (fixed typo).
1088         * java/util/LinkedList.java: Implements List.
1089
1090 2000-12-04  Bryce McKinlay  <bryce@albatross.co.nz>
1091
1092         * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From 
1093         Edgar Villanueva <edgarvil@home.com>.
1094
1095 2000-12-03  Tom Tromey  <tromey@redhat.com>
1096
1097         * java/awt/geom/Point2D.java: Added protected constructor.
1098         (equals): New method.
1099         (Float.setLocation(float,float)): New method.
1100         * java/awt/geom/Dimension2D.java: Added protected constructor.
1101         * java/awt/geom/AffineTransform.java: Made all constants public.
1102         (concatenate): Fixed typo in name.
1103         * java/awt/event/WindowAdapter.java: Class now abstract.
1104         * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
1105         * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
1106         AWTEvent.
1107
1108         * java/awt/AWTError.java: Extend Error, not
1109         IllegalStateException.
1110
1111         * Makefile.in: Rebuilt.
1112         * Makefile.am (awt_java_source_files): Added new file.
1113         * java/awt/geom/RoundRectangle2D.java: New file.
1114
1115         * Makefile.in: Rebuilt.
1116         * Makefile.am (awt_java_source_files): Added new file.
1117         * java/awt/FlowLayout.java: New file.
1118
1119         * Makefile.in: Rebuilt.
1120         * Makefile.am (awt_java_source_files): Added new file.
1121         * java/awt/GridLayout.java: New file.
1122
1123 2000-12-02  Tom Tromey  <tromey@redhat.com>
1124
1125         * Makefile.in: Rebuilt.
1126         * Makefile.am (awt_java_source_files): Added new files.
1127         * java/awt/CardLayout.java: New file.
1128         * java/awt/AWTPermission.java: New file.
1129
1130 2000-12-01  Tom Tromey  <tromey@redhat.com>
1131
1132         * java/util/Vector.java (insertElementAt): Unconditionally
1133         increment elementCount.
1134         (removeRange): Clear unused slots in vector.
1135
1136 2000-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
1137
1138         * java/lang/natMath.cc: Declare fabsf() function.
1139         * java/lang/mprec.h: Don't include math.h.
1140         * java/lang/dtoa.c: Include string.h.
1141         * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
1142         compiler warning.
1143         
1144         From Adam Welc <welc@cs.purdue.edu>:
1145         * java/util/LinkedList.java (removeFirst): Update `first' field.
1146         Handle the last == first case.
1147         (removeLast): Update `last' field. Handle the last == first case.
1148
1149 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1150
1151         * Makefile.am: Added entries for new java.sql modules.
1152         * Makefile.in: Rebuilt.
1153
1154 2000-12-01  Warren Levy  <warrenl@cygnus.com>
1155
1156         * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
1157         that aren't quite 1.2 compatible yet.
1158
1159 2000-11-30  Warren Levy  <warrenl@cygnus.com>
1160
1161         * java/sql/Array.java: New file from classpath.
1162         * java/sql/BatchUpdateException.java: Ditto.
1163         * java/sql/Blob.java: Ditto.
1164         * java/sql/Clob.java: Ditto.
1165         * java/sql/Ref.java: Ditto.
1166         * java/sql/SQLData.java: Ditto.
1167         * java/sql/SQLInput.java: Ditto.
1168         * java/sql/SQLOutput.java: Ditto.
1169         * java/sql/Struct.java: Ditto.
1170         * java/sql/CallableStatement.java: Merged file from claspath.
1171         * java/sql/Connection.java: Ditto.
1172         * java/sql/DataTruncation.java: Ditto.
1173         * java/sql/DatabaseMetaData.java: Ditto.
1174         * java/sql/DriverManager.java: Ditto.
1175         * java/sql/PreparedStatement.java: Ditto.
1176         * java/sql/ResultSet.java: Ditto.
1177         * java/sql/ResultSetMetaData.java: Ditto.
1178         * java/sql/SQLException.java: Ditto.
1179         * java/sql/SQLWarning.java: Ditto.
1180         * java/sql/Statement.java: Ditto.
1181         * java/sql/Types.java: Ditto.
1182
1183 2000-11-29  Bryce McKinlay  <bryce@albatross.co.nz>
1184
1185         * java/lang/natSystem.cc (init_properties): Set user.language and
1186         user.region.
1187         * configure.in: Check for setlocale.
1188         * configure: Rebuilt.
1189         * include/config.h.in: Rebuilt.
1190         
1191         * java/util/zip/InflaterInputStream (read): Don't return -1 unless
1192         the infate() call didn't deliver any output. Throw a ZipException if
1193         the needsDictionary() call returns true.
1194         * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
1195         * java/io/InputStreamReader: Use the default buffer size for the
1196         contained BufferedInputStream.
1197
1198 2000-11-28  Warren Levy  <warrenl@cygnus.com>
1199
1200         * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
1201         more time zone entries.
1202         * java/text/SimpleDateFormat.java (format): Added case for
1203         TIMEZONE_FIELD.
1204
1205 2000-11-28  Bryce McKinlay  <bryce@albatross.co.nz>
1206
1207         * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
1208         directly rather than read() in all cases. Make primitive read 
1209         implementations more efficient, as defined in JDK online docs.
1210         (skipBytes): Behave like the JDK's implementation.
1211         * java/io/BufferedReader.java: Merge classpath docs. Check for a 
1212         closed stream with checkStatus() whenever an IOException can be 
1213         thrown.
1214         (checkStatus): New private method.
1215
1216 2000-11-27  Warren Levy  <warrenl@cygnus.com>
1217
1218         * Makefile.am: Added natTimeZone.cc.
1219         * Makefile.in: Rebuilt.
1220         * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
1221         * java/text/DateFormatSymbols.java (ampms): Made package private.
1222         (eras): Made package private.
1223         (months): Made package private.
1224         (shortMonths): Made package private.
1225         (shortWeekdays): Made package private.
1226         (weekdays): Made package private.
1227         (formatPrefixes): New private field.
1228         (localPatternCharsDefault): Made private.
1229         (dateFormats): New package private field.
1230         (timeFormats): New package private field.
1231         (formatsForKey): New private method.
1232         (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
1233         (DateFormatSymbols(DateFormatSymbols)): Ditto.
1234         * java/text/SimpleDateFormat.java: Merged with Classpath.
1235         * java/util/TimeZone.java: Merged with Classpath.
1236         * java/util/natTimeZone.cc: New file.
1237
1238 2000-11-27  Bryce McKinlay  <bryce@albatross.co.nz>
1239
1240         * java/util/Vector.java (ensureCapacity): Don't increment modCount.
1241         (addElement): Don't increment elementCount twice. Doh.
1242         * java/util/ArrayList.java (add): Only call ensureCapacity if the
1243         array needs to be expanded.
1244         (addAll): Ditto.
1245         * java/util/Collections.java (UnmodifiableCollection): Implement
1246         toString().
1247         (UnmodifiableList): Throw UnsupportedOperationException from 
1248         modification methods. Set `l' from the one-parameter constructor.
1249         (UnmodifiableMap): Implement toString().
1250         (SynchronizedCollection): Ditto.
1251         (SynchronizedList): Set `l' from the one-parameter constructor.
1252         (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
1253         (SynchronizedMap): Implement toString().
1254
1255 Sun Nov 26 23:59:55 2000  Anthony Green  <green@redhat.com>
1256
1257         * javax/naming/NameParser.java,
1258         javax/naming/directory/AttributeInUseException.java,
1259         javax/naming/directory/AttributeModificationException.java,
1260         javax/naming/directory/InvalidAttributeIdentifierException.java,
1261         javax/naming/directory/InvalidAttributesException.java,
1262         javax/naming/directory/InvalidAttributeValueException.java,
1263         javax/naming/directory/InvalidSearchControlsException.java,
1264         javax/naming/directory/InvalidSearchFilterException.java,
1265         javax/naming/directory/NoSuchAttributeException.java,
1266         javax/naming/directory/SchemaViolationException.java: New files.
1267         
1268 Sun Nov 26 22:35:53 2000  Anthony Green  <green@redhat.com>
1269
1270         * javax/naming/InitialContext.java (rebind): Implement.
1271         (unbind): Implement.
1272         (rename): Implement.
1273         (list): Implement.
1274         (listBindings): Implement.
1275         (destroySubcontext): Implement.
1276         (createSubcontext): Implement.
1277         (lookupLink): Implement.
1278         (getNameParser): Implement.
1279         (composeName): Implement.
1280         (addToEnvironment): Implement.
1281
1282 Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
1283
1284         * javax/naming/AuthenticationException.java,
1285         javax/naming/AuthenticationNotSupportedException.java,
1286         javax/naming/CannotProceedException.java,
1287         javax/naming/CommunicationException.java,
1288         javax/naming/ConfigurationException.java,
1289         javax/naming/ContextNotEmptyException.java,
1290         javax/naming/InsufficientResourcesException.java,
1291         javax/naming/InterruptedNamingException.java,
1292         javax/naming/InvalidNameException.java,
1293         javax/naming/LimitExceededException.java,
1294         javax/naming/LinkException.java,
1295         javax/naming/LinkLoopException.java,
1296         javax/naming/MalformedLinkException.java,
1297         javax/naming/NameAlreadyBoundException.java,
1298         javax/naming/NameNotFoundException.java,
1299         javax/naming/NamingSecurityException.java,
1300         javax/naming/NoPermissionException.java,
1301         javax/naming/NotContextException.java,
1302         javax/naming/PartialResultException.java,
1303         javax/naming/ReferralException.java,
1304         javax/naming/ServiceUnavailableException.java,
1305         javax/naming/SizeLimitExceededException.java,
1306         javax/naming/TimeLimitExceededException.java: New files.
1307
1308         * javax/naming/Name.java (clone): New method.
1309         (compareTo): New method.
1310         (isEmpty): New method.
1311         (getAll): New method.
1312         (getPrefix): New method.
1313         (getSuffix): New method.
1314         (startsWith): New method.
1315         (endsWith): New method.
1316         (addAll): New method.
1317         (addAll): New method.
1318         (add): New method.
1319         (add): New method.
1320         (remove): New method.
1321
1322         * javax/naming/Context.java (lookup): New method.
1323         (rebind): New method.
1324         (unbind): New method.
1325         (rename): New method.
1326         (list): New method.
1327         (listBindings): New method.
1328         (destroySubcontext): New method.
1329         (createSubcontext): New method.
1330         (lookupLink): New method.
1331         (getNameParser): New method.
1332         (composeName): New method.
1333         (addToEnvironment): New method.
1334         (removeFromEnvironment): New method.
1335         (getEnvironment): New method.
1336         (close): New method.
1337         (getNameInNamespace): New method.
1338
1339         * javax/naming/InitialContext.java (lookup): New method.
1340         (rebind): New method.
1341         (unbind): New method.
1342         (rename): New method.
1343         (list): New method.
1344         (listBindings): New method.
1345         (destroySubcontext): New method.
1346         (createSubcontext): New method.
1347         (lookupLink): New method.
1348         (getNameParser): New method.
1349         (composeName): New method.
1350         (addToEnvironment): New method.
1351         (removeFromEnvironment): New method.
1352         (getEnvironment): New method.
1353         (close): New method.
1354         (getNameInNamespace): New method.
1355
1356 2000-11-26  Tom Tromey  <tromey@cygnus.com>
1357
1358         * Makefile.in: Rebuilt.
1359         * Makefile.am (core_java_source_files): Added
1360         RuntimePermission.java.
1361         * java/lang/RuntimePermission.java: Imported from Classpath.
1362         * java/lang/Thread.java (getContextClassLoader): Now
1363         synchronized.  Added security code.
1364         (setContextClassLoader): Likewise.
1365
1366         * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
1367         length field of array.
1368         (_Jv_NewPrimArray): Likewise.
1369         * gcj/array.h (__JArray): `length' field now const.  Added
1370         constructor.
1371
1372 2000-11-26  Anthony Green  <green@redhat.com>
1373
1374         * javax/naming/spi/NamingManager.java,
1375         javax/naming/spi/ObjectFactory.java,
1376         javax/naming/spi/InitialContextFactory.java,
1377         javax/naming/spi/InitialContextFactoryBuilder.java,
1378         javax/naming/RefAddr.java, javax/naming/Reference.java,
1379         javax/naming/NamingException.java, javax/naming/Context.java,
1380         javax/naming/Referenceable.java,
1381         javax/naming/directory/InitialDirContext.java,
1382         javax/naming/directory/DirContext.java,
1383         javax/naming/directory/Attributes.java,
1384         javax/naming/directory/Attribute.java,
1385         javax/naming/StringRefAddr.java,
1386         javax/naming/NamingEnumeration.java, javax/naming/Name.java,
1387         javax/naming/InitialContext.java,
1388         javax/naming/NoInitialContextException.java: New files.
1389         
1390 2000-11-25  Anthony Green  <green@redhat.com>
1391
1392         * prims.cc (_Jv_NewObjectArray): Undo placement change.
1393         (_Jv_NewPrimArray): Likewise.
1394         * gcj/array.h (__JArray): Undo const change.  Removed constructor.
1395         (class JArray): Removed constructor.
1396
1397         * java/lang/Thread.java (context_class_loader): New private data.
1398         (getContextClassLoader): New method.
1399         (setContextClassLoader): New method.
1400         (Thread): Initialize context_class_loader.
1401
1402         * java/net/URLClassLoader.java: Import java.util.Enumeration.
1403         (getResource): Rename to findResource.
1404         (findResource): New method.  Used to be getResource.
1405         (getResourceAsStream): Deleted.
1406         (jarFileize): Extracted logic from URLClassLoader constructor into
1407         this new private method.
1408         (addURL): New protected method.
1409         (URLClassLoader): Call jarFileize.  Use addElement instead of
1410         insertElementAt.
1411         (findResources): New method.
1412         
1413         * java/lang/ClassLoader.java: Import java.util.Enumeration.
1414         (getResource): Implement correct logic.
1415         (findResource): New method.
1416         (getResources): New method.
1417         (findClass): Create a ClassNotFoundException with the name of the
1418         class rather than nothing at all.
1419         (defineClass) Only throw ClassFormatError.
1420         
1421         * java/lang/Class.java (forName): New method.
1422         * java/lang/Class.h (forName): New method.
1423         * java/lang/natClass.cc (forName): New method.
1424
1425 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
1426
1427         * java/lang/System.java (setProperties): Only call init_properties()
1428         if properties is null.  
1429         (getProperties): Ditto.
1430         (getProperty): Ditto.
1431         (setProperty): Call init_properties if properties are null.
1432         (prop_init): Remove field.
1433         * java/lang/natSystem.cc (init_properties): Synchronize the entire
1434         method. Check for null properties after synchronizing instead of 
1435         prop_init flag. Set the properties field last for thread safety.
1436
1437         * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
1438         test for gcj.dumpobjects property and enable object stream dumping
1439         if it is set.
1440         (dumpElement): No longer native.
1441         (dumpElementln): Ditto.
1442         (setDump): Do not define.
1443         * java/io/natObjectInputStream.cc (dumpElement): Removed.
1444         (dumpElementln): Removed.
1445         (setDump): Removed.
1446
1447 2000-11-24  Bryce McKinlay  <bryce@albatross.co.nz>
1448
1449         * configure: Rebuilt.
1450         * Makefile.in: Rebuilt.
1451         * Makefile.am (built_java_source_files): Add Configuration.java.
1452         * configure.in: Add Configuration.java to CONFIG_FILES. Set 
1453         LIBGCJDEBUG substitution if --enable-libgcj-debug is specified. 
1454         Create `gnu' directory in the build tree.
1455         * gnu/classpath/Configuration.java.in: New file.
1456
1457 2000-11-24  Tom Tromey  <tromey@cygnus.com>
1458
1459         * prims.cc (_Jv_NewObjectArray): Use placement new to create
1460         array.
1461         (_Jv_NewPrimArray): Likewise.
1462         Include <new>.
1463         * gcj/array.h (__JArray): `length' field now const.  Added
1464         constructor.
1465         (class JArray): Added constructor.
1466
1467 2000-11-23  Mark Wielaard  <mark@klomp.org>
1468
1469         * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
1470         lookup.
1471
1472 2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
1473
1474         * java/util/Vector.java: Improve exception messages.
1475         (Vector): Check initialCapacity for IllegalArgumentException.
1476         (tromToSize): Don't check for elementCount == elementData.length
1477         case.
1478         (toArray): Don't try to set null marker if target array is the same
1479         length as the vector.
1480
1481 2000-11-22  Bryce McKinlay  <bryce@albatross.co.nz>
1482
1483         * Makefile.in: Rebuilt.
1484         * Makefile.am (core_java_source_files): Added Collections.java.
1485         * java/util/List.java: Merged from classpath.
1486         * java/util/Vector.java: Ditto. 
1487         * java/util/Collections.java: From classpath.
1488         * java/util/ArrayList.java (addAll(Collection)): Call 
1489         addAll(int,Collection) instead of duplicating code.
1490         (indexOf): Clean up int initialization.
1491         (clear): Set cleared array entries to null, to allow garbage 
1492         collection.
1493         * java/util/List.java: Minor formatting fixes.  
1494         * java/util/SimpleTimeZone.java: ditto.
1495         
1496 2000-11-18  Tom Tromey  <tromey@cygnus.com>
1497
1498         * Makefile.in: Rebuilt.
1499         * Makefile.am (core_java_source_files): Added new files.
1500         * java/lang/reflect/ReflectPermission.java: New class.
1501         * java/io/FileFilter.java: From Classpath
1502         * java/io/FilePermission.java: From Classpath.
1503
1504 2000-11-17  Tom Tromey  <tromey@cygnus.com>
1505
1506         * java/lang/reflect/AccessibleObject.java (isAccessible,
1507         setAccessible): Now public.
1508
1509         * java/lang/natString.cc: Include Locale.h.
1510         (toUpperCase): Added `locale' argument.  Handle locale
1511         sensitivity.
1512         (toLowerCase): Added `locale' argument.  Handle locale
1513         sensitivity.
1514         (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
1515         CAPITAL_I): New defines.
1516         * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
1517         final.
1518         Import Locale.
1519         (toUpperCase, toLowerCase): New methods.  Variants which accept
1520         locale now native.
1521
1522         * java/lang/ExceptionInInitializerError.java (printStackTrace):
1523         New methods.
1524
1525         * java/util/PropertyPermission.java: Re-merged from Classpath.
1526
1527         * java/text/RuleBasedCollator.java (getCollationElementIterator):
1528         New method.
1529         * java/text/StringCharacterIterator.java: Reindented.
1530         (setText): New method.
1531
1532 2000-11-17  Mark Wielaard  <mark@klomp.org>
1533
1534         Merge with Classpath (changes by Bryce McKinlay)
1535         * java/util/jar/*.java: Reformat all to unofficial standard coding
1536         style. No changes of substance.
1537
1538 2000-11-17  Mark Wielaard  <mark@klomp.org>
1539
1540         * java/util/zip/*.java: Javadoc updates.
1541
1542 2000-11-17  Tom Tromey  <tromey@cygnus.com>
1543
1544         * java/text/CollationKey.java: Implement Comparable.
1545         (compareTo(Object)): New method.
1546         * java/text/Collator.java (compare(Object,Object)): New method.
1547         Implement Comparator.
1548
1549         * java/util/zip/InflaterInputStream.java (available): New method.
1550         (close): New method.
1551         (read, available, skip, fill): Throw exception if stream closed.
1552         * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
1553         getNextEntry): Throw exception if closed.
1554
1555 2000-11-16  Tom Tromey  <tromey@cygnus.com>
1556
1557         * java/io/PushbackReader.java: Merged with Classpath.
1558         * java/util/Arrays.java: Updated from Classpath.
1559
1560         * scripts/blocks.pl: New file.
1561         * java/lang/Character.java (Subset): New class.
1562         (UnicodeBlock): New class.
1563
1564         * java/lang/Math.java (toDegrees, toRadians): New methods.
1565
1566         * java/lang/Float.java: Implement Comparable.
1567         (compareTo): New methods.
1568         * java/lang/Double.java: Implement Comparable.
1569         (compareTo): New methods.
1570
1571 2000-11-16  Warren Levy  <warrenl@cygnus.com>
1572
1573         * java/beans/PropertyChangeSupport.java (propertyListeners): Made
1574         transient.
1575         (listeners): Made transient.
1576         (source): Renamed from 'bean'.
1577         (children): New field for serialization.
1578         (propertyChangeSupportSerializedDataVersion): Ditto.
1579         (serialVersionUID): Ditto.
1580         (writeObject): New serialization method.
1581         (readObject): New serialization method.
1582         * java/beans/VetoableChangeSupport.java (propertyListeners): Made
1583         transient.
1584         (listeners): Made transient.
1585         (source): Renamed from 'bean'.
1586         (children): New field for serialization.
1587         (vetoableChangeSupportSerializedDataVersion): Ditto.
1588         (serialVersionUID): Ditto.
1589         (writeObject): New serialization method.
1590         (readObject): New serialization method.
1591         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
1592         to allow constructor to have a return type (i.e. the class that the
1593         constructor constructs).
1594
1595 2000-11-14  Tom Tromey  <tromey@cygnus.com>
1596
1597         * Makefile.in: Rebuilt.
1598         * Makefile.am (libgcj.zip): Fail immediately if compilation fails
1599         and -k not given.
1600
1601 2000-11-02  Warren Levy  <warrenl@cygnus.com>
1602
1603         * java/io/ObjectInputStream.java (readObject): Added code to
1604         conditionally dump out the serialized data.
1605         Handle ENDBLOCKDATA case a bit more gracefully since the current
1606         behavior doesn't seem to work as expected.
1607         (readStreamHeader): Added code for serialized data dumper.
1608         (readNextBlock): Ditto.
1609         (readFields): Ditto.
1610         (dump): New private static field for turning on/off dumper.
1611         (setDump): New native method.
1612         (dumpElement): New native method.
1613         (dumpElementln): New native method.
1614         * java/io/natObjectInputStream.cc (setDump): New method.
1615         (dumpElement): New method.
1616         (dumpElementln): New method.
1617
1618 2000-11-02  Warren Levy  <warrenl@cygnus.com>
1619
1620         * java/net/InetAddress.java (addr): Renamed from 'address'.
1621         (address): New field to match Serialized Form doc.
1622         (hostName): Renamed from 'hostname' to match Serialized Form doc.
1623         (family): New serialization field.
1624         (serialVersionUID): New field.
1625         (readObject): New method.
1626         (writeObject): New method.
1627         (getFamily): New native method.
1628         (InetAddress): Set family.
1629         * java/net/natInetAddress.cc (getFamily): New method.
1630         (addr): Renamed from 'address'.
1631         (hostName): Renamed from 'hostname' to match Serialized Form doc.
1632         * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
1633         * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
1634
1635 2000-11-03  Bryce McKinlay  <bryce@albatross.co.nz>
1636
1637         * java/util/AbstractList.java (SubList): Make it a top-level private
1638         class.
1639         * java/util/LinkedList.java (remove): Do update modCount and knownMod.
1640         (add): Ditto.
1641         * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
1642         * Makefile.in: Rebuilt.
1643
1644 2000-11-02  Tom Tromey  <tromey@cygnus.com>
1645
1646         * Makefile.in: Rebuilt.
1647         * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
1648         link.
1649
1650 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
1651
1652         * java/util/AbstractList.java (remove): Comment out modCount increment
1653         to work around compiler bug.
1654         (add): Ditto.
1655
1656 2000-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
1657
1658         * java/util/AbstractList.java: Throw messages with 
1659         IndexOutOfBoundsExceptions.
1660          (listIterator()): Call listIterator(0).
1661         (size): New field. Initialize to size().
1662         (hasNext): Test position against size, not size().
1663         (remove): Increment knownMod by one instead of resetting it from 
1664         modCount.
1665         (add): Ditto.
1666         (SubList.upMod): Removed.
1667         (SubList.set): Don't call upMod() or update knownMod.
1668         (SubList.add(int,Object)): Increment modCount instead of caling upMod().
1669         (SubList.remove): Ditto.
1670         (SubList.addAll): Don't call backingList.size(). Increment size from 
1671         c.size().
1672         (SubList.iterator): New method. Call listIterator(0).
1673         (SubList.listIterator): New method. Restore code to return an anonymous
1674         listIterator implementation (with some changes).
1675         * java/util/AbstractSequentialList.java: Throw messages with 
1676         IndexOutOfBoundsExceptions.
1677         (addAll): Add a specnote.
1678         * java/util/ArrayList.java (removeRange): Get the math right.
1679         (addAll): Increment modCount _before_ creating iterator.
1680         * java/util/LinkedList.java: Rewritten, mostly.
1681
1682 2000-11-01  Tom Tromey  <tromey@cygnus.com>
1683
1684         * scripts/encodings.pl: Added `ASCII' alias.
1685         * Makefile.in: Rebuilt.
1686         * Makefile.am (convert_source_files): Added new files.
1687         * gnu/gcj/convert/Input_ASCII.java: New file.
1688         * gnu/gcj/convert/Output_ASCII.java: New file.
1689         * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
1690         out-of-range characters.
1691         * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
1692         (read): Swap bytes if required.  Treat `count' as character count,
1693         not byte count.
1694         (write): Likewise.  Also, handle case where iconv fails on a given
1695         character.
1696         (init): Put encoding into exception.
1697         * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
1698         (static): Call iconv_init.  Rebuilt alias list.
1699         (iconv_init): New private method.
1700
1701 2000-11-01  Tom Tromey  <tromey@cygnus.com>
1702
1703         * Makefile.in: Rebuilt.
1704         * Makefile.am (install-exec-hook): Only make a single symlink, and
1705         remove the destination before making the link.
1706         * configure: Rebuilt.
1707         * configure.in: Call AC_PROG_LN_S.
1708
1709 2000-10-31  Warren Levy  <warrenl@cygnus.com>
1710
1711         * jni.cc: Added include of java/lang/ThreadGroup.h.
1712         * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
1713         per change of 2000-10-05.
1714
1715 2000-10-30  Bryce McKinlay  <bryce@albatross.co.nz>
1716
1717         * java/util/BitSet.java: Updated @specnote.
1718
1719         * java/io/Reader.java: Merge docs from classpath.
1720         (skip): Synchronize on `lock'.
1721         * java/io/FileReader.java: Import correct implementation from 
1722         classpath.
1723         * java/io/StringReader.java: Merge docs from classpath.
1724         (ready): Throw IOException if stream is closed.
1725
1726 2000-10-29  Bryce McKinlay  <bryce@albatross.co.nz>
1727
1728         * java/util/AbstractCollection.java (addAll): Use size() instead of
1729         hasNext() in iterator loop.
1730         (clear): Ditto.
1731         (contains): Ditto. Simplify loop.
1732         (containsAll): Ditto.
1733         (remove): Ditto.
1734         (removeAll): Ditto.
1735         (retainAll): Ditto.
1736         (toArray): Ditto.
1737         (toString): Ditto. Use string concatenation operators, not
1738         StringBuffer.
1739         * java/util/AbstractList.java (addAll): Use size() instead of
1740         hasNext() in iterator loop.
1741         (equals): Ditto.
1742         (hashCode): Ditto.
1743         (indexOf): Ditto. Don't take null check outside of the loop.
1744         (iterator): Return an AbstractListItr instead of anonymous class.
1745         (lastIndexOf): Use a for loop bounded by size() instead of 
1746         hasPrevious() in iterator loop.
1747         (listIterator): Return an AbstractListItr.
1748         (removeRange): Remove bounds checking code and docs.
1749         (AbstractListItr): New inner class. Code moved here from 
1750         listIterator().
1751         (SubList.iterator): Removed. Use default implementation from 
1752         AbstractList instead.
1753         (SubList.listIterator): As above.
1754         * java/util/AbstractMap.java (clear): Use a for loop bounded by size() 
1755         instead of hasNext() in iterator loop.
1756         (containsValue): Ditto.
1757         (equals): Ditto.
1758         (get): Ditto.
1759         (put): Ditto.
1760         (putAll): Ditto.
1761         (remove): Ditto.
1762         (toString): Ditto. Use string concatenation operators, not
1763         StringBuffer.
1764         * java/util/AbstractSequentialList.java (addAll): Use a for loop 
1765         bounded by size() instead of hasNext() in iterator loop.
1766         * java/util/AbstractSet.java (hashCode): Don't catch exception as
1767         part of normal execution flow. Do an explicit null check instead.
1768         * java/util/ArrayList.java (_iSize): Rename to `size'.
1769         (_arData): Rename to `data'.
1770         (get): Check lower bounds also. Simplify IndexOutOfBoundsException
1771         message.
1772         (remove): Ditto.
1773         (removeRange): Make protected. Don't check bounds.
1774         (add): Check lower bounds also. Simplify IndexOutOfBoundsException
1775         message.
1776         (addAll (Collection)): Use a size-bounded for loop instead of hasNext() 
1777         check.
1778         (addAll (int, Collection)): Check lower bounds. Simplify exception
1779         string.
1780         (clone): Clone the data array too.
1781         (indexOf): Inline doesEqual().
1782         (lastIndexOf): Ditto.
1783         (clear): Don't set array data to null.
1784         (set): Check lower bounds. Simplify exception string.
1785         (toArray): Correct comment.
1786         (trimToSize): Don't update modCount, this is not a structural change.
1787         Add comment.
1788         
1789         * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
1790         implemented.
1791         (toString): Declare `bit' as long, not int.
1792         (data): Made package-private, not private.      
1793
1794 2000-10-27  Warren Levy  <warrenl@cygnus.com>
1795
1796         * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
1797         array elements to true.
1798
1799 2000-10-27  Warren Levy  <warrenl@cygnus.com>
1800
1801         * Makefile.am: Added locale files from Classpath.
1802         * Makefile.in: Rebuilt.
1803         * gnu/java/locale/Calendar.java: New file.
1804         * gnu/java/locale/Calendar_de.java: New file.
1805         * gnu/java/locale/Calendar_en.java: New file.
1806         * gnu/java/locale/Calendar_nl.java: New file.
1807         * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
1808         * java/math/BigDecimal.java (intVal): Renamed from 'num' for
1809         serialization compatibility.
1810         (scale): Made private.
1811         (serialVersionUID): New field.
1812         * java/math/BigInteger.java (ival): Made transient.
1813         (words): Made transient.
1814         (bitCount): New serialization field.
1815         (bitLength): Ditto.
1816         (firstNonzeroByteNum): Ditto.
1817         (lowestSetBit): Ditto.
1818         (magnitude): Ditto.
1819         (signum): Ditto.
1820         (serialVersionUID): New field.
1821         (readObject): New method.
1822         (writeObject): New method.
1823         * java/util/BitSet.java (serialVersionUID): New field.
1824         * java/util/Calendar.java: Replaced with Classpath file.
1825         * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
1826         of getDefault() for TimeZone or Locale instead of passing nulls.
1827         * java/util/Locale.java (serialVersionUID): New field.
1828         (writeObject): New method.
1829         (readObject): New method.
1830         * java/util/SimpleTimeZone.java: Replaced with Classpath file.
1831
1832 2000-10-25  Bryce McKinlay  <bryce@albatross.co.nz>
1833
1834         * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
1835         (core_java_source_files): Put java.lang, java.io, and java.util here.
1836         (ordinary_java_source_files): Order so that core_java_source_files are 
1837         built first.
1838         (java_source_files): Reorder so that special_java_source_files are 
1839         built first.
1840         * configure.in: Don't pass -I flag to gcj.
1841         * Makefile.in: Rebuilt.
1842         * configure: Rebuilt.
1843
1844 2000-10-25  Tom Tromey  <tromey@cygnus.com>
1845
1846         * Makefile.in: Rebuilt.
1847         * Makefile.am (install-exec-hook): New target.
1848
1849 2000-10-24  Bryce McKinlay  <bryce@albatross.co.nz>
1850
1851         * java/util/EventObject.java: Merged from classpath.
1852         
1853         * java/lang/ThreadGroup.java (uncaughtException): Print thread name
1854         with stack dump.
1855
1856 2000-10-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
1857
1858         * java/util/AbstractSet.java (equals): Re-installed original code.
1859
1860 2000-10-22  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
1861
1862         * Makefile.am: Added rules for libgcjx library.
1863         * Makefile.in: Rebuilt.
1864         * configure.in: Added check for X.
1865         * configure: Rebuilt.
1866         * gnu/awt/LightweightRedirector.java: New file.
1867         * gnu/awt/j2d/AbstractGraphicsState.java: New file.
1868         * gnu/awt/j2d/DirectRasterGraphics.java: New file.
1869         * gnu/awt/j2d/Graphics2DImpl.java: New file.
1870         * gnu/awt/j2d/IntegerGraphicsState.java: New file.
1871         * gnu/awt/j2d/MappedRaster.java: New file.
1872         * gnu/awt/xlib/XCanvasPeer.java: New file.
1873         * gnu/awt/xlib/XEventLoop.java: New file.
1874         * gnu/awt/xlib/XEventQueue.java: New file.
1875         * gnu/awt/xlib/XFontMetrics.java: New file.
1876         * gnu/awt/xlib/XFramePeer.java: New file.
1877         * gnu/awt/xlib/XGraphics.java: New file.
1878         * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
1879         * gnu/awt/xlib/XPanelPeer.java: New file.
1880         * gnu/awt/xlib/XToolkit.java: New file.
1881         * gnu/gcj/xlib/Clip.java: New file.
1882         * gnu/gcj/xlib/Colormap.java: New file.
1883         * gnu/gcj/xlib/Display.java: New file.
1884         * gnu/gcj/xlib/Drawable.java: New file.
1885         * gnu/gcj/xlib/Font.java: New file.
1886         * gnu/gcj/xlib/GC.java: New file.
1887         * gnu/gcj/xlib/Pixmap.java: New file.
1888         * gnu/gcj/xlib/Screen.java: New file.
1889         * gnu/gcj/xlib/Visual.java: New file.
1890         * gnu/gcj/xlib/WMSizeHints.java: New file.
1891         * gnu/gcj/xlib/Window.java: New file.
1892         * gnu/gcj/xlib/WindowAttributes.java: New file.
1893         * gnu/gcj/xlib/XAnyEvent.java: New file.
1894         * gnu/gcj/xlib/XButtonEvent.java: New file.
1895         * gnu/gcj/xlib/XColor.java: New file.
1896         * gnu/gcj/xlib/XConfigureEvent.java: New file.
1897         * gnu/gcj/xlib/XConnectException.java: New file.
1898         * gnu/gcj/xlib/XEvent.java: New file.
1899         * gnu/gcj/xlib/XException.java: New file.
1900         * gnu/gcj/xlib/XExposeEvent.java: New file.
1901         * gnu/gcj/xlib/XID.java: New file.
1902         * gnu/gcj/xlib/XImage.java: New file.
1903         * gnu/gcj/xlib/XUnmapEvent.java: New file.
1904         * gnu/gcj/xlib/natClip.cc: New file.
1905         * gnu/gcj/xlib/natColormap.cc: New file.
1906         * gnu/gcj/xlib/natDisplay.cc: New file.
1907         * gnu/gcj/xlib/natDrawable.cc: New file.
1908         * gnu/gcj/xlib/natFont.cc: New file.
1909         * gnu/gcj/xlib/natGC.cc: New file.
1910         * gnu/gcj/xlib/natPixmap.cc: New file.
1911         * gnu/gcj/xlib/natScreen.cc: New file.
1912         * gnu/gcj/xlib/natVisual.cc: New file.
1913         * gnu/gcj/xlib/natWMSizeHints.cc: New file.
1914         * gnu/gcj/xlib/natWindow.cc: New file.
1915         * gnu/gcj/xlib/natWindowAttributes.cc: New file.
1916         * gnu/gcj/xlib/natXAnyEvent.cc: New file.
1917         * gnu/gcj/xlib/natXButtonEvent.cc: New file.
1918         * gnu/gcj/xlib/natXColor.cc: New file.
1919         * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
1920         * gnu/gcj/xlib/natXException.cc: New file.
1921         * gnu/gcj/xlib/natXExposeEvent.cc: New file.
1922         * gnu/gcj/xlib/natXImage.cc: New file.
1923         * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
1924         * java/awt/EventDispatchThread.java: Start thead on creation.
1925
1926 2000-10-20  Tom Tromey  <tromey@cygnus.com>
1927
1928         From Arno J. Klaassen:
1929         * interpret.cc: Include <stdlib.h> for alloca.
1930         * defineclass.cc: Include <stdlib.h> for alloca.
1931
1932         * Makefile.in: Rebuilt.
1933         * Makefile.am: Include deps.mk.
1934         (GCJCOMPILE): Added -MD, -MT, and -MF.
1935         ($(javao_files)): Don't depend on libgcj.zip.
1936         (all-recursive): New target.
1937         (%.lo:%.cc): Do dependency tracking.
1938         ($(nat_headers)): Don't depend on libgcj.zip.
1939         * configure: Rebuilt.
1940         * configure.in: Make .d files and deps.mk.
1941
1942 2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
1943
1944         * exception.cc: Don't #include "exception".
1945         (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
1946
1947         * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
1948         * Makefile.in: Updated.
1949
1950 2000-10-11  Bryce McKinlay  <bryce@albatross.co.nz>
1951
1952         * java/awt/peer/ChoicePeer.java (addItem): Removed.
1953         * java/awt/peer/ComponentPeer.java (disable): Removed.
1954         (enable): Removed.
1955         (hide): Removed.
1956         (minimumSize): Removed.
1957         (preferredSize): Removed.
1958         (reshape): Removed.
1959         (show): Removed.
1960         * java/awt/peer/ListPeer.java (addItem): Removed.
1961         (clear): Removed.
1962         (minimumSize): Removed.
1963         (preferredSize): Removed.
1964         (setMultipleSelections): Removed.
1965         * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
1966         (remove): Renamed from removeMenu.
1967         * java/awt/peer/MenuItemPeer.java (disable): Removed.
1968         (enable): Removed.
1969         * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
1970         (remove): Renamed from removeItem.
1971         * java/awt/peer/TextAreaPeer.java (insertText): Removed.
1972         (getMinimumSize): Removed.
1973         (getPreferredSize): Removed.
1974         (minimumSize): Removed.
1975         (preferredSize): Removed.
1976         (replaceText): Removed.
1977         * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
1978         (preferredSize): Removed.
1979         (getMinimumSize): Removed.
1980         (getPreferredSize): Removed.
1981         (setEchoCharacter): Removed.
1982
1983 2000-10-10  Warren Levy  <warrenl@cygnus.com>
1984
1985         * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
1986         * java/sql/Date.java (serialVersionUID): New field.
1987         * java/sql/Time.java (serialVersionUID): New field.
1988         * java/sql/Timestamp.java (serialVersionUID): New field.
1989         * java/text/ChoiceFormat.java (serialVersionUID): New field.
1990         * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
1991         * java/text/DateFormatSymbols.java (serialVersionUID): New field.
1992         * java/text/DecimalFormat.java (serialVersionOnStream): New field.
1993         (readObject): New serialization method.
1994         * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
1995         (serialVersionOnStream): New field.
1996         (readObject): New serialization method.
1997         (getMonetaryDecimalSeparator): New method.
1998         (setMonetaryDecimalSeparator): New method.
1999         * java/text/NumberFormat.java (maxFractionDigits): New field.
2000         (maxIntegerDigits): New field.
2001         (minFractionDigits): New field.
2002         (minIntegerDigits): New field.
2003         (serialVersionOnStream): New field.
2004         (serialVersionUID): New field.
2005         (readObject): New serialization method.
2006         (writeObject): New serialization method.
2007         * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
2008         (serialVersionOnStream): New field.
2009         (serialVersionUID): New field.
2010         (readObject): New serialization method.
2011
2012 2000-10-09  Alexandre Oliva  <aoliva@redhat.com>
2013
2014         * configure.in (GCJ): Avoid bogus error message when looking for
2015         (and not finding) gcj in the build tree.
2016         * configure: Rebuilt.
2017
2018 2000-10-09  Tom Tromey  <tromey@cygnus.com>
2019
2020         * configure: Rebuilt.
2021         * configure.in: Include sys/types.h when checking for socklen_t.
2022         From Arno J. Klaassen.
2023
2024 2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>
2025
2026         * include/jvm.h: Enable __builtin_expect().
2027
2028         * name-finder.cc (lookup): Don't trust dladdr() if the address is from 
2029         the main program. Fix for PR libgcj/341.
2030
2031 2000-10-07  Tom Tromey  <tromey@cygnus.com>
2032
2033         * java/util/Properties.java: Merged with Classpath version.
2034
2035 2000-10-05  Tom Tromey  <tromey@cygnus.com>
2036
2037         * java/lang/reflect/natField.cc (BooleanClass): Don't define.
2038         * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
2039         * java/lang/Class.h (Object): Added `class$' field.
2040         * java/lang/Object.h (Object): Added `class$' field.
2041         * defineclass.cc (ClassClass): Use `class$' form.
2042         (ClassObject): Likewise.
2043         * resolve.cc (ClassObject): Use `class$' form.
2044         (ObjectClass): Likewise.
2045         * interpret.cc (ClassError): Removed.
2046         * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
2047         `class$' form.
2048         (IntegerClass): Likewise.
2049         * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
2050         form.
2051         * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
2052         (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
2053         SerializableClass): Likewise.
2054         Include Serializable.h, Cloneable.h.
2055         * java/lang/natSystem.cc (SystemClass): Removed.
2056         (init_properties): Use `class$' form.
2057         * java/lang/natObject.cc (CloneableClass): Removed.
2058         (clone): Use `class$' form.
2059         * java/lang/natClass.cc (CloneableClass): Use `class$' form.
2060         (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
2061         ConstructorClass): Likewise.
2062         * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
2063         (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
2064         IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
2065         * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
2066         form.
2067         (ClassClass): Likewise.
2068         * include/jvm.h (StringClass): Use `class$' form.
2069         * prims.cc (ObjectClass): Removed.
2070         (_Jv_RunMain): Use `class$' form.
2071         (_Jv_AllocObject): Likewise.
2072         * jni.cc (ClassClass): Use `class$' form.
2073         (ThrowableClass): Likewise.
2074         (ObjectClass): Likewise.
2075         (MethodClass): Likewise.
2076         (ThreadGroupClass): Likewise.
2077         (NativeThreadClass): Likewise.
2078         * boehm.cc (ObjectClass): Removed.
2079         (ClassClass): Removed.
2080         (_Jv_MarkObj): Use `class$' form.
2081         * gcj/field.h (JvFieldIsRef): Use `class$' form.
2082         Include RawData.h.
2083
2084 2000-10-05  Warren Levy  <warrenl@cygnus.com>
2085
2086         * Makefile.am: Removed java/io/Replaceable.java and
2087         java/io/Resolvable.java.
2088         * Makefile.in: Rebuilt.
2089         * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
2090         namespace.
2091         * java/io/ObjectInputStream.java (processResolution): Fixed typo
2092         in method name.
2093         (processResolution): Handle readResolve method via reflection with
2094         removal of Resolvable interface.
2095         * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
2096         method via reflection with removal of Replaceable interface.
2097         * java/io/Replaceable.java: Removed.
2098         * java/io/Resolvable.java: Removed.
2099         * java/security/Key.java (serialVersionUID): New field.
2100         * java/security/Provider.java (serialVersionUID): New field.
2101         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
2102         New field.
2103         * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
2104         New field.
2105         * java/sql/DataTruncation.java (serialVersionUID): New field.
2106         * java/sql/SQLException.java (serialVersionUID): New field.
2107         * java/sql/SQLWarning.java (serialVersionUID): New field.
2108         * java/util/Date.java (serialVersionUID): New field.
2109         (millis): Made transient.
2110         (readObject): New method.
2111         (writeObject): New method.
2112
2113 2000-10-05  Tom Tromey  <tromey@cygnus.com>
2114
2115         * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2116
2117 2000-10-02  Bryce McKinlay  <bryce@albatross.co.nz>
2118
2119         * prims.cc (_Jv_argv, _Jv_argc): New fields.
2120         (JvRunMain): Set _Jv_argv and _Jv_argc.
2121         * java/awt/Component.java: Minor fixes.
2122         * java/awt/Image.java (UndefinedProperty): Initialize final field.
2123         * java/awt/Toolkit.java (systemEventQueue): Removed.
2124         (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
2125         * java/awt/Window.java (getToolkit): Don't call super.
2126         * java/awt/image/BufferedImage.java: Fix definate assignment errors.
2127         * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
2128         * gnu/awt/gtk/GtkComponentPeer.java: New file.
2129         * gnu/awt/gtk/GtkContainerPeer.java: New file.
2130         * gnu/awt/gtk/GtkFramePeer.java: New file.
2131         * gnu/awt/gtk/GtkMainThread.java: New file.
2132         * gnu/awt/gtk/GtkToolkit.java: New file.
2133         * gnu/awt/gtk/GtkWindowPeer.java: New file.
2134         * gnu/awt/gtk/gtkcommon.cc: New file.
2135         * gnu/awt/gtk/gtkcommon.h: New file.
2136         * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
2137         * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
2138         * gnu/awt/gtk/natGtkFramePeer.cc: New file.
2139         * gnu/awt/gtk/natGtkMainThread.cc: New file.
2140         * gnu/awt/gtk/natGtkToolkit.cc: New file.
2141         * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
2142
2143 2000-09-30  Tom Tromey  <tromey@cygnus.com>
2144
2145         * posix-threads.cc (_Jv_CondWait): Check to see if we are
2146         interrupted before modifying the cv's wait set.
2147         From Corey Minyard.
2148
2149 2000-09-30  Hans Boehm  <boehm@acm.org>
2150             Bryce McKinlay  <bryce@albatross.co.nz>
2151             
2152         Implement bitmap descriptor based marking for Boehm GC.
2153
2154         * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
2155         * configure: Rebuilt.
2156         * libgcj.spec.in: Pass JC1GCSPEC to jc1.
2157         * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
2158         method get_finalizer().
2159         (struct _Jv_ArrayVTable): Ditto. Declare method array with 
2160         NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
2161         (_Jv_AllocObj): Add new jclass parameter.
2162         (_Jv_AllocArray): Ditto.
2163         (_Jv_BuildGCDescr): New prototype.
2164         * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
2165         `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
2166         get_finalizer() instead of direct finalizer vtable offset.
2167         (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
2168         `klass' to _Jv_AllocArray. Don't set the new array's vtable.
2169         (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
2170         `klass' to _Jv_AllocObj. Don't set the new array's vtable.
2171         * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
2172         (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
2173         (_Jv_DetermineVTableIndex): Ditto.
2174         (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable 
2175         calculations to account for new gc_descr field.
2176         * boehm.cc: #include gc_gcj.h.
2177         (obj_kind_x, obj_free_list): `#if 0'-ed away.
2178         (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
2179         New commentary from HB. Mark the classes vtable.
2180         (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
2181         (GC_DEFAULT_DESCR): New #define.
2182         (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.        
2183         (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
2184         (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
2185         scan conservativly if size is less than min_heap_addr. Set vtable 
2186         pointer of new object before returning.
2187         (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
2188         (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
2189         allocation for obj_kind_x.
2190         * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
2191         (_Jv_AllocObj): Set vtable on returned object.
2192         (_Jv_AllocArray): Ditto.
2193         * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
2194         (_Jv_NewPrimArray): Ditto.
2195         (_Jv_AllocObj): Declare as a friend.
2196         (_Jv_AllocArray): Ditto.        
2197         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
2198         from &ObjectClass into new array class. Remove offset-by-one 
2199         adjustments from `method' size calculations to account for gc_descr 
2200         field.
2201
2202 2000-09-26  Tom Tromey  <tromey@cygnus.com>
2203
2204         * java/awt/Scrollbar.java (removeAdjustmentListener): Use
2205         `remove', not `add'.
2206
2207 2000-09-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2208
2209         * java/lang/natSystem.cc (file_encoding): Added return statement.
2210
2211 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
2212
2213         * Makefile.am: Re-work shell commands that exceeded command-line
2214         length limits.
2215         * Makefile.in: Rebuilt.
2216
2217         * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
2218
2219         * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
2220         * java/lang/natDouble.cc: Likewise.
2221         * java/lang/reflect/natMethod.cc: Likewise.
2222         * interpret.cc: Likewise.  Fix NULLCHECKs that tested a _Jv_word.
2223
2224 2000-09-13  Alexandre Oliva  <aoliva@redhat.com>
2225
2226         * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
2227         libgcjdata.a.
2228         (GCJ): Support single-tree builds.  Add -B`pwd`/ and -I$srcdir.
2229         * acinclude.m4: Arrange for automake to not bring in a new
2230         libtool.m4 for LT_AC_PROG_GCJ.  AC_SUBST GCJ.
2231         * Makefile.am: Leave it up to automake to subst GCJ.
2232         * aclocal.m4, configure, Makefile.in: Rebuilt.
2233
2234 2000-09-13  Tom Tromey  <tromey@cygnus.com>
2235
2236         * java/lang/reflect/natArray.cc (BooleanClass): New define.
2237         (get): Ensure Boolean class is initialized.
2238         * java/lang/reflect/natField.cc (BooleanClass): New define.
2239         (get): Ensure Boolean class is initialized.
2240
2241 2000-09-13  Bryce McKinlay  <bryce@albatross.co.nz>
2242
2243         * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
2244         Initialize with anonymous class.
2245         (compareToIgnoreCase): New method.
2246         
2247         * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
2248         (uncaughtException): Set had_uncaught_exception.
2249         * prims.cc (JvRunMain): Check value of had_uncaught_exception and
2250         exit with error status if set.
2251         (_Jv_RunMain): Ditto.
2252
2253 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
2254
2255         * configure: Rebuilt with new ../libtool.m4.
2256
2257 2000-09-11  Tom Tromey  <tromey@cygnus.com>
2258
2259         * java/lang/reflect/Field.java (toString): Don't rely on
2260         Class.toString.
2261
2262 2000-09-08  Tom Tromey  <tromey@cygnus.com>
2263
2264         * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
2265         default decoder use iconv.
2266         * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
2267         Let default encoder use iconv.
2268         * configure: Rebuilt.
2269         * configure.in: Check for nl_langinfo and <langinfo.h>.
2270         * java/lang/natSystem.cc (file_encoding): New function.
2271         (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
2272
2273 2000-09-10  Alexandre Oliva  <aoliva@redhat.com>
2274
2275         * acinclude.m4: Simplify the tests for CC and CXX.
2276         * aclocal.m4, configure: Rebuilt.
2277
2278         * acinclude.m4: Include libtool macros from the source tree.
2279         * aclocal.m4, configure: Rebuilt.
2280
2281 2000-09-08  Warren Levy  <warrenl@cygnus.com>
2282
2283         * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
2284         * java/beans/PropertyVetoException.java (serialVersionUID): Added.
2285         * java/io/File.java (writeObject): Added.
2286         (readObject): Added.
2287         (serialVersionUID): Added.
2288         * java/io/ObjectOutputStream.java (writeObject): Initialized
2289         fieldsAlreadyWritten before recursion rather than after.
2290         * java/io/ObjectStreamClass.java (serialVersionUID): Added.
2291         * java/io/OptionalDataException.java (serialVersionUID): Added.
2292         (OptionalDataException): Made package private.
2293         * java/io/SyncFailedException.java (SyncFailedException): Removed
2294         default constructor to match spec.
2295         * java/lang/Boolean.java (serialVersionUID): Added.
2296         * java/lang/Byte.java (serialVersionUID): Added.
2297         * java/lang/Character.java (serialVersionUID): Added.
2298         * java/lang/Double.java (serialVersionUID): Added.
2299         * java/lang/Float.java (serialVersionUID): Added.
2300         * java/lang/Integer.java (serialVersionUID): Added.
2301         * java/lang/Long.java (serialVersionUID): Added.
2302         * java/lang/Number.java (serialVersionUID): Added.
2303         * java/lang/Short.java (serialVersionUID): Added.
2304         * java/lang/String.java (serialVersionUID): Added.
2305         * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
2306         to match spec.
2307         * java/lang/reflect/InvocationTargetException.java
2308         (serialVersionUID): Added.
2309         * java/net/URL.java (handler): Made transient.
2310         (hashCode): Added field for serialization, per spec. and use
2311         cached value if available.
2312         (serialVersionUID): Added.
2313         (URL): Initialize hashCode.
2314         (set): Adjust hashCode.
2315         (readObject): New Method to initialize the protocol handler when
2316         deserializing.
2317         (writeObject): New method.
2318         * java/text/BreakIterator.java: Removed 'implements Serializable'.
2319         * java/text/Collator.java: Removed 'implements Serializable'.
2320         * java/util/GregorianCalendar.java (serialVersionUID): Added.
2321         * java/util/Properties.java (serialVersionUID): Added.
2322         * java/util/Random.java (serialVersionUID): Added.
2323         (seed): Made private.
2324         (nextNextGaussian): Made private.
2325         (haveNextNextGaussian): Made private.
2326         * java/util/Stack.java (serialVersionUID): Added.
2327         * java/util/TimeZone.java (serialVersionUID): Added.
2328         * java/util/Vector.java (serialVersionUID): Added.
2329
2330 2000-09-07  Bryce McKinlay  <bryce@albatross.co.nz>
2331
2332         * Makefile.am (Thread.h): Don't be friends with native threads 
2333         functions.
2334         * Makefile.in: Rebuilt.
2335         * java/lang/Thread.java (interrupt_flag): Make package-private.
2336
2337 2000-09-06  Jeff Sturm  <jeff.sturm@appnet.com>
2338
2339         * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
2340         to avoid long long division.
2341
2342 2000-09-06  Tom Tromey  <tromey@cygnus.com>
2343
2344         * java/lang/reflect/Constructor.java (toString): Use `getName' for
2345         parameter types.
2346         * java/lang/reflect/Method.java (toString): Use `getName' for
2347         return type.
2348
2349         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
2350         `args' if method takes no parameters.
2351
2352         Fix for PR java.lang/339:
2353         * java/lang/natPosixProcess.cc (fail): New function.
2354         (cleanup): New function.
2355         (startProcess): Use them.  Create pipe so child can communicate
2356         exec failure back to parent.
2357
2358 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
2359
2360         * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
2361         calls to `throw'.
2362         (send): Undo last patch. Remove the label only.
2363         (mcastGrp): Ditto.
2364         * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to 
2365         `throw'.
2366         * java/net/natInetAdress.cc: Ditto.
2367
2368         * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
2369
2370 2000-09-05  Tom Tromey  <tromey@cygnus.com>
2371
2372         * doc/cni.sgml: Updated from master copy.
2373
2374 2000-09-05  Bryce McKinlay  <bryce@albatross.co.nz>
2375
2376         * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
2377         (write): Ditto.
2378         * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
2379         stack. Synchronize.
2380         * java/lang/fdlibm.h: #undef __P if previously defined.
2381         * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
2382         * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable 
2383         block.
2384         (mcastGrp): Ditto.
2385
2386 2000-09-04  Tom Tromey  <tromey@cygnus.com>
2387
2388         * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
2389         DELETE mode.
2390
2391 2000-09-04  Anthony Green  <green@redhat.com>
2392
2393         Fix for PR java.io/203:
2394         * java/io/File.java (createTempFile): Obey directory argument.
2395         Use java.io.tmpdir if needed.  Don't leave FileDescripators open.
2396         * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
2397         variable to set java.io.tmpdir on non-WIN32 systems.
2398
2399 2000-09-04  Anthony Green  <green@redhat.com>
2400
2401         * java/io/File.java (deleteOnExit): New method.
2402         * gnu/gcj/runtime/FileDeleter.java: New class.
2403         * java/lang/natRuntime.cc (exit): Call
2404         FileDeleter.deleteOnExitNow()
2405         * Makefile.am: Add FileDeleter.java.
2406         * Makefile.in: Rebuilt.
2407
2408 2000-09-02  Tom Tromey  <tromey@cygnus.com>
2409
2410         * Makefile.in: Rebuilt.
2411         * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
2412         environment variable.
2413
2414 2000-09-01  Andrew Haley  <aph@redhat.com>
2415
2416         * java/io/StreamTokenizer.java: Don't throw a
2417         NumberFormatException if a field is numeric as far as the
2418         StreamTokenizer is concerned but not as far as Double.valueOf() is
2419         concerned: return a zero instead.       
2420
2421 2000-08-30  Tom Tromey  <tromey@cygnus.com>
2422
2423         * Makefile.in: Rebuilt.
2424         * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
2425
2426 2000-08-28  Tom Tromey  <tromey@cygnus.com>
2427
2428         * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
2429         gnu/gcj/awt/ComponentDataBlitOp.java,
2430         gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
2431         java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
2432         java/awt/color/ICC_ColorSpace.java,
2433         java/awt/color/ICC_Profile.java,
2434         java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
2435         java/awt/image/ComponentColorModel.java,
2436         java/awt/image/ComponentSampleModel.java,
2437         java/awt/image/DataBuffer.java,
2438         java/awt/image/DataBufferByte.java,
2439         java/awt/image/DataBufferInt.java,
2440         java/awt/image/DataBufferUShort.java,
2441         java/awt/image/DirectColorModel.java,
2442         java/awt/image/IndexColorModel.java,
2443         java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
2444         java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
2445         java/awt/image/SinglePixelPackedSampleModel.java,
2446         java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
2447         Removed Latin-1 copyright symbols.
2448         * java/util/zip/ZipFile.java: Indentation fixes.
2449
2450 2000-08-27  Mark Wielaard  <mark@klomp.org>
2451
2452         * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
2453         constructor, close can delete the file, finalize calls close.
2454         * java/util/jar/JarFile.java: Constructor that takes mode now
2455         calls super.
2456
2457 2000-08-27  Anthony Green  <green@redhat.com>
2458
2459         * java/util/ArrayList.java, java/util/Timer.java,
2460         java/util/LinkedList.java, java/util/TimerTask.java,
2461         java/util/HashMap.java, java/util/AbstractMap.java,
2462         java/util/SortedMap.java, java/util/AbstractSequentialList.java,
2463         java/util/SortedSet.java: Imported from GNU Classpath.
2464         * Makefile.in: Rebuilt.
2465         * Makefile.am: Added new files.
2466         
2467 2000-08-26  Anthony Green  <green@redhat.com>
2468
2469         * Makefile.in: Rebuilt.
2470         * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
2471         friend.
2472
2473         * prims.cc: Include ClassLoader.h.
2474         (_Jv_RunMain): When executing jar files, classpath must be the jar
2475         file only.  Lose our reference to the system ClassLoader in order
2476         to get a new one with the correct classpath.
2477         * java/lang/natSystem.cc (init_properties): When executing a jar
2478         file, only use the jar file for java.class.path.
2479
2480         * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
2481         for bytecode archives.
2482
2483         * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
2484         exists, but not Main-Class.
2485
2486 2000-08-23  Mark Wielaard  <mark@klomp.org>
2487
2488         * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
2489         return -1 when fill() has no more data for the Inflater.
2490
2491 2000-08-23  Mark Wielaard  <mark@klomp.org>
2492
2493         * java/io/PrintWriter.java (print(String)): Don't catch IOException,
2494         write(String) already does.
2495
2496 2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2497
2498         * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
2499         to `alive_flag', call `init'.
2500         (init): New native method.
2501         * gnu/gcj/jni/natNativeThread.cc (init): New native method
2502         implementation.
2503
2504 2000-08-21  Mark Wielaard  <mark@klomp.org>
2505
2506         * Makefile.in: Rebuilt.
2507         * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
2508         a `friend class'.
2509         (java/lang/reflect/Field.h): Likewise.
2510         (java/lang/reflect/Method.h): Likewise.
2511         (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
2512         `friend class'.
2513
2514 2000-08-21  Tom Tromey  <tromey@cygnus.com>
2515
2516         * java/util/ResourceBundle.java (trySomeGetBundle): Removed
2517         debugging prints.
2518
2519 Sun Aug 20 21:02:48 2000  Anthony Green  <green@redhat.com>
2520
2521         * java/lang/natSystem.cc (init_properties): Change sourceware
2522         reference to sources.redhat.com.
2523
2524         * include/java-props.h: Add _Jv_Jar_Class_Path.
2525         * prims.cc: Ditto.  Set it from `gij -jar file' option.
2526
2527         * java/lang/natSystem.cc (init_properties): Set java.class.path
2528         from
2529         {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
2530
2531         * java/util/PropertyPermission.java: Import from GNU Classpath.
2532         * Makefile.in: Rebuilt.
2533         * Makefile.am: Add java/util/PropertyPermission.java.
2534         * java/lang/System.java: Add setProperty method.
2535
2536         * gij.cc (main): Add -jar option to execute jar files.
2537         (help): Describe -jar option.
2538         * prims.cc (_Jv_RunMain): Add support for jar execution mode.
2539         * include/jvm.h: Add is_jar argument to _Jv_RunMain.
2540         * gnu/gcj/runtime/FirstThread.java (main): New method.
2541
2542         * java/util/jar/Attributes.java: Correct comment spelling.
2543
2544 2000-08-20  Mark Wielaard  <mark@klomp.org>
2545
2546         * java/util/zip/Adler32.java: Make private variables really private
2547         * java/util/zip/CRC32.java: Make private variables really private
2548         * java/util/zip/CheckedInputStream.java: skip() could skip to much
2549         bytes
2550         * java/util/zip/InflaterInputStream.java: skip() could skip to
2551         much bytes
2552         * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
2553         * java/util/zip/ZipFile.java: size() new 1.2 method
2554         * java/util/zip/ZipInputStream.java: Use createZipEntry not new
2555         ZipEntry.  since 1.2 available() always returns just 1 or 0 when
2556         closed
2557
2558 Sun Aug 20 12:33:43 2000  Anthony Green  <green@redhat.com>
2559
2560         * java/util/jar/JarFile.java: Don't call
2561         java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
2562         <mark@klomp.org>.
2563         
2564 Sun Aug 20 09:51:48 2000  Anthony Green  <green@redhat.com>
2565
2566         * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
2567         Read the entire contents of the class file, not just what is
2568         available().
2569
2570         * java/net/JarURLConnection.java: getEntry doesn't take any
2571         arguments.  Return null if element is null.
2572
2573         * java/util/zip/ZipFile.java (getInputStream): Read the compressed
2574         size from the archive, not the inflated size.
2575
2576         * java/util/jar/JarFile.java (getEntry): Don't recurse.  Call
2577         java.util.zip.ZipFile.getEntry.
2578
2579         * gij.cc (help): Change sourceware reference to
2580         sources.redhat.com.
2581
2582 2000-08-19  Tom Tromey  <tromey@cygnus.com>
2583
2584         * java/util/zip/ZipInputStream.java (createZipEntry):
2585         Implemented.
2586
2587 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
2588
2589         * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
2590         java/util/jar/JarException.java, java/util/jar/JarFile.java,
2591         java/util/jar/JarInputStream.java,
2592         java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
2593         java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
2594         java/util/AbstractSet.java, java/util/BasicMapEntry.java,
2595         java/security/cert/CRL.java, java/security/cert/CRLException.java,
2596         java/security/cert/Certificate.java,
2597         java/security/cert/CertificateEncodingException.java,
2598         java/security/cert/CertificateException.java,
2599         java/security/cert/CertificateExpiredException.java,
2600         java/security/cert/CertificateFactory.java,
2601         java/security/cert/CertificateFactorySpi.java,
2602         java/security/cert/CertificateNotYetValidException.java,
2603         java/security/cert/CertificateParsingException.java,
2604         java/security/cert/X509CRL.java,
2605         java/security/cert/X509CRLEntry.java,
2606         java/security/cert/X509Certificate.java,
2607         java/security/cert/X509Extension.java: Imported from Classpath.
2608         * java/util/Hashtable.java: Imported from Classpath.
2609
2610         * java/util/zip/ZipInputStream.java: Create stub for
2611         createZipEntry.
2612
2613         * gcj/javaprims.h: Updated class list.
2614
2615         * Makefile.in, gcj/Makefile.in: Rebuilt.
2616         * Makefile.am (ordinary_java_source_files): Add these new classes.
2617         
2618 2000-08-16  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
2619
2620         * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
2621         * gnu/gcj/awt/GLightweightPeer.java: New file.
2622         * java/awt/BorderLayout.java: Implemented all methods.
2623         * java/awt/Button.java (actionListener, actionCommand): Renamed
2624         and modifier change.
2625         (addNotify): Call super.
2626         (dispatchEventImpl): New method.
2627         (getListeners): New method.
2628         (label): Made package-private, not private.
2629         * java/awt/Canvas.java: Implemented class body.
2630         * java/awt/Color.java (brighter): New method.
2631         (darker): New method.
2632         (hashCode): New method.
2633         * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
2634         (getGraphicsConfiguration): Delegate to
2635         getGraphicsConfigurationImpl().
2636         (getGraphicsConfigurationImpl): New method.
2637         (getToolkit): Only return value from peer if not null.
2638         (isDisplayable): Check with parent.
2639         (isShowing): No parent implies not showing.
2640         (getForeground): Check parent property if local is null.
2641         (getBackground): Likewise.
2642         (getFont): Likewise.
2643         (setForeground): Inform peer.
2644         (setBackground): Likewise
2645         (setLocale): Invalidate component.
2646         (getColorModel): Implemented.
2647         (setLocation): Invalidate, or ignore if no change.
2648         (setSize): Invalidate, or ignore if no change.
2649         (setBounds): Invalidate, or ignore if no change.
2650         (isOpaque): By default, heavyweight implies opaque.
2651         (isLightweight): Implemented.
2652         (getMaximumSize): Implemented.
2653         (doLayout): Implemented, NOP.
2654         (validate): Implemented, NOP.
2655         (invalidate): Only propagate to parent if parent was valid.
2656         (getGraphics): Implemented.
2657         (getFontMetrics): Implemented.
2658         (update): Implemented.
2659         (paintAll): Implemented.
2660         (repaint): Implemented all repaint methods.
2661         (print): Implemented.
2662         (printAll): Implemented.
2663         (createImage): Implemented.
2664         (dispatchEvent): Give the peer a chance to handle the event.
2665         (dispatchEventImpl): Dispatch paint events.
2666         (enableEvents): Lightweights enable events on parent component.
2667         (coalesceEvents): Coalesce paint events, and select event type
2668         using a switch.
2669         (coalescePaintEvents): New method.
2670         (processEvent): Fix unfortunate ordering of statements, and call
2671         correct method for MOUSE_CLICKED.
2672         (processPaintEvent): New method.
2673         (addNotify): Allow container to notify children before event
2674         mask is set in peer.
2675         (addNotifyContainerChildren): New method.
2676         (removeNotify): Visibility should not change on removeNotify.
2677         (paramString): Implemented.
2678         (list): Implemented two of the list methods.
2679         * Container (myInsets): Removed, insets are managed by peer.
2680         (getInsets): Query peer.
2681         (addImpl): Fix reparenting, enable events for lightweights,
2682         initialize component array.
2683         (validate): Call doLayout in validateTree() instead.
2684         (validateTree): Do nothing if already valid. Call beginValidate(),
2685         endValidate() on peer. Call validateTree() instead of validate()
2686         for children that are containers. Mark valid after validation of
2687         children.
2688         (setFont): Partial implementation.
2689         (paint): Implemented.
2690         (visitChildren): New method.
2691         (visitChild): New method.
2692         (update): Implemented.
2693         (print): Implemented.
2694         (paintComponents): Implemented.
2695         (printComponents): Consider translation and clipping.
2696         (getComponentAt): Ignore invisible children. Return this if no
2697         child match.
2698         (addNotify): Call super.
2699         (addNotifyContainerChildren): New method.
2700         (paramString): Implemented.
2701         (list): Implemented.
2702         * java/awt/EventQueue (invokeAndWait): Get system event queue the
2703         right way.
2704         (invokeLater): Likewise.
2705         (isDispatchThread): Likewise.
2706         * java/awt/FontMetrics (getLeading): Formula change.
2707         (getDescent): Consider leading also.
2708         (getMaxAscent): Default to getAscent().
2709         (getMaxDescent): Default to getDescent.
2710         (getMaxAdvance): Return value signifying unknown.
2711         (charWidth): Both methods implemented.
2712         (charsWidth): Implemented.
2713         (bytesWidth): Implemented.
2714         (getWidths): Implemented.
2715         * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
2716         state): New fields.
2717         (Frame): Rearragend constuctor chaining to disallow null being
2718         passed as a graphics configuration.
2719         (getTitle): Return empty string if null.
2720         (dispose): Removed.
2721         (getIconImage): New method.
2722         (setIconImage): New method.
2723         (finalize): New method.
2724         (setMenuBar): Notify peer.
2725         (isResizable): New method.
2726         (setResizable): New method.
2727         (getState): New method.
2728         (getFont): Removed.
2729         (remove): Implemented.
2730         (removeNotify): New method.
2731         (getFrames): New method.
2732         * java/awt/Graphics.java: Implemented body of class.
2733         * java/awt/Graphics2D.java: New file.
2734         * java/awt/GraphicsConfiguration.java: Enabled part of the API.
2735         * java/awt/Image.java: Implemented body of class.
2736         * java/awt/Panel.java (Panel): Call correct super constructor.
2737         (addNotify): Implemented.
2738         * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
2739         * java/awt/RenderingHints.java: New file.
2740         * java/awt/Toolkit.java (createComponent): Implemented.
2741         (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
2742         * java/awt/Window.java (Window): Two new constructors. Reordered
2743         constructor chaining.
2744         (getGraphicsConfigurationImpl): New method.
2745         (finalize): Call super.
2746         (addNotify): Call super.
2747         (pack): Do layout stuff.
2748         (show): Ensure that peer exists and that component is valid.
2749         (dispose): Dispose owned children.
2750         (getOwner): Simplify code, casting null pointers is valid.
2751         (getGraphicsConfiguration): Ask peer if local value is null.
2752         * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
2753         getcmd().
2754         * java/awt/image/BufferedImage.java: New file.
2755         * java/awt/image/RasterOp.java: New file.
2756         * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
2757         More powerfull replacement for getColorModel().
2758         (getColorModel) Removed.
2759         (setEventMask) New method.
2760         * Makefile.am: Added new files.
2761         * Makefile.in: Rebuilt.
2762
2763 2000-08-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2764
2765         * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
2766         (finit_leg_name): New global.
2767         (java::lang::Class::getDeclaredMethods): Test for `finit$' or
2768         `$finit$'. This is a backward compatibility hack.
2769         (java::lang::Class::_getMethods): Likewise.
2770
2771 2000-08-15  Andrew Haley  <aph@cygnus.com>
2772
2773         * include/jvm.h (_Jv_HashCode): New hash code.
2774
2775 2000-08-15  Tom Tromey  <tromey@cygnus.com>
2776
2777         * java/io/ByteArrayOutputStream.java: Merged with Classpath.
2778
2779 Sun Aug 13 19:53:01 2000  Anthony Green  <green@redhat.com>
2780
2781         * THANKS: More thanks.
2782
2783 2000-08-10  Tom Tromey  <tromey@cygnus.com>
2784
2785         * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
2786         when errno not set.
2787         (connect): Likewise.
2788         (accept): Likewise.
2789         (getOption): Likewise.
2790         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
2791         case when errno not set.
2792         (peek): Likewise.
2793         (send): Likewise.
2794         (receive): Likewise.
2795         (mcastGrp): Likewise.
2796         (setOption): Likewise.
2797         (getOption): Likewise.
2798
2799 2000-08-10  Bryce McKinlay  <bryce@albatross.co.nz>
2800             John Stracke <francis@ecal.com>
2801
2802         * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
2803         (connect): Don't falsely claim HTTP/1.1 compliance. Call 
2804         getHttpHeaders().
2805         (disconnect): Don't unset connected flag.
2806         (getHeaderField (String)): Call connect() if not connected.
2807         (getHeaderField (int)): Ditto.
2808         (getHeaderFieldKey): Ditto.
2809         (getHttpHeaders): Don't call connect(). 
2810         * java/net/HttpURLConnection.java (instanceFollowRedirects,
2811         gotResponseVals): New fields.
2812         (getResponseCode): Call getResponseVals() conditionally.
2813         (getResponseMessage): Ditto.
2814         (getResponseVals): Call connect(). Don't throw FileNotFoundException.   
2815
2816 2000-08-09  Bryce McKinlay  <bryce@albatross.co.nz>
2817
2818         * Makefile.am: Move beans and applet classes to awt_java_source_files.
2819         * Makefile.in: Rebuilt.
2820         * java/awt/Color.java (getTransparency): New method.
2821         * java/awt/Component.java: Various updates.
2822         * java/awt/Container.java (removeNotify): Call super.removeNotify()
2823         after dealing with children.
2824         * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
2825         * java/awt/Window.java: Various new methods and updates.
2826         * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
2827         to int for switch.
2828         * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
2829         * java/awt/event/WindowEvent.java (paramString): Ditto.
2830         * java/awt/geom/Dimension2D.java (clone): Wrap super call with
2831         try/catch block.
2832         * java/awt/geom/Point2D.java (clone): Ditto.
2833         * java/awt/geom/RectangularShape.java (clone): Ditto.
2834         * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
2835         isAlphaPremultiplied): Make package-private, not private.       
2836         
2837 2000-08-08  Tom Tromey  <tromey@cygnus.com>
2838
2839         * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
2840         surrogate characters.
2841         * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
2842         true.
2843         (write): Correct handling of surrogate characters.
2844
2845 2000-08-07  Tom Tromey  <tromey@cygnus.com>
2846
2847         * java/lang/reflect/Method.java (hashCode): Use getName().
2848         (toString): Likewise.
2849         * java/lang/reflect/natMethod.cc (getType): Initialize
2850         exception_types.
2851
2852         * java/lang/reflect/Method.java (toString): Use Class.getName, not
2853         Class.toString.
2854         * java/lang/reflect/Field.java (toString): Correct formatting.
2855         From Corey Minyard.
2856
2857         * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
2858         rewrote.
2859         (receive): Streamlined.
2860
2861 2000-08-05  Tom Tromey  <tromey@cygnus.com>
2862
2863         * java/io/PrintWriter.java: Merged comments from Classpath.
2864         (printlnUnsynchronized): Removed.
2865         (println()): Print the separator.
2866         (println): Call println(), not printlnUnsynchronized.
2867         (out): Now protected, to match spec.
2868
2869 2000-08-04  Tom Tromey  <tromey@cygnus.com>
2870
2871         * java/io/StreamTokenizer.java (TT_NONE): Now private.
2872         (nextToken): Handle backslashed newline.  From Oskar Liljeblad.
2873         For PR java.io/301.
2874
2875 2000-08-03  Warren Levy  <warrenl@cygnus.com>
2876
2877         * java/io/ObjectInputStream.java (readFields): Turn off
2878         readDataFromBlock while reading via GetField.
2879         (GetField$1.get(String, Object)): Pass Class of default value to
2880         getField.
2881         (getField): Allow for null default values.
2882
2883         * java/io/ObjectOutputStream.java: Fixed typo in comment.
2884         (PutField$1.put): Fixed calls of checkType in most of the put
2885         methods to pass the correct parameter.
2886         (PutField$1.put(String, Object)): Allow for null value arg.
2887         (PutField$1.write): Turn off writeDataAsBlocks while writing via
2888         PutField.
2889
2890         * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
2891         typo in spec'ed field name.
2892         (getSerialPersistentFields): Changed spelling of method to match
2893         the correct spelling of the spec'ed field name.
2894
2895 2000-08-03  Tom Tromey  <tromey@cygnus.com>
2896
2897         * Makefile.in: Rebuilt.
2898         * Makefile.am (awt_java_source_files): Added new files.
2899
2900 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
2901
2902         * Makefile.am: Add new AWT stubs.
2903         * java/awt/Canvas.java: New placeholder class.
2904         * java/awt/Checkbox.java: Ditto.
2905         * java/awt/CheckboxMenuItem.java: Ditto.
2906         * java/awt/Choice.java: Ditto.
2907         * java/awt/Dialog.java: Ditto.
2908         * java/awt/FileDialog.java: Ditto.
2909         * java/awt/List.java: Ditto.
2910         * java/awt/ScrollPane.java: Ditto.
2911         * java/awt/TextField.java: Ditto.
2912         * java/awt/datatransfer/Clipboard.java: Ditto.
2913         * java/awt/Component.java (treeLock): Now a static String. Add comment.
2914         * java/awt/MenuItem.java (MenuItem): Add default constructor.
2915         * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs. 
2916         Some commented out. Partially implemented.
2917         * java/awt/natToolkit.cc: Removed file.
2918
2919 2000-08-03  Bryce McKinlay  <bryce@albatross.co.nz>
2920
2921         * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
2922         Fixes "make -j" builds.
2923         * Makefile.in: Rebuild.
2924
2925 2000-08-02  Tom Tromey  <tromey@cygnus.com>
2926
2927         * Makefile.in: Rebuilt.
2928         * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
2929         * java/net/natPlainSocketImpl.cc: Include posix.h.
2930         (accept): Use _Jv_select.
2931         * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
2932         (receive): Use _Jv_select.
2933         * java/io/natFileDescriptorPosix.cc: Include posix.h.
2934         (available): Use _Jv_select.
2935         * java/lang/natSystem.cc: Include posix.h.
2936         (currentTimeMillis): Use _Jv_gettimeofday.
2937         * include/posix.h: New file.
2938         * posix.cc: New file.
2939
2940         * scripts/encodings.pl: New file.
2941         * Makefile.in: Rebuilt.
2942         * Makefile.am (convert_source_files): Added IOConverter.java.
2943         * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
2944         IOConverter.
2945         (getDefaultDecodingClass): Canonicalize default encoding name.
2946         (getEncoder): Likewise.
2947         * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
2948         IOConverter.
2949         (getDefaultDecodingClass): Canonicalize default encoding name.
2950         (getDecoder): Likewise.
2951         * gnu/gcj/convert/IOConverter.java: New file.
2952
2953 2000-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
2954
2955         * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
2956         to match C declaration in ffi.h.
2957         * Makefile.am: Add java/awt/Button.java.
2958         * Makefile.in: Rebuilt.
2959
2960 2000-07-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2961
2962         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
2963         cast of the second argument to `ffi_raw_call' changed to match
2964         prototype.
2965
2966 2000-07-26  Alexandre Petit-Bianco  <apbianco@cygnus.com>
2967
2968         * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
2969         argument to `ffi_raw_call' changed to match prototype.
2970
2971 2000-07-31  Bryce McKinlay  <bryce@albatross.co.nz>
2972
2973         * java/awt/Component.java (toString): Implemented.
2974         * java/awt/Container.java (addImpl): Remove FIXME. Only call 
2975         dispatchEvent() to dispatch the event.
2976         (removeImpl): Ditto.
2977
2978 2000-07-30  Anthony Green  <green@redhat.com>
2979
2980         * java/awt/Component.java: Add treeLock object.
2981         (getTreeLock): Implement.
2982         (isShowing): Implement.
2983
2984 2000-07-30  Tom Tromey  <tromey@cygnus.com>
2985
2986         * java/awt/BorderLayout.java (BorderLayout()): New constructor.
2987
2988         * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
2989
2990         * java/awt/Window.java (addNotify): Wrote.
2991         (addWindowListener): Wrote.
2992         (getLocale): Wrote.
2993         (getWarningString): Wrote.
2994         (processEvent): Wrote.
2995         (processWindowEvent): Wrote.
2996         (removeWindowListener): Wrote.
2997         (show): Call validate(), setVisible().
2998         (toBack): Wrote.
2999         (toFront): Wrote.
3000
3001         * java/awt/Toolkit.java (createWindow): Declare.
3002
3003         * java/awt/Frame.java (addNotify): Use getToolkit to find
3004         toolkit.
3005
3006         * java/awt/Component.java (invalidate): Wrote.
3007         (isValid): Wrote.
3008         (getToolkit): Wrote.
3009
3010         * java/awt/Container.java (addContainerListener): Removed
3011         unnecessary cast.
3012         (removeContainerListener): Likewise.
3013         (addImpl): Wrote.
3014         (add(Component)): Use it.
3015         (add(String,Component)): Likewise.
3016         (add(Component,int)): Likewise.
3017         (add(Component,Object)): Likewise.
3018         (add(Component,Object,int)): Likewise.
3019         (doLayout): Wrote.
3020         (getAlignmentX): Wrote.
3021         (getAlignmentY): Wrote.
3022         (getComponentAt): Wrote.
3023         (getMaximumSize): Wrote.
3024         (invalidate): Wrote.
3025         (list(PrintStream,int)): Wrote.
3026         (list(PrintWriter,int)): Wrote.
3027         (getMinimumSize): Wrote.
3028         (getPreferredSize): Wrote.
3029         (printComponents): Wrote.
3030         (processContainerEvent): Look at containerListener, not
3031         componentListener.
3032         (remove): Added event processing and peer destruction.
3033         (removeAll): Use remove.
3034         (removeNotify): Wrote.
3035         (validate): Wrote.
3036         (validateTree): Wrote.
3037
3038         * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
3039         * java/awt/Label.java (addNotify): Do nothing if peer exists.
3040         * java/awt/Container.java (addNotify): Don't create Container
3041         peer.
3042         * java/awt/Button.java (addNotify): Do nothing if peer exists.
3043
3044 2000-07-30  Tom Tromey  <tromey@cygnus.com>
3045
3046         * java/awt/Container.java (remove(int)): Wrote.
3047         (remove(Component)): Wrote.
3048         (add(Component)): Wrote.
3049         (add(Component,int)): Wrote.
3050         (removeAll): Wrote.
3051         (addNotify): Set our own peer.
3052         * java/awt/Scrollbar.java (listeners): Changed type.
3053         (Scrollbar): Don't initialize listeners.
3054         (addNotify): Wrote.
3055         (setValue): Call setValues.
3056         (setMinimum): Likewise.
3057         (setMaxPriority): Likewise.
3058         (setVisibleAmount): Likewise.
3059         (setValues): Wrote.
3060         (setUnitIncrement): Forward to peer.
3061         (setLineIncrement): Call setUnitIncrement.
3062         (setPageIncrement): Call setBlockIncrement.
3063         (setBlockIncrement): Forward to peer.
3064         (addAdjustmentListener): Rewrote.
3065         (removeAdjustmentListener): Rewrote.
3066         (processAdjustmentEvent): Rewrote.
3067         (paramString): Wrote.
3068         * Makefile.in: Rebuilt.
3069         * Makefile.am (awt_java_source_files): Added Button.java.
3070         * java/awt/Button.java: New file.
3071         * java/awt/Toolkit.java (createLabel): Declare.
3072         (createButton): Likewise.
3073         (createScrollbar): Likewise.
3074         (createContainer): Likewise.
3075         * java/awt/Label.java (addNotify): Wrote.
3076         (setAlignment): Call setAlignment in the peer.
3077         (setText): Call setText in the peer.
3078
3079 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3080
3081         * java/io/ObjectOutputStream.java (writeObject): Per spec, call
3082         NotSerializableException with just the class name.
3083
3084 2000-07-26  Andrew Haley  <aph@cygnus.com>
3085
3086         * interpret.cc (continue1): Insert missing break into switch.
3087
3088 2000-07-28  Warren Levy  <warrenl@cygnus.com>
3089
3090         * java/io/ObjectStreamException.java: Made constructors protected.
3091
3092 2000-07-27  Tom Tromey  <tromey@cygnus.com>
3093
3094         * java/io/OutputStreamWriter.java (close): Only flush if not
3095         closed.
3096
3097 2000-07-27  Warren Levy  <warrenl@cygnus.com>
3098
3099         * mauve-libgcj: Activated serialization tests.
3100         * gcj/field.h (getModifiers): Mask off unknown flags.
3101         * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
3102         spurious bits don't cause discrepancies.
3103         * java/io/ObjectOutputStream.java: Fixed typo in comment.
3104         * java/io/ObjectStreamClass.java: Fixed typos in comments.
3105         (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
3106         (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
3107         * java/lang/Throwable.java (serialVersionUID): New field.
3108         * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
3109         * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
3110         unknown flags.
3111         * java/lang/reflect/natMethod.cc: Ditto.
3112         * java/security/Key.java (serialVersionUID): Removed field for now.
3113         * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
3114         * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
3115
3116 2000-07-22  Tom Tromey  <tromey@cygnus.com>
3117
3118         * java/awt/geom/RectangularShape.java (getPathIterator):
3119         Wrote.
3120
3121 2000-07-23  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3122
3123         * libjava/java/awt/image/ColorModel.java: New file, replaces the
3124         stub libjava/java/awt/ColorModel.java which was located in the
3125         wrong package.
3126         * libjava/java/awt/image/ComponentColorModel.java: New file.
3127         * libjava/java/awt/image/ComponentSampleModel.java: New file.
3128         * libjava/java/awt/image/DataBuffer.java: New file.
3129         * libjava/java/awt/image/DataBufferByte.java: New file.
3130         * libjava/java/awt/image/DataBufferInt.java: New file.
3131         * libjava/java/awt/image/DataBufferUShort.java: New file.
3132         * libjava/java/awt/image/DirectColorModel.java: New file.
3133         * libjava/java/awt/image/PackedColorModel.java: New file.
3134         * libjava/java/awt/image/Raster.java: New file.
3135         * libjava/java/awt/image/SampleModel.java: New file.
3136         * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
3137         file.
3138         * libjava/java/awt/image/IndexColorModel.java: New file.
3139         * libjava/java/awt/image/ImageConsumer.java: Removed import of
3140         java.awt.ColorModel stub.
3141
3142         * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
3143         * gnu/gcj/util/Buffers.java: New file, utility class.
3144
3145         * libjava/Makefile.am: Updated to include new files.
3146         * libjava/Makefile.in: Rebuilt.
3147
3148 2000-07-23  Oskar Liljeblad <osk@hem.passagen.se>
3149
3150         * java/io/StreamTokenizer.java: Merged with classpath.
3151
3152 2000-07-20  Tom Tromey  <tromey@cygnus.com>
3153
3154         * Makefile.in: Rebuilt.
3155         * Makefile.am (awt_java_source_files): Updated for new files.
3156         * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
3157         * java/awt/Label.java: New file.
3158         * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
3159         (createIntersection, createUnion, getBounds2D): New methods.
3160         * java/awt/Scrollbar.java: New file.
3161         * java/awt/Shape.java: Updated to 1.2.
3162         * java/awt/geom/AffineTransform.java: New file.
3163         * java/awt/geom/Ellipse2D.java: New file.
3164         * java/awt/geom/NoninvertibleTransformException.java: New file.
3165         * java/awt/geom/PathIterator.java: New file.
3166         * java/awt/geom/Rectangle2D.java: New file.
3167         * java/awt/geom/RectangularShape.java: New file.
3168         * java/awt/geom/Point2D.java (Double, Float): New inner classes.
3169         * java/awt/geom/IllegalPathStateException.java: New file.
3170         
3171         * scripts/showval.java: New file.
3172
3173         * scripts/classes.pl (scan): Print inner classes properly.
3174         * gcj/javaprims.h: Updated class list.
3175
3176         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
3177         initialize String fields for interpreted classes.  Fixes bug
3178         reported by Hans Boehm.
3179
3180         * java/io/File.java (getParentFile): New method, from Classpath
3181         via Oskar Liljeblad.
3182
3183         * java/util/Vector.java (remove(Object)): Implemented.
3184
3185 2000-07-19  Jeff Sturm  <jeff.sturm@appnet.com>
3186
3187         * java/lang/natThrowable.cc (fillInStackTrace): Check for
3188         zero return from backtrace().
3189
3190 2000-07-15  Bryce McKinlay  <bryce@albatross.co.nz>
3191
3192         * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
3193         synchronized block.
3194         * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
3195         before calling notifyAll().
3196
3197 2000-07-13  Bryce McKinlay  <bryce@albatross.co.nz>
3198
3199         Add missing files from last check-in:
3200         * java/awt/image/ImageConsumer.java: New file.
3201         * java/awt/image/ImageProducer.java: New file.
3202         * java/awt/image/ImageObserver.java: New file.
3203
3204 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3205
3206         Merged implementation of java.applet from classpath:
3207         * java/applet/Applet.java: New file.
3208         * java/applet/AppletContext.java: New file.
3209         * java/applet/AppletStub.java: New file.
3210         * java/applet/AudioClip.java: New file.
3211
3212         * Makefile.am: Added new java.applet classes.
3213         * Makefile.in: Rebuilt.
3214
3215 2000-07-12  Bryce McKinlay  <bryce@albatross.co.nz>
3216
3217         AWT Stuff:
3218         * java/util/ResourceBundle.java (getLocale): stub.
3219         * Makefile.am: Added new AWT classes.
3220         * Makefile.in: Rebuilt.
3221         * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed, 
3222         constructors. Fix toString() and paramString().
3223         * java/awt/AWTEventMulticaster.java: New class. Implemented.
3224         * java/awt/CheckboxGroup.java: New class.
3225         * java/awt/ColorModel.java: New class.
3226         * java/awt/Component.java: Added stubs for most methods. Implemented 
3227         event dispatch.
3228         * java/awt/Container.java: ditto.
3229         * java/awt/ComponentOrientation.java: New class. Partly implemented.
3230         * java/awt/Cursor.java: ditto.
3231         * java/awt/Event.java: Fix paramString().
3232         * java/awt/EventQueue.java: New class. Implemented.
3233         * java/awt/Font.java: Added additional stub methods. Implemented 
3234         toString().
3235         * java/awt/FontMetrics.java: New class. Stubbed.
3236         * java/awt/GraphicsConfiguration.java: New class. Complete, except for 
3237         Java2D parts.
3238         * java/awt/Insets.java: New class. Implemented.
3239         * java/awt/Menu.java: Add new methods. Partially implemented.
3240         * java/awt/MenuItem.java: Add new methods and fields. Partially 
3241         implemented.
3242         * java/awt/MenuShortcut.java: New class. Implemented.
3243         * java/awt/Panel.java: New class. Placeholder.
3244         * java/awt/PopupMenu.java: New class. Stubbed.
3245         * java/awt/Rectangle.java: New class. Implemented.
3246         * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
3247         * java/awt/event/ActionEvent.java: Implement paramString().
3248         * java/awt/event/AdjustmentEvent.java: Implement paramString().
3249         * java/awt/event/ComponentEvent.java: Implement paramString().
3250         * java/awt/event/ContainerEvent.java: Implement paramString().
3251         * java/awt/event/FocusEvent.java: Implement paramString().
3252         * java/awt/event/HierarchyBoundsAdapter.java: New class.
3253         * java/awt/event/HierarchyBoundsListener.java: New class.
3254         * java/awt/event/HierarchyEvent.java: New class.
3255         * java/awt/event/HierarchyListener.java: New class.
3256         * java/awt/event/InputMethodEvent.java: Implement paramString().
3257         * java/awt/event/InvocationEvent.java: Implement paramString(). Throw 
3258         exception if !catchExceptions.
3259         * java/awt/event/ItemEvent.java: Implement paramString().
3260         * java/awt/event/KeyEvent.java: Implement paramString().
3261         * java/awt/event/MouseEvent.java: Implement paramString().
3262         * java/awt/event/PaintEvent.java: Implement paramString().
3263         * java/awt/event/TextEvent.java: Implement paramString().
3264         * java/awt/event/WindowEvent.java: Implement paramString().
3265         
3266         AWT Peer interfaces:
3267         * java/awt/peer/ButtonPeer.java: New file.
3268         * java/awt/peer/ListPeer.java: New file.
3269         * java/awt/peer/CanvasPeer.java: New file.
3270         * java/awt/peer/MenuBarPeer.java: New file.
3271         * java/awt/peer/CheckboxMenuItemPeer.java: New file.
3272         * java/awt/peer/MenuComponentPeer.java: New file.
3273         * java/awt/peer/CheckboxPeer.java: New file.
3274         * java/awt/peer/MenuItemPeer.java: New file.
3275         * java/awt/peer/ChoicePeer.java: New file.
3276         * java/awt/peer/MenuPeer.java: New file.
3277         * java/awt/peer/ComponentPeer.java: Implemented.
3278         * java/awt/peer/PanelPeer.java: New file.
3279         * java/awt/peer/ContainerPeer.java: Implemented.
3280         * java/awt/peer/PopupMenuPeer.java: New file.
3281         * java/awt/peer/DialogPeer.java: New file.
3282         * java/awt/peer/ScrollPanePeer.java: New file.
3283         * java/awt/peer/FileDialogPeer.java: New file.
3284         * java/awt/peer/ScrollbarPeer.java: New file.
3285         * java/awt/peer/FontPeer.java: New file.
3286         * java/awt/peer/TextAreaPeer.java: New file.
3287         * java/awt/peer/FramePeer.java: Implemented.
3288         * java/awt/peer/TextComponentPeer.java: New file.
3289         * java/awt/peer/LabelPeer.java: New file.
3290         * java/awt/peer/TextFieldPeer.java: New file.
3291         * java/awt/peer/LightweightPeer.java: New file.
3292         * java/awt/peer/WindowPeer.java: Implemented.
3293
3294 2000-07-06  Tom Tromey  <tromey@cygnus.com>
3295
3296         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
3297         Initialize static final String fields.
3298
3299 2000-07-03  Tom Tromey  <tromey@cygnus.com>
3300
3301         * java/io/PrintWriter.java (print): Call write(String), not
3302         print(String).  See PR libgcj/277.
3303         (print(String)): Use write, not out.write.
3304
3305 2000-06-30  Tom Tromey  <tromey@cygnus.com>
3306
3307         * include/jni.h: Include <gcj/array.h>.  Fixes PR libgcj/270.
3308
3309 2000-06-27  Andrew Haley  <aph@cygnus.com>
3310
3311        * java/io/File.java (createTempFile): Close the FileDescriptor
3312        used to create a temp file.  Fixes some of PR 203.
3313        * java/io/natFileDescriptorPosix.cc (open): Call garbage
3314        collection if we run out of file handles.
3315
3316 2000-06-28  Warren Levy  <warrenl@cygnus.com>
3317
3318         * gnu/java/security/provider/Gnu.java: New file.
3319         * gnu/java/security/provider/SHA.java: New file.
3320         * gnu/java/security/provider/SHA1PRNG.java: New file.
3321         * Makefile.am: Added the above files.
3322         * Makefile.in: Rebuilt.
3323
3324         * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
3325
3326 2000-06-28  Bryce McKinlay  <bryce@albatross.co.nz>
3327
3328         * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
3329         (destroyed_flag): Removed.
3330         (isDestroyed, removeGroup, removeThread): Test for parent == null.      
3331         (activeCount): Added spec note.
3332
3333 2000-06-27  Warren Levy  <warrenl@cygnus.com>
3334
3335         * java/security/Principal.java: New file.
3336         * Makefile.am: Added Principal.java.
3337         * Makefile.in: Rebuilt.
3338
3339 2000-06-27  Rolf W. Rasmussen  <rolfwr@ii.uib.no>
3340
3341         * java/awt/event/MouseEvent.java: Fixed coordinate space
3342         confusion.
3343
3344 2000-06-27  Tom Tromey  <tromey@cygnus.com>
3345
3346         * java/io/PushbackInputStream.java (read): If there are characters
3347         in the buffer, don't also call super.read().
3348         * java/io/PushbackReader.java (read): If there are characters in
3349         the buffer, don't also call super.read().
3350
3351         * java/lang/Double.java (valueOf): Call parseDouble().
3352
3353 2000-06-26  Warren Levy  <warrenl@cygnus.com>
3354
3355         * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
3356         (newVal): Renamed to newValue.
3357         * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
3358         * java/beans/beancontext/BeanContextServiceRevokedEvent.java
3359         (revokeNow): Renamed to invalidateRefs.
3360         * java/io/OptionalDataException.java: Updated FIXME.
3361         (eof): New placeholder field.
3362         (length); Ditto.
3363         * java/io/WriteAbortedException.java (message): Made transient.
3364         * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
3365         * java/lang/Throwable.java (stackTrace): Made transient.
3366         * java/net/InetAddress.java: Made Serializable.
3367         * java/security/KeyPair.java: Made Serializable.
3368         * java/security/Provider.java: Replaced with Classpath version that
3369         implements serialization and proper methods.
3370         * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
3371         (limits): Renamed to choiceLimits.
3372
3373 2000-06-24  Tom Tromey  <tromey@cygnus.com>
3374
3375         * java/lang/natDouble.cc (parseDouble): Renamed from
3376         doubleValueOf.
3377         * java/lang/Double.java (parseDouble): Renamed from
3378         doubleValueOf.  Now public.
3379
3380 2000-06-23  Andrew Haley  <aph@cygnus.com>
3381
3382         * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
3383         * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
3384
3385 2000-06-23  Tom Tromey  <tromey@cygnus.com>
3386
3387         * java/lang/reflect/natMethod.cc: Include <alloca.h>.
3388         * java/lang/natDouble.cc: Always include <alloca.h>.
3389         Fix for PR libgcj/267.
3390
3391 2000-06-21  Bryce McKinlay  <bryce@albatross.co.nz>
3392
3393         * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
3394         comply with classpath VM spec.
3395         (add(Group)): Rename to addGroup().
3396         * java/lang/Thread.java (Thread): Use addThread().
3397         * java/lang/natThread.cc (finish_): Use removeThread().
3398
3399 2000-06-20  Bryce McKinlay  <bryce@albatross.co.nz>
3400
3401         * java/lang/ThreadGroup.java: Merged with classpath.
3402         * prims.cc (_Jv_RunMain): Don't use `main_group'.
3403         * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
3404         argument.
3405         * java/lang/Thread.java (Thread): Bootstrap initial thread from 
3406         ThreadGroup.root if Thread.currentThread is null. Honour the 
3407         ThreadGroup's max priority setting.
3408
3409 2000-06-18  Tom Tromey  <tromey@cygnus.com>
3410
3411         * java/lang/natClass.cc (forName): Removed dead code.  Initialize
3412         returned class.  For PR gcj/260.
3413
3414 2000-06-16  Tom Tromey  <tromey@cygnus.com>
3415
3416         Fix for PR libgcj/261:
3417         * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
3418         argument.
3419         * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
3420         argument.  (This is a patch from long ago that somehow went
3421         missing.)
3422
3423 2000-06-15  Tom Tromey  <tromey@cygnus.com>
3424
3425         * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
3426         (read): Use it.
3427         (write): Likewise.
3428
3429 2000-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
3430
3431         Fix for PR java.lang/258:
3432         * prims.cc (_Jv_PrimClass): Set state of primitive class to 
3433         JV_STATE_DONE, to prevent accidental initialization.
3434         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call 
3435         _Jv_InterfaceAssignableFrom if target is an interface and source is an
3436         interface or an abstract class. Remove redundant initializeClass calls. 
3437         Remove duplicate if_idt test.
3438         (_Jv_InterfaceAssignableFrom): New function.
3439         * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
3440
3441 2000-05-31  Tom Tromey  <tromey@cygnus.com>
3442
3443         * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
3444         (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
3445         * include/jvm.h (struct _Jv_ArrayVTable): Declare.
3446         (NUM_OBJECT_METHODS): New define.
3447         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
3448         `array_vtable' parameter.  Added assertion.
3449         * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
3450         parameter.
3451
3452 2000-05-31  Bryce McKinlay  <bryce@albatross.co.nz>
3453
3454         * gcj/cni.h: Include <string.h>.
3455         * defineclass.cc: Include <alloca.h>.
3456         * interpret.cc: Ditto.
3457         * gij.cc: Include <stdlib.h>.
3458
3459 2000-05-30  Tom Tromey  <tromey@cygnus.com>
3460
3461         * include/name-finder.h: Include <sys/wait.h>.
3462         (_Jv_name_finder::pid): Now of type `pid_t'.
3463         (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
3464         * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
3465         `proc.waitFor()'.
3466
3467 2000-05-24  Warren Levy  <warrenl@cygnus.com>
3468
3469         * java/io/ObjectOutputStream.java (writeObject): Use component type
3470         when writing arrays.
3471         Fixed typo.
3472
3473 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
3474
3475         Fix for PR libgcj/226:
3476         * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
3477         since this is an installed header.
3478         
3479         Fix for PR libgcj/228:
3480         * java/util/zip/ZipFile (getInputStream): Create inflater with 
3481         nowrapper option.
3482         
3483         * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
3484         with DataFormatException.       
3485
3486 2000-05-20  Tom Tromey  <tromey@cygnus.com>
3487
3488         * Makefile.in: Rebuilt.
3489         * Makefile.am (hack1): Removed.
3490         (awto_files): Likewise.
3491         (libgcjawt_la_SOURCES): Likewise.
3492         (EXTRA_libgcjawt_la_SOURCES): Likewise.
3493         (libgcjawt_la_DEPENDENCIES): Likewise.
3494         (libgcjawt_la_LIBADD): Likewise.
3495         (libgcjawt_la_LDFLAGS): Likewise.
3496         (libgcjawt_la_LINK): Likewise.
3497         ($(awt_java_source_files:.java=.class)): Likewise.
3498         (libgcj.zip): Don't depend on AWT files.
3499         (MOSTLYCLEANFILES): Don't include AWT files.
3500         ($(awto_files)): Removed.
3501         (nat_headers): Removed AWT files.
3502         (cond_awt_java_source_files): Removed.
3503         (ordinary_java_source_files): Added awt_java_source_files.
3504         * libgcj.spec.in (*lib): Removed -lgcjawt.
3505         * configure: Rebuilt.
3506         * configure.in: Removed --enable-java-awt option.
3507
3508 2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>
3509
3510         * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
3511         (ZipEntry): Copy the `name' field.
3512         (clone): Implement JDK1.2 method.
3513         (setCompressedSize): ditto.
3514         (hashCode): ditto.
3515
3516 2000-05-19  Tom Tromey  <tromey@cygnus.com>
3517
3518         * java/io/BufferedWriter.java: Merged with Classpath.
3519         * java/io/BufferedOutputStream.java: Merged with Classpath.
3520
3521 2000-05-16  Andrew Haley  <aph@cygnus.com>
3522
3523         * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
3524         build_ia64_frame_state.
3525         * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
3526         defintion in gcc.
3527
3528 2000-05-15  Warren Levy  <warrenl@cygnus.com>
3529
3530         * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
3531         * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
3532         * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
3533         * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
3534         * gnu/gcj/beans/editors/ColorEditor.java: Removed.
3535         * gnu/gcj/beans/editors/FontEditor.java: Removed.
3536         * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
3537         * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
3538         * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
3539         * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
3540         * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
3541         * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
3542         * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
3543         * gnu/gcj/beans/editors/StringEditor.java: Removed.
3544         * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
3545         * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
3546         * gnu/gcj/io/NullOutputStream.java: Removed.
3547         * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
3548         * gnu/gcj/lang/ArrayHelper.java: Removed.
3549         * gnu/gcj/lang/ClassHelper.java: Removed.
3550         * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
3551
3552         * gnu/java/beans/BeanInfoEmbryo.java: New file.
3553         * gnu/java/beans/EmptyBeanInfo.java: New file.
3554         * gnu/java/beans/ExplicitBeanInfo.java: New file.
3555         * gnu/java/beans/IntrospectionIncubator.java: New file.
3556         * gnu/java/beans/editors/ColorEditor.java: New file.
3557         * gnu/java/beans/editors/FontEditor.java: New file.
3558         * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
3559         * gnu/java/beans/editors/NativeByteEditor.java: New file.
3560         * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
3561         * gnu/java/beans/editors/NativeFloatEditor.java: New file.
3562         * gnu/java/beans/editors/NativeIntEditor.java: New file.
3563         * gnu/java/beans/editors/NativeLongEditor.java: New file.
3564         * gnu/java/beans/editors/NativeShortEditor.java: New file.
3565         * gnu/java/beans/editors/StringEditor.java: New file.
3566         * gnu/java/beans/info/ComponentBeanInfo.java: New file.
3567         * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
3568         * gnu/java/io/NullOutputStream.java: New file.
3569         * gnu/java/io/ObjectIdentityWrapper.java: New file.
3570         * gnu/java/lang/ArrayHelper.java: New file.
3571         * gnu/java/lang/ClassHelper.java: New file.
3572         * gnu/java/lang/reflect/TypeSignature.java: New file.
3573
3574         * Makefile.am: Updated for moving Classpath files from gnu/gcj
3575         namespace back to the original Classpath gnu/java namespace.
3576         * Makefile.in: Rebuilt.
3577
3578         * java/beans/Beans.java: Namespace change.
3579         * java/beans/EventSetDescriptor.java: Namespace change.
3580         * java/beans/Introspector.java: Namespace change.
3581         * java/beans/PropertyEditorManager.java: Namespace change.
3582         * java/io/ObjectInputStream.java: Namespace change.
3583         * java/io/ObjectOutputStream.java: Namespace change.
3584         * java/io/ObjectStreamClass.java: Namespace change.
3585         * java/io/ObjectStreamField.java: Namespace change.
3586
3587 2000-04-21  Warren Levy  <warrenl@cygnus.com>
3588
3589         * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
3590         now that compiler patch is available.
3591         Removed unneeded System.loadLibrary.
3592         * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
3593         * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
3594
3595 2000-04-19  Andrew Haley  <aph@cygnus.com>
3596
3597         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
3598         and target classes have been initialized.
3599
3600 2000-04-19  Andrew Haley  <aph@cygnus.com>
3601
3602         * java/lang/String.java: implement Serializable, Comparable.
3603         (compareTo (Object)): New method.
3604
3605 2000-04-19  Warren Levy  <warrenl@cygnus.com>
3606
3607         * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
3608         instead of getField to retrieve non-public field.
3609         (getSerialPersistantFields): Ditto.
3610
3611 2000-04-18  Warren Levy  <warrenl@cygnus.com>
3612
3613         * mauve-libgcj: Turned off object serialization tests temporarily
3614         due to compiler error.
3615
3616 2000-04-17  Warren Levy  <warrenl@cygnus.com>
3617
3618         * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
3619         to avoid build problem.
3620         (DEBUGln): Ditto.
3621         * mauve-libgcj: Turned on object serialization tests.
3622
3623 2000-04-17  Tom Tromey  <tromey@cygnus.com>
3624
3625         * libgcj.spec.in (*lib): Added -lgcjawt.
3626
3627 2000-04-17  Andrew Haley  <aph@cygnus.com>
3628
3629         * Makefile.am: Add new files: 
3630         gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
3631         gnu/gcj/io/shs.cc.
3632         * Makefile.in: Rebuilt.
3633
3634         * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
3635         interface that has no implementations.
3636         Check for an attempt to assign an abstract class to an interface.
3637
3638         * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
3639         if we fail to find MessageDigest.getInstance ("SHA").
3640
3641         * gnu/gcj/io/SimpleSHSStream.java: New file.
3642         * gnu/gcj/io/natSimpleSHSStream.java: New file.
3643         * gnu/gcj/io/shs.cc: New file.
3644         * gnu/gcj/io/shs.h: new file.
3645
3646         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
3647         serializable.
3648
3649         * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
3650         punctuation from the classname of an array element.
3651
3652         * gcj/javaprims.h: Add SimpleDigestStream.
3653         
3654 2000-04-17  Andrew Haley  <aph@cygnus.com>
3655
3656         * java/lang/natClass.cc (getPrivateField): Make recursive calls
3657         to getPrivateField for superclasses.
3658  
3659 2000-04-14  Andrew Haley  <aph@cygnus.com>
3660
3661         * Makefile.am: Add new files:
3662         java/io/ObjectOutputStream$PutField.h,
3663         java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
3664         java/io/natObjectOutputStream.cc
3665         * Makefile.in: Rebuilt.
3666         * gcj/Makefile.in: Rebuilt.
3667         * include/Makefile.in: Rebuilt.
3668         * java/lang/Class.h (getPrivateField): New method.
3669         (getPrivateMethod): Ditto.
3670         Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
3671         and java::io::ObjectStreamClass our friends.
3672         * java/lang/natClass.cc (getPrivateField): New method.
3673         (getPrivateMethod): Ditto.
3674         (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
3675         * gcj/javaprims.h: Add serialization classes.   
3676         * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
3677         (setByteField): Ditto.
3678         (setCharField): Ditto.
3679         (setDoubleField): Ditto.
3680         (setFloatField): Ditto.
3681         (setIntField): Ditto.
3682         (setLongField): Ditto.
3683         (setShortField): Ditto.
3684         (setObjectField): Ditto.
3685         * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
3686         Java.
3687         (getByteField): Ditto.
3688         (getCharField): Ditto.
3689         (getDoubleField): Ditto.
3690         (getFloatField): Ditto.
3691         (getIntField): Ditto.
3692         (getLongField): Ditto.
3693         (getShortField): Ditto.
3694         (getObjectField): Ditto.
3695         * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
3696         Java.
3697         (getSerialPersistantFields): Ditto.
3698         (getDefinedSUID): Ditto.
3699         * java/io/natObjectOutputStream.cc: New file.
3700         * java/io/natObjectInputStream.cc: New file.
3701         
3702 2000-04-13  Warren Levy  <warrenl@cygnus.com>
3703
3704         * java/io/ObjectInputStream.java: Temporary workarounds for compiler
3705         problems.  Revert to previous version to reproduce and when fixed.
3706
3707 2000-04-13  Warren Levy  <warrenl@cygnus.com>
3708
3709         * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
3710         * gnu/gcj/io/NullOutputStream.java: New file.
3711         * gnu/gcj/lang/reflect/TypeSignature.java: New file.
3712         * java/io/BlockDataException.java: New file.
3713         * java/io/Externalizable.java: New file.
3714         * java/io/InvalidClassException.java: New file.
3715         * java/io/InvalidObjectException.java: New file.
3716         * java/io/NotActiveException.java: New file.
3717         * java/io/NotSerializableException.java: New file.
3718         * java/io/ObjectInput.java: New file.
3719         * java/io/ObjectInputStream.java: New file.
3720         * java/io/ObjectInputValidation.java: New file.
3721         * java/io/ObjectOutput.java: New file.
3722         * java/io/ObjectOutputStream.java: New file.
3723         * java/io/ObjectStreamClass.java: New file.
3724         * java/io/ObjectStreamConstants.java: New file.
3725         * java/io/ObjectStreamField.java: New file.
3726         * java/io/Replaceable.java: New file.
3727         * java/io/Resolvable.java: New file.
3728         * java/io/SerializablePermission.java: New file.
3729         * java/io/WriteAbortedException.java: New file.
3730         * java/security/BasicPermission.java: New file.
3731         * java/security/DigestOutputStream.java: New file.
3732         * java/security/Guard.java: New file.
3733         * java/security/Permission.java: New file.
3734         * java/security/PermissionCollection.java: New file.
3735         * Makefile.am: Added above files.
3736         * Makefile.in: Rebuilt.
3737
3738         * java/beans/Beans.java (instantiate): Activated serialization code.
3739         * java/lang/SecurityManager.java (checkPermission): New method.
3740
3741 2000-04-12  Warren Levy  <warrenl@cygnus.com>
3742
3743         * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
3744         * gnu/gcj/beans/EmptyBeanInfo.java: New file.
3745         * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
3746         * gnu/gcj/beans/IntrospectionIncubator.java: New file.
3747         * gnu/gcj/beans/editors/ColorEditor.java: New file.
3748         * gnu/gcj/beans/editors/FontEditor.java: New file.
3749         * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
3750         * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
3751         * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
3752         * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
3753         * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
3754         * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
3755         * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
3756         * gnu/gcj/beans/editors/StringEditor.java: New file.
3757         * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
3758         * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
3759         * gnu/gcj/lang/ArrayHelper.java: New file.
3760         * gnu/gcj/lang/ClassHelper.java: New file.
3761         * java/beans/BeanDescriptor.java: New file.
3762         * java/beans/BeanInfo.java: New file.
3763         * java/beans/Beans.java: New file.
3764         * java/beans/Customizer.java: New file.
3765         * java/beans/DesignMode.java: New file.
3766         * java/beans/EventSetDescriptor.java: New file.
3767         * java/beans/FeatureDescriptor.java: New file.
3768         * java/beans/IndexedPropertyDescriptor.java: New file.
3769         * java/beans/IntrospectionException.java: New file.
3770         * java/beans/Introspector.java: New file.
3771         * java/beans/MethodDescriptor.java: New file.
3772         * java/beans/ParameterDescriptor.java: New file.
3773         * java/beans/PropertyChangeEvent.java: New file.
3774         * java/beans/PropertyChangeListener.java: New file.
3775         * java/beans/PropertyChangeSupport.java: New file.
3776         * java/beans/PropertyDescriptor.java: New file.
3777         * java/beans/PropertyEditor.java: New file.
3778         * java/beans/PropertyEditorManager.java: New file.
3779         * java/beans/PropertyEditorSupport.java: New file.
3780         * java/beans/PropertyVetoException.java: New file.
3781         * java/beans/SimpleBeanInfo.java: New file.
3782         * java/beans/VetoableChangeListener.java: New file.
3783         * java/beans/VetoableChangeSupport.java: New file.
3784         * java/beans/Visibility.java: New file.
3785         * java/beans/beancontext/BeanContext.java: New file.
3786         * java/beans/beancontext/BeanContextChild.java: New file.
3787         * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
3788         * java/beans/beancontext/BeanContextChildSupport.java: New file.
3789         * java/beans/beancontext/BeanContextContainerProxy.java: New file.
3790         * java/beans/beancontext/BeanContextEvent.java: New file.
3791         * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
3792         * java/beans/beancontext/BeanContextMembershipListener.java: New file.
3793         * java/beans/beancontext/BeanContextProxy.java: New file.
3794         * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
3795         New file.
3796         * java/beans/beancontext/BeanContextServiceProvider.java: New file.
3797         * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
3798         New file.
3799         * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
3800         * java/beans/beancontext/BeanContextServiceRevokedListener.java:
3801         New file.
3802         * java/beans/beancontext/BeanContextServices.java: New file.
3803         * java/beans/beancontext/BeanContextServicesListener.java: New file.
3804         * java/util/AbstractCollection.java: New file.
3805         * java/util/AbstractList.java: New file.
3806         * java/util/Arrays.java: New file.
3807         * Makefile.am: Added above files.
3808         * Makefile.in: Rebuilt.
3809
3810 2000-04-11  Warren Levy  <warrenl@cygnus.com>
3811
3812         * java/awt/AWTError.java: New file.
3813         * java/awt/AWTEvent.java: New file.
3814         * java/awt/AWTException.java: New file.
3815         * java/awt/ActiveEvent.java: New file.
3816         * java/awt/Adjustable.java: New file.
3817         * java/awt/BorderLayout.java: New file.
3818         * java/awt/Color.java: New file.
3819         * java/awt/Component.java: New file.
3820         * java/awt/Container.java: New file.
3821         * java/awt/Dimension.java: New file.
3822         * java/awt/Event.java: New file.
3823         * java/awt/Font.java: New file.
3824         * java/awt/Frame.java: New file.
3825         * java/awt/Graphics.java: New file.
3826         * java/awt/IllegalComponentStateException.java: New file.
3827         * java/awt/Image.java: New file.
3828         * java/awt/ItemSelectable.java: New file.
3829         * java/awt/LayoutManager.java: New file.
3830         * java/awt/LayoutManager2.java: New file.
3831         * java/awt/Menu.java: New file.
3832         * java/awt/MenuBar.java: New file.
3833         * java/awt/MenuComponent.java: New file.
3834         * java/awt/MenuContainer.java: New file.
3835         * java/awt/MenuItem.java: New file.
3836         * java/awt/Paint.java: New file.
3837         * java/awt/PaintContext.java: New file.
3838         * java/awt/Point.java: New file.
3839         * java/awt/Rectangle.java: New file.
3840         * java/awt/Shape.java: New file.
3841         * java/awt/TextArea.java: New file.
3842         * java/awt/TextComponent.java: New file.
3843         * java/awt/Toolkit.java: New file.
3844         * java/awt/Transparency.java: New file.
3845         * java/awt/Window.java: New file.
3846         * java/awt/natToolkit.cc: New file.
3847         * java/awt/event/AWTEventListener.java: New file.
3848         * java/awt/event/ActionEvent.java: New file.
3849         * java/awt/event/ActionListener.java: New file.
3850         * java/awt/event/AdjustmentEvent.java: New file.
3851         * java/awt/event/AdjustmentListener.java: New file.
3852         * java/awt/event/ComponentAdapter.java: New file.
3853         * java/awt/event/ComponentEvent.java: New file.
3854         * java/awt/event/ComponentListener.java: New file.
3855         * java/awt/event/ContainerAdapter.java: New file.
3856         * java/awt/event/ContainerEvent.java: New file.
3857         * java/awt/event/ContainerListener.java: New file.
3858         * java/awt/event/FocusAdapter.java: New file.
3859         * java/awt/event/FocusEvent.java: New file.
3860         * java/awt/event/FocusListener.java: New file.
3861         * java/awt/event/InputEvent.java: New file.
3862         * java/awt/event/InputMethodEvent.java: New file.
3863         * java/awt/event/InputMethodListener.java: New file.
3864         * java/awt/event/InvocationEvent.java: New file.
3865         * java/awt/event/ItemEvent.java: New file.
3866         * java/awt/event/ItemListener.java: New file.
3867         * java/awt/event/KeyAdapter.java: New file.
3868         * java/awt/event/KeyEvent.java: New file.
3869         * java/awt/event/KeyListener.java: New file.
3870         * java/awt/event/MouseAdapter.java: New file.
3871         * java/awt/event/MouseEvent.java: New file.
3872         * java/awt/event/MouseListener.java: New file.
3873         * java/awt/event/MouseMotionAdapter.java: New file.
3874         * java/awt/event/MouseMotionListener.java: New file.
3875         * java/awt/event/PaintEvent.java: New file.
3876         * java/awt/event/TextEvent.java: New file.
3877         * java/awt/event/TextListener.java: New file.
3878         * java/awt/event/WindowAdapter.java: New file.
3879         * java/awt/event/WindowEvent.java: New file.
3880         * java/awt/event/WindowListener.java: New file.
3881         * java/awt/geom/Dimension2D.java: New file.
3882         * java/awt/geom/Point2D.java: New file.
3883         * java/awt/peer/ComponentPeer.java: New file.
3884         * java/awt/peer/ContainerPeer.java: New file.
3885         * java/awt/peer/FramePeer.java: New file.
3886         * java/awt/peer/WindowPeer.java: New file.
3887         * java/util/Collection.java: New file.
3888         * java/util/Comparator.java: New file.
3889         * java/util/Iterator.java: New file.
3890         * java/util/List.java: New file.
3891         * java/util/ListIterator.java: New file.
3892         * Makefile.am: Added above files.
3893         * Makefile.in: Rebuilt.
3894
3895 2000-04-10  Warren Levy  <warrenl@cygnus.com>
3896
3897         * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
3898         * java/lang/FirstThread.java: Ditto.
3899         * java/lang/StringBuffer.java: Ditto.
3900         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
3901
3902         * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
3903         Special case handled in java.math.BigInteger.
3904         * java/math/BigInteger.java (divide): Handle the special case when
3905         dividing by 1 and the high bit of the dividend is set.
3906         (setShiftRight): Handle case when count == 0.
3907
3908 2000-04-05  Andrew Haley  <aph@cygnus.com>
3909
3910         * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
3911         special case.
3912
3913 2000-04-05  Andrew Haley  <aph@cygnus.com>
3914
3915         * sysdep/ia64.c (rse_address_add): Delete.
3916         (IS_NaT_COLLECTION_ADDR): Delete.
3917         (ia64_backtrace_helper): check for null unwind_info.
3918         
3919         * sysdep/ia64-frame.h: add calc_caller_bsp.
3920
3921         * java/lang/natThrowable.cc (printRawStackTrace): Flush
3922         PrintWriter.
3923
3924         * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
3925         (_Jv_remI): Likewise.
3926         (_Jv_divJ): Likewise.
3927         (_Jv_remJ): Likewise.
3928         
3929         * interpret.cc (continue1): Use divide subroutines to guarantee
3930         correct Java standard behaviour.
3931         Floating-point division should not abort; make it so.
3932
3933 2000-03-29  Tom Tromey  <tromey@cygnus.com>
3934
3935         * configure: Rebuilt.
3936         * configure.in: Test against `libgcj_sjlj', not
3937         `enable_sjlj_exceptions'.  Rearranged code to allow SYSDEP_SOURCES
3938         to be set even when using sjlj.
3939
3940 2000-03-24  Andrew Haley  <aph@cygnus.com>
3941
3942         * Makefile.am: Add file addr2name.awk.
3943         * Makefile.in: Rebuilt.
3944         * addr2name.awk: New file.
3945         * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
3946         lookups on ia64.
3947         * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
3948         blank line.
3949         
3950 2000-03-22  Andrew Haley  <aph@cygnus.com>
3951
3952         * configure.host: Add -funwind-tables for IA64.
3953         * Makefile.am (c_source_files): Add SYSDEP_SORCES.
3954         * Makefile.in: Rebuilt.
3955         * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
3956         * sysdep/ia64.c: New file.
3957         * sysdep/ia64-frame.h: New file.
3958         * configure.in: Add sysdep/ia64.c for ia64.
3959         * configure: Rebuilt.
3960         
3961 2000-03-17  Andrew Haley  <aph@cygnus.com>
3962
3963         * java/lang/natString.cc: Remove `register' keyword.
3964         interpret.cc: ditto.
3965
3966 2000-03-16  Andrew Haley  <aph@cygnus.com>
3967
3968         * configure.host (ia64): Enable interpreter.
3969
3970 2000-03-14  Hans Boehm  <boehm@acm.org>
3971
3972         * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
3973
3974 2000-03-14  Andrew Haley  <aph@cygnus.com>
3975
3976         * include/default-signal.h (MAKE_THROW_FRAME): Add arg
3977         `_exception'.
3978
3979 2000-03-10  Andrew Haley  <aph@cygnus.com>
3980
3981         * java/lang/ieeefp.h: Import latest version from fdlibm.
3982
3983 2000-03-14  Andrew Haley  <aph@cygnus.com>
3984
3985         * prims.cc (_Jv_ThrowSignal): New function.
3986         (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
3987         (catch_fpe): Ditto.
3988         * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
3989         * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
3990         * include/ppc-signal.h: New file.
3991
3992 2000-05-18  Bryce McKinlay  <bryce@albatross.co.nz>
3993
3994         * java/lang/Thread.java: Declare `data' as Object, not RawData.
3995         * java/lang/natThread.java (initialize_native): Cast `data' to
3996         jobject.
3997         * gnu/gcj/RawData.java: Clarify documentation.
3998
3999         From Gregory R. Warnes <warnes@biostat.washington.edu>:
4000         * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
4001         `jarFile', not `jarFileURL'.
4002
4003 2000-05-15  Andrew Haley  <aph@cygnus.com>
4004
4005         * include/ppc-signal.h: New file.
4006
4007 2000-05-11  Tom Tromey  <tromey@cygnus.com>
4008
4009         * java/util/zip/ZipInputStream.java (getNextEntry): When reading
4010         file headers, don't include `size' in the skip call.
4011
4012 2000-05-10  Bryce McKinlay  <bryce@albatross.co.nz>
4013
4014         * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
4015         Avoid arrayCopy() call where possible. Update `count' _after_ calling
4016         arrayCopy().
4017         (replace): Reimplemented. Fix javadoc.
4018         (reverse): Call ensureCapacity_unsynchronized().
4019         (StringBuffer (String)): Use DEFAULT_CAPACITY.
4020
4021         (replace): Calculate length for arraycopy() correctly.
4022         
4023 2000-05-09  Tom Tromey  <tromey@cygnus.com>
4024
4025         * java/lang/StringBuffer.java (toString): Don't mark buffer as
4026         shared.
4027         (insert(int,char[],int,int): New method.
4028         (delete): New method from Classpath.
4029         (deleteCharAt): Likewise.
4030         (substring): Likewise.
4031         (shared): No longer private.
4032         Added JavaDoc comments from Classpath.
4033         * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
4034         shared.
4035
4036 2000-05-07  Tom Tromey  <tromey@cygnus.com>
4037
4038         * Makefile.in: Rebuilt.
4039         * Makefile.am (LIBLINK): New macro.
4040         (libgcj_la_LINK): Use it.
4041         (libgcjawt_la_LINK): Likewise.
4042
4043 2000-05-06  Tom Tromey  <tromey@cygnus.com>
4044
4045         * Makefile.in: Rebuilt.
4046         * Makefile.am (libgcj.zip): Don't pass -L to javac.
4047
4048 2000-05-05  Tom Tromey  <tromey@cygnus.com>
4049
4050         Fix for PR libgcj/220:
4051         * Makefile.in: Rebuilt.
4052         * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
4053         (jv_convert_LDFLAGS): Likewise.
4054         (libgcj_la_LDFLAGS): Likewise.
4055         (GCJLINK): New macro.
4056         (jv_convert_LINK): Use it.
4057         (gij_LINK): Likewise.
4058         (libgcj_la_LINK): New macro.
4059         (libgcjawt_la_LINK): Likewise.
4060
4061 2000-05-04  Tom Tromey  <tromey@cygnus.com>
4062
4063         * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
4064         field.
4065         * boehm.cc (_Jv_MarkObj): Removed dead code.  Use `STATIC', not
4066         `0x0008'.
4067         Include Modifier.h.
4068
4069 2000-05-05  Bryce McKinlay  <bryce@albatross.co.nz>
4070
4071         * java/lang/natClass.cc (isInstance): Use __builtin_expect.
4072         (_Jv_IsAssignableFrom): Ditto.
4073         (_Jv_IsInstanceOf): Ditto.
4074         (_Jv_CheckCast): Ditto.
4075         (_Jv_CheckArrayStore): Ditto.
4076         * java/lang/Class.h (_Jv_InitClass): Ditto.     
4077         * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
4078         not `0'.
4079         (notify): Ditto.
4080         (notifyAll): Ditto.
4081         (wait): Ditto.
4082         (_Jv_MonitorExit): Ditto.
4083         * boehm.cc (_Jv_MarkObj): Ditto.
4084         (_Jv_MarkObj): Ditto.
4085         (_Jv_MarkArray): Ditto.
4086         * prims.cc (_Jv_AllocObject): Ditto.
4087         (_Jv_NewObjectArray): Ditto.
4088         (_Jv_NewPrimArray): Ditto.
4089         (_Jv_Malloc): Ditto.
4090         (_Jv_Realloc): Ditto.
4091         (_Jv_MallocUnchecked): Ditto.
4092         (_Jv_divI): Ditto.
4093         (_Jv_remI): Ditto.
4094         (_Jv_divJ): Ditto.
4095         (_Jv_remJ): Ditto.
4096
4097 2000-05-04  Tom Tromey  <tromey@cygnus.com>
4098
4099         * java/util/Locale.java (Locale): Don't explicitly check for
4100         null.
4101         * java/util/Hashtable.java (containsKey): Don't explicitly check
4102         for null.
4103         (get): Likewise.
4104         * java/util/BitSet.java (and, or, xor): Don't explicitly check for
4105         null.
4106         * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
4107         for null.
4108         * java/text/StringCharacterIterator.java
4109         (StringCharacterIterator): Don't check for null.
4110         * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
4111         for null pointer.
4112         * java/net/MulticastSocket.java (joinGroup): Don't explicitly
4113         check for null pointer.
4114         (leaveGroup): Likewise.
4115         * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
4116         comment.
4117         (setData): Likewise.
4118         * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
4119         for `p==null'.
4120
4121 2000-04-28  Jakub Jelinek  <jakub@redhat.com>
4122
4123         * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
4124         gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
4125         (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
4126         (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
4127         -rpath for in-gcc builds.
4128         * Makefile.in: Rebuilt.
4129
4130 2000-04-28  Tom Tromey  <tromey@cygnus.com>
4131
4132         * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
4133         Fix for PR gcj/218.
4134
4135 2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>
4136
4137         * libjava/java/lang/String.java (toString): Remove `final' hack.
4138
4139 2000-04-05  Tom Tromey  <tromey@cygnus.com>
4140
4141         Runtime support for PR gcj/2:
4142         * prims.cc (_Jv_ThrowNullPointerException): New function.
4143         * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
4144
4145 2000-04-27  Bryce McKinlay  <bryce@albatross.co.nz>
4146
4147         * prims.cc (_Jv_NewObjectArray): Fix typo.
4148
4149 2000-04-26  Tom Tromey  <tromey@cygnus.com>
4150
4151         * Makefile.in: Rebuilt.
4152         * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
4153
4154 2000-04-24  Jeff Sturm  <jsturm@sigma6.com>
4155
4156         * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
4157         calling main.
4158
4159 2000-04-22  Anthony Green  <green@cygnus.com>
4160
4161         * include/jvm.h (__builtin_expect): Define as unused for now.
4162         * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
4163         (notify): Ditto.
4164         (notifyAll): Ditto.
4165         (wait): Ditto.
4166         (_Jv_MonitorExit): Ditto.
4167         * boehm.cc (_Jv_MarkObj): Ditto.
4168         (_Jv_MarkObj): Ditto.
4169         (_Jv_MarkArray): Ditto.
4170         (_Jv_AllocBytes): Ditto.
4171         * prims.cc (_Jv_AllocObject): Ditto.
4172         (_Jv_NewObjectArray): Ditto.
4173         (_Jv_NewPrimArray): Ditto.
4174         (_Jv_Malloc): Ditto.
4175         (_Jv_Realloc): Ditto.
4176         (_Jv_MallocUnchecked): Ditto.
4177         (_Jv_divI): Ditto.
4178         (_Jv_remI): Ditto.
4179         (_Jv_divJ): Ditto.
4180         (_Jv_remJ): Ditto.
4181
4182         * include/Makefile.in: Rebuilt.
4183         * include/Makefile.am (include_HEADERS): Add jvmpi.h.
4184
4185 2000-04-21  Tom Tromey  <tromey@cygnus.com>
4186
4187         * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
4188         Yet another new version from Classpath.
4189
4190         Fix for PR libgcj/15:
4191         * java/util/natGregorianCalendar.cc (_REENTRANT,
4192         _POSIX_PTHREAD_SEMANTICS): Don't define.
4193         * java/net/natInetAddress.cc (_REENTRANT): Don't define.
4194         * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
4195         Don't define.
4196         * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
4197         define.
4198         * configure: Rebuilt.
4199         * configure.in: If using POSIX threads, define _REENTRANT if
4200         needed.  Define _POSIX_PTHREAD_SEMANTICS.  Don't define
4201         GETHOSTBYNAME_R_NEEDS_REENTRANT.
4202
4203         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4204         java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
4205         version from Classpath.
4206
4207         Fix for PR libgcj/213:
4208         * Makefile.in: Rebuilt.
4209         * Makefile.am (gij_SOURCES): Added gij.cc.
4210         (EXTRA_gij_SOURCES): Removed.
4211         (gij_LDADD): Removed gij.lo.
4212         (gij_DEPENDENCIES): Likewise.
4213         ($(gij_OBJECTS)): Depend on nat_headers.
4214
4215         * gnu/gcj/protocol/file/Handler.java (openConnection): Use
4216         `setURL', not `url.set'.
4217
4218 2000-04-20  Tom Tromey  <tromey@cygnus.com>
4219
4220         Fix for PR java.io/204:
4221         * java/io/PipedInputStream.java, java/io/PipedReader.java,
4222         java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
4223         from Classpath.
4224
4225         Fix for PR libgcj/212:
4226         * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
4227         * include/jvm.h (_Jv_word, _Jv_word2): Define.
4228         * java/lang/Class.h (_Jv_word): Declare.
4229
4230         * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
4231
4232 2000-04-19  Tom Tromey  <tromey@cygnus.com>
4233
4234         * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
4235         doesn't have a loader.
4236
4237 2000-04-19  Bryce McKinlay  <bryce@albatross.co.nz>
4238
4239         * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
4240         MAYBE_MARK to ptr_t, for compatibility with new GC version.
4241
4242 2000-04-16  Bryce McKinlay  <bryce@albatross.co.nz>
4243
4244         * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
4245         libgcj/202.
4246         (available): Initialize `where' to prevent bogus compiler warning.
4247
4248 2000-04-12  Tom Tromey  <tromey@cygnus.com>
4249
4250         * java/lang/natString.cc (intern): Temporarily disable finalizer
4251         registration.
4252
4253         * java/lang/natString.cc (unintern): Added `obj' argument.
4254         (intern): Register finalizer for string.
4255         * java/lang/String.java (unintern): Now static; added obj
4256         argument.
4257
4258 2000-04-11  Tom Tromey  <tromey@cygnus.com>
4259
4260         * java/util/Vector.java (VectorEnumeration): Now `final'.
4261         * java/util/Hashtable.java (HashtableEntry): Now `final'.
4262         (HashtableEnumeration): Likewise.
4263         * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
4264         * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
4265
4266 2000-04-10  Warren Levy  <warrenl@cygnus.com>
4267
4268         * java/io/ObjectStreamException.java: New file.
4269         * java/io/OptionalDataException.java: New file.
4270         * java/io/StreamCorruptedException.java: New file.
4271         * java/math/BigDecimal.java: New file.
4272         * java/sql/CallableStatement.java: New file.
4273         * java/sql/Connection.java: New file.
4274         * java/sql/DataTruncation.java: New file.
4275         * java/sql/DatabaseMetaData.java: New file.
4276         * java/sql/Date.java: New file.
4277         * java/sql/Driver.java: New file.
4278         * java/sql/DriverManager.java: New file.
4279         * java/sql/DriverPropertyInfo.java: New file.
4280         * java/sql/PreparedStatement.java: New file.
4281         * java/sql/ResultSet.java: New file.
4282         * java/sql/ResultSetMetaData.java: New file.
4283         * java/sql/SQLException.java: New file.
4284         * java/sql/SQLWarning.java: New file.
4285         * java/sql/Statement.java: New file.
4286         * java/sql/Time.java: New file.
4287         * java/sql/Timestamp.java: New file.
4288         * java/sql/Types.java: New file.
4289         * Makefile.am: Added above new files.
4290         * Makefile.in: Rebuilt.
4291
4292         * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
4293         * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
4294         DatagramSocket constructor instead of null.
4295
4296 2000-04-08  Anthony Green  <green@cygnus.com>
4297
4298         * include/posix-threads.h (_Jv_MutexUnlock): Replace
4299         _JV_NOT_OWNER.
4300         
4301 2000-04-08  Anthony Green  <green@cygnus.com>
4302
4303         * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
4304         (_Jv_MutexUnlock): Ditto.
4305         * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
4306         (_Jv_MutexUnlock): Ditto.
4307
4308 2000-04-08  Anthony Green  <green@cygnus.com>
4309
4310         * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
4311         (ensureCapacity_unsynchronized): New private method.
4312         (append): Use ensureCapacity_unsynchronized.
4313
4314 2000-04-08  Tom Tromey  <tromey@cygnus.com>
4315
4316         * Makefile.in: Rebuilt.
4317         * Makefile.am (awt_java_source_files): Added new files.
4318         * java/awt/IllegalComponentStateException.java: New file.
4319         * java/awt/ItemSelectable.java: New file.
4320         * java/awt/event/WindowEvent.java: Finished.
4321         * java/awt/event/TextEvent.java: Finished.
4322         * java/awt/event/ContainerEvent.java: New file.
4323         * java/awt/Component.java (getX, getY): New methods.
4324         * java/awt/event/PaintEvent.java: New file.
4325         * java/awt/event/MouseEvent.java: New file.
4326         * java/awt/ActiveEvent.java: New file.
4327         * java/awt/event/KeyEvent.java: Finished.
4328         * java/awt/event/ItemEvent.java: New file.
4329         * java/awt/Adjustable.java: New file.
4330         * java/awt/event/InputMethodEvent.java: New file.
4331         * java/awt/event/InputEvent.java: Finished.
4332         * java/awt/event/FocusEvent.java: New file.
4333         * java/awt/event/MouseMotionAdapter.java: New file.
4334         * java/awt/event/MouseAdapter.java: New file.
4335         * java/awt/event/KeyAdapter.java: New file.
4336         * java/awt/event/FocusAdapter.java: New file.
4337         * java/awt/event/ContainerAdapter.java: New file.
4338         * java/awt/event/ComponentEvent.java: Finished.
4339         * java/awt/event/AdjustmentEvent.java: New file.
4340         * java/awt/event/ComponentAdapter.java: New file.
4341         * java/awt/event/ActionEvent.java: Finished.
4342         * java/awt/event/MouseMotionListener.java: New file.
4343         * java/awt/event/MouseListener.java: New file.
4344         * java/awt/event/ItemListener.java: New file.
4345         * java/awt/event/InputMethodListener.java: New file.
4346         * java/awt/event/ContainerListener.java: New file.
4347         * java/awt/event/FocusListener.java: New file.
4348         * java/awt/event/ComponentListener.java: New file.
4349         * java/awt/event/AWTEventListener.java: New file.
4350         * java/awt/event/AdjustmentListener.java: New file.
4351
4352 2000-04-08  Anthony Green  <green@cygnus.com>
4353
4354         * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
4355         check when we have to.
4356
4357         * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
4358         x) as `inline'.
4359
4360         * java/util/StringTokenizer.java: Minor optimization.  Eliminates
4361         one method call.
4362
4363         * java/util/Vector.java (VectorEnumeration.nextElement): Manually
4364         inline hasMoreElements.
4365
4366 2000-04-05  Tom Tromey  <tromey@cygnus.com>
4367
4368         * configure: Rebuilt.
4369         * configure.in: Recognize --enable-java-awt.
4370         (AWT): New conditional.
4371         * Makefile.in: Rebuilt.
4372         * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
4373         requested.
4374         (libgcjawt_la_SOURCES): New macro.
4375         (EXTRA_libgcjawt_la_SOURCES): Likewise.
4376         (libgcjawt_la_DEPENDENCIES): Likewise.
4377         (libgcjawt_la_LIBADD): Likewise.
4378         (libgcjawt_la_LDFLAGS): Likewise.
4379         (libgcj.zip): Depend on cond_java_awt_source_files
4380         (cond_awt_java_source_files): New macro.
4381         (MOSTLYCLEANFILES): Added awto_files.
4382         (awto_files): New macro.  Use where javao_files used.
4383         (nat_headers): Use cond_awt_java_source_files.
4384
4385 2000-04-04  Tom Tromey  <tromey@cygnus.com>
4386
4387         * Makefile.in: Rebuilt.
4388         * Makefile.am (awt_java_source_files): Added AWTException.java.
4389         * java/awt/AWTException.java: New file.
4390
4391 2000-04-03  Tom Tromey  <tromey@cygnus.com>
4392
4393         * include/jvm.h (_Jv_GetArrayElementFromElementType): More
4394         commentary from Alex.
4395
4396         * Makefile.in: Rebuilt.
4397         * Makefile.am ($(javao_files)): Depend on libgcj.zip.
4398         From H.J. Lu.
4399
4400 Sun Apr  2 08:27:18 2000  Anthony Green  <green@redhat.com>
4401
4402         * configure: Rebuilt.
4403         * configure.in: Add --disable-jvmpi.
4404         * include/config.h.in: Rebuilt.
4405         * acconfig.h: Add ENABLE_JVMPI.
4406          
4407         * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
4408         (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
4409         (_Jv_JVMPI_Notify_THREAD_END): New define.
4410         (_Jv_JVMPI_Notify_THREAD_END): New define.
4411         * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
4412         (_Jv_JVMPI_Notify_THREAD_END): Declare.
4413         (_Jv_JVMPI_Notify_THREAD_END): Declare.
4414
4415         * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
4416         events.
4417
4418         * java/lang/natThread.cc: Include JVMPI headers if necessary.
4419         (finish_): Generate JVMPI thread end events.
4420         (run_): Generate JVMPI thread start events.
4421         * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
4422         preloaded JNI library.
4423         Include JVMPI headers if necessary.
4424         (run): Generate JVMPI thread start events.
4425
4426         * boehm.cc: Define GC_disable and GC_enable.
4427         (_Jv_DisableGC): New function.
4428         (_Jv_EnableGC): New function.
4429         (disable_gc_mutex): Declare.
4430         * nogc.cc (_Jv_DisableGC): New function.
4431         (_Jv_EnableGC): New function.
4432           
4433         * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
4434         (_Jv_JVMPI_Interface): Define.
4435         (jvmpiEnableEvent): New function.
4436         (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
4437           
4438         * include/jvmpi.h: New file.
4439
4440 2000-03-27  Bryce McKinlay  <bryce@albatross.co.nz>
4441
4442         * Makefile.in: New #defines and friends for Thread.h.
4443         * Makefile.am: Ditto.
4444         * posix-threads.cc: (struct starter): Remove `object'.
4445         (_Jv_CondWait): Use interruptable condition variables and new
4446         recursive mutexes. New return codes on interrupt or non-ownership
4447         of mutex.
4448         (_Jv_CondNotify): Ditto.
4449         (_Jv_CondNotifyAll): Ditto.
4450         (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
4451         the target thread by signaling its wait condition.
4452         (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
4453         not the starter struct. Initialize wait_mutex and wait_cond.
4454         (_Jv_MutexLock): New recursive mutex implementation. Moved from 
4455         posix-threads.h.
4456         (_Jv_MutexUnlock): Ditto.
4457         (really_start): Set info->data->thread from pthread_self() to work 
4458         around a race condition. Destroy wait_mutex and wait_cond when run()
4459         returns.
4460         * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
4461         `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
4462         set.
4463         startable_flag: New private field.
4464         (Thread): Initialize `startable_flag'.
4465         (toString): Check for null thread group.
4466         * java/lang/natThread.cc: (struct natThread): New fields 
4467         `join_mutex', `join_cond'. Removed fields `joiner', `next'.
4468         (class locker): Removed.
4469         (initialize_native): Initialize `join_cond' and `join_mutex'.
4470         (interrupt): Now just calls _Jv_ThreadInterrupt().
4471         (join): Simplified. Just wait on the target thread's join condition.
4472         (finish_): Remove join list code. Unset thread group. Signal
4473         potential joiners by notifying the dying threads join_cond.
4474         (start): Check for illegal restarts.
4475         * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
4476         act appropriatly.
4477         * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
4478         #defines and #ifdefs.
4479         (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
4480         `wait_mutex', `next'.
4481         (struct _Jv_ConditionVariable_t): Define as a struct instead of 
4482         directly mapping to pthread_cond_t.
4483         (struct _Jv_Mutex_t): New recursive implementation.
4484         (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
4485         _Jv_HaveCondDestroy: Never define this for posix-threads.
4486         (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
4487         (_Jv_CondNotifyAll): Ditto.
4488         (_Jv_MutexLock): Ditto.
4489         (_Jv_MutexUnlock): Ditto.
4490         (_Jv_MutexInit): Changed to reflect new mutex implementation.
4491         (_Jv_MutexDestroy): Ditto.
4492         (_Jv_CondDestroy): Removed.
4493         (_Jv_PthreadGetMutex): Removed.
4494         * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an 
4495         error. Add a FIXME about this.
4496         (_Jv_CondNotifyAll): Ditto.
4497         * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess 
4498         _JV_NOT_OWNER on other errors. Add FIXME.
4499
4500 2000-03-26  Tom Tromey  <tromey@cygnus.com>
4501
4502         * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
4503         set, throw it.
4504         (call): Don't throw exception here.
4505
4506 2000-03-26  Tom Tromey  <tromey@cygnus.com>
4507
4508         * java/lang/mprec.h: Use SIZEOF_VOID_P.
4509         * interpret.cc: Use SIZEOF_VOID_P.
4510         * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
4511         (_Jv_loadLong): Likewise.
4512         (_Jv_storeDouble): Likewise.
4513         * configure: Rebuilt.
4514         * configure.in: Check size of void*.
4515
4516         * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
4517
4518 2000-03-26  Hans Boehm  <boehm@acm.org>
4519
4520         * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
4521         _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
4522         machine.
4523         * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
4524         __IEEE_LITTLE_ENDIAN appropriately on IA64.
4525         * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
4526         * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
4527         case.
4528         * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
4529         (FFI_RAW_SIZE): Likewise.
4530         (_Jv_InterpMethod::ncode): Use them.
4531         * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
4532         STORED): Define differently on a 64 bit machine.
4533         (continue1): Use ffi_java_raw_call when appropriate.
4534  
4535 2000-03-24  Warren Levy  <warrenl@cygnus.com>
4536
4537         * java/math/BigInteger.java(divide): Handle the special case when
4538         dividing by 1 and the high bit of the dividend is set.
4539         (setShiftRight): Handle case when count == 0.
4540
4541 2000-03-24  Warren Levy  <warrenl@cygnus.com>
4542
4543         * java/awt/Font.java(isBold): Fix syntax error.
4544         (isItalic): ditto.
4545         * java/awt/Frame.java(postEvent): ditto.
4546         * java/awt/Menu.java(postEvent): ditto.
4547         * java/awt/MenuBar.java(postEvent): ditto.
4548         * java/awt/Toolkit.java(init): Included a stub.
4549
4550 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
4551
4552         * java/awt/Event.java: Add all the event type constants.
4553         (Event): Implemented constructors.
4554         (controlDown): Implemented.
4555         (metaDown): Implemented.
4556         (paramString): Stubbed.
4557         (shiftDown): Implemented.
4558         (toString): Implemented.
4559         (translate): Implemented.
4560
4561 2000-03-21  Bryce McKinlay  <bryce@albatross.co.nz>
4562
4563         * java/lang/natClass.cc (isInstance): Initialize `this'.
4564         (isAssignableFrom): Initialize `this' and `klass'.
4565         (_Jv_IsAssignableFrom): If an interface has no idt, it is not 
4566         implemented by any loaded class, so return false.
4567         * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(), 
4568         not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
4569
4570 2000-03-19  Warren Levy  <warrenl@cygnus.com>
4571
4572         * java/awt/Color.java: Specified java.io for Serializable.
4573         * java/awt/Toolkit.java: Imported java.net.URL.
4574
4575 2000-03-19  Warren Levy  <warrenl@cygnus.com>
4576
4577         * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
4578
4579 2000-03-16  Warren Levy  <warrenl@cygnus.com>
4580
4581         * java/awt/Color.java: New file.
4582         * java/awt/Graphics.java: New file.
4583         * java/awt/Image.java: New file.
4584         * java/awt/Paint.java: New file.
4585         * java/awt/PaintContext.java: New file.
4586         * java/awt/Transparency.java: New file.
4587         * java/util/Collection.java: New file.
4588         * java/util/Comparator.java: New file.
4589         * java/util/Iterator.java: New file.
4590         * java/util/List.java: New file.
4591         * java/util/ListIterator.java: New file.
4592         * Makefile.am: Added above new files.
4593         * Makefile.in: Rebuilt.
4594
4595         * java/awt/Font.java (PLAIN): New field.
4596         (BOLD): New field.
4597         (ITALIC): New field.
4598         (ROMAN_BASELINE): New field.
4599         (CENTER_BASELINE): New field.
4600         (HANGING_BASELINE): New field.
4601         (name): New field.
4602         (style): New field.
4603         (size): New field.
4604         (pointSize): New field.
4605         (Font): Implemented constructor.
4606         (isPlain): Implemented method.
4607         (isBold): Implemented method.
4608         (isItalic): Implemented method.
4609         (getName): Implemented method.
4610         (getStyle): Implemented method.
4611         (getSize): Implemented method.
4612         (getSize2D): Implemented method.
4613         (decode): Stubbed.
4614         * java/awt/Frame.java (getFont): Stubbed.
4615         (postEvent): Stubbed.
4616         (remove): Stubbed.
4617         * java/awt/Menu.java (postEvent): Stubbed.
4618         * java/awt/MenuBar.java (getFont): Stubbed.
4619         (postEvent): Stubbed.
4620         * java/awt/Toolkit.java (getImage): Added abstract method.
4621
4622 2000-03-15  Tom Tromey  <tromey@cygnus.com>
4623
4624         * java/io/natFileDescriptorWin32.cc (winerr): Now static.
4625
4626         * prims.cc (win32_exception_handler): Reformatted.
4627
4628         * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
4629         (_Jv_HaveMutexDestroy): Likewise.
4630
4631 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
4632
4633         * java/io/natFileDescriptorWin32.cc: New file.
4634         * java/io/natFileWin32.cc: New file.
4635         * java/net/natInetAddress.cc: Added conditional inclusion of
4636         Windows / Winsock headers.
4637         * java/net/natPlainDatagramSocketImpl.cc: Added conditional
4638         inclusion of Windows / Winsock headers.
4639         * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
4640         Windows / Winsock headers.
4641         * include/win32-signal.h: New file.
4642         * include/win32-threads.h: New file.
4643         * win32-threads.cc: New file.
4644         * exception.cc (win32_get_restart_frame): New function.
4645         * prims.cc (win32_exception_handler): New function.
4646         (main_init) Performs Winsock initialisation.
4647         (main_init) Installs exeception handler.
4648
4649 2000-03-14  Tom Tromey  <tromey@cygnus.com>
4650
4651         * jni.cc (mangled_name): Fixed assertion.
4652         (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
4653         turned assert into actual failure.
4654
4655 2000-03-09  Warren Levy  <warrenl@cygnus.com>
4656
4657         * java/security/Key.java(serialVersionUID): Set to 0 for now.
4658         * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
4659         * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
4660
4661 2000-03-09  Warren Levy  <warrenl@cygnus.com>
4662
4663         * java/security/AlgorithmParameterGeneratorSpi.java: New file.
4664         * java/security/DigestException.java: New file.
4665         * java/security/GeneralSecurityException.java: New file.
4666         * java/security/InvalidAlgorithmParameterException.java: New file.
4667         * java/security/InvalidKeyException.java: New file.
4668         * java/security/InvalidParameterException.java: New file.
4669         * java/security/Key.java: New file.
4670         * java/security/KeyException.java: New file.
4671         * java/security/KeyPair.java: New file.
4672         * java/security/KeyPairGenerator.java: New file.
4673         * java/security/KeyPairGeneratorSpi.java: New file.
4674         * java/security/NoSuchProviderException.java: New file.
4675         * java/security/PrivateKey.java: New file.
4676         * java/security/Provider.java: New file.
4677         * java/security/PublicKey.java: New file.
4678         * java/security/SecureRandom.java: New file.
4679         * java/security/Security.java: New file.
4680         * java/security/Signature.java: New file.
4681         * java/security/SignatureException.java: New file.
4682         * java/security/interfaces/DSAKey.java: New file.
4683         * java/security/interfaces/DSAParams.java: New file.
4684         * java/security/interfaces/DSAPrivateKey.java: New file.
4685         * java/security/interfaces/DSAPublicKey.java: New file.
4686         * java/security/interfaces/RSAPrivateCrtKey.java: New file.
4687         * java/security/interfaces/RSAPrivateKey.java: New file.
4688         * java/security/interfaces/RSAPublicKey.java: New file.
4689         * java/security/spec/AlgorithmParameterSpec.java: New file.
4690         * java/security/spec/InvalidKeySpecException.java: New file.
4691         * java/security/spec/InvalidParameterSpecException.java: New file.
4692         * java/security/spec/KeySpec.java: New file.
4693         * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
4694         * java/security/spec/RSAPrivateKeySpec.java: New file.
4695         * java/security/spec/RSAPublicKeySpec.java: New file.
4696         * Makefile.am: Added above java.security files.
4697         * Makefile.in: Rebuilt.
4698
4699         * java/security/MessageDigest.java: Rewritten.
4700         * java/security/SecureClassLoader.java: Added JDK1.2 comment.
4701
4702 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
4703
4704         * README: Updated.
4705
4706 2000-03-09  Bryce McKinlay  <bryce@albatross.co.nz>
4707
4708         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
4709         _Jv_PrepareConstantTimeTables.
4710         * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
4711         classes should have an IDT, so don't return if klass is an array
4712         class.
4713
4714 2000-03-08  Tom Tromey  <tromey@cygnus.com>
4715
4716         * java/lang/reflect/natArray.cc (newInstance): Don't allow array
4717         of `void' to be created.
4718
4719 2000-03-08  Warren Levy  <warrenl@cygnus.com>
4720
4721         * java/math/BigInteger.java(signum): Handle zero properly.
4722
4723 2000-03-07  Tom Tromey  <tromey@cygnus.com>
4724
4725         * All files: Updated copyright information.
4726         * COPYING: New file.
4727         * COPYING.LIB: Removed.
4728         * LIBGCJ_LICENSE: We now use GPL + special exception.
4729
4730 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
4731
4732         * resolve.cc (_Jv_SearchMethodInClass): New function.
4733         (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
4734         * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
4735
4736 2000-03-07  Bryce McKinlay  <bryce@albatross.co.nz>
4737
4738         * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
4739         (struct _Jv_ifaces): New declaration.
4740         JV_CLASS: New macro definition.
4741         (getComponentType): Relocate below isArray() for inlining.
4742         (getModifiers): Declare `inline'.
4743         (getSuperclass): Ditto.
4744         (isArray): Ditto.
4745         (isPrimitive): Ditto.
4746         (_Jv_IsAssignableFrom): New prototype.
4747         (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
4748         linkage.
4749         (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
4750         Check for JV_STATE_DONE before invoking initializeClass().
4751         (_Jv_PrepareConstantTimeTables): New prototype.
4752         (_Jv_GetInterfaces): Ditto.
4753         (_Jv_GenerateITable): Ditto.
4754         (_Jv_GetMethodString): Ditto.
4755         (_Jv_AppendPartialITable): Ditto.
4756         (_Jv_FindIIndex): Ditto.
4757         depth, ancestors, idt: New class fields.
4758
4759         * java/lang/natClass.cc (isAssignableFrom): Move functionality to
4760         inline function `_Jv_IsAssignableFrom'. Use that function.
4761         (isInstance): Declare `inline'.
4762         (initializeClass): Get lock on class before checking `state'. Unlock 
4763         before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with 
4764         the lock held.
4765         (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
4766         (_Jv_IsAssignableFrom): New inline function. Test assignability using 
4767         class->depth and ancestor table.
4768         (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
4769         (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
4770         _Jv_IsAssignableFrom.
4771         (_Jv_CheckArrayStore): Ditto.
4772         (_Jv_LookupInterfaceMethodIdx): New function. 
4773         INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
4774         (_Jv_PrepareConstantTimeTables): New function.
4775         (_Jv_IndexOf): Ditto.
4776         (_Jv_GetInterfaces): Ditto.
4777         (_Jv_GenerateITable): Ditto.
4778         (_Jv_GetMethodString): Ditto.
4779         (_Jv_AppendPartialITable): Ditto.
4780         iindex_mutex, iindex_mutex_initialized: New static fields.
4781         (_Jv_FindIIndex): New function.
4782
4783         * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
4784
4785         * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
4786         (_Jv_CheckArrayStore): Ditto.
4787         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
4788         JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
4789         Moved to gcj/array.h.
4790         (_Jv_Realloc): New function.
4791
4792         * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
4793
4794         * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
4795         (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
4796         JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
4797         JvNewDoubleArray): Implementations moved from prims.cc and
4798         declared `inline'.
4799
4800         * gcj/javaprims.h (_Jv_Realloc): Prototype.
4801
4802         * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
4803
4804 2000-03-06  Tom Tromey  <tromey@cygnus.com>
4805
4806         * jni.cc (MARK_NONE): New define.
4807         (MARK_USER): Likewise.
4808         (MARK_SYSTEM): Likewise.
4809         (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
4810         smaller.
4811         (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
4812         (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
4813         (_Jv_JNI_PushLocalFrame): Use MARK_USER.
4814         (_Jv_JNI_PopLocalFrame): New version with additional `stop'
4815         argument.
4816         (call): Use MARK_SYSTEM.
4817         (_Jv_GetJNIEnvNewFrame): New function.
4818         (_Jv_LookupJNIMethod): New function.
4819         (_Jv_JNI_PopSystemFrame): New function.
4820         (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
4821
4822 2000-03-05  Tom Tromey  <tromey@cygnus.com>
4823
4824         Fix for PR libgcj/43:
4825         * include/Makefile.in: Rebuilt.
4826         * include/Makefile.am (include_HEADERS): New define.
4827
4828 2000-03-05  Anthony Green  <green@redhat.com>
4829
4830         * gcj/javaprims.h ("Java"): Remove FirstThread.
4831
4832         * configure.host: Fix __NO_MATH_INLNES botch.
4833
4834         * Makefile.in: Rebuilt.
4835         * Makefile.am (nat_source_files): Move natFirstThread.cc.
4836         (gnu/gcj/runtime/FirstThread.h): Moved.
4837         (ordinary_java_source_files): Move FirstThread.java.
4838         * prims.cc: Deal with FirstThread movement.
4839         (JvRunMain): Ditto.
4840         (_Jv_RunMain): Ditto.
4841
4842         * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
4843         * gnu/gcj/runtime/natFirstThread.cc: Ditto.
4844
4845 2000-03-05  Warren Levy  <warrenl@cygnus.com>
4846
4847         * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
4848           Handle null addresses.
4849
4850 2000-03-04  Anthony Green  <green@redhat.com>
4851
4852         * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
4853         See PR gcj/151.
4854
4855 2000-03-04  Anthony Green  <green@redhat.com>
4856
4857         * configure: Rebuilt.
4858         * configure.in (ZLIBTESTSPEC): New macro.
4859         (GCTESTSPEC): New macro.
4860         (LIBGCJTESTSPEC): New macro.
4861         * libgcj-test.spec.in: New file.
4862
4863 2000-03-02  Tom Tromey  <tromey@cygnus.com>
4864
4865         * include/java-interp.h: Don't include MethodInvocation.h.
4866         (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
4867         * Makefile.in: Rebuilt.
4868         * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
4869         (ordinary_java_source_files): Don't mention
4870         MethodInvocation.java.
4871         * gnu/gcj/runtime/MethodInvocation.java: Removed.
4872         * interpret.cc (MethodInvocation::continue1): Removed.
4873         (run): Handle exceptions here.
4874         * java/lang/ClassLoader.java (defineClass1, defineClass2):
4875         Removed.
4876         * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
4877         here.
4878         (defineClass2): Removed.
4879
4880         * java/lang/reflect/Method.java (hack_trampoline, hack_call):
4881         Removed.
4882         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
4883         exceptions here.
4884         (hack_call): Removed.
4885
4886         * java/lang/Class.h (Class): Removed hackRunInitializers,
4887         hackTrampoline.
4888         * java/lang/natClass.cc (hackRunInitializers): Removed.
4889         (initializeClass): Catch exceptions here.
4890         Include ExceptionInInitializerError.h.
4891         * java/lang/Class.java (hackTrampoline, hackRunInitializers):
4892         Removed.
4893
4894         * java/lang/Object.h (Object): Don't mention hack12_6.
4895         * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
4896         here.
4897         * java/lang/Object.java (hack12_6): Removed.
4898
4899         * java/lang/natThread.cc (run_): Renamed.  Catch exceptions here.
4900         (start): Use run_, not run__.
4901         * java/lang/Thread.java (run_): Renamed from run__; old run_
4902         removed.
4903
4904         * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
4905         (_Jv_JNI_EnsureLocalCapacity): Likewise.
4906         (_Jv_JNI_DefineClass): Likewise.
4907         (_Jv_JNI_ThrowNew): Likewise.
4908         (_Jv_JNI_AllocObject): Likewise.
4909         (_Jv_JNI_GetAnyMethodID): Likewise.
4910         (_Jv_JNI_CallAnyMethodV): Likewise.
4911         (_Jv_JNI_CallAnyMethodA): Likewise.
4912         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
4913         (_Jv_JNI_CallAnyVoidMethodA): Likewise.
4914         (_Jv_JNI_GetAnyFieldID): Likewise.
4915         (_Jv_JNI_NewString): Likewise.
4916         (_Jv_JNI_NewStringUTF): Likewise.
4917         (_Jv_JNI_GetStringUTFChars): Likewise.
4918         (_Jv_JNI_NewObjectArray): Likewise.
4919         (_Jv_JNI_NewPrimitiveArray): Likewise.
4920         (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
4921         (_Jv_JNI_GetStringRegion): Likewise.
4922         (_Jv_JNI_GetStringUTFRegion): Likewise.
4923         (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
4924         (_Jv_JNI_MonitorEnter): Likewise.
4925         (_Jv_JNI_MonitorExit): Likewise.
4926         (_Jv_JNI_ToReflectedField): Likewise.
4927         (_Jv_JNI_ToReflectedMethod): Likewise.
4928         (_Jv_JNI_RegisterNatives): Likewise.
4929         (_Jv_JNI_AttachCurrentThread): Likewise.
4930         (_Jv_JNI_DestroyJavaVM): Likewise.
4931
4932 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
4933
4934         * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
4935         error caused by the incorrect casting of a long to an int.
4936
4937 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
4938
4939         * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
4940         SIGSEV caused by use of the wrong instance variable.
4941
4942 2000-02-27  Bryce McKinlay  <bryce@albatross.co.nz>
4943
4944         * java/io/File.java (File(String, String)): For dirPath, treat an
4945         empty String the same as `null'.
4946
4947 2000-02-26  Anthony Green  <green@cygnus.com>
4948
4949         * gnu/gcj/io/MimeTypes.java: Test for null.
4950
4951         * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
4952         (JNI_GetCreatedJavaVMs): Remove compiler warning.
4953
4954         * java/net/URLConnection.java: Update copyright notice.
4955
4956 2000-02-25  Tom Tromey  <tromey@cygnus.com>
4957
4958         * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
4959         `INTERPRETER'.
4960
4961 2000-02-25  Bryce McKinlay  <bryce@albatross.co.nz>
4962
4963         * java/net/URLConnection.java (initializeDateFormats): New
4964         private method.
4965         (getHeaderFieldDate): Call initializeDateFormats if required.
4966         locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
4967         these.
4968         Fix for PR libgcj/38.
4969
4970 2000-02-24  Warren Levy  <warrenl@cygnus.com>
4971
4972         * java/math/BigInteger.java(ival): Made private.
4973         (words): Ditto.
4974         (neg): Ditto.
4975
4976 2000-02-20  Anthony Green  <green@cygnus.com>
4977
4978         * Makefile.in: Rebuilt.
4979         * Makefile.am (ordinary_java_source_files): Add
4980         gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
4981
4982         * scripts/MakeDefaultMimeTypes.java: New file.
4983         * scripts/mime.types: New file.
4984         * scripts/classes.pl: Moved from top level.
4985         * classes.pl: Moved to scripts directory.
4986
4987         * java/net/URLConnection.java: Implement guessContentTypeFromName.
4988
4989         * gnu/gcj/io/MimeTypes.java: New file.
4990         * gnu/gcj/io/DefaultMimeTypes.java: New file.
4991
4992 2000-02-20  Tom Tromey  <tromey@cygnus.com>
4993
4994         * boehm.cc (_Jv_AllocBytes): Clear returned memory.
4995
4996 2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
4997
4998         * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
4999         (setSize): ditto.
5000
5001 2000-02-18  Tom Tromey  <tromey@cygnus.com>
5002
5003         * include/jvm.h (_Jv_GetJavaVM): Declare.
5004         * include/java-interp.h (_Jv_GetFirstMethod): New function.
5005         (_Jv_MethodBase::get_method): New method.
5006         (_Jv_JNIMethod::set_function): New method.
5007         * jni.cc (_Jv_JNI_UnregisterNatives): New function.
5008         (_Jv_JNI_RegisterNatives): New function.
5009         (_Jv_JNIFunctions): Updated for new functions.
5010         (_Jv_GetJavaVM): New function.
5011         (_Jv_JNI_GetJavaVM): Use it.  Now static.
5012         (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
5013         is already a Java thread but does not have a JNIEnv yet.
5014
5015         * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
5016         function.
5017
5018 2000-02-17  Tom Tromey  <tromey@cygnus.com>
5019
5020         * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
5021         Fixes PR gcj/152.
5022
5023 2000-02-16  Tom Tromey  <tromey@cygnus.com>
5024
5025         * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
5026
5027         * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
5028         (_Jv_JNI_NewObject): Likewise.
5029         (_Jv_JNI_NewObjectA): Likewise.
5030         (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
5031         as "return" type to _Jv_CallAnyMethodA.
5032         (_Jv_JNI_CallAnyMethodA): Likewise.
5033         (_Jv_JNI_CallAnyVoidMethodV): Likewise.
5034
5035         * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
5036         findClass.
5037
5038 2000-02-15  Tom Tromey  <tromey@cygnus.com>
5039
5040         * resolve.cc (ncode): Set args_raw_size.  Compute jni_cif and
5041         jni_arg_types.
5042         (init_cif): Added `rtype_p' argument.
5043         * include/java-interp.h (class _Jv_MethodBase): Added
5044         args_raw_size.
5045         (class _Jv_InterpMethod): Removed args_raw_size.
5046         (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
5047         * jni.cc (call): Pass JNIEnv and (for static methods only) the
5048         class pointer as well as the ordinary arguments.
5049
5050         * jni.cc (mangled_name): Skip leading `(' in signature.
5051
5052         * jni.cc (add_char): Added missing `else'.
5053
5054         * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
5055         fails.
5056
5057 2000-02-15  Bryce McKinlay  <bryce@albatross.co.nz>
5058
5059         * NEWS: Updated.
5060
5061         * java/lang/natRuntime.cc (_load): Include library path with
5062         exception message.
5063
5064         * java/lang/natSystem.cc (init_properties): set java.lang.classpath 
5065         property.
5066
5067         * java/lang/natThread.cc (dumpStack): Removed.
5068         * java/lang/Thread.java (dumpStack): Implemented.
5069
5070 2000-02-15  Tom Tromey  <tromey@cygnus.com>
5071
5072         * java/lang/natRuntime.cc (_load): On Unix, prefix library name
5073         with `lib' for loadLibrary.  Fixes PR gcj/150.
5074
5075 2000-02-14  Warren Levy  <warrenl@cygnus.com>
5076
5077         * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
5078
5079         * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
5080           New constructor.
5081         (min): Implemented.
5082         (max): Implemented.
5083         (modPow): Rewritten to not use the naive, slow, brute force approach.
5084         (isProbablePrime): Implemented.
5085         (testBit): Implemented.
5086         (flipBit): Implemented.
5087         (getLowestSetBit): Implemented.
5088
5089 2000-02-16  Anthony Green  <green@redhat.com>
5090
5091         * configure.host: Use the same options for i386 and i486 as we do
5092         for i586 and i686.
5093
5094 2000-02-12  Tom Tromey  <tromey@cygnus.com>
5095
5096         * java/io/File.java (createTempFile): Use low bits from counter,
5097         not high bits.
5098
5099 Fri Feb 11 19:48:08 2000  Anthony Green  <green@cygnus.com>
5100
5101         * THANKS: More thanks.
5102
5103 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5104
5105         * interpret.cc (continue1): Use STOREA, not STOREI, to implement
5106         astore instruction.  From Hans Boehm.
5107
5108 2000-02-11  Warren Levy  <warrenl@cygnus.com>
5109
5110         * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
5111         (BigInteger(String)): New constructor.
5112         (not): Rewritten using version from Kawa's BitOps class.
5113         (valueOf): New private methods from Kawa's BitOps class.
5114         (swappedOp): ditto.
5115         (bitOp): ditto.
5116         (setBitOp): ditto.
5117         (and): Implemented.
5118         (or): Implemented.
5119         (xor): Implemented.
5120         (andNot): Implemented.
5121         (clearBit): Implemented.
5122         (setBit): Implemented.
5123         (bitCount): Implemented.
5124         (toByteArray): Implemented.
5125
5126 2000-02-11  Tom Tromey  <tromey@cygnus.com>
5127
5128         * java/io/File.java (nextValue): Now synchronized.
5129
5130 2000-02-10  Tom Tromey  <tromey@cygnus.com>
5131
5132         * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
5133         * java/io/FileDescriptor.java (EXCL): New static field.
5134         * java/io/File.java (tmpdir): New static field.
5135         (createTempFile): New method.
5136         (nextValue): New method.
5137         * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
5138         property.
5139
5140         * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
5141         (jboolean): Declare as an attributed int, not a bool.
5142         (_Jv_func): Declare differently for C.
5143
5144         * gnu/gcj/jni/natNativeThread.cc: New file.
5145         * gnu/gcj/jni/NativeThread.java: New file.
5146         * java/lang/Thread.java (data): Now a RawData.
5147         * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
5148         Declare.
5149         * Makefile.in: Rebuilt.
5150         * Makefile.am (java/lang/Thread.h): New target.
5151         (ordinary_java_source_files): Added NativeThread.java.
5152         (nat_source_files): Added natNativeThread.cc.
5153         * java/lang/natThread.cc: Include <jni.h>
5154         (struct natThread): Added `jni_env' field.
5155         (_Jv_GetCurrentJNIEnv): New function.
5156         (_Jv_SetCurrentJNIEnv): Likewise.
5157         (initialize_native): Initialize jni_env.
5158         Include RawData.h.
5159         * jni.cc (ThreadGroupClass): New define.
5160         (_Jv_JNI_InvokeFunctions): New structure.
5161         (JNI_GetCreatedJavaVMs): New function.
5162         (the_vm): New global.
5163         (JNI_GetDefaultJavaVMInitArgs): New function.
5164         Include NativeThread.h.
5165         (NativeThreadClass): New define.
5166         (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
5167         (_Jv_JNI_DestroyJavaVM): New function.
5168         (_Jv_JNI_AttachCurrentThread): New function.
5169         (_Jv_JNI_DetachCurrentThread): New function.
5170         (_Jv_JNI_GetEnv): New function.
5171         (JNI_CreateJavaVM): New function.
5172         (_Jv_JNI_GetJavaVM): New function.
5173         (_Jv_JNIFunctions): Added entry for GetJavaVM.
5174         * include/jni.h (JavaVMAttachArgs): New structure.
5175         (JNI_EDETACHED): New define.
5176         (JNI_EVERSION): Likewise.
5177         (JavaVM): Define properly.
5178         (struct JNIInvokeInterface): New structure.
5179         (class _Jv_JavaVM): New class.
5180         (JNI_OnLoad, JNI_OnUnload): Declare.
5181         (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
5182         JNI_GetCreatedJavaVMs): Declare.
5183         (JavaVMInitArgs): New typedef.
5184         (JavaVMOption): Likewise.
5185         (JNI_ERR): New define.
5186         (JNI_OK): Likewise.
5187
5188 2000-02-10  Andrew Haley  <aph@cygnus.com>
5189
5190         * interpret.cc: Don't include fdlibm.h.
5191         Replace #if with #ifdef throughout.
5192         Declare extern __ieee754_fmod.
5193         (continue1): Remove op_getfield, op_getstatic, op_putfield,
5194         op_putstatic insns.
5195         * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
5196         Search class hierarchy for superclass vtable.
5197
5198         * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
5199         off the end of a pointer list.
5200
5201         * java/lang/natThread.cc (stop): Don't abort, throw an exception
5202         instead.
5203         (suspend): Ditto.
5204         
5205 2000-02-09  Tom Tromey  <tromey@cygnus.com>
5206
5207         * java/lang/natRuntime.cc (_load): Call add_library.
5208         (loadLibraryInternal): Likewise.
5209
5210         * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
5211         iconv_close when handle is not NULL.  Thanks to Andrew Haley.
5212         (Output_iconv::finalize): Likewise.
5213
5214 2000-02-08  Tom Tromey  <tromey@cygnus.com>
5215
5216         * java/util/Properties.java (setProperty): New method.
5217         (store): New method.
5218
5219 2000-02-07  Tom Tromey  <tromey@cygnus.com>
5220
5221         * java/lang/Runtime.java (_load): Declare.
5222         (load, loadLibrary): Wrote in terms of _load.
5223         * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
5224         library.
5225         (loadLibrary): Likewise.
5226         Include <jni.h>.
5227         (_load): New method.
5228         (loadLibrary, load): Removed.
5229
5230         * jni.cc (ThrowableClass): New define.
5231         (_Jv_JNI_Throw): Check argument.
5232         (_Jv_JNI_ThrowNew): Likewise.
5233         (wrap_value): Don't wrap object if it is NULL.
5234         (_Jv_JNI_DefineClass): Use wrap_value.
5235         (_Jv_JNI_FindClass): Likewise.
5236         (_Jv_JNI_GetSuperclass): Likewise.
5237         (_Jv_JNI_ExceptionOccurred): Likewise.
5238         (_Jv_JNI_AllocObject): Likewise.
5239         (_Jv_JNI_GetObjectClass): Likewise.
5240         (_Jv_JNI_NewString): Likewise.
5241         (_Jv_JNI_NewStringUTF): Likewise.
5242         (_Jv_JNI_NewObjectArray): Likewise.
5243         (_Jv_JNI_GetObjectArrayElement): Likewise.
5244         (_Jv_JNI_NewPrimitiveArray): Likewise.
5245         (_Jv_JNI_ToReflectedField): Likewise.
5246         (_Jv_JNI_ToReflectedMethod): Likewise.
5247         (_Jv_JNI_AllocObject): Check argument.
5248         (_Jv_JNI_NewObjectV): Likewise.
5249         (_Jv_JNI_NewObject): Likewise.
5250         (_Jv_JNI_NewObjectA): Likewise.
5251         (_Jv_JNI_GetObjectClass): Likewise.
5252         (_Jv_JNI_GetField): Likewise.
5253         (_Jv_JNI_SetField): Likewise.
5254
5255         * interpret.cc (PUSHL): Don't use expression statement.
5256         (PUSHD): Likewise.
5257         (LOADL): Likewise.
5258         (STOREL): Likewise.
5259
5260         * jni.cc (add_char): Conditional on INTERPRETER.
5261         (mangled_name): Likewise.
5262         (call): Likewise.
5263         * include/java-interp.h (class _Jv_MethodBase): Conditional on
5264         INTERPRETER.
5265         (class _Jv_JNIMethod): Likewise.
5266
5267 2000-02-04  Warren Levy  <warrenl@cygnus.com>
5268
5269         * Makefile.am: Added MPN.java and BigInteger.java.
5270         * Makefile.in: Rebuilt.
5271         * gnu/gcj/math/MPN.java: New file.  From Kawa by Per Bothner
5272         <per@bothner.com>.
5273         * java/math/BigInteger.java: New file.  Based primarily on
5274         Kawa's IntNum.java by Per Bothner <per@bothner.com>.
5275
5276 2000-02-04  Tom Tromey  <tromey@cygnus.com>
5277
5278         * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
5279         pointers.
5280         (handleMethodsEnd): Fixed error messages.  Create a _Jv_JNIMethod
5281         if the method is native.
5282         * resolve.cc (ncode): Don't handle native methods.
5283         (_Jv_JNIMethod::ncode): New method.
5284         (_Jv_PrepareClass): Handle native methods.
5285         * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
5286         Include AbstractMethodError.h.
5287         (add_char): New function.
5288         (mangled_name): Likewise.
5289         * include/java-interp.h (class _Jv_JNIMethod): New class.
5290         (class _Jv_MethodBase): New class.
5291         (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
5292         (_Jv_InterpClass): Changed `interpreted_methods' field to type
5293         `_Jv_MethodBase'.
5294
5295         * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
5296         * java/lang/natRuntime.cc (libraries_size, libraries_count,
5297         libraries): New globals.
5298         (add_library): New function.
5299         (_Jv_FindSymbolInExecutable): New function.
5300
5301         * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
5302         Now static.
5303
5304 2000-02-04  Andrew Haley  <aph@cygnus.com>
5305
5306         * java/lang/Throwable.java (CPlusPlusDemangler): New class.
5307         (printStackTrace): Use a CPlusPlusDemangler to demangle names.
5308         * java/lang/natThrowable.cc (printRawStackTrace): Rename
5309         printStackTrace to printRawStackTrace.
5310
5311 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5312
5313         * java/util/Calendar.java (toString): New method.
5314         * java/util/SimpleTimeZone.java (clone): New method.
5315         (toString): New method.
5316         * java/util/TimeZone.java (clone): New method.
5317         * java/text/SimpleDateFormat.java (clone): New method.
5318         * java/text/NumberFormat.java (clone): New method.
5319         (equals): New method.
5320         * java/text/Format.java (clone): New method.
5321         * java/text/DateFormatSymbols.java (DateFormatSymbols): New
5322         constructor.
5323         (clone): New method.
5324         * java/text/DateFormat.java (clone): New method.
5325         * java/text/Collator.java (clone): New method.
5326
5327 2000-02-03  Tom Tromey  <tromey@cygnus.com>
5328
5329         * java/io/PipedOutputStream.java (write(byte[], int, int)): New
5330         method.
5331
5332 2000-02-01  Tom Tromey  <tromey@cygnus.com>
5333
5334         * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
5335         * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
5336         constructing the closure if the function is native.
5337         * jni.cc (_Jv_JNI_conversion_call): Now returns `void'.  No longer
5338         a template function, #if'd out, or static.
5339         Include <java-interp.h>.
5340
5341         * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
5342
5343         * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
5344
5345         * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
5346         (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
5347         `locals == NULL'.
5348         (wrap_value): New function.
5349         (_Jv_JNI_CallAnyMethodV): Use it.
5350         (_Jv_JNI_CallAnyMethodA): Likewise.
5351         (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
5352         (_Jv_JNI_GetStaticField): Likewise.
5353
5354         * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
5355         (_Jv_JNI_GetStaticField): Likewise.
5356
5357 2000-01-31  Tom Tromey  <tromey@cygnus.com>
5358
5359         * prims.cc (_Jv_MallocUnchecked): New function.
5360         (main_init): Call _Jv_JNI_Init.
5361         * include/jvm.h (_Jv_MallocUnchecked): Declare.
5362         (_Jv_JNI_Init): Declare.
5363         * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
5364         <string.h>.
5365         (_Jv_JNI_NewGlobalRef): New function.
5366         (_Jv_JNI_DeleteGlobalRef): New function.
5367         (_Jv_JNI_DeleteLocalRef): New function.
5368         (_Jv_JNI_conversion_call): Initialize and clear local reference
5369         frame.
5370         (_Jv_JNI_NewLocalRef): New function.
5371         (struct _Jv_JNI_LocalFrame): New structure.
5372         (_Jv_JNI_PushLocalFrame): New function.
5373         (_Jv_JNI_EnsureLocalCapacity): New function.
5374         (FRAME_SIZE): New define.
5375         (_Jv_JNI_GetStringChars): Mark string, not characters.
5376         (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
5377         (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
5378         (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
5379         elements.
5380         (_Jv_JNI_DefineClass): Make return value a local ref.
5381         (_Jv_JNI_FindClass): Likewise.
5382         (_Jv_JNI_GetSuperclass): Likewise.
5383         (_Jv_JNI_ExceptionOccurred): Likewise.
5384         (_Jv_JNI_AllocObject): Likewise.
5385         (_Jv_JNI_GetObjectClass): Likewise.
5386         (_Jv_JNI_CallAnyMethodV): Likewise.
5387         (_Jv_JNI_NewString): Likewise.
5388         (_Jv_JNI_NewStringUTF): Likewise.
5389         (_Jv_JNI_NewObjectArray): Likewise.
5390         (_Jv_JNI_GetObjectArrayElement): Likewise.
5391         (_Jv_JNI_ToReflectedField): Likewise.
5392         (_Jv_JNI_ToReflectedMethod): Likewise.
5393         (_Jv_JNIFunctions): Updated table for new functions.
5394         (_Jv_JNI_Init): New function.
5395         (mark_for_gc): Wrote.
5396         (unmark_for_gc): Wrote.
5397         * include/jni.h (struct JNINativeInterface): Removed name from
5398         PopLocalFrame parameter.
5399         (class _Jv_JNIEnv): Added `locals' field.
5400
5401 Mon Jan 31 00:43:15 2000  Anthony Green  <green@redhat.com>
5402
5403         * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
5404         (write): Ditto.
5405
5406 2000-01-30  Tom Tromey  <tromey@cygnus.com>
5407
5408         * include/config.h.in: Rebuilt.
5409         * acconfig.h (HAVE_ICONV): Define.
5410         * configure: Rebuilt.
5411         * configure.in: Check for `iconv' function.
5412         * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
5413         no specific encoder exists.
5414         * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
5415         no specific encoder exists.
5416         * Makefile.in: Rebuilt.
5417         * Makefile.am (convert_source_files): Mention Input_iconv.java and
5418         Output_iconv.java.
5419         (nat_source_files): Added natIconv.cc.
5420         * gnu/gcj/convert/natIconv.cc: New file.
5421         * gnu/gcj/convert/Input_iconv.java: New file.
5422         * gnu/gcj/convert/Output_iconv.java: New file.
5423
5424 2000-01-28  Tom Tromey  <tromey@cygnus.com>
5425
5426         * Makefile.in: Rebuilt.
5427         * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
5428
5429 2000-01-26  Tom Tromey  <tromey@cygnus.com>
5430
5431         * gcj/method.h (JvNumMethods): Moved from Class.h.
5432         (JvGetFirstMethod): Likewise.
5433         * java/lang/Class.h (Object): Updated decl of
5434         _Jv_JNI_ToReflectedField.
5435         (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
5436         * Makefile.in: Rebuilt.
5437         * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
5438         argument of _Jv_JNI_ToReflectedField.
5439         (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
5440         as a friend.
5441         (java/lang/reflect/Method.h): Likewise.
5442         * include/jni.h (class _Jv_JNIEnv): Added `klass' member.  Use
5443         __GCJ_JNI_IMPL__.
5444         (jweak): New typedef.
5445         (struct JNINativeInterface): Correctly declare remaining entries.
5446         * jni.cc: Include Class.h, ClassLoader.h.
5447         (_Jv_JNI_FindClass): New function.
5448         (_Jv_JNI_DefineClass): New function.
5449         (_Jv_JNI_conversion_call): New function.
5450         (_Jv_JNI_FindClass): Use current class loader to find class.
5451         (_Jv_JNI_ExceptionCheck): New function.
5452         (_Jv_JNI_FromReflectedField): Now static.
5453         (MethodClass): New define.
5454         (_Jv_JNI_FromReflectedMethod): New function.
5455         (_Jv_JNI_ToReflectedMethod): Likewise.
5456         Include Method.h.
5457         (_Jv_JNI_IsAssignableFrom): Renamed.
5458         (_Jv_JNI_GetStringRegion): New function.
5459         Include StringIndexOutOfBoundsException.h.
5460         (_Jv_JNI_GetStringUTFRegion): New function.
5461         (_Jv_JNIFunctions): Updated for new functions.
5462         (_Jv_JNI_GetPrimitiveArrayCritical): New function
5463         (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
5464         (_Jv_JNI_GetStringCritical): New function.
5465         (_Jv_JNI_ReleaseStringCritical): Likewise.
5466         (get_throwable): Removed.
5467         (GCJ_JV_JNIENV_FRIEND): Removed.
5468         (__GCJ_JNI_IMPL__): Define.
5469         Include method.h.
5470
5471         * resolve.cc (get_ffi_type_from_signature): Handle case where
5472         boolean is an int.
5473
5474 Tue Jan 25 08:51:16 2000  Tom Tromey  <tromey@ferrule.cygnus.com>
5475
5476         * interpret.cc (run): Don't call println.
5477         Don't include PrintStream.h.
5478
5479         * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
5480         nameIndex.  Use "jint" as type for boffset.
5481         * java/lang/Class.h (struct _Jv_Method): Made accflags a
5482         _Jv_ushort.
5483         (Class): Likewise.  Also changed type of method_count,
5484         vtable_method_count, size_in_bytes, field_count,
5485         static_field_count, interface_count.
5486         * gcj/array.h (__JArray): Made `length' a const jsize, not an
5487         int.
5488
5489 2000-01-21  Tom Tromey  <tromey@cygnus.com>
5490
5491         * java/lang/reflect/natConstructor.cc (newInstance): Use
5492         _Jv_CallAnyMethodA.
5493         * include/jvm.h: Declare _Jv_CallAnyMethodA.
5494         * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
5495         from _Jv_CallNonvirtualMethodA.  Changed interface; overloaded.
5496         Include <jni.h>.
5497         (COPY): Removed.
5498         (invoke): Use _Jv_CallAnyMethodA.
5499         (VAL): Redefined.
5500         * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
5501         JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
5502         functions.
5503         (struct _Jv_Method): Added getNextMethod method.
5504         (JvNumMethods): New function.
5505         (JvGetFirstMethod): Likewise.
5506         * gcj/field.h (JvGetFirstStaticField): New function.
5507         (JvNumStaticFields): Likewise.
5508         (getNextField): Renamed from getNextInstanceField.
5509         (struct _Jv_Field): New method getClass.
5510         * jni.cc: Wrote many new functions.
5511         * include/jni.h (JNI_TRUE): Define.
5512         (JNI_FALSE): Likewise.
5513         (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
5514         jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
5515         jcharArray, jfloatArray, jdoubleArray): New typedefs.
5516         (jfieldID, jmethodID): Likewise.
5517         (JNI_COMMIT, JNI_ABORT): New defines.
5518         (JNINativeMethod): New struct.
5519         (struct JNINativeInterface): Correctly declared more entries.
5520         (class _Jv_JNIEnv): Added `ex' member.
5521         (JNI_VERSION_1_1): New define.
5522         (JNI_VERSION_1_2): Likewise.
5523
5524         * boehm.cc (_Jv_MarkObj): Use getNextField, not
5525         getNextInstanceField.
5526
5527 2000-01-20  Tom Tromey  <tromey@cygnus.com>
5528
5529         * resolve.cc (StringClass): Removed.
5530         * defineclass.cc (StringClass): Removed.
5531
5532 2000-01-19  Bryce McKinlay  <bryce@albatross.co.nz>
5533
5534         * NEWS: updated.
5535
5536 2000-01-19  Tom Tromey  <tromey@cygnus.com>
5537
5538         * interpret.cc (PC_REGISTER_ASM): Removed.
5539
5540         * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
5541         From Bryce McKinlay.
5542
5543         * All files: Updated copyright to reflect Cygnus purchase.
5544
5545 2000-01-18  Bryce McKinlay <bryce@albatross.co.nz>
5546
5547         * configure: Rebuilt.
5548         * configure.in: Recognize --disable-interpreter.
5549
5550 2000-01-18  Andrew Haley  <aph@cygnus.com>
5551
5552         * name-finder.cc (lookup): Check for dladdr function.
5553         acconfig.h (HAVE_DLADDR): Add.
5554         configure.in: Check for HAVE_DLADDR
5555         configure: Rebuilt.
5556         include/config.h.in:  Rebuilt.
5557
5558 2000-01-17  Andrew Haley  <aph@cygnus.com>
5559
5560         * prims.cc (_Jv_RunMain): Set the name of this executable.
5561
5562 2000-01-17  Tom Tromey  <tromey@cygnus.com>
5563
5564         * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
5565         when backtrace can't be computed.
5566
5567         * configure: Rebuilt.
5568         * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
5569
5570         * java/lang/Runtime.java (loadLibraryInternal): Declare.
5571         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
5572         (_Jv_FindClassInCache): Likewise.
5573         (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
5574         (findSystemClass): Try to load class from compiled module.
5575         Include Runtime.h.
5576         * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
5577         (loadLibrary): Likewise.
5578         (lt_preloaded_symbols): Define.
5579         (loadLibraryInternal): New method.
5580         * include/config.h.in: Rebuilt.
5581         * acconfig.h (USE_LTDL): Added.
5582         * Makefile.am (SUBDIRS): Added $(DIRLTDL).
5583         (INCLUDES): Added $(INCLTDL).
5584         (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
5585         (libgcj_la_LIBADD): Likewise.
5586         * aclocal.m4, configure: Rebuilt.
5587         * configure.in: Added libltdl support.
5588
5589 2000-01-15  Tom Tromey  <tromey@cygnus.com>
5590
5591         * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
5592
5593 2000-01-14  Andrew Haley  <aph@cygnus.com>
5594
5595         * java/lang/natThrowable.cc: New file.
5596
5597         * java/lang/Throwable.java (fillInStackTrace): Make native.
5598         (printStackTrace): Call native method to do this.
5599         (Throwable): Call fillInStackTrace.
5600         (stackTrace): New variable.
5601         
5602         * include/jvm.h: Add _Jv_ThisExecutable functions.
5603         
5604         * prims.cc: (_Jv_execName): New variable.
5605         (catch_segv): Call fillInStackTrace.
5606         (catch_fpe): Ditto.
5607         (_Jv_ThisExecutable): New functions.
5608         (JvRunMain): Set the name of this executable.
5609
5610         * Makefile.am: Add java/lang/natThrowable.cc.
5611         Add name-finder.cc.
5612         * Makefile.in: Rebuilt.
5613
5614         * acconfig.h: Add HAVE_PROC_SELF_EXE.
5615
5616         * configure.in: Force link with __frame_state_for in
5617         FORCELIBGCCSPEC.  Add new checks for backtrace.
5618         * include/config.h.in: Rebuilt.
5619
5620         * name-finder.cc: New file.
5621         * include/name-finder.h: New file.
5622
5623 2000-01-16  Anthony Green  <green@cygnus.com>
5624
5625         * java/lang/StringBuffer.java (StringBuffer): Don't special case
5626         null argument.
5627
5628 2000-01-16  Jeff Sturm  <jsturm@sigma6.com>
5629
5630         * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5631
5632 2000-01-13  Tom Tromey  <tromey@cygnus.com>
5633
5634         * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
5635         not system loader, as initiating loader.
5636
5637 2000-01-11  Tom Tromey  <tromey@cygnus.com>
5638
5639         * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
5640         HP/UX.  From David Scott Urban.
5641
5642 2000-01-10  Jeff Sturm  <jsturm@sigma6.com>
5643
5644         * java/lang/natMath.cc (pow): Cast args to `double', not
5645         `jdouble'.
5646         (atan2): Likewise.
5647         (IEEEremainder): Likewise.
5648         * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
5649         * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
5650
5651 2000-01-09  Anthony Green  <green@cygnus.com>
5652
5653         * java/lang/natString.cc (init): Test for overflow condition
5654         during out of bounds check.
5655         (getChars): Throw StringIndexOutOfBoundsException, not
5656         ArrayIndexOutOfBoundsException.
5657         (getBytes): Ditto.
5658         (regionMatches): Obey case option during string comparison.
5659
5660         * configure.host (ligcj_interpreter): New variable.  Enable
5661         interpreter by default on IA-32.
5662         * configure.in:  Examine libgcj_interpreter.
5663         * configure: Rebuilt.
5664
5665 2000-01-07  Tom Tromey  <tromey@cygnus.com>
5666
5667         * mauve-libgcj: Don't disable ClassTest.
5668
5669         * java/lang/natClass.cc (getClasses): Wrote.
5670
5671 2000-01-06  Tom Tromey  <tromey@cygnus.com>
5672
5673         * java/lang/natClass.cc (_getConstructors): Correctly check
5674         whether method name is the init name.
5675         (getMethod): Look at accflags on method in `klass', not `this'.
5676
5677 2000-01-05  Tom Tromey  <tromey@cygnus.com>
5678
5679         * java/lang/natClass.cc (getMethod): Compute offset relative to
5680         `klass's methods table, not `this's table.
5681
5682         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
5683         In unwrapping/widening case, check whether `k' is null, not
5684         whether it is primitive.  Initialize `num' from `argelts', not
5685         `paramelts'.  Correct create and pass arguments to ffi_call.
5686         Don't let presence of `this' argument affect index used to look in
5687         argument arrays.
5688         (COPY): Set appropriate element in `values' vector.
5689
5690         * java/lang/natClass.cc: Include <gcj/method.h>.
5691
5692         * java/lang/Class.h (_getMethods): Correctly declare as private,
5693         not public.
5694
5695         * java/lang/Class.h (_getMethods): Declare.
5696         * java/lang/Class.java (_getMethods): Declare.
5697         * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
5698         (getDeclaredClasses): Always return empty array.
5699         (_getMethods): New method.
5700         (getMethods): Wrote.
5701         (getDeclaredMethod): Return `rmethod'.
5702         (finit_name): New global.
5703         (getDeclaredMethods): Check for finit_name.
5704         (_getMethods): Likewise.
5705         (getMethod): Only return public methods.
5706
5707         * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
5708         jboolean and select correct ffi type on that basis.
5709         (_Jv_CallNonvirtualMethodA): Handle `void' return type.
5710         Constructor call always has `void' return type.
5711
5712 2000-01-04  Tom Tromey  <tromey@cygnus.com>
5713
5714         * java/lang/Class.h (getSignature): Updated.
5715         * java/lang/Class.java (getSignature): Updated.
5716         * java/lang/natClass.cc (getSignature): Added `is_constructor'
5717         argument.
5718         (getConstructor): Ensure constructor is public.
5719         (_getConstructors): Check for public-ness of constructor when
5720         `declared' is false, not when it is true.
5721
5722 2000-01-04  Warren Levy  <warrenl@cygnus.com>
5723
5724         * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
5725         comment.
5726         (receive): Set the sender's address in the DatagramPacket.
5727
5728 2000-01-04  Tom Tromey  <tromey@cygnus.com>
5729
5730         * java/lang/reflect/natConstructor.cc (newInstance): Pass
5731         declaring class as return_type argument to
5732         _Jv_CallNonvirtualMethodA.
5733         * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
5734         constructor case, create object and use it as `this' argument.
5735         * java/lang/Class.h (_getConstructors): Declare.
5736         (_getFields): Declare.
5737         * java/lang/Class.java (getConstructors): Wrote.
5738         (_getConstructors): New native method.
5739         (getDeclaredConstructors): Wrote.
5740         (_getFields): Declare new native method.
5741         * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
5742         incorrect comment.
5743         (getMethod): Work correctly when class is primitive.
5744         (getDeclaredMethods): Likewise.  Compute offset using `method',
5745         not `mptr'.
5746         (getDeclaredMethod): Likewise.
5747         (getConstructor): Wrote.
5748         (ConstructorClass): New define.
5749         (getDeclaredConstructor): Wrote.
5750         (_getConstructors): New method.
5751         (_getFields): New method.
5752         (getFields): Wrote.
5753
5754         * Makefile.in: Rebuilt.
5755         * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
5756
5757         * prims.cc: Remove `#pragma implementation'.
5758         * gcj/array.h: Remove `#pragma interface'.
5759
5760         * prims.cc (_Jv_equaln): New function.
5761         * java/lang/Class.java (getSignature): Declare.
5762         * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
5763         * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
5764         resolve.cc.
5765         (getSignature): New method.
5766         (getDeclaredMethod): Wrote.
5767         (getMethod): Wrote.
5768         Include StringBuffer.h.
5769         * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
5770         as a friend.  Unconditionally declare _Jv_LookupDeclaredMethod as
5771         a friend.
5772         (getSignature): Declare.
5773         * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
5774         (_Jv_equaln): Declare.
5775         (_Jv_CallNonvirtualMethodA): Declare.
5776         * Makefile.in: Rebuilt.
5777         * Makefile.am (nat_source_files): Added natConstructor.cc.
5778         (java/lang/reflect/Constructor.h): New target.
5779         * java/lang/reflect/natConstructor.cc: New file.
5780         * java/lang/reflect/Constructor.java (newInstance): Now native.
5781         (declaringClass): Renamed from decl_class.
5782         (offset): Renamed from index.
5783         (getType): New native method.
5784         (getModifiers): Now native.
5785         (getParameterTypes): Call getType if required.
5786         (hashCode): Include hash code from declaring class.
5787         (modifiers): Removed.
5788         (toString): Call getType if required.
5789         * gcj/method.h (_Jv_FromReflectedConstructor): New function.
5790         * java/lang/reflect/natMethod.cc (hack_call): New method.
5791         Removed `#if 0' around FFI code.
5792         Include <gnu/gcj/RawData.h>.
5793         (invoke): Use _Jv_CallNonvirtualMethodA.  Throw
5794         IllegalArgumentException when argument object and class disagree.
5795         (_Jv_GetTypesFromSignature): New function.
5796         (getType): Use it.
5797         (ObjectClass): New define.
5798         (_Jv_CallNonvirtualMethodA): New function.
5799         * java/lang/reflect/Method.java (hack_trampoline): New method.
5800         (hack_call): New native method.