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