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