OSDN Git Service

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