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