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