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