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