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