OSDN Git Service

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