OSDN Git Service

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