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