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