OSDN Git Service

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