OSDN Git Service

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