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