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