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