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