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