OSDN Git Service

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