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