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