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