* include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
[gcc.git] / libjava / ChangeLog
1 2000-02-01 Tom Tromey <tromey@cygnus.com>
2
3 * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
4
5 * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
6
7 * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
8 (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
9 `locals == NULL'.
10 (wrap_value): New function.
11 (_Jv_JNI_CallAnyMethodV): Use it.
12 (_Jv_JNI_CallAnyMethodA): Likewise.
13 (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
14 (_Jv_JNI_GetStaticField): Likewise.
15
16 * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
17 (_Jv_JNI_GetStaticField): Likewise.
18
19 2000-01-31 Tom Tromey <tromey@cygnus.com>
20
21 * prims.cc (_Jv_MallocUnchecked): New function.
22 (main_init): Call _Jv_JNI_Init.
23 * include/jvm.h (_Jv_MallocUnchecked): Declare.
24 (_Jv_JNI_Init): Declare.
25 * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
26 <string.h>.
27 (_Jv_JNI_NewGlobalRef): New function.
28 (_Jv_JNI_DeleteGlobalRef): New function.
29 (_Jv_JNI_DeleteLocalRef): New function.
30 (_Jv_JNI_conversion_call): Initialize and clear local reference
31 frame.
32 (_Jv_JNI_NewLocalRef): New function.
33 (struct _Jv_JNI_LocalFrame): New structure.
34 (_Jv_JNI_PushLocalFrame): New function.
35 (_Jv_JNI_EnsureLocalCapacity): New function.
36 (FRAME_SIZE): New define.
37 (_Jv_JNI_GetStringChars): Mark string, not characters.
38 (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
39 (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
40 (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
41 elements.
42 (_Jv_JNI_DefineClass): Make return value a local ref.
43 (_Jv_JNI_FindClass): Likewise.
44 (_Jv_JNI_GetSuperclass): Likewise.
45 (_Jv_JNI_ExceptionOccurred): Likewise.
46 (_Jv_JNI_AllocObject): Likewise.
47 (_Jv_JNI_GetObjectClass): Likewise.
48 (_Jv_JNI_CallAnyMethodV): Likewise.
49 (_Jv_JNI_NewString): Likewise.
50 (_Jv_JNI_NewStringUTF): Likewise.
51 (_Jv_JNI_NewObjectArray): Likewise.
52 (_Jv_JNI_GetObjectArrayElement): Likewise.
53 (_Jv_JNI_ToReflectedField): Likewise.
54 (_Jv_JNI_ToReflectedMethod): Likewise.
55 (_Jv_JNIFunctions): Updated table for new functions.
56 (_Jv_JNI_Init): New function.
57 (mark_for_gc): Wrote.
58 (unmark_for_gc): Wrote.
59 * include/jni.h (struct JNINativeInterface): Removed name from
60 PopLocalFrame parameter.
61 (class _Jv_JNIEnv): Added `locals' field.
62
63 Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
64
65 * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
66 (write): Ditto.
67
68 2000-01-30 Tom Tromey <tromey@cygnus.com>
69
70 * include/config.h.in: Rebuilt.
71 * acconfig.h (HAVE_ICONV): Define.
72 * configure: Rebuilt.
73 * configure.in: Check for `iconv' function.
74 * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
75 no specific encoder exists.
76 * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
77 no specific encoder exists.
78 * Makefile.in: Rebuilt.
79 * Makefile.am (convert_source_files): Mention Input_iconv.java and
80 Output_iconv.java.
81 (nat_source_files): Added natIconv.cc.
82 * gnu/gcj/convert/natIconv.cc: New file.
83 * gnu/gcj/convert/Input_iconv.java: New file.
84 * gnu/gcj/convert/Output_iconv.java: New file.
85
86 2000-01-28 Tom Tromey <tromey@cygnus.com>
87
88 * Makefile.in: Rebuilt.
89 * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
90
91 2000-01-26 Tom Tromey <tromey@cygnus.com>
92
93 * gcj/method.h (JvNumMethods): Moved from Class.h.
94 (JvGetFirstMethod): Likewise.
95 * java/lang/Class.h (Object): Updated decl of
96 _Jv_JNI_ToReflectedField.
97 (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
98 * Makefile.in: Rebuilt.
99 * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
100 argument of _Jv_JNI_ToReflectedField.
101 (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
102 as a friend.
103 (java/lang/reflect/Method.h): Likewise.
104 * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
105 __GCJ_JNI_IMPL__.
106 (jweak): New typedef.
107 (struct JNINativeInterface): Correctly declare remaining entries.
108 * jni.cc: Include Class.h, ClassLoader.h.
109 (_Jv_JNI_FindClass): New function.
110 (_Jv_JNI_DefineClass): New function.
111 (_Jv_JNI_conversion_call): New function.
112 (_Jv_JNI_FindClass): Use current class loader to find class.
113 (_Jv_JNI_ExceptionCheck): New function.
114 (_Jv_JNI_FromReflectedField): Now static.
115 (MethodClass): New define.
116 (_Jv_JNI_FromReflectedMethod): New function.
117 (_Jv_JNI_ToReflectedMethod): Likewise.
118 Include Method.h.
119 (_Jv_JNI_IsAssignableFrom): Renamed.
120 (_Jv_JNI_GetStringRegion): New function.
121 Include StringIndexOutOfBoundsException.h.
122 (_Jv_JNI_GetStringUTFRegion): New function.
123 (_Jv_JNIFunctions): Updated for new functions.
124 (_Jv_JNI_GetPrimitiveArrayCritical): New function
125 (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
126 (_Jv_JNI_GetStringCritical): New function.
127 (_Jv_JNI_ReleaseStringCritical): Likewise.
128 (get_throwable): Removed.
129 (GCJ_JV_JNIENV_FRIEND): Removed.
130 (__GCJ_JNI_IMPL__): Define.
131 Include method.h.
132
133 * resolve.cc (get_ffi_type_from_signature): Handle case where
134 boolean is an int.
135
136 Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
137
138 * interpret.cc (run): Don't call println.
139 Don't include PrintStream.h.
140
141 * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
142 nameIndex. Use "jint" as type for boffset.
143 * java/lang/Class.h (struct _Jv_Method): Made accflags a
144 _Jv_ushort.
145 (Class): Likewise. Also changed type of method_count,
146 vtable_method_count, size_in_bytes, field_count,
147 static_field_count, interface_count.
148 * gcj/array.h (__JArray): Made `length' a const jsize, not an
149 int.
150
151 2000-01-21 Tom Tromey <tromey@cygnus.com>
152
153 * java/lang/reflect/natConstructor.cc (newInstance): Use
154 _Jv_CallAnyMethodA.
155 * include/jvm.h: Declare _Jv_CallAnyMethodA.
156 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
157 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
158 Include <jni.h>.
159 (COPY): Removed.
160 (invoke): Use _Jv_CallAnyMethodA.
161 (VAL): Redefined.
162 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
163 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
164 functions.
165 (struct _Jv_Method): Added getNextMethod method.
166 (JvNumMethods): New function.
167 (JvGetFirstMethod): Likewise.
168 * gcj/field.h (JvGetFirstStaticField): New function.
169 (JvNumStaticFields): Likewise.
170 (getNextField): Renamed from getNextInstanceField.
171 (struct _Jv_Field): New method getClass.
172 * jni.cc: Wrote many new functions.
173 * include/jni.h (JNI_TRUE): Define.
174 (JNI_FALSE): Likewise.
175 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
176 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
177 jcharArray, jfloatArray, jdoubleArray): New typedefs.
178 (jfieldID, jmethodID): Likewise.
179 (JNI_COMMIT, JNI_ABORT): New defines.
180 (JNINativeMethod): New struct.
181 (struct JNINativeInterface): Correctly declared more entries.
182 (class _Jv_JNIEnv): Added `ex' member.
183 (JNI_VERSION_1_1): New define.
184 (JNI_VERSION_1_2): Likewise.
185
186 * boehm.cc (_Jv_MarkObj): Use getNextField, not
187 getNextInstanceField.
188
189 2000-01-20 Tom Tromey <tromey@cygnus.com>
190
191 * resolve.cc (StringClass): Removed.
192 * defineclass.cc (StringClass): Removed.
193
194 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
195
196 * NEWS: updated.
197
198 2000-01-19 Tom Tromey <tromey@cygnus.com>
199
200 * interpret.cc (PC_REGISTER_ASM): Removed.
201
202 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
203 From Bryce McKinlay.
204
205 * All files: Updated copyright to reflect Cygnus purchase.
206
207 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
208
209 * configure: Rebuilt.
210 * configure.in: Recognize --disable-interpreter.
211
212 2000-01-18 Andrew Haley <aph@cygnus.com>
213
214 * name-finder.cc (lookup): Check for dladdr function.
215 acconfig.h (HAVE_DLADDR): Add.
216 configure.in: Check for HAVE_DLADDR
217 configure: Rebuilt.
218 include/config.h.in: Rebuilt.
219
220 2000-01-17 Andrew Haley <aph@cygnus.com>
221
222 * prims.cc (_Jv_RunMain): Set the name of this executable.
223
224 2000-01-17 Tom Tromey <tromey@cygnus.com>
225
226 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
227 when backtrace can't be computed.
228
229 * configure: Rebuilt.
230 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
231
232 * java/lang/Runtime.java (loadLibraryInternal): Declare.
233 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
234 (_Jv_FindClassInCache): Likewise.
235 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
236 (findSystemClass): Try to load class from compiled module.
237 Include Runtime.h.
238 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
239 (loadLibrary): Likewise.
240 (lt_preloaded_symbols): Define.
241 (loadLibraryInternal): New method.
242 * include/config.h.in: Rebuilt.
243 * acconfig.h (USE_LTDL): Added.
244 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
245 (INCLUDES): Added $(INCLTDL).
246 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
247 (libgcj_la_LIBADD): Likewise.
248 * aclocal.m4, configure: Rebuilt.
249 * configure.in: Added libltdl support.
250
251 2000-01-15 Tom Tromey <tromey@cygnus.com>
252
253 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
254
255 2000-01-14 Andrew Haley <aph@cygnus.com>
256
257 * java/lang/natThrowable.cc: New file.
258
259 * java/lang/Throwable.java (fillInStackTrace): Make native.
260 (printStackTrace): Call native method to do this.
261 (Throwable): Call fillInStackTrace.
262 (stackTrace): New variable.
263
264 * include/jvm.h: Add _Jv_ThisExecutable functions.
265
266 * prims.cc: (_Jv_execName): New variable.
267 (catch_segv): Call fillInStackTrace.
268 (catch_fpe): Ditto.
269 (_Jv_ThisExecutable): New functions.
270 (JvRunMain): Set the name of this executable.
271
272 * Makefile.am: Add java/lang/natThrowable.cc.
273 Add name-finder.cc.
274 * Makefile.in: Rebuilt.
275
276 * acconfig.h: Add HAVE_PROC_SELF_EXE.
277
278 * configure.in: Force link with __frame_state_for in
279 FORCELIBGCCSPEC. Add new checks for backtrace.
280 * include/config.h.in: Rebuilt.
281
282 * name-finder.cc: New file.
283 * include/name-finder.h: New file.
284
285 2000-01-16 Anthony Green <green@cygnus.com>
286
287 * java/lang/StringBuffer.java (StringBuffer): Don't special case
288 null argument.
289
290 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
291
292 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
293
294 2000-01-13 Tom Tromey <tromey@cygnus.com>
295
296 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
297 not system loader, as initiating loader.
298
299 2000-01-11 Tom Tromey <tromey@cygnus.com>
300
301 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
302 HP/UX. From David Scott Urban.
303
304 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
305
306 * java/lang/natMath.cc (pow): Cast args to `double', not
307 `jdouble'.
308 (atan2): Likewise.
309 (IEEEremainder): Likewise.
310 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
311 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
312
313 2000-01-09 Anthony Green <green@cygnus.com>
314
315 * java/lang/natString.cc (init): Test for overflow condition
316 during out of bounds check.
317 (getChars): Throw StringIndexOutOfBoundsException, not
318 ArrayIndexOutOfBoundsException.
319 (getBytes): Ditto.
320 (regionMatches): Obey case option during string comparison.
321
322 * configure.host (ligcj_interpreter): New variable. Enable
323 interpreter by default on IA-32.
324 * configure.in: Examine libgcj_interpreter.
325 * configure: Rebuilt.
326
327 2000-01-07 Tom Tromey <tromey@cygnus.com>
328
329 * mauve-libgcj: Don't disable ClassTest.
330
331 * java/lang/natClass.cc (getClasses): Wrote.
332
333 2000-01-06 Tom Tromey <tromey@cygnus.com>
334
335 * java/lang/natClass.cc (_getConstructors): Correctly check
336 whether method name is the init name.
337 (getMethod): Look at accflags on method in `klass', not `this'.
338
339 2000-01-05 Tom Tromey <tromey@cygnus.com>
340
341 * java/lang/natClass.cc (getMethod): Compute offset relative to
342 `klass's methods table, not `this's table.
343
344 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
345 In unwrapping/widening case, check whether `k' is null, not
346 whether it is primitive. Initialize `num' from `argelts', not
347 `paramelts'. Correct create and pass arguments to ffi_call.
348 Don't let presence of `this' argument affect index used to look in
349 argument arrays.
350 (COPY): Set appropriate element in `values' vector.
351
352 * java/lang/natClass.cc: Include <gcj/method.h>.
353
354 * java/lang/Class.h (_getMethods): Correctly declare as private,
355 not public.
356
357 * java/lang/Class.h (_getMethods): Declare.
358 * java/lang/Class.java (_getMethods): Declare.
359 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
360 (getDeclaredClasses): Always return empty array.
361 (_getMethods): New method.
362 (getMethods): Wrote.
363 (getDeclaredMethod): Return `rmethod'.
364 (finit_name): New global.
365 (getDeclaredMethods): Check for finit_name.
366 (_getMethods): Likewise.
367 (getMethod): Only return public methods.
368
369 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
370 jboolean and select correct ffi type on that basis.
371 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
372 Constructor call always has `void' return type.
373
374 2000-01-04 Tom Tromey <tromey@cygnus.com>
375
376 * java/lang/Class.h (getSignature): Updated.
377 * java/lang/Class.java (getSignature): Updated.
378 * java/lang/natClass.cc (getSignature): Added `is_constructor'
379 argument.
380 (getConstructor): Ensure constructor is public.
381 (_getConstructors): Check for public-ness of constructor when
382 `declared' is false, not when it is true.
383
384 2000-01-04 Warren Levy <warrenl@cygnus.com>
385
386 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
387 comment.
388 (receive): Set the sender's address in the DatagramPacket.
389
390 2000-01-04 Tom Tromey <tromey@cygnus.com>
391
392 * java/lang/reflect/natConstructor.cc (newInstance): Pass
393 declaring class as return_type argument to
394 _Jv_CallNonvirtualMethodA.
395 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
396 constructor case, create object and use it as `this' argument.
397 * java/lang/Class.h (_getConstructors): Declare.
398 (_getFields): Declare.
399 * java/lang/Class.java (getConstructors): Wrote.
400 (_getConstructors): New native method.
401 (getDeclaredConstructors): Wrote.
402 (_getFields): Declare new native method.
403 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
404 incorrect comment.
405 (getMethod): Work correctly when class is primitive.
406 (getDeclaredMethods): Likewise. Compute offset using `method',
407 not `mptr'.
408 (getDeclaredMethod): Likewise.
409 (getConstructor): Wrote.
410 (ConstructorClass): New define.
411 (getDeclaredConstructor): Wrote.
412 (_getConstructors): New method.
413 (_getFields): New method.
414 (getFields): Wrote.
415
416 * Makefile.in: Rebuilt.
417 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
418
419 * prims.cc: Remove `#pragma implementation'.
420 * gcj/array.h: Remove `#pragma interface'.
421
422 * prims.cc (_Jv_equaln): New function.
423 * java/lang/Class.java (getSignature): Declare.
424 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
425 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
426 resolve.cc.
427 (getSignature): New method.
428 (getDeclaredMethod): Wrote.
429 (getMethod): Wrote.
430 Include StringBuffer.h.
431 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
432 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
433 a friend.
434 (getSignature): Declare.
435 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
436 (_Jv_equaln): Declare.
437 (_Jv_CallNonvirtualMethodA): Declare.
438 * Makefile.in: Rebuilt.
439 * Makefile.am (nat_source_files): Added natConstructor.cc.
440 (java/lang/reflect/Constructor.h): New target.
441 * java/lang/reflect/natConstructor.cc: New file.
442 * java/lang/reflect/Constructor.java (newInstance): Now native.
443 (declaringClass): Renamed from decl_class.
444 (offset): Renamed from index.
445 (getType): New native method.
446 (getModifiers): Now native.
447 (getParameterTypes): Call getType if required.
448 (hashCode): Include hash code from declaring class.
449 (modifiers): Removed.
450 (toString): Call getType if required.
451 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
452 * java/lang/reflect/natMethod.cc (hack_call): New method.
453 Removed `#if 0' around FFI code.
454 Include <gnu/gcj/RawData.h>.
455 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
456 IllegalArgumentException when argument object and class disagree.
457 (_Jv_GetTypesFromSignature): New function.
458 (getType): Use it.
459 (ObjectClass): New define.
460 (_Jv_CallNonvirtualMethodA): New function.
461 * java/lang/reflect/Method.java (hack_trampoline): New method.
462 (hack_call): New native method.
463
464 1999-12-21 Per Bothner <per@bothner.com>
465
466 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
467 offset in new Method.
468
469 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
470
471 * java/lang/natObject.cc (notify): Throw message with
472 IllegalMonitorStateException.
473 (notifyAll): Ditto.
474 (wait): Ditto.
475 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
476 (isInterrupted_): New function, which does clear interrupt_flag.
477 (interrupt): Use `isInterrupted_'.
478 * java/lang/natThread.cc (interrupt): Add comment.
479 (join): Set `prev' in joiner loop.
480 Change various calls to `isInterrupted' to use `isInterrupted_'.
481 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
482 on linux. Set result to 0 on an interrupt. Test interrupted status
483 of java Thread object directly.
484 FLAG_INTERRUPTED: removed.
485 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
486 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
487 (_Jv_InitThreads): Don't block SIGINT.
488 (_Jv_ThreadWait): Don't configure SIGINT handler.
489
490 1999-12-21 Tom Tromey <tromey@cygnus.com>
491
492 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
493
494 1999-12-20 Tom Tromey <tromey@cygnus.com>
495
496 * java/lang/reflect/Modifier.java (STRICT): New constant.
497 (isStrict): New method.
498 (toString): Added `strict'.
499
500 1999-12-23 Anthony Green <green@cygnus.com>
501
502 * configure: Rebuilt.
503 * configure.in (LIBDATASTARTSPEC): Force data_start in with
504 linker trick.
505
506 1999-12-19 Anthony Green <green@cygnus.com>
507
508 * libgcjdata.c: New file.
509 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
510 * configure: Rebuilt.
511 * configure.in (LIBDATASTARTSPEC): Force data with a known name
512 into the program.
513 * Makefile.in: Rebuilt.
514 * Makefile.am: Build libgcjdata.a.
515
516 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
517 * configure: Rebuilt.
518 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
519 into every program.
520
521 1999-12-17 Tom Tromey <tromey@cygnus.com>
522
523 * java/lang/reflect/Method.java (toString): Call getType if
524 required. Partial fix for PR libgcj/111. From Per Bothner.
525
526 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
527
528 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
529
530 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
531 null String constructor parameter.
532 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
533 for exception messages.
534 BooleanClass: declare.
535 (setOption): Use BooleanClass instead of Class.forName() for
536 instanceof test.
537 (bind): Cast 4th parameter of setsockopt to `char *' for
538 compatibility with older Solaris headers.
539 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
540 sprintf calls for exception messages.
541 BooleanClass, IntegerClass: declare.
542 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
543 for instanceof test.
544
545 1999-12-15 Tom Tromey <tromey@cygnus.com>
546
547 * java/lang/natSystem.cc (init_properties): Don't set user.name or
548 user.home if NO_GETUID defined. Only set user.dir if getcwd
549 exists.
550
551 * include/config.h.in: Rebuilt.
552 * acconfig.h (NO_GETUID): New define.
553 * configure.in: Rebuilt.
554 * configure.in: Define NO_GETUID in cross case. Check for getcwd
555 in native case.
556
557 1999-12-08 Tom Tromey <tromey@cygnus.com>
558
559 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
560 where no recursive mutexes exist. Fixes PR libgcj/117.
561
562 1999-12-05 Anthony Green <green@cygnus.com>
563
564 * include/jvm.h: Declare many functions with
565 __attribute__((__malloc__)).
566 * gcj/javaprims.h: Ditto.
567
568 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
569
570 * THANKS: Giving credit where credit is due.
571
572 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
573
574 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
575 if bindAddr is null.
576 * java/lang/natString.cc (equalsIgnoreCase): return false if
577 anotherString is null.
578 * java/lang/Boolean.java (valueOf): return FALSE if argument is
579 null.
580
581 1999-11-30 Tom Tromey <tromey@cygnus.com>
582
583 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
584 mutex to initialize. Initialize `count' if required.
585 Fixes PR libgcj/98.
586
587 1999-11-27 Per Bothner <per@bothner.com>
588
589 * exception.cc: Remove prototype declarations for malloc and free.
590 These clash with recent versions of glibc, which specifies `throws ()'
591 when __cplusplus is defined. Instead, #include <stdlib.h>.
592
593 1999-11-24 Tom Tromey <tromey@cygnus.com>
594
595 * prims.cc (_Jv_NewObjectArray): Use
596 _Jv_GetArrayElementFromElementType.
597 (_Jv_NewPrimArray): Likewise.
598 * java/lang/natObject.cc (clone): Use
599 _Jv_GetArrayElementFromElementType instead of sizeof.
600 * java/lang/natSystem.cc (arraycopy): Use
601 _Jv_GetArrayElementFromElementType.
602 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
603 function.
604
605 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
606
607 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
608 Exception messages. PR java.net/57.
609 (bind): set SO_REUSEADDR before bind.
610 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
611 overruns. PR java.net/57.
612
613 1999-11-19 Tom Tromey <tromey@cygnus.com>
614
615 * Makefile.am (DIVIDESPEC): Removed.
616 (EXCEPTIONSPEC): Removed.
617
618 1999-11-19 Andrew Haley <aph@cygnus.com>
619
620 * Makefile.am (JCFLAGS): Add -L$(here)
621 (JC1FLAGS): Ditto.
622 * Makefile.in: Rebuild.
623
624 1999-11-18 Tom Tromey <tromey@cygnus.com>
625
626 * java/lang/natDouble.cc: Include <config.h>.
627
628 * include/config.h.in: Rebuilt.
629 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
630 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
631 targets.
632 * configure: Rebuilt.
633 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
634 requested by configure.host. Don't put `-D' option into
635 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
636
637 * configure: Rebuilt.
638 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
639 sjlj-exceptions.
640
641 1999-11-18 Andrew Haley <aph@cygnus.com>
642
643 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
644 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
645 (JC1FLAGS): Ditto.
646 * Makefile.in: Rebuild
647 * acconfig.h: remove SJLJ_EXCEPTIONS
648 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
649 Do not AC_DEFINE SJLJ_EXCEPTIONS.
650 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
651 * gcj/Makefile.in, include/Makefile.in: rebuild.
652 * include/config.h.in: remove SJLJ_EXCEPTIONS.
653
654 1999-11-18 Andrew Haley <aph@cygnus.com>
655
656 * gij.cc (main): Rename label to prevent conflict.
657
658 * exception.cc (_Jv_type_matcher): Don't check the table if we're
659 using setjmp/longjmp exceptions: there isn't one.
660
661 1999-11-17 Andrew Haley <aph@cygnus.com>
662
663 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
664 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
665 (__sjthrow): Add declaration.
666 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
667 (JC1FLAGS): Ditto
668 (AM_CFLAGS): Ditto
669 (AM_CXXFLAGS): Ditto
670 * Makefile.in: Rebuild
671 * acconfig.h: Add SJLJ_EXCEPTIONS
672 * configure.in: Add SJLJ_EXCEPTIONS
673 * configure: Rebuild.
674 * gcj/Makefile.in: Rebuild.
675 * gcj/cni.h: Add support for sjlj-exceptions.
676 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
677 * include/Makefile.in: Rebuild.
678 * include/default-signal.h: Add support for sjlj-exceptions.
679
680 1999-11-18 Tom Tromey <tromey@cygnus.com>
681
682 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
683
684 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
685 minus 1.
686 (method_cache): Made larger.
687
688 1999-11-11 Tom Tromey <tromey@cygnus.com>
689
690 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
691 initializing mutex. Initialize `count' when required.
692
693 1999-11-07 Anthony Green <green@trip.cygnus.com>
694
695 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
696 data correctly.
697
698 1999-11-05 Tom Tromey <tromey@cygnus.com>
699
700 * java/lang/natThread.cc (destroy): Removed incorrect comment.
701
702 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
703
704 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
705 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
706 multipler for `k'.
707
708 1999-11-05 Tom Tromey <tromey@cygnus.com>
709
710 * java/lang/natThread.cc (stop): Removed argument name.
711
712 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
713 `private'; now has default access.
714 * Makefile.in: Rebuilt.
715 * Makefile.am (java/lang/ThreadGroup.h): Removed.
716
717 1999-11-04 Tom Tromey <tromey@cygnus.com>
718
719 * java/lang/natClass.cc (method_cache_count): Removed.
720 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
721 (_Jv_AddMethodToCache): Don't loop.
722
723 * configure.in: Removed `qt' threads case.
724 * include/quick-threads.h: Removed.
725 * quick-threads.cc: Removed.
726
727 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
728 (_Jv_ThreadDestroy): Likewise.
729 * include/no-threads.h (_Jv_ThreadCancel): Removed.
730 (_Jv_ThreadDestroy): Likewise.
731 * include/posix-threads.h (struct _Jv_Thread_t): Removed
732 `exception' field.
733 (_Jv_ThreadCancel): Removed decl.
734 (_Jv_ThreadDestroy): Removed.
735 * posix-threads.cc (_Jv_ThreadCancel): Removed.
736 (throw_cleanup): Removed.
737 (really_start): Don't push or pop cleanup.
738 (_Jv_ThreadInitData): Don't initialize `exception' field.
739 * java/lang/Thread.java (stop): Officially unimplemented.
740 * java/lang/natThread.cc (stop): Officially unimplemented.
741
742 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
743
744 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
745 instead.
746
747 1999-11-02 Tom Tromey <tromey@cygnus.com>
748
749 * boehm.cc: Don't include boehm-config.h.
750
751 1999-11-01 Tom Tromey <tromey@cygnus.com>
752
753 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
754 (sum_blocks): Removed.
755 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
756
757 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
758
759 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
760 before "super".
761 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
762 * java/io/InputStreamReader (InputStreamReader): ditto.
763
764 1999-10-22 Tom Tromey <tromey@cygnus.com>
765
766 * Makefile.in: Rebuilt.
767 * Makefile.am (java/lang/ClassLoader.h): New target.
768 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
769 to `redirect'.
770
771 * include/java-props.h (_Jv_Compiler_Properties): Changed
772 declaration.
773 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
774 * include/jvm.h (_Jv_GCSetInitialHeapSize,
775 _Jv_GCSetMaximumHeapSize): Declare.
776 (JvRunMain, _Jv_RunMain): Declare.
777 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
778 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
779 (_Jv_GCSetMaximumHeapSize): Likewise.
780 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
781 (_Jv_GCSetMaximumHeapSize): Likewise.
782 * prims.cc (parse_heap_size): New function.
783 (_Jv_SetInitialHeapSize): Likewise.
784 (_Jv_SetMaximumHeapSize): Likewise.
785 (_Jv_Compiler_Properties): New global.
786 * gij.cc (help): New function.
787 (version): Likewise.
788 (heap_size): Likewise.
789 (heap_max_size): Likewise.
790 (main): Parse arguments. Set _Jv_Compiler_Properties.
791 Include <config.h>, <java-props.h>.
792 (_Jv_Compiler_Properties): Removed.
793
794 1999-10-18 Tom Tromey <tromey@cygnus.com>
795
796 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
797 method.
798 (redirect): New static field.
799 * java/lang/ClassLoader.java (getSystemClassLoader): Now
800 native
801 (getVMClassLoader0): Removed.
802 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
803 (redirect): Removed.
804 (getSystemClassLoader): Implemented.
805
806 1999-10-16 Anthony Green <green@cygnus.com>
807
808 * java/lang/ClassLoader.java (getSystemResource): Use
809 getSystemClassLoader instead of ClassLoader.system.
810 (getSystemResourceAsStream): Ditto.
811
812 * java/lang/natClassLoader.cc (redirect): Make static and
813 remove #ifdef INTERPRETER so it is always defined.
814 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
815 returns a VMClassLoader.
816
817 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
818 PropertyResourceBundle if a properties file is found before a
819 ResourceBundle class.
820
821 1999-10-15 Tom Tromey <tromey@cygnus.com>
822
823 * gij.cc (main): Formatting fixes.
824 (_Jv_Compiler_Properties): Define.
825 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
826 declare.
827 (init_properties): Set properites from _Jv_Compiler_Properties.
828 * include/java-props.h (_Jv_Compiler_Properties,
829 _Jv_Environment_Properties): Declare.
830
831 * include/java-props.h: Added copyright.
832
833 1999-10-13 Anthony Green <green@cygnus.com>
834
835 * libtool-version: Catch up by incrementing current.
836
837 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
838 * configure, include/config.h.in: Rebuilt.
839 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
840 * configure.in: Added --disable-getenv-properties and new define
841 `DISABLE_GETENV_PROPERTIES'.
842
843 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
844 (next_property_key): New function.
845 (next_property_value): New function.
846 (process_gcj_properties): New function.
847 (JvRunMain): Call process_gcj_properties.
848 (_JvRunMain): Ditto.
849
850 * java/lang/natSystem.cc (init_properties): Set properties defined
851 in GCJ_PROPERTIES.
852
853 * include/java-props.h: New file.
854
855 * java/lang/natSystem.cc (init_properties): Add new properties to
856 conform with Java Product Versioning Specification.
857
858 1999-10-12 Tom Tromey <tromey@cygnus.com>
859
860 * configure: Rebuilt.
861 * configure.in: Fixed test for --disable-java-net.
862
863 1999-10-06 Tom Tromey <tromey@cygnus.com>
864
865 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
866 when building Canadian cross.
867 (NATIVE): Don't define when cross-compiling.
868
869 1999-10-04 Tom Tromey <tromey@cygnus.com>
870
871 * java/net/natPlainSocketImpl.cc: Don't include headers if
872 java.net is disabled.
873
874 * Makefile.in: Rebuilt.
875 * Makefile.am (ZINCS): Removed. This is defined in configure.in
876 when needed, and must be left empty when not needed.
877
878 1999-10-01 Anthony Green <green@cygnus.com>
879
880 * THANKS: Refreshed from htdocs version.
881
882 1999-10-01 Steve Chamberlain <sac@pobox.com>
883
884 * Makefile.in: Rebuilt.
885 * Makefile.am (ZINCS): Define
886
887 * configure: Rebuilt.
888 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
889
890 * java/lang/ieeefp.h: Add definitions for picoJava.
891
892 1999-10-01 Tom Tromey <tromey@cygnus.com>
893
894 * configure: Rebuilt.
895 * configure.in: Set classpath when invoking gcj. Use changequote
896 around sed invocation.
897
898 * java/net/natPlainSocketImpl.cc: Stub native functions if
899 DISABLE_JAVA_NET is defined.
900 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
901 typo in exception string.
902 (getTimeToLive): Likewise.
903 Stub native functions if DISABLE_JAVA_NET is defined.
904 * java/net/natInetAddress.cc: Stub native functions if
905 DISABLE_JAVA_NET is defined.
906 * configure.host: Disable java.net for mips-tx39.
907 * configure, include/config.h.in: Rebuilt.
908 * acconfig.h (DISABLE_JAVA_NET): Undefine.
909 * configure.in: Added --disable-java-net and new define
910 `DISABLE_JAVA_NET'.
911
912 1999-09-30 Tom Tromey <tromey@cygnus.com>
913
914 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
915
916 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
917
918 * README: New file.
919
920 1999-09-28 Tom Tromey <tromey@cygnus.com>
921
922 * configure: Rebuilt.
923 * configure.in (PROCESS): In POSIX case, only set if not already
924 set.
925 * configure.host (PROCESS): Set in mips-tx39 case.
926
927 * aclocal.m4, configure: Rebuilt.
928 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
929 appropriate AC_PROG_ symbol.
930
931 1999-09-24 Tom Tromey <tromey@cygnus.com>
932
933 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
934 `void *'.
935 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
936
937 Fix for PR java.util/47:
938 * configure, include/config.h: Rebuilt.
939 * configure.in: Don't look for ctime or ctime_r.
940 * Makefile.in: Rebuilt.
941 * Makefile.am (nat_source_files): Don't mention natDate.cc.
942 * java/util/natDate.cc: Removed.
943 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
944 static fields.
945 (getAvailableIDs): Rewrote.
946 (getTimeZone): Rewrote.
947 * java/util/Date.java (toGMTString): New method.
948 (toLocaleString): New method.
949 (toString): Rewrote.
950
951 1999-09-23 Tom Tromey <tromey@cygnus.com>
952
953 * configure: Rebuilt.
954 * configure.in: Print message when checking to see if gcj can
955 handle -fuse-divide-subroutine.
956
957 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
958 dead code.
959 * java/lang/FirstThread.java (run0): Renamed to `run'.
960 (run): Removed.
961
962 * prims.cc (main_init): New function.
963 (JvRunMain): Call it.
964 (_Jv_RunMain): Likewise.
965 Include <signal.h>.
966 (main_init): Ignore SIGPIPE. Fixes PR 51.
967
968 1999-09-22 Tom Tromey <tromey@cygnus.com>
969
970 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
971
972 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
973
974 * java/text/MessageFormat.java (MessageFormat(String)): Set the
975 default locale.
976 * java/text/NumberFormat.java: Check that object is a Number. If
977 not, throw IllegialArgumentException.
978
979 1999-09-21 Tom Tromey <tromey@cygnus.com>
980
981 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
982 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
983
984 * include/posix-threads.h (_Jv_MutexDestroy): Use
985 _Jv_PthreadGetMutex.
986 (_Jv_MutexLock): Likewise.
987 (_Jv_MutexUnlock): Likewise.
988
989 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
990 previous patch; it too was incorrect.
991 * java/io/PrintStream.java (PrintStream): Likewise.
992
993 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
994 refer to `this' before calling superclass constructor.
995 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
996 before calling superclass constructor.
997
998 1999-09-20 Tom Tromey <tromey@cygnus.com>
999
1000 * configure: Rebuilt.
1001 * configure.in: Send output of `-fuse-divide-subroutine' test
1002 compilation to /dev/null.
1003
1004 1999-09-14 Tom Tromey <tromey@cygnus.com>
1005
1006 * include/java-insns.h: Turned constants into an enum. Added
1007 multiple-inclusion protection.
1008
1009 1999-09-10 Tom Tromey <tromey@cygnus.com>
1010
1011 * configure: Rebuilt.
1012 * configure.in: Build include/Makefile.
1013 * Makefile.in: Rebuilt.
1014 * Makefile.am (SUBDIRS): Added gcj and include.
1015 (install-data-local): New target.
1016 (extra_headers): New macro.
1017 * include/Makefile.in: New file.
1018 * include/Makefile.am: New file.
1019
1020 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
1021 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
1022 gcj/cni.h.
1023 * boehm.cc: Don't include java-threads.h or gcj/field.h.
1024 * resolve.cc: Include config.h.
1025 * defineclass.cc: Include config.h.
1026 * include/java-interp.h: Don't include config.h.
1027 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
1028 cni.h.
1029
1030 * gcj/javaprims.h: Regenerated namespace decls.
1031 * classes.pl (scan): Don't put `;' after closing brace.
1032
1033 * Makefile.in: Rebuilt.
1034 * Makefile.am (INCLUDES): Added -I for top_srcdir.
1035 * configure.in: Create gcj/Makefile.
1036 * gcj/Makefile.in: New file.
1037 * gcj/Makefile.am: New file.
1038 * java/lang/Object.h: Don't include any other headers.
1039 * gcj/array.h: Renamed from include/java-array.h.
1040 * gcj/field.h: Renamed from include/java-field.h.
1041 * gcj/method.h: Renamed from include/java-method.h.
1042 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
1043 Updated all files to reflect new include structure.
1044
1045 1999-09-09 Tom Tromey <tromey@cygnus.com>
1046
1047 * configure: Rebuilt.
1048 * configure.in: Fixed typo; variable is THREADSPEC and not
1049 THREADSPECS.
1050
1051 1999-09-08 Tom Tromey <tromey@cygnus.com>
1052
1053 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
1054 previous change and implemented a correct test in the __m_count
1055 case.
1056
1057 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
1058 in __m_count case.
1059
1060 1999-09-07 Tom Tromey <tromey@cygnus.com>
1061
1062 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
1063 code and don't set errno.
1064
1065 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
1066 not `r'. Changed `done_sleeping' to a `bool'.
1067
1068 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
1069
1070 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
1071 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
1072 by another thread, rather than by the GC.
1073 (_Jv_CondWait): Prevent premature thread wakeup by GC.
1074 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
1075 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1076 function.
1077
1078 1999-09-03 Tom Tromey <tromey@cygnus.com>
1079
1080 * configure: Rebuilt.
1081 * configure.in: Check for fstat function.
1082 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
1083 FIONREAD fails.
1084
1085 1999-09-02 Tom Tromey <tromey@cygnus.com>
1086
1087 * include/java-array.h (jobjectArrayjchar): Removed unused
1088 declaration.
1089
1090 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
1091 _Jv_PrepareCompiledClass while holding class mutex.
1092
1093 1999-09-01 Tom Tromey <tromey@cygnus.com>
1094
1095 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
1096 (_Jv_PthreadGetMutex): Use it.
1097 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
1098 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
1099 (_Jv_MutexLock): Likewise.
1100 (_Jv_MutexUnlock): Likewise.
1101 * include/config.h.in: Rebuilt.
1102 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
1103 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
1104 * configure: Rebuilt.
1105 * libgcj.spec.in: Don't mention INTERPSPEC.
1106 * configure.in (INTERPSPEC): Removed.
1107 Only run pthreads-related checks when using POSIX threads. Check
1108 for m_count and __m_count in mutex structure.
1109
1110 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
1111
1112 * java/lang/natClass.cc: Fixed notification of threads
1113 when class initialization is complete.
1114
1115 1999-09-01 Tom Tromey <tromey@cygnus.com>
1116
1117 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
1118 * resolve.cc: Removed constants defined by
1119 java.lang.reflect.Modifier.
1120 Include <java/lang/reflect/Modifier.h>.
1121 (_Jv_ResolvePoolEntry): Use values from Modifier.
1122 (_Jv_DetermineVTableIndex): Likewise.
1123 (_Jv_PrepareClass): Likewise.
1124 (ncode): Likewise.
1125 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
1126 java.lang.reflect.Modifier.
1127 Include <java/lang/reflect/Modifier.h>.
1128 (checkExtends): Use values from Modifier.
1129 (checkImplements): Likewise.
1130 (handleField): Likewise.
1131 (handleConstantValueAttribute): Likewise.
1132 (handleFieldsEnd): Likewise.
1133 (handleMethod ): Likewise.
1134 (handleMethodsEnd): Likewise.
1135 (handleClassBegin): Likewise.
1136 * interpret.cc: Removed constants defined by
1137 java.lang.reflect.Modifier.
1138 (continue1): Use values from Modifier.
1139 * java/lang/natClassLoader.cc: Removed constants defined by
1140 java.lang.reflect.Modifier.
1141
1142 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
1143 JV_STATE_NOTHING, not `0'.
1144 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
1145
1146 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
1147 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
1148 except on Linux.
1149 (_Jv_PthreadGetMutex): New function.
1150 (_Jv_PthreadCheckMonitor): Use it.
1151 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1152 (_Jv_MutexLock): Update `count'.
1153 (_Jv_MutexUnlock): Likewise.
1154 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1155 appropriate.
1156
1157 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1158
1159 * Makefile.am (.java.lo): Add rule.
1160
1161 * Makefile.in: Rebuilt.
1162
1163 1999-09-01 Tom Tromey <tromey@cygnus.com>
1164
1165 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1166 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1167 function.
1168 (_Jv_CondNotify): Use it.
1169 (_Jv_CondNotifyAll): Likewise.
1170
1171 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1172
1173 1999-08-31 Tom Tromey <tromey@cygnus.com>
1174
1175 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1176 declaration.
1177
1178 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1179
1180 * posix-threads.cc: Include <errno.h>.
1181
1182 1999-08-23 Tom Tromey <tromey@cygnus.com>
1183
1184 * boehm.cc: Undefine TRUE and FALSE.
1185
1186 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1187
1188 1999-08-21 Tom Tromey <tromey@cygnus.com>
1189
1190 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1191 result. PR 40.
1192
1193 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1194
1195 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1196 for ip_mreq too.
1197 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1198 (HAVE_STRUCT_IP_MREQ): Added.
1199 * configure, include/config.h.in: Rebuilt.
1200 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1201 if needed.
1202 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1203 Disable if ip_mreq is not available.
1204
1205 * configure.in: Check types ssize_t and in_addr_t.
1206 * acconfig.h: Undefine them.
1207 * configure, include/config.h.in: Rebuilt.
1208
1209 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1210 function that detects the signature of getpwuid_r.
1211 (init_properties): Use it.
1212 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1213 (toString): Use it.
1214
1215 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1216
1217 * interpret.cc (continue1): Implement explicit dispatch table.
1218 insn_target: Explicit interpreter switch table.
1219 SAVE_PC: New macro, moves pc saving code into instructions that
1220 require so.
1221 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1222 PC_REGISTER_ASM: New macro.
1223 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1224 opcode: Remove local variable.
1225 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1226 (POKEI): Use _Jv_word.
1227 (iinc): Use _Jv_word.
1228 (dupx): Change reference argument (sp) to pointer.
1229 (jvdump): Remove
1230
1231 * interpret.cc: Remove instruction timing instrumentation.
1232
1233 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1234 comment. Don't use _Jv_ClassNameSamePackage.
1235
1236 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1237 URLPathEntry, CacheEntry}: Removed.
1238
1239 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1240 package.
1241 (.java.lo): Rule removed.
1242
1243 * Makefile.in: Rebuilt.
1244
1245 1999-08-19 Tom Tromey <tromey@cygnus.com>
1246
1247 * java/lang/natThread.cc (class locker): New class.
1248 (join): Use a locker around _Jv_CondWait.
1249 (sleep): Likewise.
1250
1251 1999-08-18 Tom Tromey <tromey@cygnus.com>
1252
1253 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1254 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1255
1256 1999-08-18 Tom Tromey <tromey@cygnus.com>
1257
1258 * include/javaprims.h ("Java"): Regenerated namespace decls.
1259
1260 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1261
1262 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1263 from _Jv_InternClassStrings.
1264
1265 * prims.cc (_Jv_RunMain): New function.
1266 (JvRunMain): Remove gij-support.
1267
1268 * gij.cc (main): Use _Jv_RunMain.
1269
1270 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1271
1272 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1273 argument in temp variable.
1274 (continue1): For all op_x2y insns, use temp variable for
1275 intermediate value. Also remove some comments.
1276
1277 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1278 (forName): Don't call _Jv_InitClass.
1279
1280 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1281
1282 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1283
1284 * java/util/jar/JarInputStream.java: New file.
1285
1286 * java/util/jar/JarEntry.java: New file.
1287
1288 * java/util/jar/JarFile.java: New file.
1289
1290 * java/net/URLClassLoader.java: New file.
1291
1292 * java/net/JarURLConnection.java: New file.
1293
1294 * gnu/gcj/protocol/jar/Handler.java: New file.
1295
1296 * gnu/gcj/protocol/jar/Connection.java: New file.
1297
1298 * java/security/SecureClassLoader.java: New file.
1299
1300 * java/lang/ClassLoader.java (parent): New variable.
1301 (ClassLoader (ClassLoader)): new constructor.
1302 (findClass): New method.
1303 (loadClass): Add default 1.2 implementation.
1304 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1305 (readfully): Removed.
1306
1307 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1308 (findSystemClass): New method.
1309 (VMClassLoader): Constructor rewritten.
1310 (init): New method.
1311 All other methods removed.
1312
1313 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1314 to gnu::gcj::runtime::VMClassLoader.
1315 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1316 class entries.
1317 (VMClassLoader::findSystemClass): renamed from findBootClass.
1318
1319 * Makefile.am: Add new files.
1320 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1321
1322 * Makefile.in: Rebuilt.
1323
1324 1999-08-17 Tom Tromey <tromey@cygnus.com>
1325
1326 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1327 nano.
1328 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1329 inappropriately.
1330
1331 1999-08-16 Tom Tromey <tromey@cygnus.com>
1332
1333 * configure: Rebuilt.
1334 * configure.in: Set DIVIDESPEC to empty string if compiler does
1335 not support -fuse-divide-subroutine.
1336
1337 1999-08-14 Per Bothner <per@bothner.com>
1338
1339 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1340 * java/lang/natClass.cc (initializeClass): Likewise.
1341 * java/lang/ClassLoader.java (resolveClass0): New static method.
1342 (resolveClass): Call resolveClass0.
1343 (findSystemClass): No longer static.
1344
1345 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1346
1347 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1348
1349 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1350
1351 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1352 as long.
1353
1354 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1355
1356 * Makefile: Rebuilt.
1357 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1358 builds.
1359
1360 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1361 present.
1362
1363 * configure: Rebuilt.
1364 * configure.in: Properly align --help output, fix capitalization
1365 and punctuation.
1366 * acinclude.m4: Likewise.
1367
1368 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1369
1370 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1371
1372 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1373 (_Jv_callInterpretedMethod): Unused. Remove.
1374 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1375 Use ffi_raw.
1376 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1377 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1378 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1379 * interpret.cc: use _Jv_word.
1380 * defineclass.cc: use_Jv_word.
1381 * resolve.cc: Use _Jv_word.
1382 (_Jv_ResolvePoolEntry): Return _Jv_word.
1383 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1384 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1385
1386 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1387 Change comment.
1388
1389 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1390
1391 * configure: Rebuilt.
1392 * configure.in (sched_yield): Try librt first, then libposix4.
1393 Add -lrt, -lposix4 to THREADSPEC.
1394
1395 1999-08-08 Anthony Green <green@cygnus.com>
1396
1397 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1398
1399 1999-08-08 Anthony Green <green@cygnus.com>
1400
1401 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1402 correctly.
1403
1404 1999-08-08 Anthony Green <green@cygnus.com>
1405
1406 * gij.cc: New file.
1407
1408 * include/config.h.in: Rebuilt.
1409 * acconfig.h: Add INTERPRETER.
1410
1411 * Makefile.in: Rebuilt.
1412 * Makefile.am (libffi_files): Identify the libffi object files for
1413 inclusion in libgcj.
1414 (LIBFFIINCS): Define.
1415
1416 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1417 Dummy definition for configurations without an interpreter.
1418
1419 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1420 java::lang::Boolean constructor.
1421
1422 * include/java-interp.h: Always include java-cpool.h.
1423
1424 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1425 when INTERPRETER not defined.
1426
1427 * java/lang/Class.h (finalize): Define.
1428
1429 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1430 IOException from File.getCanonicalPath.
1431 (getStream): Likewise.
1432
1433 * NEWS: More news.
1434 * THANKS: More thanks.
1435
1436 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1437
1438 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1439 jchar type.
1440 (_Jv_PrepareClass): Allow non-abstract classes to
1441 have abstract subclasses.
1442 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1443 fields and methods.
1444 * interpret.cc (continue1/perform_invoke): Don't sign extend
1445 uint16 return val.
1446 (continue1/lshl,lshr): Push long, not int.
1447 (continue1/ulshr): Use UINT64, not long long.
1448 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1449 are static.
1450 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1451 * java/lang/FirstThread.java (run): Add top-level exception
1452 handler.
1453 (run0): Renamed from run.
1454
1455 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1456
1457 * configure.in (--with-interpreter): Added.
1458 * include/config.h.in (INTERPRETER): Added.
1459
1460 * java/lang/ClassLoader.java: File replaced.
1461 * java/lang/VMClassLoader.java: New file.
1462 * java/lang/natClassLoader.cc: New file.
1463 * gnu/gcj/runtime/MethodInvocation.java: New file.
1464 * gnu/gcj/util/path/SearchPath.java: New file.
1465 * gnu/gcj/util/path/PathEntry.java: New file.
1466 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1467 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1468 * gnu/gcj/util/path/URLPathEntry.java: New file.
1469 * gnu/gcj/util/path/CacheEntry.java: New file.
1470 * include/java-interp.h: New file.
1471 * include/java-cpool.h: New file.
1472 * include/java-insns.h: New file.
1473 * defineclass.cc: New file.
1474 * interpret.cc: New file.
1475 * resolve.cc: New file.
1476
1477 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1478 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1479 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1480 (finalize): New.
1481 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1482 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1483 prefix.
1484 (initializeClass): Use new JV_ prefixed names. Also, call
1485 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1486
1487 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1488 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1489 JV_STATE_LINKED): New.
1490 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1491 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1492 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1493 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1494 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1495 _Jv_InterpMethodInvocation): New friends for interpreter.
1496 (finalize): New.
1497 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1498 include/java-cpool.h and renamed with JV_ prefix.
1499
1500 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1501 decls.
1502 (_Jv_UnregisterClass): New decl.
1503
1504 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1505 class loader argument.
1506 (_Jv_FindClass): Use class loader.
1507
1508 * prims.cc (_Jv_makeUtf8Const): New function.
1509 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1510 (_Jv_NewPrimArray): Ditto.
1511 (_Jv_FindClassFromSignature): Ditto.
1512 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1513 * java/lang/reflect/natMethod.cc (getType): Ditto.
1514
1515 * include/java-field.h (_Jv_Field::isRef): Make robust for
1516 non-resolved contexts.
1517
1518 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1519 Also, don't mark class->next field.
1520
1521 * java/lang/VirtualMachineError.java: Added FIXME note.
1522
1523 * configure.in (INTERPSPEC): New spec.
1524 * libgcj.spec.in: Added INTERPSPEC.
1525 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1526 gnu/gcj/runtime/MethodInvocation.
1527 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1528 (ordinary_java_source_files): Added above mentioned java classes.
1529
1530 * configure: Rebuilt.
1531 * Makefile.in: Rebuilt.
1532
1533 1999-08-06 Tom Tromey <tromey@cygnus.com>
1534
1535 * configure: Rebuilt.
1536 * configure.in: Look for sched_yield in -lrt.
1537
1538 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1539
1540 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1541 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1542 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1543 locales.
1544 (toString): Print correctly when `country' is empty.
1545
1546 1999-08-04 Per Bothner <per@bothner.com>
1547
1548 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1549
1550 1999-08-02 Tom Tromey <tromey@cygnus.com>
1551
1552 * aclocal.m4, configure: Rebuilt for new libtool.
1553
1554 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1555
1556 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1557 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1558 * java/net/ServerSocket.java: Define ANY_IF.
1559 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1560 all network interfaces.
1561 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1562 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1563 null.
1564 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1565 instead of null.
1566 * java/io/natFile.cc (performMkdir): Remove FIXME.
1567 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1568
1569 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1570
1571 * configure.in: Check for bstring.h.
1572 * configure, include/config.h.in: Rebuilt.
1573 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1574 * java/net/natPlainSocketImpl.cc: Likewise.
1575
1576 1999-07-31 Tom Tromey <tromey@cygnus.com>
1577
1578 * NEWS: Likewise.
1579 * THANKS: New file.
1580
1581 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1582
1583 * configure.in: Check for struct hostent_data and need for
1584 -D_REENTRANT for gethostbyname_r declaration.
1585 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1586 (lookup): Use hostent_data for fixed_buffer.
1587 * configure, include/config.h.in: Rebuilt.
1588
1589 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1590
1591 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1592 available. Don't cast memmove args to (void*).
1593 * configure.in: Do not abort if memmove is not available.
1594
1595 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1596
1597 * java/lang/natString.cc (substring): optimize where substring is
1598 entire String.
1599 * java/io/File.java (getName): don't return separator with file name.
1600 * java/io/natFile.cc (attr): fix overflow.
1601
1602 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1603
1604 * mauve-libgcj: Disable Object Serialization tests.
1605
1606 1999-07-20 Warren Levy <warrenl@cygnus.com>
1607
1608 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1609 Default to using PlainDatagramSocketImpl.
1610 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1611
1612 1999-07-19 Tom Tromey <tromey@cygnus.com>
1613
1614 * include/stamp-h.in: New file.
1615
1616 1999-07-12 Tom Tromey <tromey@cygnus.com>
1617
1618 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1619 _UINT32_T.
1620
1621 1999-07-07 Andrew Haley <aph@cygnus.com>
1622
1623 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1624 bytes to make it point after the instruction where the trap
1625 occurred.
1626 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1627
1628 1999-07-07 Tom Tromey <tromey@cygnus.com>
1629
1630 * mauve-libgcj: Explicitly enable formerly disabled java.text
1631 tests.
1632
1633 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1634 again.
1635
1636 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1637
1638 * java/net/URL.java (equals): Compare strings using String.equals.
1639 * java/net/URL.java (sameFile): Ditto.
1640
1641 1999-07-02 Warren Levy <warrenl@cygnus.com>
1642
1643 * configure: Rebuilt.
1644 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1645 * include/config.h.in: Rebuilt.
1646 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1647 (mcastGrp): Updated FIXME comments.
1648 (setOption): Fixed typo.
1649 (getOption):Implemented IP_MULTICAST_IF.
1650
1651 1999-07-02 Warren Levy <warrenl@cygnus.com>
1652
1653 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1654 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1655 (getTimeToLive): Implemented.
1656 (setOption): Implemented IP_MULTICAST_IF.
1657
1658 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1659
1660 * java/lang/String.java (toString): Check for this == null and throw
1661 NullPointerException.
1662
1663 1999-07-01 Warren Levy <warrenl@cygnus.com>
1664
1665 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1666 to count and revised comments to match.
1667 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1668 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1669 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1670 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1671 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1672 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1673
1674 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1675
1676 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1677 properly as count rather than outlength.
1678 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1679 output on overflow rather than buffer fill.
1680 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1681 if markPos is 0 and there is still room in the buffer.
1682
1683 1999-07-01 Andrew Haley <aph@cygnus.com>
1684
1685 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1686 This is a workaround for a bug in glibc's pthreads package which
1687 doesn't deliver any sigcontext information to a signal handler.
1688
1689 1999-06-24 Tom Tromey <tromey@cygnus.com>
1690
1691 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1692 * java/lang/fdlibm.h (HUGE): Conditionally define.
1693
1694 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1695
1696 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1697 * java/lang/e_log.c: Don't use __uint32_t.
1698
1699 1999-05-27 Eric Christopher <echristo@cygnus.com>
1700
1701 * configure: Rebuilt
1702 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1703 * acconfig.h: Rebuilt
1704 * include/config.h.in: Rebuilt
1705
1706 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1707 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1708 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1709 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1710 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1711 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1712 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1713 and namespace collision with __uint32_t
1714
1715 1999-06-23 Tom Tromey <tromey@cygnus.com>
1716
1717 * java/util/zip/InflaterInputStream.java (read): Throw
1718 ZipException if inflater throws a DataFormatException.
1719
1720 1999-06-23 Warren Levy <warrenl@cygnus.com>
1721
1722 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1723 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1724 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1725 is not final per JDK.
1726 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1727 public per JDK.
1728 * java/util/zip/DataFormatException.java: Class extends Exception.
1729 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1730 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1731 * java/util/zip/ZipInputStream.java: ditto.
1732 (closeEntry): Changed method name to match JDK spec.
1733
1734 1999-06-21 Tom Tromey <tromey@cygnus.com>
1735
1736 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1737 From Jeff Sturm.
1738
1739 * Makefile.in: Rebuilt.
1740 * Makefile.am (toolexeclibdir): Define as libdir when
1741 appropriate.
1742 * configure: Rebuilt.
1743 * configure.in (USE_LIBDIR): New conditional.
1744
1745 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1746
1747 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1748 hostname in returned InetAddress objects.
1749 (getLocalHostname): Fix typo.
1750 * java/net/InetAddress.java (getByName): Set hostname on return
1751 object.
1752 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1753 name is returned.
1754
1755 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1756
1757 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1758 interfaces if host==NULL.
1759 (accept): Throw message with InterruptedIOException.
1760 (getOption): Cache localAddress.
1761 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1762 'address' for DatagramSocket.
1763 (setTimeToLive): Fix compiler warnings.
1764 (getOption): Cache localAddress.
1765 * java/net/Socket.java (getLocalAddress): Don't need local
1766 InetAddress object. Add FIXME comment about calling checkConnect().
1767 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1768 connection queue to 50 as per JDK 1.2 docs.
1769 (ServerSocket(int,int)): Listen on all network interfaces by
1770 default, per JDK 1.2 docs.
1771 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1772 Add localAddress caching.
1773
1774 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1775
1776 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1777 to JDK 1.2 docs.
1778 (write(byte[],int,int)): ditto.
1779
1780 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1781
1782 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1783
1784 1999-06-11 Warren Levy <warrenl@cygnus.com>
1785
1786 * mauve-libgcj: Activated java.net Mauve tests.
1787
1788 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1789
1790 * java/net/natInetAddress.cc (aton): Fix typos.
1791 (lookup): Use a bigger buffer size for gethostbyname_r on all
1792 versions of glibc. Updated FIXME comment explaining this.
1793 Modified while loops to not set herr = ERANGE to work around glibc
1794 problems. Use user specified hostname in InetAddress result when
1795 available (consistent with JDK).
1796
1797 1999-06-10 Warren Levy <warrenl@cygnus.com>
1798
1799 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1800 Throw FileNotFoundException instead of IOException.
1801 (open): ditto.
1802 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1803 IOException.
1804 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1805 in static field name.
1806 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1807 throughout rather than ParseException.
1808
1809 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1810
1811 * java/lang/Runtime.java (exec): Convert prog name and arguments
1812 to string array.
1813 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1814 environment array conversion. Preserve current environment if envp
1815 not passed. Preserve PATH unless explicitly specified.
1816 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1817 followed by EOF. Set a flag when a line is terminated by '\r' and
1818 ignore following '\n' if set.
1819
1820 1999-06-02 Warren Levy <warrenl@cygnus.com>
1821
1822 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1823 Ignore context if spec is an absolute URL. Fix braindead
1824 string comparison.
1825 (hashCode): Use JDK 1.2 style algorithm.
1826 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1827 context URL properly.
1828
1829 1999-05-30 Anthony Green <green@cygnus.com>
1830
1831 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1832 correctly. Clean up "/../" an\e[Bd "/./" path fragments.
1833
1834 1999-05-28 Warren Levy <warrenl@cygnus.com>
1835
1836 * java/net/DatagramSocket.java (laddr): Removed.
1837 (DatagramSocket): Removed attempts to get or set laddr if null.
1838 (getLocalAddress): Reimplemented per spec.
1839 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1840 when ttl is 0.
1841 (joinGroup): Throw NullPointerException if any argument is null.
1842 (leaveGroup): ditto.
1843 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1844 * java/net/PlainSocketImpl.java (timeout): Added.
1845 (getInputStream): Added FIXME comment on how to support timeouts
1846 for TCP.
1847 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1848 * java/net/Socket.java: Added FIXME comments to identify
1849 conflicting specs between the JCL and JDK 1.2 documents.
1850 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1851 if host is null. Get localport value resolved by kernel if bind
1852 lport is 0.
1853 (receive): Implemented support for timeouts in UDP.
1854 (setOption): Implemented based on natPlainSocketImpl version.
1855 (getOption): ditto.
1856 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1857 resolved by kernel if bind lport is 0.
1858 (connect): Get localport value resolved by kernel if bind wasn't
1859 done to set localport.
1860 (accept): Implemented support for timeouts for ServerSocket.
1861 (setOption): Save value for SO_TIMEOUT.
1862 (getOption): Return timeout for SO_TIMEOUT.
1863
1864 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1865
1866 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1867 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1868 (setOption): Made abstract.
1869 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1870 to avoid cpp conflicts in native code.
1871 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1872 cpp conflicts in native code.
1873 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1874 * java/net/Socket.java (getLocalAddress): Implemented.
1875 (setTcpNoDelay): Implemented.
1876 (getTcpNoDelay): Implemented.
1877 (setSoLinger): Implemented.
1878 (getSoLinger): Implemented.
1879 (getSoTimeout): Verify class type.
1880 (setSendBufferSize): Implemented.
1881 (getSendBufferSize): Implemented.
1882 (setReceiveBufferSize): Implemented.
1883 (getReceiveBufferSize): Implemented.
1884 (toString): Prepended "Socket".
1885 * java/net/SocketImpl.java (toString): Rewritten.
1886 (getOption): Made abstract.
1887 (setOption): Made abstract.
1888 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1889 (setOption): Implemented.
1890 (getOption): Implemented.
1891
1892 1999-05-26 Warren Levy <warrenl@cygnus.com>
1893
1894 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1895 address when null. Set SO_REUSEADDR for multicasts.
1896 (getSoTimeout): Implemented.
1897 (setSoTimeout): Implemented.
1898 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1899 * java/net/MulticastSocket.java (getInterface): Implemented.
1900 (setInterface): Implemented.
1901 (setTimeToLive): Check for invalid ttl.
1902 (joinGroup): Verify multicast address and security.
1903 (leaveGroup): Verify multicast address and security.
1904 (send): Implemented.
1905 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1906 (iface): Added.
1907 (ttl): Added.
1908 (setOption): Added.
1909 (getOption): Added.
1910 (mcastGrp): Added.
1911 (getTTL): Implemented as non-native.
1912 (setTTL): ditto.
1913 (join): ditto.
1914 (leave): ditto.
1915 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1916 (getSoTimeout): Implemented.
1917 (setSocketFactory): Made synchronized.
1918 * java/net/Socket.java (setSoTimeout): Implemented.
1919 (getSoTimeout): Implemented.
1920 (close): Made synchronized.
1921 (setSocketImplFactory): Made synchronized.
1922 * java/net/SocketImpl.java: Implement SocketOptions interface.
1923 * java/net/natInetAddress.cc: Corrected module name at top of file.
1924 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1925 (bind): Added FIXME.
1926 (peek): Implemented.
1927 (setTTL): Removed.
1928 (getTTL): Removed.
1929 (join): Removed.
1930 (leave): Removed.
1931 (mcastGrp): Added.
1932 (setOption): Implemented for SO_REUSEADDR.
1933 (getOption): Implemented for SO_REUSEADDR.
1934
1935 1999-05-24 Tom Tromey <tromey@cygnus.com>
1936
1937 * java/util/ResourceBundle.java (getBundle): Throw
1938 NullPointerException if baseName is null.
1939
1940 1999-05-22 Tom Tromey <tromey@cygnus.com>
1941
1942 * java/util/zip/ZipInputStream.java (fill): New method.
1943 (compressed_len): New instance variable.
1944 (getNextStream): Set it.
1945 (read): Reset inflater on EOF. Only read via `super' if entry is
1946 deflated.
1947 (skip): Only skip via `super' if entry is deflated.
1948 * java/util/zip/Deflater.java (last_input_count): Removed.
1949 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1950 is length 0.
1951 (needsInput): Don't use last_input_count.
1952 (setInput): Don't set last_input_count.
1953 * java/util/zip/natInflater.cc (getRemaining): Return correct
1954 result.
1955 (inflate): Return 0 if input array is length 0.
1956 (setInput): Don't set last_input_count.
1957 * java/util/zip/Inflater.java (last_input_count): Removed.
1958
1959 1999-05-21 Tom Tromey <tromey@cygnus.com>
1960
1961 * Makefile.in: Rebuilt.
1962 * Makefile.am (INCLUDES): Added $(ZINCS).
1963 * configure: Rebuilt.
1964 * configure.in (ZINCS): New subst.
1965
1966 1999-05-21 Andrew Haley <aph@cygnus.com>
1967
1968 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1969 to signal options to allow the same exceptions to be rethrown
1970 later.
1971
1972 1999-05-20 Andrew Haley <aph@cygnus.com>
1973
1974 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1975 added.
1976 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1977 (INIT_FPE): Exception string made more informative.
1978 * include/sparc-signal.h (INIT_FPE): Exception string made more
1979 informative.
1980 * testsuite/libjava.lang/Divide_1.java: New file.
1981 * testsuite/libjava.lang/Divide_1.out: New file.
1982
1983 1999-05-19 Tom Tromey <tromey@cygnus.com>
1984
1985 * aclocal.m4, configure: Rebuilt.
1986 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1987
1988 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1989 method.
1990
1991 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1992 Include <stdlib.h>.
1993 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1994 Include <stdlib.h>.
1995 (update): Fail in default case. Always initialize `strat'.
1996
1997 * mauve-libgcj: Enable java.util.zip.
1998
1999 1999-05-18 Warren Levy <warrenl@cygnus.com>
2000
2001 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
2002 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
2003 PlainDatagramSocketImpl.java, and SocketOptions.java.
2004 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
2005 * Makefile.in: Rebuilt.
2006
2007 * java/net/DatagramPacket.java: New file.
2008 * java/net/DatagramSocket.java: New file.
2009 * java/net/DatagramSocketImpl.java: New file.
2010 * java/net/MulticastSocket.java: New file.
2011 * java/net/PlainDatagramSocketImpl.java: New file.
2012 * java/net/SocketOptions.java: New file.
2013 * java/net/natPlainDatagramSocketImpl.cc: New file.
2014
2015 1999-05-18 Tom Tromey <tromey@cygnus.com>
2016
2017 * java/util/zip/ZipOutputStream.java (level): Initial value is
2018 Deflater.DEFAULT_COMPRESSION.
2019 (close): New method.
2020 (closeEntry): Likewise.
2021 (finish): Likewise.
2022 (put_version): Likewise.
2023 (write_entry): Likewise.
2024 (put2, put4): Now return `int'.
2025 (comment): Default to empty string.
2026 (bytes_written): New instance variable.
2027 (chain): Likewise.
2028 * java/util/zip/ZipEntry.java (setComment): Limit length of
2029 comment string.
2030 (setCrc): Check CRC validity.
2031 (setExtra): Check argument validity.
2032 (setMethod): Likewise.
2033 (setSize): Likewise.
2034 (ZipEntry): Likewise.
2035 * include/javaprims.h: Updated namespace declarations.
2036 * Makefile.in: Rebuilt.
2037 * Makefile.am (ordinary_java_source_files): Mention new files.
2038 (nat_source_files): Likewise.
2039 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
2040 EOFException.
2041 (read4): Likewise.
2042 (getInputStream): Handle compressed entries.
2043 * java/util/zip/GZIPOutputStream.java: New file.
2044 * java/util/zip/GZIPInputStream.java: New file.
2045 * java/util/zip/DataFormatException.java: New file.
2046 * java/util/zip/CheckedInputStream.java: New file.
2047 * java/util/zip/CheckedOutputStream.java: New file.
2048 * java/util/zip/InflaterInputStream.java: Implemented.
2049 * java/util/zip/natInflater.cc: New file.
2050 * java/util/zip/Deflater.java: Implemented.
2051 * java/util/zip/natDeflater.cc: New file.
2052 * java/util/zip/DeflaterOutputStream.java: Implemented.
2053
2054 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
2055 ZipException, not IOException.
2056 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
2057 not IOException.
2058
2059 1999-05-17 Tom Tromey <tromey@cygnus.com>
2060
2061 * java/lang/natSystem.cc (init_properties): URL now points to
2062 sourceware.
2063
2064 1999-05-12 Per Bothner <bothner@cygnus.com>
2065
2066 * java/util/Calendar.java (set): First call computeFields if needed.
2067 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
2068
2069 1999-05-12 Tom Tromey <tromey@cygnus.com>
2070
2071 * configure: Rebuilt.
2072 * configure.in: Look for -ldl when using the Boehm collector.
2073 Look for sched_yield in -lposix4.
2074
2075 1999-05-12 Per Bothner <bothner@cygnus.com>
2076
2077 * java/io/File.java (mkdirs): Handle a null parent directory.
2078
2079 1999-05-12 Tom Tromey <tromey@cygnus.com>
2080
2081 * include/javaprims.h: Updated namespace declarations.
2082 * classes.pl (scan): Uniquify class list.
2083 * Makefile.in, configure: Rebuilt.
2084 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
2085 (built_java_source_files): New macro.
2086 (nat_headers): Added built_java_source_files.
2087 (javao_files): Likewise.
2088 (EXTRA_libgcj_la_SOURCES): Likewise.
2089 (libgcj.zip): Create built class files.
2090 ($(built_java_source_files:.java=.class)): New target.
2091 (jv_convert_LDADD): Added -L$(here)/.libs.
2092 * configure.in: Create links for ConcreteProcess.java and
2093 natConcreteProcess.cc.
2094 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
2095 * java/lang/natEcosProcess.cc: New file.
2096 * java/lang/EcosProcess.java: New file.
2097 * java/lang/PosixProcess.java: New file.
2098 * java/lang/natPosixProcess.cc: New file.
2099
2100 1999-05-12 Warren Levy <warrenl@cygnus.com>
2101
2102 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
2103 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
2104 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
2105 (connect): Throw ConnectException.
2106
2107 1999-05-11 Tom Tromey <tromey@cygnus.com>
2108
2109 * Makefile.in: Rebuilt.
2110 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
2111 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
2112 our libraries.
2113
2114 * Makefile.in: Rebuilt.
2115 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
2116 and it causes problems with libtool.
2117
2118 * Makefile.in, configure: Rebuilt.
2119 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
2120 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
2121 (jv_convert_DEPENDENCIES): Added ZDEPS.
2122 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
2123 directory.
2124 (THREADSPEC): Added `-L' to point to qthreads build directory.
2125 (ZLIBS): New subst.
2126 (ZDEPS): New subst.
2127
2128 * configure, Makefile.in: Rebuilt.
2129 * Makefile.am (toolexeclib_DATA): New macro.
2130 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
2131 Recognize --with-system-zlib.
2132 (GCSPEC): New subst.
2133 (THREADSPEC): New subst.
2134 (SYSTEMSPEC): New subst.
2135 (ZLIBSPEC): New subst.
2136 * libgcj.spec.in: New file.
2137
2138 1999-05-10 Tom Tromey <tromey@cygnus.com>
2139
2140 * java/io/InputStreamReader.java (read): If length is 0, return
2141 0. Reset `wpos' and `wcount' when buffer has been filled and
2142 emptied.
2143
2144 * java/util/Properties.java (save): Removed `FIXME' comment.
2145 (load): Invalid characters in \u now treated as terminators.
2146 Make sure to append character resulting from `\' handling.
2147 Cast to `char' when appending to key or value.
2148 (skip_ws): Inverted test for whitespace.
2149
2150 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2151 `FIXME' comment.
2152 (readLine): Likewise.
2153 (readFully): Implemented.
2154
2155 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2156
2157 * java/awt/natToolkit.cc: Added copyright header.
2158 * java/util/zip/InflaterInputStream.java: Added copyright header.
2159
2160 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2161 comment.
2162 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2163 `FIXME' comment.
2164 (getNextStream): Likewise.
2165
2166 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2167 locale.toString().
2168 (getBundle): Don't explicitly throw null pointer exception.
2169
2170 * gnu/gcj/RawData.java: Added copyright header.
2171
2172 * include/jni.h (_Jv_va_list): Always define as va_list.
2173
2174 1999-05-9 Anthony Green <green@cygnus.com>
2175
2176 * java/text/DateFormat.java (computeInstance): Separate time
2177 and date styles.
2178 (getDateTimeInstance): Ditto.
2179 (getDateTimeInstance(int,int)): New method.
2180
2181 * Makefile.in: Rebuilt.
2182 * Makefile.am (ordinary_java_source_files): Add new classes.
2183
2184 * java/util/PropertyResourceBundle.java: New file.
2185 * gnu/gcj/util/EnumerationChain.java: New file.
2186
2187 1999-05-07 Tom Tromey <tromey@cygnus.com>
2188
2189 * acconfig.h (GCJVERSION): New undef.
2190 * java/lang/natSystem.cc (init_properties): Define java.version,
2191 java.class.version, os.name, os.arch, os.version.
2192 Include <sys/utsname.h> if required.
2193 * configure: Rebuilt.
2194 * configure.in: Compute and define GCJVERSION.
2195
2196 * java/lang/natSystem.cc (default_file_encoding): Now static.
2197
2198 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2199
2200 * libtool-version: New file.
2201 * Makefile.in: Rebuilt.
2202 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2203 -release.
2204
2205 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2206 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2207 again (oops).
2208
2209 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2210 (we pick those up already).
2211
2212 1999-05-05 Per Bothner <bothner@cygnus.com>
2213
2214 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2215 stub classes. (This is enough to get Kawa to compile against libgcj.)
2216
2217 * gnu/gcj/RawData.java: New class.
2218 * doc/cni.sgml: Document RawData.
2219
2220 * java/util/zip/InflaterInputStream.java: New stub class.
2221 * java/util/zip/ZipInputStream.java: New class. Partly works.
2222 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2223 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2224 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2225 * java/util/zip/ZipOutputStream.java: Start implementation.
2226
2227 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2228 (default_file_encoding): New global, initial value is above macro.
2229 (init_properties): Default file.encoding to default_file_encoding.
2230
2231 * Makefile.am: Add new classes.
2232
2233 1999-05-05 Tom Tromey <tromey@cygnus.com>
2234
2235 * Makefile.in: Rebuilt.
2236 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2237 (clean-local): New target
2238
2239 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2240 (load, loadLibrary): Now native.
2241 (init): New method.
2242 * java/lang/Runtime.java (load, loadLibrary): Now native.
2243 (init): New native method.
2244 (Runtime): Use init.
2245 * prims.cc: Include <ltdl.h> if required.
2246 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2247
2248 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2249
2250 * configure.in: Switch from irix threads to posix threads
2251 * configure: Regenerate.
2252
2253 1999-04-30 Tom Tromey <tromey@cygnus.com>
2254
2255 * Makefile.in: Rebuilt.
2256 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2257
2258 1999-04-29 Tom Tromey <tromey@cygnus.com>
2259
2260 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2261 vector when shared.
2262
2263 * java/util/Locale.java (Locale(String,String)): Implement in
2264 terms of 3-argument version; variant now defaults to empty
2265 string.
2266 (toString): Assume variant is not null.
2267 (equals): Assume all strings are not null.
2268 (Locale): Throw NullPointerException if any argument is null.
2269
2270 * java/util/ResourceBundle.java (getBundle): Don't try the base
2271 name; now implicit in partialGetBundle call.
2272 (trySomeGetBundle): Search for parent bundles and call setParent
2273 as required.
2274 (partialGetBundle): Added `langStop' argument. Use
2275 `Locale.toString' to compute bundleName.
2276 (resource_cache): New static field.
2277 (partialGetBundle): Cache the returned resource bundle. Now
2278 synchronized.
2279
2280 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2281 missing `<'.
2282
2283 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2284 * java/text/natCollator.cc (decomposeCharacter): `base' now
2285 `const'.
2286 * Makefile.in: Rebuilt.
2287 * Makefile.am (ordinary_java_source_files): Added
2288 CollationElementIterator, CollationKey, Collator,
2289 RuleBasedCollator.
2290 (nat_source_files): Added natCollator.cc.
2291 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2292 (compare): Pass `this' to CollationElementIterator constructor.
2293 (getCollationElementIterator): Likewise.
2294 (ceiNext): Fix off-by-one error when finding initial substring.
2295 (next): Correctly mask off bits when computing return value.
2296 Fixed return values when one string is shorter than the other.
2297 * java/text/CollationElementIterator.java (collator): New field.
2298 (CollationElementIterator): Added collator argument.
2299 (next): Call ceiNext on collator object.
2300
2301 1999-04-26 Tom Tromey <tromey@cygnus.com>
2302
2303 * natCollator.cc: New file.
2304
2305 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2306 (GregorianCalendar): Use it in all constructors.
2307 * java/util/Calendar.java (Calendar): Changed argument name to
2308 `zone' to match code.
2309
2310 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2311 * java/text/CollationKey.java: New file.
2312 * java/text/CollationElementIterator.java: New file.
2313 * java/text/Collator.java: New file.
2314 * java/text/RuleBasedCollator.java: New file.
2315
2316 * Makefile.in: Rebuilt.
2317 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2318 (jv_convert_LDADD): Explicltly add -lm -lc.
2319
2320 1999-04-26 Tom Tromey <tromey@cygnus.com>
2321
2322 * configure, Makefile.in: Rebuilt.
2323 * configure.in: Added AM_PROG_LIBTOOL.
2324 (GCOBJS): Use `.lo' form of files.
2325 (THREADOBJS): Likewise.
2326 (GCDEPS): Use `.la' form of library.
2327 (GCLIBS): Set to be the same as GCDEPS.
2328 (THREADDEPS): Use `.la' form of library.
2329 (THREADLIBS): Set to be the same as THREADDEPS.
2330 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2331 toolexeclib_LIBRARIES.
2332 (libgcj_la_SOURCES): Renamed for libtoolization.
2333 (EXTRA_libgcj_la_SOURCES): Likewise.
2334 (libgcj_la_DEPENDENCIES): Likewise.
2335 (libgcj_la_LIBADD): Likewise.
2336 ($(nat_files)): Use LTCXXCOMPILE.
2337 ($(c_files)): Use LTCOMPILE.
2338 (GCJCOMPILE): New macro.
2339 (.class.o): Use it.
2340 (.java.o): Likewise.
2341 ($(javao_files)): Likewise.
2342 (jv_convert_LINK): Use LIBTOOL.
2343 (nat_files): Use `.lo' files.
2344 (c_files): Likewise.
2345 (javao_files): Likewise.
2346 (.class.lo): Renamed.
2347 (.java.lo): Likewise.
2348 ($(nat_files)): Depend on %.lo.
2349 ($(c_files)): Likewise.
2350 ($(javao_files)): Likewise.
2351 (jv_convert_LDADD): Link against .lo files.
2352 (jv_convert_DEPENDENCIES): Depend on .lo files.
2353 (maintainer-check): Depend on libgcj.la, but examine .a file.
2354 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2355 (libgcj_la_LDFLAGS): New macro.
2356
2357 1999-04-23 Warren Levy <warrenl@cygnus.com>
2358
2359 * Makefile.am: Added URLDecoder and URLEncoder.
2360 * Makefile.in: Rebuilt.
2361
2362 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2363 setSocketImplFactory to match spec.
2364 * java/net/Socket.java (getSoLinger): Changed return type to
2365 match spec.
2366
2367 * java/net/URLDecoder.java: New file.
2368 * java/net/URLEncoder.java: New file.
2369
2370 1999-04-21 Tom Tromey <tromey@cygnus.com>
2371
2372 * java/lang/natString.cc (getBytes): Reverted earlier change and
2373 applied correct fix from Per Bothner.
2374
2375 * java/lang/String.java: Don't throw
2376 UnsupportedEncodingException.
2377
2378 * java/lang/natString.cc (getBytes): Correctly size result
2379 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2380
2381 1999-04-20 Andrew Haley <aph@cygnus.com>
2382
2383 * include/sparc-signal.h: new file.
2384 * configure.in: include/sparc-signal.h added.
2385 * configure: regenerated.
2386 * prims.cc (JvRunMain): signal handling code rewritten to be more
2387 portable.
2388 (catch_segv): ditto.
2389 (catch_fpe): ditto.
2390 * include/i386-signal.h: reorganized.
2391 * include/default-signal.h: reorganized.
2392
2393 1999-04-19 Tom Tromey <tromey@cygnus.com>
2394
2395 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2396 once. From Anthony Green.
2397
2398 1999-04-19 Andrew Haley <aph@cygnus.com>
2399
2400 * Makefile.in: Processed with new automake.
2401
2402 1999-04-19 Tom Tromey <tromey@cygnus.com>
2403
2404 * include/javaprims.h: Removed security namespace.
2405
2406 1999-04-20 Anthony Green <green@cygnus.com>
2407
2408 * java/io/PrintStream.java (println): Remove extra println.
2409
2410 1999-04-19 Anthony Green <green@cygnus.com>
2411
2412 * Makefile.in: Rebuilt.
2413 * Makefile.am (ordinary_java_source_files): Add new security files.
2414
2415 * java/security/NoSuchAlgorithmException.java,
2416 java/security/MessageDigest.java: New files.
2417
2418 * include/javaprims.h: Add security namespace.
2419
2420 1999-04-16 Per Bothner <bothner@cygnus.com>
2421
2422 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2423 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2424 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2425 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2426 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2427 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2428 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2429 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2430 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2431 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2432 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2433 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2434 * Makefile.am: Various changes for new files and conversions.
2435
2436 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2437 New overloading, allows greater efficiency.
2438 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2439 New overloading (for efficiency - avoids copying).
2440
2441 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2442 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2443
2444 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2445 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2446 (writeChars): Don't be quite so eager to flush.
2447 * java/io/PrintStream.java: Rewrite. Now more similar to
2448 OutputStreamWriter, using explicit UnicodeToBytes converter.
2449 Also, autoflush does not need to flush so often.
2450 * java/lang/natString.cc (getBytes): More efficient algorithm.
2451 (init(jbyteArray,jint,jint,jstring)): More efficient.
2452
2453 1999-04-15 Warren Levy <warrenl@cygnus.com>
2454
2455 * Makefile.am (ordinary_java_source_files): Added new Connection
2456 and Handler classes in gnu.gcj.protocol.file package.
2457 * Makefile.in: Rebuilt.
2458
2459 * gnu/gcj/protocol/file/Connection.java: New file.
2460 * gnu/gcj/protocol/file/Handler.java: New file.
2461 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2462 if doInput allows input.
2463 (getOutputStream): Check if doOutput allows output.
2464 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2465
2466 1999-04-14 Tom Tromey <tromey@cygnus.com>
2467
2468 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2469 buffer larger to work around bug.
2470 From Bryce McKinlay <bryce@albatross.co.nz>.
2471
2472 1999-04-14 Andrew Haley <aph@cygnus.com>
2473
2474 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2475 NaNs are always converted to the same long value.
2476 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2477 converted to int.
2478
2479 1999-04-13 Tom Tromey <tromey@cygnus.com>
2480
2481 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2482 instead switch on actual element type.
2483
2484 * Makefile.in: Rebuilt.
2485 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2486
2487 1999-04-13 Andrew Haley <aph@cygnus.com>
2488
2489 * include/i386-signal.h, include/default-signal.h: New files.
2490 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2491 handler.
2492 (catch_fpe): New function.
2493 * configure.in: Make link to appropriate include/java-signal.h.
2494 * configure: Rebuilt.
2495 * Makefile.am: include/java-signal.h added to dependency list.
2496 * Makefile.in: Rebuilt.
2497
2498 1999-04-12 Urban Widmark <urban@svenskatest.se>
2499
2500 * java/io/DataInputStream.java (readLine): Corrected handling of
2501 empty lines, from null to "".
2502
2503 1999-04-12 Tom Tromey <tromey@cygnus.com>
2504
2505 * Makefile.in: Rebuilt.
2506 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2507
2508 * java/lang/natSystem.cc (SystemClass): New define.
2509 (init_properties): Synchronize.
2510
2511 1999-04-08 Geoff Berry <gcb@gnu.org>
2512
2513 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2514 * natPlainSocketImpl.cc (accept): Add missing else if check
2515 for AF_INET6.
2516
2517 1999-04-08 Tom Tromey <tromey@cygnus.com>
2518
2519 * java/lang/Long.java (parseLong): Corrected overflow detection
2520 code.
2521 * java/lang/Integer.java (parseInt): Corrected overflow detection
2522 code.
2523
2524 * java/io/PrintStream.java (print): Handle null string argument.
2525 (println): Likewise.
2526
2527 1999-04-07 Warren Levy <warrenl@cygnus.com>
2528
2529 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2530 Set count to 0 when InputStreamReader returns -1 for EOF.
2531
2532 1999-04-07 Tom Tromey <tromey@cygnus.com>
2533
2534 * mauve-libgcj: Omit java.text.Collator,
2535 java.text.RuleBasedCollator.
2536
2537 1999-04-06 Tom Tromey <tromey@cygnus.com>
2538
2539 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2540 IOException from getHttpHeaders().
2541 (getHeaderFieldKey): Likewise.
2542
2543 * include/javaprims.h: Regenerated declarations.
2544
2545 * Makefile.in: Rebuilt.
2546 * Makefile.am (ordinary_java_source_files): Updated for removed
2547 files.
2548
2549 1999-04-06 Per Bothner <bothner@cygnus.com>
2550
2551 * java/util/zip/Adler32.java: New class.
2552 * java/util/zip/CRC32.java: Add working method bodies.
2553 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2554 * Makefile.in: Re-generate.
2555
2556 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2557
2558 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2559 from version in removed www hierarchy.
2560 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2561 version in removed www hierarchy.
2562
2563 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2564 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2565 * gnu/gcj/www/protocol/http: Removed dir.
2566 * gnu/gcj/www/protocol: Removed dir.
2567 * gnu/gcj/www: Removed dir.
2568
2569 * java/net/HttpURLConnection.java: Revised comments to indicate
2570 missing JDK 1.2 methods.
2571
2572 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2573 hierarchy rather than the gnu/gcj/www/protocol one.
2574 * java/net/URLConnection.java: Updated status comments.
2575 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2576 the gnu/gcj/www/content one.
2577
2578 1999-04-06 Per Bothner <bothner@cygnus.com>
2579
2580 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2581 The gen-from-JIS program is in $(CONVERT_DIR).
2582
2583 1999-04-06 Tom Tromey <tromey@cygnus.com>
2584
2585 * mauve-libgcj: Renamed from mauve-libjava.
2586
2587 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2588
2589 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2590 (getResponseMessage): Implemented.
2591 (getResponseVals): New private method.
2592
2593 * java/net/URLConnection.java (getContent): Implemented.
2594 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2595
2596 1999-04-05 Tom Tromey <tromey@cygnus.com>
2597
2598 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2599 (jv_convert_SOURCES): Renamed.
2600 (EXTRA_jv_convert_SOURCES): Likewise.
2601 (jv_convert_LDFLAGS): Likewise.
2602 (jv_convert_LINK): Likewise.
2603 (jv_convert_LDADD): Likewise.
2604 (jv_convert_DEPENDENCIES): Likewise.
2605
2606 * Makefile.in: Rebuilt.
2607 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2608 tooldir.
2609
2610 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2611
2612 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2613 method for comparison.
2614
2615 * java/net/URLConnection.java (getContentLength): Implemented.
2616 (getContentType): Implemented.
2617 (getContentEncoding): Implemented.
2618 (getExpiration): Implemented.
2619 (getDate): Implemented.
2620 (getLastModified): Implemented.
2621 (getHeaderFieldInt): Implemented.
2622 (getHeaderFieldDate): Implemented.
2623
2624 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2625
2626 * java/net/URLConnection.java (toString): Implemented.
2627 (setContentHandlerFactory): Implemented.
2628 (setContentHandler): Wrote new private helper method.
2629
2630 1999-04-01 Tom Tromey <tromey@cygnus.com>
2631
2632 * Makefile.in: Rebuilt.
2633 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2634 of 1999-03-31; we always want to build all the .class files.
2635 Depend on java_source_files, not libgcj.zip.
2636 (nat_headers): Define in terms of ordinary_java_source_files.
2637
2638 1999-03-31 Tom Tromey <tromey@cygnus.com>
2639
2640 * Makefile.in: Rebuilt.
2641 * Makefile.am (special_java_source_files): New macro.
2642 (java_source_files): Use it.
2643 (ordinary_java_source_files): New macro.
2644 (java_source_files): Use it.
2645 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2646 creating headers for those files with hand-maintained headers.
2647
2648 * include/javaprims.h: Regenerated namespace declarations.
2649 * classes.pl (scan): Include [0-9] in regexp for matching class
2650 names; for java.util.zip.CRC32.
2651
2652 * Makefile.in: Rebuilt.
2653 * Makefile.am (nat_headers): Redefined to generate all possible
2654 header files.
2655
2656 * java/util/zip/ZipException.java: In package java.util.zip, not
2657 java.net.
2658
2659 1999-03-30 Tom Tromey <tromey@cygnus.com>
2660
2661 * configure: Rebuilt.
2662 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2663 eh-common.h when not building in tree with gcc.
2664
2665 * Makefile.in: Rebuilt.
2666 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2667 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2668 nat_headers.
2669 ($(java_source_files:.java=.class)): New target.
2670
2671 * Makefile.in: Rebuilt.
2672 * Makefile.am (java_source_files): Added
2673 java/net/HttpURLConnection.java and
2674 gnu/gcj/www/protocol/http/Connection.java.
2675
2676 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2677
2678 * gnu/gcj/www/protocol/http/Connection.java: New file.
2679 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2680 * java/net/HttpURLConnection.java: New file.
2681 * java/net/URLConnection.java (getHeaderField): Implemented default.
2682 (getHeaderFieldKey): Implemented default method.
2683
2684 1999-03-30 Tom Tromey <tromey@cygnus.com>
2685
2686 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2687
2688 * java/util/zip/Deflater.java: Added copyright header.
2689 * java/util/zip/CRC32.java: Added copyright header.
2690
2691 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2692 that it is automatically generated.
2693 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2694
2695 * gnu/gcj/convert/BytesToUnicode.java,
2696 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2697 gnu/gcj/convert/Input_EUCJIS.java,
2698 gnu/gcj/convert/Input_UTF8.java,
2699 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2700 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2701 gnu/gcj/convert/Output_8859_1.java,
2702 gnu/gcj/convert/Output_JavaSrc.java,
2703 gnu/gcj/convert/Output_UTF8.java,
2704 gnu/gcj/convert/UnicodeToBytes.java,
2705 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2706
2707 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2708
2709 * Makefile.in, configure: Rebuilt.
2710 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2711 not if test subdir exists.
2712 (--enable-gcj-classes): Removed; gcj always used to generate
2713 .class files.
2714 (JAVA, JAVAC): Removed.
2715 (--enable-single-compilation, --enable-source-compilation):
2716 Removed.
2717 (here): New subst.
2718 (NATIVE): New conditional.
2719 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2720 `install-exec' to work.
2721 (toolexeclibdir): Likewise.
2722 (toollib_LIBRARIES): Likewise.
2723 (AM_MAKEFLAGS): Don't pass tooldir.
2724 (JAVAC): New macro.
2725 (javao_files): Redefined.
2726 (java_source_files): New macro.
2727 (c_source_files): New macro.
2728 (c_files): Redefined in terms of c_source_files.
2729 (java_io_files, java_lang_files, java_net_files, java_text_files,
2730 java_util_files, gnu_files, java_files): Removed.
2731 (class_io_files, class_lang_files, class_net_files,
2732 class_text_files, class_util_files, class_gnu_files, class_files):
2733 Removed.
2734 (nat_source_files): New macro.
2735 (nat_files): Redefined in terms of nat_source_files.
2736 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2737 java_source_files. Removed no-such-file.c.
2738 (here): Removed.
2739 (ETAGS_ARGS): Removed.
2740 (TAGS_DEPENDENCIES): Likewise.
2741 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2742 pwd in rule.
2743 (src_io_files, src_lang_files, src_text_files, src_util_files,
2744 src_gnu_files): Removed.
2745 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2746 (BUILT_SOURCES): Removed.
2747 (header-check): New target.
2748 (javadir): Removed.
2749 (noinst_PROGRAMS): New macro.
2750 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2751 on MAINTAINER_MODE.
2752 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2753 (gen-from-JIS): Build in top directory.
2754 (convert_source_files): New macro.
2755 (convert_SOURCES): New macro.
2756 (convert_LDFLAGS): Likewise.
2757 (convert_LINK): Likewise.
2758 (convert_LDADD): Likewise.
2759 (convert_DEPENDENCIES): Likewise.
2760 (convert): Removed.
2761 (gen-from-JIS): Removed.
2762 (gen_from_JIS_SOURCES): New macro.
2763 (gen_from_JIS_LDADD): Likewise.
2764 (gen_from_JIS_DEPENDENCIES): Likewise.
2765
2766 * configure: Rebuilt.
2767 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2768 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2769 when defining conditional.
2770
2771 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2772
2773 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2774 The Unicode Consortium does not permit their re-distribution.
2775 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2776 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2777
2778 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2779
2780 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2781
2782 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2783
2784 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2785 from Unicode Consortium.
2786 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2787 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2788 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2789 New tables, generated using gen-from-JIS.
2790 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2791 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2792 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2793 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2794
2795 * gnu/gcj/convert/Convert.java: New application.
2796 * Makefile.am, Makefile.in (convert): New program, using Convert.
2797 Build the various JIS conversion tables (in maintainer mode).
2798
2799 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2800
2801 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2802
2803 * java/net/URL.java (URL): Deal with null property value. Use "."
2804 as separator in building class name.
2805 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2806 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2807 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2808 beginning of the substring rather than 'start'.
2809
2810 1999-03-26 Tom Tromey <tromey@cygnus.com>
2811
2812 * include/java-chartables.h: Rebuilt.
2813 * include/java-chardecomp.h: New file.
2814 * chartables.pl: Generate output files directly. Added support
2815 for generating decomposition header.
2816 (canonical_decomposition, full_decomposition): New globals.
2817 (DECOMPOSITION): New constant.
2818 (process_char): Call add_decomposition.
2819 (add_decomposition): New sub.
2820 (write_decompositions): New sub.
2821
2822 1999-03-25 Tom Tromey <tromey@cygnus.com>
2823
2824 * java/text/CollationElementIterator.java: New file.
2825
2826 * mauve-libjava: Omit StringTest.
2827
2828 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2829
2830 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2831 without a '/' when parsing protocol. Handle ref outside of parseURL.
2832 (hashCode): Implemented.
2833 (set): Don't expand -1 to default port.
2834 (getDefaultPort): Removed.
2835
2836 * java/net/URLStreamHandler.java (parseURL): Implemented.
2837 (toExternalForm): Implemented.
2838
2839 1999-03-23 Tom Tromey <tromey@cygnus.com>
2840
2841 * java/text/BreakIterator.java (getSentenceInstance):
2842 Implemented.
2843 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2844
2845 * Makefile.in: Rebuilt.
2846 * Makefile.am (nat_headers): Added IllegalAccessException.
2847 * java/lang/natClass.cc (newInstance): Throw
2848 IllegalAccessException, not IllegalAccessError.
2849 Include IllegalAccessException.h.
2850
2851 1999-03-22 Tom Tromey <tromey@cygnus.com>
2852
2853 * gnu/gcj/text/LineBreakIterator.java: New file.
2854 * java/text/BreakIterator.java (getLineInstance): Implemented.
2855
2856 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2857 copy constructor private.
2858 (previous, next): Removed erroneous comment about line
2859 separators.
2860 (previous): Correctly recognize break between non-letter on the
2861 left and letter on the right. Handle apostrophes correctly.
2862
2863 * java/text/BreakIterator.java (getWordInstance): Implemented.
2864 * gnu/gcj/text/WordBreakIterator.java: New file.
2865 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2866 BaseBreakIterator.
2867 * gnu/gcj/text/BaseBreakIterator.java: New file.
2868
2869 1999-03-19 Tom Tromey <tromey@cygnus.com>
2870
2871 * java/text/BreakIterator.java: New file (partially stubbed out).
2872 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2873
2874 * include/config.h.in: Rebuilt.
2875 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2876 (HAVE_TIMEZONE): Likewise.
2877 * configure: Rebuilt.
2878 * configure.in: Added timezone checks.
2879 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2880 timezone.
2881
2882 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2883
2884 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2885 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2886 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2887 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2888 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2889 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2890 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2891 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2892
2893 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2894 (BSD_COMP): Kludge needed for Solaris2.
2895
2896 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2897
2898 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2899 URL(java.net.URL, string, URLStreamHandler) and call it with a
2900 null handler. In latter constructor, added SecurityManager check.
2901 (set): Expect null handler on bad protocol rather than an exception.
2902 (setURLStreamHandler): Simplified exception handling; return null
2903 on invalid protocol.
2904
2905 1999-03-18 Tom Tromey <tromey@cygnus.com>
2906
2907 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2908
2909 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2910 methods.
2911 Include PrintStream.h, InputStream.h.
2912 * java/lang/System.java (ForwardingInputStream,
2913 ForwardingOutputStream): Removed.
2914 (setErr, setIn, setOut): Now native.
2915
2916 Reverted patch from 1999-02-12 to work around problem in
2917 libgcc2.c.
2918 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2919 (_Jv_eh_free): Use free.
2920
2921 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2922 for path name. Minor formatting fixes.
2923
2924 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2925
2926 * prims.cc (fail_on_finalization): New function.
2927 (_Jv_GCWatch): Likewise.
2928
2929 * prims.cc (JvRunMain): Initialize `nullp'.
2930 (nullp): New global.
2931 (catch_segv): Throw nullp.
2932
2933 * Makefile.in: Rebuilt.
2934 * Makefile.am (ZIP): In "null target" case, zip is found in the
2935 build tree.
2936
2937 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2938 object.
2939 Include Modifier.h.
2940
2941 * java/lang/StringBuffer.java (StringBuffer): Don't use
2942 ensureCapacity to set initial capacity.
2943 (capacity): Subtract `length' from return result.
2944
2945 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2946
2947 * java/io/natFileDescriptorPosix.cc (open): Throw
2948 FileNotFoundException, but with filename and errno in msg.
2949
2950 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2951
2952 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2953 functionality folded into java/net/URL.java per spec.
2954
2955 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2956 than EEXIST for throwing FileNotFoundException.
2957
2958 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2959 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2960
2961 * java/net/URLStreamHandler.java (parseURL): Added stub.
2962
2963 1999-03-15 Andrew Haley <aph@cygnus.com>
2964
2965 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2966 by one errors.
2967
2968 1999-03-15 Andrew Haley <aph@cygnus.com>
2969
2970 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2971 support.
2972
2973 1999-03-12 Tom Tromey <tromey@cygnus.com>
2974
2975 * prims.cc (catch_segv): New function.
2976 Include <signal.h> if HANDLE_SEGV defined. Include
2977 NullPointerException.h.
2978 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2979 handler.
2980
2981 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2982 a SimpleDateFormat, not just a DateFormat.
2983 (defaultCenturyStart, formatData, pattern): Now private.
2984 (append): Now `final'. Use `NumberFormat.format'.
2985 (parse): Wrote.
2986 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2987
2988 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2989 result.
2990
2991 * java/text/MessageFormat.java (format): Use default MessageFormat
2992 constructor.
2993 (parse, parseObject): Wrote.
2994
2995 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2996 constructor.
2997
2998 1999-03-12 Andrew Haley <aph@cygnus.com>
2999
3000 * java/lang/String.java (indexOf): Replace with native method for
3001 better performance.
3002 * java/lang/natString.cc (IndexOf): As above.
3003
3004 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
3005 Argument check corrected.
3006 (init(jbyteArray,jint,jint,jstring)): Likewise.
3007
3008 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
3009 1.2 compliant method.
3010
3011 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
3012 added.
3013 * java/lang/Float.java (byteValue, shortValue): Likewise.
3014
3015 1999-03-11 Tom Tromey <tromey@cygnus.com>
3016
3017 * java/text/DecimalFormat.java (parse): Wrote.
3018
3019 * java/text/ChoiceFormat.java (parse): Set error index on
3020 ParsePosition object.
3021
3022 * java/lang/Integer.java (parseInt): Throw exception on overflow
3023 when intermediate result is most negative number. Changed
3024 overflow detection as well.
3025 * java/lang/Long.java (parseLong): Likewise.
3026
3027 * configure, Makefile.in: Rebuilt.
3028 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
3029 CANADIAN when building in source tree that doesn't include gcc.
3030 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
3031 define.
3032
3033 * java/text/ChoiceFormat.java (nextDouble): Correct some
3034 off-by-one errors when masking or adding.
3035
3036 * java/text/DecimalFormat.java (format): Fill in FieldPosition
3037 parameter, if given. Use `%', not IEEEremainder.
3038 (scanFix): Throw error if multiplier already set.
3039 (computePattern): Wrote.
3040
3041 1999-03-11 Andrew Haley <aph@cygnus.com>
3042
3043 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
3044 52.
3045 (nextDouble): Corrected masking logic. Handle interaction between
3046 `next' and negative numbers.
3047
3048 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
3049
3050 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
3051 * java/net/URL.java: Added general comments.
3052
3053 1999-03-10 Tom Tromey <tromey@cygnus.com>
3054
3055 * java/text/ChoiceFormat.java (parse): Wrote.
3056
3057 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
3058
3059 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
3060 Create ChoiceFormat objects.
3061 (format): Special-case ChoiceFormat.
3062 (scanFormatElement): Include { and } in generated style string.
3063
3064 1999-03-09 Tom Tromey <tromey@cygnus.com>
3065
3066 * java/text/ChoiceFormat.java: New file.
3067
3068 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
3069
3070 * java/net/BindException.java: Created.
3071 * java/net/ConnectException.java: Created.
3072 * java/net/ContentHandler.java: Created.
3073 * java/net/ContentHandlerFactory.java: Created.
3074 * java/net/FileNameMap.java: Created.
3075 * java/net/MalformedURLException.java: Created.
3076 * java/net/NoRouteToHostException.java: Created.
3077 * java/net/ProtocolException.java: Created.
3078 * java/net/ServerSocket.java (@author): Fixed typo.
3079 * java/net/Socket.java (@author): Fixed typo.
3080 * java/net/SocketImpl.java (@author): Fixed typo.
3081 * java/net/SocketImplFactory.java (@author): Fixed typo.
3082 * java/net/URL.java: Created - nearly complete.
3083 * java/net/URLConnection.java: Created - near-empty stub.
3084 * java/net/URLStreamHandler.java: Created - incomplete stub.
3085 * java/net/URLStreamHandlerFactory.java: Created.
3086 * java/net/UnknownServiceException.java: Created.
3087
3088 1999-03-09 Tom Tromey <tromey@cygnus.com>
3089
3090 * java/lang/System.java (ForwardingInputStream): New class.
3091 (ForwardingOutputStream): Likewise.
3092 (in, out, err): Now `final' forwarding streams.
3093 (setIn, setOut, setErr): Use appropriate method on forwarding
3094 streams.
3095
3096 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
3097 class.
3098
3099 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
3100
3101 * java/util/zip/CRC32.java: New class (just an incomplete stub).
3102 * java/util/zip/Checksum.java: New interface (complete).
3103 * java/util/zip/Deflater.java: New class (near-empty stub).
3104 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
3105 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
3106 * java/util/zip/ZipEntry.java: New class (complete).
3107 * java/util/zip/ZipException.java: New class (complete).
3108 * java/util/zip/ZipFile.java: New class (incomplete stub).
3109 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
3110
3111 1999-03-09 Tom Tromey <tromey@cygnus.com>
3112
3113 * java/text/MessageFormat.java (MessageFormatElement): Removed
3114 `public' specifiers.
3115
3116 * java/text/DecimalFormat.java (scanFormat): Increment index
3117 before processing exponential format. Fixed a couple typos in
3118 exception messages.
3119 (format): Correct normalization of exponent.
3120
3121 1999-03-08 Tom Tromey <tromey@cygnus.com>
3122
3123 * java/text/SimpleDateFormat.java (parse): Throw
3124 IllegalArgumentException, not ParseException.
3125
3126 1999-03-05 Tom Tromey <tromey@cygnus.com>
3127
3128 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
3129 when constructing DateFormatSymbols. Initialize numberFormat
3130 field of superclass.
3131
3132 * java/text/DateFormat.java (equals): Rewrote.
3133 (getAvailableLocales): New method.
3134 (getDateInstance): New methods.
3135 (getDateTimeInstance): Likewise.
3136 (getTimeInstance): Likewise.
3137 (getInstance): New method.
3138 (computeInstance): New method.
3139
3140 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
3141 for US.
3142 (safeGetResource): New method.
3143 (DateFormatSymbols): Use Locale paramater.
3144 (equals): Now protected.
3145 Made instance variables private.
3146
3147 1999-03-04 Tom Tromey <tromey@cygnus.com>
3148
3149 * java/text/DecimalFormat.java: New file.
3150
3151 * java/text/NumberFormat.java (groupingUsed,
3152 maximumFractionDigits, maximumIntegerDigits,
3153 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3154 New fields.
3155 (setDecimalSeparatorAlwaysShown, setMultiplier,
3156 setPositivePrefix): Removed.
3157 (setMinimumFractionDigits, setMaximumFractionDigits):
3158 Implemented.
3159 (format): Now final.
3160 Added many new methods.
3161
3162 * Makefile.in: Rebuilt.
3163 * Makefile.am (gnu_files): New macro.
3164 (java_files): Added gnu_files.
3165 (class_gnu_files): New macro.
3166 (class_files): Use it.
3167 (src_gnu_files): New macro.
3168 (gnu.o): New target.
3169 (javao_files): Added gnu.o.
3170
3171 * gnu/gcj/text/LocaleData_en_US.java: New file.
3172 * gnu/gcj/text/LocaleData_en.java: New file.
3173 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3174 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3175 (safeGetString): New method.
3176 (safeGetChar): Likewise.
3177
3178 1999-03-03 Tom Tromey <tromey@cygnus.com>
3179
3180 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3181 constants.
3182
3183 * java/text/FieldPosition.java (equals): Don't check for null
3184 object; instanceof does this.
3185
3186 * java/util/Locale.java (clone): New method.
3187 (equals): Likewise.
3188
3189 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3190
3191 * doc/cni.sgml: New file.
3192
3193 1999-03-03 Tom Tromey <tromey@cygnus.com>
3194
3195 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3196
3197 * java/text/DecimalFormatSymbols.java: New file.
3198
3199 1999-03-02 Tom Tromey <tromey@cygnus.com>
3200
3201 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3202 exists.
3203 * configure: Rebuilt.
3204 * configure.in: Check for sys/filio.h.
3205
3206 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3207 if required.
3208 (load): Always throw UnsatisfiedLinkError.
3209 (loadLibrary): Likewise.
3210
3211 1999-03-02 Anthony Green <green@cygnus.com>
3212
3213 * LIBGCJ_LICENSE: New file.
3214 * LIBJAVA_LICENSE: Removed.
3215 * Many files: libjava now libgcj.
3216
3217 1999-03-02 Tom Tromey <tromey@cygnus.com>
3218
3219 * include/java-chartables.h: Rebuilt.
3220 * chartables.pl (print_block): Make table `const'.
3221 (print_numerics): Likewise.
3222 (print_single_map): Likewise.
3223 (print_all_block): Likewise.
3224 (print_case_table): Likewise.
3225 (print_fast_tables): Likewise.
3226 * java/lang/natCharacter.cc (table_search): `table' argument now
3227 const.
3228
3229 1999-03-01 Tom Tromey <tromey@cygnus.com>
3230
3231 * java/util/Date.java (before, after): Inverted logic.
3232
3233 * java/util/Date.java (parse): Handle case where first character
3234 in string is open parenthesis.
3235 (skipParens): Rewrote.
3236
3237 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3238 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3239
3240 * java/util/Date.java (parse): Correctly compute beginning of
3241 punctuation.
3242
3243 * java/util/Hashtable.java (get): Throw NullPointerException if
3244 key is null.
3245 (containsKey): Likewise.
3246
3247 * java/util/Properties.java (list): Truncate value to 37
3248 characters and add `...'.
3249
3250 * java/lang/Byte.java (parseByte): Pass `radix' to
3251 Integer.parseInt.
3252
3253 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3254 fprintf.
3255 Include System.h, PrintStream.h.
3256
3257 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3258 realloc, or free.
3259
3260 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3261 exists.
3262 * configure: Rebuilt.
3263 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3264 `pwd.d'.
3265
3266 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3267
3268 * java/lang/SecurityManager.java: Import java.net.*.
3269 (checkMulticast): New methods.
3270
3271 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3272
3273 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3274 (nat_files): Add java/lang/reflect/natArray.o.
3275 (nat_headers): Add Field.h and NoSuchFieldException.h.
3276
3277 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3278 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3279 (_Jv_FromReflectedField): Fix buglet.
3280 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3281 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3282 * prims.cc (_Jv_Abort): Include message in print-out.
3283
3284 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3285 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3286 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3287
3288 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3289 * include/config.h.in (HAVE_PWD_H): New feature macro.
3290 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3291 user.name, user.home, user.dir.
3292
3293 * java/lang/reflect/Array.java: New class.
3294 * java/lang/reflect/natArray.cc: New native methods.
3295 * include/javaprims.h: Declare java::lang::reflect::Array.
3296
3297 * java/lang/Class.h (getField): New private method. Add friends.
3298 * java/lang/Class.java (getField): Add private overload.
3299 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3300 getDeclaredMethods): Add working implementations.
3301 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3302 Finish implementation, except for access control.
3303
3304 * java/lang/reflect/Modifier.java (toString): New overload.
3305 * include/java-method.h: New file.
3306 * java/lang/reflect/Method.java (index): Replaced by offset field.
3307 Remove various private fields - get them from _Jv_Field instead.
3308 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3309 New method implementations.
3310
3311 * java/text/NumberFormat.java: Add a bunch of methods.
3312
3313 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3314
3315 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3316
3317 1999-02-26 Tom Tromey <tromey@cygnus.com>
3318
3319 * include/config.h.in: Rebuilt.
3320 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3321 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3322 HAVE_GETHOSTBYADDR_R): New defines.
3323 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3324 gethostbyaddr_r if available.
3325 Include <errno.h>.
3326 * configure: Rebuilt.
3327 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3328
3329 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3330 Don't use JvFree.
3331 (lookup): Likewise.
3332 Include <jvm.h>.
3333 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3334 * prims.cc (_Jv_AllocBytesChecked): New function.
3335
3336 * Makefile.in: Rebuilt.
3337 * Makefile.am (SUBDIRS): Removed `test'.
3338 * configure: Rebuilt.
3339 * configure.in: Don't build test/Makefile.
3340 * test/*: Removed all files.
3341
3342 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3343
3344 * java/lang/reflect/Constructor.java: Make class final to match spec.
3345 * java/lang/reflect/Method.java: Ditto.
3346
3347 1999-02-25 Tom Tromey <tromey@cygnus.com>
3348
3349 * java/net/natInetAddress.cc: Include <sys/types.h> before
3350 <sys/socket.h>.
3351 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3352 <sys/socket.h>.
3353
3354 * java/net/natInetAddress.cc: Declare gethostname if required.
3355 * include/config.h.in: Rebuilt.
3356 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3357 * configure: Rebuilt.
3358 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3359 declared in unistd.h.
3360
3361 1999-02-24 Tom Tromey <tromey@cygnus.com>
3362
3363 * Makefile.in: Rebuilt.
3364 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3365 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3366 from private to "none".
3367
3368 * include/javaprims.h: Regenerated class declarations with new
3369 classes.pl.
3370 * classes.pl (scan): Only generate decls for java.lang, java.io,
3371 and java.util.
3372
3373 1999-02-24 Tom Tromey <tromey@cygnus.com>
3374
3375 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3376 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3377
3378 1999-02-23 Tom Tromey <tromey@cygnus.com>
3379
3380 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3381 not already defined.
3382 * java/io/natFile.cc (_REENTRANT): Only define if not already
3383 defined.
3384 * include/config.h.in: Rebuilt.
3385 * acconfig.h (HAVE_BOEHM_GC): New define.
3386 * configure: Rebuilt.
3387 * configure.in: Define HAVE_BOEHM_GC if using it.
3388 * posix-threads.cc: Include boehm-config.h and gc.h if
3389 HAVE_BOEHM_GC.
3390 * include/posix-threads.h: Added explanatory note about Boehm GC.
3391
3392 * java/io/BufferedReader.java (readLine): Only return null when
3393 EOF seen before any characters read. (In particular, an empty
3394 line should not return null.)
3395
3396 * java/io/BufferedInputStream.java (read): Only refill once per
3397 invocation.
3398
3399 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3400 java.lang.Character.classify12, java.lang.String.hash,
3401 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3402 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3403
3404 * java/text/StringCharacterIterator.java (setIndex): No error if
3405 index == end.
3406 (next): Check for `pos == end', not `end - 1'.
3407 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3408 for null text in each constructor.
3409 (clone): Fixed order of arguments to constructor.
3410
3411 1999-02-22 Tom Tromey <tromey@cygnus.com>
3412
3413 * include/config.h.in: Rebuilt.
3414 * acconfig.h (HAVE_INET6): New define.
3415 (HAVE_SOCKLEN_T): Likewise.
3416 * java/net/PlainSocketImpl.java: Added copyright header.
3417 * java/net/natPlainSocketImpl.cc: Added copyright header.
3418 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3419 (bind): Likewise.
3420 (connect): Likewise.
3421 (accept): Likewise.
3422 (socklen_t): New typedef.
3423 (accept): Use socklen_t.
3424 * java/net/natInetAddress.cc: Added copyright header.
3425 (HAVE_GETHOSTNAME): Don't define.
3426 (HAVE_INET_ADDR): Likewise.
3427 (lookup): Fixed typo.
3428 (aton): Don't use `address' as name of local variable.
3429 (lookup): Use HAVE_INET6, not AF_INET6.
3430
3431 * configure: Rebuilt.
3432 * configure.in: Look for functions inet_aton, inet_addr,
3433 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3434 Check for socklen_t typedef.
3435
3436 * exception.cc (__throw): Declare as __noreturn__.
3437
3438 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3439
3440 * Makefile.am, Makefile.in: Also build java/net.
3441 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3442
3443 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3444 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3445
3446 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3447 * include/cni.h (JvMalloc, JvFree): New inline functions.
3448 (JvThrow): Add __noreturn__ attribute.
3449 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3450 (_Jv_Throw): Add __noreturn__ attribute.
3451
3452 * java/net/PlainSocketImpl.java: Init fnum to -1.
3453 * java/net/ServerSocket.java: Add missing throws clauses.
3454 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3455 don't call create on the latter. Instead, other constructors
3456 have to explicitly call SocketImpl.create.
3457 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3458 from size_t to int, to match ::accept prototype.
3459 * java/net/natInetAddress.cc: Use JvFree rather than free.
3460
3461
3462 1999-02-22 Tom Tromey <tromey@cygnus.com>
3463
3464 * include/javaprims.h: Added new classes.
3465 * java/text/StringCharacterIterator.java: New file.
3466 * java/text/CharacterIterator.java: New file.
3467
3468 * java/text/ParseException.java (errorOffset): Now private.
3469
3470 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3471
3472 * java/net: New package.
3473 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3474 Socket.java,SocketException.java,SocketImpl.java,
3475 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3476 natPlainSocketImpl.cc}: New classes.
3477
3478 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3479 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3480 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3481 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3482
3483 * classes.pl: Translate package into "namespace", not "class".
3484 * include/javaprims.h: Update class list, using "namespace".
3485
3486 1999-02-21 Tom Tromey <tromey@cygnus.com>
3487
3488 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3489 Define when appropriate.
3490
3491 1999-02-20 Tom Tromey <tromey@cygnus.com>
3492
3493 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3494 as a single byte and \u07ff as two bytes.
3495 (_Jv_GetStringUTFLength): Likewise.
3496 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3497 with 0x0f, not 0x1f.
3498
3499 1999-02-19 Tom Tromey <tromey@cygnus.com>
3500
3501 * java/io/DataOutputStream.java (writeUTF): When encoding
3502 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3503 * java/io/DataInputStream.java (readUTF): Mask second byte of
3504 3-byte character with 0x3f, not 0x1f.
3505
3506 * java/io/DataInputStream.java (readLong): Cast result of
3507 readUnsignedByte to long before using.
3508
3509 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3510 it is not null.
3511
3512 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3513 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3514 argument to avoid warning.
3515 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3516 argument to avoid warning.
3517
3518 1999-02-18 Tom Tromey <tromey@cygnus.com>
3519
3520 * mauve-libjava: Omit java.io.DataInputOutput and
3521 java.io.Utf8Encoding.
3522
3523 1999-02-17 Tom Tromey <tromey@cygnus.com>
3524
3525 * Makefile.in: Rebuilt.
3526 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3527 * java/io/natFileDescriptorPosix.cc: Include
3528 InterruptedIOException.h, Thread.h.
3529 (write): Throw InterruptedIOException when required.
3530 (read): Likewise.
3531 * posix-threads.cc: Include <signal.h>.
3532 (_Jv_ThreadInterrupt): New function.
3533 (INTR): New define.
3534 (handle_intr): New function.
3535 (_Jv_InitThreads): Register handle_intr via sigaction.
3536 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3537 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3538 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3539 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3540
3541 1999-02-19 Andrew Haley <aph@cygnus.com>
3542
3543 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3544 of subgroups.
3545 (ThreadGroup (int)): Set the maximum priority of the initial
3546 ThreadGroup.
3547
3548 1999-02-18 Andrew Haley <aph@cygnus.com>
3549
3550 * java/lang/natClass.cc (forName): Check for the case where a
3551 classname is the name of an array and call FindClassFromSignature
3552 to find the Class.
3553
3554 1999-02-18 Andrew Haley <aph@cygnus.com>
3555
3556 * java/lang/StringBuffer (insert (int, String)): Move up any
3557 characters above the insert position and increase the length of
3558 the string buffer by the length of the argument.
3559 (insert (int, char[])): Likewise.
3560 (insert (int, char)): Likewise.
3561 (StringBuffer (String)): The initial capacity of the string buffer
3562 is 16 plus the length of the argument.
3563 (getChars): Add a JDK 1.2 FIXME.
3564
3565 1999-02-18 Andrew Haley <aph@cygnus.com>
3566
3567 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3568 Integer.parseInt.
3569
3570 1999-02-18 Andrew Haley <aph@cygnus.com>
3571
3572 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3573 instead of floating-point equality. This is necessary for
3574 correct floating-point Hashtables.
3575 * java/lang/Float.java (equals): Ditto.
3576
3577 1999-02-16 Tom Tromey <tromey@cygnus.com>
3578
3579 * java/util/Properties.java (list): Truncate value to 37
3580 characters and add "...".
3581
3582 1999-02-16 Tom Tromey <tromey@cygnus.com>
3583
3584 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3585 if initCap is negative.
3586 (contains): Implement JDK1.2-style handling of null argument.
3587 (removeElement): Likewise.
3588 (indexOf): Likewise. Also, correctly handle case where idx is
3589 negative.
3590 (lastIndexOf): Likewise.
3591
3592 1999-02-16 Tom Tromey <tromey@cygnus.com>
3593
3594 * java/lang/natString.cc (init): Increment source pointer in
3595 loop.
3596
3597 1999-02-16 Tom Tromey <tromey@cygnus.com>
3598
3599 * exception.cc: Include NullPointerException.h.
3600 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3601
3602 1999-02-16 Tom Tromey <tromey@cygnus.com>
3603
3604 * Makefile.in: Rebuilt.
3605 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3606
3607 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3608
3609 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3610 we're compiling canadian.
3611 * configure: Regenerated.
3612
3613 1999-02-12 Andrew Haley <aph@cygnus.com>
3614
3615 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3616 deleted from libgcj.
3617
3618 1999-02-12 Tom Tromey <tromey@cygnus.com>
3619
3620 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3621 (_Jv_eh_free): Don't call free.
3622 Don't declare malloc or free.
3623
3624 1999-02-11 Tom Tromey <tromey@cygnus.com>
3625
3626 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3627
3628 1999-02-11 Andrew Haley <aph@cygnus.com>
3629
3630 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3631 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3632 needed by java.lang.*.
3633 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3634 wf_fmod.o: Removed from libjava.a.
3635
3636 1999-02-11 Tom Tromey <tromey@cygnus.com>
3637
3638 * include/javaprims.h: Reverted previous change; with it
3639 exception.cc can't compile.
3640
3641 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3642
3643 * include/config.h.in: Rebuilt.
3644 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3645 HAVE_SCHED_YIELD.
3646 * configure: Rebuilt.
3647 * configure.in: Check for sched_yield. Look in thread library for
3648 all thread functions.
3649
3650 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3651 no recursive mutexes.
3652 (_Jv_MutexDestroy): Define when required.
3653 (_Jv_MutexLock): Likewise.
3654 (_Jv_MutexUnlock): Likewise.
3655 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3656 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3657 (_Jv_Mutex_t): New structure.
3658 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3659 (_Jv_MutexLock): Likewise.
3660 (_Jv_MutexUnlock): Likewise.
3661
3662 1999-02-10 Tom Tromey <tromey@cygnus.com>
3663
3664 * aclocal.m4, configure, Makefile.in: Rebuilt.
3665 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3666 automake 1.4.
3667 * configure.in: Changed to track library changes.
3668 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3669 (AM_CXXFLAGS): Likewise.
3670 (data_DATA): Likewise.
3671 (AM_CFLAGS): Likewise.
3672 (JC1FLAGS): Likewise.
3673 (libgcj_a_SOURCES): Likewise.
3674 (EXTRA_libgcj_a_SOURCES): Likewise.
3675 (libgcj_a_DEPENDENCIES): Likewise.
3676 (libgcj_a_LIBADD): Likewise.
3677 (libgcj.zip): Likewise.
3678 (CLEANFILES): Likewise.
3679 ($(nat_headers)): Likewise.
3680 (java/lang/FirstThread.h): Likewise.
3681 (java/lang/ThreadGroup.h): Likewise.
3682 (java/lang/String.h): Likewise.
3683 (java/lang/reflect/Field.h): Likewise.
3684 (BUILT_SOURCES): Likewise.
3685 (maintainer-check): Likewise.
3686 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3687 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3688
3689 * java/util/natGregorianCalendar.cc (computeFields): Only use
3690 gmtime_r and localtime_r when configured for posix threads.
3691
3692 * java/io/natFile.cc (get_entry): Only use readdir_r when
3693 configured for posix threads.
3694
3695 * java/util/natGregorianCalendar.cc: Update copyright notice.
3696 * java/util/TimeZone.java: Ditto.
3697 * java/util/SimpleTimeZone.java: Ditto.
3698
3699 1999-02-08 Tom Tromey <tromey@cygnus.com>
3700
3701 * java/io/PrintStream.java (line_separator): New constant.
3702 (print): Use line_separator, not `file.separator' property.
3703 (println): Use line_separator.
3704
3705 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3706 when trying to instantiate Class.
3707
3708 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3709 NullPointerException if argument is null.
3710
3711 * java/lang/Thread.java (setName): Throw NullPointerException, not
3712 IllegalArgumentException.
3713 (Thread): Likewise.
3714
3715 1999-02-08 Andrew Haley <aph@cygnus.com>
3716
3717 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3718 create new Classes with Class.newInstance().
3719
3720 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3721 semiciolon to end of an array Class's signature if the elements of
3722 the array aren't themselves arrays.
3723
3724 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3725 array of objects is always sizeof(jobject), not the size of the
3726 object to which the reference points.
3727
3728 1999-02-08 Tom Tromey <tromey@cygnus.com>
3729
3730 * java/util/BitSet.java (and): Throw NullPointerException when
3731 required.
3732 (or): Likewise.
3733 (xor): Likewise.
3734
3735 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3736 if argument is negative.
3737 (clear): Correctly compute `offset'. Throw
3738 IndexOutOfBoundsException when required.
3739 (set): Likewise.
3740 (get): Likewise. Also, return correct value.
3741 (ensure): Changed meaning of argument.
3742 (toString): Wrap contents in `{}'; put spaces after commas.
3743 (hashCode): Don't try to examine elements off the end of array.
3744 (or): Correctly include bits past the end of this bit set.
3745 (xor): Likewise.
3746
3747 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3748
3749 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3750 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3751
3752 1999-02-04 Andrew Haley <aph@cygnus.com>
3753
3754 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3755 '/' in signatures to '.'
3756 (Class::getName): Likewise,
3757 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3758 signature.
3759 * java/lang/natFirstThread.cc (run): Change '/' in main's
3760 signature to '.'.
3761
3762 1999-02-03 Andrew Haley <aph@cygnus.com>
3763
3764 * configure.host: -ffloat-store added when compiling libjava on
3765 x86. fdlibm apparently relies on this.
3766
3767 * java/lang/ThreadGroup.java (add): throw an exception if the
3768 ThreadGroup has been destroyed.
3769
3770 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3771 behaviour.
3772
3773 1999-01-27 Tom Tromey <tromey@cygnus.com>
3774
3775 * java/lang/StringBuffer.java (StringBuffer): Handle null
3776 argument.
3777
3778 1999-01-21 Tom Tromey <tromey@cygnus.com>
3779
3780 * java/lang/natFirstThread.cc (run): Don't require main to be
3781 public.
3782
3783 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3784
3785 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3786
3787 1999-01-20 Tom Tromey <tromey@cygnus.com>
3788
3789 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3790 StringClass.
3791 (rehash): Likewise.
3792 (intern): Likewise.
3793 (unintern): Likewise.
3794 (_Jv_NewStringUtf8Const): Likewise.
3795
3796 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3797 Character.isLetter, to see if character is self-quoting. Also,
3798 correctly handle quoted characters.
3799 (parse): Fixed typo. Also now throws ParseException.
3800
3801 1999-01-15 Tom Tromey <tromey@cygnus.com>
3802
3803 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3804
3805 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3806 _Jv_SyncInfo has `init' member.
3807
3808 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3809 coop_mutex_unlock.
3810
3811 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3812 IllegalMonitorStateException if unlock fails.
3813
3814 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3815 zero.
3816 (_Jv_NewObjectArray): Likewise.
3817
3818 1999-01-14 Tom Tromey <tromey@cygnus.com>
3819
3820 * java/lang/Character.java (isJavaIdentifierPart): Allow
3821 LETTER_NUMBER characters.
3822
3823 * chartables.pl (process_char): Fixed error messages.
3824
3825 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3826 * chartables.pl: Updated comments. Changed detection of non-digit
3827 numeric values (no longer miss \u00b2 and friends).
3828
3829 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3830 currency symbols and connector punctuation.
3831 (isIdentifierIgnorable): Make 7f-9f ignorable.
3832
3833 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3834 (_Jv_NewPrimArray): Likewise.
3835 (SIZE_T_MAX): New define.
3836
3837 * java/lang/ClassLoader.java (system): Now private and final.
3838
3839 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3840 null.
3841
3842 * configure: Rebuilt.
3843 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3844 well.
3845 * exception.cc: Include gansidecl.h.
3846
3847 1999-01-14 Andrew Haley <aph@cygnus.com>
3848
3849 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3850 corrected: they didn't treat -0.0 and NaNs correctly.
3851
3852 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3853
3854 * nogc.cc: Use calloc to zero out memory.
3855
3856 1999-01-11 Tom Tromey <tromey@cygnus.com>
3857
3858 * java/lang/natClass.cc (isInstance): Return false if this class
3859 is primitive, not if class of `obj' is primitive.
3860 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3861
3862 * java/io/SequenceInputStream.java (close): Handle case where `in'
3863 is already null.
3864
3865 * java/text/DateFormat.java (format): New method.
3866
3867 * mauve-libjava: Omit java.text.DateFormat.
3868
3869 1999-01-08 Tom Tromey <tromey@cygnus.com>
3870
3871 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3872 argument.
3873 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3874 argument.
3875 (_Jv_CondNotifyAll): Likewise.
3876
3877 * configure: Rebuilt.
3878 * configure.in: Change --enable-source-compilation logic to work
3879 correctly.
3880
3881 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3882
3883 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3884 and RUNTESTFLAGS from AM_MAKEFLAGS.
3885 * configure.in: AM_RUNTESTFLAGS added.
3886 * configure.host: AM_RUNTESTFLAGS added.
3887 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3888 * configure: rebuilt.
3889 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3890
3891 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3892 argv[] made conditional because embedded targets may not have
3893 argv[].
3894 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3895 explanatory comments added in call to super.
3896
3897 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3898 exception thrown in the test harness itself added.
3899 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3900
3901 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3902
3903 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3904
3905 1999-01-06 Tom Tromey <tromey@cygnus.com>
3906
3907 * java/io/natFile.cc (get_entry): New function.
3908 (performList): Use get_entry.
3909 * include/config.h.in: Rebuilt.
3910 * acconfig.h (HAVE_READDIR_R): New define.
3911 * configure: Rebuilt.
3912 * configure.in: Look for readdir_r.
3913
3914 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3915
3916 * java/util/natDate.cc: Added copyright header.
3917
3918 1999-01-05 Tom Tromey <tromey@cygnus.com>
3919
3920 * include/config.h.in: Rebuilt.
3921 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3922 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3923 * configure: Rebuilt.
3924 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3925 unlink, and realpath.
3926 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3927 (stat): Conditionalize on HAVE_STAT.
3928 (attr): Likewise.
3929 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3930 (performMkdir): Conditionalize on HAVE_MKDIR.
3931 (performRenameTo): Conditionalize on HAVE_RENAME.
3932 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3933
3934 * include/config.h.in: Rebuilt.
3935 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3936 * configure: Rebuilt.
3937 * configure.in: Check for gmtime_r and localtime_r. For cross
3938 builds, assume they exist.
3939
3940 * mauve-libjava: Include java.text.DateFormatSymbols again.
3941 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3942 from setAmPmStrings.
3943
3944 * mauve-libjava: Omit java.text.DateFormatSymbols.
3945
3946 1999-01-04 Tom Tromey <tromey@cygnus.com>
3947
3948 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3949
3950 * java/io/LineNumberReader.java (read): Decrement `count' in
3951 loop.
3952
3953 * java/io/BufferedWriter.java (write): Correctly determine when
3954 incoming data would overrun buffer. Flush buffer if write causes
3955 it to become full.
3956
3957 * java/io/BufferedOutputStream.java (write): Increment `count'
3958 after copying data into buffer.
3959
3960 * java/io/FilterOutputStream.java (close): Call flush first.
3961
3962 * java/io/PipedReader.java (read): If read causes `out' to catch
3963 up with `in', then set `in' to -1.
3964
3965 * java/io/LineNumberInputStream.java (read): If no bytes read,
3966 return -1. If no bytes requested, return 0.
3967
3968 * java/lang/StringBuffer.java (insert): If `str' is null, use
3969 string "null".
3970
3971 1998-12-30 Anthony Green <green@cygnus.com>
3972
3973 * README: Removed.
3974 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3975
3976 1998-12-23 Tom Tromey <tromey@cygnus.com>
3977
3978 * java/io/PushbackInputStream.java (read): `off' already includes
3979 `numBytes'.
3980
3981 1998-12-17 Tom Tromey <tromey@cygnus.com>
3982
3983 * Makefile.in: Rebuilt.
3984 * Makefile.am (GCJ_canadian): Include target_alias.
3985
3986 * java/lang/natFirstThread.cc (run): Require main's class to be
3987 public.
3988
3989 1998-12-16 Tom Tromey <tromey@cygnus.com>
3990
3991 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3992
3993 * java/util/ResourceBundle.java (getBundle): Throw
3994 NullPointerException if locale argument is null.
3995
3996 * java/lang/natClass.cc (forName): Throw NullPointerException if
3997 argument is null.
3998 Include NullPointerException.h.
3999
4000 1998-12-14 Tom Tromey <tromey@cygnus.com>
4001
4002 * java/lang/Character.java (Character): Implement Comparable.
4003 (compareTo): New methods.
4004
4005 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
4006 correct country and language codes.
4007 (UK, US): New constants.
4008 (setDefault): Language codes are lower-case.
4009
4010 * java/lang/natClass.cc (getDeclaredConstructor): New method.
4011 (getDeclaredConstructors): Likewise.
4012 (getDeclaredField): Likewise.
4013 (getDeclaredFields): Likewise.
4014 (getDeclaredMethod): Likewise.
4015 (getDeclaredMethods): Likewise.
4016 (getField): Likewise.
4017 (getFields): Likewise.
4018 (getMethod): Likewise.
4019 (getMethods): Likewise.
4020 * java/lang/Class.java: Declare new methods.
4021 * java/lang/Class.h: Declare new methods.
4022
4023 * java/lang/natString.cc: Removed `#pragma implementation'.
4024 * include/cni.h (_Jv_GetStringChars): New function.
4025 * Makefile.in: Rebuilt.
4026 * Makefile.am (java/lang/String.h): Don't generate definition for
4027 _Jv_GetStringChars.
4028
4029 * java/lang/natString.cc: Added `#pragma implementation'.
4030
4031 * Makefile.in: Rebuilt.
4032 * Makefile.am (libjava.zip): Put build directory first in class
4033 path to avoid bug in compiler.
4034
4035 1998-12-14 Anthony Green <green@cygnus.com>
4036
4037 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
4038
4039 * include/javaprims.h: Add EventObject, ListResourceBundle and
4040 ResourceBundle.
4041
4042 1998-12-13 Anthony Green <green@cygnus.com>
4043
4044 * mauve-libjava: Run the ResourceBundle tests.
4045
4046 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
4047 NULL.
4048
4049 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
4050
4051 * configure.in, configure: Make --enable-gcj-classes and
4052 --enable-source-compilation the default. (Nervously...) Yeah!
4053 Based on a patch from Tom Tromey.
4054
4055 1998-12-13 Tom Tromey <tromey@cygnus.com>
4056
4057 * java/util/EventObject.java: New file.
4058 * java/util/EventListener.java: New file.
4059
4060 * include/javaprims.h: Updated class declarations.
4061 * Makefile.in: Rebuilt.
4062 * Makefile.am (nat_headers): Added Constructor.h.
4063 (java/lang/String.h): Don't inline String::length().
4064 * java/lang/Class.h (getConstructor, getConstructors): Declare.
4065 * java/lang/Class.java (initializeClass, hackRunInitializers,
4066 hackTrampoline): No need to mark `final'.
4067 (getConstructor, getConstructors): Declare.
4068 * java/lang/reflect/Field.java (equals): New method.
4069 * java/lang/natClass.cc (getConstructor): New method.
4070 (getConstructors): Likewise.
4071 Include Method.h, Field.h, Constructor.h.
4072 * java/lang/reflect/Constructor.java: New file.
4073 * java/lang/reflect/Method.java (toString): No space before open
4074 paren.
4075 (equals): Simplified.
4076
4077 1998-12-13 Anthony Green <green@cygnus.com>
4078
4079 * java/util/ResourceBundle.java: New file.
4080 * java/util/ListResourceBundle.java: New file.
4081
4082 1998-12-12 Tom Tromey <tromey@cygnus.com>
4083
4084 * java/lang/System.java (in, out, err): Now buffered streams by
4085 default.
4086
4087 * include/javaprims.h: Updated class declarations.
4088 * Makefile.in: Rebuilt.
4089 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
4090 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
4091 Long.h, Boolean.h.
4092 (nat_files): Added natMethod.o.
4093 * java/lang/reflect/natMethod.cc: New file.
4094 * java/lang/reflect/Field.java (Field): Now extends
4095 AccessibleObject.
4096 * java/lang/reflect/AccessibleObject.java: New file.
4097 * java/lang/reflect/InvocationTargetException.java: New file.
4098
4099 1998-12-11 Tom Tromey <tromey@cygnus.com>
4100
4101 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
4102 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
4103 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
4104
4105 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
4106
4107 1998-12-09 Tom Tromey <tromey@cygnus.com>
4108
4109 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
4110 HAVE_CTIME_R.
4111
4112 * java/lang/natCharacter.cc (toTitleCase): Handle case where
4113 character is already titlecase.
4114
4115 * java/lang/Character.java (isJavaLetter): Follow spec.
4116 (isJavaLetterOrDigit): Likewise.
4117
4118 * java/util/GregorianCalendar.java (gregorianCutover): Append
4119 `L'.
4120
4121 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
4122
4123 1998-12-08 Tom Tromey <tromey@cygnus.com>
4124
4125 * java/lang/reflect/Modifier.java (toString): Replace second
4126 `static' with `synchronized'.
4127
4128 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
4129 * java/lang/Object.h (Object::hack12_6): Declare.
4130 * java/lang/Object.java (hack12_6): New function.
4131
4132 1998-12-07 Tom Tromey <tromey@cygnus.com>
4133
4134 * include/java-array.h (__JArray::clone): Removed decl.
4135 * prims.cc (__JArray::clone): Removed.
4136 * java/lang/natObject.cc (clone): Incorporate code to clone an
4137 array.
4138
4139 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
4140 (_Jv_FindArrayClass): Set dtable_method_count on new class.
4141 Correctly use dtable_method_count.
4142
4143 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
4144
4145 * java/lang/Double.java (isInfinite, isNaN): Handle correct
4146 IEEE754 values.
4147
4148 1998-12-06 Anthony Green <green@cygnus.com>
4149
4150 * mauve-libjava: Don't test ResourceBundle.
4151
4152 1998-12-04 Tom Tromey <tromey@cygnus.com>
4153
4154 More JDK 1.2 spec fixes:
4155 * java/util/Date.java (millis): Now private.
4156 * java/text/DateFormat.java (DateFormat): Constructor now
4157 protected.
4158 * java/lang/Void.java (Void): New private constructor.
4159 * java/lang/System.java (System): New private constructor.
4160 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4161 body.
4162 (currentClassLoader): New method.
4163 (currentLoadedClass): New method.
4164 * java/lang/Math.java (Math): New private constructor.
4165 * java/lang/Compiler.java (Compiler): New private constructor.
4166 * java/lang/Class.java (Class): New private constructor.
4167 * java/lang/Double.java (toString): Removed access specifier from
4168 two-argument `toString' method.
4169
4170 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4171
4172 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4173 causes it to be flushed from an fp register (where it may be
4174 longer than double precision) to a double in memory. This is
4175 essential to ensure correct rounding behaviour.
4176
4177 1998-12-04 Tom Tromey <tromey@cygnus.com>
4178
4179 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4180 function.
4181
4182 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4183 explaining apparent divergence from JDK 1.2.
4184
4185 1998-12-04 Per Bothner <bothner@cygnus.com>
4186
4187 * include/no-threads.h: Remove unused parameter names.
4188 This silences a bunch of warnings.
4189
4190 1998-12-04 Tom Tromey <tromey@cygnus.com>
4191
4192 * include/config.h.in: Rebuilt.
4193 * acconfig.h (HAVE_CTIME_R): New symbol.
4194
4195 1998-12-03 Tom Tromey <tromey@cygnus.com>
4196
4197 * mauve-libjava: Added many more categories to reject.
4198
4199 Changes to follow JDK1.2 spec:
4200 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4201 setErr, setIn, setOut): No need to be `final'.
4202 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4203 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4204 * java/lang/Object.java (wait): `nanos' argument is an int.
4205 * java/lang/VirtualMachineError.java: Class is abstract.
4206 * java/lang/ThreadDeath.java: Made constructors public.
4207 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4208 constructor.
4209
4210 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4211
4212 * java/text/DateFormatSymbols.java (getAmPmStrings,
4213 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4214
4215 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4216
4217 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4218 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4219 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4220 and 1.2.
4221
4222 * java/lang/IllegalThreadStateException.java
4223 (IllegalThreadStateException): Changed extending class to match spec.
4224
4225 * java/lang/NumberFormatException.java
4226 (java/lang/NumberFormatException): Changed extending class to match
4227 spec.
4228
4229 * java/util/Observer.java (Observer): Changed sig to match JCL.
4230
4231 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4232
4233 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4234 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4235 signature to match JDK 1.1 and 1.2.
4236
4237 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4238
4239 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4240 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4241 * Makefile.in, configure: Rebuilt.
4242
4243 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4244 name.
4245
4246 1998-12-02 Tom Tromey <tromey@cygnus.com>
4247
4248 * mauve-libjava: New file.
4249
4250 The remaining `-W -Wall' fixes:
4251 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4252 avoid warning.
4253 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4254 `else'.
4255 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4256 warning.
4257 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4258 avoid warning.
4259 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4260 ambiguous `else'.
4261 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4262 warning.
4263 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4264 suggestion.
4265 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4266 suggestion.
4267 * java/lang/mprec.c (Balloc): Removed unused variable.
4268 (mult): Added parentheses per gcc suggestion.
4269 (pow5mult): Likewise.
4270 (lshift): Likewise.
4271 (ulp): Likewise.
4272 (b2d): Likewise.
4273 (d2b): Likewise.
4274 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4275 suggestion. Added cast to `int' to avoid signed/unsigned
4276 comparison.
4277 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4278 parameter.
4279 (IsAssignableFrom): Likewise.
4280 (_Jv_JNI_GetObjectField): Likewise.
4281 (_Jv_JNI_GetByteField): Likewise.
4282 (_Jv_JNI_GetShortField): Likewise.
4283 (_Jv_JNI_GetIntField): Likewise.
4284 (_Jv_JNI_GetLongField): Likewise.
4285 (_Jv_JNI_GetStringLength): Likewise.
4286 (_Jv_JNI_ToReflectedField): Likewise.
4287 (_Jv_JNI_FromReflectedField): Likewise.
4288 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4289
4290 * Makefile.in: Rebuilt.
4291 * Makefile.am (AM_CFLAGS): Define conditionally.
4292 (WARNINGS): New macro.
4293 (AM_CXXFLAGS): Include WARNINGS.
4294 * configure: Rebuilt.
4295 * configure.in (USING_GCC): New conditional.
4296
4297 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4298
4299 * java/lang/Character.java: Changed classification constants to
4300 type `byte' to match JDK 1.2 docs.
4301
4302 1998-12-01 Tom Tromey <tromey@cygnus.com>
4303
4304 Some fixes to be `-W -Wall' clean:
4305 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4306 (_Jv_MarkArray): Likewise.
4307 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4308 (to_upper_title): Likewise.
4309 (isTitleCase): Likewise.
4310 (toTitleCase): Likewise.
4311 (getNumericValue): Likewise.
4312 (isLowerCase): Likewise.
4313 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4314 (avoids compiler warning).
4315 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4316 value.
4317 (getDeclaringClass): Likewise.
4318 (_Jv_LookupInterfaceMethod): Likewise.
4319 (_Jv_NewClass): Removed name of unused parameter.
4320 * exception.cc (_Jv_type_matcher): Removed unused variable.
4321 (_Jv_setup_eh_info): Removed name of unused parameter.
4322 * prims.cc (_Jv_NewArray): Always return a value.
4323 (_Jv_FindClassFromSignature): Likewise.
4324 * include/java-field.h (getNameUtf8Const): Removed name of unused
4325 parameter.
4326 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4327 unused parameter.
4328 (_Jv_ThreadSetPriority): Likewise.
4329
4330 * java/lang/natString.cc (hashChars): Now static.
4331
4332 * java/lang/FirstThread.java (FirstThread): Now final.
4333
4334 * java/io/File.java (performMkdir, performRenameTo): Now private.
4335
4336 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4337 if no time function defined.
4338
4339 * configure: Rebuilt.
4340 * configure.in: Look for ctime_r, ctime.
4341 * java/util/Date.java (toString): Now native.
4342 * java/util/natDate.cc (toString): Rewrote.
4343
4344 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4345
4346 * Add LDFLAGS line to allow TX39 test cases to link when cross
4347 compiling.
4348
4349 1998-11-23 Anthony Green <green@cygnus.com>
4350
4351 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4352 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4353 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4354 include/java-array.h, include/java-assert.h, include/java-field.h,
4355 include/javaprims.h, include/jni.h, include/jvm.h,
4356 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4357 include/quick-threads.h, java/io/BufferedInputStream.java,
4358 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4359 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4360 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4361 java/io/CharArrayWriter.java,
4362 java/io/CharConversionException.java, java/io/DataInput.java,
4363 java/io/DataInputStream.java, java/io/DataOutput.java,
4364 java/io/DataOutputStream.java, java/io/EOFException.java,
4365 java/io/File.java, java/io/FileDescriptor.java,
4366 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4367 java/io/FileOutputStream.java, java/io/FileReader.java,
4368 java/io/FileWriter.java, java/io/FilenameFilter.java,
4369 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4370 java/io/FilterReader.java, java/io/FilterWriter.java,
4371 java/io/IOException.java, java/io/InputStream.java,
4372 java/io/InputStreamReader.java,
4373 java/io/InterruptedIOException.java,
4374 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4375 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4376 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4377 java/io/PipedReader.java, java/io/PipedWriter.java,
4378 java/io/PrintStream.java, java/io/PrintWriter.java,
4379 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4380 java/io/RandomAccessFile.java, java/io/Reader.java,
4381 java/io/SequenceInputStream.java, java/io/Serializable.java,
4382 java/io/StreamTokenizer.java,
4383 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4384 java/io/StringWriter.java, java/io/SyncFailedException.java,
4385 java/io/UTFDataFormatException.java,
4386 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4387 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4388 java/io/natFileDescriptorPosix.cc,
4389 java/lang/AbstractMethodError.java,
4390 java/lang/ArithmeticException.java,
4391 java/lang/ArrayIndexOutOfBoundsException.java,
4392 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4393 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4394 java/lang/Class.java, java/lang/ClassCastException.java,
4395 java/lang/ClassCircularityError.java,
4396 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4397 java/lang/ClassNotFoundException.java,
4398 java/lang/CloneNotSupportedException.java,
4399 java/lang/Cloneable.java, java/lang/Comparable.java,
4400 java/lang/Compiler.java, java/lang/Double.java,
4401 java/lang/Error.java, java/lang/Exception.java,
4402 java/lang/ExceptionInInitializerError.java,
4403 java/lang/FirstThread.java, java/lang/Float.java,
4404 java/lang/IllegalAccessError.java,
4405 java/lang/IllegalAccessException.java,
4406 java/lang/IllegalArgumentException.java,
4407 java/lang/IllegalMonitorStateException.java,
4408 java/lang/IllegalStateException.java,
4409 java/lang/IllegalThreadStateException.java,
4410 java/lang/IncompatibleClassChangeError.java,
4411 java/lang/IndexOutOfBoundsException.java,
4412 java/lang/InstantiationError.java,
4413 java/lang/InstantiationException.java, java/lang/Integer.java,
4414 java/lang/InternalError.java, java/lang/InterruptedException.java,
4415 java/lang/LinkageError.java, java/lang/Long.java,
4416 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4417 java/lang/NoClassDefFoundError.java,
4418 java/lang/NoSuchFieldError.java,
4419 java/lang/NoSuchFieldException.java,
4420 java/lang/NoSuchMethodError.java,
4421 java/lang/NoSuchMethodException.java,
4422 java/lang/NullPointerException.java, java/lang/Number.java,
4423 java/lang/NumberFormatException.java, java/lang/Object.h,
4424 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4425 java/lang/Process.java, java/lang/Runnable.java,
4426 java/lang/Runtime.java, java/lang/RuntimeException.java,
4427 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4428 java/lang/Short.java, java/lang/StackOverflowError.java,
4429 java/lang/String.java, java/lang/StringBuffer.java,
4430 java/lang/StringIndexOutOfBoundsException.java,
4431 java/lang/System.java, java/lang/Thread.java,
4432 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4433 java/lang/Throwable.java, java/lang/UnknownError.java,
4434 java/lang/UnsatisfiedLinkError.java,
4435 java/lang/UnsupportedOperationException.java,
4436 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4437 java/lang/Void.java, java/lang/natCharacter.cc,
4438 java/lang/natClass.cc, java/lang/natDouble.cc,
4439 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4440 java/lang/natMath.cc, java/lang/natObject.cc,
4441 java/lang/natRuntime.cc, java/lang/natString.cc,
4442 java/lang/natSystem.cc, java/lang/natThread.cc,
4443 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4444 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4445 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4446 java/text/FieldPosition.java, java/text/Format.java,
4447 java/text/NumberFormat.java, java/text/ParseException.java,
4448 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4449 java/util/BitSet.java, java/util/Calendar.java,
4450 java/util/ConcurrentModificationException.java,
4451 java/util/Date.java, java/util/Dictionary.java,
4452 java/util/EmptyStackException.java, java/util/Enumeration.java,
4453 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4454 java/util/Locale.java, java/util/MissingResourceException.java,
4455 java/util/NoSuchElementException.java, java/util/Observable.java,
4456 java/util/Observer.java, java/util/Properties.java,
4457 java/util/Random.java, java/util/SimpleTimeZone.java,
4458 java/util/Stack.java, java/util/StringTokenizer.java,
4459 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4460 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4461 copyright notices.
4462
4463 * exception.cc: Include eh-common.h instead of duplicating
4464 code.
4465
4466 1998-11-23 Tom Tromey <tromey@cygnus.com>
4467
4468 * configure.host: Don't add `-O2' to libjava_flags. Only add
4469 `-Os' to libjava_flags once.
4470
4471 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4472
4473 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4474 * Makefile.in: likewise
4475 * acconfig.h: add ECOS conditional for configure.h
4476 * config.h.in: likewise
4477 * configure: add test for --with-ecos
4478 * configure.in: likewise
4479 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4480 rename call to avoid name clash.
4481 * java/lang/natSystem.cc: add eCos clock support.
4482 * java/util/natGregorianCalendar.cc: add eCos support.
4483
4484 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4485
4486 * Makefile.am, Makefile.in, configure.host: tx39 build option
4487 "-G 0" added.
4488
4489 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4490
4491 * java/io/BufferedReader.java: Added more comments for clarity.
4492 (mark): Used more mnemonic name for local var extraBuffSpace.
4493
4494 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4495 confusion with private method of same name in superclass.
4496 (skipRedundantLF): Set fields in special case to avoid infinite
4497 recursion. Check if markPos has been invalidated in special case.
4498 (readLine): Rewritten to use readLine method of superclass.
4499 (skip): Incorporated code from lineEnd.
4500
4501 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4502
4503 * java/io/BufferedReader.java (readLine): New method.
4504 (lineEnd): new private method.
4505 (mark): Track special case for readLine of getting '\r' at the
4506 end of the buffer.
4507 (reset): Ditto.
4508 (read): Ditto.
4509 (fill): Ditto.
4510 (skip): Ditto.
4511
4512 * java/io/InputStreamReader.java (read): Return number chars skipped
4513 rather than requested.
4514
4515 * java/lang/StringBuffer.java (append): Update count and differentiate
4516 between field and local variable.
4517
4518 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4519 seconds. Deal with military style time.
4520 (parse): Consistently treat all timezones in minutes until final
4521 calculation. Flag as non-local timezone. Return value in milliseconds.
4522 (setTime): Adjust for year offset from 1900.
4523 (UTC): Adjust for year offset from 1900.
4524
4525 1998-11-17 Tom Tromey <tromey@cygnus.com>
4526
4527 * configure: Rebuilt.
4528 * configure.in: Switch on host, not target.
4529
4530 * Makefile.in: Rebuilt.
4531 * Makefile.am (GCJ_no): New macro.
4532 (GCJ): Use @CANADIAN@.
4533 (GCJH_no): New macro
4534 (GCJH_canadian): New macro.
4535 (GCJH): Use @CANADIAN@.
4536 (ZIP_no): New macro.
4537 (ZIP_canadian): New macro.
4538 (ZIP): Use @CANADIAN@.
4539 * aclocal.m4, configure: Rebuilt.
4540 * configure.in (CANADIAN): Compute and subst.
4541
4542 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4543
4544 * java/io/FileDescriptor.java (finalize): Only close file
4545 descriptor if valid.
4546
4547 1998-11-17 Tom Tromey <tromey@cygnus.com>
4548
4549 * prims.cc (_Jv_InitRuntime): Removed.
4550
4551 1998-11-16 Tom Tromey <tromey@cygnus.com>
4552
4553 * java/io/FileOutputStream.java (close): Only close file
4554 descriptor if valid.
4555 (finalize): New method.
4556
4557 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4558 (_Jv_NewPrimArray): Likewise.
4559 * boehm.cc (_Jv_RegisterFinalizer): Use
4560 GC_REGISTER_FINALIZER_NO_ORDER.
4561 (GC_GENERIC_MALLOC): New define.
4562 (_Jv_AllocObj): Use it.
4563 (_Jv_AllocArray): Likewise.
4564 (_Jv_AllocBytes): Likewise.
4565 (_Jv_MarkObj): Just return if vtbl not set.
4566 (_Jv_MarkArray): Likewise.
4567 (MAYBE_MARK): New macro; use everywhere.
4568 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4569
4570 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4571
4572 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4573 to a jlong before calculation to prevent overflow.
4574
4575 1998-11-16 Tom Tromey <tromey@cygnus.com>
4576
4577 * Makefile.in: Rebuilt.
4578 * Makefile.am (nat_headers): Fixed typo.
4579
4580 1998-11-15 Tom Tromey <tromey@cygnus.com>
4581
4582 * java/lang/Class.h (Class::getName): Removed definition.
4583 * Makefile.in: Rebuilt.
4584 * Makefile.am (nat_headers): Added InstantiationException.h,
4585 NoSuchMethodException.h.
4586 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4587 (init_name): New global.
4588 (hackRunInitializers): Use clinit_name.
4589 Include InstantiationException.h, NoSuchMethodException.h.
4590 (newInstance): Do some error checking (but not all). Call
4591 constructor.
4592 (forName): Throw exception if class not found.
4593 (getName): New method.
4594 (forName): Transform class name from external format to internal
4595 format before lookup.
4596
4597 1998-11-15 Anthony Green <green@cygnus.com>
4598
4599 * java/lang/Class.h (Class::forName): Method is static.
4600
4601 * java/lang/natClass.cc (newInstance): Add simple implementation.
4602 (forName): Ditto.
4603
4604 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4605
4606 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4607 int), for compatibility with jc1.
4608
4609 1998-11-14 Tom Tromey <tromey@cygnus.com>
4610
4611 * include/config.h.in: Rebuilt.
4612 * acconfig.h (LINUX_THREADS): New define.
4613 * configure: Rebuilt.
4614 * configure.in: Define LINUX_THREADS if using POSIX threads on
4615 Linux. Look for pthread_mutexattr_setkind_np function.
4616 * posix-threads.cc (throw_cleanup): New function.
4617 (really_start): Push cleanup function.
4618 (_Jv_ThreadCancel): New function.
4619 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4620 (_Jv_ThreadInitData): Set `exception' field in new structure.
4621 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4622 thread.
4623 (_Jv_ThreadWait): New function.
4624 (_Jv_InitThreads): Initialize daemon globals.
4625 (FLAG_DAEMON): New macro.
4626 (really_start): Notify daemon_cond when non-daemon thread exits.
4627 Include <java/lang/System.h>.
4628 (struct starter): `object' field now a thread.
4629 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4630 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4631 (_Jv_ThreadWait): Removed definition.
4632 (_Jv_Thread_t): Added `exception' field.
4633 (_Jv_ThreadCancel): Removed definition.
4634
4635 1998-11-13 Tom Tromey <tromey@cygnus.com>
4636
4637 * Makefile.in: Rebuilt.
4638 * Makefile.am (libjava.zip): Compute javac before changing
4639 directory.
4640
4641 * Makefile.in: Rebuilt.
4642 * Makefile.am (libjava.zip): Include directory entries.
4643
4644 * Makefile.in: Rebuilt.
4645 * Makefile.am (expanded): New macro.
4646 (GCJ): Use it.
4647
4648 1998-11-12 Tom Tromey <tromey@cygnus.com>
4649
4650 * prims.cc (clone): New function.
4651 * include/java-array.h (__JArray::clone): Removed definition.
4652
4653 * java/lang/natObject.cc (clone): Don't assert that class is not
4654 an array; array's `clone' method just calls this one.
4655
4656 * Makefile.in: Rebuilt.
4657 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4658 Now creates zip file. Changed all users.
4659 (ZIP): New macro.
4660 (data_DATA): New macro.
4661
4662 1998-11-11 Tom Tromey <tromey@cygnus.com>
4663
4664 * configure: Rebuilt.
4665 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4666
4667 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4668
4669 * java/io/InputStream.java (reset): Add msg to thrown exception.
4670
4671 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4672
4673 * java/io/LineNumberInputStream.java: Rewritten.
4674
4675 * java/io/StringBufferInputStream.java: Removed extraneous import.
4676
4677 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4678
4679 * java/io/StringBufferInputStream.java: Rewritten.
4680
4681 * java/util/Date.java (parseMonth): Optimize.
4682 (parseDayOfWeek): Created.
4683 (parse): Optimize to use parseDayOfWeek.
4684
4685 1998-11-11 Tom Tromey <tromey@cygnus.com>
4686
4687 * java/lang/StringBuffer.java (append): Handle case where STR is
4688 `null'.
4689
4690 * include/javaprims.h: Regenerated class declarations.
4691
4692 * configure: Rebuilt.
4693 * configure.in: Added --enable-gcj-classes,
4694 --enable-single-compilation, --enable-source-compilation flags.
4695 * Makefile.in: Rebuilt.
4696 * Makefile.am (java_io_files): New macro.
4697 (java_lang_files): Likewise.
4698 (java_text_files): Likewise.
4699 (java_util_files): Likewise.
4700 (java_files): Use new macros.
4701 (java-io.o): New target.
4702 (java-lang.o): Likewise.
4703 (java-text.o): Likewise.
4704 (java-util.o): Likewise.
4705 (src_io_files): New macro.
4706 (src_lang_files): Likewise.
4707 (src_text_files): Likewise.
4708 (src_util_files): Likewise.
4709 (class_io_files): New macro.
4710 (class_lang_files): Likewise.
4711 (class_text_files): Likewise.
4712 (class_util_files): Likewise.
4713 (class_files): Use new macros.
4714 (javao_files): Define conditionally.
4715 (.java.o): New target.
4716 ($(javao_files)): New target.
4717 (GCJ): new macro.
4718 (GCJH): Added $(EXEEXT).
4719 (CLASSPATH_ENV): Removed.
4720 (GCJCOMPILE): New macro.
4721
4722 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4723
4724 * java/util/Date.java (parse): Written from scratch.
4725
4726 1998-11-11 Tom Tromey <tromey@cygnus.com>
4727
4728 * java/lang/Throwable.java (toString): Correct sense of test for
4729 determining when to include detail message in result.
4730
4731 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4732 constructor.
4733
4734 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4735
4736 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4737 _Jv_RegisterClass.
4738 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4739 (_Jv_RegisterClass): Use it.
4740 * include/jvm.h (_Jv_RegisterClasses): Declare.
4741 * java/lang/natObject.cc (init): Removed.
4742 (sync_init): Never call _Jv_InitializeSyncMutex.
4743 (_Jv_InitializeSyncMutex): Don't set `init'.
4744 * prims.cc (JvRunMain): Don't run init functions.
4745
4746 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4747
4748 * java/lang/natClass.cc (initializeClass): Set state before
4749 resolving constants.
4750
4751 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4752 (STATE_RESOLVED): New macro.
4753 (initializeClass): Call resolveConstants.
4754 (hackRunInitializers): Don't call resolveConstants.
4755 (_Jv_FindArrayClass): Move short-circuit return for primitive
4756 element types earlier in function.
4757
4758 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4759
4760 * prims.cc (no_memory): New global.
4761 (_Jv_makeUtf8Const): Throw no_memory.
4762 (_Jv_AllocObject): Likewise.
4763 (_Jv_NewObjectArray): Likewise.
4764 (_Jv_NewPrimArray): Likewise.
4765 (JvRunMain): Initialize no_memory.
4766
4767 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4768
4769 * java/io/FileInputStream.java: Corrected date comment.
4770 * java/io/SequenceInputStream.java: Rewritten.
4771
4772 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4773
4774 * java/lang/FirstThread.java (die): New method.
4775 * java/lang/natFirstThread.cc (die): Removed.
4776 (DIE): New macro.
4777 (run): Use `DIE', not `die'.
4778
4779 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4780
4781 * java/io/CharArrayReader.java (read): Move check into synchronized
4782 block to prevent a close while in progress.
4783 (reset): Ditto.
4784 (skip): Ditto.
4785 * java/io/PushbackReader.java (read): Ditto.
4786 (ready): Ditto.
4787 (unread): Ditto.
4788 * java/io/StringReader.java (mark): Ditto.
4789 (read): Ditto.
4790 (reset): Ditto.
4791 (skip): Ditto.
4792
4793 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4794
4795 * java/io/PipedInputStream.java: Updated status.
4796 (connect): Added code to prevent infinite recursion and to
4797 differentiate exception causes.
4798 (read): Added code to differentiate exception causes.
4799 (receive): Made exception pass string with the cause.
4800
4801 * java/io/PipedOutputStream.java: Updated status.
4802 (connect): Added code to call connect at the other end of the pipe.
4803
4804 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4805
4806 * java/io/PipedInputStream.java (connect): Throw exception if
4807 already connected to the same output stream.
4808 (read): Do bounds checking first.
4809
4810 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4811
4812 * java/io/PipedInputStream.java: Added private boolean outClosed.
4813 (available): Removed check if output stream is open.
4814 (close): Mark the buffer as empty so available returns 0.
4815 (read): Check if the output stream was closed and then return EOF
4816 when the buffer is empty.
4817 (receive): Mark the output stream as closed when passed a -1.
4818
4819 * java/io/PipedOutputStream.java (close): Notify the input stream
4820 that there's no more data coming.
4821 (connect): Added a FIXME comment to note more coordination needed
4822 with PipedInputStream.
4823 (flush): Added a FIXME comment to mark what this method might do
4824 instead of nothing.
4825
4826 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4827
4828 * java/io/PipedInputStream.java: Rewritten.
4829
4830 1998-10-30 Tom Tromey <tromey@cygnus.com>
4831
4832 * java/lang/Throwable.java: Rewrote from scratch.
4833
4834 * java/lang/Class.h (Class): Don't mention newMultiArray.
4835 * prims.cc (newMultiArray): Removed.
4836 (_Jv_NewMultiArray): Removed.
4837 (newArray): Removed.
4838 (new_multi_array): New function.
4839 (_Jv_NewMultiArray): Rewrote from scratch.
4840
4841 * include/javaprims.h: Regenerated class declarations.
4842 * classes.pl (scan): Don't declare PrimClass.
4843 * include/cni.h (JvPrimClass): Use new names for classes.
4844 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4845 added _Jv_PrimClass.
4846 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4847 (_Jv_initPrimClass): Removed.
4848 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4849 (_Jv_AllocObject): Added comment.
4850 (_Jv_NewObjectArray): Likewise.
4851 (_Jv_NewPrimArray): Likewise.
4852
4853 1998-10-29 Tom Tromey <tromey@cygnus.com>
4854
4855 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4856 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4857 new dtable.
4858 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4859
4860 * java/lang/natObject.cc (init): New global.
4861 (sync_init): Call _Jv_InitializeSyncMutex if required.
4862
4863 * Makefile.in: Rebuilt.
4864 * Makefile.am (nat_headers): Added ClassLoader.h.
4865 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4866 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4867 internalAddClass, lookupArray no longer friends.
4868 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4869 _Jv_FindArrayClass now friends.
4870 * java/lang/natClass.cc (HASH_LEN): New macro.
4871 (HASH_UTF): Likewise.
4872 (loaded_classes): New global.
4873 (_Jv_FindClass): New function.
4874 (ClassClass): New define.
4875 (_Jv_FindClassInCache): New function.
4876 (_Jv_RegisterClass): Likewise.
4877 (_Jv_NewClass): Likewise.
4878 Include <string.h>
4879 (ObjectClass): New define.
4880 (CloneableClass): New define.
4881 * prims.cc (_Jv_FindClass): Removed.
4882 (simpleLookupClass): Removed.
4883 (insertClass): Removed.
4884 (CLASSHASHSZ): Removed.
4885 (classPool): Removed.
4886 (_Jv_RegisterClass): Removed.
4887 (internalAddClass): Removed.
4888 (ClassClass): Removed.
4889 (RuntimeClass): Removed.
4890 (lookupArray): Removed.
4891 (CloneableClass): Removed.
4892 (CLASSMAXSIG): Removed.
4893 Rearranged file to group related functions together.
4894 (_Jv_IsInstanceOf): Moved to natClass.cc.
4895 (abort_final): Removed.
4896 Removed some unused includes.
4897 (classFromSig): Removed.
4898 (_Jv_FindClassFromSignature): New function.
4899 (_Jv_initPrimClass): Renamed.
4900 (getClass): Removed.
4901
4902 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4903
4904 * java/io/FileDescriptor.java (finalize): Throws IOException
4905 instead of Throwable.
4906
4907 * java/io/FileInputStream.java: Rewritten.
4908
4909 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4910 at the end of a comment.
4911
4912 1998-10-29 Tom Tromey <tromey@cygnus.com>
4913
4914 * include/javaprims.h: Regenerated class declarations.
4915 * classes.pl (scan): Don't special-case ClassLoader.
4916
4917 * prims.cc (processClass): Removed.
4918 (_Jv_InitClass): Removed.
4919 Removed all CSTATE_ macros.
4920 (resolveConstants): Removed.
4921 (MAXDIMS): Removed.
4922 (_Jv_NewMultiArray): Cleaned up.
4923 * Makefile.in: Rebuilt.
4924 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4925 * java/lang/Class.h (Class): Declare new methods. processClass no
4926 longer a friend.
4927 * java/lang/Class.java (hackTrampoline): New method.
4928 (initializeClass): Declare.
4929 (hackRunInitializers): Declare.
4930 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4931 (initializeClass): New method.
4932 (hackRunInitializers): New method.
4933 (init_name, void_signature): Moved from prims.cc.
4934 (_Jv_InitClass): New function.
4935 (isAssignableFrom): Don't call processClass.
4936 (STATE_NOTHING): New macro.
4937 (resolveConstants): New function.
4938 Include Thread.h.
4939 (ErrorClass): New define.
4940
4941 * java/lang/Class.java (getClassLoader): Declare.
4942 * java/lang/ClassLoader.java: Rewrote from scratch.
4943
4944 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4945 AbstractMethodError.h, IllegalAccessError.h,
4946 NoClassDefFoundError.h.
4947 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4948 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4949 longer static. Changed return type.
4950 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4951 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4952 * prims.cc (findMethodLocal): Removed.
4953 (processClass): Use _Jv_GetMethodLocal.
4954
4955 1998-10-28 Tom Tromey <tromey@cygnus.com>
4956
4957 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4958 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4959 friend.
4960 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4961 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4962
4963 * include/jni.h: Added copyright header.
4964 * include/javaprims.h: Added copyright header.
4965 * include/java-field.h: Added copyright header.
4966 * include/java-array.h: Added copyright header.
4967 * include/cni.h: Added copyright header.
4968
4969 * include/javaprims.h: Regenerated class declarations using
4970 classes.pl; now they are complete.
4971 * classes.pl: New file.
4972
4973 * java/lang/natMath.cc: Include <config.h>.
4974 * java/lang/reflect/natField.cc: Include <config.h>.
4975 * java/util/NativeUtil.java: Removed.
4976 * Makefile.in: Rebuilt.
4977 * Makefile.am (nat_headers): Added Math.h.
4978 * java/lang/Math.h: Removed.
4979 * java/util/natGregorianCalendar.cc: Added copyright header.
4980 Include <config.h>.
4981 * java/lang/natFloat.cc: Added copyright header.
4982 * java/lang/Byte.java: Added copyright header.
4983 * java/lang/Void.java: Added copyright header.
4984 * java/lang/Short.java: Added copyright header.
4985
4986 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4987
4988 * include/javaprims.h (java::io): Added bunch of missing classes.
4989
4990 * java/io/DataInputStream.java (readLine): Added a special case
4991 for handling BufferedInputStream data to reduce the likelihood
4992 of a pushback error.
4993 (skipBytes): Added code to handle negative number of skip bytes.
4994
4995 * java/io/StreamTokenizer.java: Rewritten.
4996
4997 1998-10-28 Tom Tromey <tromey@cygnus.com>
4998
4999 * java/util/natGregorianCalendar.cc (computeFields): Call
5000 getRawOffset as a method.
5001
5002 * include/javaprims.h (java::io): Added FilterOutputStream.
5003 * Makefile.in: Rebuilt.
5004 * Makefile.am (nat_headers): Added PrintStream.h,
5005 FilterOutputStream.h.
5006 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
5007 PrintStream.h.
5008 (die): New function.
5009 (run): Die if `main' not found, is not public, or is not static.
5010
5011 * boehm.cc (_Jv_MarkObj): Use new field names.
5012 * include/java-field.h (JvGetFirstInstanceField): Use new field
5013 names.
5014 (JvNumInstanceFields): Likewise.
5015 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
5016 (getInterfaces): Likewise.
5017 * prims.cc (CLASS_CONSTANTS): Removed.
5018 (CLASS_CONST_SIZE): Likewise.
5019 (CLASS_CONST_TAG): Likewise.
5020 (CLASS_CONST_DATA): Likewise.
5021 (CLASS_CONST_UTF8): Likewise.
5022 (WORD2UTF): Likewise.
5023 (CLASS_CLASS): Likewise.
5024 (CLASS_PRIM_SIG): Likewise.
5025 (CLASS_ARRAY_CACHE): Likewise.
5026 (HASH_CHARS): Likewise.
5027 (hashClassName): Likewise.
5028 Many changes to use new field names.
5029 * java/lang/Class.h (Class): Renamed fields to track compiler.
5030
5031 1998-10-27 Tom Tromey <tromey@cygnus.com>
5032
5033 * java/lang/natClass.cc: Use #pragma implementation.
5034 (getComponentType): Moved into header.
5035 (getModifiers): Likewise.
5036 (getName): Likewise.
5037 (getSuperclass): Likewise.
5038 (isArray): Likewise.
5039 (isPrimitive): Likewise.
5040 * include/jvm.h (_Jv_FindClass): Declare.
5041 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
5042 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
5043 * include/javaprims.h: Use _Jv_Method, not JvMethod.
5044 * java/lang/Class.h: Rewrote from scratch.
5045 * prims.cc: Many changes to work with new Class.h.
5046 * include/java-field.h (CLASS_FIELDS): Removed.
5047 (CLASS_SFIELDS): Likewise.
5048 (CLASS_IFIELDS): Likewise.
5049 (CLASS_NFIELDS): Likewise.
5050 (CLASS_NIFIELDS): Likewise.
5051 (CLASS_NSFIELDS): Likewise.
5052 (CLASS_FSIZE): Likewise.
5053 (JvGetFirstInstanceField): Rewrote.
5054 (JvNumInstanceFields): Likewise.
5055
5056 * java/lang/Object.h: Added copyright comment.
5057
5058 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
5059
5060 * java/text: New package directory.
5061 * java/text/FieldPosition.java: New class.
5062 * java/text/ParsePosition.java: New class.
5063 * java/text/ParseException.java: New Exception class.
5064 * java/text/Format.java: New class.
5065 * java/text/NumberFormat.java: New (empty placeholder) class.
5066 * java/text/DateFormatSymbols.java: New class (no Locales support).
5067 * java/text/DateFormat.java: New Format class (incomplete).
5068 * java/text/SimpleDateFormat.java: New DateFormat class.
5069
5070 * include/javaprims.h (java::test): Added new package and classes.
5071 * java/util/Calendar.java (clone): New method.
5072 * java/util/Date.java (toString): Added non-native implementation.
5073 (parse): Made public instead of synchronized.
5074 * java/util/natDate.cc (toString): Removed.
5075 * java/util/natGregorianCalendar.cc (computeFields):
5076 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
5077
5078 1998-10-27 Tom Tromey <tromey@cygnus.com>
5079
5080 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
5081
5082 * prims.cc (lookupArray): Added explanatory comment.
5083 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
5084 class. Mark the class of each object.
5085 (_Jv_MarkArray): Mark the object's class.
5086
5087 * configure: Rebuilt.
5088 * configure.in: Create java-gc.h.
5089 * include/boehm-gc.h: New file.
5090 * include/no-gc.h: New file.
5091 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
5092 defined.
5093 * java/lang/Object.h: Include java-gc.h.
5094 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
5095 friends, if defined.
5096 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
5097 signature.
5098 (_Jv_MarkArray): Renamed from mark_array; changed signature.
5099
5100 1998-10-26 Tom Tromey <tromey@cygnus.com>
5101
5102 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
5103 paragraph separators, not numbers.
5104
5105 * java/io/Writer.java (write): Removed write(char) to avoid
5106 ambiguity.
5107 * java/util/Properties.java: Rewrote from scratch.
5108 * include/javaprims.h (java::io): Added PrintWriter,
5109 BufferedWriter, PushbackReader.
5110
5111 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
5112
5113 * java/lang/System.java: exit() is a static method.
5114
5115 1998-10-26 Tom Tromey <tromey@cygnus.com>
5116
5117 * java/lang/natString.cc (_Jv_NewStringUTF): Use
5118 _Jv_strLengthUtf8.
5119 (_Jv_NewStringUtf8Const): Likewise.
5120 * include/jvm.h (_Jv_strLengthUtf8): Declare.
5121 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
5122
5123 * java/lang/Object.h (Object): Add mark_array as friend function.
5124 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
5125 _Jv_AllocBytes, to ensure that header is marked.
5126 * boehm.cc (mark_obj): Push sync_info field for all objects, not
5127 just Objects.
5128 (mark_array): Push sync_info field for array.
5129
5130 1998-10-24 Tom Tromey <tromey@cygnus.com>
5131
5132 * java/lang/String.java (String): Updated for StringBuffer
5133 change.
5134 * java/util/BitSet.java: Renamed field (data->bits) to conform to
5135 serialization spec.
5136 * java/lang/StringBuffer.java: Renamed fields to conform to
5137 serialization spec: buffer->value, next->count, copy->shared.
5138
5139 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
5140
5141 * java/util/TimeZone.java: New class.
5142 * java/util/SimpleTimeZone.java: New class.
5143 * java/util/Locale.java: New file.
5144 * java/util/Calendar.java: Make almost complete.
5145 * java/util/GregorianCalendar.java
5146 * java/util/natGregorianCalendar.cc: New file.
5147 * java/util/Date.java: Re-written from scratch.
5148 * java/util/natDate.cc (setTime): Removed - no longer native.
5149 * include/javaprims.h (java::util): Add new classes.
5150 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5151 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5152
5153 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5154
5155 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5156 returning it as a jint.
5157
5158 1998-10-23 Tom Tromey <tromey@cygnus.com>
5159
5160 * prims.cc (arg_vec, main_group, main_thread): New globals.
5161 (JvRunMain): Use them.
5162
5163 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5164
5165 * java/io/DataInputStream.java: Rewritten.
5166
5167 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5168 tertiary bytes with 0x80 per spec.
5169
5170 1998-10-23 Tom Tromey <tromey@cygnus.com>
5171
5172 * java/lang/String.java (init): Changed name of `copy' argument.
5173 * java/lang/natString.cc (init): Inverted sense of `copy'
5174 argument.
5175
5176 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5177 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5178 * boehm.cc (ObjectClass): New define.
5179 (ClassClass): Likewise.
5180 (mark_obj): Special-case Object and Class.
5181
5182 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5183
5184 * java/util/BitSet.java: Rewrote from scratch.
5185
5186 * prims.cc (lookupArray): Removed useless cast.
5187
5188 * java/lang/natObject.cc: Use `#pragma implementation'.
5189
5190 * java/lang/String.java (init): Added `copy' argument.
5191 (String): Look in StringBuffer to find char array.
5192 * java/lang/natString.cc (init): Added `copy' argument.
5193 * java/lang/StringBuffer.java: Rewrote from scratch.
5194
5195 * java/lang/Compiler.java: Rewrote from scratch.
5196 * java/lang/Throwable.java: Don't use NativeLang.
5197 * include/javaprims.h (java::lang): Don't mention NativeLang.
5198 * java/lang/Process.java: Rewrote from scratch.
5199 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5200 out.
5201 (currentClassLoader): Likewise.
5202 (currentLoadedClass): Likewise.
5203 * java/lang/natClass.cc (getClassLoader): Commented out.
5204 * java/lang/Class.java (getClassLoader): Commented out.
5205 * java/lang/Compiler.java: Removed.
5206 * java/lang/NativeLang.java: Removed.
5207
5208 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5209 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5210 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5211 (_Jv_hashUtf8String): Now static.
5212 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5213 name of return type.
5214
5215 * java/lang/Class.h (Class): Declare checkMemberAccess.
5216 * Makefile.in: Rebuilt.
5217 * Makefile.am (nat_headers): Added Member.h.
5218 * java/lang/natClass.cc: Include Member.h.
5219 (getDeclaredClasses): Call checkMemberAccess.
5220 * java/lang/Class.java (checkMemberAccess): Call
5221 SecurityManager.checkMemberAccess.
5222
5223 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5224
5225 * java/lang/SecurityManager.java: Rewritten.
5226
5227 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5228
5229 * java/applet/Applet.java, java/applet/AppletContext.java,
5230 java/applet/AppletStub.java, java/applet/AudioClip.java,
5231 java/awt/AWTError.java, java/awt/AWTException.java,
5232 java/awt/BorderLayout.java, java/awt/Button.java,
5233 java/awt/Canvas.java, java/awt/CardLayout.java,
5234 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5235 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5236 java/awt/Color.java, java/awt/Component.java,
5237 java/awt/Container.java, java/awt/Dialog.java,
5238 java/awt/Dimension.java, java/awt/Event.java,
5239 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5240 java/awt/Font.java, java/awt/FontMetrics.java,
5241 java/awt/Frame.java, java/awt/Graphics.java,
5242 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5243 java/awt/GridLayout.java, java/awt/Image.java,
5244 java/awt/Insets.java, java/awt/Label.java,
5245 java/awt/LayoutManager.java, java/awt/List.java,
5246 java/awt/MediaTracker.java, java/awt/Menu.java,
5247 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5248 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5249 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5250 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5251 java/awt/TextArea.java, java/awt/TextComponent.java,
5252 java/awt/TextField.java, java/awt/Toolkit.java,
5253 java/awt/Window.java, java/awt/image/ColorModel.java,
5254 java/awt/image/CropImageFilter.java,
5255 java/awt/image/DirectColorModel.java,
5256 java/awt/image/FilteredImageSource.java,
5257 java/awt/image/ImageConsumer.java,
5258 java/awt/image/ImageFilter.java,
5259 java/awt/image/ImageObserver.java,
5260 java/awt/image/ImageProducer.java,
5261 java/awt/image/IndexColorModel.java,
5262 java/awt/image/MemoryImageSource.java,
5263 java/awt/image/PixelGrabber.java,
5264 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5265 java/awt/peer/CanvasPeer.java,
5266 java/awt/peer/CheckboxMenuItemPeer.java,
5267 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5268 java/awt/peer/ComponentPeer.java,
5269 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5270 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5271 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5272 java/awt/peer/MenuBarPeer.java,
5273 java/awt/peer/MenuComponentPeer.java,
5274 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5275 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5276 java/awt/peer/TextAreaPeer.java,
5277 java/awt/peer/TextComponentPeer.java,
5278 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5279 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5280 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5281 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5282 java/net/MalformedURLException.java, java/net/NativeNet.java,
5283 java/net/ProtocolException.java, java/net/ServerSocket.java,
5284 java/net/Socket.java, java/net/SocketException.java,
5285 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5286 java/net/URL.java, java/net/URLConnection.java,
5287 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5288 java/net/URLStreamHandlerFactory.java,
5289 java/net/UnknownHostException.java,
5290 java/net/UnknownServiceException.java: Removed.
5291
5292 1998-10-22 Tom Tromey <tromey@cygnus.com>
5293
5294 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5295 finalizer is not Object.finalize.
5296 (internalAddClass): Don't set `final' member of class.
5297 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5298 other places that know about finalize() location.
5299 * java/lang/Class.h (Class): Removed `final' field.
5300
5301 * aclocal.m4, configure: Rebuilt.
5302 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5303 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5304 set.
5305 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5306 * Makefile.in: Rebuilt.
5307 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5308
5309 1998-10-21 Tom Tromey <tromey@cygnus.com>
5310
5311 * java/lang/Object.java (finalize): Move to be first method in
5312 class.
5313
5314 * configure: Rebuilt.
5315 * configure.in (GCINCS): Include contents of boehm-cflags file.
5316
5317 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5318
5319 * java/lang/ArrayIndexOutOfBoundsException.java
5320 (ArrayIndexOutOfBoundsException): Fixed string literal.
5321 * java/lang/StringIndexOutOfBoundsException.java
5322 (StringIndexOutOfBoundsException): Fixed string literal.
5323
5324 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5325
5326 * natFileDescriptorEcos.cc added.
5327 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5328
5329 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5330
5331 * acconfig.h: test for __int32_t and __uint32_t added.
5332 * include/config.h.in: test for __int32_t and __uint32_t added.
5333 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5334 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5335 * configure.in: test for __int32_t and __uint32_t added.
5336 * configure: test for __int32_t and __uint32_t added.
5337
5338 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5339
5340 * configure.in: Test for --enable ecos and link
5341 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5342 natFileDescriptorPosix.cc
5343
5344 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5345
5346 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5347
5348 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5349 in isn't negative.
5350
5351 * java/io/CharArrayReader.java (close): Synchronize on lock
5352 object per Reader contract.
5353 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5354 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5355 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5356 Ensure that arg passed in isn't negative.
5357
5358 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5359 constructing the superclass.
5360
5361 * java/io/PushbackReader.java (close): Synchronize on lock
5362 object per Reader contract.
5363 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5364 (ready): Synchronize on lock obj. Throw IOException if reader
5365 wasn't closed.
5366 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5367 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5368 Ensure that arg passed in isn't negative.
5369 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5370
5371 * java/io/StringReader.java: Created.
5372
5373 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5374
5375 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5376 to match JCL.
5377 (read): Removed synchronized modifier to match JCL.
5378 (reset): Removed synchronized modifier to match JCL.
5379 (skip): Removed synchronized modifier to match JCL.
5380
5381 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5382
5383 * java/io/PushbackReader.java (PushbackReader): Made
5384 constructors public.
5385
5386 1998-10-17 Tom Tromey <tromey@cygnus.com>
5387
5388 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5389 constructors public.
5390
5391 1998-10-16 Anthony Green <green@cygnus.com>
5392
5393 * aclocal.m4, configure: Rebuilt.
5394 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5395 configure.host.
5396 * configure.host: Rewrote.
5397 * Makefile.in: Rebuilt.
5398 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5399 (AM_CFLAGS): New macro.
5400 ($(c_files)): Use COMPILE macro.
5401 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5402 automake problem(s).
5403
5404 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5405
5406 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5407
5408 * java/io/CharArrayReader.java: Created.
5409
5410 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5411
5412 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5413 size check to allow 0 per JCL.
5414
5415 * java/io/PushbackReader.java: Created.
5416
5417 1998-10-16 Tom Tromey <tromey@cygnus.com>
5418
5419 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5420 <sys/time.h> includes.
5421 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5422 * include/no-threads.h: Conditionalize <unistd.h> include on
5423 HAVE_UNISTD_H.
5424
5425 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5426
5427 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5428 is defined.
5429
5430 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5431
5432 * java/io/FilterReader.java: Created.
5433
5434 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5435
5436 * java/io/PushbackInputStream.java: Rewritten.
5437
5438 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5439 that size passed to constructor is legal.
5440 (read): Check that args passed in are legal.
5441 (skip): Rewritten to get rid of the temporary buffer.
5442 (refill): Added marklimit check to grow the buffer.
5443
5444 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5445 check.
5446 (bytesAvail): Removed.
5447 (read): Changed bytesAvail to Math.min.
5448 (skip): Changed bytesAvail to Math.min.
5449
5450 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5451 from the throws clause.
5452 (skip): Rewritten to use a temporary buffer.
5453
5454 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5455
5456 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5457 some target OSes
5458
5459 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5460
5461 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5462 to write the double one word at a time.
5463
5464 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5465
5466 * java/io/BufferedInputStream.java: Rewritten.
5467
5468 1998-10-12 Tom Tromey <tromey@cygnus.com>
5469
5470 * jni.cc: Include config.h and stddef.h.
5471
5472 * java/lang/Class.h (_dispatchTable): Removed again.
5473 Removed all ACC_* defines again.
5474
5475 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5476
5477 * Makefile.am (nat_files): Add netField.o.
5478 (libjava_a_SOURCES): Add jni.cc.
5479 (java/lang/reflect/Field.h): New rule.
5480 * Makefile.in: Re-generated.
5481 * include/javaprims.h: Add some extra class and typedefs.
5482 * include/jni.h: New file.
5483 * jni.cc: New file.
5484
5485 * include/java-field.h: New file.
5486 * include/jvm.h: #include <java-field.h>.
5487 * boehm.cc: #include <java-field.h>.
5488 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5489 * java/lang/reflect/Member.java: New class.
5490 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5491 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5492
5493 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5494
5495 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5496 testsuite/Makefile.in: Rebuilt.
5497 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5498 * configure.host: Created.
5499
5500 1998-10-10 Tom Tromey <tromey@cygnus.com>
5501
5502 * java/lang/natObject.cc (sync_init): Always allocate a new
5503 sync_info.
5504
5505 1998-10-09 Tom Tromey <tromey@cygnus.com>
5506
5507 * java/io/ByteArrayInputStream.java (mark): Renamed from
5508 `mark_FIXME'.
5509
5510 * java/io/FileOutputStream.java (finalize): Removed.
5511 * java/io/FileDescriptor.java (finalize): New method.
5512
5513 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5514
5515 * ByteArrayInputStream.java: Corrected status comment.
5516
5517 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5518
5519 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5520
5521 1998-10-08 Tom Tromey <tromey@cygnus.com>
5522
5523 * prims.cc (lookupArray): Use static array to initialize list of
5524 interfaces.
5525
5526 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5527
5528 * prims.cc (lookupArray): Initialize the msize for new
5529 array classes.
5530
5531 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5532
5533 * configure: Rebuilt.
5534 * configure.in: Check for fsync and sleep.
5535 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5536
5537 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5538 HAVE_SLEEP. Include config.h.
5539
5540 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5541 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5542 with HAVE_FSYNC.
5543
5544 1998-10-08 Tom Tromey <tromey@cygnus.com>
5545
5546 * java/io/natFile.cc: Don't include SecurityManager.h.
5547 (performList): Renamed.
5548 (performMkdir): Likewise.
5549 (performRenameTo): Likewise.
5550 (performDelete): Likewise.
5551 Include <stdlib.h>.
5552 * java/io/File.java (performDelete): Renamed from natDelete.
5553 (list): Now written in Java.
5554 (performList): New method.
5555 (performMkdir): New method.
5556 (mkdir): Now written in Java.
5557 (performRenameTo): New method.
5558 (renameTo): Now written in Java.
5559
5560 1998-10-06 Tom Tromey <tromey@cygnus.com>
5561
5562 * Makefile.in: Rebuilt.
5563 * Makefile.am (ETAGS_ARGS): New macro.
5564 (TAGS_DEPENDENCIES): Likewise.
5565
5566 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5567
5568 * Makefile.in: Rebuilt.
5569 * Makefile.am: Use -classpath option with javac.
5570
5571 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5572
5573 * java/io/FileOutputStream.java (finalize): Call
5574 super.finalize().
5575
5576 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5577
5578 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5579 with newlib's libm.
5580 * java/lang/mprec.c: Ditto.
5581
5582 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5583 cross-compiling.
5584
5585 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5586
5587 * java/io/InputStream.java (skip): Make local var i a long.
5588
5589 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5590
5591 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5592 * prims.cc (lookupArray): Use memcpy, not memmove.
5593 * include/config.h.in: Rebuilt.
5594 * acconfig.h (HAVE_MEMCPY): Added.
5595 * configure: Rebuilt.
5596 * configure.in: Check for memcpy again.
5597
5598 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5599 String.compareTo, not ==.
5600
5601 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5602 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5603 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5604 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5605 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5606 into new array's dtable.
5607 (_Jv_AllocObject): Use _Jv_DispatchTable.
5608 (_Jv_NewPrimArray): Likewise.
5609 (_Jv_NewObjectArray): Likewise.
5610
5611 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5612
5613 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5614 offending index value.
5615 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5616 appropriate.
5617 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5618 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5619
5620 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5621
5622 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5623
5624 * java/io/OutputStream.java (write): Use off and len parameters to
5625 output partial byte array.
5626
5627 * java/io/BufferedReader.java, java/io/FileReader.java,
5628 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5629 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5630 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5631 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5632
5633 * include/javaprims.h (java::lang): Added
5634 ExceptionInInitializerError, IllegalStateException,
5635 NoSuchFieldException, and UnsupportedOperationException.
5636
5637 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5638
5639 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5640 Class*.
5641
5642 * include/java-array.h (__JArray): Added clone method.
5643 * prims.cc (CloneableClass): New define.
5644 (lookupArray): Initialize array class to indicate that it
5645 implements Cloneable.
5646
5647 * java/lang/Class.h: Removed all ACC_* defines.
5648 * prims.cc: Include Modifier.h.
5649 (_Jv_LookupInterfaceMethod): Use methods in
5650 java.lang.reflect.Modifier, not ACC_ defines.
5651
5652 * java/lang/Class.h (Class): Declare getClasses,
5653 getDeclaredClasses, getDeclaringClass, getModifiers,
5654 * java/lang/Class.java: Rewrote from scratch.
5655
5656 * include/javaprims.h (java::lang): Added reflect and
5657 reflect::Modifier.
5658 * Makefile.in: Rebuilt.
5659 * Makefile.am (nat_headers): Added Modifier.h.
5660
5661 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5662 primitive.
5663
5664 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5665
5666 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5667 instead of test and abort.
5668
5669 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5670 remove compiler warning.
5671
5672 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5673
5674 * java/lang/natDouble.cc: zero terminate string.
5675 * strtod.c: Set errno if no digits are found in fraction.
5676
5677 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5678
5679 * java/lang/reflect/Modifier.java: New file.
5680
5681 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5682 * java/lang/VerifyError.java: Rewrote from scratch.
5683 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5684 * java/lang/UnknownError.java: Rewrote from scratch.
5685 * java/lang/StackOverflowError.java: Rewrote from scratch.
5686 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5687 * java/lang/InternalError.java: Rewrote from scratch.
5688 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5689 * java/lang/ExceptionInInitializerError.java: New file.
5690 * java/lang/Error.java: Rewrote from scratch.
5691 * java/lang/ClassFormatError.java: Rewrote from scratch.
5692 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5693 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5694 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5695 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5696 * java/lang/LinkageError.java: Rewrote from scratch.
5697 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5698 scratch.
5699 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5700
5701 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5702 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5703 friend.
5704 * include/cni.h (JvAllocObject): Moved from prims.cc.
5705 Include Class.h.
5706 * prims.cc (JvAllocObject): Moved to cni.h.
5707 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5708 (finalize_name): Removed.
5709
5710 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5711
5712 * java/lang/Class.h (Class): Added size() method.
5713 * prims.cc (_Jv_MonitorEnter): Removed.
5714 (_Jv_MonitorExit): Removed.
5715 * java/lang/Object.h (JvSyncInfo): Removed.
5716 * Makefile.in: Rebuilt.
5717 * Makefile.am (nat_headers): Added Cloneable.h,
5718 CloneNotSupportedException.h.
5719 * java/lang/Object.h: Rewrote.
5720 * java/lang/natObject.cc: Rewrote from scratch.
5721 * java/lang/Object.java: Rewrote from scratch.
5722
5723 * java/io/natFile.cc: Conditionally include <dirent.h>.
5724 (list): If no <dirent.h>, always return NULL.
5725 * configure: Rebuilt.
5726 * configure.in: Check for dirent.h.
5727
5728 * prims.cc (lookupArray): Don't use sprintf.
5729
5730 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5731 initial index.
5732 (get): Likewise.
5733 (put): Likewise.
5734 (rehash): Likewise.
5735 (remove): Likewise.
5736
5737 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5738 name conflict with method.
5739
5740 * include/javaprims.h (java::util): Added HashtableEntry.
5741
5742 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5743
5744 * java/util/Hashtable.java: Rewritten.
5745
5746 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5747
5748 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5749 return value.
5750 (write): Likewise.
5751
5752 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5753 not `curr_nt'.
5754
5755 * posix-threads.cc (_Jv_CondWait): Now returns int.
5756 * include/javaprims.h (java::lang): Added
5757 IllegalMonitorStateException.
5758 * Makefile.in: Rebuilt.
5759 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5760 * include/no-threads.h (_Jv_CondDestroy): Removed.
5761 (_Jv_MutexDestroy): Removed.
5762 (_Jv_CondWait): Now returns int.
5763 (_Jv_CondNotify): Likewise. Added mutex argument.
5764 (_Jv_CondNotifyAll): Likewise.
5765 (_Jv_MutexLock): Always succeed.
5766 (_Jv_MutexUnlock): Likewise.
5767 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5768 (_Jv_HaveMutexDestroy): Define.
5769 (_Jv_CondNotify): Now returns int. Added mutex argument.
5770 (_Jv_CondNotifyAll): Likewise.
5771 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5772 (_Jv_MutexDestroy): Removed.
5773 (_Jv_CondWait): Now returns int.
5774 (_Jv_CondNotify): Likewise. Added mutex argument.
5775 (_Jv_CondNotifyAll): Likewise.
5776 * java/lang/natObject.cc (finalize_sync_info): New function.
5777 (init_mutex): Initialize `init' and register finalizer if
5778 required.
5779 (CHECK): New macro.
5780 (init_mutex): Use it.
5781 (notify): Use it.
5782 (notifyAll): Use it.
5783 (wait): Use it.
5784 (notify): Throw IllegalMonitorStateException on failure.
5785 (notifyAll): Likewise.
5786 (wait): Likewise. Also, throw InterruptedException if
5787 appropriate.
5788 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5789 InterruptedException.h, IllegalArgumentException.h.
5790 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5791
5792 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5793 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5794 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5795 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5796 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5797 * quick-threads.cc: Renamed all `JvPriv' functions.
5798 * prims.cc: Renamed all `JvPriv' functions.
5799 * posix-threads.cc: Renamed all `JvPriv' functions.
5800 * nogc.cc: Renamed all `JvPriv' functions.
5801 * no-threads.cc: Renamed all `JvPriv' functions.
5802 * boehm.cc: Renamed all `JvPriv' functions.
5803 * include/quick-threads.h: Renamed all `JvPriv' functions.
5804 * include/posix-threads.h: Renamed all `JvPriv' functions.
5805 * include/no-threads.h: Renamed all `JvPriv' functions.
5806 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5807
5808 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5809 implementation.
5810 (JvPrivCondNotify): Do nothing.
5811 (JvPrivCondNotifyAll): Do nothing.
5812
5813 * prims.cc (processClass): Handle case where state is
5814 DOING_CONSTINIT.
5815
5816 * java/lang/natFirstThread.cc: Include <stdlib.h>
5817
5818 * configure: Rebuilt.
5819 * configure.in: Fixed sense of --enable-libjava-debug.
5820
5821 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5822 it can be used afterward by the assertion.
5823
5824 * configure: Rebuilt.
5825 * configure.in: When cross-compiling, assume alloca.
5826
5827 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5828 __builtin_alloca (autoconf docs are wrong here).
5829
5830 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5831 closing.
5832 (available): Use `FD_ZERO' (typo fix).
5833
5834 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5835
5836 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5837 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5838 struct _Jv_Bigint.
5839 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5840 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5841 struct _Jv_reent.
5842
5843 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5844
5845 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5846
5847 * java/lang/natDouble.cc: Declare alloca safely.
5848
5849 * configure, include/config.h.in: Rebuilt.
5850 * configure.in: Add alloca check.
5851
5852 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5853
5854 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5855 condition while calling notify.
5856 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5857 (interrupt): Hold mutex for interrupt condition while calling
5858 notify.
5859
5860 * java/lang/natString.cc (init): Allocate and try to read `count'
5861 characters, not `count - offset' characters.
5862
5863 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5864 Correctly compute `count'.
5865
5866 * java/lang/Boolean.java (getBoolean): Return false if property
5867 not found.
5868
5869 * java/lang/System.java (setProperties): Set prop_init.
5870
5871 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5872
5873 * java/io/PrintStream.java (println): Use line.separator, not
5874 file.separator.
5875 * java/lang/System.java (out, err): Make both autoflush streams.
5876 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5877
5878 * include/config.h.in: Rebuilt.
5879 * acconfig.h (HAVE_MEMCPY): Removed.
5880 * configure: Rebuilt.
5881 * configure.in: Never define HAVE_MEMCPY.
5882
5883 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5884 Class.h.
5885 (_Jv_AllocString): Use JvAllocObject again.
5886 * java/lang/Class.h (thread): New field.
5887 (_Jv_AllocString): No longer a friend.
5888 * prims.cc (processClass): Removed dead code. Changed to more
5889 closely follow the Java Language Specification.
5890 (processClass): Return early if already at the right state.
5891
5892 * prims.cc (JvNewStringUTF): Removed.
5893 * include/cni.h (JvNewStringUTF): New function.
5894 (_Jv_NewStringUTF): Declare as `extern "C"'.
5895 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5896
5897 * java/lang/natDouble.cc: Added copyright info and header
5898 comment. Include <stdlib.h>.
5899 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5900 bytes as are chars in string.
5901
5902 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5903
5904 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5905 clash with method.
5906 (hsize): Likewise.
5907
5908 * java/lang/System.java (init_properties): Now native.
5909 * java/lang/natSystem.cc (init_properties): New method.
5910 Include java/util/Properties.h.
5911
5912 * Makefile.in: Rebuilt.
5913 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5914 OutputStreamWriter.h, ByteArrayInputStream.h,
5915 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5916 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5917 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5918 Properties.h, Hashtable.h, Dictionary.h.
5919 (CFLAGS): Removed.
5920
5921 * include/javaprims.h (java::io): Added Reader, Writer,
5922 InputStreamReader, OutputStreamWriter,
5923 UnsupportedEncodingException, ByteArrayInputStream,
5924 ByteArrayOutputStream, EOFException, SyncFailedException,
5925 PushbackInputStream.
5926 (java::lang): Added Cloneable.
5927 (java::util): Added NoSuchElementException, VectorEnumeration,
5928 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5929
5930 * java/io/PipedReader.java: New file.
5931
5932 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5933
5934 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5935 up A-Z.
5936
5937 * java/io/io-defs.h: Removed.
5938
5939 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5940 (FileInputStream): Use new constructor. Can throw IOException.
5941
5942 * java/lang/System.java (getProperty): Don't throw
5943 NullPointerException.
5944
5945 * java/io/RandomAccessFile.java: Rewrote from scratch.
5946
5947 * java/io/natFileDescriptor.cc: Include EOFException.h.
5948 (seek): New method.
5949 (length): New method.
5950 (getFilePointer): New method.
5951 (read): New method.
5952 (available): New method.
5953 * java/io/FileDescriptor.java (SET, CUR): New constants.
5954 (seek, length, getFilePointer, read, available): New decls.
5955
5956 * java/io/PipedWriter.java: New file.
5957 * java/io/StringWriter.java: New file.
5958 * java/io/CharArrayWriter.java: New file.
5959 * java/io/CharConversionException.java: New file.
5960 * java/io/BufferedWriter.java: New file.
5961 * java/io/FilterWriter.java: New file.
5962 * java/io/FileWriter.java: New file.
5963
5964 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5965 OutputStreamWriter.h, NullPointerException.h,
5966 ByteArrayInputStream.h, InputStreamReader.h.
5967 (getBytes): New method.
5968 (init): Throw NullPointerException.
5969 (init): New function.
5970 * java/lang/String.java (getBytes): Added missing decl.
5971 (getBytes): New method.
5972 (String): Added byte[]-based constructors.
5973 (copyValueOf): Wrote.
5974 (init): Declare variant which takes byte array and encoding.
5975 Import java.io.UnsupportedEncodingException.
5976
5977 * java/io/File.java: Rewrote from scratch.
5978 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5979 * java/io/FileDescriptor.java: Rewrote from scratch.
5980 * java/io/FilenameFilter.java: Rewrote from scratch.
5981
5982 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5983
5984 * java/io/SyncFailedException.java: New file.
5985 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5986 * java/io/InterruptedIOException.java: Rewrote from scratch.
5987 * java/io/FileNotFoundException.java: Rewrote from scratch.
5988 * java/io/EOFException.java: Rewrote from scratch.
5989 * java/io/IOException.java: Rewrote from scratch.
5990 * java/io/PrintStream.java: Rewrote from scratch.
5991 * java/io/DataOutputStream.java: Rewrote from scratch.
5992 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5993 * java/io/FilterOutputStream.java: Rewrote from scratch.
5994 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5995 * java/io/PipedOutputStream.java: Rewrote from scratch.
5996 * java/io/FileOutputStream.java: Rewrote from scratch.
5997 * java/io/OutputStream.java: Rewrote from scratch.
5998 * java/io/DataOutput.java: Rewrote from scratch.
5999
6000 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
6001
6002 * prims.cc (_Jv_CheckCast): Add missing ! operator.
6003
6004 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
6005
6006 * configure.in: Add --enable-libjava-debug
6007
6008 * Makefile.am (nat_headers): Add java/lang/Float.h and
6009 java/lang/Double.h
6010
6011 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
6012
6013 * Makefile.in, configure, include/config.h.in: Rebuilt.
6014
6015 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6016
6017 * java/lang/Float.java: Rewritten
6018 * java/lang/Double.java: Rewritten
6019 * java/lang/natFloat.cc: toString() added.
6020 * java/lang/natDouble.cc: toString() added.
6021 * java/lang/natDouble.cc: doubleValueOf() added.
6022 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
6023 java/lang/strtod.c: added.
6024 * ieeefp.h: __sparc added.
6025 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
6026
6027 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
6028
6029 * include/javaprims.h (java::lang): Added
6030 CloneNotSupportedException.
6031
6032 * java/lang/Object.java (clone): No longer native. Implemented.
6033 * java/lang/natObject.cc (clone): Removed.
6034
6035 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
6036
6037 * prims.cc: Don't make definitions `extern "C"'.
6038 (_Jv_RegisterClass): Renamed from registerClass.
6039 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
6040 (_Jv_NewArray): Likewise.
6041 (_Jv_NewMultiArray): Likewise.
6042 (_Jv_CheckCast): Likewise.
6043 (_Jv_LookupInterfaceMethod): Likewise.
6044 (_Jv_CheckArrayStore): Likewise.
6045 (_Jv_RegisterClass): Likewise.
6046
6047 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
6048 * configure: Rebuilt.
6049 * configure.in: Don't check for fmod; it is provided by the fdlibm
6050 code.
6051 * prims.cc (fmod): Removed.
6052
6053 * java/lang/natString.cc (charAt): Use _Jv_uint.
6054 * java/lang/Class.h (class JvField): Use _Jv_ushort.
6055 * prims.cc (HASH_CHARS): Use _Jv_ushort.
6056 (equalUtf8Consts): Likewise.
6057 (internalAddClass): Use _Jv_uint.
6058 (processClass): Likewise.
6059 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
6060 (_Jv_uint): Renamed from uint32.
6061 (struct _Jv_Utf8Const): Changed members to use new type names.
6062
6063 * configure: Rebuilt.
6064 * configure.in: Don't check for memcpy. Require memmove and a way
6065 to get the time.
6066 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
6067 #error.
6068 (currentTimeMillis): Don't use #error.
6069
6070 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
6071
6072 * java/lang/Math.java: static member random renamed to random_ to
6073 avoid conflict with member function of the same name.
6074 * include/javaprims.h: java.util.Random added.
6075
6076 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
6077
6078 * include/java-chartables.h: Regenerated.
6079 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
6080 printed.
6081
6082 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
6083
6084 * java/lang/Math.java: Rewritten.
6085 * java/lang/natMath.cc: New file.
6086 * Files added from fdlibm:
6087 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
6088 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
6089 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
6090 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
6091 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
6092 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
6093 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
6094 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
6095 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
6096 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
6097 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
6098 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
6099 java/lang/k_cos.c, java/lang/sf_ceil.c,
6100 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
6101 java/lang/ieeefp.h, java/lang/fdlibm.h
6102 * Makefile.am: rules added for compiling C files from fdlibm.
6103
6104 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
6105
6106 * chartables.pl: Minor documentation fixes.
6107
6108 * configure: Rebuilt.
6109 * configure.in: Fixed --help output for --enable-fast-character.
6110
6111 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
6112
6113 * configure: Rebuilt.
6114 * configure.in: Recognize --enable-fast-character.
6115 * acconfig.h (COMPACT_CHARACTER): New define.
6116 * include/config.h.in: Rebuilt.
6117 * include/java-chartables.h: New file.
6118 * Makefile.in: Rebuilt.
6119 * Makefile.am (nat_files): Added natCharacter.o.
6120 * java/lang/natCharacter.cc: New file.
6121 * chartables.pl (set_attribute): New function.
6122 (@attributes, @second_attributes): New globals.
6123 ($ROMAN_START, $ROMAN_END): Likewise.
6124 (process_char): Call set_attribute when required.
6125 (print_char): Just print hex value.
6126 (print_block): Generate C++ syntax.
6127 (print_numerics): Likewise.
6128 (print_single_map): Likewise.
6129 (print_all_block): Likewise.
6130 (print_case_table): Likewise.
6131 (print_fast_tables): New function.
6132 Generate C++ code suitable for a header file.
6133 * java/lang/Character.java (table_search): Removed.
6134 (digit_value): Now native.
6135 (getNumericValue): Likewise.
6136 (getType): Likewise.
6137 Removed all automatically-generated tables.
6138 (Tamil_Digit_One): Removed.
6139 (isSpaceChar): Now native.
6140 (isTitleCase): Likewise.
6141 (isLowerCase): Likewise.
6142 (isUpperCase): Likewise.
6143 (toLowerCase): Likewise.
6144 (toTitleCase): Likewise.
6145 (toUpperCase): Likewise.
6146 (isDefined): Fixed sense of test.
6147
6148 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6149
6150 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6151 FIXME comment.
6152 (regionMatches): Likewise.
6153
6154 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6155
6156 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6157
6158 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6159 a friend.
6160 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6161 _Jv_AllocObject.
6162
6163 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6164 not a char.
6165
6166 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6167
6168 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6169
6170 * prims.cc (instanceof_class): Removed.
6171 (instanceof_array): Likewise.
6172 (instanceof): Likewise.
6173 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6174 (_Jv_CheckCast): Likewise.
6175 * java/lang/natClass.cc (isAssignableFrom): New method.
6176 * java/lang/Class.java (isAssignableFrom): Now native.
6177
6178 * include/cni.h (JvThrow): Use `extern inline'.
6179 (JvAllocObject): Likewise.
6180 (JvInitClass): Likewise.
6181
6182 * java/lang/natSystem.cc (arraycopy): Only check class of source
6183 object if not null.
6184
6185 * prims.cc (_Jv_CheckArrayStore): Wrote.
6186 (_Jv_MonitorEnter): Prefer `JvThrow'.
6187 Include ArrayStoreException.h.
6188 (_Jv_CheckCast): Indentation cleanup.
6189
6190 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6191
6192 * chartables.pl: New file.
6193 * java/lang/Character.java: Rewrote from scratch.
6194
6195 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6196
6197 * java/lang/ArithmeticException.java,
6198 java/lang/ArrayIndexOutOfBoundsException.java,
6199 java/lang/ArrayStoreException.java,
6200 java/lang/ClassCastException.java,
6201 java/lang/ClassNotFoundException.java,
6202 java/lang/CloneNotSupportedException.java,
6203 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6204 java/lang/IllegalArgumentException.java,
6205 java/lang/IllegalMonitorStateException.java,
6206 java/lang/IllegalThreadStateException.java,
6207 java/lang/IndexOutOfBoundsException.java,
6208 java/lang/InstantiationException.java,
6209 java/lang/InterruptedException.java,
6210 java/lang/NegativeArraySizeException.java,
6211 java/lang/NoSuchMethodException.java,
6212 java/lang/NullPointerException.java,
6213 java/lang/NumberFormatException.java,
6214 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6215 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6216
6217 * java/lang/IllegalStateException.java,
6218 java/lang/NoSuchFieldException.java,
6219 java/lang/UnsupportedOperationException.java: Created.
6220
6221 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6222
6223 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6224 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6225
6226 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6227
6228 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6229
6230 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6231
6232 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6233
6234 * Makefile.in: Rebuilt.
6235
6236 * include/javaprims.h (java::lang): Added
6237 StringIndexOutOfBoundsException.
6238
6239 * java/lang/String.java: Added header comment and FIXME comment for
6240 missing constructors/methods.
6241 (endsWith): Adjusted offset into string to look at just the last chars.
6242 Commented out undocumented method.
6243
6244 * java/lang/natString.cc: Added includes for
6245 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6246 (String::init): Throw StringIndexOutOfBoundsException.
6247 (String::charAt): Throw StringIndexOutOfBoundsException.
6248 (String::substring): Throw StringIndexOutOfBoundsException.
6249 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6250 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6251 (String::compareTo): Return difference/offset between chars/strings.
6252
6253 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6254
6255 * java/lang/Boolean.java (TYPE): Added comment.
6256
6257 * java/lang/Byte.java (decode): Added - commented out until dependent
6258 code for Integer is written.
6259 (compareTo): JDK 1.2 methods written.
6260 (hashCode): Added comment to note that values have been verified.
6261
6262 * java/lang/Short.java (decode): Added - commented out until dependent
6263 code for Integer is written.
6264 (compareTo): JDK 1.2 methods written.
6265 (hashCode): Added comment to note that values have been verified.
6266
6267 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6268
6269 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6270
6271 * include/javaprims.h (java::lang): Added VirtualMachineError,
6272 OutOfMemoryError.
6273 * Makefile.in: Rebuilt.
6274 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6275 VirtualMachineError.h.
6276 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6277 (lookupArray): Likewise.
6278 (makeUtf8Const): Likewise.
6279 (_Jv_AllocObject): Likewise.
6280 (_Jv_NewObjectArray): Likewise.
6281 Include OutOfMemoryError.h.
6282
6283 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6284 to use JvNewStringLatin1.
6285
6286 * java/io/io-defs.h: Include java/lang/IOException.h.
6287 * Makefile.in: Rebuilt.
6288 * Makefile.am (nat_headers): Added
6289 ArrayIndexOutOfBoundsException.h,
6290 ClassFormatError.h,ClassNotFoundException.h,
6291 ClassCircularityError.h, ClassCastException.h,
6292 IncompatibleClassChangeError.h, AbstractMethodError.h,
6293 IllegalAccessError.h, LinkageError.h, Error.h,
6294 NegativeArraySizeException.h, IOException.h.
6295 * include/cni.h (SignalError): Removed declaration.
6296 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6297 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6298 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6299 (newInstance): Likewise.
6300 (forName): Likewise.
6301 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6302 sorry.
6303 (read): Use JvThrow, not SignalError.
6304 (read): Likewise.
6305 (write): Likewise.
6306 (skip): Likewise.
6307 (close): Likewise.
6308 (open_read): Likewise.
6309 (open_write): Likewise.
6310 (ftell): Likewise.
6311 (fseek): Likewise.
6312 (newstr): New function.
6313 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6314 sorry.
6315 (lastModifiedUnchecked): Likewise.
6316 (lengthUnchecked): Likewise.
6317 * include/javaprims.h (sorry): Removed declaration.
6318 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6319 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6320 ClassCastException, IncompatibleClassChangeError,
6321 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6322 * prims.cc (instanceof_array): Use JvFail, not sorry.
6323 (sorry): Removed.
6324 Include ArrayIndexOutOfBoundsException.h,
6325 ClassFormatError.h,ClassNotFoundException.h,
6326 ClassCircularityError.h, ClassCastException.h,
6327 IncompatibleClassChangeError.h, AbstractMethodError.h,
6328 IllegalAccessError.h, NegativeArraySizeException.h.
6329 (_Jv_ThrowBadArrayIndex): Implemented.
6330 (JvNewStringUTF): Use JvFail, not sorry.
6331 (_Jv_FindClass): Likewise.
6332 (_Jv_NewArray): Likewise.
6333 (throwException): Removed.
6334 (getClass): Use JvThrow.
6335 (processClass): Likewise.
6336 (_Jv_NewObjectArray): Likewise.
6337 (_Jv_NewMultiArray): Likewise.
6338 (_Jv_CheckCast): Likewise.
6339 (_Jv_LookupInterfaceMethod): Likewise.
6340 (SignalError): Removed.
6341 (getClass): Use _Jv_NewStringUtf8Const to create String.
6342
6343 * java/lang/natSystem.cc (arraycopy): Throw
6344 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6345
6346 * Makefile.in: Rebuilt.
6347 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6348 users.
6349 * include/java-array.h: Mention gcjh, not gjavah.
6350
6351 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6352 (canReadUnchecked): Likewise.
6353 (canWriteUnchecked): Likewise.
6354 (isFileUnchecked): Likewise.
6355 * java/io/natFileDescriptor.cc: Don't include cni.h.
6356
6357 * java/lang/Thread.java (run__): Declare.
6358 * java/lang/natThread.cc (run__): New method, to avoid compiler
6359 warning.
6360 (start): Use run__, not run_.
6361
6362 * java/io/io-defs.h: Include cni.h and jvm.h.
6363
6364 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6365
6366 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6367 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6368 to natString.cc (with suitable renaming, inlines etc).
6369 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6370 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6371 * java/lang/String.h: Removed - now generated using gjavah.
6372 * java/lang/String.java: Re-written from scratch. Many native methods.
6373 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6374 * java/lang/natString.cc: Many functions re-written for "compact
6375 strings" representation, or native java.lang.String methods added.
6376 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6377 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6378 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6379 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6380 * include/cni.h: Add inline method.
6381 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6382 * include/javaprims.h: Moved some stuff frm String.h.
6383 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6384 * Makefile.am (nat_header): Added Character.h and String.h.
6385 (String.h): Add new rule.
6386
6387 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6388
6389 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6390 java-assert.h.
6391 * posix-threads.cc: Include cni.h, jvm.h.
6392 * quick-threads.cc: Include cni.h, jvm.h.
6393 * nogc.cc: Include cni.h, not javaprims.h.
6394 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6395 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6396 include java-assert.h.
6397 * java/lang/natSystem.cc: Include cni.h. Don't include
6398 java-assert.h.
6399 * java/lang/natRuntime.cc: Include cni.h. Don't include
6400 java-assert.h.
6401 * prims.cc: Rearranged #include ordering. Don't include
6402 java-array.h or java-assert.h.
6403 * boehm.cc: Include config.h, cni.h.
6404 * exception.cc: Include config.h, cni.h.
6405 * include/jvm.h: Include java-assert.h.
6406 * include/cni.h: Include java/lang/Object.h. Don't include
6407 java-threads.h or java-array.h.
6408
6409 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6410
6411 * java/lang/Boolean.java: Rewritten.
6412
6413 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6414
6415 * java/lang/natFirstThread.cc (main_func): New typedef.
6416 (run): Use main_func, not JvPrivThreadStartFunc.
6417 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6418 argument type.
6419 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6420 argument type.
6421 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6422 argument type.
6423
6424 Can't throw Java exceptions with C++ `throw':
6425 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6426 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6427 (setPriority): Likewise.
6428 (sleep): Likewise.
6429 (start): Likewise.
6430 (stop): Likewise.
6431 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6432 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6433
6434 Can't catch Java exceptions from C++:
6435 * java/lang/natThread.cc (finish_): New method.
6436 (run_): Removed.
6437 * java/lang/Thread.java (run_): Rewrote in Java.
6438 (finish_): New native method.
6439
6440 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6441
6442 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6443
6444 * include/javaprims.h (java::io): Added Serializable.
6445
6446 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6447
6448 * java/util/EmptyStackException.java,
6449 java/util/NoSuchElementException.java: Rewritten.
6450
6451 * java/util/ConcurrentModificationException.java,
6452 java/util/MissingResourceException.java,
6453 java/util/TooManyListenersException.java: Created.
6454
6455 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6456
6457 * include/cni.h (JvThrow): New function.
6458 * include/javaprims.h (_Jv_Throw): Declare.
6459
6460 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6461
6462 * java/util/Observable.java: Rewritten.
6463
6464 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6465
6466 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6467 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6468 Include NullPointerException.h.
6469
6470 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6471
6472 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6473 assignability checks. Don't bother using memcpy.
6474
6475 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6476 (started): Removed.
6477 * include/quick-threads.h (JvPrivThreadWait): New function.
6478 * include/no-threads.h (JvPrivThreadWait): New function.
6479 * include/posix-threads.h (JvPrivThreadWait): New function.
6480 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6481
6482 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6483
6484 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6485 offsets by size of type that is being copied.
6486
6487 * java/lang/natThread.cc (start): Don't pass `object' argument to
6488 JvPrivThreadStart.
6489 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6490 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6491 argument.
6492 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6493 always pass thread as object.
6494 * include/quick-threads.h, include/posix-threads.h,
6495 include/no-threads.h (JvPrivThreadStart): Removed `object'
6496 argument.
6497
6498 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6499
6500 * java/util/Dictionary.java: Rewritten.
6501
6502 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6503
6504 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6505 (JvPrivThreadDestroy): Likewise.
6506
6507 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6508
6509 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6510
6511 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6512
6513 * java/lang/natSystem.cc: Rewrote from scratch.
6514 * java/lang/System.java: Rewrote from scratch.
6515 * java/lang/Class.h (Class): Declare isAssignableFrom.
6516 * include/javaprims.h (java::lang): Added ArrayStoreException,
6517 IndexOutOfBoundsException.
6518 * Makefile.in: Rebuilt.
6519 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6520 IndexOutOfBoundsException.h.
6521 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6522 * include/jvm.h (_Jv_HashCode): New function.
6523
6524 * java/lang/natThread.cc (suspend): Call checkAccess.
6525 (resume): Likewise.
6526 * java/lang/Thread.java (setDaemon): Call checkAccess.
6527
6528 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6529
6530 * java/lang/Runtime.java: Rewrote from scratch.
6531 * java/lang/natRuntime.cc: Rewrote from scratch.
6532
6533 * nogc.cc (JvPrivGCTotalMemory): New function.
6534 (JvPrivGCFreeMemory): Likewise.
6535 (total): New global.
6536 (JvPrivAllocObj): Increment total.
6537 (JvPrivAllocArray): Likewise.
6538 (JvPrivAllocBytes): Likewise.
6539 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6540 * boehm.cc (JvPrivGCTotalMemory): New function.
6541 (sum_blocks): Likewise.
6542 (JvPrivGCFreeMemory): Likewise.
6543
6544 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6545
6546 * include/javaprims.h (java::lang): Added FirstThread.
6547 * java/lang/natFirstThread.cc: New file.
6548 * java/lang/FirstThread.java: New file.
6549 * prims.cc (main_signature): Removed.
6550 (main_name): Removed.
6551 #include FirstThread.h.
6552 * Makefile.in: Rebuilt.
6553 * Makefile.am (TFRIEND): Removed.
6554 (java/lang/Thread.h): Likewise.
6555 (FTFRIEND): New macro.
6556 (java/lang/FirstThread.h): New target.
6557 (nat_files): Added natFirstThread.o.
6558 (nat_headers): Added FirstThread.h.
6559 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6560 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6561
6562 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6563 if name is null.
6564 (Thread): Likewise.
6565
6566 * java/lang/natThread.cc (start): Synchronize the thread.
6567 (stop): Synchronize the thread.
6568
6569 * java/lang/ThreadDeath.java: Rewrote from scratch.
6570
6571 * Makefile.in: Rebuilt.
6572 * Makefile.am (TGFRIEND): New macro.
6573 (java/lang/ThreadGroup.h): New target.
6574 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6575 native headers.
6576 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6577
6578 * nogc.cc: Include config.h.
6579
6580 * java/lang/ThreadGroup.java: Rewrote from scratch.
6581
6582 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6583
6584 * java/lang/Thread.java (checkAccess): Only call in to security
6585 manager if it exists.
6586 (Thread): Don't check access when creating the first thread. Add
6587 this thread to the appropriate ThreadGroup.
6588
6589 * java/lang/natThread.cc (run_): Call uncaughtException method on
6590 the ThreadGroup.
6591
6592 * java/lang/Runnable.java: Rewrote from scratch.
6593 * java/lang/Thread.java: Updated copyright comment to correct
6594 form.
6595
6596 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6597
6598 * java/util/Random.java: Rewritten.
6599
6600 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6601
6602 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6603 trailing 0 in array[].
6604
6605 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6606
6607 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6608 and RUNTESTFLAGS from AM_MAKEFLAGS.
6609 (SUBDIRS): Conditionally include testsuite.
6610 * Makefile.in: Rebuilt.
6611
6612 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6613
6614 * java/lang/Object.h: Include java-assert.h.
6615
6616 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6617
6618 * Makefile.am: Add testsuite directory.
6619 * configure.in: Build testsuite/Makefile.
6620 * Makefile.in, configure: Rebuilt.
6621
6622 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6623
6624 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6625 * include/jvm.h (_Jv_StartFirstThread): Declare.
6626
6627 * include/javaprims.h (java::lang): Added Exception,
6628 RuntimeException.
6629
6630 * Makefile.in: Rebuilt.
6631 * Makefile.am (nat_headers): Added NullPointerException.h,
6632 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6633 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6634 (java/lang/Thread.h): New target.
6635 (TFRIEND): New macro
6636
6637 * include/java-assert.h (JvFail): Use 0 and not NULL.
6638
6639 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6640 instead of assuming we are a friend of Thread.
6641 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6642 instead of assuming we are a friend of Thread.
6643
6644 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6645
6646 * java/lang/natThread.cc: Rewrote from scratch.
6647 * java/lang/Thread.java: Rewrote from scratch.
6648 * prims.cc (JvRunMain): Use new Thread constructor.
6649 * include/javaprims.h (java::lang): Added InterruptedException.
6650 * Makefile.in: Rebuilt.
6651 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6652 * java/lang/Thread.h: Removed.
6653 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6654 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6655 argument.
6656 * posix-threads.cc (JvPrivThreadJoin): Removed.
6657 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6658 (really_start): Don't notify join_cond.
6659 (JvPrivThreadStart): Added `data' argument.
6660 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6661 (JvPrivThreadJoin): Likewise.
6662 Use JvFail instead of sorry.
6663 (JvPrivThreadSuspend): Removed.
6664 (JvPrivThreadResume): Removed.
6665 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6666 (JvPrivThreadJoin): Likewise.
6667 (JvPrivThreadSuspend): Use JvFail.
6668 (JvPrivThreadResume): Likewise.
6669 (JvPrivThreadSuspend): Removed.
6670 (JvPrivThreadResume): Likewise.
6671 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6672 (JvPrivThread_t): Removed join_mutex, join_cond.
6673 Use JvFail instead of sorry.
6674 (JvPrivThreadSuspend): Removed.
6675 (JvPrivThreadResume): Likewise.
6676
6677 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6678
6679 * java/util/Observer.java: Rewritten
6680 * java/util/Enumeration.java: Rewritten
6681
6682 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6683
6684 * java/util/StringTokenizer.java: Rewritten
6685 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6686 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6687 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6688
6689 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6690
6691 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6692 not defined.
6693
6694 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6695 Include java-assert.h.
6696 * include/java-assert.h: New file.
6697 * prims.cc (_Jv_Abort): New function.
6698 Include java-assert.h, not assert.h.
6699 (_Jv_MonitorExit): Use JvAssert.
6700 (resolveConstants): Likewise.
6701 (processClass): Likewise.
6702 (JvRunMain): Assert that method is found.
6703
6704 * configure: Rebuilt.
6705 * configure.in: Check for test subdir.
6706 * Makefile.in: Rebuilt.
6707 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6708
6709 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6710 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6711
6712 * prims.cc (resolveConstants): Removed unused variables.
6713 (processClass): Likewise.
6714
6715 * include/quick-threads.h (JvPrivThreadCurrent): Use
6716 coop_getspecific.
6717 * quick-threads.cc (destroy_data): New function.
6718 (JvPrivInitThreads): Create key.
6719 (JvPrivThreadKey): New global.
6720 (JvPrivThreadStart): Use coop_setspecific.
6721
6722 * include/quick-threads.h, include/posix-threads.h,
6723 include/no-threads.h, no-threads.cc, quick-threads.cc,
6724 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6725
6726 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6727
6728 * include/no-threads.h (JvPrivThreadInitData): Don't set
6729 JvPrivOnlyThread.
6730
6731 * include/quick-threads.h (JvPrivCondWait): coop function now
6732 takes microseconds.
6733 (JvPrivThreadJoin): Likewise.
6734
6735 * java/lang/Thread.h (Thread): Updated declaration of
6736 JvPrivThreadStart.
6737 * include/quick-threads.h, include/posix-threads.h: Updated
6738 declaration of JvPrivThreadStart.
6739 * include/no-threads.h (JvPrivThreadStart): Changed definition
6740 into declaration.
6741 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6742 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6743 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6744
6745 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6746
6747 * quick-threads.cc (qthrow): New function.
6748 (JvPrivInitThreads): New function.
6749 (started): New global.
6750 (JvPrivThreadStart): Call coop_start if required.
6751 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6752 (JvPrivThreadDestroy): Likewise.
6753 (JvPrivInitThreads): Removed.
6754 * include/posix-threads.h (JvPrivThreadCancel): Added error
6755 argument.
6756 * java/lang/natThread.cc (stop_): Pass exception to
6757 JvPrivThreadCancel.
6758
6759 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6760
6761 * include/javaprims.h (java::lang): Added
6762 IllegalArgumentException, IllegalThreadStateException, Math,
6763 NullPointerException, ThreadDeath.
6764 (java::util): Added Enumeration.
6765
6766 * Makefile.in: Rebuilt.
6767 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6768
6769 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6770 now public.
6771 (threadsv): Renamed from threads to avoid clash in C++ header.
6772 (groupsv): Likewise.
6773 * include/no-threads.h (JvPrivThreadStart): Removed.
6774 * no-threads.cc (JvPrivThreadStart): New function.
6775 * java/lang/Thread.java (Thread): New constructor for internal use.
6776 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6777 (Thread): Declare constructor.
6778 * prims.cc (JvRunMain): Create the initial Thread and
6779 ThreadGroup.
6780 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6781 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6782 Removed `daemon' argument.
6783
6784 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6785 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6786 a friend.
6787 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6788
6789 * Makefile.in: Rebuilt.
6790 * Makefile.am (INCLUDES): Include THREADINCS.
6791
6792 * configure: Rebuilt.
6793 * configure.in: Recognize `qt' as a threads package.
6794
6795 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6796
6797 * java/util/Stack.java (pop): Null out topmost node for robustness.
6798
6799 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6800
6801 * java/util/Stack.java: Rewritten.
6802 * java/util/Vector.java (isEmpty): Simplified expression.
6803
6804 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6805
6806 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6807 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6808
6809 * include/java-array.h (JvNewObjectArray): Created inline to
6810 _Jv_NewObjectArray.
6811
6812 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6813 JvNewObjectArray.
6814
6815 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6816
6817 * java/util/Vector.java: Rewritten.
6818 * java/io/Serializable.java: Created.
6819
6820 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6821
6822 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6823 Infinity is 1/0, not 1/1.
6824
6825 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6826
6827 * configure: Rebuilt.
6828 * configure.in: Removed duplicate AC_ARG_WITH.
6829
6830 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6831
6832 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6833 soft_badarrayindex.
6834 (_Jv_InitClass): Renamed from soft_initialise_class.
6835 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6836 (_Jv_CheckCast): Renamed from soft_checkcast.
6837 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6838 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6839 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6840 * include/cni.h (JvInitClass): New function.
6841 (_Jv_InitClass): Renamed from soft_initialise_class.
6842
6843 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6844
6845 * configure: Rebuilt.
6846 * configure.in (CXX): Don't set.
6847 * Makefile.in: Rebuilt.
6848 * Makefile.am (AM_CXXFLAGS): New macro.
6849
6850 * Makefile.in: Rebuilt.
6851 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6852 nogc.o): New target.
6853
6854 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6855 GC.
6856 (mark_array): Likewise.
6857
6858 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6859
6860 * java/lang/Class.h (JvMethod): Removed some unused fields.
6861 (JvField.info): Removed unused idx union variant.
6862
6863 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6864
6865 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6866 match compiler.
6867
6868 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6869
6870 * configure.in, configure (CXX): Add -fvtable-thunks.
6871
6872 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6873
6874 * java/lang/Object.java (finalize): Move first.
6875 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6876 (Object): Re-arrange order to match Object.java.
6877
6878 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6879
6880 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6881 * java/lang/natString.cc (hashChars): Likewise.
6882
6883 * prims.cc (RuntimeClass): New macro.
6884 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6885
6886 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6887
6888 * Makefile.in: Rebuilt.
6889 * Makefile.am (AM_MAKEFLAGS): New macro.
6890
6891 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6892
6893 * nogc.cc: Include <javaprims.h>.
6894
6895 * Makefile.in: Rebuilt.
6896 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6897
6898 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6899
6900 * exception.cc (terminate): Removed.
6901 (unexpected): Removed.
6902
6903 * configure: Rebuilt.
6904 * configure.in: Handle case where target subdir is ".".
6905
6906 * configure: Rebuilt.
6907 * configure.in: Compute COMPPATH based on --with-target-subdir
6908 option. Added --with-target-subdir and --with-cross-host. Use
6909 --with-cross-host to determine when a cross compiler is in use.
6910
6911 * Makefile.in: Rebuilt.
6912 * Makefile.am (GJAVAH): Include COMPPATH.
6913 * configure: Rebuilt.
6914 * configure.in: Subst COMPPATH.
6915
6916 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6917
6918 * prims.cc (lockMutex): Removed.
6919 (unlockMutex): Likewise.
6920 (processClass): Lock the class using a JvSynchronize object.
6921
6922 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6923
6924 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6925 (gc_free_fixed): Removed.
6926 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6927 freeing old value of strhash.
6928
6929 * exception.cc (_Jv_type_matcher): Cast first argument to
6930 _Jv_IsInstanceOf.
6931
6932 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6933
6934 * include/java-array.h (jstringArray): New type.
6935 * java/lang/natSystem.cc (setProperty): Removed.
6936 (initProperties): Directly call JvNewStringLatin1 for arguments.
6937 * java/util/natDate.cc: Include java/util/Date.h, not
6938 java-util.h.
6939 (setTime): Removed.
6940 * java/io/FileDescriptor.java (available): No longer static.
6941 * java/lang/natDouble.cc (Double): Removed class definition.
6942 * include/javaprims.h (java::lang::Number): Declare.
6943 (java::lang::NumberFormatException): Likewise.
6944 (java::io::FilenameFilter): Likewise.
6945 (java::lang::Character): Likewise.
6946 (java::lang::Error): Likewise.
6947 (java::lang::SecurityManager): Likewise.
6948 (java::util::Vector): Likewise.
6949 (java::io::FileNotFoundException): Likewise.
6950 (java::io::IOException): Likewise.
6951 (java::lang::NativeLang): Likewise.
6952 (java::lang::UnsatisfiedLinkError): Likewise.
6953 (java::util::StringTokenizer): Likewise.
6954 (java::io::InputStream, java::io::OutputStream): Likewise.
6955 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6956 (java::util::Hashtable): Likewise.
6957 * Makefile.in: Rebuilt.
6958 * Makefile.am (nat_headers): Added java/lang/Double.h,
6959 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6960 (MOSTLYCLEANFILES): Added nat_headers.
6961 * include/jvm.h: Moved many defines, declarations, and functions
6962 to java/lang/Class.h.
6963 (struct JvSyncInfo): Moved to java/lang/Object.h.
6964 (UTF8_GET): Moved to java/lang/String.h.
6965
6966 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6967
6968 * java/io/io-defs.h: Don't include java-io.h.
6969 * include/java-io.h: Removed.
6970 * include/javaprims.h: Include java::io.
6971
6972 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6973
6974 * include/java-io.h (File): Removed
6975 (FileDescriptor): Likewise.
6976
6977 * java/io/io-defs.h: Include java/io/File.h and
6978 java/io/FileDescriptor.h.
6979
6980 * Makefile.in: Rebuilt.
6981 * Makefile.am (GJAVAH): New macro.
6982 (.class.h): New rule.
6983 (SUFFIXES): Added .h.
6984 (nat_headers): New macro.
6985 ($(nat_headers)): New target.
6986 (BUILT_SOURCES): Added nat_headers.
6987
6988 * include/java-util.h: Removed.
6989
6990 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6991
6992 * include/java-io.h: Changed to avoid java-lang.h.
6993 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6994 java-lang.h.
6995 * java/lang/natSystem.cc: Include java/lang/System.h, not
6996 java-lang.h.
6997 * java/lang/natString.cc: Include java/lang/String.h, not
6998 java-lang.h.
6999 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
7000 java-lang.h.
7001 * java/lang/natClass.cc: Include java/lang/Class.h, not
7002 java-lang.h.
7003 * java/lang/natDouble.cc: Include java/lang/Object.h, not
7004 java-lang.h.
7005 * java/lang/natObject.cc: Include java/lang/Object.h, not
7006 java-lang.h.
7007 * exception.cc: Don't include java-lang.h.
7008 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7009 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
7010 * nogc.cc: Don't include java-lang.h.
7011 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
7012 * prims.cc (processClass): Don't use `init_type'; just cast to
7013 type directly.
7014 Include java/lang/Class.h and jvm.h, not java-lang.h.
7015 (JvAllocObject): Wrote single-argument version.
7016 (PrimClass): Inherit from Class.
7017 (initPrimClass): Removed.
7018 * include/java-lang.h: Removed.
7019 * include/jvm.h: Declare struct _dispatchTable.
7020 * include/cni.h: Don't declare _Jv_MonitorEnter,
7021 _Jv_MonitorExit, struct _dispatchTable.
7022 * include/javaprims.h: Moved all typedefs here, from cni.h.
7023 * java/lang/Class.h: New file.
7024 * include/java-array.h: New file.
7025 * java/lang/Object.h: New file.
7026
7027 * prims.cc (classFromSig): Now static.
7028
7029 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
7030
7031 * include/cni.h: Don't mention soft_new.
7032 * include/java-lang.h (Object): Don't mention soft_new. Mention
7033 _Jv_NewPrimArray, not newPrimArray.
7034 * prims.cc (soft_new): Removed.
7035 (_Jv_NewArray): Renamed from soft_newarray.
7036 (soft_anewarray): Use JvNewObjectArray.
7037 (newArray): Likewise.
7038 (newRefArray): Removed.
7039 (_Jv_NewPrimArray): Renamed from newPrimArray.
7040 (equalUtf8Consts): Now static.
7041 (soft_instanceof): Removed.
7042 * java/lang/natDouble.cc (doubleToString): Now static.
7043
7044 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
7045 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
7046 Removed.
7047
7048 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
7049
7050 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
7051 _Jv_MonitorExit.
7052 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
7053 _Jv_MonitorExit.
7054 * include/no-threads.h (JvPrivMutexLock): Always return -1.
7055 (JvPrivMutexUnlock): Likewise.
7056 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
7057 Return value now jint.
7058 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
7059 now jint.
7060
7061 * Makefile.in: Rebuilt.
7062 * Makefile.am: Don't allow `jV' names.
7063 (maintainer-check): Depend on libjava.a.
7064 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
7065
7066 * Makefile.in: Rebuilt.
7067 * Makefile.am (NM): New macro.
7068 (maintainer-check): New target.
7069
7070 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
7071
7072 * configure: Rebuilt.
7073 * configure.in: Use --enable-threads, not --enable-gc. Fix
7074 documentation for --enable-threads. Changed option to work like
7075 identical option in gcc/configure.
7076
7077 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
7078
7079 * boehm.cc (mark_array): Use JvGetArrayLength.
7080
7081 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
7082
7083 * exception.cc: New file (mostly written by Andrew MacLeod),
7084 exception handling support.
7085 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
7086 Remove -fexceptions - it is now the default.
7087
7088 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
7089 (JvAllocObject): Renamed to _Jv_AllocObject.
7090 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
7091 (loadClass): Renamed to _Jv_FindClass.
7092 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
7093 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
7094 * include/java-lang.h (JvGetArrayLength): New CNI function.
7095 * include/jvm.h (_Jv_FindClass): Added declaration.
7096
7097 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
7098
7099 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
7100
7101 * java/lang/natClass.cc (getName): Add implementation.
7102 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
7103
7104 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
7105
7106 * Makefile.in: Rebuilt.
7107 * Makefile.am (.class.o): Added -fexceptions.
7108
7109 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
7110
7111 * configure: Rebuilt.
7112 * configure.in: Don't check for __nanosleep.
7113 * posix-threads.cc (nanosleep): Never define.
7114
7115 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
7116
7117 * posix-threads.cc (JvPrivCondWait): Fixed computation of
7118 timespec.
7119
7120 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
7121
7122 * java/lang/natThread.cc (enumerate): Uncommented.
7123 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
7124 (interrupt): Call it.
7125
7126 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
7127
7128 * configure: Rebuilt.
7129 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
7130
7131 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
7132
7133 * include/no-threads.h (JvPrivThreadInterrupt): New method.
7134 * include/java-lang.h (Thread): Added `interrupted_' method.
7135 * java/lang/Thread.java (interrupted_): New method.
7136 * java/lang/natThread.cc (join): Possibly throw interrupted
7137 exception after join finishes.
7138 (interrupted_): New method.
7139 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
7140 join_cond.
7141 (JvPrivThreadJoin): New function.
7142 (really_start): Notify all threads waiting for this thread.
7143 (struct starter): Added `data' member.
7144 (JvPrivThreadStart): Set it.
7145 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
7146 join_cond.
7147 (JvPrivThreadJoin): No longer inline.
7148 (JvPrivThreadInterrupt): New function.
7149
7150 * include/no-threads.h (JvPrivThreadSleep): Removed.
7151 * posix-threads.cc (JvPrivThreadSleep): Removed.
7152
7153 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7154
7155 * configure: Rebuilt.
7156 * configure.in (THREADOBJS): Initialize to no-threads.o in
7157 no-threads case.
7158 * posix-threads.cc (key): New global.
7159 (JvPrivInitThreads): New function.
7160 (really_start): Set thread-specific data to point to object.
7161 (JvPrivThreadStart): Added `daemon' argument.
7162 (JvPrivThreadSleep): Added `data' argument.
7163 * include/posix-threads.h (JvPrivInitThreads): Removed
7164 implementation.
7165 (JvPrivThreadCurrent): New function.
7166 * include/no-threads.h (JvPrivThreadInitData): Initialize
7167 JvPrivOnlyThread. Added `thread' argument.
7168 (JvPrivThreadCurrent): New function.
7169 (JvPrivThreadStart): Added `daemon' argument.
7170 * no-threads.cc: New file.
7171 * java/lang/natThread.cc (init_data): New function.
7172 (isAlive): Removed.
7173 (start): Set `alive' member.
7174 (stop_): Clear `alive' member.
7175 (destroy): Likewise.
7176 (currentThread): Implemented.
7177 (start): Pass `daemon' argument to JvPrivThreadStart.
7178 (sleep): Rewrote.
7179 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7180 (Thread): Added `init_data' method.
7181 * java/lang/Thread.java (alive, data): New instance variables.
7182 (init_data): New private method.
7183 (isAlive): No longer native.
7184
7185 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7186
7187 * include/java-lang.h (JvRunMain): Declare.
7188 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7189 * prims.cc (JvRunMain): New function.
7190 (main_signature, main_name): New globals.
7191
7192 * boehm.cc (mark_array): Use `elements' function and not
7193 operator[] on jarray.
7194
7195 * posix-threads.cc: Include <config.h>. Define nanosleep if
7196 required.
7197
7198 * configure: Rebuilt.
7199 * configure.in: Check for _nanosleep.
7200
7201 * configure: Rebuilt.
7202 * configure.in: Check for pthread_mutexattr_settype.
7203
7204 * include/cni.h (class JvSynchronize): New class.
7205 * java/lang/Thread.java (sleep): Throws InterruptedException.
7206 (join): Throws InterruptedException.
7207 (resume): Not native.
7208 (resume_): New method.
7209 (start): Now synchronized.
7210 (stop_): New method.
7211 (Thread): Synchronize when accessing threadNumber.
7212 (misc): Removed.
7213 * java/lang/natThread.cc (throwException): New macro.
7214 (sleep): Throw InterruptedException.
7215 (resume_): Renamed.
7216 (stop_): Renamed.
7217 * include/java-lang.h (Runtime): Added interrupted().
7218
7219 * boehm.cc (call_finalizer): Correctly initialize jobj.
7220 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7221
7222 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7223 `#elseif'.
7224
7225 * configure: Rebuilt.
7226 * configure.in: Added support for --disable-threads.
7227 * include/no-threads.h: New file.
7228
7229 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7230
7231 * Makefile.in: Rebuilt.
7232 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7233 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7234 (libjava_a_LIBADD): Added THREADOBJS.
7235 * configure: Rebuilt.
7236 * configure.in: Added --with-threads option.
7237 * posix-threads.cc: New file.
7238 * include/posix-threads.h: New file.
7239 * include/java-lang.h (Object): Added static member sync_mutex,
7240 member sync_info, method init_mutex.
7241 (struct JvSyncInfo): New struct.
7242 Include "java-threads.h".
7243 * prims.cc (soft_monitorenter): Wrote.
7244 (soft_monitorexit): Likewise.
7245 * java/lang/natObject.cc (init_mutex): New method.
7246 (notify): Wrote.
7247 (notifyAll): Wrote.
7248 (wait): Wrote.
7249 (sync_mutex): Define.
7250 Include "java-threads.h".
7251
7252 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7253
7254 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7255 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7256
7257 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7258
7259 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7260 Added extern "Java" in places to tell G++ Object is a "Java" type.
7261 Other minor renaming and fixes.
7262 * include/java-io.h (FileDescriptor): Add friend class declarations.
7263 G++ no longer allows non-Java types in method parameters and results
7264 of Java classes. Converted most offending methods to friends.
7265 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7266 * java/lang/natSystem.cc (setProperty): Make friend.
7267 * java/lang/natString.cc, include/java-lang.h (String): Rename
7268 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7269 * include/java-lang.h (JArray): Remove getData and eoprator[].
7270 Add elements friend function instead.
7271 * java/lang/natSystem.cc (arraycopy): Use elements function.
7272 * java/io/natFileDescriptor.cc (read, write): Likewise.
7273 * include/java-lang.h (Object): Remove unused make method.
7274 (System::setProperty(char*,char*)): Turn into friend function.
7275 (Class): Rename newObject by JvAllocObject.
7276 * prims.cc: Update to use JvAllocObject, and elements.
7277
7278 * java/lang/natDouble.cc: Fix double -> jdouble.
7279
7280 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7281
7282 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7283
7284 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7285
7286 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7287 * include/java-lang.h (Runtime): finalize_on_exit and
7288 runFinalizersOnExit now static.
7289 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7290 match JDK 1.2b3.
7291 (finalize_on_exit): Now static.
7292
7293 * boehm.cc (mark_obj): Get class using getClass() method on
7294 object.
7295 (_dispatchTable): Removed.
7296
7297 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7298
7299 * java/io/natFileDescriptor.cc (open_read): Only call open if
7300 HAVE_OPEN defined.
7301 (open_write): Likewise.
7302
7303 * Makefile.in: Rebuilt.
7304 * Makefile.am ($(nat_files)): Depend on config.h.
7305
7306 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7307
7308 * prims.cc (ObjectClass): Now a macro; updated for new class name
7309 mangling scheme.
7310 (StringClass): Likewise.
7311 (ClassClass): Likewise.
7312
7313 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7314
7315 * java/io/natFileDescriptor.cc (available): Do nothing unless
7316 HAVE_SELECT defined.
7317 * java/util/natDate.cc (setTime): Conditional on
7318 HAVE_GETTIMEOFDAY.
7319 (toString): Conditional on HAVE_TIME.
7320 * aclocal.m4, configure: Rebuilt.
7321 * acinclude.m4: New file.
7322 * configure.in: Don't actually call AM_EXEEXT. Call
7323 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7324 --with-target-subdir option. Check for select and open
7325 functions.
7326
7327 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7328
7329 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7330 (call_finalizer): Likewise.
7331 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7332 * prims.cc (newObject): Pass actual method pointer to
7333 JvPrivRegisterFinalizer.
7334 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7335 (JvPrivRegisterFinalizer): Changed interface.
7336
7337 * Makefile.in: Rebuilt.
7338 * Makefile.am (MOSTLYCLEANFILES): New macro.
7339 (CLEANFILES): Removed javao_files.
7340
7341 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7342
7343 * nogc.cc: New file.
7344 * Makefile.in: Rebuilt.
7345 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7346 (EXTRA_libjava_a_SOURCES): New macro.
7347 (libjava_a_SOURCES): Removed boehm.cc.
7348 (libjava_a_DEPENDENCIES): Added GCOBJS.
7349 (libjava_a_LIBADD): Likewise.
7350 * configure: Rebuilt.
7351 * configure.in: Added code for --enable-gc=TYPE.
7352
7353 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7354
7355 * boehm.cc (mark_array): Don't further dereference pointer from
7356 array.
7357
7358 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7359 * Makefile.in: Rebuilt.
7360 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7361 one for boehm-gc build directory.
7362
7363 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7364
7365 * include/java-lang.h (finalize_on_exit): New instance variable in
7366 java::lang::Runtime.
7367 (runFinalizersOnExit): New method.
7368 * java/lang/Runtime.java (finalize_on_exit): New instance
7369 variable.
7370 (runAllFinalizers_): New private method.
7371 (runFinalizersOnExit): New method.
7372 * boehm.cc (JvPrivRunFinalizers): New function.
7373 (JvPrivRunAllFinalizers): Likewise.
7374 (JvPrivRunGC): Likewise.
7375 * java/lang/natRuntime.cc: Include "jvm.h".
7376 (gc): Call JvPrivRunGC.
7377 (runFinalization): Call JvPrivRunFinalizers.
7378 (runFinalizersOnExit): New method.
7379 (exit_): Call JvPrivRunAllFinalizers if required.
7380 * include/jvm.h: Declare JvPrivRunFinalizers,
7381 JvPrivRunAllFinalizers, JvPrivRunGC.
7382
7383 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7384
7385 * boehm.cc (JvPrivRegisterFinalizer): New function.
7386 (call_finalizer): Likewise.
7387 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7388 * prims.cc (finalize_name): New global.
7389 (newObject): Just call other newObject.
7390 (newObject): Register finalizer if it exists.
7391
7392 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7393
7394 * prims.cc (gc_malloc): Removed.
7395 (makeUtf8Const): Use JvPrivAllocBytes.
7396 (lookupArray): Likewise.
7397 (newPrimArray): Likewise.
7398 (JvNewObjectArray): Use JvPrivAllocArray.
7399 (newObject): Use JvPrivAllocObj.
7400 (newObject): Likewise.
7401 Changed Method -> JvMethod everywhere.
7402 Changed Field -> JvField everywhere.
7403 * include/java-lang.h (Object): Changed type of `fields' to
7404 JvField*.
7405 (jmethodID, jfieldID): New typedefs.
7406 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7407 friends.
7408 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7409 from java-lang.h.
7410 (METHOD_NATIVECODE): Moved from java-lang.h.
7411 (class JvField): New class.
7412 (JvGetFirstInstanceField): New function.
7413 (JvFieldIsRef): Likewise.
7414 (JvGetObjectField): Likewise.
7415 (JvNumInstanceFields): Likewise.
7416
7417 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7418
7419 * boehm.cc: New file.
7420 * Makefile.in: Rebuilt.
7421 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7422 (INCLUDES): Added -I options to find boehm-gc files.
7423
7424 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7425
7426 * configure: Rebuilt.
7427 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7428
7429 * Makefile.in: Rebuilt.
7430 * Makefile.am (nat_files): New macro.
7431 (libjava_a_DEPENDENCIES): Use it.
7432 (libjava_a_LIBADD): Likewise.
7433 ($(nat_files)): New static pattern rule.
7434 (class_files): Run separate find to find .class files.
7435 (javao_files): Compute based on class_files.
7436 (BUILT_SOURCES): New macro.
7437
7438 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7439
7440 * Makefile.am (java_files): New macro.
7441 (class_files): Likewise.
7442 (javao_files): Likewise.
7443 (libjava_a_DEPENDENCIES): Include $(javao_files).
7444 (libjava_a_LIBADD): Likewise.
7445 (classes.stamp): Depend on $(java_files); only recompile changed
7446 files.
7447 (here): New macro.
7448 (CLEANFILES): Don't run find; use macros. Don't mention
7449 libjava.a.
7450 (.class.o): New target.
7451 (compiled.stamp): Removed.
7452
7453 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7454
7455 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7456 LineNumberReader}>java: Newly-implemented standard classes.
7457
7458 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7459
7460 * Makefile.in: Rebuilt.
7461 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7462
7463 * Makefile.in: Rebuilt.
7464 * Makefile.am (hack): New macro.
7465 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7466
7467 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7468
7469 * include/config.h.in: New file.
7470 * include/config.h: Removed.
7471 * acconfig.h: New file.
7472 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7473 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7474 libjava_a_LIBADD): New macros.
7475 (INCLUDES): New macro.
7476 (prims.o): Removed.
7477 (.cc.o): Removed.
7478 (SUFFIXES): Removed.
7479 (all): Removed.
7480 (libjava.a): Removed.
7481
7482 * configure: Rebuilt.
7483 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7484 Look for headers and functions we require. Create
7485 include/config.h.
7486
7487 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7488
7489 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7490 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7491 soft_lookupinterfacemethod): New functions.
7492 (PrimClass): Actually initialize the primitive classes.
7493 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7494
7495 * include/java-util.h: Removed java::util definition.
7496 * include/cni.h: Moved java::util here and added Properties.
7497 Added more function prototypes.
7498 * include/java-lang.h: Added mroe methods and friend declarations.
7499 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7500 * include/jvm.h (strLengthUtf8): Add declaration.
7501
7502 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7503 New static field.
7504 * java/lang/{Byte,Short,Void}.java: New classes.
7505 * java/lang/Character.java (isJavaIdentifierStart,
7506 JavaIdentifierPart): New static methods.
7507 * java/lang/Number.java (byteValue, shortValue): New methods.
7508
7509 * java/lang/String.java (intern, hashCode): Make native.
7510 * java/lang/natString.cc: New file. Handle the string pool.
7511 * Makefile.am: Build natString.o. Use CXXFLAGS.
7512
7513 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7514 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7515 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7516 * java/lang/System.java (setProperty): New private method.
7517 (initProperties): Take argument, and make native.
7518 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7519 (currentTimeMillis): Make more robust.
7520
7521 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7522 * java/io/UnsupportedEncodingException.java: New exception class.
7523
7524 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7525 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7526
7527 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7528
7529 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7530 * prims.cc: Added bunch of stuff.
7531 * include/cni.h: Added various definitions.
7532 * include/java-lang.h: Added Method, various friends, some macros.
7533
7534 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7535 * java/lang/System.java (arraycopy): Make native.
7536
7537 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7538
7539 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7540 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7541 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7542 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7543 Make native.
7544 * java/lang/Runtime.java: Declare methods as native instead of
7545 using NativeLang.
7546 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7547 * java/lang/System.java: Comment out some stuff, for now.
7548 * java/lang/Thread.java: Re-write. Use native methods.
7549 * java/lang/NativeLang.java: Remove most of it.
7550
7551 * java/util/natDate.cc: Native (C++) methods for Date.
7552 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7553 * java/util/Date.java: Complete re-write.
7554
7555 * java/io/io-defs.h: New header file.
7556 * java/io/FileDescriptor.java: Add a bunch of private methods,
7557 mostly moved from NativeIO.java and natNativeIO.cc.
7558 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7559 * java/io/File.java: Use new code.
7560 * java/io/{FileInputStream.java.FileOutputStream.java,
7561 RandomAccessFile.java}: Use new private FileDescriptor methods.
7562 * java/io/NativeIO.java: Removed, no longer used.
7563
7564 * java/io/StreamTokenizer.java (numericChars): Make char array.
7565
7566 * include/*.h: Various header files used by the C++ native code.
7567
7568 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7569 New autoconf+automake-based setup.
7570 * prims.cc: New file for Java "primitives".
7571