OSDN Git Service

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