1 2000-01-19 Tom Tromey <tromey@cygnus.com>
3 * All files: Updated copyright to reflect Cygnus purchase.
5 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
8 * configure.in: Recognize --disable-interpreter.
10 2000-01-18 Andrew Haley <aph@cygnus.com>
12 * name-finder.cc (lookup): Check for dladdr function.
13 acconfig.h (HAVE_DLADDR): Add.
14 configure.in: Check for HAVE_DLADDR
16 include/config.h.in: Rebuilt.
18 2000-01-17 Andrew Haley <aph@cygnus.com>
20 * prims.cc (_Jv_RunMain): Set the name of this executable.
22 2000-01-17 Tom Tromey <tromey@cygnus.com>
24 * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
25 when backtrace can't be computed.
28 * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
30 * java/lang/Runtime.java (loadLibraryInternal): Declare.
31 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
32 (_Jv_FindClassInCache): Likewise.
33 (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
34 (findSystemClass): Try to load class from compiled module.
36 * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
37 (loadLibrary): Likewise.
38 (lt_preloaded_symbols): Define.
39 (loadLibraryInternal): New method.
40 * include/config.h.in: Rebuilt.
41 * acconfig.h (USE_LTDL): Added.
42 * Makefile.am (SUBDIRS): Added $(DIRLTDL).
43 (INCLUDES): Added $(INCLTDL).
44 (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
45 (libgcj_la_LIBADD): Likewise.
46 * aclocal.m4, configure: Rebuilt.
47 * configure.in: Added libltdl support.
49 2000-01-15 Tom Tromey <tromey@cygnus.com>
51 * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
53 2000-01-14 Andrew Haley <aph@cygnus.com>
55 * java/lang/natThrowable.cc: New file.
57 * java/lang/Throwable.java (fillInStackTrace): Make native.
58 (printStackTrace): Call native method to do this.
59 (Throwable): Call fillInStackTrace.
60 (stackTrace): New variable.
62 * include/jvm.h: Add _Jv_ThisExecutable functions.
64 * prims.cc: (_Jv_execName): New variable.
65 (catch_segv): Call fillInStackTrace.
67 (_Jv_ThisExecutable): New functions.
68 (JvRunMain): Set the name of this executable.
70 * Makefile.am: Add java/lang/natThrowable.cc.
72 * Makefile.in: Rebuilt.
74 * acconfig.h: Add HAVE_PROC_SELF_EXE.
76 * configure.in: Force link with __frame_state_for in
77 FORCELIBGCCSPEC. Add new checks for backtrace.
78 * include/config.h.in: Rebuilt.
80 * name-finder.cc: New file.
81 * include/name-finder.h: New file.
83 2000-01-16 Anthony Green <green@cygnus.com>
85 * java/lang/StringBuffer.java (StringBuffer): Don't special case
88 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
90 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
92 2000-01-13 Tom Tromey <tromey@cygnus.com>
94 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
95 not system loader, as initiating loader.
97 2000-01-11 Tom Tromey <tromey@cygnus.com>
99 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
100 HP/UX. From David Scott Urban.
102 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
104 * java/lang/natMath.cc (pow): Cast args to `double', not
107 (IEEEremainder): Likewise.
108 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
109 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
111 2000-01-09 Anthony Green <green@cygnus.com>
113 * java/lang/natString.cc (init): Test for overflow condition
114 during out of bounds check.
115 (getChars): Throw StringIndexOutOfBoundsException, not
116 ArrayIndexOutOfBoundsException.
118 (regionMatches): Obey case option during string comparison.
120 * configure.host (ligcj_interpreter): New variable. Enable
121 interpreter by default on IA-32.
122 * configure.in: Examine libgcj_interpreter.
123 * configure: Rebuilt.
125 2000-01-07 Tom Tromey <tromey@cygnus.com>
127 * mauve-libgcj: Don't disable ClassTest.
129 * java/lang/natClass.cc (getClasses): Wrote.
131 2000-01-06 Tom Tromey <tromey@cygnus.com>
133 * java/lang/natClass.cc (_getConstructors): Correctly check
134 whether method name is the init name.
135 (getMethod): Look at accflags on method in `klass', not `this'.
137 2000-01-05 Tom Tromey <tromey@cygnus.com>
139 * java/lang/natClass.cc (getMethod): Compute offset relative to
140 `klass's methods table, not `this's table.
142 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
143 In unwrapping/widening case, check whether `k' is null, not
144 whether it is primitive. Initialize `num' from `argelts', not
145 `paramelts'. Correct create and pass arguments to ffi_call.
146 Don't let presence of `this' argument affect index used to look in
148 (COPY): Set appropriate element in `values' vector.
150 * java/lang/natClass.cc: Include <gcj/method.h>.
152 * java/lang/Class.h (_getMethods): Correctly declare as private,
155 * java/lang/Class.h (_getMethods): Declare.
156 * java/lang/Class.java (_getMethods): Declare.
157 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
158 (getDeclaredClasses): Always return empty array.
159 (_getMethods): New method.
161 (getDeclaredMethod): Return `rmethod'.
162 (finit_name): New global.
163 (getDeclaredMethods): Check for finit_name.
164 (_getMethods): Likewise.
165 (getMethod): Only return public methods.
167 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
168 jboolean and select correct ffi type on that basis.
169 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
170 Constructor call always has `void' return type.
172 2000-01-04 Tom Tromey <tromey@cygnus.com>
174 * java/lang/Class.h (getSignature): Updated.
175 * java/lang/Class.java (getSignature): Updated.
176 * java/lang/natClass.cc (getSignature): Added `is_constructor'
178 (getConstructor): Ensure constructor is public.
179 (_getConstructors): Check for public-ness of constructor when
180 `declared' is false, not when it is true.
182 2000-01-04 Warren Levy <warrenl@cygnus.com>
184 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
186 (receive): Set the sender's address in the DatagramPacket.
188 2000-01-04 Tom Tromey <tromey@cygnus.com>
190 * java/lang/reflect/natConstructor.cc (newInstance): Pass
191 declaring class as return_type argument to
192 _Jv_CallNonvirtualMethodA.
193 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
194 constructor case, create object and use it as `this' argument.
195 * java/lang/Class.h (_getConstructors): Declare.
196 (_getFields): Declare.
197 * java/lang/Class.java (getConstructors): Wrote.
198 (_getConstructors): New native method.
199 (getDeclaredConstructors): Wrote.
200 (_getFields): Declare new native method.
201 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
203 (getMethod): Work correctly when class is primitive.
204 (getDeclaredMethods): Likewise. Compute offset using `method',
206 (getDeclaredMethod): Likewise.
207 (getConstructor): Wrote.
208 (ConstructorClass): New define.
209 (getDeclaredConstructor): Wrote.
210 (_getConstructors): New method.
211 (_getFields): New method.
214 * Makefile.in: Rebuilt.
215 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
217 * prims.cc: Remove `#pragma implementation'.
218 * gcj/array.h: Remove `#pragma interface'.
220 * prims.cc (_Jv_equaln): New function.
221 * java/lang/Class.java (getSignature): Declare.
222 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
223 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
225 (getSignature): New method.
226 (getDeclaredMethod): Wrote.
228 Include StringBuffer.h.
229 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
230 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
232 (getSignature): Declare.
233 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
234 (_Jv_equaln): Declare.
235 (_Jv_CallNonvirtualMethodA): Declare.
236 * Makefile.in: Rebuilt.
237 * Makefile.am (nat_source_files): Added natConstructor.cc.
238 (java/lang/reflect/Constructor.h): New target.
239 * java/lang/reflect/natConstructor.cc: New file.
240 * java/lang/reflect/Constructor.java (newInstance): Now native.
241 (declaringClass): Renamed from decl_class.
242 (offset): Renamed from index.
243 (getType): New native method.
244 (getModifiers): Now native.
245 (getParameterTypes): Call getType if required.
246 (hashCode): Include hash code from declaring class.
247 (modifiers): Removed.
248 (toString): Call getType if required.
249 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
250 * java/lang/reflect/natMethod.cc (hack_call): New method.
251 Removed `#if 0' around FFI code.
252 Include <gnu/gcj/RawData.h>.
253 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
254 IllegalArgumentException when argument object and class disagree.
255 (_Jv_GetTypesFromSignature): New function.
257 (ObjectClass): New define.
258 (_Jv_CallNonvirtualMethodA): New function.
259 * java/lang/reflect/Method.java (hack_trampoline): New method.
260 (hack_call): New native method.
262 1999-12-21 Per Bothner <per@bothner.com>
264 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
265 offset in new Method.
267 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
269 * java/lang/natObject.cc (notify): Throw message with
270 IllegalMonitorStateException.
273 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
274 (isInterrupted_): New function, which does clear interrupt_flag.
275 (interrupt): Use `isInterrupted_'.
276 * java/lang/natThread.cc (interrupt): Add comment.
277 (join): Set `prev' in joiner loop.
278 Change various calls to `isInterrupted' to use `isInterrupted_'.
279 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
280 on linux. Set result to 0 on an interrupt. Test interrupted status
281 of java Thread object directly.
282 FLAG_INTERRUPTED: removed.
283 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
284 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
285 (_Jv_InitThreads): Don't block SIGINT.
286 (_Jv_ThreadWait): Don't configure SIGINT handler.
288 1999-12-21 Tom Tromey <tromey@cygnus.com>
290 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
292 1999-12-20 Tom Tromey <tromey@cygnus.com>
294 * java/lang/reflect/Modifier.java (STRICT): New constant.
295 (isStrict): New method.
296 (toString): Added `strict'.
298 1999-12-23 Anthony Green <green@cygnus.com>
300 * configure: Rebuilt.
301 * configure.in (LIBDATASTARTSPEC): Force data_start in with
304 1999-12-19 Anthony Green <green@cygnus.com>
306 * libgcjdata.c: New file.
307 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
308 * configure: Rebuilt.
309 * configure.in (LIBDATASTARTSPEC): Force data with a known name
311 * Makefile.in: Rebuilt.
312 * Makefile.am: Build libgcjdata.a.
314 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
315 * configure: Rebuilt.
316 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
319 1999-12-17 Tom Tromey <tromey@cygnus.com>
321 * java/lang/reflect/Method.java (toString): Call getType if
322 required. Partial fix for PR libgcj/111. From Per Bothner.
324 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
326 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
328 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
329 null String constructor parameter.
330 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
331 for exception messages.
332 BooleanClass: declare.
333 (setOption): Use BooleanClass instead of Class.forName() for
335 (bind): Cast 4th parameter of setsockopt to `char *' for
336 compatibility with older Solaris headers.
337 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
338 sprintf calls for exception messages.
339 BooleanClass, IntegerClass: declare.
340 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
343 1999-12-15 Tom Tromey <tromey@cygnus.com>
345 * java/lang/natSystem.cc (init_properties): Don't set user.name or
346 user.home if NO_GETUID defined. Only set user.dir if getcwd
349 * include/config.h.in: Rebuilt.
350 * acconfig.h (NO_GETUID): New define.
351 * configure.in: Rebuilt.
352 * configure.in: Define NO_GETUID in cross case. Check for getcwd
355 1999-12-08 Tom Tromey <tromey@cygnus.com>
357 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
358 where no recursive mutexes exist. Fixes PR libgcj/117.
360 1999-12-05 Anthony Green <green@cygnus.com>
362 * include/jvm.h: Declare many functions with
363 __attribute__((__malloc__)).
364 * gcj/javaprims.h: Ditto.
366 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
368 * THANKS: Giving credit where credit is due.
370 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
372 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
374 * java/lang/natString.cc (equalsIgnoreCase): return false if
375 anotherString is null.
376 * java/lang/Boolean.java (valueOf): return FALSE if argument is
379 1999-11-30 Tom Tromey <tromey@cygnus.com>
381 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
382 mutex to initialize. Initialize `count' if required.
385 1999-11-27 Per Bothner <per@bothner.com>
387 * exception.cc: Remove prototype declarations for malloc and free.
388 These clash with recent versions of glibc, which specifies `throws ()'
389 when __cplusplus is defined. Instead, #include <stdlib.h>.
391 1999-11-24 Tom Tromey <tromey@cygnus.com>
393 * prims.cc (_Jv_NewObjectArray): Use
394 _Jv_GetArrayElementFromElementType.
395 (_Jv_NewPrimArray): Likewise.
396 * java/lang/natObject.cc (clone): Use
397 _Jv_GetArrayElementFromElementType instead of sizeof.
398 * java/lang/natSystem.cc (arraycopy): Use
399 _Jv_GetArrayElementFromElementType.
400 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
403 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
405 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
406 Exception messages. PR java.net/57.
407 (bind): set SO_REUSEADDR before bind.
408 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
409 overruns. PR java.net/57.
411 1999-11-19 Tom Tromey <tromey@cygnus.com>
413 * Makefile.am (DIVIDESPEC): Removed.
414 (EXCEPTIONSPEC): Removed.
416 1999-11-19 Andrew Haley <aph@cygnus.com>
418 * Makefile.am (JCFLAGS): Add -L$(here)
420 * Makefile.in: Rebuild.
422 1999-11-18 Tom Tromey <tromey@cygnus.com>
424 * java/lang/natDouble.cc: Include <config.h>.
426 * include/config.h.in: Rebuilt.
427 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
428 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
430 * configure: Rebuilt.
431 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
432 requested by configure.host. Don't put `-D' option into
433 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
435 * configure: Rebuilt.
436 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
439 1999-11-18 Andrew Haley <aph@cygnus.com>
441 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
442 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
444 * Makefile.in: Rebuild
445 * acconfig.h: remove SJLJ_EXCEPTIONS
446 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
447 Do not AC_DEFINE SJLJ_EXCEPTIONS.
448 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
449 * gcj/Makefile.in, include/Makefile.in: rebuild.
450 * include/config.h.in: remove SJLJ_EXCEPTIONS.
452 1999-11-18 Andrew Haley <aph@cygnus.com>
454 * gij.cc (main): Rename label to prevent conflict.
456 * exception.cc (_Jv_type_matcher): Don't check the table if we're
457 using setjmp/longjmp exceptions: there isn't one.
459 1999-11-17 Andrew Haley <aph@cygnus.com>
461 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
462 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
463 (__sjthrow): Add declaration.
464 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
468 * Makefile.in: Rebuild
469 * acconfig.h: Add SJLJ_EXCEPTIONS
470 * configure.in: Add SJLJ_EXCEPTIONS
471 * configure: Rebuild.
472 * gcj/Makefile.in: Rebuild.
473 * gcj/cni.h: Add support for sjlj-exceptions.
474 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
475 * include/Makefile.in: Rebuild.
476 * include/default-signal.h: Add support for sjlj-exceptions.
478 1999-11-18 Tom Tromey <tromey@cygnus.com>
480 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
482 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
484 (method_cache): Made larger.
486 1999-11-11 Tom Tromey <tromey@cygnus.com>
488 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
489 initializing mutex. Initialize `count' when required.
491 1999-11-07 Anthony Green <green@trip.cygnus.com>
493 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
496 1999-11-05 Tom Tromey <tromey@cygnus.com>
498 * java/lang/natThread.cc (destroy): Removed incorrect comment.
500 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
502 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
503 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
506 1999-11-05 Tom Tromey <tromey@cygnus.com>
508 * java/lang/natThread.cc (stop): Removed argument name.
510 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
511 `private'; now has default access.
512 * Makefile.in: Rebuilt.
513 * Makefile.am (java/lang/ThreadGroup.h): Removed.
515 1999-11-04 Tom Tromey <tromey@cygnus.com>
517 * java/lang/natClass.cc (method_cache_count): Removed.
518 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
519 (_Jv_AddMethodToCache): Don't loop.
521 * configure.in: Removed `qt' threads case.
522 * include/quick-threads.h: Removed.
523 * quick-threads.cc: Removed.
525 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
526 (_Jv_ThreadDestroy): Likewise.
527 * include/no-threads.h (_Jv_ThreadCancel): Removed.
528 (_Jv_ThreadDestroy): Likewise.
529 * include/posix-threads.h (struct _Jv_Thread_t): Removed
531 (_Jv_ThreadCancel): Removed decl.
532 (_Jv_ThreadDestroy): Removed.
533 * posix-threads.cc (_Jv_ThreadCancel): Removed.
534 (throw_cleanup): Removed.
535 (really_start): Don't push or pop cleanup.
536 (_Jv_ThreadInitData): Don't initialize `exception' field.
537 * java/lang/Thread.java (stop): Officially unimplemented.
538 * java/lang/natThread.cc (stop): Officially unimplemented.
540 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
542 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
545 1999-11-02 Tom Tromey <tromey@cygnus.com>
547 * boehm.cc: Don't include boehm-config.h.
549 1999-11-01 Tom Tromey <tromey@cygnus.com>
551 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
552 (sum_blocks): Removed.
553 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
555 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
557 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
559 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
560 * java/io/InputStreamReader (InputStreamReader): ditto.
562 1999-10-22 Tom Tromey <tromey@cygnus.com>
564 * Makefile.in: Rebuilt.
565 * Makefile.am (java/lang/ClassLoader.h): New target.
566 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
569 * include/java-props.h (_Jv_Compiler_Properties): Changed
571 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
572 * include/jvm.h (_Jv_GCSetInitialHeapSize,
573 _Jv_GCSetMaximumHeapSize): Declare.
574 (JvRunMain, _Jv_RunMain): Declare.
575 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
576 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
577 (_Jv_GCSetMaximumHeapSize): Likewise.
578 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
579 (_Jv_GCSetMaximumHeapSize): Likewise.
580 * prims.cc (parse_heap_size): New function.
581 (_Jv_SetInitialHeapSize): Likewise.
582 (_Jv_SetMaximumHeapSize): Likewise.
583 (_Jv_Compiler_Properties): New global.
584 * gij.cc (help): New function.
586 (heap_size): Likewise.
587 (heap_max_size): Likewise.
588 (main): Parse arguments. Set _Jv_Compiler_Properties.
589 Include <config.h>, <java-props.h>.
590 (_Jv_Compiler_Properties): Removed.
592 1999-10-18 Tom Tromey <tromey@cygnus.com>
594 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
596 (redirect): New static field.
597 * java/lang/ClassLoader.java (getSystemClassLoader): Now
599 (getVMClassLoader0): Removed.
600 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
602 (getSystemClassLoader): Implemented.
604 1999-10-16 Anthony Green <green@cygnus.com>
606 * java/lang/ClassLoader.java (getSystemResource): Use
607 getSystemClassLoader instead of ClassLoader.system.
608 (getSystemResourceAsStream): Ditto.
610 * java/lang/natClassLoader.cc (redirect): Make static and
611 remove #ifdef INTERPRETER so it is always defined.
612 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
613 returns a VMClassLoader.
615 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
616 PropertyResourceBundle if a properties file is found before a
617 ResourceBundle class.
619 1999-10-15 Tom Tromey <tromey@cygnus.com>
621 * gij.cc (main): Formatting fixes.
622 (_Jv_Compiler_Properties): Define.
623 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
625 (init_properties): Set properites from _Jv_Compiler_Properties.
626 * include/java-props.h (_Jv_Compiler_Properties,
627 _Jv_Environment_Properties): Declare.
629 * include/java-props.h: Added copyright.
631 1999-10-13 Anthony Green <green@cygnus.com>
633 * libtool-version: Catch up by incrementing current.
635 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
636 * configure, include/config.h.in: Rebuilt.
637 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
638 * configure.in: Added --disable-getenv-properties and new define
639 `DISABLE_GETENV_PROPERTIES'.
641 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
642 (next_property_key): New function.
643 (next_property_value): New function.
644 (process_gcj_properties): New function.
645 (JvRunMain): Call process_gcj_properties.
648 * java/lang/natSystem.cc (init_properties): Set properties defined
651 * include/java-props.h: New file.
653 * java/lang/natSystem.cc (init_properties): Add new properties to
654 conform with Java Product Versioning Specification.
656 1999-10-12 Tom Tromey <tromey@cygnus.com>
658 * configure: Rebuilt.
659 * configure.in: Fixed test for --disable-java-net.
661 1999-10-06 Tom Tromey <tromey@cygnus.com>
663 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
664 when building Canadian cross.
665 (NATIVE): Don't define when cross-compiling.
667 1999-10-04 Tom Tromey <tromey@cygnus.com>
669 * java/net/natPlainSocketImpl.cc: Don't include headers if
670 java.net is disabled.
672 * Makefile.in: Rebuilt.
673 * Makefile.am (ZINCS): Removed. This is defined in configure.in
674 when needed, and must be left empty when not needed.
676 1999-10-01 Anthony Green <green@cygnus.com>
678 * THANKS: Refreshed from htdocs version.
680 1999-10-01 Steve Chamberlain <sac@pobox.com>
682 * Makefile.in: Rebuilt.
683 * Makefile.am (ZINCS): Define
685 * configure: Rebuilt.
686 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
688 * java/lang/ieeefp.h: Add definitions for picoJava.
690 1999-10-01 Tom Tromey <tromey@cygnus.com>
692 * configure: Rebuilt.
693 * configure.in: Set classpath when invoking gcj. Use changequote
694 around sed invocation.
696 * java/net/natPlainSocketImpl.cc: Stub native functions if
697 DISABLE_JAVA_NET is defined.
698 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
699 typo in exception string.
700 (getTimeToLive): Likewise.
701 Stub native functions if DISABLE_JAVA_NET is defined.
702 * java/net/natInetAddress.cc: Stub native functions if
703 DISABLE_JAVA_NET is defined.
704 * configure.host: Disable java.net for mips-tx39.
705 * configure, include/config.h.in: Rebuilt.
706 * acconfig.h (DISABLE_JAVA_NET): Undefine.
707 * configure.in: Added --disable-java-net and new define
710 1999-09-30 Tom Tromey <tromey@cygnus.com>
712 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
714 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
718 1999-09-28 Tom Tromey <tromey@cygnus.com>
720 * configure: Rebuilt.
721 * configure.in (PROCESS): In POSIX case, only set if not already
723 * configure.host (PROCESS): Set in mips-tx39 case.
725 * aclocal.m4, configure: Rebuilt.
726 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
727 appropriate AC_PROG_ symbol.
729 1999-09-24 Tom Tromey <tromey@cygnus.com>
731 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
733 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
735 Fix for PR java.util/47:
736 * configure, include/config.h: Rebuilt.
737 * configure.in: Don't look for ctime or ctime_r.
738 * Makefile.in: Rebuilt.
739 * Makefile.am (nat_source_files): Don't mention natDate.cc.
740 * java/util/natDate.cc: Removed.
741 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
743 (getAvailableIDs): Rewrote.
744 (getTimeZone): Rewrote.
745 * java/util/Date.java (toGMTString): New method.
746 (toLocaleString): New method.
749 1999-09-23 Tom Tromey <tromey@cygnus.com>
751 * configure: Rebuilt.
752 * configure.in: Print message when checking to see if gcj can
753 handle -fuse-divide-subroutine.
755 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
757 * java/lang/FirstThread.java (run0): Renamed to `run'.
760 * prims.cc (main_init): New function.
761 (JvRunMain): Call it.
762 (_Jv_RunMain): Likewise.
764 (main_init): Ignore SIGPIPE. Fixes PR 51.
766 1999-09-22 Tom Tromey <tromey@cygnus.com>
768 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
770 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
772 * java/text/MessageFormat.java (MessageFormat(String)): Set the
774 * java/text/NumberFormat.java: Check that object is a Number. If
775 not, throw IllegialArgumentException.
777 1999-09-21 Tom Tromey <tromey@cygnus.com>
779 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
780 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
782 * include/posix-threads.h (_Jv_MutexDestroy): Use
784 (_Jv_MutexLock): Likewise.
785 (_Jv_MutexUnlock): Likewise.
787 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
788 previous patch; it too was incorrect.
789 * java/io/PrintStream.java (PrintStream): Likewise.
791 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
792 refer to `this' before calling superclass constructor.
793 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
794 before calling superclass constructor.
796 1999-09-20 Tom Tromey <tromey@cygnus.com>
798 * configure: Rebuilt.
799 * configure.in: Send output of `-fuse-divide-subroutine' test
800 compilation to /dev/null.
802 1999-09-14 Tom Tromey <tromey@cygnus.com>
804 * include/java-insns.h: Turned constants into an enum. Added
805 multiple-inclusion protection.
807 1999-09-10 Tom Tromey <tromey@cygnus.com>
809 * configure: Rebuilt.
810 * configure.in: Build include/Makefile.
811 * Makefile.in: Rebuilt.
812 * Makefile.am (SUBDIRS): Added gcj and include.
813 (install-data-local): New target.
814 (extra_headers): New macro.
815 * include/Makefile.in: New file.
816 * include/Makefile.am: New file.
818 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
819 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
821 * boehm.cc: Don't include java-threads.h or gcj/field.h.
822 * resolve.cc: Include config.h.
823 * defineclass.cc: Include config.h.
824 * include/java-interp.h: Don't include config.h.
825 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
828 * gcj/javaprims.h: Regenerated namespace decls.
829 * classes.pl (scan): Don't put `;' after closing brace.
831 * Makefile.in: Rebuilt.
832 * Makefile.am (INCLUDES): Added -I for top_srcdir.
833 * configure.in: Create gcj/Makefile.
834 * gcj/Makefile.in: New file.
835 * gcj/Makefile.am: New file.
836 * java/lang/Object.h: Don't include any other headers.
837 * gcj/array.h: Renamed from include/java-array.h.
838 * gcj/field.h: Renamed from include/java-field.h.
839 * gcj/method.h: Renamed from include/java-method.h.
840 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
841 Updated all files to reflect new include structure.
843 1999-09-09 Tom Tromey <tromey@cygnus.com>
845 * configure: Rebuilt.
846 * configure.in: Fixed typo; variable is THREADSPEC and not
849 1999-09-08 Tom Tromey <tromey@cygnus.com>
851 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
852 previous change and implemented a correct test in the __m_count
855 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
858 1999-09-07 Tom Tromey <tromey@cygnus.com>
860 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
861 code and don't set errno.
863 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
864 not `r'. Changed `done_sleeping' to a `bool'.
866 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
868 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
869 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
870 by another thread, rather than by the GC.
871 (_Jv_CondWait): Prevent premature thread wakeup by GC.
872 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
873 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
876 1999-09-03 Tom Tromey <tromey@cygnus.com>
878 * configure: Rebuilt.
879 * configure.in: Check for fstat function.
880 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
883 1999-09-02 Tom Tromey <tromey@cygnus.com>
885 * include/java-array.h (jobjectArrayjchar): Removed unused
888 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
889 _Jv_PrepareCompiledClass while holding class mutex.
891 1999-09-01 Tom Tromey <tromey@cygnus.com>
893 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
894 (_Jv_PthreadGetMutex): Use it.
895 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
896 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
897 (_Jv_MutexLock): Likewise.
898 (_Jv_MutexUnlock): Likewise.
899 * include/config.h.in: Rebuilt.
900 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
901 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
902 * configure: Rebuilt.
903 * libgcj.spec.in: Don't mention INTERPSPEC.
904 * configure.in (INTERPSPEC): Removed.
905 Only run pthreads-related checks when using POSIX threads. Check
906 for m_count and __m_count in mutex structure.
908 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
910 * java/lang/natClass.cc: Fixed notification of threads
911 when class initialization is complete.
913 1999-09-01 Tom Tromey <tromey@cygnus.com>
915 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
916 * resolve.cc: Removed constants defined by
917 java.lang.reflect.Modifier.
918 Include <java/lang/reflect/Modifier.h>.
919 (_Jv_ResolvePoolEntry): Use values from Modifier.
920 (_Jv_DetermineVTableIndex): Likewise.
921 (_Jv_PrepareClass): Likewise.
923 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
924 java.lang.reflect.Modifier.
925 Include <java/lang/reflect/Modifier.h>.
926 (checkExtends): Use values from Modifier.
927 (checkImplements): Likewise.
928 (handleField): Likewise.
929 (handleConstantValueAttribute): Likewise.
930 (handleFieldsEnd): Likewise.
931 (handleMethod ): Likewise.
932 (handleMethodsEnd): Likewise.
933 (handleClassBegin): Likewise.
934 * interpret.cc: Removed constants defined by
935 java.lang.reflect.Modifier.
936 (continue1): Use values from Modifier.
937 * java/lang/natClassLoader.cc: Removed constants defined by
938 java.lang.reflect.Modifier.
940 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
941 JV_STATE_NOTHING, not `0'.
942 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
944 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
945 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
947 (_Jv_PthreadGetMutex): New function.
948 (_Jv_PthreadCheckMonitor): Use it.
949 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
950 (_Jv_MutexLock): Update `count'.
951 (_Jv_MutexUnlock): Likewise.
952 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
955 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
957 * Makefile.am (.java.lo): Add rule.
959 * Makefile.in: Rebuilt.
961 1999-09-01 Tom Tromey <tromey@cygnus.com>
963 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
964 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
966 (_Jv_CondNotify): Use it.
967 (_Jv_CondNotifyAll): Likewise.
969 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
971 1999-08-31 Tom Tromey <tromey@cygnus.com>
973 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
976 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
978 * posix-threads.cc: Include <errno.h>.
980 1999-08-23 Tom Tromey <tromey@cygnus.com>
982 * boehm.cc: Undefine TRUE and FALSE.
984 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
986 1999-08-21 Tom Tromey <tromey@cygnus.com>
988 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
991 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
993 * configure.in: Check for in_addr_t in netinet/in.h too. Check
995 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
996 (HAVE_STRUCT_IP_MREQ): Added.
997 * configure, include/config.h.in: Rebuilt.
998 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
1000 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
1001 Disable if ip_mreq is not available.
1003 * configure.in: Check types ssize_t and in_addr_t.
1004 * acconfig.h: Undefine them.
1005 * configure, include/config.h.in: Rebuilt.
1007 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
1008 function that detects the signature of getpwuid_r.
1009 (init_properties): Use it.
1010 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
1013 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
1015 * interpret.cc (continue1): Implement explicit dispatch table.
1016 insn_target: Explicit interpreter switch table.
1017 SAVE_PC: New macro, moves pc saving code into instructions that
1019 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
1020 PC_REGISTER_ASM: New macro.
1021 INLINE_SWITCH: New macro. Constrols dispatching strategy.
1022 opcode: Remove local variable.
1023 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
1024 (POKEI): Use _Jv_word.
1025 (iinc): Use _Jv_word.
1026 (dupx): Change reference argument (sp) to pointer.
1029 * interpret.cc: Remove instruction timing instrumentation.
1031 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
1032 comment. Don't use _Jv_ClassNameSamePackage.
1034 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
1035 URLPathEntry, CacheEntry}: Removed.
1037 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
1039 (.java.lo): Rule removed.
1041 * Makefile.in: Rebuilt.
1043 1999-08-19 Tom Tromey <tromey@cygnus.com>
1045 * java/lang/natThread.cc (class locker): New class.
1046 (join): Use a locker around _Jv_CondWait.
1049 1999-08-18 Tom Tromey <tromey@cygnus.com>
1051 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
1052 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
1054 1999-08-18 Tom Tromey <tromey@cygnus.com>
1056 * include/javaprims.h ("Java"): Regenerated namespace decls.
1058 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
1060 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
1061 from _Jv_InternClassStrings.
1063 * prims.cc (_Jv_RunMain): New function.
1064 (JvRunMain): Remove gij-support.
1066 * gij.cc (main): Use _Jv_RunMain.
1068 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
1070 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
1071 argument in temp variable.
1072 (continue1): For all op_x2y insns, use temp variable for
1073 intermediate value. Also remove some comments.
1075 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
1076 (forName): Don't call _Jv_InitClass.
1078 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
1080 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1082 * java/util/jar/JarInputStream.java: New file.
1084 * java/util/jar/JarEntry.java: New file.
1086 * java/util/jar/JarFile.java: New file.
1088 * java/net/URLClassLoader.java: New file.
1090 * java/net/JarURLConnection.java: New file.
1092 * gnu/gcj/protocol/jar/Handler.java: New file.
1094 * gnu/gcj/protocol/jar/Connection.java: New file.
1096 * java/security/SecureClassLoader.java: New file.
1098 * java/lang/ClassLoader.java (parent): New variable.
1099 (ClassLoader (ClassLoader)): new constructor.
1100 (findClass): New method.
1101 (loadClass): Add default 1.2 implementation.
1102 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1103 (readfully): Removed.
1105 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1106 (findSystemClass): New method.
1107 (VMClassLoader): Constructor rewritten.
1109 All other methods removed.
1111 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1112 to gnu::gcj::runtime::VMClassLoader.
1113 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1115 (VMClassLoader::findSystemClass): renamed from findBootClass.
1117 * Makefile.am: Add new files.
1118 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1120 * Makefile.in: Rebuilt.
1122 1999-08-17 Tom Tromey <tromey@cygnus.com>
1124 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1126 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1129 1999-08-16 Tom Tromey <tromey@cygnus.com>
1131 * configure: Rebuilt.
1132 * configure.in: Set DIVIDESPEC to empty string if compiler does
1133 not support -fuse-divide-subroutine.
1135 1999-08-14 Per Bothner <per@bothner.com>
1137 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1138 * java/lang/natClass.cc (initializeClass): Likewise.
1139 * java/lang/ClassLoader.java (resolveClass0): New static method.
1140 (resolveClass): Call resolveClass0.
1141 (findSystemClass): No longer static.
1143 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1145 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1147 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1149 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1152 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1154 * Makefile: Rebuilt.
1155 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1158 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1161 * configure: Rebuilt.
1162 * configure.in: Properly align --help output, fix capitalization
1164 * acinclude.m4: Likewise.
1166 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1168 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1170 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1171 (_Jv_callInterpretedMethod): Unused. Remove.
1172 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1174 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1175 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1176 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1177 * interpret.cc: use _Jv_word.
1178 * defineclass.cc: use_Jv_word.
1179 * resolve.cc: Use _Jv_word.
1180 (_Jv_ResolvePoolEntry): Return _Jv_word.
1181 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1182 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1184 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1187 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1189 * configure: Rebuilt.
1190 * configure.in (sched_yield): Try librt first, then libposix4.
1191 Add -lrt, -lposix4 to THREADSPEC.
1193 1999-08-08 Anthony Green <green@cygnus.com>
1195 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1197 1999-08-08 Anthony Green <green@cygnus.com>
1199 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1202 1999-08-08 Anthony Green <green@cygnus.com>
1206 * include/config.h.in: Rebuilt.
1207 * acconfig.h: Add INTERPRETER.
1209 * Makefile.in: Rebuilt.
1210 * Makefile.am (libffi_files): Identify the libffi object files for
1211 inclusion in libgcj.
1212 (LIBFFIINCS): Define.
1214 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1215 Dummy definition for configurations without an interpreter.
1217 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1218 java::lang::Boolean constructor.
1220 * include/java-interp.h: Always include java-cpool.h.
1222 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1223 when INTERPRETER not defined.
1225 * java/lang/Class.h (finalize): Define.
1227 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1228 IOException from File.getCanonicalPath.
1229 (getStream): Likewise.
1232 * THANKS: More thanks.
1234 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1236 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1238 (_Jv_PrepareClass): Allow non-abstract classes to
1239 have abstract subclasses.
1240 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1242 * interpret.cc (continue1/perform_invoke): Don't sign extend
1244 (continue1/lshl,lshr): Push long, not int.
1245 (continue1/ulshr): Use UINT64, not long long.
1246 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1248 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1249 * java/lang/FirstThread.java (run): Add top-level exception
1251 (run0): Renamed from run.
1253 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1255 * configure.in (--with-interpreter): Added.
1256 * include/config.h.in (INTERPRETER): Added.
1258 * java/lang/ClassLoader.java: File replaced.
1259 * java/lang/VMClassLoader.java: New file.
1260 * java/lang/natClassLoader.cc: New file.
1261 * gnu/gcj/runtime/MethodInvocation.java: New file.
1262 * gnu/gcj/util/path/SearchPath.java: New file.
1263 * gnu/gcj/util/path/PathEntry.java: New file.
1264 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1265 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1266 * gnu/gcj/util/path/URLPathEntry.java: New file.
1267 * gnu/gcj/util/path/CacheEntry.java: New file.
1268 * include/java-interp.h: New file.
1269 * include/java-cpool.h: New file.
1270 * include/java-insns.h: New file.
1271 * defineclass.cc: New file.
1272 * interpret.cc: New file.
1273 * resolve.cc: New file.
1275 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1276 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1277 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1279 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1280 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1282 (initializeClass): Use new JV_ prefixed names. Also, call
1283 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1285 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1286 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1287 JV_STATE_LINKED): New.
1288 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1289 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1290 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1291 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1292 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1293 _Jv_InterpMethodInvocation): New friends for interpreter.
1295 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1296 include/java-cpool.h and renamed with JV_ prefix.
1298 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1300 (_Jv_UnregisterClass): New decl.
1302 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1303 class loader argument.
1304 (_Jv_FindClass): Use class loader.
1306 * prims.cc (_Jv_makeUtf8Const): New function.
1307 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1308 (_Jv_NewPrimArray): Ditto.
1309 (_Jv_FindClassFromSignature): Ditto.
1310 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1311 * java/lang/reflect/natMethod.cc (getType): Ditto.
1313 * include/java-field.h (_Jv_Field::isRef): Make robust for
1314 non-resolved contexts.
1316 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1317 Also, don't mark class->next field.
1319 * java/lang/VirtualMachineError.java: Added FIXME note.
1321 * configure.in (INTERPSPEC): New spec.
1322 * libgcj.spec.in: Added INTERPSPEC.
1323 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1324 gnu/gcj/runtime/MethodInvocation.
1325 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1326 (ordinary_java_source_files): Added above mentioned java classes.
1328 * configure: Rebuilt.
1329 * Makefile.in: Rebuilt.
1331 1999-08-06 Tom Tromey <tromey@cygnus.com>
1333 * configure: Rebuilt.
1334 * configure.in: Look for sched_yield in -lrt.
1336 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1338 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1339 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1340 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1342 (toString): Print correctly when `country' is empty.
1344 1999-08-04 Per Bothner <per@bothner.com>
1346 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1348 1999-08-02 Tom Tromey <tromey@cygnus.com>
1350 * aclocal.m4, configure: Rebuilt for new libtool.
1352 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1354 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1355 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1356 * java/net/ServerSocket.java: Define ANY_IF.
1357 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1358 all network interfaces.
1359 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1360 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1362 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1364 * java/io/natFile.cc (performMkdir): Remove FIXME.
1365 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1367 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1369 * configure.in: Check for bstring.h.
1370 * configure, include/config.h.in: Rebuilt.
1371 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1372 * java/net/natPlainSocketImpl.cc: Likewise.
1374 1999-07-31 Tom Tromey <tromey@cygnus.com>
1379 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1381 * configure.in: Check for struct hostent_data and need for
1382 -D_REENTRANT for gethostbyname_r declaration.
1383 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1384 (lookup): Use hostent_data for fixed_buffer.
1385 * configure, include/config.h.in: Rebuilt.
1387 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1389 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1390 available. Don't cast memmove args to (void*).
1391 * configure.in: Do not abort if memmove is not available.
1393 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1395 * java/lang/natString.cc (substring): optimize where substring is
1397 * java/io/File.java (getName): don't return separator with file name.
1398 * java/io/natFile.cc (attr): fix overflow.
1400 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1402 * mauve-libgcj: Disable Object Serialization tests.
1404 1999-07-20 Warren Levy <warrenl@cygnus.com>
1406 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1407 Default to using PlainDatagramSocketImpl.
1408 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1410 1999-07-19 Tom Tromey <tromey@cygnus.com>
1412 * include/stamp-h.in: New file.
1414 1999-07-12 Tom Tromey <tromey@cygnus.com>
1416 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1419 1999-07-07 Andrew Haley <aph@cygnus.com>
1421 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1422 bytes to make it point after the instruction where the trap
1424 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1426 1999-07-07 Tom Tromey <tromey@cygnus.com>
1428 * mauve-libgcj: Explicitly enable formerly disabled java.text
1431 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1434 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1436 * java/net/URL.java (equals): Compare strings using String.equals.
1437 * java/net/URL.java (sameFile): Ditto.
1439 1999-07-02 Warren Levy <warrenl@cygnus.com>
1441 * configure: Rebuilt.
1442 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1443 * include/config.h.in: Rebuilt.
1444 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1445 (mcastGrp): Updated FIXME comments.
1446 (setOption): Fixed typo.
1447 (getOption):Implemented IP_MULTICAST_IF.
1449 1999-07-02 Warren Levy <warrenl@cygnus.com>
1451 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1452 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1453 (getTimeToLive): Implemented.
1454 (setOption): Implemented IP_MULTICAST_IF.
1456 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1458 * java/lang/String.java (toString): Check for this == null and throw
1459 NullPointerException.
1461 1999-07-01 Warren Levy <warrenl@cygnus.com>
1463 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1464 to count and revised comments to match.
1465 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1466 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1467 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1468 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1469 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1470 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1472 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1474 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1475 properly as count rather than outlength.
1476 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1477 output on overflow rather than buffer fill.
1478 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1479 if markPos is 0 and there is still room in the buffer.
1481 1999-07-01 Andrew Haley <aph@cygnus.com>
1483 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1484 This is a workaround for a bug in glibc's pthreads package which
1485 doesn't deliver any sigcontext information to a signal handler.
1487 1999-06-24 Tom Tromey <tromey@cygnus.com>
1489 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1490 * java/lang/fdlibm.h (HUGE): Conditionally define.
1492 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1494 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1495 * java/lang/e_log.c: Don't use __uint32_t.
1497 1999-05-27 Eric Christopher <echristo@cygnus.com>
1499 * configure: Rebuilt
1500 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1501 * acconfig.h: Rebuilt
1502 * include/config.h.in: Rebuilt
1504 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1505 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1506 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1507 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1508 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1509 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1510 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1511 and namespace collision with __uint32_t
1513 1999-06-23 Tom Tromey <tromey@cygnus.com>
1515 * java/util/zip/InflaterInputStream.java (read): Throw
1516 ZipException if inflater throws a DataFormatException.
1518 1999-06-23 Warren Levy <warrenl@cygnus.com>
1520 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1521 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1522 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1523 is not final per JDK.
1524 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1526 * java/util/zip/DataFormatException.java: Class extends Exception.
1527 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1528 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1529 * java/util/zip/ZipInputStream.java: ditto.
1530 (closeEntry): Changed method name to match JDK spec.
1532 1999-06-21 Tom Tromey <tromey@cygnus.com>
1534 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1537 * Makefile.in: Rebuilt.
1538 * Makefile.am (toolexeclibdir): Define as libdir when
1540 * configure: Rebuilt.
1541 * configure.in (USE_LIBDIR): New conditional.
1543 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1545 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1546 hostname in returned InetAddress objects.
1547 (getLocalHostname): Fix typo.
1548 * java/net/InetAddress.java (getByName): Set hostname on return
1550 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1553 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1555 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1556 interfaces if host==NULL.
1557 (accept): Throw message with InterruptedIOException.
1558 (getOption): Cache localAddress.
1559 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1560 'address' for DatagramSocket.
1561 (setTimeToLive): Fix compiler warnings.
1562 (getOption): Cache localAddress.
1563 * java/net/Socket.java (getLocalAddress): Don't need local
1564 InetAddress object. Add FIXME comment about calling checkConnect().
1565 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1566 connection queue to 50 as per JDK 1.2 docs.
1567 (ServerSocket(int,int)): Listen on all network interfaces by
1568 default, per JDK 1.2 docs.
1569 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1570 Add localAddress caching.
1572 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1574 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1576 (write(byte[],int,int)): ditto.
1578 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1580 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1582 1999-06-11 Warren Levy <warrenl@cygnus.com>
1584 * mauve-libgcj: Activated java.net Mauve tests.
1586 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1588 * java/net/natInetAddress.cc (aton): Fix typos.
1589 (lookup): Use a bigger buffer size for gethostbyname_r on all
1590 versions of glibc. Updated FIXME comment explaining this.
1591 Modified while loops to not set herr = ERANGE to work around glibc
1592 problems. Use user specified hostname in InetAddress result when
1593 available (consistent with JDK).
1595 1999-06-10 Warren Levy <warrenl@cygnus.com>
1597 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1598 Throw FileNotFoundException instead of IOException.
1600 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1602 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1603 in static field name.
1604 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1605 throughout rather than ParseException.
1607 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1609 * java/lang/Runtime.java (exec): Convert prog name and arguments
1611 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1612 environment array conversion. Preserve current environment if envp
1613 not passed. Preserve PATH unless explicitly specified.
1614 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1615 followed by EOF. Set a flag when a line is terminated by '\r' and
1616 ignore following '\n' if set.
1618 1999-06-02 Warren Levy <warrenl@cygnus.com>
1620 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1621 Ignore context if spec is an absolute URL. Fix braindead
1623 (hashCode): Use JDK 1.2 style algorithm.
1624 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1625 context URL properly.
1627 1999-05-30 Anthony Green <green@cygnus.com>
1629 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1630 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1632 1999-05-28 Warren Levy <warrenl@cygnus.com>
1634 * java/net/DatagramSocket.java (laddr): Removed.
1635 (DatagramSocket): Removed attempts to get or set laddr if null.
1636 (getLocalAddress): Reimplemented per spec.
1637 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1639 (joinGroup): Throw NullPointerException if any argument is null.
1640 (leaveGroup): ditto.
1641 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1642 * java/net/PlainSocketImpl.java (timeout): Added.
1643 (getInputStream): Added FIXME comment on how to support timeouts
1645 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1646 * java/net/Socket.java: Added FIXME comments to identify
1647 conflicting specs between the JCL and JDK 1.2 documents.
1648 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1649 if host is null. Get localport value resolved by kernel if bind
1651 (receive): Implemented support for timeouts in UDP.
1652 (setOption): Implemented based on natPlainSocketImpl version.
1654 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1655 resolved by kernel if bind lport is 0.
1656 (connect): Get localport value resolved by kernel if bind wasn't
1657 done to set localport.
1658 (accept): Implemented support for timeouts for ServerSocket.
1659 (setOption): Save value for SO_TIMEOUT.
1660 (getOption): Return timeout for SO_TIMEOUT.
1662 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1664 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1665 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1666 (setOption): Made abstract.
1667 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1668 to avoid cpp conflicts in native code.
1669 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1670 cpp conflicts in native code.
1671 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1672 * java/net/Socket.java (getLocalAddress): Implemented.
1673 (setTcpNoDelay): Implemented.
1674 (getTcpNoDelay): Implemented.
1675 (setSoLinger): Implemented.
1676 (getSoLinger): Implemented.
1677 (getSoTimeout): Verify class type.
1678 (setSendBufferSize): Implemented.
1679 (getSendBufferSize): Implemented.
1680 (setReceiveBufferSize): Implemented.
1681 (getReceiveBufferSize): Implemented.
1682 (toString): Prepended "Socket".
1683 * java/net/SocketImpl.java (toString): Rewritten.
1684 (getOption): Made abstract.
1685 (setOption): Made abstract.
1686 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1687 (setOption): Implemented.
1688 (getOption): Implemented.
1690 1999-05-26 Warren Levy <warrenl@cygnus.com>
1692 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1693 address when null. Set SO_REUSEADDR for multicasts.
1694 (getSoTimeout): Implemented.
1695 (setSoTimeout): Implemented.
1696 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1697 * java/net/MulticastSocket.java (getInterface): Implemented.
1698 (setInterface): Implemented.
1699 (setTimeToLive): Check for invalid ttl.
1700 (joinGroup): Verify multicast address and security.
1701 (leaveGroup): Verify multicast address and security.
1702 (send): Implemented.
1703 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1709 (getTTL): Implemented as non-native.
1713 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1714 (getSoTimeout): Implemented.
1715 (setSocketFactory): Made synchronized.
1716 * java/net/Socket.java (setSoTimeout): Implemented.
1717 (getSoTimeout): Implemented.
1718 (close): Made synchronized.
1719 (setSocketImplFactory): Made synchronized.
1720 * java/net/SocketImpl.java: Implement SocketOptions interface.
1721 * java/net/natInetAddress.cc: Corrected module name at top of file.
1722 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1723 (bind): Added FIXME.
1724 (peek): Implemented.
1730 (setOption): Implemented for SO_REUSEADDR.
1731 (getOption): Implemented for SO_REUSEADDR.
1733 1999-05-24 Tom Tromey <tromey@cygnus.com>
1735 * java/util/ResourceBundle.java (getBundle): Throw
1736 NullPointerException if baseName is null.
1738 1999-05-22 Tom Tromey <tromey@cygnus.com>
1740 * java/util/zip/ZipInputStream.java (fill): New method.
1741 (compressed_len): New instance variable.
1742 (getNextStream): Set it.
1743 (read): Reset inflater on EOF. Only read via `super' if entry is
1745 (skip): Only skip via `super' if entry is deflated.
1746 * java/util/zip/Deflater.java (last_input_count): Removed.
1747 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1749 (needsInput): Don't use last_input_count.
1750 (setInput): Don't set last_input_count.
1751 * java/util/zip/natInflater.cc (getRemaining): Return correct
1753 (inflate): Return 0 if input array is length 0.
1754 (setInput): Don't set last_input_count.
1755 * java/util/zip/Inflater.java (last_input_count): Removed.
1757 1999-05-21 Tom Tromey <tromey@cygnus.com>
1759 * Makefile.in: Rebuilt.
1760 * Makefile.am (INCLUDES): Added $(ZINCS).
1761 * configure: Rebuilt.
1762 * configure.in (ZINCS): New subst.
1764 1999-05-21 Andrew Haley <aph@cygnus.com>
1766 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1767 to signal options to allow the same exceptions to be rethrown
1770 1999-05-20 Andrew Haley <aph@cygnus.com>
1772 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1774 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1775 (INIT_FPE): Exception string made more informative.
1776 * include/sparc-signal.h (INIT_FPE): Exception string made more
1778 * testsuite/libjava.lang/Divide_1.java: New file.
1779 * testsuite/libjava.lang/Divide_1.out: New file.
1781 1999-05-19 Tom Tromey <tromey@cygnus.com>
1783 * aclocal.m4, configure: Rebuilt.
1784 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1786 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1789 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1791 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1793 (update): Fail in default case. Always initialize `strat'.
1795 * mauve-libgcj: Enable java.util.zip.
1797 1999-05-18 Warren Levy <warrenl@cygnus.com>
1799 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1800 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1801 PlainDatagramSocketImpl.java, and SocketOptions.java.
1802 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1803 * Makefile.in: Rebuilt.
1805 * java/net/DatagramPacket.java: New file.
1806 * java/net/DatagramSocket.java: New file.
1807 * java/net/DatagramSocketImpl.java: New file.
1808 * java/net/MulticastSocket.java: New file.
1809 * java/net/PlainDatagramSocketImpl.java: New file.
1810 * java/net/SocketOptions.java: New file.
1811 * java/net/natPlainDatagramSocketImpl.cc: New file.
1813 1999-05-18 Tom Tromey <tromey@cygnus.com>
1815 * java/util/zip/ZipOutputStream.java (level): Initial value is
1816 Deflater.DEFAULT_COMPRESSION.
1817 (close): New method.
1818 (closeEntry): Likewise.
1820 (put_version): Likewise.
1821 (write_entry): Likewise.
1822 (put2, put4): Now return `int'.
1823 (comment): Default to empty string.
1824 (bytes_written): New instance variable.
1826 * java/util/zip/ZipEntry.java (setComment): Limit length of
1828 (setCrc): Check CRC validity.
1829 (setExtra): Check argument validity.
1830 (setMethod): Likewise.
1831 (setSize): Likewise.
1832 (ZipEntry): Likewise.
1833 * include/javaprims.h: Updated namespace declarations.
1834 * Makefile.in: Rebuilt.
1835 * Makefile.am (ordinary_java_source_files): Mention new files.
1836 (nat_source_files): Likewise.
1837 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1840 (getInputStream): Handle compressed entries.
1841 * java/util/zip/GZIPOutputStream.java: New file.
1842 * java/util/zip/GZIPInputStream.java: New file.
1843 * java/util/zip/DataFormatException.java: New file.
1844 * java/util/zip/CheckedInputStream.java: New file.
1845 * java/util/zip/CheckedOutputStream.java: New file.
1846 * java/util/zip/InflaterInputStream.java: Implemented.
1847 * java/util/zip/natInflater.cc: New file.
1848 * java/util/zip/Deflater.java: Implemented.
1849 * java/util/zip/natDeflater.cc: New file.
1850 * java/util/zip/DeflaterOutputStream.java: Implemented.
1852 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1853 ZipException, not IOException.
1854 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1857 1999-05-17 Tom Tromey <tromey@cygnus.com>
1859 * java/lang/natSystem.cc (init_properties): URL now points to
1862 1999-05-12 Per Bothner <bothner@cygnus.com>
1864 * java/util/Calendar.java (set): First call computeFields if needed.
1865 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1867 1999-05-12 Tom Tromey <tromey@cygnus.com>
1869 * configure: Rebuilt.
1870 * configure.in: Look for -ldl when using the Boehm collector.
1871 Look for sched_yield in -lposix4.
1873 1999-05-12 Per Bothner <bothner@cygnus.com>
1875 * java/io/File.java (mkdirs): Handle a null parent directory.
1877 1999-05-12 Tom Tromey <tromey@cygnus.com>
1879 * include/javaprims.h: Updated namespace declarations.
1880 * classes.pl (scan): Uniquify class list.
1881 * Makefile.in, configure: Rebuilt.
1882 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1883 (built_java_source_files): New macro.
1884 (nat_headers): Added built_java_source_files.
1885 (javao_files): Likewise.
1886 (EXTRA_libgcj_la_SOURCES): Likewise.
1887 (libgcj.zip): Create built class files.
1888 ($(built_java_source_files:.java=.class)): New target.
1889 (jv_convert_LDADD): Added -L$(here)/.libs.
1890 * configure.in: Create links for ConcreteProcess.java and
1891 natConcreteProcess.cc.
1892 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1893 * java/lang/natEcosProcess.cc: New file.
1894 * java/lang/EcosProcess.java: New file.
1895 * java/lang/PosixProcess.java: New file.
1896 * java/lang/natPosixProcess.cc: New file.
1898 1999-05-12 Warren Levy <warrenl@cygnus.com>
1900 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1901 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1902 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1903 (connect): Throw ConnectException.
1905 1999-05-11 Tom Tromey <tromey@cygnus.com>
1907 * Makefile.in: Rebuilt.
1908 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1909 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1912 * Makefile.in: Rebuilt.
1913 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1914 and it causes problems with libtool.
1916 * Makefile.in, configure: Rebuilt.
1917 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1918 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1919 (jv_convert_DEPENDENCIES): Added ZDEPS.
1920 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1922 (THREADSPEC): Added `-L' to point to qthreads build directory.
1926 * configure, Makefile.in: Rebuilt.
1927 * Makefile.am (toolexeclib_DATA): New macro.
1928 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1929 Recognize --with-system-zlib.
1930 (GCSPEC): New subst.
1931 (THREADSPEC): New subst.
1932 (SYSTEMSPEC): New subst.
1933 (ZLIBSPEC): New subst.
1934 * libgcj.spec.in: New file.
1936 1999-05-10 Tom Tromey <tromey@cygnus.com>
1938 * java/io/InputStreamReader.java (read): If length is 0, return
1939 0. Reset `wpos' and `wcount' when buffer has been filled and
1942 * java/util/Properties.java (save): Removed `FIXME' comment.
1943 (load): Invalid characters in \u now treated as terminators.
1944 Make sure to append character resulting from `\' handling.
1945 Cast to `char' when appending to key or value.
1946 (skip_ws): Inverted test for whitespace.
1948 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1950 (readLine): Likewise.
1951 (readFully): Implemented.
1953 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1955 * java/awt/natToolkit.cc: Added copyright header.
1956 * java/util/zip/InflaterInputStream.java: Added copyright header.
1958 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1960 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1962 (getNextStream): Likewise.
1964 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1966 (getBundle): Don't explicitly throw null pointer exception.
1968 * gnu/gcj/RawData.java: Added copyright header.
1970 * include/jni.h (_Jv_va_list): Always define as va_list.
1972 1999-05-9 Anthony Green <green@cygnus.com>
1974 * java/text/DateFormat.java (computeInstance): Separate time
1976 (getDateTimeInstance): Ditto.
1977 (getDateTimeInstance(int,int)): New method.
1979 * Makefile.in: Rebuilt.
1980 * Makefile.am (ordinary_java_source_files): Add new classes.
1982 * java/util/PropertyResourceBundle.java: New file.
1983 * gnu/gcj/util/EnumerationChain.java: New file.
1985 1999-05-07 Tom Tromey <tromey@cygnus.com>
1987 * acconfig.h (GCJVERSION): New undef.
1988 * java/lang/natSystem.cc (init_properties): Define java.version,
1989 java.class.version, os.name, os.arch, os.version.
1990 Include <sys/utsname.h> if required.
1991 * configure: Rebuilt.
1992 * configure.in: Compute and define GCJVERSION.
1994 * java/lang/natSystem.cc (default_file_encoding): Now static.
1996 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1998 * libtool-version: New file.
1999 * Makefile.in: Rebuilt.
2000 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
2003 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
2004 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
2007 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
2008 (we pick those up already).
2010 1999-05-05 Per Bothner <bothner@cygnus.com>
2012 * java/awt/*: Check a bunch of classes, a few complete, but mostly
2013 stub classes. (This is enough to get Kawa to compile against libgcj.)
2015 * gnu/gcj/RawData.java: New class.
2016 * doc/cni.sgml: Document RawData.
2018 * java/util/zip/InflaterInputStream.java: New stub class.
2019 * java/util/zip/ZipInputStream.java: New class. Partly works.
2020 * java/util/zip/ZipConstants.java: Add two (internal) constants.
2021 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
2022 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
2023 * java/util/zip/ZipOutputStream.java: Start implementation.
2025 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
2026 (default_file_encoding): New global, initial value is above macro.
2027 (init_properties): Default file.encoding to default_file_encoding.
2029 * Makefile.am: Add new classes.
2031 1999-05-05 Tom Tromey <tromey@cygnus.com>
2033 * Makefile.in: Rebuilt.
2034 * Makefile.am (CLEANFILES): Don't mention $(class_files).
2035 (clean-local): New target
2037 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
2038 (load, loadLibrary): Now native.
2040 * java/lang/Runtime.java (load, loadLibrary): Now native.
2041 (init): New native method.
2042 (Runtime): Use init.
2043 * prims.cc: Include <ltdl.h> if required.
2044 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
2046 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
2048 * configure.in: Switch from irix threads to posix threads
2049 * configure: Regenerate.
2051 1999-04-30 Tom Tromey <tromey@cygnus.com>
2053 * Makefile.in: Rebuilt.
2054 * Makefile.am (jv_convert_LDADD): Added -lgcc.
2056 1999-04-29 Tom Tromey <tromey@cygnus.com>
2058 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
2061 * java/util/Locale.java (Locale(String,String)): Implement in
2062 terms of 3-argument version; variant now defaults to empty
2064 (toString): Assume variant is not null.
2065 (equals): Assume all strings are not null.
2066 (Locale): Throw NullPointerException if any argument is null.
2068 * java/util/ResourceBundle.java (getBundle): Don't try the base
2069 name; now implicit in partialGetBundle call.
2070 (trySomeGetBundle): Search for parent bundles and call setParent
2072 (partialGetBundle): Added `langStop' argument. Use
2073 `Locale.toString' to compute bundleName.
2074 (resource_cache): New static field.
2075 (partialGetBundle): Cache the returned resource bundle. Now
2078 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
2081 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2082 * java/text/natCollator.cc (decomposeCharacter): `base' now
2084 * Makefile.in: Rebuilt.
2085 * Makefile.am (ordinary_java_source_files): Added
2086 CollationElementIterator, CollationKey, Collator,
2088 (nat_source_files): Added natCollator.cc.
2089 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2090 (compare): Pass `this' to CollationElementIterator constructor.
2091 (getCollationElementIterator): Likewise.
2092 (ceiNext): Fix off-by-one error when finding initial substring.
2093 (next): Correctly mask off bits when computing return value.
2094 Fixed return values when one string is shorter than the other.
2095 * java/text/CollationElementIterator.java (collator): New field.
2096 (CollationElementIterator): Added collator argument.
2097 (next): Call ceiNext on collator object.
2099 1999-04-26 Tom Tromey <tromey@cygnus.com>
2101 * natCollator.cc: New file.
2103 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2104 (GregorianCalendar): Use it in all constructors.
2105 * java/util/Calendar.java (Calendar): Changed argument name to
2106 `zone' to match code.
2108 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2109 * java/text/CollationKey.java: New file.
2110 * java/text/CollationElementIterator.java: New file.
2111 * java/text/Collator.java: New file.
2112 * java/text/RuleBasedCollator.java: New file.
2114 * Makefile.in: Rebuilt.
2115 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2116 (jv_convert_LDADD): Explicltly add -lm -lc.
2118 1999-04-26 Tom Tromey <tromey@cygnus.com>
2120 * configure, Makefile.in: Rebuilt.
2121 * configure.in: Added AM_PROG_LIBTOOL.
2122 (GCOBJS): Use `.lo' form of files.
2123 (THREADOBJS): Likewise.
2124 (GCDEPS): Use `.la' form of library.
2125 (GCLIBS): Set to be the same as GCDEPS.
2126 (THREADDEPS): Use `.la' form of library.
2127 (THREADLIBS): Set to be the same as THREADDEPS.
2128 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2129 toolexeclib_LIBRARIES.
2130 (libgcj_la_SOURCES): Renamed for libtoolization.
2131 (EXTRA_libgcj_la_SOURCES): Likewise.
2132 (libgcj_la_DEPENDENCIES): Likewise.
2133 (libgcj_la_LIBADD): Likewise.
2134 ($(nat_files)): Use LTCXXCOMPILE.
2135 ($(c_files)): Use LTCOMPILE.
2136 (GCJCOMPILE): New macro.
2138 (.java.o): Likewise.
2139 ($(javao_files)): Likewise.
2140 (jv_convert_LINK): Use LIBTOOL.
2141 (nat_files): Use `.lo' files.
2142 (c_files): Likewise.
2143 (javao_files): Likewise.
2144 (.class.lo): Renamed.
2145 (.java.lo): Likewise.
2146 ($(nat_files)): Depend on %.lo.
2147 ($(c_files)): Likewise.
2148 ($(javao_files)): Likewise.
2149 (jv_convert_LDADD): Link against .lo files.
2150 (jv_convert_DEPENDENCIES): Depend on .lo files.
2151 (maintainer-check): Depend on libgcj.la, but examine .a file.
2152 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2153 (libgcj_la_LDFLAGS): New macro.
2155 1999-04-23 Warren Levy <warrenl@cygnus.com>
2157 * Makefile.am: Added URLDecoder and URLEncoder.
2158 * Makefile.in: Rebuilt.
2160 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2161 setSocketImplFactory to match spec.
2162 * java/net/Socket.java (getSoLinger): Changed return type to
2165 * java/net/URLDecoder.java: New file.
2166 * java/net/URLEncoder.java: New file.
2168 1999-04-21 Tom Tromey <tromey@cygnus.com>
2170 * java/lang/natString.cc (getBytes): Reverted earlier change and
2171 applied correct fix from Per Bothner.
2173 * java/lang/String.java: Don't throw
2174 UnsupportedEncodingException.
2176 * java/lang/natString.cc (getBytes): Correctly size result
2177 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2179 1999-04-20 Andrew Haley <aph@cygnus.com>
2181 * include/sparc-signal.h: new file.
2182 * configure.in: include/sparc-signal.h added.
2183 * configure: regenerated.
2184 * prims.cc (JvRunMain): signal handling code rewritten to be more
2186 (catch_segv): ditto.
2188 * include/i386-signal.h: reorganized.
2189 * include/default-signal.h: reorganized.
2191 1999-04-19 Tom Tromey <tromey@cygnus.com>
2193 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2194 once. From Anthony Green.
2196 1999-04-19 Andrew Haley <aph@cygnus.com>
2198 * Makefile.in: Processed with new automake.
2200 1999-04-19 Tom Tromey <tromey@cygnus.com>
2202 * include/javaprims.h: Removed security namespace.
2204 1999-04-20 Anthony Green <green@cygnus.com>
2206 * java/io/PrintStream.java (println): Remove extra println.
2208 1999-04-19 Anthony Green <green@cygnus.com>
2210 * Makefile.in: Rebuilt.
2211 * Makefile.am (ordinary_java_source_files): Add new security files.
2213 * java/security/NoSuchAlgorithmException.java,
2214 java/security/MessageDigest.java: New files.
2216 * include/javaprims.h: Add security namespace.
2218 1999-04-16 Per Bothner <bothner@cygnus.com>
2220 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2221 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2222 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2223 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2224 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2225 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2226 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2227 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2228 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2229 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2230 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2231 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2232 * Makefile.am: Various changes for new files and conversions.
2234 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2235 New overloading, allows greater efficiency.
2236 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2237 New overloading (for efficiency - avoids copying).
2239 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2240 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2242 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2243 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2244 (writeChars): Don't be quite so eager to flush.
2245 * java/io/PrintStream.java: Rewrite. Now more similar to
2246 OutputStreamWriter, using explicit UnicodeToBytes converter.
2247 Also, autoflush does not need to flush so often.
2248 * java/lang/natString.cc (getBytes): More efficient algorithm.
2249 (init(jbyteArray,jint,jint,jstring)): More efficient.
2251 1999-04-15 Warren Levy <warrenl@cygnus.com>
2253 * Makefile.am (ordinary_java_source_files): Added new Connection
2254 and Handler classes in gnu.gcj.protocol.file package.
2255 * Makefile.in: Rebuilt.
2257 * gnu/gcj/protocol/file/Connection.java: New file.
2258 * gnu/gcj/protocol/file/Handler.java: New file.
2259 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2260 if doInput allows input.
2261 (getOutputStream): Check if doOutput allows output.
2262 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2264 1999-04-14 Tom Tromey <tromey@cygnus.com>
2266 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2267 buffer larger to work around bug.
2268 From Bryce McKinlay <bryce@albatross.co.nz>.
2270 1999-04-14 Andrew Haley <aph@cygnus.com>
2272 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2273 NaNs are always converted to the same long value.
2274 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2277 1999-04-13 Tom Tromey <tromey@cygnus.com>
2279 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2280 instead switch on actual element type.
2282 * Makefile.in: Rebuilt.
2283 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2285 1999-04-13 Andrew Haley <aph@cygnus.com>
2287 * include/i386-signal.h, include/default-signal.h: New files.
2288 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2290 (catch_fpe): New function.
2291 * configure.in: Make link to appropriate include/java-signal.h.
2292 * configure: Rebuilt.
2293 * Makefile.am: include/java-signal.h added to dependency list.
2294 * Makefile.in: Rebuilt.
2296 1999-04-12 Urban Widmark <urban@svenskatest.se>
2298 * java/io/DataInputStream.java (readLine): Corrected handling of
2299 empty lines, from null to "".
2301 1999-04-12 Tom Tromey <tromey@cygnus.com>
2303 * Makefile.in: Rebuilt.
2304 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2306 * java/lang/natSystem.cc (SystemClass): New define.
2307 (init_properties): Synchronize.
2309 1999-04-08 Geoff Berry <gcb@gnu.org>
2311 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2312 * natPlainSocketImpl.cc (accept): Add missing else if check
2315 1999-04-08 Tom Tromey <tromey@cygnus.com>
2317 * java/lang/Long.java (parseLong): Corrected overflow detection
2319 * java/lang/Integer.java (parseInt): Corrected overflow detection
2322 * java/io/PrintStream.java (print): Handle null string argument.
2323 (println): Likewise.
2325 1999-04-07 Warren Levy <warrenl@cygnus.com>
2327 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2328 Set count to 0 when InputStreamReader returns -1 for EOF.
2330 1999-04-07 Tom Tromey <tromey@cygnus.com>
2332 * mauve-libgcj: Omit java.text.Collator,
2333 java.text.RuleBasedCollator.
2335 1999-04-06 Tom Tromey <tromey@cygnus.com>
2337 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2338 IOException from getHttpHeaders().
2339 (getHeaderFieldKey): Likewise.
2341 * include/javaprims.h: Regenerated declarations.
2343 * Makefile.in: Rebuilt.
2344 * Makefile.am (ordinary_java_source_files): Updated for removed
2347 1999-04-06 Per Bothner <bothner@cygnus.com>
2349 * java/util/zip/Adler32.java: New class.
2350 * java/util/zip/CRC32.java: Add working method bodies.
2351 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2352 * Makefile.in: Re-generate.
2354 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2356 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2357 from version in removed www hierarchy.
2358 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2359 version in removed www hierarchy.
2361 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2362 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2363 * gnu/gcj/www/protocol/http: Removed dir.
2364 * gnu/gcj/www/protocol: Removed dir.
2365 * gnu/gcj/www: Removed dir.
2367 * java/net/HttpURLConnection.java: Revised comments to indicate
2368 missing JDK 1.2 methods.
2370 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2371 hierarchy rather than the gnu/gcj/www/protocol one.
2372 * java/net/URLConnection.java: Updated status comments.
2373 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2374 the gnu/gcj/www/content one.
2376 1999-04-06 Per Bothner <bothner@cygnus.com>
2378 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2379 The gen-from-JIS program is in $(CONVERT_DIR).
2381 1999-04-06 Tom Tromey <tromey@cygnus.com>
2383 * mauve-libgcj: Renamed from mauve-libjava.
2385 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2387 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2388 (getResponseMessage): Implemented.
2389 (getResponseVals): New private method.
2391 * java/net/URLConnection.java (getContent): Implemented.
2392 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2394 1999-04-05 Tom Tromey <tromey@cygnus.com>
2396 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2397 (jv_convert_SOURCES): Renamed.
2398 (EXTRA_jv_convert_SOURCES): Likewise.
2399 (jv_convert_LDFLAGS): Likewise.
2400 (jv_convert_LINK): Likewise.
2401 (jv_convert_LDADD): Likewise.
2402 (jv_convert_DEPENDENCIES): Likewise.
2404 * Makefile.in: Rebuilt.
2405 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2408 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2410 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2411 method for comparison.
2413 * java/net/URLConnection.java (getContentLength): Implemented.
2414 (getContentType): Implemented.
2415 (getContentEncoding): Implemented.
2416 (getExpiration): Implemented.
2417 (getDate): Implemented.
2418 (getLastModified): Implemented.
2419 (getHeaderFieldInt): Implemented.
2420 (getHeaderFieldDate): Implemented.
2422 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2424 * java/net/URLConnection.java (toString): Implemented.
2425 (setContentHandlerFactory): Implemented.
2426 (setContentHandler): Wrote new private helper method.
2428 1999-04-01 Tom Tromey <tromey@cygnus.com>
2430 * Makefile.in: Rebuilt.
2431 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2432 of 1999-03-31; we always want to build all the .class files.
2433 Depend on java_source_files, not libgcj.zip.
2434 (nat_headers): Define in terms of ordinary_java_source_files.
2436 1999-03-31 Tom Tromey <tromey@cygnus.com>
2438 * Makefile.in: Rebuilt.
2439 * Makefile.am (special_java_source_files): New macro.
2440 (java_source_files): Use it.
2441 (ordinary_java_source_files): New macro.
2442 (java_source_files): Use it.
2443 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2444 creating headers for those files with hand-maintained headers.
2446 * include/javaprims.h: Regenerated namespace declarations.
2447 * classes.pl (scan): Include [0-9] in regexp for matching class
2448 names; for java.util.zip.CRC32.
2450 * Makefile.in: Rebuilt.
2451 * Makefile.am (nat_headers): Redefined to generate all possible
2454 * java/util/zip/ZipException.java: In package java.util.zip, not
2457 1999-03-30 Tom Tromey <tromey@cygnus.com>
2459 * configure: Rebuilt.
2460 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2461 eh-common.h when not building in tree with gcc.
2463 * Makefile.in: Rebuilt.
2464 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2465 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2467 ($(java_source_files:.java=.class)): New target.
2469 * Makefile.in: Rebuilt.
2470 * Makefile.am (java_source_files): Added
2471 java/net/HttpURLConnection.java and
2472 gnu/gcj/www/protocol/http/Connection.java.
2474 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2476 * gnu/gcj/www/protocol/http/Connection.java: New file.
2477 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2478 * java/net/HttpURLConnection.java: New file.
2479 * java/net/URLConnection.java (getHeaderField): Implemented default.
2480 (getHeaderFieldKey): Implemented default method.
2482 1999-03-30 Tom Tromey <tromey@cygnus.com>
2484 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2486 * java/util/zip/Deflater.java: Added copyright header.
2487 * java/util/zip/CRC32.java: Added copyright header.
2489 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2490 that it is automatically generated.
2491 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2493 * gnu/gcj/convert/BytesToUnicode.java,
2494 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2495 gnu/gcj/convert/Input_EUCJIS.java,
2496 gnu/gcj/convert/Input_UTF8.java,
2497 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2498 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2499 gnu/gcj/convert/Output_8859_1.java,
2500 gnu/gcj/convert/Output_JavaSrc.java,
2501 gnu/gcj/convert/Output_UTF8.java,
2502 gnu/gcj/convert/UnicodeToBytes.java,
2503 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2505 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2507 * Makefile.in, configure: Rebuilt.
2508 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2509 not if test subdir exists.
2510 (--enable-gcj-classes): Removed; gcj always used to generate
2512 (JAVA, JAVAC): Removed.
2513 (--enable-single-compilation, --enable-source-compilation):
2516 (NATIVE): New conditional.
2517 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2518 `install-exec' to work.
2519 (toolexeclibdir): Likewise.
2520 (toollib_LIBRARIES): Likewise.
2521 (AM_MAKEFLAGS): Don't pass tooldir.
2523 (javao_files): Redefined.
2524 (java_source_files): New macro.
2525 (c_source_files): New macro.
2526 (c_files): Redefined in terms of c_source_files.
2527 (java_io_files, java_lang_files, java_net_files, java_text_files,
2528 java_util_files, gnu_files, java_files): Removed.
2529 (class_io_files, class_lang_files, class_net_files,
2530 class_text_files, class_util_files, class_gnu_files, class_files):
2532 (nat_source_files): New macro.
2533 (nat_files): Redefined in terms of nat_source_files.
2534 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2535 java_source_files. Removed no-such-file.c.
2537 (ETAGS_ARGS): Removed.
2538 (TAGS_DEPENDENCIES): Likewise.
2539 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2541 (src_io_files, src_lang_files, src_text_files, src_util_files,
2542 src_gnu_files): Removed.
2543 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2544 (BUILT_SOURCES): Removed.
2545 (header-check): New target.
2547 (noinst_PROGRAMS): New macro.
2548 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2550 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2551 (gen-from-JIS): Build in top directory.
2552 (convert_source_files): New macro.
2553 (convert_SOURCES): New macro.
2554 (convert_LDFLAGS): Likewise.
2555 (convert_LINK): Likewise.
2556 (convert_LDADD): Likewise.
2557 (convert_DEPENDENCIES): Likewise.
2559 (gen-from-JIS): Removed.
2560 (gen_from_JIS_SOURCES): New macro.
2561 (gen_from_JIS_LDADD): Likewise.
2562 (gen_from_JIS_DEPENDENCIES): Likewise.
2564 * configure: Rebuilt.
2565 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2566 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2567 when defining conditional.
2569 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2571 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2572 The Unicode Consortium does not permit their re-distribution.
2573 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2574 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2576 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2578 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2580 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2582 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2583 from Unicode Consortium.
2584 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2585 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2586 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2587 New tables, generated using gen-from-JIS.
2588 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2589 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2590 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2591 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2593 * gnu/gcj/convert/Convert.java: New application.
2594 * Makefile.am, Makefile.in (convert): New program, using Convert.
2595 Build the various JIS conversion tables (in maintainer mode).
2597 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2599 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2601 * java/net/URL.java (URL): Deal with null property value. Use "."
2602 as separator in building class name.
2603 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2604 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2605 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2606 beginning of the substring rather than 'start'.
2608 1999-03-26 Tom Tromey <tromey@cygnus.com>
2610 * include/java-chartables.h: Rebuilt.
2611 * include/java-chardecomp.h: New file.
2612 * chartables.pl: Generate output files directly. Added support
2613 for generating decomposition header.
2614 (canonical_decomposition, full_decomposition): New globals.
2615 (DECOMPOSITION): New constant.
2616 (process_char): Call add_decomposition.
2617 (add_decomposition): New sub.
2618 (write_decompositions): New sub.
2620 1999-03-25 Tom Tromey <tromey@cygnus.com>
2622 * java/text/CollationElementIterator.java: New file.
2624 * mauve-libjava: Omit StringTest.
2626 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2628 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2629 without a '/' when parsing protocol. Handle ref outside of parseURL.
2630 (hashCode): Implemented.
2631 (set): Don't expand -1 to default port.
2632 (getDefaultPort): Removed.
2634 * java/net/URLStreamHandler.java (parseURL): Implemented.
2635 (toExternalForm): Implemented.
2637 1999-03-23 Tom Tromey <tromey@cygnus.com>
2639 * java/text/BreakIterator.java (getSentenceInstance):
2641 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2643 * Makefile.in: Rebuilt.
2644 * Makefile.am (nat_headers): Added IllegalAccessException.
2645 * java/lang/natClass.cc (newInstance): Throw
2646 IllegalAccessException, not IllegalAccessError.
2647 Include IllegalAccessException.h.
2649 1999-03-22 Tom Tromey <tromey@cygnus.com>
2651 * gnu/gcj/text/LineBreakIterator.java: New file.
2652 * java/text/BreakIterator.java (getLineInstance): Implemented.
2654 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2655 copy constructor private.
2656 (previous, next): Removed erroneous comment about line
2658 (previous): Correctly recognize break between non-letter on the
2659 left and letter on the right. Handle apostrophes correctly.
2661 * java/text/BreakIterator.java (getWordInstance): Implemented.
2662 * gnu/gcj/text/WordBreakIterator.java: New file.
2663 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2665 * gnu/gcj/text/BaseBreakIterator.java: New file.
2667 1999-03-19 Tom Tromey <tromey@cygnus.com>
2669 * java/text/BreakIterator.java: New file (partially stubbed out).
2670 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2672 * include/config.h.in: Rebuilt.
2673 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2674 (HAVE_TIMEZONE): Likewise.
2675 * configure: Rebuilt.
2676 * configure.in: Added timezone checks.
2677 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2680 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2682 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2683 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2684 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2685 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2686 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2687 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2688 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2689 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2691 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2692 (BSD_COMP): Kludge needed for Solaris2.
2694 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2696 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2697 URL(java.net.URL, string, URLStreamHandler) and call it with a
2698 null handler. In latter constructor, added SecurityManager check.
2699 (set): Expect null handler on bad protocol rather than an exception.
2700 (setURLStreamHandler): Simplified exception handling; return null
2701 on invalid protocol.
2703 1999-03-18 Tom Tromey <tromey@cygnus.com>
2705 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2707 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2709 Include PrintStream.h, InputStream.h.
2710 * java/lang/System.java (ForwardingInputStream,
2711 ForwardingOutputStream): Removed.
2712 (setErr, setIn, setOut): Now native.
2714 Reverted patch from 1999-02-12 to work around problem in
2716 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2717 (_Jv_eh_free): Use free.
2719 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2720 for path name. Minor formatting fixes.
2722 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2724 * prims.cc (fail_on_finalization): New function.
2725 (_Jv_GCWatch): Likewise.
2727 * prims.cc (JvRunMain): Initialize `nullp'.
2728 (nullp): New global.
2729 (catch_segv): Throw nullp.
2731 * Makefile.in: Rebuilt.
2732 * Makefile.am (ZIP): In "null target" case, zip is found in the
2735 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2739 * java/lang/StringBuffer.java (StringBuffer): Don't use
2740 ensureCapacity to set initial capacity.
2741 (capacity): Subtract `length' from return result.
2743 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2745 * java/io/natFileDescriptorPosix.cc (open): Throw
2746 FileNotFoundException, but with filename and errno in msg.
2748 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2750 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2751 functionality folded into java/net/URL.java per spec.
2753 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2754 than EEXIST for throwing FileNotFoundException.
2756 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2757 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2759 * java/net/URLStreamHandler.java (parseURL): Added stub.
2761 1999-03-15 Andrew Haley <aph@cygnus.com>
2763 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2766 1999-03-15 Andrew Haley <aph@cygnus.com>
2768 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2771 1999-03-12 Tom Tromey <tromey@cygnus.com>
2773 * prims.cc (catch_segv): New function.
2774 Include <signal.h> if HANDLE_SEGV defined. Include
2775 NullPointerException.h.
2776 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2779 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2780 a SimpleDateFormat, not just a DateFormat.
2781 (defaultCenturyStart, formatData, pattern): Now private.
2782 (append): Now `final'. Use `NumberFormat.format'.
2784 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2786 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2789 * java/text/MessageFormat.java (format): Use default MessageFormat
2791 (parse, parseObject): Wrote.
2793 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2796 1999-03-12 Andrew Haley <aph@cygnus.com>
2798 * java/lang/String.java (indexOf): Replace with native method for
2800 * java/lang/natString.cc (IndexOf): As above.
2802 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2803 Argument check corrected.
2804 (init(jbyteArray,jint,jint,jstring)): Likewise.
2806 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2807 1.2 compliant method.
2809 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2811 * java/lang/Float.java (byteValue, shortValue): Likewise.
2813 1999-03-11 Tom Tromey <tromey@cygnus.com>
2815 * java/text/DecimalFormat.java (parse): Wrote.
2817 * java/text/ChoiceFormat.java (parse): Set error index on
2818 ParsePosition object.
2820 * java/lang/Integer.java (parseInt): Throw exception on overflow
2821 when intermediate result is most negative number. Changed
2822 overflow detection as well.
2823 * java/lang/Long.java (parseLong): Likewise.
2825 * configure, Makefile.in: Rebuilt.
2826 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2827 CANADIAN when building in source tree that doesn't include gcc.
2828 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2831 * java/text/ChoiceFormat.java (nextDouble): Correct some
2832 off-by-one errors when masking or adding.
2834 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2835 parameter, if given. Use `%', not IEEEremainder.
2836 (scanFix): Throw error if multiplier already set.
2837 (computePattern): Wrote.
2839 1999-03-11 Andrew Haley <aph@cygnus.com>
2841 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2843 (nextDouble): Corrected masking logic. Handle interaction between
2844 `next' and negative numbers.
2846 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2848 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2849 * java/net/URL.java: Added general comments.
2851 1999-03-10 Tom Tromey <tromey@cygnus.com>
2853 * java/text/ChoiceFormat.java (parse): Wrote.
2855 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2857 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2858 Create ChoiceFormat objects.
2859 (format): Special-case ChoiceFormat.
2860 (scanFormatElement): Include { and } in generated style string.
2862 1999-03-09 Tom Tromey <tromey@cygnus.com>
2864 * java/text/ChoiceFormat.java: New file.
2866 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2868 * java/net/BindException.java: Created.
2869 * java/net/ConnectException.java: Created.
2870 * java/net/ContentHandler.java: Created.
2871 * java/net/ContentHandlerFactory.java: Created.
2872 * java/net/FileNameMap.java: Created.
2873 * java/net/MalformedURLException.java: Created.
2874 * java/net/NoRouteToHostException.java: Created.
2875 * java/net/ProtocolException.java: Created.
2876 * java/net/ServerSocket.java (@author): Fixed typo.
2877 * java/net/Socket.java (@author): Fixed typo.
2878 * java/net/SocketImpl.java (@author): Fixed typo.
2879 * java/net/SocketImplFactory.java (@author): Fixed typo.
2880 * java/net/URL.java: Created - nearly complete.
2881 * java/net/URLConnection.java: Created - near-empty stub.
2882 * java/net/URLStreamHandler.java: Created - incomplete stub.
2883 * java/net/URLStreamHandlerFactory.java: Created.
2884 * java/net/UnknownServiceException.java: Created.
2886 1999-03-09 Tom Tromey <tromey@cygnus.com>
2888 * java/lang/System.java (ForwardingInputStream): New class.
2889 (ForwardingOutputStream): Likewise.
2890 (in, out, err): Now `final' forwarding streams.
2891 (setIn, setOut, setErr): Use appropriate method on forwarding
2894 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2897 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2899 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2900 * java/util/zip/Checksum.java: New interface (complete).
2901 * java/util/zip/Deflater.java: New class (near-empty stub).
2902 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2903 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2904 * java/util/zip/ZipEntry.java: New class (complete).
2905 * java/util/zip/ZipException.java: New class (complete).
2906 * java/util/zip/ZipFile.java: New class (incomplete stub).
2907 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2909 1999-03-09 Tom Tromey <tromey@cygnus.com>
2911 * java/text/MessageFormat.java (MessageFormatElement): Removed
2912 `public' specifiers.
2914 * java/text/DecimalFormat.java (scanFormat): Increment index
2915 before processing exponential format. Fixed a couple typos in
2917 (format): Correct normalization of exponent.
2919 1999-03-08 Tom Tromey <tromey@cygnus.com>
2921 * java/text/SimpleDateFormat.java (parse): Throw
2922 IllegalArgumentException, not ParseException.
2924 1999-03-05 Tom Tromey <tromey@cygnus.com>
2926 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2927 when constructing DateFormatSymbols. Initialize numberFormat
2928 field of superclass.
2930 * java/text/DateFormat.java (equals): Rewrote.
2931 (getAvailableLocales): New method.
2932 (getDateInstance): New methods.
2933 (getDateTimeInstance): Likewise.
2934 (getTimeInstance): Likewise.
2935 (getInstance): New method.
2936 (computeInstance): New method.
2938 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2940 (safeGetResource): New method.
2941 (DateFormatSymbols): Use Locale paramater.
2942 (equals): Now protected.
2943 Made instance variables private.
2945 1999-03-04 Tom Tromey <tromey@cygnus.com>
2947 * java/text/DecimalFormat.java: New file.
2949 * java/text/NumberFormat.java (groupingUsed,
2950 maximumFractionDigits, maximumIntegerDigits,
2951 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2953 (setDecimalSeparatorAlwaysShown, setMultiplier,
2954 setPositivePrefix): Removed.
2955 (setMinimumFractionDigits, setMaximumFractionDigits):
2957 (format): Now final.
2958 Added many new methods.
2960 * Makefile.in: Rebuilt.
2961 * Makefile.am (gnu_files): New macro.
2962 (java_files): Added gnu_files.
2963 (class_gnu_files): New macro.
2964 (class_files): Use it.
2965 (src_gnu_files): New macro.
2966 (gnu.o): New target.
2967 (javao_files): Added gnu.o.
2969 * gnu/gcj/text/LocaleData_en_US.java: New file.
2970 * gnu/gcj/text/LocaleData_en.java: New file.
2971 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2972 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2973 (safeGetString): New method.
2974 (safeGetChar): Likewise.
2976 1999-03-03 Tom Tromey <tromey@cygnus.com>
2978 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2981 * java/text/FieldPosition.java (equals): Don't check for null
2982 object; instanceof does this.
2984 * java/util/Locale.java (clone): New method.
2987 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2989 * doc/cni.sgml: New file.
2991 1999-03-03 Tom Tromey <tromey@cygnus.com>
2993 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2995 * java/text/DecimalFormatSymbols.java: New file.
2997 1999-03-02 Tom Tromey <tromey@cygnus.com>
2999 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
3001 * configure: Rebuilt.
3002 * configure.in: Check for sys/filio.h.
3004 * java/lang/Runtime.java (checkLink): Throw NullPointerException
3006 (load): Always throw UnsatisfiedLinkError.
3007 (loadLibrary): Likewise.
3009 1999-03-02 Anthony Green <green@cygnus.com>
3011 * LIBGCJ_LICENSE: New file.
3012 * LIBJAVA_LICENSE: Removed.
3013 * Many files: libjava now libgcj.
3015 1999-03-02 Tom Tromey <tromey@cygnus.com>
3017 * include/java-chartables.h: Rebuilt.
3018 * chartables.pl (print_block): Make table `const'.
3019 (print_numerics): Likewise.
3020 (print_single_map): Likewise.
3021 (print_all_block): Likewise.
3022 (print_case_table): Likewise.
3023 (print_fast_tables): Likewise.
3024 * java/lang/natCharacter.cc (table_search): `table' argument now
3027 1999-03-01 Tom Tromey <tromey@cygnus.com>
3029 * java/util/Date.java (before, after): Inverted logic.
3031 * java/util/Date.java (parse): Handle case where first character
3032 in string is open parenthesis.
3033 (skipParens): Rewrote.
3035 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
3036 * java/lang/reflect/natField.cc: Include <stdlib.h>.
3038 * java/util/Date.java (parse): Correctly compute beginning of
3041 * java/util/Hashtable.java (get): Throw NullPointerException if
3043 (containsKey): Likewise.
3045 * java/util/Properties.java (list): Truncate value to 37
3046 characters and add `...'.
3048 * java/lang/Byte.java (parseByte): Pass `radix' to
3051 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
3053 Include System.h, PrintStream.h.
3055 * java/lang/natSystem.cc (init_properties): Don't use malloc,
3058 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
3060 * configure: Rebuilt.
3061 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
3064 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
3066 * java/lang/SecurityManager.java: Import java.net.*.
3067 (checkMulticast): New methods.
3069 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
3071 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
3072 (nat_files): Add java/lang/reflect/natArray.o.
3073 (nat_headers): Add Field.h and NoSuchFieldException.h.
3075 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
3076 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
3077 (_Jv_FromReflectedField): Fix buglet.
3078 * include/jvm.h (_Jv_NewMultiArray): New declaration.
3079 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
3080 * prims.cc (_Jv_Abort): Include message in print-out.
3082 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3083 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3084 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3086 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3087 * include/config.h.in (HAVE_PWD_H): New feature macro.
3088 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3089 user.name, user.home, user.dir.
3091 * java/lang/reflect/Array.java: New class.
3092 * java/lang/reflect/natArray.cc: New native methods.
3093 * include/javaprims.h: Declare java::lang::reflect::Array.
3095 * java/lang/Class.h (getField): New private method. Add friends.
3096 * java/lang/Class.java (getField): Add private overload.
3097 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3098 getDeclaredMethods): Add working implementations.
3099 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3100 Finish implementation, except for access control.
3102 * java/lang/reflect/Modifier.java (toString): New overload.
3103 * include/java-method.h: New file.
3104 * java/lang/reflect/Method.java (index): Replaced by offset field.
3105 Remove various private fields - get them from _Jv_Field instead.
3106 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3107 New method implementations.
3109 * java/text/NumberFormat.java: Add a bunch of methods.
3111 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3113 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3115 1999-02-26 Tom Tromey <tromey@cygnus.com>
3117 * include/config.h.in: Rebuilt.
3118 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3119 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3120 HAVE_GETHOSTBYADDR_R): New defines.
3121 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3122 gethostbyaddr_r if available.
3124 * configure: Rebuilt.
3125 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3127 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3131 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3132 * prims.cc (_Jv_AllocBytesChecked): New function.
3134 * Makefile.in: Rebuilt.
3135 * Makefile.am (SUBDIRS): Removed `test'.
3136 * configure: Rebuilt.
3137 * configure.in: Don't build test/Makefile.
3138 * test/*: Removed all files.
3140 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3142 * java/lang/reflect/Constructor.java: Make class final to match spec.
3143 * java/lang/reflect/Method.java: Ditto.
3145 1999-02-25 Tom Tromey <tromey@cygnus.com>
3147 * java/net/natInetAddress.cc: Include <sys/types.h> before
3149 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3152 * java/net/natInetAddress.cc: Declare gethostname if required.
3153 * include/config.h.in: Rebuilt.
3154 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3155 * configure: Rebuilt.
3156 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3157 declared in unistd.h.
3159 1999-02-24 Tom Tromey <tromey@cygnus.com>
3161 * Makefile.in: Rebuilt.
3162 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3163 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3164 from private to "none".
3166 * include/javaprims.h: Regenerated class declarations with new
3168 * classes.pl (scan): Only generate decls for java.lang, java.io,
3171 1999-02-24 Tom Tromey <tromey@cygnus.com>
3173 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3174 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3176 1999-02-23 Tom Tromey <tromey@cygnus.com>
3178 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3179 not already defined.
3180 * java/io/natFile.cc (_REENTRANT): Only define if not already
3182 * include/config.h.in: Rebuilt.
3183 * acconfig.h (HAVE_BOEHM_GC): New define.
3184 * configure: Rebuilt.
3185 * configure.in: Define HAVE_BOEHM_GC if using it.
3186 * posix-threads.cc: Include boehm-config.h and gc.h if
3188 * include/posix-threads.h: Added explanatory note about Boehm GC.
3190 * java/io/BufferedReader.java (readLine): Only return null when
3191 EOF seen before any characters read. (In particular, an empty
3192 line should not return null.)
3194 * java/io/BufferedInputStream.java (read): Only refill once per
3197 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3198 java.lang.Character.classify12, java.lang.String.hash,
3199 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3200 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3202 * java/text/StringCharacterIterator.java (setIndex): No error if
3204 (next): Check for `pos == end', not `end - 1'.
3205 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3206 for null text in each constructor.
3207 (clone): Fixed order of arguments to constructor.
3209 1999-02-22 Tom Tromey <tromey@cygnus.com>
3211 * include/config.h.in: Rebuilt.
3212 * acconfig.h (HAVE_INET6): New define.
3213 (HAVE_SOCKLEN_T): Likewise.
3214 * java/net/PlainSocketImpl.java: Added copyright header.
3215 * java/net/natPlainSocketImpl.cc: Added copyright header.
3216 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3218 (connect): Likewise.
3220 (socklen_t): New typedef.
3221 (accept): Use socklen_t.
3222 * java/net/natInetAddress.cc: Added copyright header.
3223 (HAVE_GETHOSTNAME): Don't define.
3224 (HAVE_INET_ADDR): Likewise.
3225 (lookup): Fixed typo.
3226 (aton): Don't use `address' as name of local variable.
3227 (lookup): Use HAVE_INET6, not AF_INET6.
3229 * configure: Rebuilt.
3230 * configure.in: Look for functions inet_aton, inet_addr,
3231 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3232 Check for socklen_t typedef.
3234 * exception.cc (__throw): Declare as __noreturn__.
3236 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3238 * Makefile.am, Makefile.in: Also build java/net.
3239 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3241 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3242 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3244 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3245 * include/cni.h (JvMalloc, JvFree): New inline functions.
3246 (JvThrow): Add __noreturn__ attribute.
3247 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3248 (_Jv_Throw): Add __noreturn__ attribute.
3250 * java/net/PlainSocketImpl.java: Init fnum to -1.
3251 * java/net/ServerSocket.java: Add missing throws clauses.
3252 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3253 don't call create on the latter. Instead, other constructors
3254 have to explicitly call SocketImpl.create.
3255 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3256 from size_t to int, to match ::accept prototype.
3257 * java/net/natInetAddress.cc: Use JvFree rather than free.
3260 1999-02-22 Tom Tromey <tromey@cygnus.com>
3262 * include/javaprims.h: Added new classes.
3263 * java/text/StringCharacterIterator.java: New file.
3264 * java/text/CharacterIterator.java: New file.
3266 * java/text/ParseException.java (errorOffset): Now private.
3268 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3270 * java/net: New package.
3271 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3272 Socket.java,SocketException.java,SocketImpl.java,
3273 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3274 natPlainSocketImpl.cc}: New classes.
3276 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3277 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3278 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3279 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3281 * classes.pl: Translate package into "namespace", not "class".
3282 * include/javaprims.h: Update class list, using "namespace".
3284 1999-02-21 Tom Tromey <tromey@cygnus.com>
3286 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3287 Define when appropriate.
3289 1999-02-20 Tom Tromey <tromey@cygnus.com>
3291 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3292 as a single byte and \u07ff as two bytes.
3293 (_Jv_GetStringUTFLength): Likewise.
3294 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3295 with 0x0f, not 0x1f.
3297 1999-02-19 Tom Tromey <tromey@cygnus.com>
3299 * java/io/DataOutputStream.java (writeUTF): When encoding
3300 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3301 * java/io/DataInputStream.java (readUTF): Mask second byte of
3302 3-byte character with 0x3f, not 0x1f.
3304 * java/io/DataInputStream.java (readLong): Cast result of
3305 readUnsignedByte to long before using.
3307 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3310 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3311 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3312 argument to avoid warning.
3313 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3314 argument to avoid warning.
3316 1999-02-18 Tom Tromey <tromey@cygnus.com>
3318 * mauve-libjava: Omit java.io.DataInputOutput and
3319 java.io.Utf8Encoding.
3321 1999-02-17 Tom Tromey <tromey@cygnus.com>
3323 * Makefile.in: Rebuilt.
3324 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3325 * java/io/natFileDescriptorPosix.cc: Include
3326 InterruptedIOException.h, Thread.h.
3327 (write): Throw InterruptedIOException when required.
3329 * posix-threads.cc: Include <signal.h>.
3330 (_Jv_ThreadInterrupt): New function.
3332 (handle_intr): New function.
3333 (_Jv_InitThreads): Register handle_intr via sigaction.
3334 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3335 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3336 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3337 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3339 1999-02-19 Andrew Haley <aph@cygnus.com>
3341 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3343 (ThreadGroup (int)): Set the maximum priority of the initial
3346 1999-02-18 Andrew Haley <aph@cygnus.com>
3348 * java/lang/natClass.cc (forName): Check for the case where a
3349 classname is the name of an array and call FindClassFromSignature
3352 1999-02-18 Andrew Haley <aph@cygnus.com>
3354 * java/lang/StringBuffer (insert (int, String)): Move up any
3355 characters above the insert position and increase the length of
3356 the string buffer by the length of the argument.
3357 (insert (int, char[])): Likewise.
3358 (insert (int, char)): Likewise.
3359 (StringBuffer (String)): The initial capacity of the string buffer
3360 is 16 plus the length of the argument.
3361 (getChars): Add a JDK 1.2 FIXME.
3363 1999-02-18 Andrew Haley <aph@cygnus.com>
3365 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3368 1999-02-18 Andrew Haley <aph@cygnus.com>
3370 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3371 instead of floating-point equality. This is necessary for
3372 correct floating-point Hashtables.
3373 * java/lang/Float.java (equals): Ditto.
3375 1999-02-16 Tom Tromey <tromey@cygnus.com>
3377 * java/util/Properties.java (list): Truncate value to 37
3378 characters and add "...".
3380 1999-02-16 Tom Tromey <tromey@cygnus.com>
3382 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3383 if initCap is negative.
3384 (contains): Implement JDK1.2-style handling of null argument.
3385 (removeElement): Likewise.
3386 (indexOf): Likewise. Also, correctly handle case where idx is
3388 (lastIndexOf): Likewise.
3390 1999-02-16 Tom Tromey <tromey@cygnus.com>
3392 * java/lang/natString.cc (init): Increment source pointer in
3395 1999-02-16 Tom Tromey <tromey@cygnus.com>
3397 * exception.cc: Include NullPointerException.h.
3398 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3400 1999-02-16 Tom Tromey <tromey@cygnus.com>
3402 * Makefile.in: Rebuilt.
3403 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3405 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3407 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3408 we're compiling canadian.
3409 * configure: Regenerated.
3411 1999-02-12 Andrew Haley <aph@cygnus.com>
3413 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3414 deleted from libgcj.
3416 1999-02-12 Tom Tromey <tromey@cygnus.com>
3418 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3419 (_Jv_eh_free): Don't call free.
3420 Don't declare malloc or free.
3422 1999-02-11 Tom Tromey <tromey@cygnus.com>
3424 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3426 1999-02-11 Andrew Haley <aph@cygnus.com>
3428 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3429 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3430 needed by java.lang.*.
3431 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3432 wf_fmod.o: Removed from libjava.a.
3434 1999-02-11 Tom Tromey <tromey@cygnus.com>
3436 * include/javaprims.h: Reverted previous change; with it
3437 exception.cc can't compile.
3439 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3441 * include/config.h.in: Rebuilt.
3442 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3444 * configure: Rebuilt.
3445 * configure.in: Check for sched_yield. Look in thread library for
3446 all thread functions.
3448 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3449 no recursive mutexes.
3450 (_Jv_MutexDestroy): Define when required.
3451 (_Jv_MutexLock): Likewise.
3452 (_Jv_MutexUnlock): Likewise.
3453 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3454 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3455 (_Jv_Mutex_t): New structure.
3456 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3457 (_Jv_MutexLock): Likewise.
3458 (_Jv_MutexUnlock): Likewise.
3460 1999-02-10 Tom Tromey <tromey@cygnus.com>
3462 * aclocal.m4, configure, Makefile.in: Rebuilt.
3463 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3465 * configure.in: Changed to track library changes.
3466 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3467 (AM_CXXFLAGS): Likewise.
3468 (data_DATA): Likewise.
3469 (AM_CFLAGS): Likewise.
3470 (JC1FLAGS): Likewise.
3471 (libgcj_a_SOURCES): Likewise.
3472 (EXTRA_libgcj_a_SOURCES): Likewise.
3473 (libgcj_a_DEPENDENCIES): Likewise.
3474 (libgcj_a_LIBADD): Likewise.
3475 (libgcj.zip): Likewise.
3476 (CLEANFILES): Likewise.
3477 ($(nat_headers)): Likewise.
3478 (java/lang/FirstThread.h): Likewise.
3479 (java/lang/ThreadGroup.h): Likewise.
3480 (java/lang/String.h): Likewise.
3481 (java/lang/reflect/Field.h): Likewise.
3482 (BUILT_SOURCES): Likewise.
3483 (maintainer-check): Likewise.
3484 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3485 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3487 * java/util/natGregorianCalendar.cc (computeFields): Only use
3488 gmtime_r and localtime_r when configured for posix threads.
3490 * java/io/natFile.cc (get_entry): Only use readdir_r when
3491 configured for posix threads.
3493 * java/util/natGregorianCalendar.cc: Update copyright notice.
3494 * java/util/TimeZone.java: Ditto.
3495 * java/util/SimpleTimeZone.java: Ditto.
3497 1999-02-08 Tom Tromey <tromey@cygnus.com>
3499 * java/io/PrintStream.java (line_separator): New constant.
3500 (print): Use line_separator, not `file.separator' property.
3501 (println): Use line_separator.
3503 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3504 when trying to instantiate Class.
3506 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3507 NullPointerException if argument is null.
3509 * java/lang/Thread.java (setName): Throw NullPointerException, not
3510 IllegalArgumentException.
3513 1999-02-08 Andrew Haley <aph@cygnus.com>
3515 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3516 create new Classes with Class.newInstance().
3518 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3519 semiciolon to end of an array Class's signature if the elements of
3520 the array aren't themselves arrays.
3522 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3523 array of objects is always sizeof(jobject), not the size of the
3524 object to which the reference points.
3526 1999-02-08 Tom Tromey <tromey@cygnus.com>
3528 * java/util/BitSet.java (and): Throw NullPointerException when
3533 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3534 if argument is negative.
3535 (clear): Correctly compute `offset'. Throw
3536 IndexOutOfBoundsException when required.
3538 (get): Likewise. Also, return correct value.
3539 (ensure): Changed meaning of argument.
3540 (toString): Wrap contents in `{}'; put spaces after commas.
3541 (hashCode): Don't try to examine elements off the end of array.
3542 (or): Correctly include bits past the end of this bit set.
3545 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3547 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3548 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3550 1999-02-04 Andrew Haley <aph@cygnus.com>
3552 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3553 '/' in signatures to '.'
3554 (Class::getName): Likewise,
3555 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3557 * java/lang/natFirstThread.cc (run): Change '/' in main's
3560 1999-02-03 Andrew Haley <aph@cygnus.com>
3562 * configure.host: -ffloat-store added when compiling libjava on
3563 x86. fdlibm apparently relies on this.
3565 * java/lang/ThreadGroup.java (add): throw an exception if the
3566 ThreadGroup has been destroyed.
3568 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3571 1999-01-27 Tom Tromey <tromey@cygnus.com>
3573 * java/lang/StringBuffer.java (StringBuffer): Handle null
3576 1999-01-21 Tom Tromey <tromey@cygnus.com>
3578 * java/lang/natFirstThread.cc (run): Don't require main to be
3581 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3583 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3585 1999-01-20 Tom Tromey <tromey@cygnus.com>
3587 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3591 (unintern): Likewise.
3592 (_Jv_NewStringUtf8Const): Likewise.
3594 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3595 Character.isLetter, to see if character is self-quoting. Also,
3596 correctly handle quoted characters.
3597 (parse): Fixed typo. Also now throws ParseException.
3599 1999-01-15 Tom Tromey <tromey@cygnus.com>
3601 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3603 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3604 _Jv_SyncInfo has `init' member.
3606 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3609 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3610 IllegalMonitorStateException if unlock fails.
3612 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3614 (_Jv_NewObjectArray): Likewise.
3616 1999-01-14 Tom Tromey <tromey@cygnus.com>
3618 * java/lang/Character.java (isJavaIdentifierPart): Allow
3619 LETTER_NUMBER characters.
3621 * chartables.pl (process_char): Fixed error messages.
3623 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3624 * chartables.pl: Updated comments. Changed detection of non-digit
3625 numeric values (no longer miss \u00b2 and friends).
3627 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3628 currency symbols and connector punctuation.
3629 (isIdentifierIgnorable): Make 7f-9f ignorable.
3631 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3632 (_Jv_NewPrimArray): Likewise.
3633 (SIZE_T_MAX): New define.
3635 * java/lang/ClassLoader.java (system): Now private and final.
3637 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3640 * configure: Rebuilt.
3641 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3643 * exception.cc: Include gansidecl.h.
3645 1999-01-14 Andrew Haley <aph@cygnus.com>
3647 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3648 corrected: they didn't treat -0.0 and NaNs correctly.
3650 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3652 * nogc.cc: Use calloc to zero out memory.
3654 1999-01-11 Tom Tromey <tromey@cygnus.com>
3656 * java/lang/natClass.cc (isInstance): Return false if this class
3657 is primitive, not if class of `obj' is primitive.
3658 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3660 * java/io/SequenceInputStream.java (close): Handle case where `in'
3663 * java/text/DateFormat.java (format): New method.
3665 * mauve-libjava: Omit java.text.DateFormat.
3667 1999-01-08 Tom Tromey <tromey@cygnus.com>
3669 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3671 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3673 (_Jv_CondNotifyAll): Likewise.
3675 * configure: Rebuilt.
3676 * configure.in: Change --enable-source-compilation logic to work
3679 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3681 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3682 and RUNTESTFLAGS from AM_MAKEFLAGS.
3683 * configure.in: AM_RUNTESTFLAGS added.
3684 * configure.host: AM_RUNTESTFLAGS added.
3685 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3686 * configure: rebuilt.
3687 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3689 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3690 argv[] made conditional because embedded targets may not have
3692 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3693 explanatory comments added in call to super.
3695 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3696 exception thrown in the test harness itself added.
3697 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3699 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3701 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3703 1999-01-06 Tom Tromey <tromey@cygnus.com>
3705 * java/io/natFile.cc (get_entry): New function.
3706 (performList): Use get_entry.
3707 * include/config.h.in: Rebuilt.
3708 * acconfig.h (HAVE_READDIR_R): New define.
3709 * configure: Rebuilt.
3710 * configure.in: Look for readdir_r.
3712 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3714 * java/util/natDate.cc: Added copyright header.
3716 1999-01-05 Tom Tromey <tromey@cygnus.com>
3718 * include/config.h.in: Rebuilt.
3719 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3720 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3721 * configure: Rebuilt.
3722 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3723 unlink, and realpath.
3724 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3725 (stat): Conditionalize on HAVE_STAT.
3727 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3728 (performMkdir): Conditionalize on HAVE_MKDIR.
3729 (performRenameTo): Conditionalize on HAVE_RENAME.
3730 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3732 * include/config.h.in: Rebuilt.
3733 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3734 * configure: Rebuilt.
3735 * configure.in: Check for gmtime_r and localtime_r. For cross
3736 builds, assume they exist.
3738 * mauve-libjava: Include java.text.DateFormatSymbols again.
3739 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3740 from setAmPmStrings.
3742 * mauve-libjava: Omit java.text.DateFormatSymbols.
3744 1999-01-04 Tom Tromey <tromey@cygnus.com>
3746 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3748 * java/io/LineNumberReader.java (read): Decrement `count' in
3751 * java/io/BufferedWriter.java (write): Correctly determine when
3752 incoming data would overrun buffer. Flush buffer if write causes
3755 * java/io/BufferedOutputStream.java (write): Increment `count'
3756 after copying data into buffer.
3758 * java/io/FilterOutputStream.java (close): Call flush first.
3760 * java/io/PipedReader.java (read): If read causes `out' to catch
3761 up with `in', then set `in' to -1.
3763 * java/io/LineNumberInputStream.java (read): If no bytes read,
3764 return -1. If no bytes requested, return 0.
3766 * java/lang/StringBuffer.java (insert): If `str' is null, use
3769 1998-12-30 Anthony Green <green@cygnus.com>
3772 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3774 1998-12-23 Tom Tromey <tromey@cygnus.com>
3776 * java/io/PushbackInputStream.java (read): `off' already includes
3779 1998-12-17 Tom Tromey <tromey@cygnus.com>
3781 * Makefile.in: Rebuilt.
3782 * Makefile.am (GCJ_canadian): Include target_alias.
3784 * java/lang/natFirstThread.cc (run): Require main's class to be
3787 1998-12-16 Tom Tromey <tromey@cygnus.com>
3789 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3791 * java/util/ResourceBundle.java (getBundle): Throw
3792 NullPointerException if locale argument is null.
3794 * java/lang/natClass.cc (forName): Throw NullPointerException if
3796 Include NullPointerException.h.
3798 1998-12-14 Tom Tromey <tromey@cygnus.com>
3800 * java/lang/Character.java (Character): Implement Comparable.
3801 (compareTo): New methods.
3803 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3804 correct country and language codes.
3805 (UK, US): New constants.
3806 (setDefault): Language codes are lower-case.
3808 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3809 (getDeclaredConstructors): Likewise.
3810 (getDeclaredField): Likewise.
3811 (getDeclaredFields): Likewise.
3812 (getDeclaredMethod): Likewise.
3813 (getDeclaredMethods): Likewise.
3814 (getField): Likewise.
3815 (getFields): Likewise.
3816 (getMethod): Likewise.
3817 (getMethods): Likewise.
3818 * java/lang/Class.java: Declare new methods.
3819 * java/lang/Class.h: Declare new methods.
3821 * java/lang/natString.cc: Removed `#pragma implementation'.
3822 * include/cni.h (_Jv_GetStringChars): New function.
3823 * Makefile.in: Rebuilt.
3824 * Makefile.am (java/lang/String.h): Don't generate definition for
3827 * java/lang/natString.cc: Added `#pragma implementation'.
3829 * Makefile.in: Rebuilt.
3830 * Makefile.am (libjava.zip): Put build directory first in class
3831 path to avoid bug in compiler.
3833 1998-12-14 Anthony Green <green@cygnus.com>
3835 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3837 * include/javaprims.h: Add EventObject, ListResourceBundle and
3840 1998-12-13 Anthony Green <green@cygnus.com>
3842 * mauve-libjava: Run the ResourceBundle tests.
3844 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3847 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3849 * configure.in, configure: Make --enable-gcj-classes and
3850 --enable-source-compilation the default. (Nervously...) Yeah!
3851 Based on a patch from Tom Tromey.
3853 1998-12-13 Tom Tromey <tromey@cygnus.com>
3855 * java/util/EventObject.java: New file.
3856 * java/util/EventListener.java: New file.
3858 * include/javaprims.h: Updated class declarations.
3859 * Makefile.in: Rebuilt.
3860 * Makefile.am (nat_headers): Added Constructor.h.
3861 (java/lang/String.h): Don't inline String::length().
3862 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3863 * java/lang/Class.java (initializeClass, hackRunInitializers,
3864 hackTrampoline): No need to mark `final'.
3865 (getConstructor, getConstructors): Declare.
3866 * java/lang/reflect/Field.java (equals): New method.
3867 * java/lang/natClass.cc (getConstructor): New method.
3868 (getConstructors): Likewise.
3869 Include Method.h, Field.h, Constructor.h.
3870 * java/lang/reflect/Constructor.java: New file.
3871 * java/lang/reflect/Method.java (toString): No space before open
3873 (equals): Simplified.
3875 1998-12-13 Anthony Green <green@cygnus.com>
3877 * java/util/ResourceBundle.java: New file.
3878 * java/util/ListResourceBundle.java: New file.
3880 1998-12-12 Tom Tromey <tromey@cygnus.com>
3882 * java/lang/System.java (in, out, err): Now buffered streams by
3885 * include/javaprims.h: Updated class declarations.
3886 * Makefile.in: Rebuilt.
3887 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3888 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3890 (nat_files): Added natMethod.o.
3891 * java/lang/reflect/natMethod.cc: New file.
3892 * java/lang/reflect/Field.java (Field): Now extends
3894 * java/lang/reflect/AccessibleObject.java: New file.
3895 * java/lang/reflect/InvocationTargetException.java: New file.
3897 1998-12-11 Tom Tromey <tromey@cygnus.com>
3899 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3900 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3901 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3903 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3905 1998-12-09 Tom Tromey <tromey@cygnus.com>
3907 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3910 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3911 character is already titlecase.
3913 * java/lang/Character.java (isJavaLetter): Follow spec.
3914 (isJavaLetterOrDigit): Likewise.
3916 * java/util/GregorianCalendar.java (gregorianCutover): Append
3919 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3921 1998-12-08 Tom Tromey <tromey@cygnus.com>
3923 * java/lang/reflect/Modifier.java (toString): Replace second
3924 `static' with `synchronized'.
3926 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3927 * java/lang/Object.h (Object::hack12_6): Declare.
3928 * java/lang/Object.java (hack12_6): New function.
3930 1998-12-07 Tom Tromey <tromey@cygnus.com>
3932 * include/java-array.h (__JArray::clone): Removed decl.
3933 * prims.cc (__JArray::clone): Removed.
3934 * java/lang/natObject.cc (clone): Incorporate code to clone an
3937 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3938 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3939 Correctly use dtable_method_count.
3941 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3943 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3946 1998-12-06 Anthony Green <green@cygnus.com>
3948 * mauve-libjava: Don't test ResourceBundle.
3950 1998-12-04 Tom Tromey <tromey@cygnus.com>
3952 More JDK 1.2 spec fixes:
3953 * java/util/Date.java (millis): Now private.
3954 * java/text/DateFormat.java (DateFormat): Constructor now
3956 * java/lang/Void.java (Void): New private constructor.
3957 * java/lang/System.java (System): New private constructor.
3958 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3960 (currentClassLoader): New method.
3961 (currentLoadedClass): New method.
3962 * java/lang/Math.java (Math): New private constructor.
3963 * java/lang/Compiler.java (Compiler): New private constructor.
3964 * java/lang/Class.java (Class): New private constructor.
3965 * java/lang/Double.java (toString): Removed access specifier from
3966 two-argument `toString' method.
3968 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3970 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3971 causes it to be flushed from an fp register (where it may be
3972 longer than double precision) to a double in memory. This is
3973 essential to ensure correct rounding behaviour.
3975 1998-12-04 Tom Tromey <tromey@cygnus.com>
3977 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3980 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3981 explaining apparent divergence from JDK 1.2.
3983 1998-12-04 Per Bothner <bothner@cygnus.com>
3985 * include/no-threads.h: Remove unused parameter names.
3986 This silences a bunch of warnings.
3988 1998-12-04 Tom Tromey <tromey@cygnus.com>
3990 * include/config.h.in: Rebuilt.
3991 * acconfig.h (HAVE_CTIME_R): New symbol.
3993 1998-12-03 Tom Tromey <tromey@cygnus.com>
3995 * mauve-libjava: Added many more categories to reject.
3997 Changes to follow JDK1.2 spec:
3998 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3999 setErr, setIn, setOut): No need to be `final'.
4000 * java/lang/natObject.cc (wait): `nanos' argument is an int.
4001 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
4002 * java/lang/Object.java (wait): `nanos' argument is an int.
4003 * java/lang/VirtualMachineError.java: Class is abstract.
4004 * java/lang/ThreadDeath.java: Made constructors public.
4005 * java/io/FileDescriptor.java (FileDescriptor): Added missing
4008 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
4010 * java/text/DateFormatSymbols.java (getAmPmStrings,
4011 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
4013 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
4015 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
4016 writeDouble, writeByte, writeBytes, writeChar, writeChars,
4017 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
4020 * java/lang/IllegalThreadStateException.java
4021 (IllegalThreadStateException): Changed extending class to match spec.
4023 * java/lang/NumberFormatException.java
4024 (java/lang/NumberFormatException): Changed extending class to match
4027 * java/util/Observer.java (Observer): Changed sig to match JCL.
4029 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
4031 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
4032 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
4033 signature to match JDK 1.1 and 1.2.
4035 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
4037 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
4038 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
4039 * Makefile.in, configure: Rebuilt.
4041 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
4044 1998-12-02 Tom Tromey <tromey@cygnus.com>
4046 * mauve-libjava: New file.
4048 The remaining `-W -Wall' fixes:
4049 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
4051 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
4053 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
4055 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
4057 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
4059 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
4061 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
4063 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
4065 * java/lang/mprec.c (Balloc): Removed unused variable.
4066 (mult): Added parentheses per gcc suggestion.
4067 (pow5mult): Likewise.
4072 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
4073 suggestion. Added cast to `int' to avoid signed/unsigned
4075 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
4077 (IsAssignableFrom): Likewise.
4078 (_Jv_JNI_GetObjectField): Likewise.
4079 (_Jv_JNI_GetByteField): Likewise.
4080 (_Jv_JNI_GetShortField): Likewise.
4081 (_Jv_JNI_GetIntField): Likewise.
4082 (_Jv_JNI_GetLongField): Likewise.
4083 (_Jv_JNI_GetStringLength): Likewise.
4084 (_Jv_JNI_ToReflectedField): Likewise.
4085 (_Jv_JNI_FromReflectedField): Likewise.
4086 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4088 * Makefile.in: Rebuilt.
4089 * Makefile.am (AM_CFLAGS): Define conditionally.
4090 (WARNINGS): New macro.
4091 (AM_CXXFLAGS): Include WARNINGS.
4092 * configure: Rebuilt.
4093 * configure.in (USING_GCC): New conditional.
4095 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4097 * java/lang/Character.java: Changed classification constants to
4098 type `byte' to match JDK 1.2 docs.
4100 1998-12-01 Tom Tromey <tromey@cygnus.com>
4102 Some fixes to be `-W -Wall' clean:
4103 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4104 (_Jv_MarkArray): Likewise.
4105 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4106 (to_upper_title): Likewise.
4107 (isTitleCase): Likewise.
4108 (toTitleCase): Likewise.
4109 (getNumericValue): Likewise.
4110 (isLowerCase): Likewise.
4111 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4112 (avoids compiler warning).
4113 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4115 (getDeclaringClass): Likewise.
4116 (_Jv_LookupInterfaceMethod): Likewise.
4117 (_Jv_NewClass): Removed name of unused parameter.
4118 * exception.cc (_Jv_type_matcher): Removed unused variable.
4119 (_Jv_setup_eh_info): Removed name of unused parameter.
4120 * prims.cc (_Jv_NewArray): Always return a value.
4121 (_Jv_FindClassFromSignature): Likewise.
4122 * include/java-field.h (getNameUtf8Const): Removed name of unused
4124 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4126 (_Jv_ThreadSetPriority): Likewise.
4128 * java/lang/natString.cc (hashChars): Now static.
4130 * java/lang/FirstThread.java (FirstThread): Now final.
4132 * java/io/File.java (performMkdir, performRenameTo): Now private.
4134 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4135 if no time function defined.
4137 * configure: Rebuilt.
4138 * configure.in: Look for ctime_r, ctime.
4139 * java/util/Date.java (toString): Now native.
4140 * java/util/natDate.cc (toString): Rewrote.
4142 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4144 * Add LDFLAGS line to allow TX39 test cases to link when cross
4147 1998-11-23 Anthony Green <green@cygnus.com>
4149 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4150 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4151 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4152 include/java-array.h, include/java-assert.h, include/java-field.h,
4153 include/javaprims.h, include/jni.h, include/jvm.h,
4154 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4155 include/quick-threads.h, java/io/BufferedInputStream.java,
4156 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4157 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4158 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4159 java/io/CharArrayWriter.java,
4160 java/io/CharConversionException.java, java/io/DataInput.java,
4161 java/io/DataInputStream.java, java/io/DataOutput.java,
4162 java/io/DataOutputStream.java, java/io/EOFException.java,
4163 java/io/File.java, java/io/FileDescriptor.java,
4164 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4165 java/io/FileOutputStream.java, java/io/FileReader.java,
4166 java/io/FileWriter.java, java/io/FilenameFilter.java,
4167 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4168 java/io/FilterReader.java, java/io/FilterWriter.java,
4169 java/io/IOException.java, java/io/InputStream.java,
4170 java/io/InputStreamReader.java,
4171 java/io/InterruptedIOException.java,
4172 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4173 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4174 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4175 java/io/PipedReader.java, java/io/PipedWriter.java,
4176 java/io/PrintStream.java, java/io/PrintWriter.java,
4177 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4178 java/io/RandomAccessFile.java, java/io/Reader.java,
4179 java/io/SequenceInputStream.java, java/io/Serializable.java,
4180 java/io/StreamTokenizer.java,
4181 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4182 java/io/StringWriter.java, java/io/SyncFailedException.java,
4183 java/io/UTFDataFormatException.java,
4184 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4185 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4186 java/io/natFileDescriptorPosix.cc,
4187 java/lang/AbstractMethodError.java,
4188 java/lang/ArithmeticException.java,
4189 java/lang/ArrayIndexOutOfBoundsException.java,
4190 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4191 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4192 java/lang/Class.java, java/lang/ClassCastException.java,
4193 java/lang/ClassCircularityError.java,
4194 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4195 java/lang/ClassNotFoundException.java,
4196 java/lang/CloneNotSupportedException.java,
4197 java/lang/Cloneable.java, java/lang/Comparable.java,
4198 java/lang/Compiler.java, java/lang/Double.java,
4199 java/lang/Error.java, java/lang/Exception.java,
4200 java/lang/ExceptionInInitializerError.java,
4201 java/lang/FirstThread.java, java/lang/Float.java,
4202 java/lang/IllegalAccessError.java,
4203 java/lang/IllegalAccessException.java,
4204 java/lang/IllegalArgumentException.java,
4205 java/lang/IllegalMonitorStateException.java,
4206 java/lang/IllegalStateException.java,
4207 java/lang/IllegalThreadStateException.java,
4208 java/lang/IncompatibleClassChangeError.java,
4209 java/lang/IndexOutOfBoundsException.java,
4210 java/lang/InstantiationError.java,
4211 java/lang/InstantiationException.java, java/lang/Integer.java,
4212 java/lang/InternalError.java, java/lang/InterruptedException.java,
4213 java/lang/LinkageError.java, java/lang/Long.java,
4214 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4215 java/lang/NoClassDefFoundError.java,
4216 java/lang/NoSuchFieldError.java,
4217 java/lang/NoSuchFieldException.java,
4218 java/lang/NoSuchMethodError.java,
4219 java/lang/NoSuchMethodException.java,
4220 java/lang/NullPointerException.java, java/lang/Number.java,
4221 java/lang/NumberFormatException.java, java/lang/Object.h,
4222 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4223 java/lang/Process.java, java/lang/Runnable.java,
4224 java/lang/Runtime.java, java/lang/RuntimeException.java,
4225 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4226 java/lang/Short.java, java/lang/StackOverflowError.java,
4227 java/lang/String.java, java/lang/StringBuffer.java,
4228 java/lang/StringIndexOutOfBoundsException.java,
4229 java/lang/System.java, java/lang/Thread.java,
4230 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4231 java/lang/Throwable.java, java/lang/UnknownError.java,
4232 java/lang/UnsatisfiedLinkError.java,
4233 java/lang/UnsupportedOperationException.java,
4234 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4235 java/lang/Void.java, java/lang/natCharacter.cc,
4236 java/lang/natClass.cc, java/lang/natDouble.cc,
4237 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4238 java/lang/natMath.cc, java/lang/natObject.cc,
4239 java/lang/natRuntime.cc, java/lang/natString.cc,
4240 java/lang/natSystem.cc, java/lang/natThread.cc,
4241 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4242 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4243 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4244 java/text/FieldPosition.java, java/text/Format.java,
4245 java/text/NumberFormat.java, java/text/ParseException.java,
4246 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4247 java/util/BitSet.java, java/util/Calendar.java,
4248 java/util/ConcurrentModificationException.java,
4249 java/util/Date.java, java/util/Dictionary.java,
4250 java/util/EmptyStackException.java, java/util/Enumeration.java,
4251 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4252 java/util/Locale.java, java/util/MissingResourceException.java,
4253 java/util/NoSuchElementException.java, java/util/Observable.java,
4254 java/util/Observer.java, java/util/Properties.java,
4255 java/util/Random.java, java/util/SimpleTimeZone.java,
4256 java/util/Stack.java, java/util/StringTokenizer.java,
4257 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4258 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4261 * exception.cc: Include eh-common.h instead of duplicating
4264 1998-11-23 Tom Tromey <tromey@cygnus.com>
4266 * configure.host: Don't add `-O2' to libjava_flags. Only add
4267 `-Os' to libjava_flags once.
4269 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4271 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4272 * Makefile.in: likewise
4273 * acconfig.h: add ECOS conditional for configure.h
4274 * config.h.in: likewise
4275 * configure: add test for --with-ecos
4276 * configure.in: likewise
4277 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4278 rename call to avoid name clash.
4279 * java/lang/natSystem.cc: add eCos clock support.
4280 * java/util/natGregorianCalendar.cc: add eCos support.
4282 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4284 * Makefile.am, Makefile.in, configure.host: tx39 build option
4287 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4289 * java/io/BufferedReader.java: Added more comments for clarity.
4290 (mark): Used more mnemonic name for local var extraBuffSpace.
4292 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4293 confusion with private method of same name in superclass.
4294 (skipRedundantLF): Set fields in special case to avoid infinite
4295 recursion. Check if markPos has been invalidated in special case.
4296 (readLine): Rewritten to use readLine method of superclass.
4297 (skip): Incorporated code from lineEnd.
4299 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4301 * java/io/BufferedReader.java (readLine): New method.
4302 (lineEnd): new private method.
4303 (mark): Track special case for readLine of getting '\r' at the
4310 * java/io/InputStreamReader.java (read): Return number chars skipped
4311 rather than requested.
4313 * java/lang/StringBuffer.java (append): Update count and differentiate
4314 between field and local variable.
4316 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4317 seconds. Deal with military style time.
4318 (parse): Consistently treat all timezones in minutes until final
4319 calculation. Flag as non-local timezone. Return value in milliseconds.
4320 (setTime): Adjust for year offset from 1900.
4321 (UTC): Adjust for year offset from 1900.
4323 1998-11-17 Tom Tromey <tromey@cygnus.com>
4325 * configure: Rebuilt.
4326 * configure.in: Switch on host, not target.
4328 * Makefile.in: Rebuilt.
4329 * Makefile.am (GCJ_no): New macro.
4330 (GCJ): Use @CANADIAN@.
4331 (GCJH_no): New macro
4332 (GCJH_canadian): New macro.
4333 (GCJH): Use @CANADIAN@.
4334 (ZIP_no): New macro.
4335 (ZIP_canadian): New macro.
4336 (ZIP): Use @CANADIAN@.
4337 * aclocal.m4, configure: Rebuilt.
4338 * configure.in (CANADIAN): Compute and subst.
4340 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4342 * java/io/FileDescriptor.java (finalize): Only close file
4343 descriptor if valid.
4345 1998-11-17 Tom Tromey <tromey@cygnus.com>
4347 * prims.cc (_Jv_InitRuntime): Removed.
4349 1998-11-16 Tom Tromey <tromey@cygnus.com>
4351 * java/io/FileOutputStream.java (close): Only close file
4352 descriptor if valid.
4353 (finalize): New method.
4355 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4356 (_Jv_NewPrimArray): Likewise.
4357 * boehm.cc (_Jv_RegisterFinalizer): Use
4358 GC_REGISTER_FINALIZER_NO_ORDER.
4359 (GC_GENERIC_MALLOC): New define.
4360 (_Jv_AllocObj): Use it.
4361 (_Jv_AllocArray): Likewise.
4362 (_Jv_AllocBytes): Likewise.
4363 (_Jv_MarkObj): Just return if vtbl not set.
4364 (_Jv_MarkArray): Likewise.
4365 (MAYBE_MARK): New macro; use everywhere.
4366 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4368 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4370 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4371 to a jlong before calculation to prevent overflow.
4373 1998-11-16 Tom Tromey <tromey@cygnus.com>
4375 * Makefile.in: Rebuilt.
4376 * Makefile.am (nat_headers): Fixed typo.
4378 1998-11-15 Tom Tromey <tromey@cygnus.com>
4380 * java/lang/Class.h (Class::getName): Removed definition.
4381 * Makefile.in: Rebuilt.
4382 * Makefile.am (nat_headers): Added InstantiationException.h,
4383 NoSuchMethodException.h.
4384 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4385 (init_name): New global.
4386 (hackRunInitializers): Use clinit_name.
4387 Include InstantiationException.h, NoSuchMethodException.h.
4388 (newInstance): Do some error checking (but not all). Call
4390 (forName): Throw exception if class not found.
4391 (getName): New method.
4392 (forName): Transform class name from external format to internal
4393 format before lookup.
4395 1998-11-15 Anthony Green <green@cygnus.com>
4397 * java/lang/Class.h (Class::forName): Method is static.
4399 * java/lang/natClass.cc (newInstance): Add simple implementation.
4402 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4404 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4405 int), for compatibility with jc1.
4407 1998-11-14 Tom Tromey <tromey@cygnus.com>
4409 * include/config.h.in: Rebuilt.
4410 * acconfig.h (LINUX_THREADS): New define.
4411 * configure: Rebuilt.
4412 * configure.in: Define LINUX_THREADS if using POSIX threads on
4413 Linux. Look for pthread_mutexattr_setkind_np function.
4414 * posix-threads.cc (throw_cleanup): New function.
4415 (really_start): Push cleanup function.
4416 (_Jv_ThreadCancel): New function.
4417 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4418 (_Jv_ThreadInitData): Set `exception' field in new structure.
4419 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4421 (_Jv_ThreadWait): New function.
4422 (_Jv_InitThreads): Initialize daemon globals.
4423 (FLAG_DAEMON): New macro.
4424 (really_start): Notify daemon_cond when non-daemon thread exits.
4425 Include <java/lang/System.h>.
4426 (struct starter): `object' field now a thread.
4427 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4428 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4429 (_Jv_ThreadWait): Removed definition.
4430 (_Jv_Thread_t): Added `exception' field.
4431 (_Jv_ThreadCancel): Removed definition.
4433 1998-11-13 Tom Tromey <tromey@cygnus.com>
4435 * Makefile.in: Rebuilt.
4436 * Makefile.am (libjava.zip): Compute javac before changing
4439 * Makefile.in: Rebuilt.
4440 * Makefile.am (libjava.zip): Include directory entries.
4442 * Makefile.in: Rebuilt.
4443 * Makefile.am (expanded): New macro.
4446 1998-11-12 Tom Tromey <tromey@cygnus.com>
4448 * prims.cc (clone): New function.
4449 * include/java-array.h (__JArray::clone): Removed definition.
4451 * java/lang/natObject.cc (clone): Don't assert that class is not
4452 an array; array's `clone' method just calls this one.
4454 * Makefile.in: Rebuilt.
4455 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4456 Now creates zip file. Changed all users.
4458 (data_DATA): New macro.
4460 1998-11-11 Tom Tromey <tromey@cygnus.com>
4462 * configure: Rebuilt.
4463 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4465 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4467 * java/io/InputStream.java (reset): Add msg to thrown exception.
4469 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4471 * java/io/LineNumberInputStream.java: Rewritten.
4473 * java/io/StringBufferInputStream.java: Removed extraneous import.
4475 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4477 * java/io/StringBufferInputStream.java: Rewritten.
4479 * java/util/Date.java (parseMonth): Optimize.
4480 (parseDayOfWeek): Created.
4481 (parse): Optimize to use parseDayOfWeek.
4483 1998-11-11 Tom Tromey <tromey@cygnus.com>
4485 * java/lang/StringBuffer.java (append): Handle case where STR is
4488 * include/javaprims.h: Regenerated class declarations.
4490 * configure: Rebuilt.
4491 * configure.in: Added --enable-gcj-classes,
4492 --enable-single-compilation, --enable-source-compilation flags.
4493 * Makefile.in: Rebuilt.
4494 * Makefile.am (java_io_files): New macro.
4495 (java_lang_files): Likewise.
4496 (java_text_files): Likewise.
4497 (java_util_files): Likewise.
4498 (java_files): Use new macros.
4499 (java-io.o): New target.
4500 (java-lang.o): Likewise.
4501 (java-text.o): Likewise.
4502 (java-util.o): Likewise.
4503 (src_io_files): New macro.
4504 (src_lang_files): Likewise.
4505 (src_text_files): Likewise.
4506 (src_util_files): Likewise.
4507 (class_io_files): New macro.
4508 (class_lang_files): Likewise.
4509 (class_text_files): Likewise.
4510 (class_util_files): Likewise.
4511 (class_files): Use new macros.
4512 (javao_files): Define conditionally.
4513 (.java.o): New target.
4514 ($(javao_files)): New target.
4516 (GCJH): Added $(EXEEXT).
4517 (CLASSPATH_ENV): Removed.
4518 (GCJCOMPILE): New macro.
4520 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4522 * java/util/Date.java (parse): Written from scratch.
4524 1998-11-11 Tom Tromey <tromey@cygnus.com>
4526 * java/lang/Throwable.java (toString): Correct sense of test for
4527 determining when to include detail message in result.
4529 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4532 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4534 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4536 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4537 (_Jv_RegisterClass): Use it.
4538 * include/jvm.h (_Jv_RegisterClasses): Declare.
4539 * java/lang/natObject.cc (init): Removed.
4540 (sync_init): Never call _Jv_InitializeSyncMutex.
4541 (_Jv_InitializeSyncMutex): Don't set `init'.
4542 * prims.cc (JvRunMain): Don't run init functions.
4544 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4546 * java/lang/natClass.cc (initializeClass): Set state before
4547 resolving constants.
4549 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4550 (STATE_RESOLVED): New macro.
4551 (initializeClass): Call resolveConstants.
4552 (hackRunInitializers): Don't call resolveConstants.
4553 (_Jv_FindArrayClass): Move short-circuit return for primitive
4554 element types earlier in function.
4556 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4558 * prims.cc (no_memory): New global.
4559 (_Jv_makeUtf8Const): Throw no_memory.
4560 (_Jv_AllocObject): Likewise.
4561 (_Jv_NewObjectArray): Likewise.
4562 (_Jv_NewPrimArray): Likewise.
4563 (JvRunMain): Initialize no_memory.
4565 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4567 * java/io/FileInputStream.java: Corrected date comment.
4568 * java/io/SequenceInputStream.java: Rewritten.
4570 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4572 * java/lang/FirstThread.java (die): New method.
4573 * java/lang/natFirstThread.cc (die): Removed.
4575 (run): Use `DIE', not `die'.
4577 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4579 * java/io/CharArrayReader.java (read): Move check into synchronized
4580 block to prevent a close while in progress.
4583 * java/io/PushbackReader.java (read): Ditto.
4586 * java/io/StringReader.java (mark): Ditto.
4591 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4593 * java/io/PipedInputStream.java: Updated status.
4594 (connect): Added code to prevent infinite recursion and to
4595 differentiate exception causes.
4596 (read): Added code to differentiate exception causes.
4597 (receive): Made exception pass string with the cause.
4599 * java/io/PipedOutputStream.java: Updated status.
4600 (connect): Added code to call connect at the other end of the pipe.
4602 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4604 * java/io/PipedInputStream.java (connect): Throw exception if
4605 already connected to the same output stream.
4606 (read): Do bounds checking first.
4608 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4610 * java/io/PipedInputStream.java: Added private boolean outClosed.
4611 (available): Removed check if output stream is open.
4612 (close): Mark the buffer as empty so available returns 0.
4613 (read): Check if the output stream was closed and then return EOF
4614 when the buffer is empty.
4615 (receive): Mark the output stream as closed when passed a -1.
4617 * java/io/PipedOutputStream.java (close): Notify the input stream
4618 that there's no more data coming.
4619 (connect): Added a FIXME comment to note more coordination needed
4620 with PipedInputStream.
4621 (flush): Added a FIXME comment to mark what this method might do
4624 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4626 * java/io/PipedInputStream.java: Rewritten.
4628 1998-10-30 Tom Tromey <tromey@cygnus.com>
4630 * java/lang/Throwable.java: Rewrote from scratch.
4632 * java/lang/Class.h (Class): Don't mention newMultiArray.
4633 * prims.cc (newMultiArray): Removed.
4634 (_Jv_NewMultiArray): Removed.
4635 (newArray): Removed.
4636 (new_multi_array): New function.
4637 (_Jv_NewMultiArray): Rewrote from scratch.
4639 * include/javaprims.h: Regenerated class declarations.
4640 * classes.pl (scan): Don't declare PrimClass.
4641 * include/cni.h (JvPrimClass): Use new names for classes.
4642 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4643 added _Jv_PrimClass.
4644 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4645 (_Jv_initPrimClass): Removed.
4646 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4647 (_Jv_AllocObject): Added comment.
4648 (_Jv_NewObjectArray): Likewise.
4649 (_Jv_NewPrimArray): Likewise.
4651 1998-10-29 Tom Tromey <tromey@cygnus.com>
4653 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4654 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4656 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4658 * java/lang/natObject.cc (init): New global.
4659 (sync_init): Call _Jv_InitializeSyncMutex if required.
4661 * Makefile.in: Rebuilt.
4662 * Makefile.am (nat_headers): Added ClassLoader.h.
4663 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4664 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4665 internalAddClass, lookupArray no longer friends.
4666 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4667 _Jv_FindArrayClass now friends.
4668 * java/lang/natClass.cc (HASH_LEN): New macro.
4669 (HASH_UTF): Likewise.
4670 (loaded_classes): New global.
4671 (_Jv_FindClass): New function.
4672 (ClassClass): New define.
4673 (_Jv_FindClassInCache): New function.
4674 (_Jv_RegisterClass): Likewise.
4675 (_Jv_NewClass): Likewise.
4677 (ObjectClass): New define.
4678 (CloneableClass): New define.
4679 * prims.cc (_Jv_FindClass): Removed.
4680 (simpleLookupClass): Removed.
4681 (insertClass): Removed.
4682 (CLASSHASHSZ): Removed.
4683 (classPool): Removed.
4684 (_Jv_RegisterClass): Removed.
4685 (internalAddClass): Removed.
4686 (ClassClass): Removed.
4687 (RuntimeClass): Removed.
4688 (lookupArray): Removed.
4689 (CloneableClass): Removed.
4690 (CLASSMAXSIG): Removed.
4691 Rearranged file to group related functions together.
4692 (_Jv_IsInstanceOf): Moved to natClass.cc.
4693 (abort_final): Removed.
4694 Removed some unused includes.
4695 (classFromSig): Removed.
4696 (_Jv_FindClassFromSignature): New function.
4697 (_Jv_initPrimClass): Renamed.
4698 (getClass): Removed.
4700 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4702 * java/io/FileDescriptor.java (finalize): Throws IOException
4703 instead of Throwable.
4705 * java/io/FileInputStream.java: Rewritten.
4707 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4708 at the end of a comment.
4710 1998-10-29 Tom Tromey <tromey@cygnus.com>
4712 * include/javaprims.h: Regenerated class declarations.
4713 * classes.pl (scan): Don't special-case ClassLoader.
4715 * prims.cc (processClass): Removed.
4716 (_Jv_InitClass): Removed.
4717 Removed all CSTATE_ macros.
4718 (resolveConstants): Removed.
4720 (_Jv_NewMultiArray): Cleaned up.
4721 * Makefile.in: Rebuilt.
4722 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4723 * java/lang/Class.h (Class): Declare new methods. processClass no
4725 * java/lang/Class.java (hackTrampoline): New method.
4726 (initializeClass): Declare.
4727 (hackRunInitializers): Declare.
4728 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4729 (initializeClass): New method.
4730 (hackRunInitializers): New method.
4731 (init_name, void_signature): Moved from prims.cc.
4732 (_Jv_InitClass): New function.
4733 (isAssignableFrom): Don't call processClass.
4734 (STATE_NOTHING): New macro.
4735 (resolveConstants): New function.
4737 (ErrorClass): New define.
4739 * java/lang/Class.java (getClassLoader): Declare.
4740 * java/lang/ClassLoader.java: Rewrote from scratch.
4742 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4743 AbstractMethodError.h, IllegalAccessError.h,
4744 NoClassDefFoundError.h.
4745 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4746 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4747 longer static. Changed return type.
4748 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4749 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4750 * prims.cc (findMethodLocal): Removed.
4751 (processClass): Use _Jv_GetMethodLocal.
4753 1998-10-28 Tom Tromey <tromey@cygnus.com>
4755 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4756 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4758 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4759 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4761 * include/jni.h: Added copyright header.
4762 * include/javaprims.h: Added copyright header.
4763 * include/java-field.h: Added copyright header.
4764 * include/java-array.h: Added copyright header.
4765 * include/cni.h: Added copyright header.
4767 * include/javaprims.h: Regenerated class declarations using
4768 classes.pl; now they are complete.
4769 * classes.pl: New file.
4771 * java/lang/natMath.cc: Include <config.h>.
4772 * java/lang/reflect/natField.cc: Include <config.h>.
4773 * java/util/NativeUtil.java: Removed.
4774 * Makefile.in: Rebuilt.
4775 * Makefile.am (nat_headers): Added Math.h.
4776 * java/lang/Math.h: Removed.
4777 * java/util/natGregorianCalendar.cc: Added copyright header.
4779 * java/lang/natFloat.cc: Added copyright header.
4780 * java/lang/Byte.java: Added copyright header.
4781 * java/lang/Void.java: Added copyright header.
4782 * java/lang/Short.java: Added copyright header.
4784 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4786 * include/javaprims.h (java::io): Added bunch of missing classes.
4788 * java/io/DataInputStream.java (readLine): Added a special case
4789 for handling BufferedInputStream data to reduce the likelihood
4790 of a pushback error.
4791 (skipBytes): Added code to handle negative number of skip bytes.
4793 * java/io/StreamTokenizer.java: Rewritten.
4795 1998-10-28 Tom Tromey <tromey@cygnus.com>
4797 * java/util/natGregorianCalendar.cc (computeFields): Call
4798 getRawOffset as a method.
4800 * include/javaprims.h (java::io): Added FilterOutputStream.
4801 * Makefile.in: Rebuilt.
4802 * Makefile.am (nat_headers): Added PrintStream.h,
4803 FilterOutputStream.h.
4804 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4806 (die): New function.
4807 (run): Die if `main' not found, is not public, or is not static.
4809 * boehm.cc (_Jv_MarkObj): Use new field names.
4810 * include/java-field.h (JvGetFirstInstanceField): Use new field
4812 (JvNumInstanceFields): Likewise.
4813 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4814 (getInterfaces): Likewise.
4815 * prims.cc (CLASS_CONSTANTS): Removed.
4816 (CLASS_CONST_SIZE): Likewise.
4817 (CLASS_CONST_TAG): Likewise.
4818 (CLASS_CONST_DATA): Likewise.
4819 (CLASS_CONST_UTF8): Likewise.
4820 (WORD2UTF): Likewise.
4821 (CLASS_CLASS): Likewise.
4822 (CLASS_PRIM_SIG): Likewise.
4823 (CLASS_ARRAY_CACHE): Likewise.
4824 (HASH_CHARS): Likewise.
4825 (hashClassName): Likewise.
4826 Many changes to use new field names.
4827 * java/lang/Class.h (Class): Renamed fields to track compiler.
4829 1998-10-27 Tom Tromey <tromey@cygnus.com>
4831 * java/lang/natClass.cc: Use #pragma implementation.
4832 (getComponentType): Moved into header.
4833 (getModifiers): Likewise.
4834 (getName): Likewise.
4835 (getSuperclass): Likewise.
4836 (isArray): Likewise.
4837 (isPrimitive): Likewise.
4838 * include/jvm.h (_Jv_FindClass): Declare.
4839 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4840 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4841 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4842 * java/lang/Class.h: Rewrote from scratch.
4843 * prims.cc: Many changes to work with new Class.h.
4844 * include/java-field.h (CLASS_FIELDS): Removed.
4845 (CLASS_SFIELDS): Likewise.
4846 (CLASS_IFIELDS): Likewise.
4847 (CLASS_NFIELDS): Likewise.
4848 (CLASS_NIFIELDS): Likewise.
4849 (CLASS_NSFIELDS): Likewise.
4850 (CLASS_FSIZE): Likewise.
4851 (JvGetFirstInstanceField): Rewrote.
4852 (JvNumInstanceFields): Likewise.
4854 * java/lang/Object.h: Added copyright comment.
4856 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4858 * java/text: New package directory.
4859 * java/text/FieldPosition.java: New class.
4860 * java/text/ParsePosition.java: New class.
4861 * java/text/ParseException.java: New Exception class.
4862 * java/text/Format.java: New class.
4863 * java/text/NumberFormat.java: New (empty placeholder) class.
4864 * java/text/DateFormatSymbols.java: New class (no Locales support).
4865 * java/text/DateFormat.java: New Format class (incomplete).
4866 * java/text/SimpleDateFormat.java: New DateFormat class.
4868 * include/javaprims.h (java::test): Added new package and classes.
4869 * java/util/Calendar.java (clone): New method.
4870 * java/util/Date.java (toString): Added non-native implementation.
4871 (parse): Made public instead of synchronized.
4872 * java/util/natDate.cc (toString): Removed.
4873 * java/util/natGregorianCalendar.cc (computeFields):
4874 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4876 1998-10-27 Tom Tromey <tromey@cygnus.com>
4878 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4880 * prims.cc (lookupArray): Added explanatory comment.
4881 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4882 class. Mark the class of each object.
4883 (_Jv_MarkArray): Mark the object's class.
4885 * configure: Rebuilt.
4886 * configure.in: Create java-gc.h.
4887 * include/boehm-gc.h: New file.
4888 * include/no-gc.h: New file.
4889 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4891 * java/lang/Object.h: Include java-gc.h.
4892 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4893 friends, if defined.
4894 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4896 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4898 1998-10-26 Tom Tromey <tromey@cygnus.com>
4900 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4901 paragraph separators, not numbers.
4903 * java/io/Writer.java (write): Removed write(char) to avoid
4905 * java/util/Properties.java: Rewrote from scratch.
4906 * include/javaprims.h (java::io): Added PrintWriter,
4907 BufferedWriter, PushbackReader.
4909 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4911 * java/lang/System.java: exit() is a static method.
4913 1998-10-26 Tom Tromey <tromey@cygnus.com>
4915 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4917 (_Jv_NewStringUtf8Const): Likewise.
4918 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4919 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4921 * java/lang/Object.h (Object): Add mark_array as friend function.
4922 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4923 _Jv_AllocBytes, to ensure that header is marked.
4924 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4926 (mark_array): Push sync_info field for array.
4928 1998-10-24 Tom Tromey <tromey@cygnus.com>
4930 * java/lang/String.java (String): Updated for StringBuffer
4932 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4934 * java/lang/StringBuffer.java: Renamed fields to conform to
4935 serialization spec: buffer->value, next->count, copy->shared.
4937 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4939 * java/util/TimeZone.java: New class.
4940 * java/util/SimpleTimeZone.java: New class.
4941 * java/util/Locale.java: New file.
4942 * java/util/Calendar.java: Make almost complete.
4943 * java/util/GregorianCalendar.java
4944 * java/util/natGregorianCalendar.cc: New file.
4945 * java/util/Date.java: Re-written from scratch.
4946 * java/util/natDate.cc (setTime): Removed - no longer native.
4947 * include/javaprims.h (java::util): Add new classes.
4948 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4949 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4951 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4953 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4954 returning it as a jint.
4956 1998-10-23 Tom Tromey <tromey@cygnus.com>
4958 * prims.cc (arg_vec, main_group, main_thread): New globals.
4959 (JvRunMain): Use them.
4961 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4963 * java/io/DataInputStream.java: Rewritten.
4965 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4966 tertiary bytes with 0x80 per spec.
4968 1998-10-23 Tom Tromey <tromey@cygnus.com>
4970 * java/lang/String.java (init): Changed name of `copy' argument.
4971 * java/lang/natString.cc (init): Inverted sense of `copy'
4974 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4975 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4976 * boehm.cc (ObjectClass): New define.
4977 (ClassClass): Likewise.
4978 (mark_obj): Special-case Object and Class.
4980 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4982 * java/util/BitSet.java: Rewrote from scratch.
4984 * prims.cc (lookupArray): Removed useless cast.
4986 * java/lang/natObject.cc: Use `#pragma implementation'.
4988 * java/lang/String.java (init): Added `copy' argument.
4989 (String): Look in StringBuffer to find char array.
4990 * java/lang/natString.cc (init): Added `copy' argument.
4991 * java/lang/StringBuffer.java: Rewrote from scratch.
4993 * java/lang/Compiler.java: Rewrote from scratch.
4994 * java/lang/Throwable.java: Don't use NativeLang.
4995 * include/javaprims.h (java::lang): Don't mention NativeLang.
4996 * java/lang/Process.java: Rewrote from scratch.
4997 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4999 (currentClassLoader): Likewise.
5000 (currentLoadedClass): Likewise.
5001 * java/lang/natClass.cc (getClassLoader): Commented out.
5002 * java/lang/Class.java (getClassLoader): Commented out.
5003 * java/lang/Compiler.java: Removed.
5004 * java/lang/NativeLang.java: Removed.
5006 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
5007 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
5008 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
5009 (_Jv_hashUtf8String): Now static.
5010 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
5011 name of return type.
5013 * java/lang/Class.h (Class): Declare checkMemberAccess.
5014 * Makefile.in: Rebuilt.
5015 * Makefile.am (nat_headers): Added Member.h.
5016 * java/lang/natClass.cc: Include Member.h.
5017 (getDeclaredClasses): Call checkMemberAccess.
5018 * java/lang/Class.java (checkMemberAccess): Call
5019 SecurityManager.checkMemberAccess.
5021 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
5023 * java/lang/SecurityManager.java: Rewritten.
5025 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
5027 * java/applet/Applet.java, java/applet/AppletContext.java,
5028 java/applet/AppletStub.java, java/applet/AudioClip.java,
5029 java/awt/AWTError.java, java/awt/AWTException.java,
5030 java/awt/BorderLayout.java, java/awt/Button.java,
5031 java/awt/Canvas.java, java/awt/CardLayout.java,
5032 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
5033 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
5034 java/awt/Color.java, java/awt/Component.java,
5035 java/awt/Container.java, java/awt/Dialog.java,
5036 java/awt/Dimension.java, java/awt/Event.java,
5037 java/awt/FileDialog.java, java/awt/FlowLayout.java,
5038 java/awt/Font.java, java/awt/FontMetrics.java,
5039 java/awt/Frame.java, java/awt/Graphics.java,
5040 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
5041 java/awt/GridLayout.java, java/awt/Image.java,
5042 java/awt/Insets.java, java/awt/Label.java,
5043 java/awt/LayoutManager.java, java/awt/List.java,
5044 java/awt/MediaTracker.java, java/awt/Menu.java,
5045 java/awt/MenuBar.java, java/awt/MenuComponent.java,
5046 java/awt/MenuContainer.java, java/awt/MenuItem.java,
5047 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
5048 java/awt/Rectangle.java, java/awt/Scrollbar.java,
5049 java/awt/TextArea.java, java/awt/TextComponent.java,
5050 java/awt/TextField.java, java/awt/Toolkit.java,
5051 java/awt/Window.java, java/awt/image/ColorModel.java,
5052 java/awt/image/CropImageFilter.java,
5053 java/awt/image/DirectColorModel.java,
5054 java/awt/image/FilteredImageSource.java,
5055 java/awt/image/ImageConsumer.java,
5056 java/awt/image/ImageFilter.java,
5057 java/awt/image/ImageObserver.java,
5058 java/awt/image/ImageProducer.java,
5059 java/awt/image/IndexColorModel.java,
5060 java/awt/image/MemoryImageSource.java,
5061 java/awt/image/PixelGrabber.java,
5062 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
5063 java/awt/peer/CanvasPeer.java,
5064 java/awt/peer/CheckboxMenuItemPeer.java,
5065 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
5066 java/awt/peer/ComponentPeer.java,
5067 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
5068 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
5069 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
5070 java/awt/peer/MenuBarPeer.java,
5071 java/awt/peer/MenuComponentPeer.java,
5072 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
5073 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
5074 java/awt/peer/TextAreaPeer.java,
5075 java/awt/peer/TextComponentPeer.java,
5076 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
5077 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
5078 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
5079 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
5080 java/net/MalformedURLException.java, java/net/NativeNet.java,
5081 java/net/ProtocolException.java, java/net/ServerSocket.java,
5082 java/net/Socket.java, java/net/SocketException.java,
5083 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5084 java/net/URL.java, java/net/URLConnection.java,
5085 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5086 java/net/URLStreamHandlerFactory.java,
5087 java/net/UnknownHostException.java,
5088 java/net/UnknownServiceException.java: Removed.
5090 1998-10-22 Tom Tromey <tromey@cygnus.com>
5092 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5093 finalizer is not Object.finalize.
5094 (internalAddClass): Don't set `final' member of class.
5095 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5096 other places that know about finalize() location.
5097 * java/lang/Class.h (Class): Removed `final' field.
5099 * aclocal.m4, configure: Rebuilt.
5100 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5101 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5103 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5104 * Makefile.in: Rebuilt.
5105 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5107 1998-10-21 Tom Tromey <tromey@cygnus.com>
5109 * java/lang/Object.java (finalize): Move to be first method in
5112 * configure: Rebuilt.
5113 * configure.in (GCINCS): Include contents of boehm-cflags file.
5115 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5117 * java/lang/ArrayIndexOutOfBoundsException.java
5118 (ArrayIndexOutOfBoundsException): Fixed string literal.
5119 * java/lang/StringIndexOutOfBoundsException.java
5120 (StringIndexOutOfBoundsException): Fixed string literal.
5122 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5124 * natFileDescriptorEcos.cc added.
5125 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5127 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5129 * acconfig.h: test for __int32_t and __uint32_t added.
5130 * include/config.h.in: test for __int32_t and __uint32_t added.
5131 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5132 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5133 * configure.in: test for __int32_t and __uint32_t added.
5134 * configure: test for __int32_t and __uint32_t added.
5136 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5138 * configure.in: Test for --enable ecos and link
5139 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5140 natFileDescriptorPosix.cc
5142 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5144 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5146 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5149 * java/io/CharArrayReader.java (close): Synchronize on lock
5150 object per Reader contract.
5151 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5152 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5153 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5154 Ensure that arg passed in isn't negative.
5156 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5157 constructing the superclass.
5159 * java/io/PushbackReader.java (close): Synchronize on lock
5160 object per Reader contract.
5161 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5162 (ready): Synchronize on lock obj. Throw IOException if reader
5164 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5165 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5166 Ensure that arg passed in isn't negative.
5167 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5169 * java/io/StringReader.java: Created.
5171 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5173 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5175 (read): Removed synchronized modifier to match JCL.
5176 (reset): Removed synchronized modifier to match JCL.
5177 (skip): Removed synchronized modifier to match JCL.
5179 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5181 * java/io/PushbackReader.java (PushbackReader): Made
5182 constructors public.
5184 1998-10-17 Tom Tromey <tromey@cygnus.com>
5186 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5187 constructors public.
5189 1998-10-16 Anthony Green <green@cygnus.com>
5191 * aclocal.m4, configure: Rebuilt.
5192 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5194 * configure.host: Rewrote.
5195 * Makefile.in: Rebuilt.
5196 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5197 (AM_CFLAGS): New macro.
5198 ($(c_files)): Use COMPILE macro.
5199 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5200 automake problem(s).
5202 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5204 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5206 * java/io/CharArrayReader.java: Created.
5208 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5210 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5211 size check to allow 0 per JCL.
5213 * java/io/PushbackReader.java: Created.
5215 1998-10-16 Tom Tromey <tromey@cygnus.com>
5217 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5218 <sys/time.h> includes.
5219 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5220 * include/no-threads.h: Conditionalize <unistd.h> include on
5223 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5225 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5228 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5230 * java/io/FilterReader.java: Created.
5232 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5234 * java/io/PushbackInputStream.java: Rewritten.
5236 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5237 that size passed to constructor is legal.
5238 (read): Check that args passed in are legal.
5239 (skip): Rewritten to get rid of the temporary buffer.
5240 (refill): Added marklimit check to grow the buffer.
5242 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5244 (bytesAvail): Removed.
5245 (read): Changed bytesAvail to Math.min.
5246 (skip): Changed bytesAvail to Math.min.
5248 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5249 from the throws clause.
5250 (skip): Rewritten to use a temporary buffer.
5252 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5254 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5257 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5259 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5260 to write the double one word at a time.
5262 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5264 * java/io/BufferedInputStream.java: Rewritten.
5266 1998-10-12 Tom Tromey <tromey@cygnus.com>
5268 * jni.cc: Include config.h and stddef.h.
5270 * java/lang/Class.h (_dispatchTable): Removed again.
5271 Removed all ACC_* defines again.
5273 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5275 * Makefile.am (nat_files): Add netField.o.
5276 (libjava_a_SOURCES): Add jni.cc.
5277 (java/lang/reflect/Field.h): New rule.
5278 * Makefile.in: Re-generated.
5279 * include/javaprims.h: Add some extra class and typedefs.
5280 * include/jni.h: New file.
5283 * include/java-field.h: New file.
5284 * include/jvm.h: #include <java-field.h>.
5285 * boehm.cc: #include <java-field.h>.
5286 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5287 * java/lang/reflect/Member.java: New class.
5288 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5289 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5291 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5293 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5294 testsuite/Makefile.in: Rebuilt.
5295 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5296 * configure.host: Created.
5298 1998-10-10 Tom Tromey <tromey@cygnus.com>
5300 * java/lang/natObject.cc (sync_init): Always allocate a new
5303 1998-10-09 Tom Tromey <tromey@cygnus.com>
5305 * java/io/ByteArrayInputStream.java (mark): Renamed from
5308 * java/io/FileOutputStream.java (finalize): Removed.
5309 * java/io/FileDescriptor.java (finalize): New method.
5311 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5313 * ByteArrayInputStream.java: Corrected status comment.
5315 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5317 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5319 1998-10-08 Tom Tromey <tromey@cygnus.com>
5321 * prims.cc (lookupArray): Use static array to initialize list of
5324 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5326 * prims.cc (lookupArray): Initialize the msize for new
5329 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5331 * configure: Rebuilt.
5332 * configure.in: Check for fsync and sleep.
5333 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5335 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5336 HAVE_SLEEP. Include config.h.
5338 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5339 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5342 1998-10-08 Tom Tromey <tromey@cygnus.com>
5344 * java/io/natFile.cc: Don't include SecurityManager.h.
5345 (performList): Renamed.
5346 (performMkdir): Likewise.
5347 (performRenameTo): Likewise.
5348 (performDelete): Likewise.
5350 * java/io/File.java (performDelete): Renamed from natDelete.
5351 (list): Now written in Java.
5352 (performList): New method.
5353 (performMkdir): New method.
5354 (mkdir): Now written in Java.
5355 (performRenameTo): New method.
5356 (renameTo): Now written in Java.
5358 1998-10-06 Tom Tromey <tromey@cygnus.com>
5360 * Makefile.in: Rebuilt.
5361 * Makefile.am (ETAGS_ARGS): New macro.
5362 (TAGS_DEPENDENCIES): Likewise.
5364 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5366 * Makefile.in: Rebuilt.
5367 * Makefile.am: Use -classpath option with javac.
5369 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5371 * java/io/FileOutputStream.java (finalize): Call
5374 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5376 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5378 * java/lang/mprec.c: Ditto.
5380 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5383 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5385 * java/io/InputStream.java (skip): Make local var i a long.
5387 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5389 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5390 * prims.cc (lookupArray): Use memcpy, not memmove.
5391 * include/config.h.in: Rebuilt.
5392 * acconfig.h (HAVE_MEMCPY): Added.
5393 * configure: Rebuilt.
5394 * configure.in: Check for memcpy again.
5396 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5397 String.compareTo, not ==.
5399 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5400 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5401 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5402 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5403 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5404 into new array's dtable.
5405 (_Jv_AllocObject): Use _Jv_DispatchTable.
5406 (_Jv_NewPrimArray): Likewise.
5407 (_Jv_NewObjectArray): Likewise.
5409 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5411 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5412 offending index value.
5413 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5415 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5416 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5418 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5420 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5422 * java/io/OutputStream.java (write): Use off and len parameters to
5423 output partial byte array.
5425 * java/io/BufferedReader.java, java/io/FileReader.java,
5426 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5427 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5428 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5429 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5431 * include/javaprims.h (java::lang): Added
5432 ExceptionInInitializerError, IllegalStateException,
5433 NoSuchFieldException, and UnsupportedOperationException.
5435 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5437 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5440 * include/java-array.h (__JArray): Added clone method.
5441 * prims.cc (CloneableClass): New define.
5442 (lookupArray): Initialize array class to indicate that it
5443 implements Cloneable.
5445 * java/lang/Class.h: Removed all ACC_* defines.
5446 * prims.cc: Include Modifier.h.
5447 (_Jv_LookupInterfaceMethod): Use methods in
5448 java.lang.reflect.Modifier, not ACC_ defines.
5450 * java/lang/Class.h (Class): Declare getClasses,
5451 getDeclaredClasses, getDeclaringClass, getModifiers,
5452 * java/lang/Class.java: Rewrote from scratch.
5454 * include/javaprims.h (java::lang): Added reflect and
5456 * Makefile.in: Rebuilt.
5457 * Makefile.am (nat_headers): Added Modifier.h.
5459 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5462 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5464 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5465 instead of test and abort.
5467 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5468 remove compiler warning.
5470 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5472 * java/lang/natDouble.cc: zero terminate string.
5473 * strtod.c: Set errno if no digits are found in fraction.
5475 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5477 * java/lang/reflect/Modifier.java: New file.
5479 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5480 * java/lang/VerifyError.java: Rewrote from scratch.
5481 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5482 * java/lang/UnknownError.java: Rewrote from scratch.
5483 * java/lang/StackOverflowError.java: Rewrote from scratch.
5484 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5485 * java/lang/InternalError.java: Rewrote from scratch.
5486 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5487 * java/lang/ExceptionInInitializerError.java: New file.
5488 * java/lang/Error.java: Rewrote from scratch.
5489 * java/lang/ClassFormatError.java: Rewrote from scratch.
5490 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5491 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5492 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5493 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5494 * java/lang/LinkageError.java: Rewrote from scratch.
5495 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5497 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5499 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5500 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5502 * include/cni.h (JvAllocObject): Moved from prims.cc.
5504 * prims.cc (JvAllocObject): Moved to cni.h.
5505 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5506 (finalize_name): Removed.
5508 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5510 * java/lang/Class.h (Class): Added size() method.
5511 * prims.cc (_Jv_MonitorEnter): Removed.
5512 (_Jv_MonitorExit): Removed.
5513 * java/lang/Object.h (JvSyncInfo): Removed.
5514 * Makefile.in: Rebuilt.
5515 * Makefile.am (nat_headers): Added Cloneable.h,
5516 CloneNotSupportedException.h.
5517 * java/lang/Object.h: Rewrote.
5518 * java/lang/natObject.cc: Rewrote from scratch.
5519 * java/lang/Object.java: Rewrote from scratch.
5521 * java/io/natFile.cc: Conditionally include <dirent.h>.
5522 (list): If no <dirent.h>, always return NULL.
5523 * configure: Rebuilt.
5524 * configure.in: Check for dirent.h.
5526 * prims.cc (lookupArray): Don't use sprintf.
5528 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5535 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5536 name conflict with method.
5538 * include/javaprims.h (java::util): Added HashtableEntry.
5540 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5542 * java/util/Hashtable.java: Rewritten.
5544 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5546 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5550 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5553 * posix-threads.cc (_Jv_CondWait): Now returns int.
5554 * include/javaprims.h (java::lang): Added
5555 IllegalMonitorStateException.
5556 * Makefile.in: Rebuilt.
5557 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5558 * include/no-threads.h (_Jv_CondDestroy): Removed.
5559 (_Jv_MutexDestroy): Removed.
5560 (_Jv_CondWait): Now returns int.
5561 (_Jv_CondNotify): Likewise. Added mutex argument.
5562 (_Jv_CondNotifyAll): Likewise.
5563 (_Jv_MutexLock): Always succeed.
5564 (_Jv_MutexUnlock): Likewise.
5565 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5566 (_Jv_HaveMutexDestroy): Define.
5567 (_Jv_CondNotify): Now returns int. Added mutex argument.
5568 (_Jv_CondNotifyAll): Likewise.
5569 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5570 (_Jv_MutexDestroy): Removed.
5571 (_Jv_CondWait): Now returns int.
5572 (_Jv_CondNotify): Likewise. Added mutex argument.
5573 (_Jv_CondNotifyAll): Likewise.
5574 * java/lang/natObject.cc (finalize_sync_info): New function.
5575 (init_mutex): Initialize `init' and register finalizer if
5578 (init_mutex): Use it.
5580 (notifyAll): Use it.
5582 (notify): Throw IllegalMonitorStateException on failure.
5583 (notifyAll): Likewise.
5584 (wait): Likewise. Also, throw InterruptedException if
5586 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5587 InterruptedException.h, IllegalArgumentException.h.
5588 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5590 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5591 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5592 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5593 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5594 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5595 * quick-threads.cc: Renamed all `JvPriv' functions.
5596 * prims.cc: Renamed all `JvPriv' functions.
5597 * posix-threads.cc: Renamed all `JvPriv' functions.
5598 * nogc.cc: Renamed all `JvPriv' functions.
5599 * no-threads.cc: Renamed all `JvPriv' functions.
5600 * boehm.cc: Renamed all `JvPriv' functions.
5601 * include/quick-threads.h: Renamed all `JvPriv' functions.
5602 * include/posix-threads.h: Renamed all `JvPriv' functions.
5603 * include/no-threads.h: Renamed all `JvPriv' functions.
5604 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5606 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5608 (JvPrivCondNotify): Do nothing.
5609 (JvPrivCondNotifyAll): Do nothing.
5611 * prims.cc (processClass): Handle case where state is
5614 * java/lang/natFirstThread.cc: Include <stdlib.h>
5616 * configure: Rebuilt.
5617 * configure.in: Fixed sense of --enable-libjava-debug.
5619 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5620 it can be used afterward by the assertion.
5622 * configure: Rebuilt.
5623 * configure.in: When cross-compiling, assume alloca.
5625 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5626 __builtin_alloca (autoconf docs are wrong here).
5628 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5630 (available): Use `FD_ZERO' (typo fix).
5632 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5634 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5635 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5637 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5638 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5641 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5643 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5645 * java/lang/natDouble.cc: Declare alloca safely.
5647 * configure, include/config.h.in: Rebuilt.
5648 * configure.in: Add alloca check.
5650 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5652 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5653 condition while calling notify.
5654 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5655 (interrupt): Hold mutex for interrupt condition while calling
5658 * java/lang/natString.cc (init): Allocate and try to read `count'
5659 characters, not `count - offset' characters.
5661 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5662 Correctly compute `count'.
5664 * java/lang/Boolean.java (getBoolean): Return false if property
5667 * java/lang/System.java (setProperties): Set prop_init.
5669 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5671 * java/io/PrintStream.java (println): Use line.separator, not
5673 * java/lang/System.java (out, err): Make both autoflush streams.
5674 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5676 * include/config.h.in: Rebuilt.
5677 * acconfig.h (HAVE_MEMCPY): Removed.
5678 * configure: Rebuilt.
5679 * configure.in: Never define HAVE_MEMCPY.
5681 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5683 (_Jv_AllocString): Use JvAllocObject again.
5684 * java/lang/Class.h (thread): New field.
5685 (_Jv_AllocString): No longer a friend.
5686 * prims.cc (processClass): Removed dead code. Changed to more
5687 closely follow the Java Language Specification.
5688 (processClass): Return early if already at the right state.
5690 * prims.cc (JvNewStringUTF): Removed.
5691 * include/cni.h (JvNewStringUTF): New function.
5692 (_Jv_NewStringUTF): Declare as `extern "C"'.
5693 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5695 * java/lang/natDouble.cc: Added copyright info and header
5696 comment. Include <stdlib.h>.
5697 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5698 bytes as are chars in string.
5700 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5702 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5706 * java/lang/System.java (init_properties): Now native.
5707 * java/lang/natSystem.cc (init_properties): New method.
5708 Include java/util/Properties.h.
5710 * Makefile.in: Rebuilt.
5711 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5712 OutputStreamWriter.h, ByteArrayInputStream.h,
5713 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5714 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5715 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5716 Properties.h, Hashtable.h, Dictionary.h.
5719 * include/javaprims.h (java::io): Added Reader, Writer,
5720 InputStreamReader, OutputStreamWriter,
5721 UnsupportedEncodingException, ByteArrayInputStream,
5722 ByteArrayOutputStream, EOFException, SyncFailedException,
5723 PushbackInputStream.
5724 (java::lang): Added Cloneable.
5725 (java::util): Added NoSuchElementException, VectorEnumeration,
5726 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5728 * java/io/PipedReader.java: New file.
5730 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5732 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5735 * java/io/io-defs.h: Removed.
5737 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5738 (FileInputStream): Use new constructor. Can throw IOException.
5740 * java/lang/System.java (getProperty): Don't throw
5741 NullPointerException.
5743 * java/io/RandomAccessFile.java: Rewrote from scratch.
5745 * java/io/natFileDescriptor.cc: Include EOFException.h.
5747 (length): New method.
5748 (getFilePointer): New method.
5750 (available): New method.
5751 * java/io/FileDescriptor.java (SET, CUR): New constants.
5752 (seek, length, getFilePointer, read, available): New decls.
5754 * java/io/PipedWriter.java: New file.
5755 * java/io/StringWriter.java: New file.
5756 * java/io/CharArrayWriter.java: New file.
5757 * java/io/CharConversionException.java: New file.
5758 * java/io/BufferedWriter.java: New file.
5759 * java/io/FilterWriter.java: New file.
5760 * java/io/FileWriter.java: New file.
5762 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5763 OutputStreamWriter.h, NullPointerException.h,
5764 ByteArrayInputStream.h, InputStreamReader.h.
5765 (getBytes): New method.
5766 (init): Throw NullPointerException.
5767 (init): New function.
5768 * java/lang/String.java (getBytes): Added missing decl.
5769 (getBytes): New method.
5770 (String): Added byte[]-based constructors.
5771 (copyValueOf): Wrote.
5772 (init): Declare variant which takes byte array and encoding.
5773 Import java.io.UnsupportedEncodingException.
5775 * java/io/File.java: Rewrote from scratch.
5776 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5777 * java/io/FileDescriptor.java: Rewrote from scratch.
5778 * java/io/FilenameFilter.java: Rewrote from scratch.
5780 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5782 * java/io/SyncFailedException.java: New file.
5783 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5784 * java/io/InterruptedIOException.java: Rewrote from scratch.
5785 * java/io/FileNotFoundException.java: Rewrote from scratch.
5786 * java/io/EOFException.java: Rewrote from scratch.
5787 * java/io/IOException.java: Rewrote from scratch.
5788 * java/io/PrintStream.java: Rewrote from scratch.
5789 * java/io/DataOutputStream.java: Rewrote from scratch.
5790 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5791 * java/io/FilterOutputStream.java: Rewrote from scratch.
5792 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5793 * java/io/PipedOutputStream.java: Rewrote from scratch.
5794 * java/io/FileOutputStream.java: Rewrote from scratch.
5795 * java/io/OutputStream.java: Rewrote from scratch.
5796 * java/io/DataOutput.java: Rewrote from scratch.
5798 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5800 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5802 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5804 * configure.in: Add --enable-libjava-debug
5806 * Makefile.am (nat_headers): Add java/lang/Float.h and
5809 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5811 * Makefile.in, configure, include/config.h.in: Rebuilt.
5813 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5815 * java/lang/Float.java: Rewritten
5816 * java/lang/Double.java: Rewritten
5817 * java/lang/natFloat.cc: toString() added.
5818 * java/lang/natDouble.cc: toString() added.
5819 * java/lang/natDouble.cc: doubleValueOf() added.
5820 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5821 java/lang/strtod.c: added.
5822 * ieeefp.h: __sparc added.
5823 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5825 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5827 * include/javaprims.h (java::lang): Added
5828 CloneNotSupportedException.
5830 * java/lang/Object.java (clone): No longer native. Implemented.
5831 * java/lang/natObject.cc (clone): Removed.
5833 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5835 * prims.cc: Don't make definitions `extern "C"'.
5836 (_Jv_RegisterClass): Renamed from registerClass.
5837 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5838 (_Jv_NewArray): Likewise.
5839 (_Jv_NewMultiArray): Likewise.
5840 (_Jv_CheckCast): Likewise.
5841 (_Jv_LookupInterfaceMethod): Likewise.
5842 (_Jv_CheckArrayStore): Likewise.
5843 (_Jv_RegisterClass): Likewise.
5845 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5846 * configure: Rebuilt.
5847 * configure.in: Don't check for fmod; it is provided by the fdlibm
5849 * prims.cc (fmod): Removed.
5851 * java/lang/natString.cc (charAt): Use _Jv_uint.
5852 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5853 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5854 (equalUtf8Consts): Likewise.
5855 (internalAddClass): Use _Jv_uint.
5856 (processClass): Likewise.
5857 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5858 (_Jv_uint): Renamed from uint32.
5859 (struct _Jv_Utf8Const): Changed members to use new type names.
5861 * configure: Rebuilt.
5862 * configure.in: Don't check for memcpy. Require memmove and a way
5864 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5866 (currentTimeMillis): Don't use #error.
5868 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5870 * java/lang/Math.java: static member random renamed to random_ to
5871 avoid conflict with member function of the same name.
5872 * include/javaprims.h: java.util.Random added.
5874 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5876 * include/java-chartables.h: Regenerated.
5877 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5880 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5882 * java/lang/Math.java: Rewritten.
5883 * java/lang/natMath.cc: New file.
5884 * Files added from fdlibm:
5885 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5886 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5887 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5888 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5889 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5890 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5891 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5892 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5893 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5894 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5895 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5896 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5897 java/lang/k_cos.c, java/lang/sf_ceil.c,
5898 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5899 java/lang/ieeefp.h, java/lang/fdlibm.h
5900 * Makefile.am: rules added for compiling C files from fdlibm.
5902 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5904 * chartables.pl: Minor documentation fixes.
5906 * configure: Rebuilt.
5907 * configure.in: Fixed --help output for --enable-fast-character.
5909 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5911 * configure: Rebuilt.
5912 * configure.in: Recognize --enable-fast-character.
5913 * acconfig.h (COMPACT_CHARACTER): New define.
5914 * include/config.h.in: Rebuilt.
5915 * include/java-chartables.h: New file.
5916 * Makefile.in: Rebuilt.
5917 * Makefile.am (nat_files): Added natCharacter.o.
5918 * java/lang/natCharacter.cc: New file.
5919 * chartables.pl (set_attribute): New function.
5920 (@attributes, @second_attributes): New globals.
5921 ($ROMAN_START, $ROMAN_END): Likewise.
5922 (process_char): Call set_attribute when required.
5923 (print_char): Just print hex value.
5924 (print_block): Generate C++ syntax.
5925 (print_numerics): Likewise.
5926 (print_single_map): Likewise.
5927 (print_all_block): Likewise.
5928 (print_case_table): Likewise.
5929 (print_fast_tables): New function.
5930 Generate C++ code suitable for a header file.
5931 * java/lang/Character.java (table_search): Removed.
5932 (digit_value): Now native.
5933 (getNumericValue): Likewise.
5934 (getType): Likewise.
5935 Removed all automatically-generated tables.
5936 (Tamil_Digit_One): Removed.
5937 (isSpaceChar): Now native.
5938 (isTitleCase): Likewise.
5939 (isLowerCase): Likewise.
5940 (isUpperCase): Likewise.
5941 (toLowerCase): Likewise.
5942 (toTitleCase): Likewise.
5943 (toUpperCase): Likewise.
5944 (isDefined): Fixed sense of test.
5946 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5948 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5950 (regionMatches): Likewise.
5952 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5954 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5956 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5958 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5961 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5964 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5966 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5968 * prims.cc (instanceof_class): Removed.
5969 (instanceof_array): Likewise.
5970 (instanceof): Likewise.
5971 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5972 (_Jv_CheckCast): Likewise.
5973 * java/lang/natClass.cc (isAssignableFrom): New method.
5974 * java/lang/Class.java (isAssignableFrom): Now native.
5976 * include/cni.h (JvThrow): Use `extern inline'.
5977 (JvAllocObject): Likewise.
5978 (JvInitClass): Likewise.
5980 * java/lang/natSystem.cc (arraycopy): Only check class of source
5983 * prims.cc (_Jv_CheckArrayStore): Wrote.
5984 (_Jv_MonitorEnter): Prefer `JvThrow'.
5985 Include ArrayStoreException.h.
5986 (_Jv_CheckCast): Indentation cleanup.
5988 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5990 * chartables.pl: New file.
5991 * java/lang/Character.java: Rewrote from scratch.
5993 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5995 * java/lang/ArithmeticException.java,
5996 java/lang/ArrayIndexOutOfBoundsException.java,
5997 java/lang/ArrayStoreException.java,
5998 java/lang/ClassCastException.java,
5999 java/lang/ClassNotFoundException.java,
6000 java/lang/CloneNotSupportedException.java,
6001 java/lang/Exception.java, java/lang/IllegalAccessException.java,
6002 java/lang/IllegalArgumentException.java,
6003 java/lang/IllegalMonitorStateException.java,
6004 java/lang/IllegalThreadStateException.java,
6005 java/lang/IndexOutOfBoundsException.java,
6006 java/lang/InstantiationException.java,
6007 java/lang/InterruptedException.java,
6008 java/lang/NegativeArraySizeException.java,
6009 java/lang/NoSuchMethodException.java,
6010 java/lang/NullPointerException.java,
6011 java/lang/NumberFormatException.java,
6012 java/lang/RuntimeException.java, java/lang/SecurityException.java,
6013 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
6015 * java/lang/IllegalStateException.java,
6016 java/lang/NoSuchFieldException.java,
6017 java/lang/UnsupportedOperationException.java: Created.
6019 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
6021 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
6022 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
6024 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
6026 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
6028 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
6030 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
6032 * Makefile.in: Rebuilt.
6034 * include/javaprims.h (java::lang): Added
6035 StringIndexOutOfBoundsException.
6037 * java/lang/String.java: Added header comment and FIXME comment for
6038 missing constructors/methods.
6039 (endsWith): Adjusted offset into string to look at just the last chars.
6040 Commented out undocumented method.
6042 * java/lang/natString.cc: Added includes for
6043 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
6044 (String::init): Throw StringIndexOutOfBoundsException.
6045 (String::charAt): Throw StringIndexOutOfBoundsException.
6046 (String::substring): Throw StringIndexOutOfBoundsException.
6047 (String::getChars): Throw ArrayIndexOutOfBoundsException.
6048 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
6049 (String::compareTo): Return difference/offset between chars/strings.
6051 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
6053 * java/lang/Boolean.java (TYPE): Added comment.
6055 * java/lang/Byte.java (decode): Added - commented out until dependent
6056 code for Integer is written.
6057 (compareTo): JDK 1.2 methods written.
6058 (hashCode): Added comment to note that values have been verified.
6060 * java/lang/Short.java (decode): Added - commented out until dependent
6061 code for Integer is written.
6062 (compareTo): JDK 1.2 methods written.
6063 (hashCode): Added comment to note that values have been verified.
6065 * java/lang/Comparable.java: Created - JDK 1.2 interface.
6067 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
6069 * include/javaprims.h (java::lang): Added VirtualMachineError,
6071 * Makefile.in: Rebuilt.
6072 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
6073 VirtualMachineError.h.
6074 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
6075 (lookupArray): Likewise.
6076 (makeUtf8Const): Likewise.
6077 (_Jv_AllocObject): Likewise.
6078 (_Jv_NewObjectArray): Likewise.
6079 Include OutOfMemoryError.h.
6081 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6082 to use JvNewStringLatin1.
6084 * java/io/io-defs.h: Include java/lang/IOException.h.
6085 * Makefile.in: Rebuilt.
6086 * Makefile.am (nat_headers): Added
6087 ArrayIndexOutOfBoundsException.h,
6088 ClassFormatError.h,ClassNotFoundException.h,
6089 ClassCircularityError.h, ClassCastException.h,
6090 IncompatibleClassChangeError.h, AbstractMethodError.h,
6091 IllegalAccessError.h, LinkageError.h, Error.h,
6092 NegativeArraySizeException.h, IOException.h.
6093 * include/cni.h (SignalError): Removed declaration.
6094 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6095 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6096 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6097 (newInstance): Likewise.
6098 (forName): Likewise.
6099 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6101 (read): Use JvThrow, not SignalError.
6106 (open_read): Likewise.
6107 (open_write): Likewise.
6110 (newstr): New function.
6111 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6113 (lastModifiedUnchecked): Likewise.
6114 (lengthUnchecked): Likewise.
6115 * include/javaprims.h (sorry): Removed declaration.
6116 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6117 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6118 ClassCastException, IncompatibleClassChangeError,
6119 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6120 * prims.cc (instanceof_array): Use JvFail, not sorry.
6122 Include ArrayIndexOutOfBoundsException.h,
6123 ClassFormatError.h,ClassNotFoundException.h,
6124 ClassCircularityError.h, ClassCastException.h,
6125 IncompatibleClassChangeError.h, AbstractMethodError.h,
6126 IllegalAccessError.h, NegativeArraySizeException.h.
6127 (_Jv_ThrowBadArrayIndex): Implemented.
6128 (JvNewStringUTF): Use JvFail, not sorry.
6129 (_Jv_FindClass): Likewise.
6130 (_Jv_NewArray): Likewise.
6131 (throwException): Removed.
6132 (getClass): Use JvThrow.
6133 (processClass): Likewise.
6134 (_Jv_NewObjectArray): Likewise.
6135 (_Jv_NewMultiArray): Likewise.
6136 (_Jv_CheckCast): Likewise.
6137 (_Jv_LookupInterfaceMethod): Likewise.
6138 (SignalError): Removed.
6139 (getClass): Use _Jv_NewStringUtf8Const to create String.
6141 * java/lang/natSystem.cc (arraycopy): Throw
6142 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6144 * Makefile.in: Rebuilt.
6145 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6147 * include/java-array.h: Mention gcjh, not gjavah.
6149 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6150 (canReadUnchecked): Likewise.
6151 (canWriteUnchecked): Likewise.
6152 (isFileUnchecked): Likewise.
6153 * java/io/natFileDescriptor.cc: Don't include cni.h.
6155 * java/lang/Thread.java (run__): Declare.
6156 * java/lang/natThread.cc (run__): New method, to avoid compiler
6158 (start): Use run__, not run_.
6160 * java/io/io-defs.h: Include cni.h and jvm.h.
6162 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6164 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6165 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6166 to natString.cc (with suitable renaming, inlines etc).
6167 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6168 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6169 * java/lang/String.h: Removed - now generated using gjavah.
6170 * java/lang/String.java: Re-written from scratch. Many native methods.
6171 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6172 * java/lang/natString.cc: Many functions re-written for "compact
6173 strings" representation, or native java.lang.String methods added.
6174 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6175 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6176 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6177 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6178 * include/cni.h: Add inline method.
6179 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6180 * include/javaprims.h: Moved some stuff frm String.h.
6181 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6182 * Makefile.am (nat_header): Added Character.h and String.h.
6183 (String.h): Add new rule.
6185 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6187 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6189 * posix-threads.cc: Include cni.h, jvm.h.
6190 * quick-threads.cc: Include cni.h, jvm.h.
6191 * nogc.cc: Include cni.h, not javaprims.h.
6192 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6193 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6194 include java-assert.h.
6195 * java/lang/natSystem.cc: Include cni.h. Don't include
6197 * java/lang/natRuntime.cc: Include cni.h. Don't include
6199 * prims.cc: Rearranged #include ordering. Don't include
6200 java-array.h or java-assert.h.
6201 * boehm.cc: Include config.h, cni.h.
6202 * exception.cc: Include config.h, cni.h.
6203 * include/jvm.h: Include java-assert.h.
6204 * include/cni.h: Include java/lang/Object.h. Don't include
6205 java-threads.h or java-array.h.
6207 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6209 * java/lang/Boolean.java: Rewritten.
6211 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6213 * java/lang/natFirstThread.cc (main_func): New typedef.
6214 (run): Use main_func, not JvPrivThreadStartFunc.
6215 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6217 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6219 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6222 Can't throw Java exceptions with C++ `throw':
6223 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6224 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6225 (setPriority): Likewise.
6229 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6230 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6232 Can't catch Java exceptions from C++:
6233 * java/lang/natThread.cc (finish_): New method.
6235 * java/lang/Thread.java (run_): Rewrote in Java.
6236 (finish_): New native method.
6238 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6240 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6242 * include/javaprims.h (java::io): Added Serializable.
6244 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6246 * java/util/EmptyStackException.java,
6247 java/util/NoSuchElementException.java: Rewritten.
6249 * java/util/ConcurrentModificationException.java,
6250 java/util/MissingResourceException.java,
6251 java/util/TooManyListenersException.java: Created.
6253 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6255 * include/cni.h (JvThrow): New function.
6256 * include/javaprims.h (_Jv_Throw): Declare.
6258 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6260 * java/util/Observable.java: Rewritten.
6262 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6264 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6265 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6266 Include NullPointerException.h.
6268 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6270 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6271 assignability checks. Don't bother using memcpy.
6273 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6275 * include/quick-threads.h (JvPrivThreadWait): New function.
6276 * include/no-threads.h (JvPrivThreadWait): New function.
6277 * include/posix-threads.h (JvPrivThreadWait): New function.
6278 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6280 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6282 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6283 offsets by size of type that is being copied.
6285 * java/lang/natThread.cc (start): Don't pass `object' argument to
6287 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6288 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6290 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6291 always pass thread as object.
6292 * include/quick-threads.h, include/posix-threads.h,
6293 include/no-threads.h (JvPrivThreadStart): Removed `object'
6296 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6298 * java/util/Dictionary.java: Rewritten.
6300 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6302 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6303 (JvPrivThreadDestroy): Likewise.
6305 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6307 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6309 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6311 * java/lang/natSystem.cc: Rewrote from scratch.
6312 * java/lang/System.java: Rewrote from scratch.
6313 * java/lang/Class.h (Class): Declare isAssignableFrom.
6314 * include/javaprims.h (java::lang): Added ArrayStoreException,
6315 IndexOutOfBoundsException.
6316 * Makefile.in: Rebuilt.
6317 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6318 IndexOutOfBoundsException.h.
6319 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6320 * include/jvm.h (_Jv_HashCode): New function.
6322 * java/lang/natThread.cc (suspend): Call checkAccess.
6324 * java/lang/Thread.java (setDaemon): Call checkAccess.
6326 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6328 * java/lang/Runtime.java: Rewrote from scratch.
6329 * java/lang/natRuntime.cc: Rewrote from scratch.
6331 * nogc.cc (JvPrivGCTotalMemory): New function.
6332 (JvPrivGCFreeMemory): Likewise.
6333 (total): New global.
6334 (JvPrivAllocObj): Increment total.
6335 (JvPrivAllocArray): Likewise.
6336 (JvPrivAllocBytes): Likewise.
6337 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6338 * boehm.cc (JvPrivGCTotalMemory): New function.
6339 (sum_blocks): Likewise.
6340 (JvPrivGCFreeMemory): Likewise.
6342 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6344 * include/javaprims.h (java::lang): Added FirstThread.
6345 * java/lang/natFirstThread.cc: New file.
6346 * java/lang/FirstThread.java: New file.
6347 * prims.cc (main_signature): Removed.
6348 (main_name): Removed.
6349 #include FirstThread.h.
6350 * Makefile.in: Rebuilt.
6351 * Makefile.am (TFRIEND): Removed.
6352 (java/lang/Thread.h): Likewise.
6353 (FTFRIEND): New macro.
6354 (java/lang/FirstThread.h): New target.
6355 (nat_files): Added natFirstThread.o.
6356 (nat_headers): Added FirstThread.h.
6357 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6358 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6360 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6364 * java/lang/natThread.cc (start): Synchronize the thread.
6365 (stop): Synchronize the thread.
6367 * java/lang/ThreadDeath.java: Rewrote from scratch.
6369 * Makefile.in: Rebuilt.
6370 * Makefile.am (TGFRIEND): New macro.
6371 (java/lang/ThreadGroup.h): New target.
6372 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6374 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6376 * nogc.cc: Include config.h.
6378 * java/lang/ThreadGroup.java: Rewrote from scratch.
6380 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6382 * java/lang/Thread.java (checkAccess): Only call in to security
6383 manager if it exists.
6384 (Thread): Don't check access when creating the first thread. Add
6385 this thread to the appropriate ThreadGroup.
6387 * java/lang/natThread.cc (run_): Call uncaughtException method on
6390 * java/lang/Runnable.java: Rewrote from scratch.
6391 * java/lang/Thread.java: Updated copyright comment to correct
6394 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6396 * java/util/Random.java: Rewritten.
6398 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6400 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6401 trailing 0 in array[].
6403 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6405 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6406 and RUNTESTFLAGS from AM_MAKEFLAGS.
6407 (SUBDIRS): Conditionally include testsuite.
6408 * Makefile.in: Rebuilt.
6410 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6412 * java/lang/Object.h: Include java-assert.h.
6414 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6416 * Makefile.am: Add testsuite directory.
6417 * configure.in: Build testsuite/Makefile.
6418 * Makefile.in, configure: Rebuilt.
6420 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6422 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6423 * include/jvm.h (_Jv_StartFirstThread): Declare.
6425 * include/javaprims.h (java::lang): Added Exception,
6428 * Makefile.in: Rebuilt.
6429 * Makefile.am (nat_headers): Added NullPointerException.h,
6430 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6431 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6432 (java/lang/Thread.h): New target.
6433 (TFRIEND): New macro
6435 * include/java-assert.h (JvFail): Use 0 and not NULL.
6437 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6438 instead of assuming we are a friend of Thread.
6439 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6440 instead of assuming we are a friend of Thread.
6442 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6444 * java/lang/natThread.cc: Rewrote from scratch.
6445 * java/lang/Thread.java: Rewrote from scratch.
6446 * prims.cc (JvRunMain): Use new Thread constructor.
6447 * include/javaprims.h (java::lang): Added InterruptedException.
6448 * Makefile.in: Rebuilt.
6449 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6450 * java/lang/Thread.h: Removed.
6451 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6452 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6454 * posix-threads.cc (JvPrivThreadJoin): Removed.
6455 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6456 (really_start): Don't notify join_cond.
6457 (JvPrivThreadStart): Added `data' argument.
6458 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6459 (JvPrivThreadJoin): Likewise.
6460 Use JvFail instead of sorry.
6461 (JvPrivThreadSuspend): Removed.
6462 (JvPrivThreadResume): Removed.
6463 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6464 (JvPrivThreadJoin): Likewise.
6465 (JvPrivThreadSuspend): Use JvFail.
6466 (JvPrivThreadResume): Likewise.
6467 (JvPrivThreadSuspend): Removed.
6468 (JvPrivThreadResume): Likewise.
6469 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6470 (JvPrivThread_t): Removed join_mutex, join_cond.
6471 Use JvFail instead of sorry.
6472 (JvPrivThreadSuspend): Removed.
6473 (JvPrivThreadResume): Likewise.
6475 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6477 * java/util/Observer.java: Rewritten
6478 * java/util/Enumeration.java: Rewritten
6480 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6482 * java/util/StringTokenizer.java: Rewritten
6483 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6484 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6485 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6487 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6489 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6492 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6493 Include java-assert.h.
6494 * include/java-assert.h: New file.
6495 * prims.cc (_Jv_Abort): New function.
6496 Include java-assert.h, not assert.h.
6497 (_Jv_MonitorExit): Use JvAssert.
6498 (resolveConstants): Likewise.
6499 (processClass): Likewise.
6500 (JvRunMain): Assert that method is found.
6502 * configure: Rebuilt.
6503 * configure.in: Check for test subdir.
6504 * Makefile.in: Rebuilt.
6505 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6507 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6508 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6510 * prims.cc (resolveConstants): Removed unused variables.
6511 (processClass): Likewise.
6513 * include/quick-threads.h (JvPrivThreadCurrent): Use
6515 * quick-threads.cc (destroy_data): New function.
6516 (JvPrivInitThreads): Create key.
6517 (JvPrivThreadKey): New global.
6518 (JvPrivThreadStart): Use coop_setspecific.
6520 * include/quick-threads.h, include/posix-threads.h,
6521 include/no-threads.h, no-threads.cc, quick-threads.cc,
6522 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6524 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6526 * include/no-threads.h (JvPrivThreadInitData): Don't set
6529 * include/quick-threads.h (JvPrivCondWait): coop function now
6531 (JvPrivThreadJoin): Likewise.
6533 * java/lang/Thread.h (Thread): Updated declaration of
6535 * include/quick-threads.h, include/posix-threads.h: Updated
6536 declaration of JvPrivThreadStart.
6537 * include/no-threads.h (JvPrivThreadStart): Changed definition
6539 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6540 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6541 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6543 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6545 * quick-threads.cc (qthrow): New function.
6546 (JvPrivInitThreads): New function.
6547 (started): New global.
6548 (JvPrivThreadStart): Call coop_start if required.
6549 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6550 (JvPrivThreadDestroy): Likewise.
6551 (JvPrivInitThreads): Removed.
6552 * include/posix-threads.h (JvPrivThreadCancel): Added error
6554 * java/lang/natThread.cc (stop_): Pass exception to
6557 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6559 * include/javaprims.h (java::lang): Added
6560 IllegalArgumentException, IllegalThreadStateException, Math,
6561 NullPointerException, ThreadDeath.
6562 (java::util): Added Enumeration.
6564 * Makefile.in: Rebuilt.
6565 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6567 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6569 (threadsv): Renamed from threads to avoid clash in C++ header.
6570 (groupsv): Likewise.
6571 * include/no-threads.h (JvPrivThreadStart): Removed.
6572 * no-threads.cc (JvPrivThreadStart): New function.
6573 * java/lang/Thread.java (Thread): New constructor for internal use.
6574 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6575 (Thread): Declare constructor.
6576 * prims.cc (JvRunMain): Create the initial Thread and
6578 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6579 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6580 Removed `daemon' argument.
6582 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6583 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6585 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6587 * Makefile.in: Rebuilt.
6588 * Makefile.am (INCLUDES): Include THREADINCS.
6590 * configure: Rebuilt.
6591 * configure.in: Recognize `qt' as a threads package.
6593 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6595 * java/util/Stack.java (pop): Null out topmost node for robustness.
6597 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6599 * java/util/Stack.java: Rewritten.
6600 * java/util/Vector.java (isEmpty): Simplified expression.
6602 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6604 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6605 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6607 * include/java-array.h (JvNewObjectArray): Created inline to
6610 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6613 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6615 * java/util/Vector.java: Rewritten.
6616 * java/io/Serializable.java: Created.
6618 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6620 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6621 Infinity is 1/0, not 1/1.
6623 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6625 * configure: Rebuilt.
6626 * configure.in: Removed duplicate AC_ARG_WITH.
6628 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6630 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6632 (_Jv_InitClass): Renamed from soft_initialise_class.
6633 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6634 (_Jv_CheckCast): Renamed from soft_checkcast.
6635 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6636 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6637 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6638 * include/cni.h (JvInitClass): New function.
6639 (_Jv_InitClass): Renamed from soft_initialise_class.
6641 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6643 * configure: Rebuilt.
6644 * configure.in (CXX): Don't set.
6645 * Makefile.in: Rebuilt.
6646 * Makefile.am (AM_CXXFLAGS): New macro.
6648 * Makefile.in: Rebuilt.
6649 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6650 nogc.o): New target.
6652 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6654 (mark_array): Likewise.
6656 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6658 * java/lang/Class.h (JvMethod): Removed some unused fields.
6659 (JvField.info): Removed unused idx union variant.
6661 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6663 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6666 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6668 * configure.in, configure (CXX): Add -fvtable-thunks.
6670 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6672 * java/lang/Object.java (finalize): Move first.
6673 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6674 (Object): Re-arrange order to match Object.java.
6676 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6678 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6679 * java/lang/natString.cc (hashChars): Likewise.
6681 * prims.cc (RuntimeClass): New macro.
6682 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6684 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6686 * Makefile.in: Rebuilt.
6687 * Makefile.am (AM_MAKEFLAGS): New macro.
6689 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6691 * nogc.cc: Include <javaprims.h>.
6693 * Makefile.in: Rebuilt.
6694 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6696 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6698 * exception.cc (terminate): Removed.
6699 (unexpected): Removed.
6701 * configure: Rebuilt.
6702 * configure.in: Handle case where target subdir is ".".
6704 * configure: Rebuilt.
6705 * configure.in: Compute COMPPATH based on --with-target-subdir
6706 option. Added --with-target-subdir and --with-cross-host. Use
6707 --with-cross-host to determine when a cross compiler is in use.
6709 * Makefile.in: Rebuilt.
6710 * Makefile.am (GJAVAH): Include COMPPATH.
6711 * configure: Rebuilt.
6712 * configure.in: Subst COMPPATH.
6714 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6716 * prims.cc (lockMutex): Removed.
6717 (unlockMutex): Likewise.
6718 (processClass): Lock the class using a JvSynchronize object.
6720 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6722 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6723 (gc_free_fixed): Removed.
6724 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6725 freeing old value of strhash.
6727 * exception.cc (_Jv_type_matcher): Cast first argument to
6730 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6732 * include/java-array.h (jstringArray): New type.
6733 * java/lang/natSystem.cc (setProperty): Removed.
6734 (initProperties): Directly call JvNewStringLatin1 for arguments.
6735 * java/util/natDate.cc: Include java/util/Date.h, not
6738 * java/io/FileDescriptor.java (available): No longer static.
6739 * java/lang/natDouble.cc (Double): Removed class definition.
6740 * include/javaprims.h (java::lang::Number): Declare.
6741 (java::lang::NumberFormatException): Likewise.
6742 (java::io::FilenameFilter): Likewise.
6743 (java::lang::Character): Likewise.
6744 (java::lang::Error): Likewise.
6745 (java::lang::SecurityManager): Likewise.
6746 (java::util::Vector): Likewise.
6747 (java::io::FileNotFoundException): Likewise.
6748 (java::io::IOException): Likewise.
6749 (java::lang::NativeLang): Likewise.
6750 (java::lang::UnsatisfiedLinkError): Likewise.
6751 (java::util::StringTokenizer): Likewise.
6752 (java::io::InputStream, java::io::OutputStream): Likewise.
6753 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6754 (java::util::Hashtable): Likewise.
6755 * Makefile.in: Rebuilt.
6756 * Makefile.am (nat_headers): Added java/lang/Double.h,
6757 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6758 (MOSTLYCLEANFILES): Added nat_headers.
6759 * include/jvm.h: Moved many defines, declarations, and functions
6760 to java/lang/Class.h.
6761 (struct JvSyncInfo): Moved to java/lang/Object.h.
6762 (UTF8_GET): Moved to java/lang/String.h.
6764 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6766 * java/io/io-defs.h: Don't include java-io.h.
6767 * include/java-io.h: Removed.
6768 * include/javaprims.h: Include java::io.
6770 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6772 * include/java-io.h (File): Removed
6773 (FileDescriptor): Likewise.
6775 * java/io/io-defs.h: Include java/io/File.h and
6776 java/io/FileDescriptor.h.
6778 * Makefile.in: Rebuilt.
6779 * Makefile.am (GJAVAH): New macro.
6780 (.class.h): New rule.
6781 (SUFFIXES): Added .h.
6782 (nat_headers): New macro.
6783 ($(nat_headers)): New target.
6784 (BUILT_SOURCES): Added nat_headers.
6786 * include/java-util.h: Removed.
6788 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6790 * include/java-io.h: Changed to avoid java-lang.h.
6791 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6793 * java/lang/natSystem.cc: Include java/lang/System.h, not
6795 * java/lang/natString.cc: Include java/lang/String.h, not
6797 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6799 * java/lang/natClass.cc: Include java/lang/Class.h, not
6801 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6803 * java/lang/natObject.cc: Include java/lang/Object.h, not
6805 * exception.cc: Don't include java-lang.h.
6806 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6807 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6808 * nogc.cc: Don't include java-lang.h.
6809 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6810 * prims.cc (processClass): Don't use `init_type'; just cast to
6812 Include java/lang/Class.h and jvm.h, not java-lang.h.
6813 (JvAllocObject): Wrote single-argument version.
6814 (PrimClass): Inherit from Class.
6815 (initPrimClass): Removed.
6816 * include/java-lang.h: Removed.
6817 * include/jvm.h: Declare struct _dispatchTable.
6818 * include/cni.h: Don't declare _Jv_MonitorEnter,
6819 _Jv_MonitorExit, struct _dispatchTable.
6820 * include/javaprims.h: Moved all typedefs here, from cni.h.
6821 * java/lang/Class.h: New file.
6822 * include/java-array.h: New file.
6823 * java/lang/Object.h: New file.
6825 * prims.cc (classFromSig): Now static.
6827 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6829 * include/cni.h: Don't mention soft_new.
6830 * include/java-lang.h (Object): Don't mention soft_new. Mention
6831 _Jv_NewPrimArray, not newPrimArray.
6832 * prims.cc (soft_new): Removed.
6833 (_Jv_NewArray): Renamed from soft_newarray.
6834 (soft_anewarray): Use JvNewObjectArray.
6835 (newArray): Likewise.
6836 (newRefArray): Removed.
6837 (_Jv_NewPrimArray): Renamed from newPrimArray.
6838 (equalUtf8Consts): Now static.
6839 (soft_instanceof): Removed.
6840 * java/lang/natDouble.cc (doubleToString): Now static.
6842 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6843 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6846 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6848 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6850 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6852 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6853 (JvPrivMutexUnlock): Likewise.
6854 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6855 Return value now jint.
6856 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6859 * Makefile.in: Rebuilt.
6860 * Makefile.am: Don't allow `jV' names.
6861 (maintainer-check): Depend on libjava.a.
6862 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6864 * Makefile.in: Rebuilt.
6865 * Makefile.am (NM): New macro.
6866 (maintainer-check): New target.
6868 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6870 * configure: Rebuilt.
6871 * configure.in: Use --enable-threads, not --enable-gc. Fix
6872 documentation for --enable-threads. Changed option to work like
6873 identical option in gcc/configure.
6875 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6877 * boehm.cc (mark_array): Use JvGetArrayLength.
6879 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6881 * exception.cc: New file (mostly written by Andrew MacLeod),
6882 exception handling support.
6883 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6884 Remove -fexceptions - it is now the default.
6886 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6887 (JvAllocObject): Renamed to _Jv_AllocObject.
6888 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6889 (loadClass): Renamed to _Jv_FindClass.
6890 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6891 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6892 * include/java-lang.h (JvGetArrayLength): New CNI function.
6893 * include/jvm.h (_Jv_FindClass): Added declaration.
6895 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6897 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6899 * java/lang/natClass.cc (getName): Add implementation.
6900 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6902 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6904 * Makefile.in: Rebuilt.
6905 * Makefile.am (.class.o): Added -fexceptions.
6907 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6909 * configure: Rebuilt.
6910 * configure.in: Don't check for __nanosleep.
6911 * posix-threads.cc (nanosleep): Never define.
6913 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6915 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6918 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6920 * java/lang/natThread.cc (enumerate): Uncommented.
6921 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6922 (interrupt): Call it.
6924 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6926 * configure: Rebuilt.
6927 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6929 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6931 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6932 * include/java-lang.h (Thread): Added `interrupted_' method.
6933 * java/lang/Thread.java (interrupted_): New method.
6934 * java/lang/natThread.cc (join): Possibly throw interrupted
6935 exception after join finishes.
6936 (interrupted_): New method.
6937 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6939 (JvPrivThreadJoin): New function.
6940 (really_start): Notify all threads waiting for this thread.
6941 (struct starter): Added `data' member.
6942 (JvPrivThreadStart): Set it.
6943 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6945 (JvPrivThreadJoin): No longer inline.
6946 (JvPrivThreadInterrupt): New function.
6948 * include/no-threads.h (JvPrivThreadSleep): Removed.
6949 * posix-threads.cc (JvPrivThreadSleep): Removed.
6951 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6953 * configure: Rebuilt.
6954 * configure.in (THREADOBJS): Initialize to no-threads.o in
6956 * posix-threads.cc (key): New global.
6957 (JvPrivInitThreads): New function.
6958 (really_start): Set thread-specific data to point to object.
6959 (JvPrivThreadStart): Added `daemon' argument.
6960 (JvPrivThreadSleep): Added `data' argument.
6961 * include/posix-threads.h (JvPrivInitThreads): Removed
6963 (JvPrivThreadCurrent): New function.
6964 * include/no-threads.h (JvPrivThreadInitData): Initialize
6965 JvPrivOnlyThread. Added `thread' argument.
6966 (JvPrivThreadCurrent): New function.
6967 (JvPrivThreadStart): Added `daemon' argument.
6968 * no-threads.cc: New file.
6969 * java/lang/natThread.cc (init_data): New function.
6971 (start): Set `alive' member.
6972 (stop_): Clear `alive' member.
6973 (destroy): Likewise.
6974 (currentThread): Implemented.
6975 (start): Pass `daemon' argument to JvPrivThreadStart.
6977 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6978 (Thread): Added `init_data' method.
6979 * java/lang/Thread.java (alive, data): New instance variables.
6980 (init_data): New private method.
6981 (isAlive): No longer native.
6983 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6985 * include/java-lang.h (JvRunMain): Declare.
6986 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6987 * prims.cc (JvRunMain): New function.
6988 (main_signature, main_name): New globals.
6990 * boehm.cc (mark_array): Use `elements' function and not
6991 operator[] on jarray.
6993 * posix-threads.cc: Include <config.h>. Define nanosleep if
6996 * configure: Rebuilt.
6997 * configure.in: Check for _nanosleep.
6999 * configure: Rebuilt.
7000 * configure.in: Check for pthread_mutexattr_settype.
7002 * include/cni.h (class JvSynchronize): New class.
7003 * java/lang/Thread.java (sleep): Throws InterruptedException.
7004 (join): Throws InterruptedException.
7005 (resume): Not native.
7006 (resume_): New method.
7007 (start): Now synchronized.
7008 (stop_): New method.
7009 (Thread): Synchronize when accessing threadNumber.
7011 * java/lang/natThread.cc (throwException): New macro.
7012 (sleep): Throw InterruptedException.
7015 * include/java-lang.h (Runtime): Added interrupted().
7017 * boehm.cc (call_finalizer): Correctly initialize jobj.
7018 * include/java-lang.h (Runtime): Added getRuntime() and exit().
7020 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
7023 * configure: Rebuilt.
7024 * configure.in: Added support for --disable-threads.
7025 * include/no-threads.h: New file.
7027 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
7029 * Makefile.in: Rebuilt.
7030 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
7031 (libjava_a_DEPENDENCIES): Added THREADOBJS.
7032 (libjava_a_LIBADD): Added THREADOBJS.
7033 * configure: Rebuilt.
7034 * configure.in: Added --with-threads option.
7035 * posix-threads.cc: New file.
7036 * include/posix-threads.h: New file.
7037 * include/java-lang.h (Object): Added static member sync_mutex,
7038 member sync_info, method init_mutex.
7039 (struct JvSyncInfo): New struct.
7040 Include "java-threads.h".
7041 * prims.cc (soft_monitorenter): Wrote.
7042 (soft_monitorexit): Likewise.
7043 * java/lang/natObject.cc (init_mutex): New method.
7047 (sync_mutex): Define.
7048 Include "java-threads.h".
7050 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
7052 * include/java-lang.h (JvPrivInitGC): Make extern "C".
7053 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
7055 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
7057 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
7058 Added extern "Java" in places to tell G++ Object is a "Java" type.
7059 Other minor renaming and fixes.
7060 * include/java-io.h (FileDescriptor): Add friend class declarations.
7061 G++ no longer allows non-Java types in method parameters and results
7062 of Java classes. Converted most offending methods to friends.
7063 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
7064 * java/lang/natSystem.cc (setProperty): Make friend.
7065 * java/lang/natString.cc, include/java-lang.h (String): Rename
7066 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
7067 * include/java-lang.h (JArray): Remove getData and eoprator[].
7068 Add elements friend function instead.
7069 * java/lang/natSystem.cc (arraycopy): Use elements function.
7070 * java/io/natFileDescriptor.cc (read, write): Likewise.
7071 * include/java-lang.h (Object): Remove unused make method.
7072 (System::setProperty(char*,char*)): Turn into friend function.
7073 (Class): Rename newObject by JvAllocObject.
7074 * prims.cc: Update to use JvAllocObject, and elements.
7076 * java/lang/natDouble.cc: Fix double -> jdouble.
7078 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
7080 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7082 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7084 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7085 * include/java-lang.h (Runtime): finalize_on_exit and
7086 runFinalizersOnExit now static.
7087 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7089 (finalize_on_exit): Now static.
7091 * boehm.cc (mark_obj): Get class using getClass() method on
7093 (_dispatchTable): Removed.
7095 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7097 * java/io/natFileDescriptor.cc (open_read): Only call open if
7099 (open_write): Likewise.
7101 * Makefile.in: Rebuilt.
7102 * Makefile.am ($(nat_files)): Depend on config.h.
7104 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7106 * prims.cc (ObjectClass): Now a macro; updated for new class name
7108 (StringClass): Likewise.
7109 (ClassClass): Likewise.
7111 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7113 * java/io/natFileDescriptor.cc (available): Do nothing unless
7114 HAVE_SELECT defined.
7115 * java/util/natDate.cc (setTime): Conditional on
7117 (toString): Conditional on HAVE_TIME.
7118 * aclocal.m4, configure: Rebuilt.
7119 * acinclude.m4: New file.
7120 * configure.in: Don't actually call AM_EXEEXT. Call
7121 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7122 --with-target-subdir option. Check for select and open
7125 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7127 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7128 (call_finalizer): Likewise.
7129 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7130 * prims.cc (newObject): Pass actual method pointer to
7131 JvPrivRegisterFinalizer.
7132 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7133 (JvPrivRegisterFinalizer): Changed interface.
7135 * Makefile.in: Rebuilt.
7136 * Makefile.am (MOSTLYCLEANFILES): New macro.
7137 (CLEANFILES): Removed javao_files.
7139 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7141 * nogc.cc: New file.
7142 * Makefile.in: Rebuilt.
7143 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7144 (EXTRA_libjava_a_SOURCES): New macro.
7145 (libjava_a_SOURCES): Removed boehm.cc.
7146 (libjava_a_DEPENDENCIES): Added GCOBJS.
7147 (libjava_a_LIBADD): Likewise.
7148 * configure: Rebuilt.
7149 * configure.in: Added code for --enable-gc=TYPE.
7151 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7153 * boehm.cc (mark_array): Don't further dereference pointer from
7156 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7157 * Makefile.in: Rebuilt.
7158 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7159 one for boehm-gc build directory.
7161 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7163 * include/java-lang.h (finalize_on_exit): New instance variable in
7164 java::lang::Runtime.
7165 (runFinalizersOnExit): New method.
7166 * java/lang/Runtime.java (finalize_on_exit): New instance
7168 (runAllFinalizers_): New private method.
7169 (runFinalizersOnExit): New method.
7170 * boehm.cc (JvPrivRunFinalizers): New function.
7171 (JvPrivRunAllFinalizers): Likewise.
7172 (JvPrivRunGC): Likewise.
7173 * java/lang/natRuntime.cc: Include "jvm.h".
7174 (gc): Call JvPrivRunGC.
7175 (runFinalization): Call JvPrivRunFinalizers.
7176 (runFinalizersOnExit): New method.
7177 (exit_): Call JvPrivRunAllFinalizers if required.
7178 * include/jvm.h: Declare JvPrivRunFinalizers,
7179 JvPrivRunAllFinalizers, JvPrivRunGC.
7181 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7183 * boehm.cc (JvPrivRegisterFinalizer): New function.
7184 (call_finalizer): Likewise.
7185 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7186 * prims.cc (finalize_name): New global.
7187 (newObject): Just call other newObject.
7188 (newObject): Register finalizer if it exists.
7190 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7192 * prims.cc (gc_malloc): Removed.
7193 (makeUtf8Const): Use JvPrivAllocBytes.
7194 (lookupArray): Likewise.
7195 (newPrimArray): Likewise.
7196 (JvNewObjectArray): Use JvPrivAllocArray.
7197 (newObject): Use JvPrivAllocObj.
7198 (newObject): Likewise.
7199 Changed Method -> JvMethod everywhere.
7200 Changed Field -> JvField everywhere.
7201 * include/java-lang.h (Object): Changed type of `fields' to
7203 (jmethodID, jfieldID): New typedefs.
7204 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7206 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7208 (METHOD_NATIVECODE): Moved from java-lang.h.
7209 (class JvField): New class.
7210 (JvGetFirstInstanceField): New function.
7211 (JvFieldIsRef): Likewise.
7212 (JvGetObjectField): Likewise.
7213 (JvNumInstanceFields): Likewise.
7215 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7217 * boehm.cc: New file.
7218 * Makefile.in: Rebuilt.
7219 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7220 (INCLUDES): Added -I options to find boehm-gc files.
7222 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7224 * configure: Rebuilt.
7225 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7227 * Makefile.in: Rebuilt.
7228 * Makefile.am (nat_files): New macro.
7229 (libjava_a_DEPENDENCIES): Use it.
7230 (libjava_a_LIBADD): Likewise.
7231 ($(nat_files)): New static pattern rule.
7232 (class_files): Run separate find to find .class files.
7233 (javao_files): Compute based on class_files.
7234 (BUILT_SOURCES): New macro.
7236 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7238 * Makefile.am (java_files): New macro.
7239 (class_files): Likewise.
7240 (javao_files): Likewise.
7241 (libjava_a_DEPENDENCIES): Include $(javao_files).
7242 (libjava_a_LIBADD): Likewise.
7243 (classes.stamp): Depend on $(java_files); only recompile changed
7246 (CLEANFILES): Don't run find; use macros. Don't mention
7248 (.class.o): New target.
7249 (compiled.stamp): Removed.
7251 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7253 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7254 LineNumberReader}>java: Newly-implemented standard classes.
7256 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7258 * Makefile.in: Rebuilt.
7259 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7261 * Makefile.in: Rebuilt.
7262 * Makefile.am (hack): New macro.
7263 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7265 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7267 * include/config.h.in: New file.
7268 * include/config.h: Removed.
7269 * acconfig.h: New file.
7270 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7271 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7272 libjava_a_LIBADD): New macros.
7273 (INCLUDES): New macro.
7276 (SUFFIXES): Removed.
7278 (libjava.a): Removed.
7280 * configure: Rebuilt.
7281 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7282 Look for headers and functions we require. Create
7285 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7287 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7288 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7289 soft_lookupinterfacemethod): New functions.
7290 (PrimClass): Actually initialize the primitive classes.
7291 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7293 * include/java-util.h: Removed java::util definition.
7294 * include/cni.h: Moved java::util here and added Properties.
7295 Added more function prototypes.
7296 * include/java-lang.h: Added mroe methods and friend declarations.
7297 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7298 * include/jvm.h (strLengthUtf8): Add declaration.
7300 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7302 * java/lang/{Byte,Short,Void}.java: New classes.
7303 * java/lang/Character.java (isJavaIdentifierStart,
7304 JavaIdentifierPart): New static methods.
7305 * java/lang/Number.java (byteValue, shortValue): New methods.
7307 * java/lang/String.java (intern, hashCode): Make native.
7308 * java/lang/natString.cc: New file. Handle the string pool.
7309 * Makefile.am: Build natString.o. Use CXXFLAGS.
7311 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7312 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7313 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7314 * java/lang/System.java (setProperty): New private method.
7315 (initProperties): Take argument, and make native.
7316 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7317 (currentTimeMillis): Make more robust.
7319 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7320 * java/io/UnsupportedEncodingException.java: New exception class.
7322 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7323 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7325 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7327 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7328 * prims.cc: Added bunch of stuff.
7329 * include/cni.h: Added various definitions.
7330 * include/java-lang.h: Added Method, various friends, some macros.
7332 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7333 * java/lang/System.java (arraycopy): Make native.
7335 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7337 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7338 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7339 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7340 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7342 * java/lang/Runtime.java: Declare methods as native instead of
7344 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7345 * java/lang/System.java: Comment out some stuff, for now.
7346 * java/lang/Thread.java: Re-write. Use native methods.
7347 * java/lang/NativeLang.java: Remove most of it.
7349 * java/util/natDate.cc: Native (C++) methods for Date.
7350 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7351 * java/util/Date.java: Complete re-write.
7353 * java/io/io-defs.h: New header file.
7354 * java/io/FileDescriptor.java: Add a bunch of private methods,
7355 mostly moved from NativeIO.java and natNativeIO.cc.
7356 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7357 * java/io/File.java: Use new code.
7358 * java/io/{FileInputStream.java.FileOutputStream.java,
7359 RandomAccessFile.java}: Use new private FileDescriptor methods.
7360 * java/io/NativeIO.java: Removed, no longer used.
7362 * java/io/StreamTokenizer.java (numericChars): Make char array.
7364 * include/*.h: Various header files used by the C++ native code.
7366 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7367 New autoconf+automake-based setup.
7368 * prims.cc: New file for Java "primitives".