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