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