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