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