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