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