OSDN Git Service

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