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