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