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