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