OSDN Git Service

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