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