OSDN Git Service

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