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