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