1 2000-01-21 Tom Tromey <tromey@cygnus.com>
3 * java/lang/reflect/natConstructor.cc (newInstance): Use
5 * include/jvm.h: Declare _Jv_CallAnyMethodA.
6 * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
7 from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
10 (invoke): Use _Jv_CallAnyMethodA.
12 * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
13 JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
15 (struct _Jv_Method): Added getNextMethod method.
16 (JvNumMethods): New function.
17 (JvGetFirstMethod): Likewise.
18 * gcj/field.h (JvGetFirstStaticField): New function.
19 (JvNumStaticFields): Likewise.
20 (getNextField): Renamed from getNextInstanceField.
21 (struct _Jv_Field): New method getClass.
22 * jni.cc: Wrote many new functions.
23 * include/jni.h (JNI_TRUE): Define.
24 (JNI_FALSE): Likewise.
25 (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
26 jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
27 jcharArray, jfloatArray, jdoubleArray): New typedefs.
28 (jfieldID, jmethodID): Likewise.
29 (JNI_COMMIT, JNI_ABORT): New defines.
30 (JNINativeMethod): New struct.
31 (struct JNINativeInterface): Correctly declared more entries.
32 (class _Jv_JNIEnv): Added `ex' member.
33 (JNI_VERSION_1_1): New define.
34 (JNI_VERSION_1_2): Likewise.
36 * boehm.cc (_Jv_MarkObj): Use getNextField, not
39 2000-01-20 Tom Tromey <tromey@cygnus.com>
41 * resolve.cc (StringClass): Removed.
42 * defineclass.cc (StringClass): Removed.
44 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
48 2000-01-19 Tom Tromey <tromey@cygnus.com>
50 * interpret.cc (PC_REGISTER_ASM): Removed.
52 * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
55 * All files: Updated copyright to reflect Cygnus purchase.
57 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
60 * configure.in: Recognize --disable-interpreter.
62 2000-01-18 Andrew Haley <aph@cygnus.com>
64 * name-finder.cc (lookup): Check for dladdr function.
65 acconfig.h (HAVE_DLADDR): Add.
66 configure.in: Check for HAVE_DLADDR
68 include/config.h.in: Rebuilt.
70 2000-01-17 Andrew Haley <aph@cygnus.com>
72 * prims.cc (_Jv_RunMain): Set the name of this executable.
74 2000-01-17 Tom Tromey <tromey@cygnus.com>
76 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
77 when backtrace can't be computed.
80 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
82 * java/lang/Runtime.java (loadLibraryInternal): Declare.
83 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
84 (_Jv_FindClassInCache): Likewise.
85 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
86 (findSystemClass): Try to load class from compiled module.
88 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
89 (loadLibrary): Likewise.
90 (lt_preloaded_symbols): Define.
91 (loadLibraryInternal): New method.
92 * include/config.h.in: Rebuilt.
93 * acconfig.h (USE_LTDL): Added.
94 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
95 (INCLUDES): Added $(INCLTDL).
96 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
97 (libgcj_la_LIBADD): Likewise.
98 * aclocal.m4, configure: Rebuilt.
99 * configure.in: Added libltdl support.
101 2000-01-15 Tom Tromey <tromey@cygnus.com>
103 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
105 2000-01-14 Andrew Haley <aph@cygnus.com>
107 * java/lang/natThrowable.cc: New file.
109 * java/lang/Throwable.java (fillInStackTrace): Make native.
110 (printStackTrace): Call native method to do this.
111 (Throwable): Call fillInStackTrace.
112 (stackTrace): New variable.
114 * include/jvm.h: Add _Jv_ThisExecutable functions.
116 * prims.cc: (_Jv_execName): New variable.
117 (catch_segv): Call fillInStackTrace.
119 (_Jv_ThisExecutable): New functions.
120 (JvRunMain): Set the name of this executable.
122 * Makefile.am: Add java/lang/natThrowable.cc.
124 * Makefile.in: Rebuilt.
126 * acconfig.h: Add HAVE_PROC_SELF_EXE.
128 * configure.in: Force link with __frame_state_for in
129 FORCELIBGCCSPEC. Add new checks for backtrace.
130 * include/config.h.in: Rebuilt.
132 * name-finder.cc: New file.
133 * include/name-finder.h: New file.
135 2000-01-16 Anthony Green <green@cygnus.com>
137 * java/lang/StringBuffer.java (StringBuffer): Don't special case
140 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
142 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
144 2000-01-13 Tom Tromey <tromey@cygnus.com>
146 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
147 not system loader, as initiating loader.
149 2000-01-11 Tom Tromey <tromey@cygnus.com>
151 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
152 HP/UX. From David Scott Urban.
154 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
156 * java/lang/natMath.cc (pow): Cast args to `double', not
159 (IEEEremainder): Likewise.
160 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
161 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
163 2000-01-09 Anthony Green <green@cygnus.com>
165 * java/lang/natString.cc (init): Test for overflow condition
166 during out of bounds check.
167 (getChars): Throw StringIndexOutOfBoundsException, not
168 ArrayIndexOutOfBoundsException.
170 (regionMatches): Obey case option during string comparison.
172 * configure.host (ligcj_interpreter): New variable. Enable
173 interpreter by default on IA-32.
174 * configure.in: Examine libgcj_interpreter.
175 * configure: Rebuilt.
177 2000-01-07 Tom Tromey <tromey@cygnus.com>
179 * mauve-libgcj: Don't disable ClassTest.
181 * java/lang/natClass.cc (getClasses): Wrote.
183 2000-01-06 Tom Tromey <tromey@cygnus.com>
185 * java/lang/natClass.cc (_getConstructors): Correctly check
186 whether method name is the init name.
187 (getMethod): Look at accflags on method in `klass', not `this'.
189 2000-01-05 Tom Tromey <tromey@cygnus.com>
191 * java/lang/natClass.cc (getMethod): Compute offset relative to
192 `klass's methods table, not `this's table.
194 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
195 In unwrapping/widening case, check whether `k' is null, not
196 whether it is primitive. Initialize `num' from `argelts', not
197 `paramelts'. Correct create and pass arguments to ffi_call.
198 Don't let presence of `this' argument affect index used to look in
200 (COPY): Set appropriate element in `values' vector.
202 * java/lang/natClass.cc: Include <gcj/method.h>.
204 * java/lang/Class.h (_getMethods): Correctly declare as private,
207 * java/lang/Class.h (_getMethods): Declare.
208 * java/lang/Class.java (_getMethods): Declare.
209 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
210 (getDeclaredClasses): Always return empty array.
211 (_getMethods): New method.
213 (getDeclaredMethod): Return `rmethod'.
214 (finit_name): New global.
215 (getDeclaredMethods): Check for finit_name.
216 (_getMethods): Likewise.
217 (getMethod): Only return public methods.
219 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
220 jboolean and select correct ffi type on that basis.
221 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
222 Constructor call always has `void' return type.
224 2000-01-04 Tom Tromey <tromey@cygnus.com>
226 * java/lang/Class.h (getSignature): Updated.
227 * java/lang/Class.java (getSignature): Updated.
228 * java/lang/natClass.cc (getSignature): Added `is_constructor'
230 (getConstructor): Ensure constructor is public.
231 (_getConstructors): Check for public-ness of constructor when
232 `declared' is false, not when it is true.
234 2000-01-04 Warren Levy <warrenl@cygnus.com>
236 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
238 (receive): Set the sender's address in the DatagramPacket.
240 2000-01-04 Tom Tromey <tromey@cygnus.com>
242 * java/lang/reflect/natConstructor.cc (newInstance): Pass
243 declaring class as return_type argument to
244 _Jv_CallNonvirtualMethodA.
245 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
246 constructor case, create object and use it as `this' argument.
247 * java/lang/Class.h (_getConstructors): Declare.
248 (_getFields): Declare.
249 * java/lang/Class.java (getConstructors): Wrote.
250 (_getConstructors): New native method.
251 (getDeclaredConstructors): Wrote.
252 (_getFields): Declare new native method.
253 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
255 (getMethod): Work correctly when class is primitive.
256 (getDeclaredMethods): Likewise. Compute offset using `method',
258 (getDeclaredMethod): Likewise.
259 (getConstructor): Wrote.
260 (ConstructorClass): New define.
261 (getDeclaredConstructor): Wrote.
262 (_getConstructors): New method.
263 (_getFields): New method.
266 * Makefile.in: Rebuilt.
267 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
269 * prims.cc: Remove `#pragma implementation'.
270 * gcj/array.h: Remove `#pragma interface'.
272 * prims.cc (_Jv_equaln): New function.
273 * java/lang/Class.java (getSignature): Declare.
274 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
275 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
277 (getSignature): New method.
278 (getDeclaredMethod): Wrote.
280 Include StringBuffer.h.
281 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
282 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
284 (getSignature): Declare.
285 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
286 (_Jv_equaln): Declare.
287 (_Jv_CallNonvirtualMethodA): Declare.
288 * Makefile.in: Rebuilt.
289 * Makefile.am (nat_source_files): Added natConstructor.cc.
290 (java/lang/reflect/Constructor.h): New target.
291 * java/lang/reflect/natConstructor.cc: New file.
292 * java/lang/reflect/Constructor.java (newInstance): Now native.
293 (declaringClass): Renamed from decl_class.
294 (offset): Renamed from index.
295 (getType): New native method.
296 (getModifiers): Now native.
297 (getParameterTypes): Call getType if required.
298 (hashCode): Include hash code from declaring class.
299 (modifiers): Removed.
300 (toString): Call getType if required.
301 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
302 * java/lang/reflect/natMethod.cc (hack_call): New method.
303 Removed `#if 0' around FFI code.
304 Include <gnu/gcj/RawData.h>.
305 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
306 IllegalArgumentException when argument object and class disagree.
307 (_Jv_GetTypesFromSignature): New function.
309 (ObjectClass): New define.
310 (_Jv_CallNonvirtualMethodA): New function.
311 * java/lang/reflect/Method.java (hack_trampoline): New method.
312 (hack_call): New native method.
314 1999-12-21 Per Bothner <per@bothner.com>
316 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
317 offset in new Method.
319 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
321 * java/lang/natObject.cc (notify): Throw message with
322 IllegalMonitorStateException.
325 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
326 (isInterrupted_): New function, which does clear interrupt_flag.
327 (interrupt): Use `isInterrupted_'.
328 * java/lang/natThread.cc (interrupt): Add comment.
329 (join): Set `prev' in joiner loop.
330 Change various calls to `isInterrupted' to use `isInterrupted_'.
331 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
332 on linux. Set result to 0 on an interrupt. Test interrupted status
333 of java Thread object directly.
334 FLAG_INTERRUPTED: removed.
335 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
336 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
337 (_Jv_InitThreads): Don't block SIGINT.
338 (_Jv_ThreadWait): Don't configure SIGINT handler.
340 1999-12-21 Tom Tromey <tromey@cygnus.com>
342 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
344 1999-12-20 Tom Tromey <tromey@cygnus.com>
346 * java/lang/reflect/Modifier.java (STRICT): New constant.
347 (isStrict): New method.
348 (toString): Added `strict'.
350 1999-12-23 Anthony Green <green@cygnus.com>
352 * configure: Rebuilt.
353 * configure.in (LIBDATASTARTSPEC): Force data_start in with
356 1999-12-19 Anthony Green <green@cygnus.com>
358 * libgcjdata.c: New file.
359 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
360 * configure: Rebuilt.
361 * configure.in (LIBDATASTARTSPEC): Force data with a known name
363 * Makefile.in: Rebuilt.
364 * Makefile.am: Build libgcjdata.a.
366 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
367 * configure: Rebuilt.
368 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
371 1999-12-17 Tom Tromey <tromey@cygnus.com>
373 * java/lang/reflect/Method.java (toString): Call getType if
374 required. Partial fix for PR libgcj/111. From Per Bothner.
376 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
378 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
380 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
381 null String constructor parameter.
382 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
383 for exception messages.
384 BooleanClass: declare.
385 (setOption): Use BooleanClass instead of Class.forName() for
387 (bind): Cast 4th parameter of setsockopt to `char *' for
388 compatibility with older Solaris headers.
389 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
390 sprintf calls for exception messages.
391 BooleanClass, IntegerClass: declare.
392 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
395 1999-12-15 Tom Tromey <tromey@cygnus.com>
397 * java/lang/natSystem.cc (init_properties): Don't set user.name or
398 user.home if NO_GETUID defined. Only set user.dir if getcwd
401 * include/config.h.in: Rebuilt.
402 * acconfig.h (NO_GETUID): New define.
403 * configure.in: Rebuilt.
404 * configure.in: Define NO_GETUID in cross case. Check for getcwd
407 1999-12-08 Tom Tromey <tromey@cygnus.com>
409 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
410 where no recursive mutexes exist. Fixes PR libgcj/117.
412 1999-12-05 Anthony Green <green@cygnus.com>
414 * include/jvm.h: Declare many functions with
415 __attribute__((__malloc__)).
416 * gcj/javaprims.h: Ditto.
418 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
420 * THANKS: Giving credit where credit is due.
422 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
424 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
426 * java/lang/natString.cc (equalsIgnoreCase): return false if
427 anotherString is null.
428 * java/lang/Boolean.java (valueOf): return FALSE if argument is
431 1999-11-30 Tom Tromey <tromey@cygnus.com>
433 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
434 mutex to initialize. Initialize `count' if required.
437 1999-11-27 Per Bothner <per@bothner.com>
439 * exception.cc: Remove prototype declarations for malloc and free.
440 These clash with recent versions of glibc, which specifies `throws ()'
441 when __cplusplus is defined. Instead, #include <stdlib.h>.
443 1999-11-24 Tom Tromey <tromey@cygnus.com>
445 * prims.cc (_Jv_NewObjectArray): Use
446 _Jv_GetArrayElementFromElementType.
447 (_Jv_NewPrimArray): Likewise.
448 * java/lang/natObject.cc (clone): Use
449 _Jv_GetArrayElementFromElementType instead of sizeof.
450 * java/lang/natSystem.cc (arraycopy): Use
451 _Jv_GetArrayElementFromElementType.
452 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
455 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
457 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
458 Exception messages. PR java.net/57.
459 (bind): set SO_REUSEADDR before bind.
460 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
461 overruns. PR java.net/57.
463 1999-11-19 Tom Tromey <tromey@cygnus.com>
465 * Makefile.am (DIVIDESPEC): Removed.
466 (EXCEPTIONSPEC): Removed.
468 1999-11-19 Andrew Haley <aph@cygnus.com>
470 * Makefile.am (JCFLAGS): Add -L$(here)
472 * Makefile.in: Rebuild.
474 1999-11-18 Tom Tromey <tromey@cygnus.com>
476 * java/lang/natDouble.cc: Include <config.h>.
478 * include/config.h.in: Rebuilt.
479 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
480 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
482 * configure: Rebuilt.
483 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
484 requested by configure.host. Don't put `-D' option into
485 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
487 * configure: Rebuilt.
488 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
491 1999-11-18 Andrew Haley <aph@cygnus.com>
493 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
494 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
496 * Makefile.in: Rebuild
497 * acconfig.h: remove SJLJ_EXCEPTIONS
498 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
499 Do not AC_DEFINE SJLJ_EXCEPTIONS.
500 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
501 * gcj/Makefile.in, include/Makefile.in: rebuild.
502 * include/config.h.in: remove SJLJ_EXCEPTIONS.
504 1999-11-18 Andrew Haley <aph@cygnus.com>
506 * gij.cc (main): Rename label to prevent conflict.
508 * exception.cc (_Jv_type_matcher): Don't check the table if we're
509 using setjmp/longjmp exceptions: there isn't one.
511 1999-11-17 Andrew Haley <aph@cygnus.com>
513 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
514 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
515 (__sjthrow): Add declaration.
516 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
520 * Makefile.in: Rebuild
521 * acconfig.h: Add SJLJ_EXCEPTIONS
522 * configure.in: Add SJLJ_EXCEPTIONS
523 * configure: Rebuild.
524 * gcj/Makefile.in: Rebuild.
525 * gcj/cni.h: Add support for sjlj-exceptions.
526 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
527 * include/Makefile.in: Rebuild.
528 * include/default-signal.h: Add support for sjlj-exceptions.
530 1999-11-18 Tom Tromey <tromey@cygnus.com>
532 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
534 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
536 (method_cache): Made larger.
538 1999-11-11 Tom Tromey <tromey@cygnus.com>
540 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
541 initializing mutex. Initialize `count' when required.
543 1999-11-07 Anthony Green <green@trip.cygnus.com>
545 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
548 1999-11-05 Tom Tromey <tromey@cygnus.com>
550 * java/lang/natThread.cc (destroy): Removed incorrect comment.
552 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
554 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
555 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
558 1999-11-05 Tom Tromey <tromey@cygnus.com>
560 * java/lang/natThread.cc (stop): Removed argument name.
562 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
563 `private'; now has default access.
564 * Makefile.in: Rebuilt.
565 * Makefile.am (java/lang/ThreadGroup.h): Removed.
567 1999-11-04 Tom Tromey <tromey@cygnus.com>
569 * java/lang/natClass.cc (method_cache_count): Removed.
570 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
571 (_Jv_AddMethodToCache): Don't loop.
573 * configure.in: Removed `qt' threads case.
574 * include/quick-threads.h: Removed.
575 * quick-threads.cc: Removed.
577 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
578 (_Jv_ThreadDestroy): Likewise.
579 * include/no-threads.h (_Jv_ThreadCancel): Removed.
580 (_Jv_ThreadDestroy): Likewise.
581 * include/posix-threads.h (struct _Jv_Thread_t): Removed
583 (_Jv_ThreadCancel): Removed decl.
584 (_Jv_ThreadDestroy): Removed.
585 * posix-threads.cc (_Jv_ThreadCancel): Removed.
586 (throw_cleanup): Removed.
587 (really_start): Don't push or pop cleanup.
588 (_Jv_ThreadInitData): Don't initialize `exception' field.
589 * java/lang/Thread.java (stop): Officially unimplemented.
590 * java/lang/natThread.cc (stop): Officially unimplemented.
592 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
594 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
597 1999-11-02 Tom Tromey <tromey@cygnus.com>
599 * boehm.cc: Don't include boehm-config.h.
601 1999-11-01 Tom Tromey <tromey@cygnus.com>
603 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
604 (sum_blocks): Removed.
605 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
607 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
609 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
611 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
612 * java/io/InputStreamReader (InputStreamReader): ditto.
614 1999-10-22 Tom Tromey <tromey@cygnus.com>
616 * Makefile.in: Rebuilt.
617 * Makefile.am (java/lang/ClassLoader.h): New target.
618 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
621 * include/java-props.h (_Jv_Compiler_Properties): Changed
623 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
624 * include/jvm.h (_Jv_GCSetInitialHeapSize,
625 _Jv_GCSetMaximumHeapSize): Declare.
626 (JvRunMain, _Jv_RunMain): Declare.
627 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
628 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
629 (_Jv_GCSetMaximumHeapSize): Likewise.
630 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
631 (_Jv_GCSetMaximumHeapSize): Likewise.
632 * prims.cc (parse_heap_size): New function.
633 (_Jv_SetInitialHeapSize): Likewise.
634 (_Jv_SetMaximumHeapSize): Likewise.
635 (_Jv_Compiler_Properties): New global.
636 * gij.cc (help): New function.
638 (heap_size): Likewise.
639 (heap_max_size): Likewise.
640 (main): Parse arguments. Set _Jv_Compiler_Properties.
641 Include <config.h>, <java-props.h>.
642 (_Jv_Compiler_Properties): Removed.
644 1999-10-18 Tom Tromey <tromey@cygnus.com>
646 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
648 (redirect): New static field.
649 * java/lang/ClassLoader.java (getSystemClassLoader): Now
651 (getVMClassLoader0): Removed.
652 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
654 (getSystemClassLoader): Implemented.
656 1999-10-16 Anthony Green <green@cygnus.com>
658 * java/lang/ClassLoader.java (getSystemResource): Use
659 getSystemClassLoader instead of ClassLoader.system.
660 (getSystemResourceAsStream): Ditto.
662 * java/lang/natClassLoader.cc (redirect): Make static and
663 remove #ifdef INTERPRETER so it is always defined.
664 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
665 returns a VMClassLoader.
667 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
668 PropertyResourceBundle if a properties file is found before a
669 ResourceBundle class.
671 1999-10-15 Tom Tromey <tromey@cygnus.com>
673 * gij.cc (main): Formatting fixes.
674 (_Jv_Compiler_Properties): Define.
675 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
677 (init_properties): Set properites from _Jv_Compiler_Properties.
678 * include/java-props.h (_Jv_Compiler_Properties,
679 _Jv_Environment_Properties): Declare.
681 * include/java-props.h: Added copyright.
683 1999-10-13 Anthony Green <green@cygnus.com>
685 * libtool-version: Catch up by incrementing current.
687 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
688 * configure, include/config.h.in: Rebuilt.
689 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
690 * configure.in: Added --disable-getenv-properties and new define
691 `DISABLE_GETENV_PROPERTIES'.
693 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
694 (next_property_key): New function.
695 (next_property_value): New function.
696 (process_gcj_properties): New function.
697 (JvRunMain): Call process_gcj_properties.
700 * java/lang/natSystem.cc (init_properties): Set properties defined
703 * include/java-props.h: New file.
705 * java/lang/natSystem.cc (init_properties): Add new properties to
706 conform with Java Product Versioning Specification.
708 1999-10-12 Tom Tromey <tromey@cygnus.com>
710 * configure: Rebuilt.
711 * configure.in: Fixed test for --disable-java-net.
713 1999-10-06 Tom Tromey <tromey@cygnus.com>
715 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
716 when building Canadian cross.
717 (NATIVE): Don't define when cross-compiling.
719 1999-10-04 Tom Tromey <tromey@cygnus.com>
721 * java/net/natPlainSocketImpl.cc: Don't include headers if
722 java.net is disabled.
724 * Makefile.in: Rebuilt.
725 * Makefile.am (ZINCS): Removed. This is defined in configure.in
726 when needed, and must be left empty when not needed.
728 1999-10-01 Anthony Green <green@cygnus.com>
730 * THANKS: Refreshed from htdocs version.
732 1999-10-01 Steve Chamberlain <sac@pobox.com>
734 * Makefile.in: Rebuilt.
735 * Makefile.am (ZINCS): Define
737 * configure: Rebuilt.
738 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
740 * java/lang/ieeefp.h: Add definitions for picoJava.
742 1999-10-01 Tom Tromey <tromey@cygnus.com>
744 * configure: Rebuilt.
745 * configure.in: Set classpath when invoking gcj. Use changequote
746 around sed invocation.
748 * java/net/natPlainSocketImpl.cc: Stub native functions if
749 DISABLE_JAVA_NET is defined.
750 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
751 typo in exception string.
752 (getTimeToLive): Likewise.
753 Stub native functions if DISABLE_JAVA_NET is defined.
754 * java/net/natInetAddress.cc: Stub native functions if
755 DISABLE_JAVA_NET is defined.
756 * configure.host: Disable java.net for mips-tx39.
757 * configure, include/config.h.in: Rebuilt.
758 * acconfig.h (DISABLE_JAVA_NET): Undefine.
759 * configure.in: Added --disable-java-net and new define
762 1999-09-30 Tom Tromey <tromey@cygnus.com>
764 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
766 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
770 1999-09-28 Tom Tromey <tromey@cygnus.com>
772 * configure: Rebuilt.
773 * configure.in (PROCESS): In POSIX case, only set if not already
775 * configure.host (PROCESS): Set in mips-tx39 case.
777 * aclocal.m4, configure: Rebuilt.
778 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
779 appropriate AC_PROG_ symbol.
781 1999-09-24 Tom Tromey <tromey@cygnus.com>
783 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
785 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
787 Fix for PR java.util/47:
788 * configure, include/config.h: Rebuilt.
789 * configure.in: Don't look for ctime or ctime_r.
790 * Makefile.in: Rebuilt.
791 * Makefile.am (nat_source_files): Don't mention natDate.cc.
792 * java/util/natDate.cc: Removed.
793 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
795 (getAvailableIDs): Rewrote.
796 (getTimeZone): Rewrote.
797 * java/util/Date.java (toGMTString): New method.
798 (toLocaleString): New method.
801 1999-09-23 Tom Tromey <tromey@cygnus.com>
803 * configure: Rebuilt.
804 * configure.in: Print message when checking to see if gcj can
805 handle -fuse-divide-subroutine.
807 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
809 * java/lang/FirstThread.java (run0): Renamed to `run'.
812 * prims.cc (main_init): New function.
813 (JvRunMain): Call it.
814 (_Jv_RunMain): Likewise.
816 (main_init): Ignore SIGPIPE. Fixes PR 51.
818 1999-09-22 Tom Tromey <tromey@cygnus.com>
820 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
822 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
824 * java/text/MessageFormat.java (MessageFormat(String)): Set the
826 * java/text/NumberFormat.java: Check that object is a Number. If
827 not, throw IllegialArgumentException.
829 1999-09-21 Tom Tromey <tromey@cygnus.com>
831 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
832 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
834 * include/posix-threads.h (_Jv_MutexDestroy): Use
836 (_Jv_MutexLock): Likewise.
837 (_Jv_MutexUnlock): Likewise.
839 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
840 previous patch; it too was incorrect.
841 * java/io/PrintStream.java (PrintStream): Likewise.
843 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
844 refer to `this' before calling superclass constructor.
845 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
846 before calling superclass constructor.
848 1999-09-20 Tom Tromey <tromey@cygnus.com>
850 * configure: Rebuilt.
851 * configure.in: Send output of `-fuse-divide-subroutine' test
852 compilation to /dev/null.
854 1999-09-14 Tom Tromey <tromey@cygnus.com>
856 * include/java-insns.h: Turned constants into an enum. Added
857 multiple-inclusion protection.
859 1999-09-10 Tom Tromey <tromey@cygnus.com>
861 * configure: Rebuilt.
862 * configure.in: Build include/Makefile.
863 * Makefile.in: Rebuilt.
864 * Makefile.am (SUBDIRS): Added gcj and include.
865 (install-data-local): New target.
866 (extra_headers): New macro.
867 * include/Makefile.in: New file.
868 * include/Makefile.am: New file.
870 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
871 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
873 * boehm.cc: Don't include java-threads.h or gcj/field.h.
874 * resolve.cc: Include config.h.
875 * defineclass.cc: Include config.h.
876 * include/java-interp.h: Don't include config.h.
877 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
880 * gcj/javaprims.h: Regenerated namespace decls.
881 * classes.pl (scan): Don't put `;' after closing brace.
883 * Makefile.in: Rebuilt.
884 * Makefile.am (INCLUDES): Added -I for top_srcdir.
885 * configure.in: Create gcj/Makefile.
886 * gcj/Makefile.in: New file.
887 * gcj/Makefile.am: New file.
888 * java/lang/Object.h: Don't include any other headers.
889 * gcj/array.h: Renamed from include/java-array.h.
890 * gcj/field.h: Renamed from include/java-field.h.
891 * gcj/method.h: Renamed from include/java-method.h.
892 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
893 Updated all files to reflect new include structure.
895 1999-09-09 Tom Tromey <tromey@cygnus.com>
897 * configure: Rebuilt.
898 * configure.in: Fixed typo; variable is THREADSPEC and not
901 1999-09-08 Tom Tromey <tromey@cygnus.com>
903 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
904 previous change and implemented a correct test in the __m_count
907 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
910 1999-09-07 Tom Tromey <tromey@cygnus.com>
912 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
913 code and don't set errno.
915 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
916 not `r'. Changed `done_sleeping' to a `bool'.
918 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
920 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
921 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
922 by another thread, rather than by the GC.
923 (_Jv_CondWait): Prevent premature thread wakeup by GC.
924 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
925 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
928 1999-09-03 Tom Tromey <tromey@cygnus.com>
930 * configure: Rebuilt.
931 * configure.in: Check for fstat function.
932 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
935 1999-09-02 Tom Tromey <tromey@cygnus.com>
937 * include/java-array.h (jobjectArrayjchar): Removed unused
940 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
941 _Jv_PrepareCompiledClass while holding class mutex.
943 1999-09-01 Tom Tromey <tromey@cygnus.com>
945 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
946 (_Jv_PthreadGetMutex): Use it.
947 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
948 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
949 (_Jv_MutexLock): Likewise.
950 (_Jv_MutexUnlock): Likewise.
951 * include/config.h.in: Rebuilt.
952 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
953 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
954 * configure: Rebuilt.
955 * libgcj.spec.in: Don't mention INTERPSPEC.
956 * configure.in (INTERPSPEC): Removed.
957 Only run pthreads-related checks when using POSIX threads. Check
958 for m_count and __m_count in mutex structure.
960 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
962 * java/lang/natClass.cc: Fixed notification of threads
963 when class initialization is complete.
965 1999-09-01 Tom Tromey <tromey@cygnus.com>
967 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
968 * resolve.cc: Removed constants defined by
969 java.lang.reflect.Modifier.
970 Include <java/lang/reflect/Modifier.h>.
971 (_Jv_ResolvePoolEntry): Use values from Modifier.
972 (_Jv_DetermineVTableIndex): Likewise.
973 (_Jv_PrepareClass): Likewise.
975 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
976 java.lang.reflect.Modifier.
977 Include <java/lang/reflect/Modifier.h>.
978 (checkExtends): Use values from Modifier.
979 (checkImplements): Likewise.
980 (handleField): Likewise.
981 (handleConstantValueAttribute): Likewise.
982 (handleFieldsEnd): Likewise.
983 (handleMethod ): Likewise.
984 (handleMethodsEnd): Likewise.
985 (handleClassBegin): Likewise.
986 * interpret.cc: Removed constants defined by
987 java.lang.reflect.Modifier.
988 (continue1): Use values from Modifier.
989 * java/lang/natClassLoader.cc: Removed constants defined by
990 java.lang.reflect.Modifier.
992 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
993 JV_STATE_NOTHING, not `0'.
994 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
996 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
997 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
999 (_Jv_PthreadGetMutex): New function.
1000 (_Jv_PthreadCheckMonitor): Use it.
1001 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
1002 (_Jv_MutexLock): Update `count'.
1003 (_Jv_MutexUnlock): Likewise.
1004 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1007 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
1009 * Makefile.am (.java.lo): Add rule.
1011 * Makefile.in: Rebuilt.
1013 1999-09-01 Tom Tromey <tromey@cygnus.com>
1015 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
1016 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
1018 (_Jv_CondNotify): Use it.
1019 (_Jv_CondNotifyAll): Likewise.
1021 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1023 1999-08-31 Tom Tromey <tromey@cygnus.com>
1025 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1028 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
1030 * posix-threads.cc: Include <errno.h>.
1032 1999-08-23 Tom Tromey <tromey@cygnus.com>
1034 * boehm.cc: Undefine TRUE and FALSE.
1036 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1038 1999-08-21 Tom Tromey <tromey@cygnus.com>
1040 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
1043 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
1045 * configure.in: Check for in_addr_t in netinet/in.h too. Check
1047 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
1048 (HAVE_STRUCT_IP_MREQ): Added.
1049 * configure, include/config.h.in: Rebuilt.
1050 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1052 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1053 Disable if ip_mreq is not available.
1055 * configure.in: Check types ssize_t and in_addr_t.
1056 * acconfig.h: Undefine them.
1057 * configure, include/config.h.in: Rebuilt.
1059 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1060 function that detects the signature of getpwuid_r.
1061 (init_properties): Use it.
1062 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1065 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1067 * interpret.cc (continue1): Implement explicit dispatch table.
1068 insn_target: Explicit interpreter switch table.
1069 SAVE_PC: New macro, moves pc saving code into instructions that
1071 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1072 PC_REGISTER_ASM: New macro.
1073 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1074 opcode: Remove local variable.
1075 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1076 (POKEI): Use _Jv_word.
1077 (iinc): Use _Jv_word.
1078 (dupx): Change reference argument (sp) to pointer.
1081 * interpret.cc: Remove instruction timing instrumentation.
1083 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1084 comment. Don't use _Jv_ClassNameSamePackage.
1086 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1087 URLPathEntry, CacheEntry}: Removed.
1089 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1091 (.java.lo): Rule removed.
1093 * Makefile.in: Rebuilt.
1095 1999-08-19 Tom Tromey <tromey@cygnus.com>
1097 * java/lang/natThread.cc (class locker): New class.
1098 (join): Use a locker around _Jv_CondWait.
1101 1999-08-18 Tom Tromey <tromey@cygnus.com>
1103 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1104 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1106 1999-08-18 Tom Tromey <tromey@cygnus.com>
1108 * include/javaprims.h ("Java"): Regenerated namespace decls.
1110 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1112 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1113 from _Jv_InternClassStrings.
1115 * prims.cc (_Jv_RunMain): New function.
1116 (JvRunMain): Remove gij-support.
1118 * gij.cc (main): Use _Jv_RunMain.
1120 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1122 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1123 argument in temp variable.
1124 (continue1): For all op_x2y insns, use temp variable for
1125 intermediate value. Also remove some comments.
1127 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1128 (forName): Don't call _Jv_InitClass.
1130 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1132 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1134 * java/util/jar/JarInputStream.java: New file.
1136 * java/util/jar/JarEntry.java: New file.
1138 * java/util/jar/JarFile.java: New file.
1140 * java/net/URLClassLoader.java: New file.
1142 * java/net/JarURLConnection.java: New file.
1144 * gnu/gcj/protocol/jar/Handler.java: New file.
1146 * gnu/gcj/protocol/jar/Connection.java: New file.
1148 * java/security/SecureClassLoader.java: New file.
1150 * java/lang/ClassLoader.java (parent): New variable.
1151 (ClassLoader (ClassLoader)): new constructor.
1152 (findClass): New method.
1153 (loadClass): Add default 1.2 implementation.
1154 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1155 (readfully): Removed.
1157 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1158 (findSystemClass): New method.
1159 (VMClassLoader): Constructor rewritten.
1161 All other methods removed.
1163 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1164 to gnu::gcj::runtime::VMClassLoader.
1165 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1167 (VMClassLoader::findSystemClass): renamed from findBootClass.
1169 * Makefile.am: Add new files.
1170 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1172 * Makefile.in: Rebuilt.
1174 1999-08-17 Tom Tromey <tromey@cygnus.com>
1176 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1178 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1181 1999-08-16 Tom Tromey <tromey@cygnus.com>
1183 * configure: Rebuilt.
1184 * configure.in: Set DIVIDESPEC to empty string if compiler does
1185 not support -fuse-divide-subroutine.
1187 1999-08-14 Per Bothner <per@bothner.com>
1189 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1190 * java/lang/natClass.cc (initializeClass): Likewise.
1191 * java/lang/ClassLoader.java (resolveClass0): New static method.
1192 (resolveClass): Call resolveClass0.
1193 (findSystemClass): No longer static.
1195 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1197 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1199 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1201 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1204 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1206 * Makefile: Rebuilt.
1207 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1210 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1213 * configure: Rebuilt.
1214 * configure.in: Properly align --help output, fix capitalization
1216 * acinclude.m4: Likewise.
1218 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1220 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1222 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1223 (_Jv_callInterpretedMethod): Unused. Remove.
1224 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1226 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1227 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1228 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1229 * interpret.cc: use _Jv_word.
1230 * defineclass.cc: use_Jv_word.
1231 * resolve.cc: Use _Jv_word.
1232 (_Jv_ResolvePoolEntry): Return _Jv_word.
1233 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1234 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1236 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1239 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1241 * configure: Rebuilt.
1242 * configure.in (sched_yield): Try librt first, then libposix4.
1243 Add -lrt, -lposix4 to THREADSPEC.
1245 1999-08-08 Anthony Green <green@cygnus.com>
1247 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1249 1999-08-08 Anthony Green <green@cygnus.com>
1251 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1254 1999-08-08 Anthony Green <green@cygnus.com>
1258 * include/config.h.in: Rebuilt.
1259 * acconfig.h: Add INTERPRETER.
1261 * Makefile.in: Rebuilt.
1262 * Makefile.am (libffi_files): Identify the libffi object files for
1263 inclusion in libgcj.
1264 (LIBFFIINCS): Define.
1266 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1267 Dummy definition for configurations without an interpreter.
1269 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1270 java::lang::Boolean constructor.
1272 * include/java-interp.h: Always include java-cpool.h.
1274 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1275 when INTERPRETER not defined.
1277 * java/lang/Class.h (finalize): Define.
1279 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1280 IOException from File.getCanonicalPath.
1281 (getStream): Likewise.
1284 * THANKS: More thanks.
1286 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1288 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1290 (_Jv_PrepareClass): Allow non-abstract classes to
1291 have abstract subclasses.
1292 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1294 * interpret.cc (continue1/perform_invoke): Don't sign extend
1296 (continue1/lshl,lshr): Push long, not int.
1297 (continue1/ulshr): Use UINT64, not long long.
1298 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1300 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1301 * java/lang/FirstThread.java (run): Add top-level exception
1303 (run0): Renamed from run.
1305 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1307 * configure.in (--with-interpreter): Added.
1308 * include/config.h.in (INTERPRETER): Added.
1310 * java/lang/ClassLoader.java: File replaced.
1311 * java/lang/VMClassLoader.java: New file.
1312 * java/lang/natClassLoader.cc: New file.
1313 * gnu/gcj/runtime/MethodInvocation.java: New file.
1314 * gnu/gcj/util/path/SearchPath.java: New file.
1315 * gnu/gcj/util/path/PathEntry.java: New file.
1316 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1317 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1318 * gnu/gcj/util/path/URLPathEntry.java: New file.
1319 * gnu/gcj/util/path/CacheEntry.java: New file.
1320 * include/java-interp.h: New file.
1321 * include/java-cpool.h: New file.
1322 * include/java-insns.h: New file.
1323 * defineclass.cc: New file.
1324 * interpret.cc: New file.
1325 * resolve.cc: New file.
1327 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1328 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1329 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1331 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1332 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1334 (initializeClass): Use new JV_ prefixed names. Also, call
1335 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1337 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1338 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1339 JV_STATE_LINKED): New.
1340 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1341 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1342 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1343 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1344 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1345 _Jv_InterpMethodInvocation): New friends for interpreter.
1347 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1348 include/java-cpool.h and renamed with JV_ prefix.
1350 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1352 (_Jv_UnregisterClass): New decl.
1354 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1355 class loader argument.
1356 (_Jv_FindClass): Use class loader.
1358 * prims.cc (_Jv_makeUtf8Const): New function.
1359 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1360 (_Jv_NewPrimArray): Ditto.
1361 (_Jv_FindClassFromSignature): Ditto.
1362 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1363 * java/lang/reflect/natMethod.cc (getType): Ditto.
1365 * include/java-field.h (_Jv_Field::isRef): Make robust for
1366 non-resolved contexts.
1368 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1369 Also, don't mark class->next field.
1371 * java/lang/VirtualMachineError.java: Added FIXME note.
1373 * configure.in (INTERPSPEC): New spec.
1374 * libgcj.spec.in: Added INTERPSPEC.
1375 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1376 gnu/gcj/runtime/MethodInvocation.
1377 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1378 (ordinary_java_source_files): Added above mentioned java classes.
1380 * configure: Rebuilt.
1381 * Makefile.in: Rebuilt.
1383 1999-08-06 Tom Tromey <tromey@cygnus.com>
1385 * configure: Rebuilt.
1386 * configure.in: Look for sched_yield in -lrt.
1388 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1390 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1391 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1392 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1394 (toString): Print correctly when `country' is empty.
1396 1999-08-04 Per Bothner <per@bothner.com>
1398 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1400 1999-08-02 Tom Tromey <tromey@cygnus.com>
1402 * aclocal.m4, configure: Rebuilt for new libtool.
1404 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1406 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1407 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1408 * java/net/ServerSocket.java: Define ANY_IF.
1409 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1410 all network interfaces.
1411 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1412 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1414 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1416 * java/io/natFile.cc (performMkdir): Remove FIXME.
1417 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1419 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1421 * configure.in: Check for bstring.h.
1422 * configure, include/config.h.in: Rebuilt.
1423 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1424 * java/net/natPlainSocketImpl.cc: Likewise.
1426 1999-07-31 Tom Tromey <tromey@cygnus.com>
1431 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1433 * configure.in: Check for struct hostent_data and need for
1434 -D_REENTRANT for gethostbyname_r declaration.
1435 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1436 (lookup): Use hostent_data for fixed_buffer.
1437 * configure, include/config.h.in: Rebuilt.
1439 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1441 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1442 available. Don't cast memmove args to (void*).
1443 * configure.in: Do not abort if memmove is not available.
1445 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1447 * java/lang/natString.cc (substring): optimize where substring is
1449 * java/io/File.java (getName): don't return separator with file name.
1450 * java/io/natFile.cc (attr): fix overflow.
1452 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1454 * mauve-libgcj: Disable Object Serialization tests.
1456 1999-07-20 Warren Levy <warrenl@cygnus.com>
1458 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1459 Default to using PlainDatagramSocketImpl.
1460 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1462 1999-07-19 Tom Tromey <tromey@cygnus.com>
1464 * include/stamp-h.in: New file.
1466 1999-07-12 Tom Tromey <tromey@cygnus.com>
1468 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1471 1999-07-07 Andrew Haley <aph@cygnus.com>
1473 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1474 bytes to make it point after the instruction where the trap
1476 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1478 1999-07-07 Tom Tromey <tromey@cygnus.com>
1480 * mauve-libgcj: Explicitly enable formerly disabled java.text
1483 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1486 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1488 * java/net/URL.java (equals): Compare strings using String.equals.
1489 * java/net/URL.java (sameFile): Ditto.
1491 1999-07-02 Warren Levy <warrenl@cygnus.com>
1493 * configure: Rebuilt.
1494 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1495 * include/config.h.in: Rebuilt.
1496 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1497 (mcastGrp): Updated FIXME comments.
1498 (setOption): Fixed typo.
1499 (getOption):Implemented IP_MULTICAST_IF.
1501 1999-07-02 Warren Levy <warrenl@cygnus.com>
1503 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1504 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1505 (getTimeToLive): Implemented.
1506 (setOption): Implemented IP_MULTICAST_IF.
1508 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1510 * java/lang/String.java (toString): Check for this == null and throw
1511 NullPointerException.
1513 1999-07-01 Warren Levy <warrenl@cygnus.com>
1515 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1516 to count and revised comments to match.
1517 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1518 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1519 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1520 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1521 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1522 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1524 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1526 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1527 properly as count rather than outlength.
1528 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1529 output on overflow rather than buffer fill.
1530 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1531 if markPos is 0 and there is still room in the buffer.
1533 1999-07-01 Andrew Haley <aph@cygnus.com>
1535 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1536 This is a workaround for a bug in glibc's pthreads package which
1537 doesn't deliver any sigcontext information to a signal handler.
1539 1999-06-24 Tom Tromey <tromey@cygnus.com>
1541 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1542 * java/lang/fdlibm.h (HUGE): Conditionally define.
1544 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1546 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1547 * java/lang/e_log.c: Don't use __uint32_t.
1549 1999-05-27 Eric Christopher <echristo@cygnus.com>
1551 * configure: Rebuilt
1552 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1553 * acconfig.h: Rebuilt
1554 * include/config.h.in: Rebuilt
1556 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1557 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1558 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1559 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1560 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1561 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1562 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1563 and namespace collision with __uint32_t
1565 1999-06-23 Tom Tromey <tromey@cygnus.com>
1567 * java/util/zip/InflaterInputStream.java (read): Throw
1568 ZipException if inflater throws a DataFormatException.
1570 1999-06-23 Warren Levy <warrenl@cygnus.com>
1572 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1573 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1574 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1575 is not final per JDK.
1576 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1578 * java/util/zip/DataFormatException.java: Class extends Exception.
1579 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1580 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1581 * java/util/zip/ZipInputStream.java: ditto.
1582 (closeEntry): Changed method name to match JDK spec.
1584 1999-06-21 Tom Tromey <tromey@cygnus.com>
1586 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1589 * Makefile.in: Rebuilt.
1590 * Makefile.am (toolexeclibdir): Define as libdir when
1592 * configure: Rebuilt.
1593 * configure.in (USE_LIBDIR): New conditional.
1595 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1597 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1598 hostname in returned InetAddress objects.
1599 (getLocalHostname): Fix typo.
1600 * java/net/InetAddress.java (getByName): Set hostname on return
1602 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1605 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1607 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1608 interfaces if host==NULL.
1609 (accept): Throw message with InterruptedIOException.
1610 (getOption): Cache localAddress.
1611 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1612 'address' for DatagramSocket.
1613 (setTimeToLive): Fix compiler warnings.
1614 (getOption): Cache localAddress.
1615 * java/net/Socket.java (getLocalAddress): Don't need local
1616 InetAddress object. Add FIXME comment about calling checkConnect().
1617 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1618 connection queue to 50 as per JDK 1.2 docs.
1619 (ServerSocket(int,int)): Listen on all network interfaces by
1620 default, per JDK 1.2 docs.
1621 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1622 Add localAddress caching.
1624 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1626 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1628 (write(byte[],int,int)): ditto.
1630 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1632 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1634 1999-06-11 Warren Levy <warrenl@cygnus.com>
1636 * mauve-libgcj: Activated java.net Mauve tests.
1638 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1640 * java/net/natInetAddress.cc (aton): Fix typos.
1641 (lookup): Use a bigger buffer size for gethostbyname_r on all
1642 versions of glibc. Updated FIXME comment explaining this.
1643 Modified while loops to not set herr = ERANGE to work around glibc
1644 problems. Use user specified hostname in InetAddress result when
1645 available (consistent with JDK).
1647 1999-06-10 Warren Levy <warrenl@cygnus.com>
1649 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1650 Throw FileNotFoundException instead of IOException.
1652 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1654 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1655 in static field name.
1656 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1657 throughout rather than ParseException.
1659 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1661 * java/lang/Runtime.java (exec): Convert prog name and arguments
1663 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1664 environment array conversion. Preserve current environment if envp
1665 not passed. Preserve PATH unless explicitly specified.
1666 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1667 followed by EOF. Set a flag when a line is terminated by '\r' and
1668 ignore following '\n' if set.
1670 1999-06-02 Warren Levy <warrenl@cygnus.com>
1672 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1673 Ignore context if spec is an absolute URL. Fix braindead
1675 (hashCode): Use JDK 1.2 style algorithm.
1676 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1677 context URL properly.
1679 1999-05-30 Anthony Green <green@cygnus.com>
1681 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1682 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1684 1999-05-28 Warren Levy <warrenl@cygnus.com>
1686 * java/net/DatagramSocket.java (laddr): Removed.
1687 (DatagramSocket): Removed attempts to get or set laddr if null.
1688 (getLocalAddress): Reimplemented per spec.
1689 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1691 (joinGroup): Throw NullPointerException if any argument is null.
1692 (leaveGroup): ditto.
1693 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1694 * java/net/PlainSocketImpl.java (timeout): Added.
1695 (getInputStream): Added FIXME comment on how to support timeouts
1697 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1698 * java/net/Socket.java: Added FIXME comments to identify
1699 conflicting specs between the JCL and JDK 1.2 documents.
1700 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1701 if host is null. Get localport value resolved by kernel if bind
1703 (receive): Implemented support for timeouts in UDP.
1704 (setOption): Implemented based on natPlainSocketImpl version.
1706 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1707 resolved by kernel if bind lport is 0.
1708 (connect): Get localport value resolved by kernel if bind wasn't
1709 done to set localport.
1710 (accept): Implemented support for timeouts for ServerSocket.
1711 (setOption): Save value for SO_TIMEOUT.
1712 (getOption): Return timeout for SO_TIMEOUT.
1714 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1716 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1717 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1718 (setOption): Made abstract.
1719 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1720 to avoid cpp conflicts in native code.
1721 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1722 cpp conflicts in native code.
1723 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1724 * java/net/Socket.java (getLocalAddress): Implemented.
1725 (setTcpNoDelay): Implemented.
1726 (getTcpNoDelay): Implemented.
1727 (setSoLinger): Implemented.
1728 (getSoLinger): Implemented.
1729 (getSoTimeout): Verify class type.
1730 (setSendBufferSize): Implemented.
1731 (getSendBufferSize): Implemented.
1732 (setReceiveBufferSize): Implemented.
1733 (getReceiveBufferSize): Implemented.
1734 (toString): Prepended "Socket".
1735 * java/net/SocketImpl.java (toString): Rewritten.
1736 (getOption): Made abstract.
1737 (setOption): Made abstract.
1738 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1739 (setOption): Implemented.
1740 (getOption): Implemented.
1742 1999-05-26 Warren Levy <warrenl@cygnus.com>
1744 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1745 address when null. Set SO_REUSEADDR for multicasts.
1746 (getSoTimeout): Implemented.
1747 (setSoTimeout): Implemented.
1748 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1749 * java/net/MulticastSocket.java (getInterface): Implemented.
1750 (setInterface): Implemented.
1751 (setTimeToLive): Check for invalid ttl.
1752 (joinGroup): Verify multicast address and security.
1753 (leaveGroup): Verify multicast address and security.
1754 (send): Implemented.
1755 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1761 (getTTL): Implemented as non-native.
1765 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1766 (getSoTimeout): Implemented.
1767 (setSocketFactory): Made synchronized.
1768 * java/net/Socket.java (setSoTimeout): Implemented.
1769 (getSoTimeout): Implemented.
1770 (close): Made synchronized.
1771 (setSocketImplFactory): Made synchronized.
1772 * java/net/SocketImpl.java: Implement SocketOptions interface.
1773 * java/net/natInetAddress.cc: Corrected module name at top of file.
1774 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1775 (bind): Added FIXME.
1776 (peek): Implemented.
1782 (setOption): Implemented for SO_REUSEADDR.
1783 (getOption): Implemented for SO_REUSEADDR.
1785 1999-05-24 Tom Tromey <tromey@cygnus.com>
1787 * java/util/ResourceBundle.java (getBundle): Throw
1788 NullPointerException if baseName is null.
1790 1999-05-22 Tom Tromey <tromey@cygnus.com>
1792 * java/util/zip/ZipInputStream.java (fill): New method.
1793 (compressed_len): New instance variable.
1794 (getNextStream): Set it.
1795 (read): Reset inflater on EOF. Only read via `super' if entry is
1797 (skip): Only skip via `super' if entry is deflated.
1798 * java/util/zip/Deflater.java (last_input_count): Removed.
1799 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1801 (needsInput): Don't use last_input_count.
1802 (setInput): Don't set last_input_count.
1803 * java/util/zip/natInflater.cc (getRemaining): Return correct
1805 (inflate): Return 0 if input array is length 0.
1806 (setInput): Don't set last_input_count.
1807 * java/util/zip/Inflater.java (last_input_count): Removed.
1809 1999-05-21 Tom Tromey <tromey@cygnus.com>
1811 * Makefile.in: Rebuilt.
1812 * Makefile.am (INCLUDES): Added $(ZINCS).
1813 * configure: Rebuilt.
1814 * configure.in (ZINCS): New subst.
1816 1999-05-21 Andrew Haley <aph@cygnus.com>
1818 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1819 to signal options to allow the same exceptions to be rethrown
1822 1999-05-20 Andrew Haley <aph@cygnus.com>
1824 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1826 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1827 (INIT_FPE): Exception string made more informative.
1828 * include/sparc-signal.h (INIT_FPE): Exception string made more
1830 * testsuite/libjava.lang/Divide_1.java: New file.
1831 * testsuite/libjava.lang/Divide_1.out: New file.
1833 1999-05-19 Tom Tromey <tromey@cygnus.com>
1835 * aclocal.m4, configure: Rebuilt.
1836 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1838 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1841 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1843 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1845 (update): Fail in default case. Always initialize `strat'.
1847 * mauve-libgcj: Enable java.util.zip.
1849 1999-05-18 Warren Levy <warrenl@cygnus.com>
1851 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1852 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1853 PlainDatagramSocketImpl.java, and SocketOptions.java.
1854 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1855 * Makefile.in: Rebuilt.
1857 * java/net/DatagramPacket.java: New file.
1858 * java/net/DatagramSocket.java: New file.
1859 * java/net/DatagramSocketImpl.java: New file.
1860 * java/net/MulticastSocket.java: New file.
1861 * java/net/PlainDatagramSocketImpl.java: New file.
1862 * java/net/SocketOptions.java: New file.
1863 * java/net/natPlainDatagramSocketImpl.cc: New file.
1865 1999-05-18 Tom Tromey <tromey@cygnus.com>
1867 * java/util/zip/ZipOutputStream.java (level): Initial value is
1868 Deflater.DEFAULT_COMPRESSION.
1869 (close): New method.
1870 (closeEntry): Likewise.
1872 (put_version): Likewise.
1873 (write_entry): Likewise.
1874 (put2, put4): Now return `int'.
1875 (comment): Default to empty string.
1876 (bytes_written): New instance variable.
1878 * java/util/zip/ZipEntry.java (setComment): Limit length of
1880 (setCrc): Check CRC validity.
1881 (setExtra): Check argument validity.
1882 (setMethod): Likewise.
1883 (setSize): Likewise.
1884 (ZipEntry): Likewise.
1885 * include/javaprims.h: Updated namespace declarations.
1886 * Makefile.in: Rebuilt.
1887 * Makefile.am (ordinary_java_source_files): Mention new files.
1888 (nat_source_files): Likewise.
1889 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1892 (getInputStream): Handle compressed entries.
1893 * java/util/zip/GZIPOutputStream.java: New file.
1894 * java/util/zip/GZIPInputStream.java: New file.
1895 * java/util/zip/DataFormatException.java: New file.
1896 * java/util/zip/CheckedInputStream.java: New file.
1897 * java/util/zip/CheckedOutputStream.java: New file.
1898 * java/util/zip/InflaterInputStream.java: Implemented.
1899 * java/util/zip/natInflater.cc: New file.
1900 * java/util/zip/Deflater.java: Implemented.
1901 * java/util/zip/natDeflater.cc: New file.
1902 * java/util/zip/DeflaterOutputStream.java: Implemented.
1904 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1905 ZipException, not IOException.
1906 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1909 1999-05-17 Tom Tromey <tromey@cygnus.com>
1911 * java/lang/natSystem.cc (init_properties): URL now points to
1914 1999-05-12 Per Bothner <bothner@cygnus.com>
1916 * java/util/Calendar.java (set): First call computeFields if needed.
1917 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1919 1999-05-12 Tom Tromey <tromey@cygnus.com>
1921 * configure: Rebuilt.
1922 * configure.in: Look for -ldl when using the Boehm collector.
1923 Look for sched_yield in -lposix4.
1925 1999-05-12 Per Bothner <bothner@cygnus.com>
1927 * java/io/File.java (mkdirs): Handle a null parent directory.
1929 1999-05-12 Tom Tromey <tromey@cygnus.com>
1931 * include/javaprims.h: Updated namespace declarations.
1932 * classes.pl (scan): Uniquify class list.
1933 * Makefile.in, configure: Rebuilt.
1934 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1935 (built_java_source_files): New macro.
1936 (nat_headers): Added built_java_source_files.
1937 (javao_files): Likewise.
1938 (EXTRA_libgcj_la_SOURCES): Likewise.
1939 (libgcj.zip): Create built class files.
1940 ($(built_java_source_files:.java=.class)): New target.
1941 (jv_convert_LDADD): Added -L$(here)/.libs.
1942 * configure.in: Create links for ConcreteProcess.java and
1943 natConcreteProcess.cc.
1944 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1945 * java/lang/natEcosProcess.cc: New file.
1946 * java/lang/EcosProcess.java: New file.
1947 * java/lang/PosixProcess.java: New file.
1948 * java/lang/natPosixProcess.cc: New file.
1950 1999-05-12 Warren Levy <warrenl@cygnus.com>
1952 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1953 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1954 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1955 (connect): Throw ConnectException.
1957 1999-05-11 Tom Tromey <tromey@cygnus.com>
1959 * Makefile.in: Rebuilt.
1960 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1961 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1964 * Makefile.in: Rebuilt.
1965 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1966 and it causes problems with libtool.
1968 * Makefile.in, configure: Rebuilt.
1969 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1970 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1971 (jv_convert_DEPENDENCIES): Added ZDEPS.
1972 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1974 (THREADSPEC): Added `-L' to point to qthreads build directory.
1978 * configure, Makefile.in: Rebuilt.
1979 * Makefile.am (toolexeclib_DATA): New macro.
1980 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1981 Recognize --with-system-zlib.
1982 (GCSPEC): New subst.
1983 (THREADSPEC): New subst.
1984 (SYSTEMSPEC): New subst.
1985 (ZLIBSPEC): New subst.
1986 * libgcj.spec.in: New file.
1988 1999-05-10 Tom Tromey <tromey@cygnus.com>
1990 * java/io/InputStreamReader.java (read): If length is 0, return
1991 0. Reset `wpos' and `wcount' when buffer has been filled and
1994 * java/util/Properties.java (save): Removed `FIXME' comment.
1995 (load): Invalid characters in \u now treated as terminators.
1996 Make sure to append character resulting from `\' handling.
1997 Cast to `char' when appending to key or value.
1998 (skip_ws): Inverted test for whitespace.
2000 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
2002 (readLine): Likewise.
2003 (readFully): Implemented.
2005 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
2007 * java/awt/natToolkit.cc: Added copyright header.
2008 * java/util/zip/InflaterInputStream.java: Added copyright header.
2010 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
2012 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
2014 (getNextStream): Likewise.
2016 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
2018 (getBundle): Don't explicitly throw null pointer exception.
2020 * gnu/gcj/RawData.java: Added copyright header.
2022 * include/jni.h (_Jv_va_list): Always define as va_list.
2024 1999-05-9 Anthony Green <green@cygnus.com>
2026 * java/text/DateFormat.java (computeInstance): Separate time
2028 (getDateTimeInstance): Ditto.
2029 (getDateTimeInstance(int,int)): New method.
2031 * Makefile.in: Rebuilt.
2032 * Makefile.am (ordinary_java_source_files): Add new classes.
2034 * java/util/PropertyResourceBundle.java: New file.
2035 * gnu/gcj/util/EnumerationChain.java: New file.
2037 1999-05-07 Tom Tromey <tromey@cygnus.com>
2039 * acconfig.h (GCJVERSION): New undef.
2040 * java/lang/natSystem.cc (init_properties): Define java.version,
2041 java.class.version, os.name, os.arch, os.version.
2042 Include <sys/utsname.h> if required.
2043 * configure: Rebuilt.
2044 * configure.in: Compute and define GCJVERSION.
2046 * java/lang/natSystem.cc (default_file_encoding): Now static.
2048 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
2050 * libtool-version: New file.
2051 * Makefile.in: Rebuilt.
2052 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2055 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2056 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2059 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2060 (we pick those up already).
2062 1999-05-05 Per Bothner <bothner@cygnus.com>
2064 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2065 stub classes. (This is enough to get Kawa to compile against libgcj.)
2067 * gnu/gcj/RawData.java: New class.
2068 * doc/cni.sgml: Document RawData.
2070 * java/util/zip/InflaterInputStream.java: New stub class.
2071 * java/util/zip/ZipInputStream.java: New class. Partly works.
2072 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2073 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2074 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2075 * java/util/zip/ZipOutputStream.java: Start implementation.
2077 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2078 (default_file_encoding): New global, initial value is above macro.
2079 (init_properties): Default file.encoding to default_file_encoding.
2081 * Makefile.am: Add new classes.
2083 1999-05-05 Tom Tromey <tromey@cygnus.com>
2085 * Makefile.in: Rebuilt.
2086 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2087 (clean-local): New target
2089 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2090 (load, loadLibrary): Now native.
2092 * java/lang/Runtime.java (load, loadLibrary): Now native.
2093 (init): New native method.
2094 (Runtime): Use init.
2095 * prims.cc: Include <ltdl.h> if required.
2096 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2098 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2100 * configure.in: Switch from irix threads to posix threads
2101 * configure: Regenerate.
2103 1999-04-30 Tom Tromey <tromey@cygnus.com>
2105 * Makefile.in: Rebuilt.
2106 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2108 1999-04-29 Tom Tromey <tromey@cygnus.com>
2110 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2113 * java/util/Locale.java (Locale(String,String)): Implement in
2114 terms of 3-argument version; variant now defaults to empty
2116 (toString): Assume variant is not null.
2117 (equals): Assume all strings are not null.
2118 (Locale): Throw NullPointerException if any argument is null.
2120 * java/util/ResourceBundle.java (getBundle): Don't try the base
2121 name; now implicit in partialGetBundle call.
2122 (trySomeGetBundle): Search for parent bundles and call setParent
2124 (partialGetBundle): Added `langStop' argument. Use
2125 `Locale.toString' to compute bundleName.
2126 (resource_cache): New static field.
2127 (partialGetBundle): Cache the returned resource bundle. Now
2130 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2133 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2134 * java/text/natCollator.cc (decomposeCharacter): `base' now
2136 * Makefile.in: Rebuilt.
2137 * Makefile.am (ordinary_java_source_files): Added
2138 CollationElementIterator, CollationKey, Collator,
2140 (nat_source_files): Added natCollator.cc.
2141 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2142 (compare): Pass `this' to CollationElementIterator constructor.
2143 (getCollationElementIterator): Likewise.
2144 (ceiNext): Fix off-by-one error when finding initial substring.
2145 (next): Correctly mask off bits when computing return value.
2146 Fixed return values when one string is shorter than the other.
2147 * java/text/CollationElementIterator.java (collator): New field.
2148 (CollationElementIterator): Added collator argument.
2149 (next): Call ceiNext on collator object.
2151 1999-04-26 Tom Tromey <tromey@cygnus.com>
2153 * natCollator.cc: New file.
2155 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2156 (GregorianCalendar): Use it in all constructors.
2157 * java/util/Calendar.java (Calendar): Changed argument name to
2158 `zone' to match code.
2160 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2161 * java/text/CollationKey.java: New file.
2162 * java/text/CollationElementIterator.java: New file.
2163 * java/text/Collator.java: New file.
2164 * java/text/RuleBasedCollator.java: New file.
2166 * Makefile.in: Rebuilt.
2167 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2168 (jv_convert_LDADD): Explicltly add -lm -lc.
2170 1999-04-26 Tom Tromey <tromey@cygnus.com>
2172 * configure, Makefile.in: Rebuilt.
2173 * configure.in: Added AM_PROG_LIBTOOL.
2174 (GCOBJS): Use `.lo' form of files.
2175 (THREADOBJS): Likewise.
2176 (GCDEPS): Use `.la' form of library.
2177 (GCLIBS): Set to be the same as GCDEPS.
2178 (THREADDEPS): Use `.la' form of library.
2179 (THREADLIBS): Set to be the same as THREADDEPS.
2180 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2181 toolexeclib_LIBRARIES.
2182 (libgcj_la_SOURCES): Renamed for libtoolization.
2183 (EXTRA_libgcj_la_SOURCES): Likewise.
2184 (libgcj_la_DEPENDENCIES): Likewise.
2185 (libgcj_la_LIBADD): Likewise.
2186 ($(nat_files)): Use LTCXXCOMPILE.
2187 ($(c_files)): Use LTCOMPILE.
2188 (GCJCOMPILE): New macro.
2190 (.java.o): Likewise.
2191 ($(javao_files)): Likewise.
2192 (jv_convert_LINK): Use LIBTOOL.
2193 (nat_files): Use `.lo' files.
2194 (c_files): Likewise.
2195 (javao_files): Likewise.
2196 (.class.lo): Renamed.
2197 (.java.lo): Likewise.
2198 ($(nat_files)): Depend on %.lo.
2199 ($(c_files)): Likewise.
2200 ($(javao_files)): Likewise.
2201 (jv_convert_LDADD): Link against .lo files.
2202 (jv_convert_DEPENDENCIES): Depend on .lo files.
2203 (maintainer-check): Depend on libgcj.la, but examine .a file.
2204 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2205 (libgcj_la_LDFLAGS): New macro.
2207 1999-04-23 Warren Levy <warrenl@cygnus.com>
2209 * Makefile.am: Added URLDecoder and URLEncoder.
2210 * Makefile.in: Rebuilt.
2212 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2213 setSocketImplFactory to match spec.
2214 * java/net/Socket.java (getSoLinger): Changed return type to
2217 * java/net/URLDecoder.java: New file.
2218 * java/net/URLEncoder.java: New file.
2220 1999-04-21 Tom Tromey <tromey@cygnus.com>
2222 * java/lang/natString.cc (getBytes): Reverted earlier change and
2223 applied correct fix from Per Bothner.
2225 * java/lang/String.java: Don't throw
2226 UnsupportedEncodingException.
2228 * java/lang/natString.cc (getBytes): Correctly size result
2229 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2231 1999-04-20 Andrew Haley <aph@cygnus.com>
2233 * include/sparc-signal.h: new file.
2234 * configure.in: include/sparc-signal.h added.
2235 * configure: regenerated.
2236 * prims.cc (JvRunMain): signal handling code rewritten to be more
2238 (catch_segv): ditto.
2240 * include/i386-signal.h: reorganized.
2241 * include/default-signal.h: reorganized.
2243 1999-04-19 Tom Tromey <tromey@cygnus.com>
2245 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2246 once. From Anthony Green.
2248 1999-04-19 Andrew Haley <aph@cygnus.com>
2250 * Makefile.in: Processed with new automake.
2252 1999-04-19 Tom Tromey <tromey@cygnus.com>
2254 * include/javaprims.h: Removed security namespace.
2256 1999-04-20 Anthony Green <green@cygnus.com>
2258 * java/io/PrintStream.java (println): Remove extra println.
2260 1999-04-19 Anthony Green <green@cygnus.com>
2262 * Makefile.in: Rebuilt.
2263 * Makefile.am (ordinary_java_source_files): Add new security files.
2265 * java/security/NoSuchAlgorithmException.java,
2266 java/security/MessageDigest.java: New files.
2268 * include/javaprims.h: Add security namespace.
2270 1999-04-16 Per Bothner <bothner@cygnus.com>
2272 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2273 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2274 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2275 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2276 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2277 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2278 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2279 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2280 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2281 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2282 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2283 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2284 * Makefile.am: Various changes for new files and conversions.
2286 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2287 New overloading, allows greater efficiency.
2288 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2289 New overloading (for efficiency - avoids copying).
2291 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2292 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2294 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2295 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2296 (writeChars): Don't be quite so eager to flush.
2297 * java/io/PrintStream.java: Rewrite. Now more similar to
2298 OutputStreamWriter, using explicit UnicodeToBytes converter.
2299 Also, autoflush does not need to flush so often.
2300 * java/lang/natString.cc (getBytes): More efficient algorithm.
2301 (init(jbyteArray,jint,jint,jstring)): More efficient.
2303 1999-04-15 Warren Levy <warrenl@cygnus.com>
2305 * Makefile.am (ordinary_java_source_files): Added new Connection
2306 and Handler classes in gnu.gcj.protocol.file package.
2307 * Makefile.in: Rebuilt.
2309 * gnu/gcj/protocol/file/Connection.java: New file.
2310 * gnu/gcj/protocol/file/Handler.java: New file.
2311 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2312 if doInput allows input.
2313 (getOutputStream): Check if doOutput allows output.
2314 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2316 1999-04-14 Tom Tromey <tromey@cygnus.com>
2318 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2319 buffer larger to work around bug.
2320 From Bryce McKinlay <bryce@albatross.co.nz>.
2322 1999-04-14 Andrew Haley <aph@cygnus.com>
2324 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2325 NaNs are always converted to the same long value.
2326 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2329 1999-04-13 Tom Tromey <tromey@cygnus.com>
2331 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2332 instead switch on actual element type.
2334 * Makefile.in: Rebuilt.
2335 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2337 1999-04-13 Andrew Haley <aph@cygnus.com>
2339 * include/i386-signal.h, include/default-signal.h: New files.
2340 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2342 (catch_fpe): New function.
2343 * configure.in: Make link to appropriate include/java-signal.h.
2344 * configure: Rebuilt.
2345 * Makefile.am: include/java-signal.h added to dependency list.
2346 * Makefile.in: Rebuilt.
2348 1999-04-12 Urban Widmark <urban@svenskatest.se>
2350 * java/io/DataInputStream.java (readLine): Corrected handling of
2351 empty lines, from null to "".
2353 1999-04-12 Tom Tromey <tromey@cygnus.com>
2355 * Makefile.in: Rebuilt.
2356 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2358 * java/lang/natSystem.cc (SystemClass): New define.
2359 (init_properties): Synchronize.
2361 1999-04-08 Geoff Berry <gcb@gnu.org>
2363 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2364 * natPlainSocketImpl.cc (accept): Add missing else if check
2367 1999-04-08 Tom Tromey <tromey@cygnus.com>
2369 * java/lang/Long.java (parseLong): Corrected overflow detection
2371 * java/lang/Integer.java (parseInt): Corrected overflow detection
2374 * java/io/PrintStream.java (print): Handle null string argument.
2375 (println): Likewise.
2377 1999-04-07 Warren Levy <warrenl@cygnus.com>
2379 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2380 Set count to 0 when InputStreamReader returns -1 for EOF.
2382 1999-04-07 Tom Tromey <tromey@cygnus.com>
2384 * mauve-libgcj: Omit java.text.Collator,
2385 java.text.RuleBasedCollator.
2387 1999-04-06 Tom Tromey <tromey@cygnus.com>
2389 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2390 IOException from getHttpHeaders().
2391 (getHeaderFieldKey): Likewise.
2393 * include/javaprims.h: Regenerated declarations.
2395 * Makefile.in: Rebuilt.
2396 * Makefile.am (ordinary_java_source_files): Updated for removed
2399 1999-04-06 Per Bothner <bothner@cygnus.com>
2401 * java/util/zip/Adler32.java: New class.
2402 * java/util/zip/CRC32.java: Add working method bodies.
2403 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2404 * Makefile.in: Re-generate.
2406 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2408 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2409 from version in removed www hierarchy.
2410 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2411 version in removed www hierarchy.
2413 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2414 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2415 * gnu/gcj/www/protocol/http: Removed dir.
2416 * gnu/gcj/www/protocol: Removed dir.
2417 * gnu/gcj/www: Removed dir.
2419 * java/net/HttpURLConnection.java: Revised comments to indicate
2420 missing JDK 1.2 methods.
2422 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2423 hierarchy rather than the gnu/gcj/www/protocol one.
2424 * java/net/URLConnection.java: Updated status comments.
2425 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2426 the gnu/gcj/www/content one.
2428 1999-04-06 Per Bothner <bothner@cygnus.com>
2430 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2431 The gen-from-JIS program is in $(CONVERT_DIR).
2433 1999-04-06 Tom Tromey <tromey@cygnus.com>
2435 * mauve-libgcj: Renamed from mauve-libjava.
2437 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2439 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2440 (getResponseMessage): Implemented.
2441 (getResponseVals): New private method.
2443 * java/net/URLConnection.java (getContent): Implemented.
2444 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2446 1999-04-05 Tom Tromey <tromey@cygnus.com>
2448 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2449 (jv_convert_SOURCES): Renamed.
2450 (EXTRA_jv_convert_SOURCES): Likewise.
2451 (jv_convert_LDFLAGS): Likewise.
2452 (jv_convert_LINK): Likewise.
2453 (jv_convert_LDADD): Likewise.
2454 (jv_convert_DEPENDENCIES): Likewise.
2456 * Makefile.in: Rebuilt.
2457 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2460 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2462 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2463 method for comparison.
2465 * java/net/URLConnection.java (getContentLength): Implemented.
2466 (getContentType): Implemented.
2467 (getContentEncoding): Implemented.
2468 (getExpiration): Implemented.
2469 (getDate): Implemented.
2470 (getLastModified): Implemented.
2471 (getHeaderFieldInt): Implemented.
2472 (getHeaderFieldDate): Implemented.
2474 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2476 * java/net/URLConnection.java (toString): Implemented.
2477 (setContentHandlerFactory): Implemented.
2478 (setContentHandler): Wrote new private helper method.
2480 1999-04-01 Tom Tromey <tromey@cygnus.com>
2482 * Makefile.in: Rebuilt.
2483 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2484 of 1999-03-31; we always want to build all the .class files.
2485 Depend on java_source_files, not libgcj.zip.
2486 (nat_headers): Define in terms of ordinary_java_source_files.
2488 1999-03-31 Tom Tromey <tromey@cygnus.com>
2490 * Makefile.in: Rebuilt.
2491 * Makefile.am (special_java_source_files): New macro.
2492 (java_source_files): Use it.
2493 (ordinary_java_source_files): New macro.
2494 (java_source_files): Use it.
2495 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2496 creating headers for those files with hand-maintained headers.
2498 * include/javaprims.h: Regenerated namespace declarations.
2499 * classes.pl (scan): Include [0-9] in regexp for matching class
2500 names; for java.util.zip.CRC32.
2502 * Makefile.in: Rebuilt.
2503 * Makefile.am (nat_headers): Redefined to generate all possible
2506 * java/util/zip/ZipException.java: In package java.util.zip, not
2509 1999-03-30 Tom Tromey <tromey@cygnus.com>
2511 * configure: Rebuilt.
2512 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2513 eh-common.h when not building in tree with gcc.
2515 * Makefile.in: Rebuilt.
2516 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2517 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2519 ($(java_source_files:.java=.class)): New target.
2521 * Makefile.in: Rebuilt.
2522 * Makefile.am (java_source_files): Added
2523 java/net/HttpURLConnection.java and
2524 gnu/gcj/www/protocol/http/Connection.java.
2526 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2528 * gnu/gcj/www/protocol/http/Connection.java: New file.
2529 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2530 * java/net/HttpURLConnection.java: New file.
2531 * java/net/URLConnection.java (getHeaderField): Implemented default.
2532 (getHeaderFieldKey): Implemented default method.
2534 1999-03-30 Tom Tromey <tromey@cygnus.com>
2536 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2538 * java/util/zip/Deflater.java: Added copyright header.
2539 * java/util/zip/CRC32.java: Added copyright header.
2541 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2542 that it is automatically generated.
2543 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2545 * gnu/gcj/convert/BytesToUnicode.java,
2546 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2547 gnu/gcj/convert/Input_EUCJIS.java,
2548 gnu/gcj/convert/Input_UTF8.java,
2549 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2550 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2551 gnu/gcj/convert/Output_8859_1.java,
2552 gnu/gcj/convert/Output_JavaSrc.java,
2553 gnu/gcj/convert/Output_UTF8.java,
2554 gnu/gcj/convert/UnicodeToBytes.java,
2555 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2557 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2559 * Makefile.in, configure: Rebuilt.
2560 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2561 not if test subdir exists.
2562 (--enable-gcj-classes): Removed; gcj always used to generate
2564 (JAVA, JAVAC): Removed.
2565 (--enable-single-compilation, --enable-source-compilation):
2568 (NATIVE): New conditional.
2569 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2570 `install-exec' to work.
2571 (toolexeclibdir): Likewise.
2572 (toollib_LIBRARIES): Likewise.
2573 (AM_MAKEFLAGS): Don't pass tooldir.
2575 (javao_files): Redefined.
2576 (java_source_files): New macro.
2577 (c_source_files): New macro.
2578 (c_files): Redefined in terms of c_source_files.
2579 (java_io_files, java_lang_files, java_net_files, java_text_files,
2580 java_util_files, gnu_files, java_files): Removed.
2581 (class_io_files, class_lang_files, class_net_files,
2582 class_text_files, class_util_files, class_gnu_files, class_files):
2584 (nat_source_files): New macro.
2585 (nat_files): Redefined in terms of nat_source_files.
2586 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2587 java_source_files. Removed no-such-file.c.
2589 (ETAGS_ARGS): Removed.
2590 (TAGS_DEPENDENCIES): Likewise.
2591 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2593 (src_io_files, src_lang_files, src_text_files, src_util_files,
2594 src_gnu_files): Removed.
2595 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2596 (BUILT_SOURCES): Removed.
2597 (header-check): New target.
2599 (noinst_PROGRAMS): New macro.
2600 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2602 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2603 (gen-from-JIS): Build in top directory.
2604 (convert_source_files): New macro.
2605 (convert_SOURCES): New macro.
2606 (convert_LDFLAGS): Likewise.
2607 (convert_LINK): Likewise.
2608 (convert_LDADD): Likewise.
2609 (convert_DEPENDENCIES): Likewise.
2611 (gen-from-JIS): Removed.
2612 (gen_from_JIS_SOURCES): New macro.
2613 (gen_from_JIS_LDADD): Likewise.
2614 (gen_from_JIS_DEPENDENCIES): Likewise.
2616 * configure: Rebuilt.
2617 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2618 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2619 when defining conditional.
2621 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2623 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2624 The Unicode Consortium does not permit their re-distribution.
2625 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2626 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2628 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2630 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2632 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2634 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2635 from Unicode Consortium.
2636 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2637 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2638 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2639 New tables, generated using gen-from-JIS.
2640 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2641 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2642 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2643 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2645 * gnu/gcj/convert/Convert.java: New application.
2646 * Makefile.am, Makefile.in (convert): New program, using Convert.
2647 Build the various JIS conversion tables (in maintainer mode).
2649 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2651 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2653 * java/net/URL.java (URL): Deal with null property value. Use "."
2654 as separator in building class name.
2655 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2656 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2657 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2658 beginning of the substring rather than 'start'.
2660 1999-03-26 Tom Tromey <tromey@cygnus.com>
2662 * include/java-chartables.h: Rebuilt.
2663 * include/java-chardecomp.h: New file.
2664 * chartables.pl: Generate output files directly. Added support
2665 for generating decomposition header.
2666 (canonical_decomposition, full_decomposition): New globals.
2667 (DECOMPOSITION): New constant.
2668 (process_char): Call add_decomposition.
2669 (add_decomposition): New sub.
2670 (write_decompositions): New sub.
2672 1999-03-25 Tom Tromey <tromey@cygnus.com>
2674 * java/text/CollationElementIterator.java: New file.
2676 * mauve-libjava: Omit StringTest.
2678 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2680 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2681 without a '/' when parsing protocol. Handle ref outside of parseURL.
2682 (hashCode): Implemented.
2683 (set): Don't expand -1 to default port.
2684 (getDefaultPort): Removed.
2686 * java/net/URLStreamHandler.java (parseURL): Implemented.
2687 (toExternalForm): Implemented.
2689 1999-03-23 Tom Tromey <tromey@cygnus.com>
2691 * java/text/BreakIterator.java (getSentenceInstance):
2693 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2695 * Makefile.in: Rebuilt.
2696 * Makefile.am (nat_headers): Added IllegalAccessException.
2697 * java/lang/natClass.cc (newInstance): Throw
2698 IllegalAccessException, not IllegalAccessError.
2699 Include IllegalAccessException.h.
2701 1999-03-22 Tom Tromey <tromey@cygnus.com>
2703 * gnu/gcj/text/LineBreakIterator.java: New file.
2704 * java/text/BreakIterator.java (getLineInstance): Implemented.
2706 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2707 copy constructor private.
2708 (previous, next): Removed erroneous comment about line
2710 (previous): Correctly recognize break between non-letter on the
2711 left and letter on the right. Handle apostrophes correctly.
2713 * java/text/BreakIterator.java (getWordInstance): Implemented.
2714 * gnu/gcj/text/WordBreakIterator.java: New file.
2715 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2717 * gnu/gcj/text/BaseBreakIterator.java: New file.
2719 1999-03-19 Tom Tromey <tromey@cygnus.com>
2721 * java/text/BreakIterator.java: New file (partially stubbed out).
2722 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2724 * include/config.h.in: Rebuilt.
2725 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2726 (HAVE_TIMEZONE): Likewise.
2727 * configure: Rebuilt.
2728 * configure.in: Added timezone checks.
2729 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2732 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2734 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2735 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2736 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2737 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2738 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2739 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2740 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2741 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2743 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2744 (BSD_COMP): Kludge needed for Solaris2.
2746 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2748 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2749 URL(java.net.URL, string, URLStreamHandler) and call it with a
2750 null handler. In latter constructor, added SecurityManager check.
2751 (set): Expect null handler on bad protocol rather than an exception.
2752 (setURLStreamHandler): Simplified exception handling; return null
2753 on invalid protocol.
2755 1999-03-18 Tom Tromey <tromey@cygnus.com>
2757 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2759 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2761 Include PrintStream.h, InputStream.h.
2762 * java/lang/System.java (ForwardingInputStream,
2763 ForwardingOutputStream): Removed.
2764 (setErr, setIn, setOut): Now native.
2766 Reverted patch from 1999-02-12 to work around problem in
2768 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2769 (_Jv_eh_free): Use free.
2771 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2772 for path name. Minor formatting fixes.
2774 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2776 * prims.cc (fail_on_finalization): New function.
2777 (_Jv_GCWatch): Likewise.
2779 * prims.cc (JvRunMain): Initialize `nullp'.
2780 (nullp): New global.
2781 (catch_segv): Throw nullp.
2783 * Makefile.in: Rebuilt.
2784 * Makefile.am (ZIP): In "null target" case, zip is found in the
2787 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2791 * java/lang/StringBuffer.java (StringBuffer): Don't use
2792 ensureCapacity to set initial capacity.
2793 (capacity): Subtract `length' from return result.
2795 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2797 * java/io/natFileDescriptorPosix.cc (open): Throw
2798 FileNotFoundException, but with filename and errno in msg.
2800 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2802 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2803 functionality folded into java/net/URL.java per spec.
2805 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2806 than EEXIST for throwing FileNotFoundException.
2808 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2809 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2811 * java/net/URLStreamHandler.java (parseURL): Added stub.
2813 1999-03-15 Andrew Haley <aph@cygnus.com>
2815 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2818 1999-03-15 Andrew Haley <aph@cygnus.com>
2820 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2823 1999-03-12 Tom Tromey <tromey@cygnus.com>
2825 * prims.cc (catch_segv): New function.
2826 Include <signal.h> if HANDLE_SEGV defined. Include
2827 NullPointerException.h.
2828 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2831 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2832 a SimpleDateFormat, not just a DateFormat.
2833 (defaultCenturyStart, formatData, pattern): Now private.
2834 (append): Now `final'. Use `NumberFormat.format'.
2836 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2838 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2841 * java/text/MessageFormat.java (format): Use default MessageFormat
2843 (parse, parseObject): Wrote.
2845 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2848 1999-03-12 Andrew Haley <aph@cygnus.com>
2850 * java/lang/String.java (indexOf): Replace with native method for
2852 * java/lang/natString.cc (IndexOf): As above.
2854 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2855 Argument check corrected.
2856 (init(jbyteArray,jint,jint,jstring)): Likewise.
2858 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2859 1.2 compliant method.
2861 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2863 * java/lang/Float.java (byteValue, shortValue): Likewise.
2865 1999-03-11 Tom Tromey <tromey@cygnus.com>
2867 * java/text/DecimalFormat.java (parse): Wrote.
2869 * java/text/ChoiceFormat.java (parse): Set error index on
2870 ParsePosition object.
2872 * java/lang/Integer.java (parseInt): Throw exception on overflow
2873 when intermediate result is most negative number. Changed
2874 overflow detection as well.
2875 * java/lang/Long.java (parseLong): Likewise.
2877 * configure, Makefile.in: Rebuilt.
2878 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2879 CANADIAN when building in source tree that doesn't include gcc.
2880 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2883 * java/text/ChoiceFormat.java (nextDouble): Correct some
2884 off-by-one errors when masking or adding.
2886 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2887 parameter, if given. Use `%', not IEEEremainder.
2888 (scanFix): Throw error if multiplier already set.
2889 (computePattern): Wrote.
2891 1999-03-11 Andrew Haley <aph@cygnus.com>
2893 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2895 (nextDouble): Corrected masking logic. Handle interaction between
2896 `next' and negative numbers.
2898 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2900 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2901 * java/net/URL.java: Added general comments.
2903 1999-03-10 Tom Tromey <tromey@cygnus.com>
2905 * java/text/ChoiceFormat.java (parse): Wrote.
2907 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2909 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2910 Create ChoiceFormat objects.
2911 (format): Special-case ChoiceFormat.
2912 (scanFormatElement): Include { and } in generated style string.
2914 1999-03-09 Tom Tromey <tromey@cygnus.com>
2916 * java/text/ChoiceFormat.java: New file.
2918 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2920 * java/net/BindException.java: Created.
2921 * java/net/ConnectException.java: Created.
2922 * java/net/ContentHandler.java: Created.
2923 * java/net/ContentHandlerFactory.java: Created.
2924 * java/net/FileNameMap.java: Created.
2925 * java/net/MalformedURLException.java: Created.
2926 * java/net/NoRouteToHostException.java: Created.
2927 * java/net/ProtocolException.java: Created.
2928 * java/net/ServerSocket.java (@author): Fixed typo.
2929 * java/net/Socket.java (@author): Fixed typo.
2930 * java/net/SocketImpl.java (@author): Fixed typo.
2931 * java/net/SocketImplFactory.java (@author): Fixed typo.
2932 * java/net/URL.java: Created - nearly complete.
2933 * java/net/URLConnection.java: Created - near-empty stub.
2934 * java/net/URLStreamHandler.java: Created - incomplete stub.
2935 * java/net/URLStreamHandlerFactory.java: Created.
2936 * java/net/UnknownServiceException.java: Created.
2938 1999-03-09 Tom Tromey <tromey@cygnus.com>
2940 * java/lang/System.java (ForwardingInputStream): New class.
2941 (ForwardingOutputStream): Likewise.
2942 (in, out, err): Now `final' forwarding streams.
2943 (setIn, setOut, setErr): Use appropriate method on forwarding
2946 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2949 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2951 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2952 * java/util/zip/Checksum.java: New interface (complete).
2953 * java/util/zip/Deflater.java: New class (near-empty stub).
2954 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2955 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2956 * java/util/zip/ZipEntry.java: New class (complete).
2957 * java/util/zip/ZipException.java: New class (complete).
2958 * java/util/zip/ZipFile.java: New class (incomplete stub).
2959 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2961 1999-03-09 Tom Tromey <tromey@cygnus.com>
2963 * java/text/MessageFormat.java (MessageFormatElement): Removed
2964 `public' specifiers.
2966 * java/text/DecimalFormat.java (scanFormat): Increment index
2967 before processing exponential format. Fixed a couple typos in
2969 (format): Correct normalization of exponent.
2971 1999-03-08 Tom Tromey <tromey@cygnus.com>
2973 * java/text/SimpleDateFormat.java (parse): Throw
2974 IllegalArgumentException, not ParseException.
2976 1999-03-05 Tom Tromey <tromey@cygnus.com>
2978 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2979 when constructing DateFormatSymbols. Initialize numberFormat
2980 field of superclass.
2982 * java/text/DateFormat.java (equals): Rewrote.
2983 (getAvailableLocales): New method.
2984 (getDateInstance): New methods.
2985 (getDateTimeInstance): Likewise.
2986 (getTimeInstance): Likewise.
2987 (getInstance): New method.
2988 (computeInstance): New method.
2990 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2992 (safeGetResource): New method.
2993 (DateFormatSymbols): Use Locale paramater.
2994 (equals): Now protected.
2995 Made instance variables private.
2997 1999-03-04 Tom Tromey <tromey@cygnus.com>
2999 * java/text/DecimalFormat.java: New file.
3001 * java/text/NumberFormat.java (groupingUsed,
3002 maximumFractionDigits, maximumIntegerDigits,
3003 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
3005 (setDecimalSeparatorAlwaysShown, setMultiplier,
3006 setPositivePrefix): Removed.
3007 (setMinimumFractionDigits, setMaximumFractionDigits):
3009 (format): Now final.
3010 Added many new methods.
3012 * Makefile.in: Rebuilt.
3013 * Makefile.am (gnu_files): New macro.
3014 (java_files): Added gnu_files.
3015 (class_gnu_files): New macro.
3016 (class_files): Use it.
3017 (src_gnu_files): New macro.
3018 (gnu.o): New target.
3019 (javao_files): Added gnu.o.
3021 * gnu/gcj/text/LocaleData_en_US.java: New file.
3022 * gnu/gcj/text/LocaleData_en.java: New file.
3023 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
3024 (DecimalFormatSymbols): Use ResourceBundle to find resources.
3025 (safeGetString): New method.
3026 (safeGetChar): Likewise.
3028 1999-03-03 Tom Tromey <tromey@cygnus.com>
3030 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
3033 * java/text/FieldPosition.java (equals): Don't check for null
3034 object; instanceof does this.
3036 * java/util/Locale.java (clone): New method.
3039 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
3041 * doc/cni.sgml: New file.
3043 1999-03-03 Tom Tromey <tromey@cygnus.com>
3045 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
3047 * java/text/DecimalFormatSymbols.java: New file.
3049 1999-03-02 Tom Tromey <tromey@cygnus.com>
3051 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3053 * configure: Rebuilt.
3054 * configure.in: Check for sys/filio.h.
3056 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3058 (load): Always throw UnsatisfiedLinkError.
3059 (loadLibrary): Likewise.
3061 1999-03-02 Anthony Green <green@cygnus.com>
3063 * LIBGCJ_LICENSE: New file.
3064 * LIBJAVA_LICENSE: Removed.
3065 * Many files: libjava now libgcj.
3067 1999-03-02 Tom Tromey <tromey@cygnus.com>
3069 * include/java-chartables.h: Rebuilt.
3070 * chartables.pl (print_block): Make table `const'.
3071 (print_numerics): Likewise.
3072 (print_single_map): Likewise.
3073 (print_all_block): Likewise.
3074 (print_case_table): Likewise.
3075 (print_fast_tables): Likewise.
3076 * java/lang/natCharacter.cc (table_search): `table' argument now
3079 1999-03-01 Tom Tromey <tromey@cygnus.com>
3081 * java/util/Date.java (before, after): Inverted logic.
3083 * java/util/Date.java (parse): Handle case where first character
3084 in string is open parenthesis.
3085 (skipParens): Rewrote.
3087 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3088 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3090 * java/util/Date.java (parse): Correctly compute beginning of
3093 * java/util/Hashtable.java (get): Throw NullPointerException if
3095 (containsKey): Likewise.
3097 * java/util/Properties.java (list): Truncate value to 37
3098 characters and add `...'.
3100 * java/lang/Byte.java (parseByte): Pass `radix' to
3103 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3105 Include System.h, PrintStream.h.
3107 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3110 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3112 * configure: Rebuilt.
3113 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3116 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3118 * java/lang/SecurityManager.java: Import java.net.*.
3119 (checkMulticast): New methods.
3121 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3123 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3124 (nat_files): Add java/lang/reflect/natArray.o.
3125 (nat_headers): Add Field.h and NoSuchFieldException.h.
3127 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3128 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3129 (_Jv_FromReflectedField): Fix buglet.
3130 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3131 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3132 * prims.cc (_Jv_Abort): Include message in print-out.
3134 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3135 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3136 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3138 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3139 * include/config.h.in (HAVE_PWD_H): New feature macro.
3140 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3141 user.name, user.home, user.dir.
3143 * java/lang/reflect/Array.java: New class.
3144 * java/lang/reflect/natArray.cc: New native methods.
3145 * include/javaprims.h: Declare java::lang::reflect::Array.
3147 * java/lang/Class.h (getField): New private method. Add friends.
3148 * java/lang/Class.java (getField): Add private overload.
3149 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3150 getDeclaredMethods): Add working implementations.
3151 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3152 Finish implementation, except for access control.
3154 * java/lang/reflect/Modifier.java (toString): New overload.
3155 * include/java-method.h: New file.
3156 * java/lang/reflect/Method.java (index): Replaced by offset field.
3157 Remove various private fields - get them from _Jv_Field instead.
3158 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3159 New method implementations.
3161 * java/text/NumberFormat.java: Add a bunch of methods.
3163 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3165 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3167 1999-02-26 Tom Tromey <tromey@cygnus.com>
3169 * include/config.h.in: Rebuilt.
3170 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3171 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3172 HAVE_GETHOSTBYADDR_R): New defines.
3173 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3174 gethostbyaddr_r if available.
3176 * configure: Rebuilt.
3177 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3179 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3183 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3184 * prims.cc (_Jv_AllocBytesChecked): New function.
3186 * Makefile.in: Rebuilt.
3187 * Makefile.am (SUBDIRS): Removed `test'.
3188 * configure: Rebuilt.
3189 * configure.in: Don't build test/Makefile.
3190 * test/*: Removed all files.
3192 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3194 * java/lang/reflect/Constructor.java: Make class final to match spec.
3195 * java/lang/reflect/Method.java: Ditto.
3197 1999-02-25 Tom Tromey <tromey@cygnus.com>
3199 * java/net/natInetAddress.cc: Include <sys/types.h> before
3201 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3204 * java/net/natInetAddress.cc: Declare gethostname if required.
3205 * include/config.h.in: Rebuilt.
3206 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3207 * configure: Rebuilt.
3208 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3209 declared in unistd.h.
3211 1999-02-24 Tom Tromey <tromey@cygnus.com>
3213 * Makefile.in: Rebuilt.
3214 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3215 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3216 from private to "none".
3218 * include/javaprims.h: Regenerated class declarations with new
3220 * classes.pl (scan): Only generate decls for java.lang, java.io,
3223 1999-02-24 Tom Tromey <tromey@cygnus.com>
3225 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3226 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3228 1999-02-23 Tom Tromey <tromey@cygnus.com>
3230 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3231 not already defined.
3232 * java/io/natFile.cc (_REENTRANT): Only define if not already
3234 * include/config.h.in: Rebuilt.
3235 * acconfig.h (HAVE_BOEHM_GC): New define.
3236 * configure: Rebuilt.
3237 * configure.in: Define HAVE_BOEHM_GC if using it.
3238 * posix-threads.cc: Include boehm-config.h and gc.h if
3240 * include/posix-threads.h: Added explanatory note about Boehm GC.
3242 * java/io/BufferedReader.java (readLine): Only return null when
3243 EOF seen before any characters read. (In particular, an empty
3244 line should not return null.)
3246 * java/io/BufferedInputStream.java (read): Only refill once per
3249 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3250 java.lang.Character.classify12, java.lang.String.hash,
3251 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3252 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3254 * java/text/StringCharacterIterator.java (setIndex): No error if
3256 (next): Check for `pos == end', not `end - 1'.
3257 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3258 for null text in each constructor.
3259 (clone): Fixed order of arguments to constructor.
3261 1999-02-22 Tom Tromey <tromey@cygnus.com>
3263 * include/config.h.in: Rebuilt.
3264 * acconfig.h (HAVE_INET6): New define.
3265 (HAVE_SOCKLEN_T): Likewise.
3266 * java/net/PlainSocketImpl.java: Added copyright header.
3267 * java/net/natPlainSocketImpl.cc: Added copyright header.
3268 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3270 (connect): Likewise.
3272 (socklen_t): New typedef.
3273 (accept): Use socklen_t.
3274 * java/net/natInetAddress.cc: Added copyright header.
3275 (HAVE_GETHOSTNAME): Don't define.
3276 (HAVE_INET_ADDR): Likewise.
3277 (lookup): Fixed typo.
3278 (aton): Don't use `address' as name of local variable.
3279 (lookup): Use HAVE_INET6, not AF_INET6.
3281 * configure: Rebuilt.
3282 * configure.in: Look for functions inet_aton, inet_addr,
3283 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3284 Check for socklen_t typedef.
3286 * exception.cc (__throw): Declare as __noreturn__.
3288 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3290 * Makefile.am, Makefile.in: Also build java/net.
3291 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3293 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3294 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3296 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3297 * include/cni.h (JvMalloc, JvFree): New inline functions.
3298 (JvThrow): Add __noreturn__ attribute.
3299 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3300 (_Jv_Throw): Add __noreturn__ attribute.
3302 * java/net/PlainSocketImpl.java: Init fnum to -1.
3303 * java/net/ServerSocket.java: Add missing throws clauses.
3304 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3305 don't call create on the latter. Instead, other constructors
3306 have to explicitly call SocketImpl.create.
3307 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3308 from size_t to int, to match ::accept prototype.
3309 * java/net/natInetAddress.cc: Use JvFree rather than free.
3312 1999-02-22 Tom Tromey <tromey@cygnus.com>
3314 * include/javaprims.h: Added new classes.
3315 * java/text/StringCharacterIterator.java: New file.
3316 * java/text/CharacterIterator.java: New file.
3318 * java/text/ParseException.java (errorOffset): Now private.
3320 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3322 * java/net: New package.
3323 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3324 Socket.java,SocketException.java,SocketImpl.java,
3325 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3326 natPlainSocketImpl.cc}: New classes.
3328 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3329 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3330 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3331 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3333 * classes.pl: Translate package into "namespace", not "class".
3334 * include/javaprims.h: Update class list, using "namespace".
3336 1999-02-21 Tom Tromey <tromey@cygnus.com>
3338 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3339 Define when appropriate.
3341 1999-02-20 Tom Tromey <tromey@cygnus.com>
3343 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3344 as a single byte and \u07ff as two bytes.
3345 (_Jv_GetStringUTFLength): Likewise.
3346 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3347 with 0x0f, not 0x1f.
3349 1999-02-19 Tom Tromey <tromey@cygnus.com>
3351 * java/io/DataOutputStream.java (writeUTF): When encoding
3352 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3353 * java/io/DataInputStream.java (readUTF): Mask second byte of
3354 3-byte character with 0x3f, not 0x1f.
3356 * java/io/DataInputStream.java (readLong): Cast result of
3357 readUnsignedByte to long before using.
3359 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3362 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3363 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3364 argument to avoid warning.
3365 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3366 argument to avoid warning.
3368 1999-02-18 Tom Tromey <tromey@cygnus.com>
3370 * mauve-libjava: Omit java.io.DataInputOutput and
3371 java.io.Utf8Encoding.
3373 1999-02-17 Tom Tromey <tromey@cygnus.com>
3375 * Makefile.in: Rebuilt.
3376 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3377 * java/io/natFileDescriptorPosix.cc: Include
3378 InterruptedIOException.h, Thread.h.
3379 (write): Throw InterruptedIOException when required.
3381 * posix-threads.cc: Include <signal.h>.
3382 (_Jv_ThreadInterrupt): New function.
3384 (handle_intr): New function.
3385 (_Jv_InitThreads): Register handle_intr via sigaction.
3386 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3387 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3388 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3389 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3391 1999-02-19 Andrew Haley <aph@cygnus.com>
3393 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3395 (ThreadGroup (int)): Set the maximum priority of the initial
3398 1999-02-18 Andrew Haley <aph@cygnus.com>
3400 * java/lang/natClass.cc (forName): Check for the case where a
3401 classname is the name of an array and call FindClassFromSignature
3404 1999-02-18 Andrew Haley <aph@cygnus.com>
3406 * java/lang/StringBuffer (insert (int, String)): Move up any
3407 characters above the insert position and increase the length of
3408 the string buffer by the length of the argument.
3409 (insert (int, char[])): Likewise.
3410 (insert (int, char)): Likewise.
3411 (StringBuffer (String)): The initial capacity of the string buffer
3412 is 16 plus the length of the argument.
3413 (getChars): Add a JDK 1.2 FIXME.
3415 1999-02-18 Andrew Haley <aph@cygnus.com>
3417 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3420 1999-02-18 Andrew Haley <aph@cygnus.com>
3422 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3423 instead of floating-point equality. This is necessary for
3424 correct floating-point Hashtables.
3425 * java/lang/Float.java (equals): Ditto.
3427 1999-02-16 Tom Tromey <tromey@cygnus.com>
3429 * java/util/Properties.java (list): Truncate value to 37
3430 characters and add "...".
3432 1999-02-16 Tom Tromey <tromey@cygnus.com>
3434 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3435 if initCap is negative.
3436 (contains): Implement JDK1.2-style handling of null argument.
3437 (removeElement): Likewise.
3438 (indexOf): Likewise. Also, correctly handle case where idx is
3440 (lastIndexOf): Likewise.
3442 1999-02-16 Tom Tromey <tromey@cygnus.com>
3444 * java/lang/natString.cc (init): Increment source pointer in
3447 1999-02-16 Tom Tromey <tromey@cygnus.com>
3449 * exception.cc: Include NullPointerException.h.
3450 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3452 1999-02-16 Tom Tromey <tromey@cygnus.com>
3454 * Makefile.in: Rebuilt.
3455 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3457 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3459 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3460 we're compiling canadian.
3461 * configure: Regenerated.
3463 1999-02-12 Andrew Haley <aph@cygnus.com>
3465 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3466 deleted from libgcj.
3468 1999-02-12 Tom Tromey <tromey@cygnus.com>
3470 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3471 (_Jv_eh_free): Don't call free.
3472 Don't declare malloc or free.
3474 1999-02-11 Tom Tromey <tromey@cygnus.com>
3476 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3478 1999-02-11 Andrew Haley <aph@cygnus.com>
3480 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3481 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3482 needed by java.lang.*.
3483 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3484 wf_fmod.o: Removed from libjava.a.
3486 1999-02-11 Tom Tromey <tromey@cygnus.com>
3488 * include/javaprims.h: Reverted previous change; with it
3489 exception.cc can't compile.
3491 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3493 * include/config.h.in: Rebuilt.
3494 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3496 * configure: Rebuilt.
3497 * configure.in: Check for sched_yield. Look in thread library for
3498 all thread functions.
3500 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3501 no recursive mutexes.
3502 (_Jv_MutexDestroy): Define when required.
3503 (_Jv_MutexLock): Likewise.
3504 (_Jv_MutexUnlock): Likewise.
3505 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3506 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3507 (_Jv_Mutex_t): New structure.
3508 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3509 (_Jv_MutexLock): Likewise.
3510 (_Jv_MutexUnlock): Likewise.
3512 1999-02-10 Tom Tromey <tromey@cygnus.com>
3514 * aclocal.m4, configure, Makefile.in: Rebuilt.
3515 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3517 * configure.in: Changed to track library changes.
3518 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3519 (AM_CXXFLAGS): Likewise.
3520 (data_DATA): Likewise.
3521 (AM_CFLAGS): Likewise.
3522 (JC1FLAGS): Likewise.
3523 (libgcj_a_SOURCES): Likewise.
3524 (EXTRA_libgcj_a_SOURCES): Likewise.
3525 (libgcj_a_DEPENDENCIES): Likewise.
3526 (libgcj_a_LIBADD): Likewise.
3527 (libgcj.zip): Likewise.
3528 (CLEANFILES): Likewise.
3529 ($(nat_headers)): Likewise.
3530 (java/lang/FirstThread.h): Likewise.
3531 (java/lang/ThreadGroup.h): Likewise.
3532 (java/lang/String.h): Likewise.
3533 (java/lang/reflect/Field.h): Likewise.
3534 (BUILT_SOURCES): Likewise.
3535 (maintainer-check): Likewise.
3536 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3537 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3539 * java/util/natGregorianCalendar.cc (computeFields): Only use
3540 gmtime_r and localtime_r when configured for posix threads.
3542 * java/io/natFile.cc (get_entry): Only use readdir_r when
3543 configured for posix threads.
3545 * java/util/natGregorianCalendar.cc: Update copyright notice.
3546 * java/util/TimeZone.java: Ditto.
3547 * java/util/SimpleTimeZone.java: Ditto.
3549 1999-02-08 Tom Tromey <tromey@cygnus.com>
3551 * java/io/PrintStream.java (line_separator): New constant.
3552 (print): Use line_separator, not `file.separator' property.
3553 (println): Use line_separator.
3555 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3556 when trying to instantiate Class.
3558 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3559 NullPointerException if argument is null.
3561 * java/lang/Thread.java (setName): Throw NullPointerException, not
3562 IllegalArgumentException.
3565 1999-02-08 Andrew Haley <aph@cygnus.com>
3567 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3568 create new Classes with Class.newInstance().
3570 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3571 semiciolon to end of an array Class's signature if the elements of
3572 the array aren't themselves arrays.
3574 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3575 array of objects is always sizeof(jobject), not the size of the
3576 object to which the reference points.
3578 1999-02-08 Tom Tromey <tromey@cygnus.com>
3580 * java/util/BitSet.java (and): Throw NullPointerException when
3585 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3586 if argument is negative.
3587 (clear): Correctly compute `offset'. Throw
3588 IndexOutOfBoundsException when required.
3590 (get): Likewise. Also, return correct value.
3591 (ensure): Changed meaning of argument.
3592 (toString): Wrap contents in `{}'; put spaces after commas.
3593 (hashCode): Don't try to examine elements off the end of array.
3594 (or): Correctly include bits past the end of this bit set.
3597 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3599 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3600 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3602 1999-02-04 Andrew Haley <aph@cygnus.com>
3604 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3605 '/' in signatures to '.'
3606 (Class::getName): Likewise,
3607 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3609 * java/lang/natFirstThread.cc (run): Change '/' in main's
3612 1999-02-03 Andrew Haley <aph@cygnus.com>
3614 * configure.host: -ffloat-store added when compiling libjava on
3615 x86. fdlibm apparently relies on this.
3617 * java/lang/ThreadGroup.java (add): throw an exception if the
3618 ThreadGroup has been destroyed.
3620 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3623 1999-01-27 Tom Tromey <tromey@cygnus.com>
3625 * java/lang/StringBuffer.java (StringBuffer): Handle null
3628 1999-01-21 Tom Tromey <tromey@cygnus.com>
3630 * java/lang/natFirstThread.cc (run): Don't require main to be
3633 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3635 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3637 1999-01-20 Tom Tromey <tromey@cygnus.com>
3639 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3643 (unintern): Likewise.
3644 (_Jv_NewStringUtf8Const): Likewise.
3646 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3647 Character.isLetter, to see if character is self-quoting. Also,
3648 correctly handle quoted characters.
3649 (parse): Fixed typo. Also now throws ParseException.
3651 1999-01-15 Tom Tromey <tromey@cygnus.com>
3653 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3655 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3656 _Jv_SyncInfo has `init' member.
3658 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3661 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3662 IllegalMonitorStateException if unlock fails.
3664 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3666 (_Jv_NewObjectArray): Likewise.
3668 1999-01-14 Tom Tromey <tromey@cygnus.com>
3670 * java/lang/Character.java (isJavaIdentifierPart): Allow
3671 LETTER_NUMBER characters.
3673 * chartables.pl (process_char): Fixed error messages.
3675 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3676 * chartables.pl: Updated comments. Changed detection of non-digit
3677 numeric values (no longer miss \u00b2 and friends).
3679 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3680 currency symbols and connector punctuation.
3681 (isIdentifierIgnorable): Make 7f-9f ignorable.
3683 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3684 (_Jv_NewPrimArray): Likewise.
3685 (SIZE_T_MAX): New define.
3687 * java/lang/ClassLoader.java (system): Now private and final.
3689 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3692 * configure: Rebuilt.
3693 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3695 * exception.cc: Include gansidecl.h.
3697 1999-01-14 Andrew Haley <aph@cygnus.com>
3699 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3700 corrected: they didn't treat -0.0 and NaNs correctly.
3702 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3704 * nogc.cc: Use calloc to zero out memory.
3706 1999-01-11 Tom Tromey <tromey@cygnus.com>
3708 * java/lang/natClass.cc (isInstance): Return false if this class
3709 is primitive, not if class of `obj' is primitive.
3710 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3712 * java/io/SequenceInputStream.java (close): Handle case where `in'
3715 * java/text/DateFormat.java (format): New method.
3717 * mauve-libjava: Omit java.text.DateFormat.
3719 1999-01-08 Tom Tromey <tromey@cygnus.com>
3721 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3723 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3725 (_Jv_CondNotifyAll): Likewise.
3727 * configure: Rebuilt.
3728 * configure.in: Change --enable-source-compilation logic to work
3731 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3733 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3734 and RUNTESTFLAGS from AM_MAKEFLAGS.
3735 * configure.in: AM_RUNTESTFLAGS added.
3736 * configure.host: AM_RUNTESTFLAGS added.
3737 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3738 * configure: rebuilt.
3739 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3741 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3742 argv[] made conditional because embedded targets may not have
3744 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3745 explanatory comments added in call to super.
3747 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3748 exception thrown in the test harness itself added.
3749 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3751 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3753 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3755 1999-01-06 Tom Tromey <tromey@cygnus.com>
3757 * java/io/natFile.cc (get_entry): New function.
3758 (performList): Use get_entry.
3759 * include/config.h.in: Rebuilt.
3760 * acconfig.h (HAVE_READDIR_R): New define.
3761 * configure: Rebuilt.
3762 * configure.in: Look for readdir_r.
3764 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3766 * java/util/natDate.cc: Added copyright header.
3768 1999-01-05 Tom Tromey <tromey@cygnus.com>
3770 * include/config.h.in: Rebuilt.
3771 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3772 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3773 * configure: Rebuilt.
3774 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3775 unlink, and realpath.
3776 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3777 (stat): Conditionalize on HAVE_STAT.
3779 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3780 (performMkdir): Conditionalize on HAVE_MKDIR.
3781 (performRenameTo): Conditionalize on HAVE_RENAME.
3782 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3784 * include/config.h.in: Rebuilt.
3785 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3786 * configure: Rebuilt.
3787 * configure.in: Check for gmtime_r and localtime_r. For cross
3788 builds, assume they exist.
3790 * mauve-libjava: Include java.text.DateFormatSymbols again.
3791 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3792 from setAmPmStrings.
3794 * mauve-libjava: Omit java.text.DateFormatSymbols.
3796 1999-01-04 Tom Tromey <tromey@cygnus.com>
3798 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3800 * java/io/LineNumberReader.java (read): Decrement `count' in
3803 * java/io/BufferedWriter.java (write): Correctly determine when
3804 incoming data would overrun buffer. Flush buffer if write causes
3807 * java/io/BufferedOutputStream.java (write): Increment `count'
3808 after copying data into buffer.
3810 * java/io/FilterOutputStream.java (close): Call flush first.
3812 * java/io/PipedReader.java (read): If read causes `out' to catch
3813 up with `in', then set `in' to -1.
3815 * java/io/LineNumberInputStream.java (read): If no bytes read,
3816 return -1. If no bytes requested, return 0.
3818 * java/lang/StringBuffer.java (insert): If `str' is null, use
3821 1998-12-30 Anthony Green <green@cygnus.com>
3824 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3826 1998-12-23 Tom Tromey <tromey@cygnus.com>
3828 * java/io/PushbackInputStream.java (read): `off' already includes
3831 1998-12-17 Tom Tromey <tromey@cygnus.com>
3833 * Makefile.in: Rebuilt.
3834 * Makefile.am (GCJ_canadian): Include target_alias.
3836 * java/lang/natFirstThread.cc (run): Require main's class to be
3839 1998-12-16 Tom Tromey <tromey@cygnus.com>
3841 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3843 * java/util/ResourceBundle.java (getBundle): Throw
3844 NullPointerException if locale argument is null.
3846 * java/lang/natClass.cc (forName): Throw NullPointerException if
3848 Include NullPointerException.h.
3850 1998-12-14 Tom Tromey <tromey@cygnus.com>
3852 * java/lang/Character.java (Character): Implement Comparable.
3853 (compareTo): New methods.
3855 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3856 correct country and language codes.
3857 (UK, US): New constants.
3858 (setDefault): Language codes are lower-case.
3860 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3861 (getDeclaredConstructors): Likewise.
3862 (getDeclaredField): Likewise.
3863 (getDeclaredFields): Likewise.
3864 (getDeclaredMethod): Likewise.
3865 (getDeclaredMethods): Likewise.
3866 (getField): Likewise.
3867 (getFields): Likewise.
3868 (getMethod): Likewise.
3869 (getMethods): Likewise.
3870 * java/lang/Class.java: Declare new methods.
3871 * java/lang/Class.h: Declare new methods.
3873 * java/lang/natString.cc: Removed `#pragma implementation'.
3874 * include/cni.h (_Jv_GetStringChars): New function.
3875 * Makefile.in: Rebuilt.
3876 * Makefile.am (java/lang/String.h): Don't generate definition for
3879 * java/lang/natString.cc: Added `#pragma implementation'.
3881 * Makefile.in: Rebuilt.
3882 * Makefile.am (libjava.zip): Put build directory first in class
3883 path to avoid bug in compiler.
3885 1998-12-14 Anthony Green <green@cygnus.com>
3887 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3889 * include/javaprims.h: Add EventObject, ListResourceBundle and
3892 1998-12-13 Anthony Green <green@cygnus.com>
3894 * mauve-libjava: Run the ResourceBundle tests.
3896 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3899 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3901 * configure.in, configure: Make --enable-gcj-classes and
3902 --enable-source-compilation the default. (Nervously...) Yeah!
3903 Based on a patch from Tom Tromey.
3905 1998-12-13 Tom Tromey <tromey@cygnus.com>
3907 * java/util/EventObject.java: New file.
3908 * java/util/EventListener.java: New file.
3910 * include/javaprims.h: Updated class declarations.
3911 * Makefile.in: Rebuilt.
3912 * Makefile.am (nat_headers): Added Constructor.h.
3913 (java/lang/String.h): Don't inline String::length().
3914 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3915 * java/lang/Class.java (initializeClass, hackRunInitializers,
3916 hackTrampoline): No need to mark `final'.
3917 (getConstructor, getConstructors): Declare.
3918 * java/lang/reflect/Field.java (equals): New method.
3919 * java/lang/natClass.cc (getConstructor): New method.
3920 (getConstructors): Likewise.
3921 Include Method.h, Field.h, Constructor.h.
3922 * java/lang/reflect/Constructor.java: New file.
3923 * java/lang/reflect/Method.java (toString): No space before open
3925 (equals): Simplified.
3927 1998-12-13 Anthony Green <green@cygnus.com>
3929 * java/util/ResourceBundle.java: New file.
3930 * java/util/ListResourceBundle.java: New file.
3932 1998-12-12 Tom Tromey <tromey@cygnus.com>
3934 * java/lang/System.java (in, out, err): Now buffered streams by
3937 * include/javaprims.h: Updated class declarations.
3938 * Makefile.in: Rebuilt.
3939 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3940 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3942 (nat_files): Added natMethod.o.
3943 * java/lang/reflect/natMethod.cc: New file.
3944 * java/lang/reflect/Field.java (Field): Now extends
3946 * java/lang/reflect/AccessibleObject.java: New file.
3947 * java/lang/reflect/InvocationTargetException.java: New file.
3949 1998-12-11 Tom Tromey <tromey@cygnus.com>
3951 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3952 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3953 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3955 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3957 1998-12-09 Tom Tromey <tromey@cygnus.com>
3959 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3962 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3963 character is already titlecase.
3965 * java/lang/Character.java (isJavaLetter): Follow spec.
3966 (isJavaLetterOrDigit): Likewise.
3968 * java/util/GregorianCalendar.java (gregorianCutover): Append
3971 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3973 1998-12-08 Tom Tromey <tromey@cygnus.com>
3975 * java/lang/reflect/Modifier.java (toString): Replace second
3976 `static' with `synchronized'.
3978 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3979 * java/lang/Object.h (Object::hack12_6): Declare.
3980 * java/lang/Object.java (hack12_6): New function.
3982 1998-12-07 Tom Tromey <tromey@cygnus.com>
3984 * include/java-array.h (__JArray::clone): Removed decl.
3985 * prims.cc (__JArray::clone): Removed.
3986 * java/lang/natObject.cc (clone): Incorporate code to clone an
3989 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3990 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3991 Correctly use dtable_method_count.
3993 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3995 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3998 1998-12-06 Anthony Green <green@cygnus.com>
4000 * mauve-libjava: Don't test ResourceBundle.
4002 1998-12-04 Tom Tromey <tromey@cygnus.com>
4004 More JDK 1.2 spec fixes:
4005 * java/util/Date.java (millis): Now private.
4006 * java/text/DateFormat.java (DateFormat): Constructor now
4008 * java/lang/Void.java (Void): New private constructor.
4009 * java/lang/System.java (System): New private constructor.
4010 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
4012 (currentClassLoader): New method.
4013 (currentLoadedClass): New method.
4014 * java/lang/Math.java (Math): New private constructor.
4015 * java/lang/Compiler.java (Compiler): New private constructor.
4016 * java/lang/Class.java (Class): New private constructor.
4017 * java/lang/Double.java (toString): Removed access specifier from
4018 two-argument `toString' method.
4020 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
4022 * java/lang/s_rint.c (rint): Make the variable w volatile; this
4023 causes it to be flushed from an fp register (where it may be
4024 longer than double precision) to a double in memory. This is
4025 essential to ensure correct rounding behaviour.
4027 1998-12-04 Tom Tromey <tromey@cygnus.com>
4029 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
4032 * java/lang/Character.java (isIdentifierIgnorable): Added comment
4033 explaining apparent divergence from JDK 1.2.
4035 1998-12-04 Per Bothner <bothner@cygnus.com>
4037 * include/no-threads.h: Remove unused parameter names.
4038 This silences a bunch of warnings.
4040 1998-12-04 Tom Tromey <tromey@cygnus.com>
4042 * include/config.h.in: Rebuilt.
4043 * acconfig.h (HAVE_CTIME_R): New symbol.
4045 1998-12-03 Tom Tromey <tromey@cygnus.com>
4047 * mauve-libjava: Added many more categories to reject.
4049 Changes to follow JDK1.2 spec:
4050 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
4051 setErr, setIn, setOut): No need to be `final'.
4052 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4053 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4054 * java/lang/Object.java (wait): `nanos' argument is an int.
4055 * java/lang/VirtualMachineError.java: Class is abstract.
4056 * java/lang/ThreadDeath.java: Made constructors public.
4057 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4060 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4062 * java/text/DateFormatSymbols.java (getAmPmStrings,
4063 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4065 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4067 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4068 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4069 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4072 * java/lang/IllegalThreadStateException.java
4073 (IllegalThreadStateException): Changed extending class to match spec.
4075 * java/lang/NumberFormatException.java
4076 (java/lang/NumberFormatException): Changed extending class to match
4079 * java/util/Observer.java (Observer): Changed sig to match JCL.
4081 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4083 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4084 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4085 signature to match JDK 1.1 and 1.2.
4087 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4089 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4090 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4091 * Makefile.in, configure: Rebuilt.
4093 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4096 1998-12-02 Tom Tromey <tromey@cygnus.com>
4098 * mauve-libjava: New file.
4100 The remaining `-W -Wall' fixes:
4101 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4103 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4105 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4107 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4109 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4111 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4113 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4115 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4117 * java/lang/mprec.c (Balloc): Removed unused variable.
4118 (mult): Added parentheses per gcc suggestion.
4119 (pow5mult): Likewise.
4124 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4125 suggestion. Added cast to `int' to avoid signed/unsigned
4127 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4129 (IsAssignableFrom): Likewise.
4130 (_Jv_JNI_GetObjectField): Likewise.
4131 (_Jv_JNI_GetByteField): Likewise.
4132 (_Jv_JNI_GetShortField): Likewise.
4133 (_Jv_JNI_GetIntField): Likewise.
4134 (_Jv_JNI_GetLongField): Likewise.
4135 (_Jv_JNI_GetStringLength): Likewise.
4136 (_Jv_JNI_ToReflectedField): Likewise.
4137 (_Jv_JNI_FromReflectedField): Likewise.
4138 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4140 * Makefile.in: Rebuilt.
4141 * Makefile.am (AM_CFLAGS): Define conditionally.
4142 (WARNINGS): New macro.
4143 (AM_CXXFLAGS): Include WARNINGS.
4144 * configure: Rebuilt.
4145 * configure.in (USING_GCC): New conditional.
4147 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4149 * java/lang/Character.java: Changed classification constants to
4150 type `byte' to match JDK 1.2 docs.
4152 1998-12-01 Tom Tromey <tromey@cygnus.com>
4154 Some fixes to be `-W -Wall' clean:
4155 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4156 (_Jv_MarkArray): Likewise.
4157 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4158 (to_upper_title): Likewise.
4159 (isTitleCase): Likewise.
4160 (toTitleCase): Likewise.
4161 (getNumericValue): Likewise.
4162 (isLowerCase): Likewise.
4163 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4164 (avoids compiler warning).
4165 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4167 (getDeclaringClass): Likewise.
4168 (_Jv_LookupInterfaceMethod): Likewise.
4169 (_Jv_NewClass): Removed name of unused parameter.
4170 * exception.cc (_Jv_type_matcher): Removed unused variable.
4171 (_Jv_setup_eh_info): Removed name of unused parameter.
4172 * prims.cc (_Jv_NewArray): Always return a value.
4173 (_Jv_FindClassFromSignature): Likewise.
4174 * include/java-field.h (getNameUtf8Const): Removed name of unused
4176 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4178 (_Jv_ThreadSetPriority): Likewise.
4180 * java/lang/natString.cc (hashChars): Now static.
4182 * java/lang/FirstThread.java (FirstThread): Now final.
4184 * java/io/File.java (performMkdir, performRenameTo): Now private.
4186 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4187 if no time function defined.
4189 * configure: Rebuilt.
4190 * configure.in: Look for ctime_r, ctime.
4191 * java/util/Date.java (toString): Now native.
4192 * java/util/natDate.cc (toString): Rewrote.
4194 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4196 * Add LDFLAGS line to allow TX39 test cases to link when cross
4199 1998-11-23 Anthony Green <green@cygnus.com>
4201 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4202 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4203 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4204 include/java-array.h, include/java-assert.h, include/java-field.h,
4205 include/javaprims.h, include/jni.h, include/jvm.h,
4206 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4207 include/quick-threads.h, java/io/BufferedInputStream.java,
4208 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4209 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4210 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4211 java/io/CharArrayWriter.java,
4212 java/io/CharConversionException.java, java/io/DataInput.java,
4213 java/io/DataInputStream.java, java/io/DataOutput.java,
4214 java/io/DataOutputStream.java, java/io/EOFException.java,
4215 java/io/File.java, java/io/FileDescriptor.java,
4216 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4217 java/io/FileOutputStream.java, java/io/FileReader.java,
4218 java/io/FileWriter.java, java/io/FilenameFilter.java,
4219 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4220 java/io/FilterReader.java, java/io/FilterWriter.java,
4221 java/io/IOException.java, java/io/InputStream.java,
4222 java/io/InputStreamReader.java,
4223 java/io/InterruptedIOException.java,
4224 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4225 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4226 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4227 java/io/PipedReader.java, java/io/PipedWriter.java,
4228 java/io/PrintStream.java, java/io/PrintWriter.java,
4229 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4230 java/io/RandomAccessFile.java, java/io/Reader.java,
4231 java/io/SequenceInputStream.java, java/io/Serializable.java,
4232 java/io/StreamTokenizer.java,
4233 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4234 java/io/StringWriter.java, java/io/SyncFailedException.java,
4235 java/io/UTFDataFormatException.java,
4236 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4237 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4238 java/io/natFileDescriptorPosix.cc,
4239 java/lang/AbstractMethodError.java,
4240 java/lang/ArithmeticException.java,
4241 java/lang/ArrayIndexOutOfBoundsException.java,
4242 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4243 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4244 java/lang/Class.java, java/lang/ClassCastException.java,
4245 java/lang/ClassCircularityError.java,
4246 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4247 java/lang/ClassNotFoundException.java,
4248 java/lang/CloneNotSupportedException.java,
4249 java/lang/Cloneable.java, java/lang/Comparable.java,
4250 java/lang/Compiler.java, java/lang/Double.java,
4251 java/lang/Error.java, java/lang/Exception.java,
4252 java/lang/ExceptionInInitializerError.java,
4253 java/lang/FirstThread.java, java/lang/Float.java,
4254 java/lang/IllegalAccessError.java,
4255 java/lang/IllegalAccessException.java,
4256 java/lang/IllegalArgumentException.java,
4257 java/lang/IllegalMonitorStateException.java,
4258 java/lang/IllegalStateException.java,
4259 java/lang/IllegalThreadStateException.java,
4260 java/lang/IncompatibleClassChangeError.java,
4261 java/lang/IndexOutOfBoundsException.java,
4262 java/lang/InstantiationError.java,
4263 java/lang/InstantiationException.java, java/lang/Integer.java,
4264 java/lang/InternalError.java, java/lang/InterruptedException.java,
4265 java/lang/LinkageError.java, java/lang/Long.java,
4266 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4267 java/lang/NoClassDefFoundError.java,
4268 java/lang/NoSuchFieldError.java,
4269 java/lang/NoSuchFieldException.java,
4270 java/lang/NoSuchMethodError.java,
4271 java/lang/NoSuchMethodException.java,
4272 java/lang/NullPointerException.java, java/lang/Number.java,
4273 java/lang/NumberFormatException.java, java/lang/Object.h,
4274 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4275 java/lang/Process.java, java/lang/Runnable.java,
4276 java/lang/Runtime.java, java/lang/RuntimeException.java,
4277 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4278 java/lang/Short.java, java/lang/StackOverflowError.java,
4279 java/lang/String.java, java/lang/StringBuffer.java,
4280 java/lang/StringIndexOutOfBoundsException.java,
4281 java/lang/System.java, java/lang/Thread.java,
4282 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4283 java/lang/Throwable.java, java/lang/UnknownError.java,
4284 java/lang/UnsatisfiedLinkError.java,
4285 java/lang/UnsupportedOperationException.java,
4286 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4287 java/lang/Void.java, java/lang/natCharacter.cc,
4288 java/lang/natClass.cc, java/lang/natDouble.cc,
4289 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4290 java/lang/natMath.cc, java/lang/natObject.cc,
4291 java/lang/natRuntime.cc, java/lang/natString.cc,
4292 java/lang/natSystem.cc, java/lang/natThread.cc,
4293 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4294 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4295 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4296 java/text/FieldPosition.java, java/text/Format.java,
4297 java/text/NumberFormat.java, java/text/ParseException.java,
4298 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4299 java/util/BitSet.java, java/util/Calendar.java,
4300 java/util/ConcurrentModificationException.java,
4301 java/util/Date.java, java/util/Dictionary.java,
4302 java/util/EmptyStackException.java, java/util/Enumeration.java,
4303 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4304 java/util/Locale.java, java/util/MissingResourceException.java,
4305 java/util/NoSuchElementException.java, java/util/Observable.java,
4306 java/util/Observer.java, java/util/Properties.java,
4307 java/util/Random.java, java/util/SimpleTimeZone.java,
4308 java/util/Stack.java, java/util/StringTokenizer.java,
4309 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4310 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4313 * exception.cc: Include eh-common.h instead of duplicating
4316 1998-11-23 Tom Tromey <tromey@cygnus.com>
4318 * configure.host: Don't add `-O2' to libjava_flags. Only add
4319 `-Os' to libjava_flags once.
4321 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4323 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4324 * Makefile.in: likewise
4325 * acconfig.h: add ECOS conditional for configure.h
4326 * config.h.in: likewise
4327 * configure: add test for --with-ecos
4328 * configure.in: likewise
4329 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4330 rename call to avoid name clash.
4331 * java/lang/natSystem.cc: add eCos clock support.
4332 * java/util/natGregorianCalendar.cc: add eCos support.
4334 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4336 * Makefile.am, Makefile.in, configure.host: tx39 build option
4339 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4341 * java/io/BufferedReader.java: Added more comments for clarity.
4342 (mark): Used more mnemonic name for local var extraBuffSpace.
4344 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4345 confusion with private method of same name in superclass.
4346 (skipRedundantLF): Set fields in special case to avoid infinite
4347 recursion. Check if markPos has been invalidated in special case.
4348 (readLine): Rewritten to use readLine method of superclass.
4349 (skip): Incorporated code from lineEnd.
4351 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4353 * java/io/BufferedReader.java (readLine): New method.
4354 (lineEnd): new private method.
4355 (mark): Track special case for readLine of getting '\r' at the
4362 * java/io/InputStreamReader.java (read): Return number chars skipped
4363 rather than requested.
4365 * java/lang/StringBuffer.java (append): Update count and differentiate
4366 between field and local variable.
4368 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4369 seconds. Deal with military style time.
4370 (parse): Consistently treat all timezones in minutes until final
4371 calculation. Flag as non-local timezone. Return value in milliseconds.
4372 (setTime): Adjust for year offset from 1900.
4373 (UTC): Adjust for year offset from 1900.
4375 1998-11-17 Tom Tromey <tromey@cygnus.com>
4377 * configure: Rebuilt.
4378 * configure.in: Switch on host, not target.
4380 * Makefile.in: Rebuilt.
4381 * Makefile.am (GCJ_no): New macro.
4382 (GCJ): Use @CANADIAN@.
4383 (GCJH_no): New macro
4384 (GCJH_canadian): New macro.
4385 (GCJH): Use @CANADIAN@.
4386 (ZIP_no): New macro.
4387 (ZIP_canadian): New macro.
4388 (ZIP): Use @CANADIAN@.
4389 * aclocal.m4, configure: Rebuilt.
4390 * configure.in (CANADIAN): Compute and subst.
4392 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4394 * java/io/FileDescriptor.java (finalize): Only close file
4395 descriptor if valid.
4397 1998-11-17 Tom Tromey <tromey@cygnus.com>
4399 * prims.cc (_Jv_InitRuntime): Removed.
4401 1998-11-16 Tom Tromey <tromey@cygnus.com>
4403 * java/io/FileOutputStream.java (close): Only close file
4404 descriptor if valid.
4405 (finalize): New method.
4407 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4408 (_Jv_NewPrimArray): Likewise.
4409 * boehm.cc (_Jv_RegisterFinalizer): Use
4410 GC_REGISTER_FINALIZER_NO_ORDER.
4411 (GC_GENERIC_MALLOC): New define.
4412 (_Jv_AllocObj): Use it.
4413 (_Jv_AllocArray): Likewise.
4414 (_Jv_AllocBytes): Likewise.
4415 (_Jv_MarkObj): Just return if vtbl not set.
4416 (_Jv_MarkArray): Likewise.
4417 (MAYBE_MARK): New macro; use everywhere.
4418 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4420 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4422 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4423 to a jlong before calculation to prevent overflow.
4425 1998-11-16 Tom Tromey <tromey@cygnus.com>
4427 * Makefile.in: Rebuilt.
4428 * Makefile.am (nat_headers): Fixed typo.
4430 1998-11-15 Tom Tromey <tromey@cygnus.com>
4432 * java/lang/Class.h (Class::getName): Removed definition.
4433 * Makefile.in: Rebuilt.
4434 * Makefile.am (nat_headers): Added InstantiationException.h,
4435 NoSuchMethodException.h.
4436 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4437 (init_name): New global.
4438 (hackRunInitializers): Use clinit_name.
4439 Include InstantiationException.h, NoSuchMethodException.h.
4440 (newInstance): Do some error checking (but not all). Call
4442 (forName): Throw exception if class not found.
4443 (getName): New method.
4444 (forName): Transform class name from external format to internal
4445 format before lookup.
4447 1998-11-15 Anthony Green <green@cygnus.com>
4449 * java/lang/Class.h (Class::forName): Method is static.
4451 * java/lang/natClass.cc (newInstance): Add simple implementation.
4454 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4456 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4457 int), for compatibility with jc1.
4459 1998-11-14 Tom Tromey <tromey@cygnus.com>
4461 * include/config.h.in: Rebuilt.
4462 * acconfig.h (LINUX_THREADS): New define.
4463 * configure: Rebuilt.
4464 * configure.in: Define LINUX_THREADS if using POSIX threads on
4465 Linux. Look for pthread_mutexattr_setkind_np function.
4466 * posix-threads.cc (throw_cleanup): New function.
4467 (really_start): Push cleanup function.
4468 (_Jv_ThreadCancel): New function.
4469 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4470 (_Jv_ThreadInitData): Set `exception' field in new structure.
4471 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4473 (_Jv_ThreadWait): New function.
4474 (_Jv_InitThreads): Initialize daemon globals.
4475 (FLAG_DAEMON): New macro.
4476 (really_start): Notify daemon_cond when non-daemon thread exits.
4477 Include <java/lang/System.h>.
4478 (struct starter): `object' field now a thread.
4479 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4480 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4481 (_Jv_ThreadWait): Removed definition.
4482 (_Jv_Thread_t): Added `exception' field.
4483 (_Jv_ThreadCancel): Removed definition.
4485 1998-11-13 Tom Tromey <tromey@cygnus.com>
4487 * Makefile.in: Rebuilt.
4488 * Makefile.am (libjava.zip): Compute javac before changing
4491 * Makefile.in: Rebuilt.
4492 * Makefile.am (libjava.zip): Include directory entries.
4494 * Makefile.in: Rebuilt.
4495 * Makefile.am (expanded): New macro.
4498 1998-11-12 Tom Tromey <tromey@cygnus.com>
4500 * prims.cc (clone): New function.
4501 * include/java-array.h (__JArray::clone): Removed definition.
4503 * java/lang/natObject.cc (clone): Don't assert that class is not
4504 an array; array's `clone' method just calls this one.
4506 * Makefile.in: Rebuilt.
4507 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4508 Now creates zip file. Changed all users.
4510 (data_DATA): New macro.
4512 1998-11-11 Tom Tromey <tromey@cygnus.com>
4514 * configure: Rebuilt.
4515 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4517 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4519 * java/io/InputStream.java (reset): Add msg to thrown exception.
4521 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4523 * java/io/LineNumberInputStream.java: Rewritten.
4525 * java/io/StringBufferInputStream.java: Removed extraneous import.
4527 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4529 * java/io/StringBufferInputStream.java: Rewritten.
4531 * java/util/Date.java (parseMonth): Optimize.
4532 (parseDayOfWeek): Created.
4533 (parse): Optimize to use parseDayOfWeek.
4535 1998-11-11 Tom Tromey <tromey@cygnus.com>
4537 * java/lang/StringBuffer.java (append): Handle case where STR is
4540 * include/javaprims.h: Regenerated class declarations.
4542 * configure: Rebuilt.
4543 * configure.in: Added --enable-gcj-classes,
4544 --enable-single-compilation, --enable-source-compilation flags.
4545 * Makefile.in: Rebuilt.
4546 * Makefile.am (java_io_files): New macro.
4547 (java_lang_files): Likewise.
4548 (java_text_files): Likewise.
4549 (java_util_files): Likewise.
4550 (java_files): Use new macros.
4551 (java-io.o): New target.
4552 (java-lang.o): Likewise.
4553 (java-text.o): Likewise.
4554 (java-util.o): Likewise.
4555 (src_io_files): New macro.
4556 (src_lang_files): Likewise.
4557 (src_text_files): Likewise.
4558 (src_util_files): Likewise.
4559 (class_io_files): New macro.
4560 (class_lang_files): Likewise.
4561 (class_text_files): Likewise.
4562 (class_util_files): Likewise.
4563 (class_files): Use new macros.
4564 (javao_files): Define conditionally.
4565 (.java.o): New target.
4566 ($(javao_files)): New target.
4568 (GCJH): Added $(EXEEXT).
4569 (CLASSPATH_ENV): Removed.
4570 (GCJCOMPILE): New macro.
4572 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4574 * java/util/Date.java (parse): Written from scratch.
4576 1998-11-11 Tom Tromey <tromey@cygnus.com>
4578 * java/lang/Throwable.java (toString): Correct sense of test for
4579 determining when to include detail message in result.
4581 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4584 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4586 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4588 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4589 (_Jv_RegisterClass): Use it.
4590 * include/jvm.h (_Jv_RegisterClasses): Declare.
4591 * java/lang/natObject.cc (init): Removed.
4592 (sync_init): Never call _Jv_InitializeSyncMutex.
4593 (_Jv_InitializeSyncMutex): Don't set `init'.
4594 * prims.cc (JvRunMain): Don't run init functions.
4596 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4598 * java/lang/natClass.cc (initializeClass): Set state before
4599 resolving constants.
4601 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4602 (STATE_RESOLVED): New macro.
4603 (initializeClass): Call resolveConstants.
4604 (hackRunInitializers): Don't call resolveConstants.
4605 (_Jv_FindArrayClass): Move short-circuit return for primitive
4606 element types earlier in function.
4608 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4610 * prims.cc (no_memory): New global.
4611 (_Jv_makeUtf8Const): Throw no_memory.
4612 (_Jv_AllocObject): Likewise.
4613 (_Jv_NewObjectArray): Likewise.
4614 (_Jv_NewPrimArray): Likewise.
4615 (JvRunMain): Initialize no_memory.
4617 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4619 * java/io/FileInputStream.java: Corrected date comment.
4620 * java/io/SequenceInputStream.java: Rewritten.
4622 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4624 * java/lang/FirstThread.java (die): New method.
4625 * java/lang/natFirstThread.cc (die): Removed.
4627 (run): Use `DIE', not `die'.
4629 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4631 * java/io/CharArrayReader.java (read): Move check into synchronized
4632 block to prevent a close while in progress.
4635 * java/io/PushbackReader.java (read): Ditto.
4638 * java/io/StringReader.java (mark): Ditto.
4643 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4645 * java/io/PipedInputStream.java: Updated status.
4646 (connect): Added code to prevent infinite recursion and to
4647 differentiate exception causes.
4648 (read): Added code to differentiate exception causes.
4649 (receive): Made exception pass string with the cause.
4651 * java/io/PipedOutputStream.java: Updated status.
4652 (connect): Added code to call connect at the other end of the pipe.
4654 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4656 * java/io/PipedInputStream.java (connect): Throw exception if
4657 already connected to the same output stream.
4658 (read): Do bounds checking first.
4660 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4662 * java/io/PipedInputStream.java: Added private boolean outClosed.
4663 (available): Removed check if output stream is open.
4664 (close): Mark the buffer as empty so available returns 0.
4665 (read): Check if the output stream was closed and then return EOF
4666 when the buffer is empty.
4667 (receive): Mark the output stream as closed when passed a -1.
4669 * java/io/PipedOutputStream.java (close): Notify the input stream
4670 that there's no more data coming.
4671 (connect): Added a FIXME comment to note more coordination needed
4672 with PipedInputStream.
4673 (flush): Added a FIXME comment to mark what this method might do
4676 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4678 * java/io/PipedInputStream.java: Rewritten.
4680 1998-10-30 Tom Tromey <tromey@cygnus.com>
4682 * java/lang/Throwable.java: Rewrote from scratch.
4684 * java/lang/Class.h (Class): Don't mention newMultiArray.
4685 * prims.cc (newMultiArray): Removed.
4686 (_Jv_NewMultiArray): Removed.
4687 (newArray): Removed.
4688 (new_multi_array): New function.
4689 (_Jv_NewMultiArray): Rewrote from scratch.
4691 * include/javaprims.h: Regenerated class declarations.
4692 * classes.pl (scan): Don't declare PrimClass.
4693 * include/cni.h (JvPrimClass): Use new names for classes.
4694 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4695 added _Jv_PrimClass.
4696 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4697 (_Jv_initPrimClass): Removed.
4698 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4699 (_Jv_AllocObject): Added comment.
4700 (_Jv_NewObjectArray): Likewise.
4701 (_Jv_NewPrimArray): Likewise.
4703 1998-10-29 Tom Tromey <tromey@cygnus.com>
4705 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4706 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4708 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4710 * java/lang/natObject.cc (init): New global.
4711 (sync_init): Call _Jv_InitializeSyncMutex if required.
4713 * Makefile.in: Rebuilt.
4714 * Makefile.am (nat_headers): Added ClassLoader.h.
4715 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4716 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4717 internalAddClass, lookupArray no longer friends.
4718 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4719 _Jv_FindArrayClass now friends.
4720 * java/lang/natClass.cc (HASH_LEN): New macro.
4721 (HASH_UTF): Likewise.
4722 (loaded_classes): New global.
4723 (_Jv_FindClass): New function.
4724 (ClassClass): New define.
4725 (_Jv_FindClassInCache): New function.
4726 (_Jv_RegisterClass): Likewise.
4727 (_Jv_NewClass): Likewise.
4729 (ObjectClass): New define.
4730 (CloneableClass): New define.
4731 * prims.cc (_Jv_FindClass): Removed.
4732 (simpleLookupClass): Removed.
4733 (insertClass): Removed.
4734 (CLASSHASHSZ): Removed.
4735 (classPool): Removed.
4736 (_Jv_RegisterClass): Removed.
4737 (internalAddClass): Removed.
4738 (ClassClass): Removed.
4739 (RuntimeClass): Removed.
4740 (lookupArray): Removed.
4741 (CloneableClass): Removed.
4742 (CLASSMAXSIG): Removed.
4743 Rearranged file to group related functions together.
4744 (_Jv_IsInstanceOf): Moved to natClass.cc.
4745 (abort_final): Removed.
4746 Removed some unused includes.
4747 (classFromSig): Removed.
4748 (_Jv_FindClassFromSignature): New function.
4749 (_Jv_initPrimClass): Renamed.
4750 (getClass): Removed.
4752 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4754 * java/io/FileDescriptor.java (finalize): Throws IOException
4755 instead of Throwable.
4757 * java/io/FileInputStream.java: Rewritten.
4759 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4760 at the end of a comment.
4762 1998-10-29 Tom Tromey <tromey@cygnus.com>
4764 * include/javaprims.h: Regenerated class declarations.
4765 * classes.pl (scan): Don't special-case ClassLoader.
4767 * prims.cc (processClass): Removed.
4768 (_Jv_InitClass): Removed.
4769 Removed all CSTATE_ macros.
4770 (resolveConstants): Removed.
4772 (_Jv_NewMultiArray): Cleaned up.
4773 * Makefile.in: Rebuilt.
4774 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4775 * java/lang/Class.h (Class): Declare new methods. processClass no
4777 * java/lang/Class.java (hackTrampoline): New method.
4778 (initializeClass): Declare.
4779 (hackRunInitializers): Declare.
4780 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4781 (initializeClass): New method.
4782 (hackRunInitializers): New method.
4783 (init_name, void_signature): Moved from prims.cc.
4784 (_Jv_InitClass): New function.
4785 (isAssignableFrom): Don't call processClass.
4786 (STATE_NOTHING): New macro.
4787 (resolveConstants): New function.
4789 (ErrorClass): New define.
4791 * java/lang/Class.java (getClassLoader): Declare.
4792 * java/lang/ClassLoader.java: Rewrote from scratch.
4794 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4795 AbstractMethodError.h, IllegalAccessError.h,
4796 NoClassDefFoundError.h.
4797 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4798 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4799 longer static. Changed return type.
4800 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4801 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4802 * prims.cc (findMethodLocal): Removed.
4803 (processClass): Use _Jv_GetMethodLocal.
4805 1998-10-28 Tom Tromey <tromey@cygnus.com>
4807 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4808 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4810 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4811 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4813 * include/jni.h: Added copyright header.
4814 * include/javaprims.h: Added copyright header.
4815 * include/java-field.h: Added copyright header.
4816 * include/java-array.h: Added copyright header.
4817 * include/cni.h: Added copyright header.
4819 * include/javaprims.h: Regenerated class declarations using
4820 classes.pl; now they are complete.
4821 * classes.pl: New file.
4823 * java/lang/natMath.cc: Include <config.h>.
4824 * java/lang/reflect/natField.cc: Include <config.h>.
4825 * java/util/NativeUtil.java: Removed.
4826 * Makefile.in: Rebuilt.
4827 * Makefile.am (nat_headers): Added Math.h.
4828 * java/lang/Math.h: Removed.
4829 * java/util/natGregorianCalendar.cc: Added copyright header.
4831 * java/lang/natFloat.cc: Added copyright header.
4832 * java/lang/Byte.java: Added copyright header.
4833 * java/lang/Void.java: Added copyright header.
4834 * java/lang/Short.java: Added copyright header.
4836 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4838 * include/javaprims.h (java::io): Added bunch of missing classes.
4840 * java/io/DataInputStream.java (readLine): Added a special case
4841 for handling BufferedInputStream data to reduce the likelihood
4842 of a pushback error.
4843 (skipBytes): Added code to handle negative number of skip bytes.
4845 * java/io/StreamTokenizer.java: Rewritten.
4847 1998-10-28 Tom Tromey <tromey@cygnus.com>
4849 * java/util/natGregorianCalendar.cc (computeFields): Call
4850 getRawOffset as a method.
4852 * include/javaprims.h (java::io): Added FilterOutputStream.
4853 * Makefile.in: Rebuilt.
4854 * Makefile.am (nat_headers): Added PrintStream.h,
4855 FilterOutputStream.h.
4856 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4858 (die): New function.
4859 (run): Die if `main' not found, is not public, or is not static.
4861 * boehm.cc (_Jv_MarkObj): Use new field names.
4862 * include/java-field.h (JvGetFirstInstanceField): Use new field
4864 (JvNumInstanceFields): Likewise.
4865 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4866 (getInterfaces): Likewise.
4867 * prims.cc (CLASS_CONSTANTS): Removed.
4868 (CLASS_CONST_SIZE): Likewise.
4869 (CLASS_CONST_TAG): Likewise.
4870 (CLASS_CONST_DATA): Likewise.
4871 (CLASS_CONST_UTF8): Likewise.
4872 (WORD2UTF): Likewise.
4873 (CLASS_CLASS): Likewise.
4874 (CLASS_PRIM_SIG): Likewise.
4875 (CLASS_ARRAY_CACHE): Likewise.
4876 (HASH_CHARS): Likewise.
4877 (hashClassName): Likewise.
4878 Many changes to use new field names.
4879 * java/lang/Class.h (Class): Renamed fields to track compiler.
4881 1998-10-27 Tom Tromey <tromey@cygnus.com>
4883 * java/lang/natClass.cc: Use #pragma implementation.
4884 (getComponentType): Moved into header.
4885 (getModifiers): Likewise.
4886 (getName): Likewise.
4887 (getSuperclass): Likewise.
4888 (isArray): Likewise.
4889 (isPrimitive): Likewise.
4890 * include/jvm.h (_Jv_FindClass): Declare.
4891 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4892 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4893 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4894 * java/lang/Class.h: Rewrote from scratch.
4895 * prims.cc: Many changes to work with new Class.h.
4896 * include/java-field.h (CLASS_FIELDS): Removed.
4897 (CLASS_SFIELDS): Likewise.
4898 (CLASS_IFIELDS): Likewise.
4899 (CLASS_NFIELDS): Likewise.
4900 (CLASS_NIFIELDS): Likewise.
4901 (CLASS_NSFIELDS): Likewise.
4902 (CLASS_FSIZE): Likewise.
4903 (JvGetFirstInstanceField): Rewrote.
4904 (JvNumInstanceFields): Likewise.
4906 * java/lang/Object.h: Added copyright comment.
4908 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4910 * java/text: New package directory.
4911 * java/text/FieldPosition.java: New class.
4912 * java/text/ParsePosition.java: New class.
4913 * java/text/ParseException.java: New Exception class.
4914 * java/text/Format.java: New class.
4915 * java/text/NumberFormat.java: New (empty placeholder) class.
4916 * java/text/DateFormatSymbols.java: New class (no Locales support).
4917 * java/text/DateFormat.java: New Format class (incomplete).
4918 * java/text/SimpleDateFormat.java: New DateFormat class.
4920 * include/javaprims.h (java::test): Added new package and classes.
4921 * java/util/Calendar.java (clone): New method.
4922 * java/util/Date.java (toString): Added non-native implementation.
4923 (parse): Made public instead of synchronized.
4924 * java/util/natDate.cc (toString): Removed.
4925 * java/util/natGregorianCalendar.cc (computeFields):
4926 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4928 1998-10-27 Tom Tromey <tromey@cygnus.com>
4930 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4932 * prims.cc (lookupArray): Added explanatory comment.
4933 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4934 class. Mark the class of each object.
4935 (_Jv_MarkArray): Mark the object's class.
4937 * configure: Rebuilt.
4938 * configure.in: Create java-gc.h.
4939 * include/boehm-gc.h: New file.
4940 * include/no-gc.h: New file.
4941 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4943 * java/lang/Object.h: Include java-gc.h.
4944 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4945 friends, if defined.
4946 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4948 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4950 1998-10-26 Tom Tromey <tromey@cygnus.com>
4952 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4953 paragraph separators, not numbers.
4955 * java/io/Writer.java (write): Removed write(char) to avoid
4957 * java/util/Properties.java: Rewrote from scratch.
4958 * include/javaprims.h (java::io): Added PrintWriter,
4959 BufferedWriter, PushbackReader.
4961 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4963 * java/lang/System.java: exit() is a static method.
4965 1998-10-26 Tom Tromey <tromey@cygnus.com>
4967 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4969 (_Jv_NewStringUtf8Const): Likewise.
4970 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4971 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4973 * java/lang/Object.h (Object): Add mark_array as friend function.
4974 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4975 _Jv_AllocBytes, to ensure that header is marked.
4976 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4978 (mark_array): Push sync_info field for array.
4980 1998-10-24 Tom Tromey <tromey@cygnus.com>
4982 * java/lang/String.java (String): Updated for StringBuffer
4984 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4986 * java/lang/StringBuffer.java: Renamed fields to conform to
4987 serialization spec: buffer->value, next->count, copy->shared.
4989 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4991 * java/util/TimeZone.java: New class.
4992 * java/util/SimpleTimeZone.java: New class.
4993 * java/util/Locale.java: New file.
4994 * java/util/Calendar.java: Make almost complete.
4995 * java/util/GregorianCalendar.java
4996 * java/util/natGregorianCalendar.cc: New file.
4997 * java/util/Date.java: Re-written from scratch.
4998 * java/util/natDate.cc (setTime): Removed - no longer native.
4999 * include/javaprims.h (java::util): Add new classes.
5000 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
5001 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
5003 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
5005 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
5006 returning it as a jint.
5008 1998-10-23 Tom Tromey <tromey@cygnus.com>
5010 * prims.cc (arg_vec, main_group, main_thread): New globals.
5011 (JvRunMain): Use them.
5013 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
5015 * java/io/DataInputStream.java: Rewritten.
5017 * java/io/DataOutputStream.java (writeUTF): OR secondary and
5018 tertiary bytes with 0x80 per spec.
5020 1998-10-23 Tom Tromey <tromey@cygnus.com>
5022 * java/lang/String.java (init): Changed name of `copy' argument.
5023 * java/lang/natString.cc (init): Inverted sense of `copy'
5026 * java/lang/Object.h (Object): Declare mark_obj as a friend.
5027 * java/lang/Class.h (Class): Declare mark_obj as a friend.
5028 * boehm.cc (ObjectClass): New define.
5029 (ClassClass): Likewise.
5030 (mark_obj): Special-case Object and Class.
5032 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
5034 * java/util/BitSet.java: Rewrote from scratch.
5036 * prims.cc (lookupArray): Removed useless cast.
5038 * java/lang/natObject.cc: Use `#pragma implementation'.
5040 * java/lang/String.java (init): Added `copy' argument.
5041 (String): Look in StringBuffer to find char array.
5042 * java/lang/natString.cc (init): Added `copy' argument.
5043 * java/lang/StringBuffer.java: Rewrote from scratch.
5045 * java/lang/Compiler.java: Rewrote from scratch.
5046 * java/lang/Throwable.java: Don't use NativeLang.
5047 * include/javaprims.h (java::lang): Don't mention NativeLang.
5048 * java/lang/Process.java: Rewrote from scratch.
5049 * java/lang/SecurityManager.java (classLoaderDepth): Commented
5051 (currentClassLoader): Likewise.
5052 (currentLoadedClass): Likewise.
5053 * java/lang/natClass.cc (getClassLoader): Commented out.
5054 * java/lang/Class.java (getClassLoader): Commented out.
5055 * java/lang/Compiler.java: Removed.
5056 * java/lang/NativeLang.java: Removed.
5058 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5059 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5060 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5061 (_Jv_hashUtf8String): Now static.
5062 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5063 name of return type.
5065 * java/lang/Class.h (Class): Declare checkMemberAccess.
5066 * Makefile.in: Rebuilt.
5067 * Makefile.am (nat_headers): Added Member.h.
5068 * java/lang/natClass.cc: Include Member.h.
5069 (getDeclaredClasses): Call checkMemberAccess.
5070 * java/lang/Class.java (checkMemberAccess): Call
5071 SecurityManager.checkMemberAccess.
5073 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5075 * java/lang/SecurityManager.java: Rewritten.
5077 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5079 * java/applet/Applet.java, java/applet/AppletContext.java,
5080 java/applet/AppletStub.java, java/applet/AudioClip.java,
5081 java/awt/AWTError.java, java/awt/AWTException.java,
5082 java/awt/BorderLayout.java, java/awt/Button.java,
5083 java/awt/Canvas.java, java/awt/CardLayout.java,
5084 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5085 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5086 java/awt/Color.java, java/awt/Component.java,
5087 java/awt/Container.java, java/awt/Dialog.java,
5088 java/awt/Dimension.java, java/awt/Event.java,
5089 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5090 java/awt/Font.java, java/awt/FontMetrics.java,
5091 java/awt/Frame.java, java/awt/Graphics.java,
5092 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5093 java/awt/GridLayout.java, java/awt/Image.java,
5094 java/awt/Insets.java, java/awt/Label.java,
5095 java/awt/LayoutManager.java, java/awt/List.java,
5096 java/awt/MediaTracker.java, java/awt/Menu.java,
5097 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5098 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5099 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5100 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5101 java/awt/TextArea.java, java/awt/TextComponent.java,
5102 java/awt/TextField.java, java/awt/Toolkit.java,
5103 java/awt/Window.java, java/awt/image/ColorModel.java,
5104 java/awt/image/CropImageFilter.java,
5105 java/awt/image/DirectColorModel.java,
5106 java/awt/image/FilteredImageSource.java,
5107 java/awt/image/ImageConsumer.java,
5108 java/awt/image/ImageFilter.java,
5109 java/awt/image/ImageObserver.java,
5110 java/awt/image/ImageProducer.java,
5111 java/awt/image/IndexColorModel.java,
5112 java/awt/image/MemoryImageSource.java,
5113 java/awt/image/PixelGrabber.java,
5114 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5115 java/awt/peer/CanvasPeer.java,
5116 java/awt/peer/CheckboxMenuItemPeer.java,
5117 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5118 java/awt/peer/ComponentPeer.java,
5119 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5120 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5121 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5122 java/awt/peer/MenuBarPeer.java,
5123 java/awt/peer/MenuComponentPeer.java,
5124 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5125 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5126 java/awt/peer/TextAreaPeer.java,
5127 java/awt/peer/TextComponentPeer.java,
5128 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5129 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5130 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5131 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5132 java/net/MalformedURLException.java, java/net/NativeNet.java,
5133 java/net/ProtocolException.java, java/net/ServerSocket.java,
5134 java/net/Socket.java, java/net/SocketException.java,
5135 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5136 java/net/URL.java, java/net/URLConnection.java,
5137 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5138 java/net/URLStreamHandlerFactory.java,
5139 java/net/UnknownHostException.java,
5140 java/net/UnknownServiceException.java: Removed.
5142 1998-10-22 Tom Tromey <tromey@cygnus.com>
5144 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5145 finalizer is not Object.finalize.
5146 (internalAddClass): Don't set `final' member of class.
5147 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5148 other places that know about finalize() location.
5149 * java/lang/Class.h (Class): Removed `final' field.
5151 * aclocal.m4, configure: Rebuilt.
5152 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5153 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5155 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5156 * Makefile.in: Rebuilt.
5157 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5159 1998-10-21 Tom Tromey <tromey@cygnus.com>
5161 * java/lang/Object.java (finalize): Move to be first method in
5164 * configure: Rebuilt.
5165 * configure.in (GCINCS): Include contents of boehm-cflags file.
5167 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5169 * java/lang/ArrayIndexOutOfBoundsException.java
5170 (ArrayIndexOutOfBoundsException): Fixed string literal.
5171 * java/lang/StringIndexOutOfBoundsException.java
5172 (StringIndexOutOfBoundsException): Fixed string literal.
5174 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5176 * natFileDescriptorEcos.cc added.
5177 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5179 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5181 * acconfig.h: test for __int32_t and __uint32_t added.
5182 * include/config.h.in: test for __int32_t and __uint32_t added.
5183 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5184 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5185 * configure.in: test for __int32_t and __uint32_t added.
5186 * configure: test for __int32_t and __uint32_t added.
5188 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5190 * configure.in: Test for --enable ecos and link
5191 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5192 natFileDescriptorPosix.cc
5194 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5196 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5198 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5201 * java/io/CharArrayReader.java (close): Synchronize on lock
5202 object per Reader contract.
5203 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5204 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5205 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5206 Ensure that arg passed in isn't negative.
5208 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5209 constructing the superclass.
5211 * java/io/PushbackReader.java (close): Synchronize on lock
5212 object per Reader contract.
5213 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5214 (ready): Synchronize on lock obj. Throw IOException if reader
5216 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5217 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5218 Ensure that arg passed in isn't negative.
5219 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5221 * java/io/StringReader.java: Created.
5223 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5225 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5227 (read): Removed synchronized modifier to match JCL.
5228 (reset): Removed synchronized modifier to match JCL.
5229 (skip): Removed synchronized modifier to match JCL.
5231 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5233 * java/io/PushbackReader.java (PushbackReader): Made
5234 constructors public.
5236 1998-10-17 Tom Tromey <tromey@cygnus.com>
5238 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5239 constructors public.
5241 1998-10-16 Anthony Green <green@cygnus.com>
5243 * aclocal.m4, configure: Rebuilt.
5244 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5246 * configure.host: Rewrote.
5247 * Makefile.in: Rebuilt.
5248 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5249 (AM_CFLAGS): New macro.
5250 ($(c_files)): Use COMPILE macro.
5251 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5252 automake problem(s).
5254 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5256 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5258 * java/io/CharArrayReader.java: Created.
5260 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5262 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5263 size check to allow 0 per JCL.
5265 * java/io/PushbackReader.java: Created.
5267 1998-10-16 Tom Tromey <tromey@cygnus.com>
5269 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5270 <sys/time.h> includes.
5271 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5272 * include/no-threads.h: Conditionalize <unistd.h> include on
5275 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5277 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5280 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5282 * java/io/FilterReader.java: Created.
5284 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5286 * java/io/PushbackInputStream.java: Rewritten.
5288 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5289 that size passed to constructor is legal.
5290 (read): Check that args passed in are legal.
5291 (skip): Rewritten to get rid of the temporary buffer.
5292 (refill): Added marklimit check to grow the buffer.
5294 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5296 (bytesAvail): Removed.
5297 (read): Changed bytesAvail to Math.min.
5298 (skip): Changed bytesAvail to Math.min.
5300 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5301 from the throws clause.
5302 (skip): Rewritten to use a temporary buffer.
5304 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5306 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5309 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5311 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5312 to write the double one word at a time.
5314 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5316 * java/io/BufferedInputStream.java: Rewritten.
5318 1998-10-12 Tom Tromey <tromey@cygnus.com>
5320 * jni.cc: Include config.h and stddef.h.
5322 * java/lang/Class.h (_dispatchTable): Removed again.
5323 Removed all ACC_* defines again.
5325 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5327 * Makefile.am (nat_files): Add netField.o.
5328 (libjava_a_SOURCES): Add jni.cc.
5329 (java/lang/reflect/Field.h): New rule.
5330 * Makefile.in: Re-generated.
5331 * include/javaprims.h: Add some extra class and typedefs.
5332 * include/jni.h: New file.
5335 * include/java-field.h: New file.
5336 * include/jvm.h: #include <java-field.h>.
5337 * boehm.cc: #include <java-field.h>.
5338 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5339 * java/lang/reflect/Member.java: New class.
5340 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5341 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5343 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5345 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5346 testsuite/Makefile.in: Rebuilt.
5347 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5348 * configure.host: Created.
5350 1998-10-10 Tom Tromey <tromey@cygnus.com>
5352 * java/lang/natObject.cc (sync_init): Always allocate a new
5355 1998-10-09 Tom Tromey <tromey@cygnus.com>
5357 * java/io/ByteArrayInputStream.java (mark): Renamed from
5360 * java/io/FileOutputStream.java (finalize): Removed.
5361 * java/io/FileDescriptor.java (finalize): New method.
5363 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5365 * ByteArrayInputStream.java: Corrected status comment.
5367 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5369 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5371 1998-10-08 Tom Tromey <tromey@cygnus.com>
5373 * prims.cc (lookupArray): Use static array to initialize list of
5376 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5378 * prims.cc (lookupArray): Initialize the msize for new
5381 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5383 * configure: Rebuilt.
5384 * configure.in: Check for fsync and sleep.
5385 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5387 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5388 HAVE_SLEEP. Include config.h.
5390 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5391 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5394 1998-10-08 Tom Tromey <tromey@cygnus.com>
5396 * java/io/natFile.cc: Don't include SecurityManager.h.
5397 (performList): Renamed.
5398 (performMkdir): Likewise.
5399 (performRenameTo): Likewise.
5400 (performDelete): Likewise.
5402 * java/io/File.java (performDelete): Renamed from natDelete.
5403 (list): Now written in Java.
5404 (performList): New method.
5405 (performMkdir): New method.
5406 (mkdir): Now written in Java.
5407 (performRenameTo): New method.
5408 (renameTo): Now written in Java.
5410 1998-10-06 Tom Tromey <tromey@cygnus.com>
5412 * Makefile.in: Rebuilt.
5413 * Makefile.am (ETAGS_ARGS): New macro.
5414 (TAGS_DEPENDENCIES): Likewise.
5416 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5418 * Makefile.in: Rebuilt.
5419 * Makefile.am: Use -classpath option with javac.
5421 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5423 * java/io/FileOutputStream.java (finalize): Call
5426 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5428 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5430 * java/lang/mprec.c: Ditto.
5432 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5435 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5437 * java/io/InputStream.java (skip): Make local var i a long.
5439 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5441 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5442 * prims.cc (lookupArray): Use memcpy, not memmove.
5443 * include/config.h.in: Rebuilt.
5444 * acconfig.h (HAVE_MEMCPY): Added.
5445 * configure: Rebuilt.
5446 * configure.in: Check for memcpy again.
5448 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5449 String.compareTo, not ==.
5451 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5452 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5453 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5454 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5455 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5456 into new array's dtable.
5457 (_Jv_AllocObject): Use _Jv_DispatchTable.
5458 (_Jv_NewPrimArray): Likewise.
5459 (_Jv_NewObjectArray): Likewise.
5461 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5463 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5464 offending index value.
5465 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5467 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5468 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5470 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5472 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5474 * java/io/OutputStream.java (write): Use off and len parameters to
5475 output partial byte array.
5477 * java/io/BufferedReader.java, java/io/FileReader.java,
5478 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5479 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5480 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5481 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5483 * include/javaprims.h (java::lang): Added
5484 ExceptionInInitializerError, IllegalStateException,
5485 NoSuchFieldException, and UnsupportedOperationException.
5487 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5489 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5492 * include/java-array.h (__JArray): Added clone method.
5493 * prims.cc (CloneableClass): New define.
5494 (lookupArray): Initialize array class to indicate that it
5495 implements Cloneable.
5497 * java/lang/Class.h: Removed all ACC_* defines.
5498 * prims.cc: Include Modifier.h.
5499 (_Jv_LookupInterfaceMethod): Use methods in
5500 java.lang.reflect.Modifier, not ACC_ defines.
5502 * java/lang/Class.h (Class): Declare getClasses,
5503 getDeclaredClasses, getDeclaringClass, getModifiers,
5504 * java/lang/Class.java: Rewrote from scratch.
5506 * include/javaprims.h (java::lang): Added reflect and
5508 * Makefile.in: Rebuilt.
5509 * Makefile.am (nat_headers): Added Modifier.h.
5511 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5514 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5516 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5517 instead of test and abort.
5519 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5520 remove compiler warning.
5522 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5524 * java/lang/natDouble.cc: zero terminate string.
5525 * strtod.c: Set errno if no digits are found in fraction.
5527 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5529 * java/lang/reflect/Modifier.java: New file.
5531 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5532 * java/lang/VerifyError.java: Rewrote from scratch.
5533 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5534 * java/lang/UnknownError.java: Rewrote from scratch.
5535 * java/lang/StackOverflowError.java: Rewrote from scratch.
5536 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5537 * java/lang/InternalError.java: Rewrote from scratch.
5538 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5539 * java/lang/ExceptionInInitializerError.java: New file.
5540 * java/lang/Error.java: Rewrote from scratch.
5541 * java/lang/ClassFormatError.java: Rewrote from scratch.
5542 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5543 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5544 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5545 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5546 * java/lang/LinkageError.java: Rewrote from scratch.
5547 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5549 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5551 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5552 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5554 * include/cni.h (JvAllocObject): Moved from prims.cc.
5556 * prims.cc (JvAllocObject): Moved to cni.h.
5557 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5558 (finalize_name): Removed.
5560 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5562 * java/lang/Class.h (Class): Added size() method.
5563 * prims.cc (_Jv_MonitorEnter): Removed.
5564 (_Jv_MonitorExit): Removed.
5565 * java/lang/Object.h (JvSyncInfo): Removed.
5566 * Makefile.in: Rebuilt.
5567 * Makefile.am (nat_headers): Added Cloneable.h,
5568 CloneNotSupportedException.h.
5569 * java/lang/Object.h: Rewrote.
5570 * java/lang/natObject.cc: Rewrote from scratch.
5571 * java/lang/Object.java: Rewrote from scratch.
5573 * java/io/natFile.cc: Conditionally include <dirent.h>.
5574 (list): If no <dirent.h>, always return NULL.
5575 * configure: Rebuilt.
5576 * configure.in: Check for dirent.h.
5578 * prims.cc (lookupArray): Don't use sprintf.
5580 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5587 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5588 name conflict with method.
5590 * include/javaprims.h (java::util): Added HashtableEntry.
5592 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5594 * java/util/Hashtable.java: Rewritten.
5596 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5598 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5602 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5605 * posix-threads.cc (_Jv_CondWait): Now returns int.
5606 * include/javaprims.h (java::lang): Added
5607 IllegalMonitorStateException.
5608 * Makefile.in: Rebuilt.
5609 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5610 * include/no-threads.h (_Jv_CondDestroy): Removed.
5611 (_Jv_MutexDestroy): Removed.
5612 (_Jv_CondWait): Now returns int.
5613 (_Jv_CondNotify): Likewise. Added mutex argument.
5614 (_Jv_CondNotifyAll): Likewise.
5615 (_Jv_MutexLock): Always succeed.
5616 (_Jv_MutexUnlock): Likewise.
5617 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5618 (_Jv_HaveMutexDestroy): Define.
5619 (_Jv_CondNotify): Now returns int. Added mutex argument.
5620 (_Jv_CondNotifyAll): Likewise.
5621 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5622 (_Jv_MutexDestroy): Removed.
5623 (_Jv_CondWait): Now returns int.
5624 (_Jv_CondNotify): Likewise. Added mutex argument.
5625 (_Jv_CondNotifyAll): Likewise.
5626 * java/lang/natObject.cc (finalize_sync_info): New function.
5627 (init_mutex): Initialize `init' and register finalizer if
5630 (init_mutex): Use it.
5632 (notifyAll): Use it.
5634 (notify): Throw IllegalMonitorStateException on failure.
5635 (notifyAll): Likewise.
5636 (wait): Likewise. Also, throw InterruptedException if
5638 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5639 InterruptedException.h, IllegalArgumentException.h.
5640 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5642 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5643 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5644 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5645 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5646 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5647 * quick-threads.cc: Renamed all `JvPriv' functions.
5648 * prims.cc: Renamed all `JvPriv' functions.
5649 * posix-threads.cc: Renamed all `JvPriv' functions.
5650 * nogc.cc: Renamed all `JvPriv' functions.
5651 * no-threads.cc: Renamed all `JvPriv' functions.
5652 * boehm.cc: Renamed all `JvPriv' functions.
5653 * include/quick-threads.h: Renamed all `JvPriv' functions.
5654 * include/posix-threads.h: Renamed all `JvPriv' functions.
5655 * include/no-threads.h: Renamed all `JvPriv' functions.
5656 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5658 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5660 (JvPrivCondNotify): Do nothing.
5661 (JvPrivCondNotifyAll): Do nothing.
5663 * prims.cc (processClass): Handle case where state is
5666 * java/lang/natFirstThread.cc: Include <stdlib.h>
5668 * configure: Rebuilt.
5669 * configure.in: Fixed sense of --enable-libjava-debug.
5671 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5672 it can be used afterward by the assertion.
5674 * configure: Rebuilt.
5675 * configure.in: When cross-compiling, assume alloca.
5677 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5678 __builtin_alloca (autoconf docs are wrong here).
5680 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5682 (available): Use `FD_ZERO' (typo fix).
5684 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5686 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5687 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5689 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5690 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5693 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5695 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5697 * java/lang/natDouble.cc: Declare alloca safely.
5699 * configure, include/config.h.in: Rebuilt.
5700 * configure.in: Add alloca check.
5702 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5704 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5705 condition while calling notify.
5706 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5707 (interrupt): Hold mutex for interrupt condition while calling
5710 * java/lang/natString.cc (init): Allocate and try to read `count'
5711 characters, not `count - offset' characters.
5713 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5714 Correctly compute `count'.
5716 * java/lang/Boolean.java (getBoolean): Return false if property
5719 * java/lang/System.java (setProperties): Set prop_init.
5721 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5723 * java/io/PrintStream.java (println): Use line.separator, not
5725 * java/lang/System.java (out, err): Make both autoflush streams.
5726 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5728 * include/config.h.in: Rebuilt.
5729 * acconfig.h (HAVE_MEMCPY): Removed.
5730 * configure: Rebuilt.
5731 * configure.in: Never define HAVE_MEMCPY.
5733 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5735 (_Jv_AllocString): Use JvAllocObject again.
5736 * java/lang/Class.h (thread): New field.
5737 (_Jv_AllocString): No longer a friend.
5738 * prims.cc (processClass): Removed dead code. Changed to more
5739 closely follow the Java Language Specification.
5740 (processClass): Return early if already at the right state.
5742 * prims.cc (JvNewStringUTF): Removed.
5743 * include/cni.h (JvNewStringUTF): New function.
5744 (_Jv_NewStringUTF): Declare as `extern "C"'.
5745 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5747 * java/lang/natDouble.cc: Added copyright info and header
5748 comment. Include <stdlib.h>.
5749 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5750 bytes as are chars in string.
5752 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5754 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5758 * java/lang/System.java (init_properties): Now native.
5759 * java/lang/natSystem.cc (init_properties): New method.
5760 Include java/util/Properties.h.
5762 * Makefile.in: Rebuilt.
5763 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5764 OutputStreamWriter.h, ByteArrayInputStream.h,
5765 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5766 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5767 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5768 Properties.h, Hashtable.h, Dictionary.h.
5771 * include/javaprims.h (java::io): Added Reader, Writer,
5772 InputStreamReader, OutputStreamWriter,
5773 UnsupportedEncodingException, ByteArrayInputStream,
5774 ByteArrayOutputStream, EOFException, SyncFailedException,
5775 PushbackInputStream.
5776 (java::lang): Added Cloneable.
5777 (java::util): Added NoSuchElementException, VectorEnumeration,
5778 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5780 * java/io/PipedReader.java: New file.
5782 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5784 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5787 * java/io/io-defs.h: Removed.
5789 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5790 (FileInputStream): Use new constructor. Can throw IOException.
5792 * java/lang/System.java (getProperty): Don't throw
5793 NullPointerException.
5795 * java/io/RandomAccessFile.java: Rewrote from scratch.
5797 * java/io/natFileDescriptor.cc: Include EOFException.h.
5799 (length): New method.
5800 (getFilePointer): New method.
5802 (available): New method.
5803 * java/io/FileDescriptor.java (SET, CUR): New constants.
5804 (seek, length, getFilePointer, read, available): New decls.
5806 * java/io/PipedWriter.java: New file.
5807 * java/io/StringWriter.java: New file.
5808 * java/io/CharArrayWriter.java: New file.
5809 * java/io/CharConversionException.java: New file.
5810 * java/io/BufferedWriter.java: New file.
5811 * java/io/FilterWriter.java: New file.
5812 * java/io/FileWriter.java: New file.
5814 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5815 OutputStreamWriter.h, NullPointerException.h,
5816 ByteArrayInputStream.h, InputStreamReader.h.
5817 (getBytes): New method.
5818 (init): Throw NullPointerException.
5819 (init): New function.
5820 * java/lang/String.java (getBytes): Added missing decl.
5821 (getBytes): New method.
5822 (String): Added byte[]-based constructors.
5823 (copyValueOf): Wrote.
5824 (init): Declare variant which takes byte array and encoding.
5825 Import java.io.UnsupportedEncodingException.
5827 * java/io/File.java: Rewrote from scratch.
5828 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5829 * java/io/FileDescriptor.java: Rewrote from scratch.
5830 * java/io/FilenameFilter.java: Rewrote from scratch.
5832 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5834 * java/io/SyncFailedException.java: New file.
5835 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5836 * java/io/InterruptedIOException.java: Rewrote from scratch.
5837 * java/io/FileNotFoundException.java: Rewrote from scratch.
5838 * java/io/EOFException.java: Rewrote from scratch.
5839 * java/io/IOException.java: Rewrote from scratch.
5840 * java/io/PrintStream.java: Rewrote from scratch.
5841 * java/io/DataOutputStream.java: Rewrote from scratch.
5842 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5843 * java/io/FilterOutputStream.java: Rewrote from scratch.
5844 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5845 * java/io/PipedOutputStream.java: Rewrote from scratch.
5846 * java/io/FileOutputStream.java: Rewrote from scratch.
5847 * java/io/OutputStream.java: Rewrote from scratch.
5848 * java/io/DataOutput.java: Rewrote from scratch.
5850 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5852 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5854 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5856 * configure.in: Add --enable-libjava-debug
5858 * Makefile.am (nat_headers): Add java/lang/Float.h and
5861 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5863 * Makefile.in, configure, include/config.h.in: Rebuilt.
5865 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5867 * java/lang/Float.java: Rewritten
5868 * java/lang/Double.java: Rewritten
5869 * java/lang/natFloat.cc: toString() added.
5870 * java/lang/natDouble.cc: toString() added.
5871 * java/lang/natDouble.cc: doubleValueOf() added.
5872 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5873 java/lang/strtod.c: added.
5874 * ieeefp.h: __sparc added.
5875 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5877 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5879 * include/javaprims.h (java::lang): Added
5880 CloneNotSupportedException.
5882 * java/lang/Object.java (clone): No longer native. Implemented.
5883 * java/lang/natObject.cc (clone): Removed.
5885 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5887 * prims.cc: Don't make definitions `extern "C"'.
5888 (_Jv_RegisterClass): Renamed from registerClass.
5889 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5890 (_Jv_NewArray): Likewise.
5891 (_Jv_NewMultiArray): Likewise.
5892 (_Jv_CheckCast): Likewise.
5893 (_Jv_LookupInterfaceMethod): Likewise.
5894 (_Jv_CheckArrayStore): Likewise.
5895 (_Jv_RegisterClass): Likewise.
5897 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5898 * configure: Rebuilt.
5899 * configure.in: Don't check for fmod; it is provided by the fdlibm
5901 * prims.cc (fmod): Removed.
5903 * java/lang/natString.cc (charAt): Use _Jv_uint.
5904 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5905 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5906 (equalUtf8Consts): Likewise.
5907 (internalAddClass): Use _Jv_uint.
5908 (processClass): Likewise.
5909 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5910 (_Jv_uint): Renamed from uint32.
5911 (struct _Jv_Utf8Const): Changed members to use new type names.
5913 * configure: Rebuilt.
5914 * configure.in: Don't check for memcpy. Require memmove and a way
5916 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5918 (currentTimeMillis): Don't use #error.
5920 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5922 * java/lang/Math.java: static member random renamed to random_ to
5923 avoid conflict with member function of the same name.
5924 * include/javaprims.h: java.util.Random added.
5926 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5928 * include/java-chartables.h: Regenerated.
5929 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5932 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5934 * java/lang/Math.java: Rewritten.
5935 * java/lang/natMath.cc: New file.
5936 * Files added from fdlibm:
5937 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5938 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5939 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5940 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5941 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5942 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5943 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5944 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5945 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5946 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5947 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5948 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5949 java/lang/k_cos.c, java/lang/sf_ceil.c,
5950 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5951 java/lang/ieeefp.h, java/lang/fdlibm.h
5952 * Makefile.am: rules added for compiling C files from fdlibm.
5954 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5956 * chartables.pl: Minor documentation fixes.
5958 * configure: Rebuilt.
5959 * configure.in: Fixed --help output for --enable-fast-character.
5961 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5963 * configure: Rebuilt.
5964 * configure.in: Recognize --enable-fast-character.
5965 * acconfig.h (COMPACT_CHARACTER): New define.
5966 * include/config.h.in: Rebuilt.
5967 * include/java-chartables.h: New file.
5968 * Makefile.in: Rebuilt.
5969 * Makefile.am (nat_files): Added natCharacter.o.
5970 * java/lang/natCharacter.cc: New file.
5971 * chartables.pl (set_attribute): New function.
5972 (@attributes, @second_attributes): New globals.
5973 ($ROMAN_START, $ROMAN_END): Likewise.
5974 (process_char): Call set_attribute when required.
5975 (print_char): Just print hex value.
5976 (print_block): Generate C++ syntax.
5977 (print_numerics): Likewise.
5978 (print_single_map): Likewise.
5979 (print_all_block): Likewise.
5980 (print_case_table): Likewise.
5981 (print_fast_tables): New function.
5982 Generate C++ code suitable for a header file.
5983 * java/lang/Character.java (table_search): Removed.
5984 (digit_value): Now native.
5985 (getNumericValue): Likewise.
5986 (getType): Likewise.
5987 Removed all automatically-generated tables.
5988 (Tamil_Digit_One): Removed.
5989 (isSpaceChar): Now native.
5990 (isTitleCase): Likewise.
5991 (isLowerCase): Likewise.
5992 (isUpperCase): Likewise.
5993 (toLowerCase): Likewise.
5994 (toTitleCase): Likewise.
5995 (toUpperCase): Likewise.
5996 (isDefined): Fixed sense of test.
5998 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
6000 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
6002 (regionMatches): Likewise.
6004 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
6006 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
6008 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
6010 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
6013 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
6016 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
6018 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
6020 * prims.cc (instanceof_class): Removed.
6021 (instanceof_array): Likewise.
6022 (instanceof): Likewise.
6023 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
6024 (_Jv_CheckCast): Likewise.
6025 * java/lang/natClass.cc (isAssignableFrom): New method.
6026 * java/lang/Class.java (isAssignableFrom): Now native.
6028 * include/cni.h (JvThrow): Use `extern inline'.
6029 (JvAllocObject): Likewise.
6030 (JvInitClass): Likewise.
6032 * java/lang/natSystem.cc (arraycopy): Only check class of source
6035 * prims.cc (_Jv_CheckArrayStore): Wrote.
6036 (_Jv_MonitorEnter): Prefer `JvThrow'.
6037 Include ArrayStoreException.h.
6038 (_Jv_CheckCast): Indentation cleanup.
6040 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
6042 * chartables.pl: New file.
6043 * java/lang/Character.java: Rewrote from scratch.
6045 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
6047 * java/lang/ArithmeticException.java,
6048 java/lang/ArrayIndexOutOfBoundsException.java,
6049 java/lang/ArrayStoreException.java,
6050 java/lang/ClassCastException.java,
6051 java/lang/ClassNotFoundException.java,
6052 java/lang/CloneNotSupportedException.java,
6053 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6054 java/lang/IllegalArgumentException.java,
6055 java/lang/IllegalMonitorStateException.java,
6056 java/lang/IllegalThreadStateException.java,
6057 java/lang/IndexOutOfBoundsException.java,
6058 java/lang/InstantiationException.java,
6059 java/lang/InterruptedException.java,
6060 java/lang/NegativeArraySizeException.java,
6061 java/lang/NoSuchMethodException.java,
6062 java/lang/NullPointerException.java,
6063 java/lang/NumberFormatException.java,
6064 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6065 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6067 * java/lang/IllegalStateException.java,
6068 java/lang/NoSuchFieldException.java,
6069 java/lang/UnsupportedOperationException.java: Created.
6071 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6073 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6074 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6076 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6078 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6080 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6082 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6084 * Makefile.in: Rebuilt.
6086 * include/javaprims.h (java::lang): Added
6087 StringIndexOutOfBoundsException.
6089 * java/lang/String.java: Added header comment and FIXME comment for
6090 missing constructors/methods.
6091 (endsWith): Adjusted offset into string to look at just the last chars.
6092 Commented out undocumented method.
6094 * java/lang/natString.cc: Added includes for
6095 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6096 (String::init): Throw StringIndexOutOfBoundsException.
6097 (String::charAt): Throw StringIndexOutOfBoundsException.
6098 (String::substring): Throw StringIndexOutOfBoundsException.
6099 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6100 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6101 (String::compareTo): Return difference/offset between chars/strings.
6103 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6105 * java/lang/Boolean.java (TYPE): Added comment.
6107 * java/lang/Byte.java (decode): Added - commented out until dependent
6108 code for Integer is written.
6109 (compareTo): JDK 1.2 methods written.
6110 (hashCode): Added comment to note that values have been verified.
6112 * java/lang/Short.java (decode): Added - commented out until dependent
6113 code for Integer is written.
6114 (compareTo): JDK 1.2 methods written.
6115 (hashCode): Added comment to note that values have been verified.
6117 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6119 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6121 * include/javaprims.h (java::lang): Added VirtualMachineError,
6123 * Makefile.in: Rebuilt.
6124 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6125 VirtualMachineError.h.
6126 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6127 (lookupArray): Likewise.
6128 (makeUtf8Const): Likewise.
6129 (_Jv_AllocObject): Likewise.
6130 (_Jv_NewObjectArray): Likewise.
6131 Include OutOfMemoryError.h.
6133 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6134 to use JvNewStringLatin1.
6136 * java/io/io-defs.h: Include java/lang/IOException.h.
6137 * Makefile.in: Rebuilt.
6138 * Makefile.am (nat_headers): Added
6139 ArrayIndexOutOfBoundsException.h,
6140 ClassFormatError.h,ClassNotFoundException.h,
6141 ClassCircularityError.h, ClassCastException.h,
6142 IncompatibleClassChangeError.h, AbstractMethodError.h,
6143 IllegalAccessError.h, LinkageError.h, Error.h,
6144 NegativeArraySizeException.h, IOException.h.
6145 * include/cni.h (SignalError): Removed declaration.
6146 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6147 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6148 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6149 (newInstance): Likewise.
6150 (forName): Likewise.
6151 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6153 (read): Use JvThrow, not SignalError.
6158 (open_read): Likewise.
6159 (open_write): Likewise.
6162 (newstr): New function.
6163 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6165 (lastModifiedUnchecked): Likewise.
6166 (lengthUnchecked): Likewise.
6167 * include/javaprims.h (sorry): Removed declaration.
6168 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6169 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6170 ClassCastException, IncompatibleClassChangeError,
6171 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6172 * prims.cc (instanceof_array): Use JvFail, not sorry.
6174 Include ArrayIndexOutOfBoundsException.h,
6175 ClassFormatError.h,ClassNotFoundException.h,
6176 ClassCircularityError.h, ClassCastException.h,
6177 IncompatibleClassChangeError.h, AbstractMethodError.h,
6178 IllegalAccessError.h, NegativeArraySizeException.h.
6179 (_Jv_ThrowBadArrayIndex): Implemented.
6180 (JvNewStringUTF): Use JvFail, not sorry.
6181 (_Jv_FindClass): Likewise.
6182 (_Jv_NewArray): Likewise.
6183 (throwException): Removed.
6184 (getClass): Use JvThrow.
6185 (processClass): Likewise.
6186 (_Jv_NewObjectArray): Likewise.
6187 (_Jv_NewMultiArray): Likewise.
6188 (_Jv_CheckCast): Likewise.
6189 (_Jv_LookupInterfaceMethod): Likewise.
6190 (SignalError): Removed.
6191 (getClass): Use _Jv_NewStringUtf8Const to create String.
6193 * java/lang/natSystem.cc (arraycopy): Throw
6194 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6196 * Makefile.in: Rebuilt.
6197 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6199 * include/java-array.h: Mention gcjh, not gjavah.
6201 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6202 (canReadUnchecked): Likewise.
6203 (canWriteUnchecked): Likewise.
6204 (isFileUnchecked): Likewise.
6205 * java/io/natFileDescriptor.cc: Don't include cni.h.
6207 * java/lang/Thread.java (run__): Declare.
6208 * java/lang/natThread.cc (run__): New method, to avoid compiler
6210 (start): Use run__, not run_.
6212 * java/io/io-defs.h: Include cni.h and jvm.h.
6214 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6216 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6217 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6218 to natString.cc (with suitable renaming, inlines etc).
6219 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6220 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6221 * java/lang/String.h: Removed - now generated using gjavah.
6222 * java/lang/String.java: Re-written from scratch. Many native methods.
6223 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6224 * java/lang/natString.cc: Many functions re-written for "compact
6225 strings" representation, or native java.lang.String methods added.
6226 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6227 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6228 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6229 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6230 * include/cni.h: Add inline method.
6231 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6232 * include/javaprims.h: Moved some stuff frm String.h.
6233 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6234 * Makefile.am (nat_header): Added Character.h and String.h.
6235 (String.h): Add new rule.
6237 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6239 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6241 * posix-threads.cc: Include cni.h, jvm.h.
6242 * quick-threads.cc: Include cni.h, jvm.h.
6243 * nogc.cc: Include cni.h, not javaprims.h.
6244 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6245 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6246 include java-assert.h.
6247 * java/lang/natSystem.cc: Include cni.h. Don't include
6249 * java/lang/natRuntime.cc: Include cni.h. Don't include
6251 * prims.cc: Rearranged #include ordering. Don't include
6252 java-array.h or java-assert.h.
6253 * boehm.cc: Include config.h, cni.h.
6254 * exception.cc: Include config.h, cni.h.
6255 * include/jvm.h: Include java-assert.h.
6256 * include/cni.h: Include java/lang/Object.h. Don't include
6257 java-threads.h or java-array.h.
6259 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6261 * java/lang/Boolean.java: Rewritten.
6263 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6265 * java/lang/natFirstThread.cc (main_func): New typedef.
6266 (run): Use main_func, not JvPrivThreadStartFunc.
6267 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6269 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6271 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6274 Can't throw Java exceptions with C++ `throw':
6275 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6276 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6277 (setPriority): Likewise.
6281 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6282 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6284 Can't catch Java exceptions from C++:
6285 * java/lang/natThread.cc (finish_): New method.
6287 * java/lang/Thread.java (run_): Rewrote in Java.
6288 (finish_): New native method.
6290 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6292 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6294 * include/javaprims.h (java::io): Added Serializable.
6296 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6298 * java/util/EmptyStackException.java,
6299 java/util/NoSuchElementException.java: Rewritten.
6301 * java/util/ConcurrentModificationException.java,
6302 java/util/MissingResourceException.java,
6303 java/util/TooManyListenersException.java: Created.
6305 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6307 * include/cni.h (JvThrow): New function.
6308 * include/javaprims.h (_Jv_Throw): Declare.
6310 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6312 * java/util/Observable.java: Rewritten.
6314 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6316 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6317 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6318 Include NullPointerException.h.
6320 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6322 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6323 assignability checks. Don't bother using memcpy.
6325 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6327 * include/quick-threads.h (JvPrivThreadWait): New function.
6328 * include/no-threads.h (JvPrivThreadWait): New function.
6329 * include/posix-threads.h (JvPrivThreadWait): New function.
6330 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6332 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6334 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6335 offsets by size of type that is being copied.
6337 * java/lang/natThread.cc (start): Don't pass `object' argument to
6339 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6340 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6342 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6343 always pass thread as object.
6344 * include/quick-threads.h, include/posix-threads.h,
6345 include/no-threads.h (JvPrivThreadStart): Removed `object'
6348 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6350 * java/util/Dictionary.java: Rewritten.
6352 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6354 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6355 (JvPrivThreadDestroy): Likewise.
6357 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6359 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6361 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6363 * java/lang/natSystem.cc: Rewrote from scratch.
6364 * java/lang/System.java: Rewrote from scratch.
6365 * java/lang/Class.h (Class): Declare isAssignableFrom.
6366 * include/javaprims.h (java::lang): Added ArrayStoreException,
6367 IndexOutOfBoundsException.
6368 * Makefile.in: Rebuilt.
6369 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6370 IndexOutOfBoundsException.h.
6371 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6372 * include/jvm.h (_Jv_HashCode): New function.
6374 * java/lang/natThread.cc (suspend): Call checkAccess.
6376 * java/lang/Thread.java (setDaemon): Call checkAccess.
6378 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6380 * java/lang/Runtime.java: Rewrote from scratch.
6381 * java/lang/natRuntime.cc: Rewrote from scratch.
6383 * nogc.cc (JvPrivGCTotalMemory): New function.
6384 (JvPrivGCFreeMemory): Likewise.
6385 (total): New global.
6386 (JvPrivAllocObj): Increment total.
6387 (JvPrivAllocArray): Likewise.
6388 (JvPrivAllocBytes): Likewise.
6389 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6390 * boehm.cc (JvPrivGCTotalMemory): New function.
6391 (sum_blocks): Likewise.
6392 (JvPrivGCFreeMemory): Likewise.
6394 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6396 * include/javaprims.h (java::lang): Added FirstThread.
6397 * java/lang/natFirstThread.cc: New file.
6398 * java/lang/FirstThread.java: New file.
6399 * prims.cc (main_signature): Removed.
6400 (main_name): Removed.
6401 #include FirstThread.h.
6402 * Makefile.in: Rebuilt.
6403 * Makefile.am (TFRIEND): Removed.
6404 (java/lang/Thread.h): Likewise.
6405 (FTFRIEND): New macro.
6406 (java/lang/FirstThread.h): New target.
6407 (nat_files): Added natFirstThread.o.
6408 (nat_headers): Added FirstThread.h.
6409 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6410 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6412 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6416 * java/lang/natThread.cc (start): Synchronize the thread.
6417 (stop): Synchronize the thread.
6419 * java/lang/ThreadDeath.java: Rewrote from scratch.
6421 * Makefile.in: Rebuilt.
6422 * Makefile.am (TGFRIEND): New macro.
6423 (java/lang/ThreadGroup.h): New target.
6424 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6426 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6428 * nogc.cc: Include config.h.
6430 * java/lang/ThreadGroup.java: Rewrote from scratch.
6432 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6434 * java/lang/Thread.java (checkAccess): Only call in to security
6435 manager if it exists.
6436 (Thread): Don't check access when creating the first thread. Add
6437 this thread to the appropriate ThreadGroup.
6439 * java/lang/natThread.cc (run_): Call uncaughtException method on
6442 * java/lang/Runnable.java: Rewrote from scratch.
6443 * java/lang/Thread.java: Updated copyright comment to correct
6446 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6448 * java/util/Random.java: Rewritten.
6450 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6452 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6453 trailing 0 in array[].
6455 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6457 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6458 and RUNTESTFLAGS from AM_MAKEFLAGS.
6459 (SUBDIRS): Conditionally include testsuite.
6460 * Makefile.in: Rebuilt.
6462 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6464 * java/lang/Object.h: Include java-assert.h.
6466 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6468 * Makefile.am: Add testsuite directory.
6469 * configure.in: Build testsuite/Makefile.
6470 * Makefile.in, configure: Rebuilt.
6472 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6474 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6475 * include/jvm.h (_Jv_StartFirstThread): Declare.
6477 * include/javaprims.h (java::lang): Added Exception,
6480 * Makefile.in: Rebuilt.
6481 * Makefile.am (nat_headers): Added NullPointerException.h,
6482 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6483 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6484 (java/lang/Thread.h): New target.
6485 (TFRIEND): New macro
6487 * include/java-assert.h (JvFail): Use 0 and not NULL.
6489 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6490 instead of assuming we are a friend of Thread.
6491 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6492 instead of assuming we are a friend of Thread.
6494 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6496 * java/lang/natThread.cc: Rewrote from scratch.
6497 * java/lang/Thread.java: Rewrote from scratch.
6498 * prims.cc (JvRunMain): Use new Thread constructor.
6499 * include/javaprims.h (java::lang): Added InterruptedException.
6500 * Makefile.in: Rebuilt.
6501 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6502 * java/lang/Thread.h: Removed.
6503 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6504 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6506 * posix-threads.cc (JvPrivThreadJoin): Removed.
6507 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6508 (really_start): Don't notify join_cond.
6509 (JvPrivThreadStart): Added `data' argument.
6510 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6511 (JvPrivThreadJoin): Likewise.
6512 Use JvFail instead of sorry.
6513 (JvPrivThreadSuspend): Removed.
6514 (JvPrivThreadResume): Removed.
6515 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6516 (JvPrivThreadJoin): Likewise.
6517 (JvPrivThreadSuspend): Use JvFail.
6518 (JvPrivThreadResume): Likewise.
6519 (JvPrivThreadSuspend): Removed.
6520 (JvPrivThreadResume): Likewise.
6521 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6522 (JvPrivThread_t): Removed join_mutex, join_cond.
6523 Use JvFail instead of sorry.
6524 (JvPrivThreadSuspend): Removed.
6525 (JvPrivThreadResume): Likewise.
6527 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6529 * java/util/Observer.java: Rewritten
6530 * java/util/Enumeration.java: Rewritten
6532 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6534 * java/util/StringTokenizer.java: Rewritten
6535 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6536 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6537 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6539 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6541 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6544 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6545 Include java-assert.h.
6546 * include/java-assert.h: New file.
6547 * prims.cc (_Jv_Abort): New function.
6548 Include java-assert.h, not assert.h.
6549 (_Jv_MonitorExit): Use JvAssert.
6550 (resolveConstants): Likewise.
6551 (processClass): Likewise.
6552 (JvRunMain): Assert that method is found.
6554 * configure: Rebuilt.
6555 * configure.in: Check for test subdir.
6556 * Makefile.in: Rebuilt.
6557 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6559 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6560 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6562 * prims.cc (resolveConstants): Removed unused variables.
6563 (processClass): Likewise.
6565 * include/quick-threads.h (JvPrivThreadCurrent): Use
6567 * quick-threads.cc (destroy_data): New function.
6568 (JvPrivInitThreads): Create key.
6569 (JvPrivThreadKey): New global.
6570 (JvPrivThreadStart): Use coop_setspecific.
6572 * include/quick-threads.h, include/posix-threads.h,
6573 include/no-threads.h, no-threads.cc, quick-threads.cc,
6574 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6576 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6578 * include/no-threads.h (JvPrivThreadInitData): Don't set
6581 * include/quick-threads.h (JvPrivCondWait): coop function now
6583 (JvPrivThreadJoin): Likewise.
6585 * java/lang/Thread.h (Thread): Updated declaration of
6587 * include/quick-threads.h, include/posix-threads.h: Updated
6588 declaration of JvPrivThreadStart.
6589 * include/no-threads.h (JvPrivThreadStart): Changed definition
6591 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6592 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6593 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6595 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6597 * quick-threads.cc (qthrow): New function.
6598 (JvPrivInitThreads): New function.
6599 (started): New global.
6600 (JvPrivThreadStart): Call coop_start if required.
6601 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6602 (JvPrivThreadDestroy): Likewise.
6603 (JvPrivInitThreads): Removed.
6604 * include/posix-threads.h (JvPrivThreadCancel): Added error
6606 * java/lang/natThread.cc (stop_): Pass exception to
6609 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6611 * include/javaprims.h (java::lang): Added
6612 IllegalArgumentException, IllegalThreadStateException, Math,
6613 NullPointerException, ThreadDeath.
6614 (java::util): Added Enumeration.
6616 * Makefile.in: Rebuilt.
6617 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6619 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6621 (threadsv): Renamed from threads to avoid clash in C++ header.
6622 (groupsv): Likewise.
6623 * include/no-threads.h (JvPrivThreadStart): Removed.
6624 * no-threads.cc (JvPrivThreadStart): New function.
6625 * java/lang/Thread.java (Thread): New constructor for internal use.
6626 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6627 (Thread): Declare constructor.
6628 * prims.cc (JvRunMain): Create the initial Thread and
6630 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6631 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6632 Removed `daemon' argument.
6634 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6635 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6637 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6639 * Makefile.in: Rebuilt.
6640 * Makefile.am (INCLUDES): Include THREADINCS.
6642 * configure: Rebuilt.
6643 * configure.in: Recognize `qt' as a threads package.
6645 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6647 * java/util/Stack.java (pop): Null out topmost node for robustness.
6649 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6651 * java/util/Stack.java: Rewritten.
6652 * java/util/Vector.java (isEmpty): Simplified expression.
6654 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6656 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6657 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6659 * include/java-array.h (JvNewObjectArray): Created inline to
6662 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6665 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6667 * java/util/Vector.java: Rewritten.
6668 * java/io/Serializable.java: Created.
6670 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6672 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6673 Infinity is 1/0, not 1/1.
6675 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6677 * configure: Rebuilt.
6678 * configure.in: Removed duplicate AC_ARG_WITH.
6680 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6682 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6684 (_Jv_InitClass): Renamed from soft_initialise_class.
6685 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6686 (_Jv_CheckCast): Renamed from soft_checkcast.
6687 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6688 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6689 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6690 * include/cni.h (JvInitClass): New function.
6691 (_Jv_InitClass): Renamed from soft_initialise_class.
6693 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6695 * configure: Rebuilt.
6696 * configure.in (CXX): Don't set.
6697 * Makefile.in: Rebuilt.
6698 * Makefile.am (AM_CXXFLAGS): New macro.
6700 * Makefile.in: Rebuilt.
6701 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6702 nogc.o): New target.
6704 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6706 (mark_array): Likewise.
6708 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6710 * java/lang/Class.h (JvMethod): Removed some unused fields.
6711 (JvField.info): Removed unused idx union variant.
6713 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6715 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6718 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6720 * configure.in, configure (CXX): Add -fvtable-thunks.
6722 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6724 * java/lang/Object.java (finalize): Move first.
6725 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6726 (Object): Re-arrange order to match Object.java.
6728 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6730 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6731 * java/lang/natString.cc (hashChars): Likewise.
6733 * prims.cc (RuntimeClass): New macro.
6734 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6736 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6738 * Makefile.in: Rebuilt.
6739 * Makefile.am (AM_MAKEFLAGS): New macro.
6741 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6743 * nogc.cc: Include <javaprims.h>.
6745 * Makefile.in: Rebuilt.
6746 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6748 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6750 * exception.cc (terminate): Removed.
6751 (unexpected): Removed.
6753 * configure: Rebuilt.
6754 * configure.in: Handle case where target subdir is ".".
6756 * configure: Rebuilt.
6757 * configure.in: Compute COMPPATH based on --with-target-subdir
6758 option. Added --with-target-subdir and --with-cross-host. Use
6759 --with-cross-host to determine when a cross compiler is in use.
6761 * Makefile.in: Rebuilt.
6762 * Makefile.am (GJAVAH): Include COMPPATH.
6763 * configure: Rebuilt.
6764 * configure.in: Subst COMPPATH.
6766 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6768 * prims.cc (lockMutex): Removed.
6769 (unlockMutex): Likewise.
6770 (processClass): Lock the class using a JvSynchronize object.
6772 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6774 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6775 (gc_free_fixed): Removed.
6776 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6777 freeing old value of strhash.
6779 * exception.cc (_Jv_type_matcher): Cast first argument to
6782 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6784 * include/java-array.h (jstringArray): New type.
6785 * java/lang/natSystem.cc (setProperty): Removed.
6786 (initProperties): Directly call JvNewStringLatin1 for arguments.
6787 * java/util/natDate.cc: Include java/util/Date.h, not
6790 * java/io/FileDescriptor.java (available): No longer static.
6791 * java/lang/natDouble.cc (Double): Removed class definition.
6792 * include/javaprims.h (java::lang::Number): Declare.
6793 (java::lang::NumberFormatException): Likewise.
6794 (java::io::FilenameFilter): Likewise.
6795 (java::lang::Character): Likewise.
6796 (java::lang::Error): Likewise.
6797 (java::lang::SecurityManager): Likewise.
6798 (java::util::Vector): Likewise.
6799 (java::io::FileNotFoundException): Likewise.
6800 (java::io::IOException): Likewise.
6801 (java::lang::NativeLang): Likewise.
6802 (java::lang::UnsatisfiedLinkError): Likewise.
6803 (java::util::StringTokenizer): Likewise.
6804 (java::io::InputStream, java::io::OutputStream): Likewise.
6805 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6806 (java::util::Hashtable): Likewise.
6807 * Makefile.in: Rebuilt.
6808 * Makefile.am (nat_headers): Added java/lang/Double.h,
6809 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6810 (MOSTLYCLEANFILES): Added nat_headers.
6811 * include/jvm.h: Moved many defines, declarations, and functions
6812 to java/lang/Class.h.
6813 (struct JvSyncInfo): Moved to java/lang/Object.h.
6814 (UTF8_GET): Moved to java/lang/String.h.
6816 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6818 * java/io/io-defs.h: Don't include java-io.h.
6819 * include/java-io.h: Removed.
6820 * include/javaprims.h: Include java::io.
6822 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6824 * include/java-io.h (File): Removed
6825 (FileDescriptor): Likewise.
6827 * java/io/io-defs.h: Include java/io/File.h and
6828 java/io/FileDescriptor.h.
6830 * Makefile.in: Rebuilt.
6831 * Makefile.am (GJAVAH): New macro.
6832 (.class.h): New rule.
6833 (SUFFIXES): Added .h.
6834 (nat_headers): New macro.
6835 ($(nat_headers)): New target.
6836 (BUILT_SOURCES): Added nat_headers.
6838 * include/java-util.h: Removed.
6840 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6842 * include/java-io.h: Changed to avoid java-lang.h.
6843 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6845 * java/lang/natSystem.cc: Include java/lang/System.h, not
6847 * java/lang/natString.cc: Include java/lang/String.h, not
6849 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6851 * java/lang/natClass.cc: Include java/lang/Class.h, not
6853 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6855 * java/lang/natObject.cc: Include java/lang/Object.h, not
6857 * exception.cc: Don't include java-lang.h.
6858 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6859 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6860 * nogc.cc: Don't include java-lang.h.
6861 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6862 * prims.cc (processClass): Don't use `init_type'; just cast to
6864 Include java/lang/Class.h and jvm.h, not java-lang.h.
6865 (JvAllocObject): Wrote single-argument version.
6866 (PrimClass): Inherit from Class.
6867 (initPrimClass): Removed.
6868 * include/java-lang.h: Removed.
6869 * include/jvm.h: Declare struct _dispatchTable.
6870 * include/cni.h: Don't declare _Jv_MonitorEnter,
6871 _Jv_MonitorExit, struct _dispatchTable.
6872 * include/javaprims.h: Moved all typedefs here, from cni.h.
6873 * java/lang/Class.h: New file.
6874 * include/java-array.h: New file.
6875 * java/lang/Object.h: New file.
6877 * prims.cc (classFromSig): Now static.
6879 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6881 * include/cni.h: Don't mention soft_new.
6882 * include/java-lang.h (Object): Don't mention soft_new. Mention
6883 _Jv_NewPrimArray, not newPrimArray.
6884 * prims.cc (soft_new): Removed.
6885 (_Jv_NewArray): Renamed from soft_newarray.
6886 (soft_anewarray): Use JvNewObjectArray.
6887 (newArray): Likewise.
6888 (newRefArray): Removed.
6889 (_Jv_NewPrimArray): Renamed from newPrimArray.
6890 (equalUtf8Consts): Now static.
6891 (soft_instanceof): Removed.
6892 * java/lang/natDouble.cc (doubleToString): Now static.
6894 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6895 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6898 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6900 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6902 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6904 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6905 (JvPrivMutexUnlock): Likewise.
6906 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6907 Return value now jint.
6908 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6911 * Makefile.in: Rebuilt.
6912 * Makefile.am: Don't allow `jV' names.
6913 (maintainer-check): Depend on libjava.a.
6914 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6916 * Makefile.in: Rebuilt.
6917 * Makefile.am (NM): New macro.
6918 (maintainer-check): New target.
6920 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6922 * configure: Rebuilt.
6923 * configure.in: Use --enable-threads, not --enable-gc. Fix
6924 documentation for --enable-threads. Changed option to work like
6925 identical option in gcc/configure.
6927 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6929 * boehm.cc (mark_array): Use JvGetArrayLength.
6931 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6933 * exception.cc: New file (mostly written by Andrew MacLeod),
6934 exception handling support.
6935 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6936 Remove -fexceptions - it is now the default.
6938 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6939 (JvAllocObject): Renamed to _Jv_AllocObject.
6940 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6941 (loadClass): Renamed to _Jv_FindClass.
6942 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6943 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6944 * include/java-lang.h (JvGetArrayLength): New CNI function.
6945 * include/jvm.h (_Jv_FindClass): Added declaration.
6947 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6949 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6951 * java/lang/natClass.cc (getName): Add implementation.
6952 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6954 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6956 * Makefile.in: Rebuilt.
6957 * Makefile.am (.class.o): Added -fexceptions.
6959 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6961 * configure: Rebuilt.
6962 * configure.in: Don't check for __nanosleep.
6963 * posix-threads.cc (nanosleep): Never define.
6965 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6967 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6970 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6972 * java/lang/natThread.cc (enumerate): Uncommented.
6973 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6974 (interrupt): Call it.
6976 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6978 * configure: Rebuilt.
6979 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6981 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6983 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6984 * include/java-lang.h (Thread): Added `interrupted_' method.
6985 * java/lang/Thread.java (interrupted_): New method.
6986 * java/lang/natThread.cc (join): Possibly throw interrupted
6987 exception after join finishes.
6988 (interrupted_): New method.
6989 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6991 (JvPrivThreadJoin): New function.
6992 (really_start): Notify all threads waiting for this thread.
6993 (struct starter): Added `data' member.
6994 (JvPrivThreadStart): Set it.
6995 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6997 (JvPrivThreadJoin): No longer inline.
6998 (JvPrivThreadInterrupt): New function.
7000 * include/no-threads.h (JvPrivThreadSleep): Removed.
7001 * posix-threads.cc (JvPrivThreadSleep): Removed.
7003 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
7005 * configure: Rebuilt.
7006 * configure.in (THREADOBJS): Initialize to no-threads.o in
7008 * posix-threads.cc (key): New global.
7009 (JvPrivInitThreads): New function.
7010 (really_start): Set thread-specific data to point to object.
7011 (JvPrivThreadStart): Added `daemon' argument.
7012 (JvPrivThreadSleep): Added `data' argument.
7013 * include/posix-threads.h (JvPrivInitThreads): Removed
7015 (JvPrivThreadCurrent): New function.
7016 * include/no-threads.h (JvPrivThreadInitData): Initialize
7017 JvPrivOnlyThread. Added `thread' argument.
7018 (JvPrivThreadCurrent): New function.
7019 (JvPrivThreadStart): Added `daemon' argument.
7020 * no-threads.cc: New file.
7021 * java/lang/natThread.cc (init_data): New function.
7023 (start): Set `alive' member.
7024 (stop_): Clear `alive' member.
7025 (destroy): Likewise.
7026 (currentThread): Implemented.
7027 (start): Pass `daemon' argument to JvPrivThreadStart.
7029 * include/java-lang.h (Thread): Added `alive', `tsync' members.
7030 (Thread): Added `init_data' method.
7031 * java/lang/Thread.java (alive, data): New instance variables.
7032 (init_data): New private method.
7033 (isAlive): No longer native.
7035 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
7037 * include/java-lang.h (JvRunMain): Declare.
7038 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
7039 * prims.cc (JvRunMain): New function.
7040 (main_signature, main_name): New globals.
7042 * boehm.cc (mark_array): Use `elements' function and not
7043 operator[] on jarray.
7045 * posix-threads.cc: Include <config.h>. Define nanosleep if
7048 * configure: Rebuilt.
7049 * configure.in: Check for _nanosleep.
7051 * configure: Rebuilt.
7052 * configure.in: Check for pthread_mutexattr_settype.
7054 * include/cni.h (class JvSynchronize): New class.
7055 * java/lang/Thread.java (sleep): Throws InterruptedException.
7056 (join): Throws InterruptedException.
7057 (resume): Not native.
7058 (resume_): New method.
7059 (start): Now synchronized.
7060 (stop_): New method.
7061 (Thread): Synchronize when accessing threadNumber.
7063 * java/lang/natThread.cc (throwException): New macro.
7064 (sleep): Throw InterruptedException.
7067 * include/java-lang.h (Runtime): Added interrupted().
7069 * boehm.cc (call_finalizer): Correctly initialize jobj.
7070 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7072 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7075 * configure: Rebuilt.
7076 * configure.in: Added support for --disable-threads.
7077 * include/no-threads.h: New file.
7079 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7081 * Makefile.in: Rebuilt.
7082 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7083 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7084 (libjava_a_LIBADD): Added THREADOBJS.
7085 * configure: Rebuilt.
7086 * configure.in: Added --with-threads option.
7087 * posix-threads.cc: New file.
7088 * include/posix-threads.h: New file.
7089 * include/java-lang.h (Object): Added static member sync_mutex,
7090 member sync_info, method init_mutex.
7091 (struct JvSyncInfo): New struct.
7092 Include "java-threads.h".
7093 * prims.cc (soft_monitorenter): Wrote.
7094 (soft_monitorexit): Likewise.
7095 * java/lang/natObject.cc (init_mutex): New method.
7099 (sync_mutex): Define.
7100 Include "java-threads.h".
7102 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7104 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7105 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7107 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7109 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7110 Added extern "Java" in places to tell G++ Object is a "Java" type.
7111 Other minor renaming and fixes.
7112 * include/java-io.h (FileDescriptor): Add friend class declarations.
7113 G++ no longer allows non-Java types in method parameters and results
7114 of Java classes. Converted most offending methods to friends.
7115 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7116 * java/lang/natSystem.cc (setProperty): Make friend.
7117 * java/lang/natString.cc, include/java-lang.h (String): Rename
7118 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7119 * include/java-lang.h (JArray): Remove getData and eoprator[].
7120 Add elements friend function instead.
7121 * java/lang/natSystem.cc (arraycopy): Use elements function.
7122 * java/io/natFileDescriptor.cc (read, write): Likewise.
7123 * include/java-lang.h (Object): Remove unused make method.
7124 (System::setProperty(char*,char*)): Turn into friend function.
7125 (Class): Rename newObject by JvAllocObject.
7126 * prims.cc: Update to use JvAllocObject, and elements.
7128 * java/lang/natDouble.cc: Fix double -> jdouble.
7130 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7132 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7134 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7136 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7137 * include/java-lang.h (Runtime): finalize_on_exit and
7138 runFinalizersOnExit now static.
7139 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7141 (finalize_on_exit): Now static.
7143 * boehm.cc (mark_obj): Get class using getClass() method on
7145 (_dispatchTable): Removed.
7147 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7149 * java/io/natFileDescriptor.cc (open_read): Only call open if
7151 (open_write): Likewise.
7153 * Makefile.in: Rebuilt.
7154 * Makefile.am ($(nat_files)): Depend on config.h.
7156 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7158 * prims.cc (ObjectClass): Now a macro; updated for new class name
7160 (StringClass): Likewise.
7161 (ClassClass): Likewise.
7163 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7165 * java/io/natFileDescriptor.cc (available): Do nothing unless
7166 HAVE_SELECT defined.
7167 * java/util/natDate.cc (setTime): Conditional on
7169 (toString): Conditional on HAVE_TIME.
7170 * aclocal.m4, configure: Rebuilt.
7171 * acinclude.m4: New file.
7172 * configure.in: Don't actually call AM_EXEEXT. Call
7173 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7174 --with-target-subdir option. Check for select and open
7177 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7179 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7180 (call_finalizer): Likewise.
7181 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7182 * prims.cc (newObject): Pass actual method pointer to
7183 JvPrivRegisterFinalizer.
7184 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7185 (JvPrivRegisterFinalizer): Changed interface.
7187 * Makefile.in: Rebuilt.
7188 * Makefile.am (MOSTLYCLEANFILES): New macro.
7189 (CLEANFILES): Removed javao_files.
7191 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7193 * nogc.cc: New file.
7194 * Makefile.in: Rebuilt.
7195 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7196 (EXTRA_libjava_a_SOURCES): New macro.
7197 (libjava_a_SOURCES): Removed boehm.cc.
7198 (libjava_a_DEPENDENCIES): Added GCOBJS.
7199 (libjava_a_LIBADD): Likewise.
7200 * configure: Rebuilt.
7201 * configure.in: Added code for --enable-gc=TYPE.
7203 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7205 * boehm.cc (mark_array): Don't further dereference pointer from
7208 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7209 * Makefile.in: Rebuilt.
7210 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7211 one for boehm-gc build directory.
7213 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7215 * include/java-lang.h (finalize_on_exit): New instance variable in
7216 java::lang::Runtime.
7217 (runFinalizersOnExit): New method.
7218 * java/lang/Runtime.java (finalize_on_exit): New instance
7220 (runAllFinalizers_): New private method.
7221 (runFinalizersOnExit): New method.
7222 * boehm.cc (JvPrivRunFinalizers): New function.
7223 (JvPrivRunAllFinalizers): Likewise.
7224 (JvPrivRunGC): Likewise.
7225 * java/lang/natRuntime.cc: Include "jvm.h".
7226 (gc): Call JvPrivRunGC.
7227 (runFinalization): Call JvPrivRunFinalizers.
7228 (runFinalizersOnExit): New method.
7229 (exit_): Call JvPrivRunAllFinalizers if required.
7230 * include/jvm.h: Declare JvPrivRunFinalizers,
7231 JvPrivRunAllFinalizers, JvPrivRunGC.
7233 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7235 * boehm.cc (JvPrivRegisterFinalizer): New function.
7236 (call_finalizer): Likewise.
7237 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7238 * prims.cc (finalize_name): New global.
7239 (newObject): Just call other newObject.
7240 (newObject): Register finalizer if it exists.
7242 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7244 * prims.cc (gc_malloc): Removed.
7245 (makeUtf8Const): Use JvPrivAllocBytes.
7246 (lookupArray): Likewise.
7247 (newPrimArray): Likewise.
7248 (JvNewObjectArray): Use JvPrivAllocArray.
7249 (newObject): Use JvPrivAllocObj.
7250 (newObject): Likewise.
7251 Changed Method -> JvMethod everywhere.
7252 Changed Field -> JvField everywhere.
7253 * include/java-lang.h (Object): Changed type of `fields' to
7255 (jmethodID, jfieldID): New typedefs.
7256 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7258 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7260 (METHOD_NATIVECODE): Moved from java-lang.h.
7261 (class JvField): New class.
7262 (JvGetFirstInstanceField): New function.
7263 (JvFieldIsRef): Likewise.
7264 (JvGetObjectField): Likewise.
7265 (JvNumInstanceFields): Likewise.
7267 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7269 * boehm.cc: New file.
7270 * Makefile.in: Rebuilt.
7271 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7272 (INCLUDES): Added -I options to find boehm-gc files.
7274 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7276 * configure: Rebuilt.
7277 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7279 * Makefile.in: Rebuilt.
7280 * Makefile.am (nat_files): New macro.
7281 (libjava_a_DEPENDENCIES): Use it.
7282 (libjava_a_LIBADD): Likewise.
7283 ($(nat_files)): New static pattern rule.
7284 (class_files): Run separate find to find .class files.
7285 (javao_files): Compute based on class_files.
7286 (BUILT_SOURCES): New macro.
7288 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7290 * Makefile.am (java_files): New macro.
7291 (class_files): Likewise.
7292 (javao_files): Likewise.
7293 (libjava_a_DEPENDENCIES): Include $(javao_files).
7294 (libjava_a_LIBADD): Likewise.
7295 (classes.stamp): Depend on $(java_files); only recompile changed
7298 (CLEANFILES): Don't run find; use macros. Don't mention
7300 (.class.o): New target.
7301 (compiled.stamp): Removed.
7303 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7305 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7306 LineNumberReader}>java: Newly-implemented standard classes.
7308 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7310 * Makefile.in: Rebuilt.
7311 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7313 * Makefile.in: Rebuilt.
7314 * Makefile.am (hack): New macro.
7315 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7317 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7319 * include/config.h.in: New file.
7320 * include/config.h: Removed.
7321 * acconfig.h: New file.
7322 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7323 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7324 libjava_a_LIBADD): New macros.
7325 (INCLUDES): New macro.
7328 (SUFFIXES): Removed.
7330 (libjava.a): Removed.
7332 * configure: Rebuilt.
7333 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7334 Look for headers and functions we require. Create
7337 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7339 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7340 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7341 soft_lookupinterfacemethod): New functions.
7342 (PrimClass): Actually initialize the primitive classes.
7343 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7345 * include/java-util.h: Removed java::util definition.
7346 * include/cni.h: Moved java::util here and added Properties.
7347 Added more function prototypes.
7348 * include/java-lang.h: Added mroe methods and friend declarations.
7349 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7350 * include/jvm.h (strLengthUtf8): Add declaration.
7352 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7354 * java/lang/{Byte,Short,Void}.java: New classes.
7355 * java/lang/Character.java (isJavaIdentifierStart,
7356 JavaIdentifierPart): New static methods.
7357 * java/lang/Number.java (byteValue, shortValue): New methods.
7359 * java/lang/String.java (intern, hashCode): Make native.
7360 * java/lang/natString.cc: New file. Handle the string pool.
7361 * Makefile.am: Build natString.o. Use CXXFLAGS.
7363 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7364 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7365 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7366 * java/lang/System.java (setProperty): New private method.
7367 (initProperties): Take argument, and make native.
7368 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7369 (currentTimeMillis): Make more robust.
7371 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7372 * java/io/UnsupportedEncodingException.java: New exception class.
7374 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7375 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7377 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7379 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7380 * prims.cc: Added bunch of stuff.
7381 * include/cni.h: Added various definitions.
7382 * include/java-lang.h: Added Method, various friends, some macros.
7384 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7385 * java/lang/System.java (arraycopy): Make native.
7387 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7389 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7390 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7391 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7392 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7394 * java/lang/Runtime.java: Declare methods as native instead of
7396 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7397 * java/lang/System.java: Comment out some stuff, for now.
7398 * java/lang/Thread.java: Re-write. Use native methods.
7399 * java/lang/NativeLang.java: Remove most of it.
7401 * java/util/natDate.cc: Native (C++) methods for Date.
7402 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7403 * java/util/Date.java: Complete re-write.
7405 * java/io/io-defs.h: New header file.
7406 * java/io/FileDescriptor.java: Add a bunch of private methods,
7407 mostly moved from NativeIO.java and natNativeIO.cc.
7408 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7409 * java/io/File.java: Use new code.
7410 * java/io/{FileInputStream.java.FileOutputStream.java,
7411 RandomAccessFile.java}: Use new private FileDescriptor methods.
7412 * java/io/NativeIO.java: Removed, no longer used.
7414 * java/io/StreamTokenizer.java (numericChars): Make char array.
7416 * include/*.h: Various header files used by the C++ native code.
7418 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7419 New autoconf+automake-based setup.
7420 * prims.cc: New file for Java "primitives".