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