OSDN Git Service

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